RTC Query

Nagging hardware related question? Post here!
User avatar
t0nyt
Gold Card
Posts: 385
Joined: Wed Nov 22, 2023 6:46 pm
Location: UK

Re: RTC Query

Post by t0nyt »

Peter wrote: Wed Mar 13, 2024 11:00 pm
tofro wrote: Tue Mar 12, 2024 8:32 am Here's a link to such an adapter kit: https://www.horter-shop.de/de/i2c-pc-ad ... 60547.html

(Note I haven't tried wether that works with the QL, but don' see much reason why it shouldn't. These things seem to be doing the level shifting and clock generation, there's still some software to write)
Won't work directly, since it uses the DSR line which the QL does not provide.
Oh well, more items for the spare parts box then!

I do have another plan that’s already in progress though, and a plan C


ones' complement
Over Heated PSU
Posts: 134
Joined: Tue Nov 30, 2021 1:19 am

Re: RTC Query

Post by ones' complement »

t0nyt wrote: Thu Mar 14, 2024 8:04 am
Peter wrote: Wed Mar 13, 2024 11:00 pm
tofro wrote: Tue Mar 12, 2024 8:32 am Here's a link to such an adapter kit: https://www.horter-shop.de/de/i2c-pc-ad ... 60547.html

(Note I haven't tried wether that works with the QL, but don' see much reason why it shouldn't. These things seem to be doing the level shifting and clock generation, there's still some software to write)
Won't work directly, since it uses the DSR line which the QL does not provide.
Oh well, more items for the spare parts box then!

I do have another plan that’s already in progress though, and a plan C
Here's a more suitable possibility for the QL's limited IPC serial. Uses a PIC12F675, you'll need MAX232 level shifter and RTC module (w/- EEPROM). Only hiccup is BAUD default is set to 38400, don't know whether BAUD_RS232 equate can be lowered to 9600 - need to look closer at PIC datasheet and source files (included).


User avatar
t0nyt
Gold Card
Posts: 385
Joined: Wed Nov 22, 2023 6:46 pm
Location: UK

Re: RTC Query

Post by t0nyt »

ones' complement wrote: Thu Mar 14, 2024 3:08 pm
t0nyt wrote: Thu Mar 14, 2024 8:04 am
Peter wrote: Wed Mar 13, 2024 11:00 pm
Won't work directly, since it uses the DSR line which the QL does not provide.
Oh well, more items for the spare parts box then!

I do have another plan that’s already in progress though, and a plan C
Here's a more suitable possibility for the QL's limited IPC serial. Uses a PIC12F675, you'll need MAX232 level shifter and RTC module (w/- EEPROM). Only hiccup is BAUD default is set to 38400, don't know whether BAUD_RS232 equate can be lowered to 9600 - need to look closer at PIC datasheet and source files (included).
Thanks for the info, but I think I'm going to park the I2C idea for the moment and try some other ideas

I2C is now getting beyond what I'm comfortable with trying to do

Many thanks


User avatar
NL_QL_Usr
Chuggy Microdrive
Posts: 58
Joined: Sun Jan 08, 2023 8:42 am

Re: RTC Query

Post by NL_QL_Usr »

Hey t0nyt;

I think youre idea is great for getting the time.
But what about NTP time?

I am currently testing an ESP32 the TTGO T-Display + an rs232 to TTL print.
My goal is to be able to perform modem like commands from ql to ESP32.
Which would give many possibilities

The ESP32 Connects to Internet and gets the NTP time.

At the moment Ive got NTP working.
The QL can send serial a command <d>
And the ESP32 T-display will answer serial the NTP time.
This already works ok.

There are many things more one could think of, like getting the weather send a telegram message etc. etc.
t-display.jpg
ql-esp32.jpg
Maybe an idea for you?


User avatar
t0nyt
Gold Card
Posts: 385
Joined: Wed Nov 22, 2023 6:46 pm
Location: UK

Re: RTC Query

Post by t0nyt »

That’s looks great, but probably still beyond me at the moment

My next experiment, when it arrives, is to try to connect a wi-fi modem to the QL and write some code on the QL to grab the time from a BBS or something. Probably another dead end idea, but it’s fun to try these things

Many thanks


User avatar
Pr0f
QL Wafer Drive
Posts: 1308
Joined: Thu Oct 12, 2017 9:54 am

Re: RTC Query

Post by Pr0f »

I wonder if those serial network modems would provide time?

https://www.simulant.uk/shop/retro-vint ... compatible


User avatar
t0nyt
Gold Card
Posts: 385
Joined: Wed Nov 22, 2023 6:46 pm
Location: UK

Re: RTC Query

Post by t0nyt »

Pr0f wrote: Fri Mar 15, 2024 7:12 am I wonder if those serial network modems would provide time?

https://www.simulant.uk/shop/retro-vint ... compatible
Interesting thought

I did look at the one in your link but it’s out of stock. I had to go further afield so while I’m waiting for it to arrive I might take a look at the source code on GitHub to see what functions it might have


User avatar
NL_QL_Usr
Chuggy Microdrive
Posts: 58
Joined: Sun Jan 08, 2023 8:42 am

Re: RTC Query

Post by NL_QL_Usr »

esp32_ser.jpg
Hey Pr0f ;

Someone was way ahead of me :D
Anyway its great to try to program such nice connection.
And one can make your own preferences.


User avatar
t0nyt
Gold Card
Posts: 385
Joined: Wed Nov 22, 2023 6:46 pm
Location: UK

Re: RTC Query

Post by t0nyt »

Just had a quick look at the commands and it seems to support setting up an NTP server and querying the date/time

Looks like the hardest part will be getting it working but it’s meant to work with QL, Speccy, C64 etc. but no idea if QL was using built-in serial ports. I guess I’ll find out soon enough


User avatar
Pr0f
QL Wafer Drive
Posts: 1308
Joined: Thu Oct 12, 2017 9:54 am

Re: RTC Query

Post by Pr0f »

NL_QL_Usr wrote: Fri Mar 15, 2024 7:41 am esp32_ser.jpgHey Pr0f ;

Someone was way ahead of me :D
Anyway its great to try to program such nice connection.
And one can make your own preferences.
I do like the lilygo products though - and there is probably a lot more this could potentially offer - would be interesting to see how well it works with the QL serial ports - they were never the QL's greatest strength.


Post Reply