|
From: | Franco Diego |
Subject: | Re: [gpsd-dev] GPSD Shared Memory Flags |
Date: | Mon, 24 Oct 2016 11:23:57 -0700 (PDT) |
Hello,
I'm still looking for solutions for the below email I sent some time ago, anybody knows what's the current development status for "set" flag status in gps_data_t data structure when using shared memory flags?
Thank you!
Diego
On October 12, 2016 at 1:24 PM Franco Diego <address@hidden> wrote:Hello guys,
I'm writing this email to see if you could light my way in checking correctly the "set" flags in gps_data_t when using shared memory.
I setup GPSD in a beaglebone and "cgps" module works and also I'm using the C++ libgpsmm library where I can read GPS position and time through the gps_data_t, however when it comes to check the "set" flags in gps_data_t, these flags are not being set for every packet as follows, I have attached the code that I'm testing.
-----Shared Memory:
1. When I get the below packets (every second), the STATUS_SET is the only flag on in set member of the gps_data_t struct, and I see that lat, long, time, etc changes and still no more flags set here
{"class:":"TPV","tag":"RMC","device":"...."......
set flag : '0b1000000000'
2. When I get the below packet (every 5 seconds), the set member in gps_data_t struct is:
{"class:":"SKY","tag":"GSV","device":"...."......
set flag : '0b10000000001000100000000010'
-----Sockets:
1. When I test the code with sockets instead of shared memory, for the following packets, the flags seem to look OK, since they lat, long, etc flags are set
{"class:":"TPV","tag":"RMC","device":"...."......
set flag: '0b10000001010011011111111100'
2. When I get the below packet (every 5 seconds), the set member in gps_data_t struct is:
{"class:":"SKY","tag":"GSV","device":"...."......
set flag : '0b10000001011011011111111100'
Do you know why when testing with shared memory why the TIME_SET, LATLON_SET, ALTITUDE_SET, SPEED_SET, set flags in gps_data_t are not being set even though I'm getting updates on the shared memory (different data every second)? this works with sockets as shown above.
I really appreciate your time,
Thank you!
Diego
[Prev in Thread] | Current Thread | [Next in Thread] |