jpmens / qtripp Goto Github PK
View Code? Open in Web Editor NEWQueclink Track (air) Interface Protocol Processor
License: Other
Queclink Track (air) Interface Protocol Processor
License: Other
data.log has shown buffer with two separate devices in it.
GTVER is a very useful report for firmware/hardware versions. I added it in #14 but only implemented GL300M devices.
We might also want to add support for more items in devices.h
such as:
int device_type; /* String representation of the device type e.g. gl300m */
int ver_fw; /* HEX firmware version MAMI for MAjor MInor */
int ver_hw /* HEX hardware version MAMI for MAjor MInor */
This is something that I could happily undertake and submit a PR when ready.
Reconnection logic in qtripp is either missing or buggy.
Add a ping
command (../*/cmd ping
) in order to monitor MQTT subscription. (Inspired by @ckrey)
It looks like qtripp is only able to emit OwnTracks JSON via MQTT.
It would be great if it were also able to emit over HTTP, so that it could be used in a scenario where the Recorder is running in HTTP mode (thus eliminating the need for running a separate MQTT server), or when using alternative backends (i.e. orion-server/orion-web) :)
(or at least more identifiable as being qtripp)
requested by @ckrey
mongoose.c:1110:33: error: argument 1 of type 'unsigned char[16]' with mismatched bound [-Werror=array-parameter=] 1110 | void cs_md5_final(unsigned char digest[16], cs_md5_ctx *ctx) { | ~~~~~~~~~~~~~~^~~~~~~~~~ In file included from mongoose.c:1: mongoose.h:1765:34: note: previously declared as 'unsigned char *' 1765 | void cs_md5_final(unsigned char *md, cs_md5_ctx *c); | ~~~~~~~~~~~~~~~^~ cc1: all warnings being treated as errors make: *** [<builtin>: mongoose.o] Error 1
instead of a single data.log
we can store a device's data in data-<IMEI>
. This simplifies things greatly when we have to replay a device's log or for long-term data storage.
GL300(W) devices (battery driven, not car connected) send GTPNA / GTPFA messages when manually switched on or off. As these messages do not contain a position (lat/lon), they are not processed
41 means device is motionless, 42 means device is moving, but ignition is not on.
Should not be interpreted as TOW
Add PID to log output in order to easily detect restarts (a.k.a crashes).
2023-07-20T11:27:57Z 1689852477 pid=1038 +++ I=867488060201307 (GV58CEU) M=unknown np=31 P=8020030100 C=15782 T=RESP:GTFRI (fixed report information) LINE=+RESP:GTFRI,8020030100,867488060201307 ...
2023-07-20T11:29:06Z 1689852546 pid=1038 +++ I=867488060201307 (GV58CEU) M=unknown np=31 P=8020030100 C=15786 T=RESP:GTFRI (fixed report information) LINE=+RESP:GTFRI,8020030100,867488060201307 ...
2023-07-20T11:29:46Z 1689852586 pid=1038 +++ I=867488060201307 (GV58CEU) M=GV58CEU np=31 P=8020030100 C=15789 T=RESP:GTFRI (fixed report information) LINE=+RESP:GTFRI,8020030100,867488060201307 ...
2023-07-20T11:30:23Z 1689852623 pid=1038 +++ I=867488060201307 (GV58CEU) M=GV58CEU np=31 P=8020030100 C=15792 T=RESP:GTFRI (fixed report information) LINE=+RESP:GTFRI,8020030100,867488060201307 ...
2023-07-20T11:31:00Z 1689852660 pid=1038 +++ I=867488060201307 (GV58CEU) M=GV58CEU np=31 P=8020030100 C=15793 T=RESP:GTFRI (fixed report information) LINE=+RESP:GTFRI,8020030100,867488060201307 ...
2023-07-20T11:31:37Z 1689852697 pid=1038 +++ I=867488060201307 (GV58CEU) M=GV58CEU np=31 P=8020030100 C=15797 T=RESP:GTFRI (fixed report information) LINE=+RESP:GTFRI,8020030100,867488060201307 ...
2023-07-20T11:32:14Z 1689852734 pid=1038 +++ I=867488060201307 (GV58CEU) M=unknown np=31 P=8020030100 C=15801 T=RESP:GTFRI (fixed report information) LINE=+RESP:GTFRI,8020030100,867488060201307 ...
2023-07-20T11:32:51Z 1689852771 pid=1038 +++ I=867488060201307 (GV58CEU) M=unknown np=31 P=8020030100 C=15802 T=RESP:GTFRI (fixed report information) LINE=+RESP:GTFRI,8020030100,867488060201307 ...
Should we add a UUID to the JSON payloads we publish over MQTT? UUIDs are helpful in tracking unique messages, and in this case, it's just a couple lines of code.
We should probably use a CDB (e.g. TinyCDB) file for device_to_topic()
instead of using configuration from the INI file because we'd be able to re-create CDB on changes and have qtripp re-open the CDB -- easier than mucking about with the INI.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.