General Traccar Protocol for GPS tracker design

atropat8 years ago

Dear Anton

I have used your great project Traccar for months with some different AVL and happy that you are going ahead,
Now I am designing my own GPS tracker and want to design it's protocol that supports by Traccar, I would happy to know if you have general Traccar protocol or should i use one of supported devices protocol
It also have many sensors, naybe OBDII data infuture designs, have you any suggestion?

Anton Tananaev8 years ago
atropat8 years ago

Thanks for your fast replay, if it possible to have simple TCP/IP TEXT protocol for universal use, It is very usefull for DIY designers.
Wialon protocol in good and simple and if have capability to extend unlimited range of digital/analoge sensors and parameters but it need login process in sentenses and needs to send data in different sentenses.

Wialon:

#D#date;time;lat1;lat2;lon1;lon2;speed;course;height;sats;hdop;inputs;outputs;adc;ibutton;params\r\n

Suggested:

#IMEI#date;time;lat1;lat2;lon1;lon2;speed;course;height;sats;hdop;inputs;outputs;adc;ibutton;params\r\n
date Date in UTC format, DDMMYY, if no data, NA is sent
time Time in UTC format, HHMMSS, if no data, NA is sent
lat1;lat2 Latitude (5544.6025;N), if no data, NA;NA is sent
lon1;lon2 Longitude (5544.6025;N), if no data, NA;NA is sent
speed Speed, integer, km/h, if no data, NA is sent
course Course, integer, degrees, if no data, NA is sent
height Height, , integer, m, if no data, NA is sent
sats Number of satellites, integer, if no data, NA is sent
hdop Horizontal Dilution of Precision, double, if no data, NA is sent
inputs Digital inputs, each bit corresponds to one digital input beginning from
the LSB, integer, if no data, NA is sent
outputs Digital outputs, each bit corresponds to one digital output beginning from
the LSB, integer, if no data, NA is sent
adc Analog inputs, fractional numbers separated by comma, if no data, empty
string is send. Input numbering begins from 1 (adc1..adcN).
Example 14.77,0.02,3.6
ibutton Driver key code, custom length string. If no data, NA is sent
params Set of additional parameters separated by comma. Each parameter has the
following format: NAME:TYPE:VALUE
NAME – custom string
TYPE – parameter type, 1 – int, 2 – double, 3 – string
VALUE – parameter value, depends on type
To send panic button use parameter with 1 type named “SOS”, 1 mean
panic button was pressed.
To send text message use parameter with 3 type named “text”. This
parameter can be used to send driver message with position and other
parameters.
Example: count1:1:564,fuel:2:45.8,hw:3:V4.5

https://github.com/tananaev/traccar/blob/master/src/org/traccar/protocol/WialonProtocolDecoder.java

https://dl.dropboxusercontent.com/s/rnun3g7zxbhpdnr/Wialon%20IPS_en.pdf

atropat8 years ago

https://www.traccar.org/traccar-client-protocol/

Also found this page, maybe could use old Traccar client protocol as GPS tracker 's simple protocol,
If the extended report be little more extended and have some other data like PacketNumber,HDOP,ADC , Digital sensor, Custom String will be very good.

Thanks

Anton Tananaev8 years ago

I would still recommend to use some existing protocol. There are text protocols that support all the data that you need.

abyss8 years ago

@atropat
Please check the Wialon protocol, I think it will fit.

atropat8 years ago

Thanks for your helps and suggestions; It seems that is full protocol and could covers many of needs.