SwingeyP
Member
Hi again.
Today's quiz is this...
I have a GPS module which produces this output every second.
I need to read this somewhow looking for a change in this packet - 10 46 00 01 10 03
At cold start with no satelite info the packet (status) sends 10 46 01 01 10 03
I need to see the status change of this packet but I am also confused as how to read all the other packets or ignore them. Ho to I synchronise my read with what is being sent?
I have this at present
but it doesn't work in that when the status packet is updated I always see 10 46 01 01 10 13 - or 1 1 16 3 in my case. - I'm sure ths is because things are out of sync.
Any ideas?
Regards - Paul
Today's quiz is this...
I have a GPS module which produces this output every second.
Code:
10 82 02 10 03
10 46 00 01 10 03
10 4B 5A 00 01 10 03
10 6D 64 40 4A 74 CE 3F C9 7F 37 40 2F 9B BD 40 0F 78 36 09 1A 1C 05 08 0F 10 03
10 82 02 10 03
10 5C 18 00 02 00 00 00 00 00 48 ED C7 CB 3E 9B 15 5D 40 87 F1 54 00 00 00 01 10 03
10 5C 09 08 01 02 40 AC CC CD 48 ED C7 CB 3F 9F 79 1B 40 87 0C 68 00 00 00 01 10 03
10 5C 1A 10 01 02 41 03 33 33 48 ED C7 CB 3F B3 84 83 3F DA 0D EE 00 00 00 01 10 03
10 5C 1C 18 01 02 41 03 33 33 48 ED C7 CB 3F 67 0C 74 3F D3 97 93 00 00 00 01 10 03
10 5C 05 20 01 02 40 C6 66 66 48 ED C7 CB 3F 1B 37 E0 40 4F D8 66 00 00 00 01 10 03
10 5C 08 28 01 02 40 D9 99 9A 48 ED C7 CB 3F 14 C4 19 3F 86 49 FA 00 00 00 01 10 03
10 5C 15 30 02 00 00 00 00 00 48 ED C7 CB 3E 7D 55 84 40 A5 9A BD 00 00 00 01 10 03
10 5C 0F 38 01 02 40 26 66 66 48 ED C7 CB 3F 75 01 93 40 A1 75 DA 00 00 00 01 10 03
10 41 48 ED C7 CB 06 C3 41 80 00 00 10 03
10 8F 20 00 00 00 00 00 00 00 1D 06 A6 18 25 60 AA 3A FE A6 B9 31 00 03 8B 80 00 00 01 18 06 00 06 C3 09 5D 1A 53 1C 46 05 5A 08 09 0F 35 00 00 00 00 17 01 FE 00 3C 00 FC 03 10 03
10 6D 64 40 4A 74 CE 3F C9 7F 37 40 2F 9B BD 40 0F 78 36 09 1A 1C 05 08 0F 10 03
I need to read this somewhow looking for a change in this packet - 10 46 00 01 10 03
At cold start with no satelite info the packet (status) sends 10 46 01 01 10 03
I need to see the status change of this packet but I am also confused as how to read all the other packets or ignore them. Ho to I synchronise my read with what is being sent?
I have this at present
Code:
'-- Read data from the GPS
Hseropen 9600
getdata:
Hserin data(0) '10
Hserin data(1) '46
If data(0) = 0x10 And data(1) = 0x46 Then 'Status Packet
Hserin data(2)
Hserin data(3)
Hserin data(4)
Hserin data(5)
Lcdcmdout LcdLine1Pos(1)
Lcdout #data(2), " ", #data(3), " ", #data(4), " ", #data(5), " "
Else
Lcdcmdout LcdLine1Pos(1)
Lcdout "Waiting"
Endif
WaitMs 500
Goto getdata
but it doesn't work in that when the status packet is updated I always see 10 46 01 01 10 13 - or 1 1 16 3 in my case. - I'm sure ths is because things are out of sync.
Any ideas?
Regards - Paul