Sending data packet

Nitish Khadaria5 years ago

Hello Traccar Team.
I have install traccar server on my system and change database url in traccar.xml (location- C:\Program Files\Traccar\conf). After that i was start traccar from window service. Now i can access web interface and table also created in (MySQL) db. For testing i was add new device and try to send the data through packet sender (3rd party softwere) but data not insert in db.
log file:

2019-04-10 17:21:38  INFO: [5b7307ef] connected
2019-04-10 17:21:38  INFO: [5b7307ef: 5055 < 127.0.0.1] HEX: 2424434c49454e545f315a462c3138313031303332302c3130312c31322e3937363936322c37372e3534393735392c3138313232363137323630322c412c302c302c32323037362c3332332c342c322e3632303030302c302c302c312c302c312c302c302c302c302c302c302c302c302c312c312c302c302c302c302c302c302c302c302c302c302c312c302c302c302c302c302c302c302c312c302c31373236322c343231332c2a3032
2019-04-10 17:21:38  INFO: [5b7307ef] disconnected

Plz guide how i fix it ?

Willem5 years ago

You are talking on port 5055, which is OsmAnd Decoder. Your message decode to:

$$CLIENT_1ZF,181010320,101,12.976962,77.549759,181226172602,A,0,0,22076,323,4,2.620000,0,0,1,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,17262,4213,*02

So there are no defined key=value pairs, just values. How will the decoder know what to extract (and ultimately store, which is not done by the decoder).

Anton Tananaev5 years ago

Clearly it's a wrong port for this protocol.

Nitish Khadaria5 years ago

Thanks for your response @Willem & @Anton
yes you are right i was used wrong port number but now i have using port 5089 that is used for a aquila device. i have try this same packet that send by aquila device but still data not insert in database and not show on web interface.

log File:

2019-04-11 09:26:26  INFO: [e39b7ef9] connected
2019-04-11 09:26:26  INFO: [e39b7ef9: 5089 < 127.0.0.1] HEX: 2424434c49454e545f315a462c3138313031303332302c3130312c31322e3937363936322c37372e3534393735392c3138313232363137323630322c412c302c302c32323037362c3332332c342c322e3632303030302c302c302c312c302c312c302c302c302c302c302c302c302c302c312c312c302c302c302c302c302c302c302c302c302c302c312c302c302c302c302c302c302c302c312c302c31373236322c343231332c2a3032
2019-04-11 09:26:26  INFO: [e39b7ef9] disconnected

please guide me, how fix this error and what, every protocol needs key and value pair ?

Nitish Khadaria5 years ago

Hey Anton ,
please respond me !

Nitish Khadaria5 years ago

Now it is fixed
Firstly i using this packet in packet sender

$$CLIENT_1ZF,181010320,101,12.976962,77.549759,181226172602,A,0,0,22076,323,4,2.620000,0,0,1,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,17262,4213,*02

After i am try

$$CLIENT_1ZF,181010320,101,12.976962,77.549759,181226172602,A,0,0,22076,323,4,2.620000,0,0,1,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,17262,4213,*02\r\n 

now data insert into db and show in web interface
conclusion : if you using packet sender for testing then you should using \r\n in right side in packet.