[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Lasermad.com • View topic - Adding GPS

Adding GPS


Posts: 51

Joined: Sat Apr 11, 2020 2:45 pm

Post Wed Jul 01, 2020 3:57 pm

Re: Adding GPS

Posts: 51

Joined: Sat Apr 11, 2020 2:45 pm

Post Fri Jul 03, 2020 4:17 pm

Re: Adding GPS

Site Admin

Posts: 950

Joined: Tue Jul 24, 2012 8:05 pm

Post Fri Jul 03, 2020 9:39 pm

Re: Adding GPS

The field separation is the comma, Dps won't alter the position of the time data. This is the relevant part of the code, it reads the first 6 bytes after the first comma, counts to the date field, then reads another 6 bytes.

;We have a valid string, now extract the data we need from it
;$GPRMC,092751.000,A,5321.6802,N,00630.3371,W,0.06,31.66,280511,,,A*45

movlw 0x22
movwf FSR0L
movlw "R"
xorwf INDF0,w
btfss STATUS,Z
;goto GPSdecodeIR ;Not the string we want, exit
goto GPSdecodeX
incf FSR0L,f
movlw "M"
xorwf INDF0,w
btfss STATUS,Z
;goto GPSdecodeIR ;Not the string we want, exit
goto GPSdecodeX
incf FSR0L,f
movlw "C"
xorwf INDF0,w
btfss STATUS,Z
;goto GPSdecodeIR ;Not the string we want, exit
goto GPSdecodeX
incf FSR0L,f

call GPSgetbyte ;Read time bytes (6 characters)
movwf GHouk
call GPSgetbyte
movwf GMink
call GPSgetbyte
movwf GSeck

movlw 0x08
movwf TempCounP1a ;count ,s
GPSdecodeloop
incf FSR0L,f
movlw ","
xorwf INDF0,w
btfss STATUS,Z
goto GPSdecodeloop ;Not the comma, looop
decfsz TempCounP1a,f
goto GPSdecodeloop ;Not the LAST comma, looop

call GPSgetbyte ;Read time bytes (6 characters)
movwf GDayk
call GPSgetbyte
movwf GMonk
call GPSgetbyte
movwf GYeak

Posts: 51

Joined: Sat Apr 11, 2020 2:45 pm

Post Sat Jul 04, 2020 4:13 pm

Re: Adding GPS

Posts: 51

Joined: Sat Apr 11, 2020 2:45 pm

Post Mon Jul 06, 2020 9:01 pm

Re: Adding GPS

Most curious: after about 3 hours (the BN0-220T had had GNSS lock for about 2 hours already) the clock seemed to read the time from the GNSS module data. But it seemed to have a 8 hours subtracted from it (the GGA & RMC messages have the right timezone no odd offset, i.e. UTC). I checked menu entry 9.6 and this was 2020 (13-23 == subtract x hrs, so this makes sense). I changed it to 0000 so no timezone should be added/deducted. This had no effect. I tried changing the Summer TIme setting and this added an hour.

Clearly I do not understand how to set the timezone... And why the odd 8-hour deduction by default?

Posts: 51

Joined: Sat Apr 11, 2020 2:45 pm

Post Sat Jul 18, 2020 12:36 pm

Re: Adding GPS

I have built another cylinder clock (sent the other one as a present) and the NMEA messages from the BN-220T GNSS module do not seem to be updating the time nor date nor year, despite having a lock. So I hypothesise that the incompatibility was not alone to the previous clock, but common to them. Can you advise?

Site Admin

Posts: 950

Joined: Tue Jul 24, 2012 8:05 pm

Post Sat Jul 18, 2020 3:25 pm

Re: Adding GPS

I have a couple of new GPS modules to test over the weekend and will check the GPS code is behaving as it should. All clocks will be the same as the firmware is identical. The timezone offset is GMT by default. Are you seeing any other strange variables set?.

Site Admin

Posts: 950

Joined: Tue Jul 24, 2012 8:05 pm

Post Sat Jul 18, 2020 3:56 pm

Re: Adding GPS

Posts: 51

Joined: Sat Apr 11, 2020 2:45 pm

Post Sat Jul 18, 2020 5:57 pm

Re: Adding GPS

[SOLVED] Good catch: there was a dry joint on the serial-to-USB converter module that meant the data to the computer was fine, but to the clock too noisy. Re-soldered: time, date & year synchronised right away (as the GNSS module had an up-to-date ephemeris). Looks like that was the issue as that board was common to tests on both clocks, hence the common issue. *Thanks a lot.* I shall soak test the GNSS module with it and let you know. I expect all to be well. Ran overnight, with some brief unplugging & plugging, all well, as suspected. Apologies for the hassle.

Posts: 51

Joined: Sat Apr 11, 2020 2:45 pm

Post Fri Aug 07, 2020 8:10 pm

Re: Adding GPS

PreviousNext

Return to Assembly instructions for the Cylinder V3 clock kit

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software