Unable to get GPS data via bluetooth
Verfasst: Do 7. Dez 2023, 15:20
Hello,
I'm trying to get GPS connector working and receive GPGGA packets via bluetooth but without success.
First I've checked it in simulation mode and it works. Then I've picked up a GPGGA string from simulation nmea log
$GPGGA,150834.00,4151.0000000,N,01230.0000000,E,4,16,0.6,516.042,M,45.729,M,1.0,1020*47
and sent it via file input. And it works again. But if I send exactly the same string via bluetooth it does not work. I've looked in debug log and found strings like:
[04.12.2023 22:20:25.330] [E] [TID:508651232432] [0220::NMEAString.cpp] [analyse()] ERR_NMEA_CHECKSUM: 0x47:GPGGA,150834.00,4151.0000000,N,01230.0000000,E,4,16,0.6,516.042,M,45.729,M,1.0,1020*00
I guess that 0x47 is checksum calculated by the app but 00 is checksum it sees in incoming packets. BUT terminal window shows *47 at the string end.
What is wrong? Why the app sees 00 at the end?
Thanks.
Volodymyr.
I'm trying to get GPS connector working and receive GPGGA packets via bluetooth but without success.
First I've checked it in simulation mode and it works. Then I've picked up a GPGGA string from simulation nmea log
$GPGGA,150834.00,4151.0000000,N,01230.0000000,E,4,16,0.6,516.042,M,45.729,M,1.0,1020*47
and sent it via file input. And it works again. But if I send exactly the same string via bluetooth it does not work. I've looked in debug log and found strings like:
[04.12.2023 22:20:25.330] [E] [TID:508651232432] [0220::NMEAString.cpp] [analyse()] ERR_NMEA_CHECKSUM: 0x47:GPGGA,150834.00,4151.0000000,N,01230.0000000,E,4,16,0.6,516.042,M,45.729,M,1.0,1020*00
I guess that 0x47 is checksum calculated by the app but 00 is checksum it sees in incoming packets. BUT terminal window shows *47 at the string end.
What is wrong? Why the app sees 00 at the end?
Thanks.
Volodymyr.