Open gi1mic opened 4 years ago
@gi1mic Thanks for the message. This will help other owners of a IV-14 clock.
Hi ! For PV Electronics string -
sprintf(tstr, "$GPRMC,%02d%02d%02d,A,0000.0000,N,00000.0000,E,0.0,0.0,%02d%02d%02d,0.0,E,S", tmtime->tm_hour, tmtime->tm_min, tmtime->tm_sec, tmtime->tm_mday, tmtime->tm_mon + 1, tmtime->tm_year - 100);
...if necessary, have a look at the specs from Quectel which is the supplier for the used components in the PV Kits... Quectel L80-R GPS Protocol Specification.zip
I had to change the output string a bit to make this work with my IV-17 VFD Clock.
Its firmware seems to require a few of the fields (such as the time) to include a decimal point and some zeros otherwise it ignores the transmitted string.
New output string =
sprintf(tstr,"$GPRMC,%02d%02d%02d.00,A,0000.0000,N,00000.0000,E,00.0,0000.0,%02d%02d%02d,0.0,E,S", hour(loctime), minute(loctime), second(loctime), day(loctime), month(loctime), year(loctime) - 2000);
BTW, thanks the code works great!