11443 questions

13633 answers

21380 comments

32110 members

0 votes
1,263 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
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.