traccar / traccar

Traccar GPS Tracking System
https://www.traccar.org
Apache License 2.0
4.95k stars 2.51k forks source link

implementing new fuel sensor protocol #5325

Open Zikreeves opened 3 weeks ago

Zikreeves commented 3 weeks ago

Device Concox X3 with fuel sensor TS01 connected with the tracker via RS232 according to current gt06 protocol when the tracker start sending fuel data from that specific sensor it came as non stop command result with different value in each result because for TS01 sensor as manual we have to send IDCAR,ON# to the X3 and send WSTC,ON,X# X = 1 : reserved for common peripherals Baud rate is 115200 X = 2 : specific for RFID reader, Baud rate is 9600 X = 3 : specific for temperature sensor, Baud rate=9600

no problem with device status, ignition, location... etc all data are ok except fuel part which come through command result as small part from the row massage here is a sample from row messages and the part came as command result raw: 7979000d9b033c030101132c0d016e14920d0a result: 3c030101132c0d raw: 7979000d9b033c030101132c0d0175bac00d0a result: 3c030101132c0d

fuel value 7979000d9b033c0301 0113 2c0d0175bac00d0a the temperature part start from letter 19 to 22 in hex which is 0113 , decimal 275 then divide by 10 to be 27.5 Celsius degree

tananaev commented 3 weeks ago

Do you have the protocol documentation?

Zikreeves commented 3 weeks ago

i have some but it seems little different because rs232 change some value, i contacted concox they send me these files and explained the part of fuel level there is another fuel & temperature sensor called ultrasonic fuel sensor which i can get temperature and fuel level in Traccar with no issue, this sensor also use rs232 attached all documents i have regarding to these sensors

TS01-6 Jimi IoT temperature sensor introduction.pdf Jimi IoT ultrasonic fuel sensor introduction and tutorial (1).pdf fifotrack Ultrasonic Fuel Sensor User Guide V1.3.pdf

X3 protocol for integration.pdf TS01-X3_temperature_sensor.pdf

Zikreeves commented 3 weeks ago

i have the x3 online with fuel sensor if you like to test i can set server message to send data to you

Zikreeves commented 1 week ago

I have new comment regarding this protocol When converting from hex to decimal you have to use signed 2’s complement (3 digit) to get correct reading if the temperature below zero If the temperature hex started with ff the normal hex conversion with read thousands value as attached 99e731d3-27af-4d55-81f1-30c5b129a672 4aa20ee2-a7c5-4fe3-b848-94275ed929a5