FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
1,546 views 1 comments
by

Hi,

I'm writing an internal C/C++ app to RUT955 and it needs to read the GNSS fix continuously with as little delay as possible (real-time tracking).

I have read this answer: https://community.teltonika-networks.com/248/rut955-nmea-packets?show=257#a257

I've already managed to make a "proof of concept" version reading NMEA from /dev/gps directly, but it indeed steals the data from gpsd daemon. (I suppose I could reassign symlinks and "tee" the port, but I wouldn't want to go there.)

Regarding the other methods, I'm guessing using gpsctl command and parsing its output isn't very fast. Using the Teltonika proprietary server protocol internally seems unnecessarily complicated and maybe not very fast either.

I'm thinking the best and "correct" method would be using standard libgps functions which talk to gpsd, but it seems to me that it is not included in the SDK (or some other/proprietary version of the library with the same name is included)? The gps.h source looks different from anything I can find on the Internet and it does not have the "standard" libgps functions: http://www.catb.org/gpsd/libgps.html

Is it supposed to be included?

Maybe related: I am not able to compile the firmware 00.06.02 using the SDK. Make stops at an error at libgps (gps.c is missing). Also there is no gpsd / libgps option in make menuconfig.

by
I also have problem with compiling version 00.06.02... libgps stop compiling with error. To compile this library you need to open libgps/src make file and wipe gps.c string on it, because this file not exists and as i understand not needed...gps.o enough

2 Answers

0 votes
by anonymous
Hi,

Teltonika cannot give out its GPS source.

gpsd ir libgps are written by Teltonika, that's why you can't find the .c files.
0 votes
by

Parsing the gpsctl command (with PStreams libary) works pretty fine and is fast enough. I can do real time tracking with that method without any problems.