H02 and UDP

Piorun7 years ago

My tracer works fine over TCP, but it can't communicate over UDP. Traccar see the packets from device so network configuration is fine.
I use v3.15 (I hope the hotfix 'Enable UDP for H02 protocol' is included).

Communication over TCP

2018-02-28 19:09:52  INFO: [C027A2C0] id: 86520503243xxxxx, time: 2018-03-01 00:26:02, lat: 52.34137, lon: 20.99772, speed: 0.0, course: 328.0
2018-02-28 19:14:52 DEBUG: [C027A2C0: 5013 < 94.254.225.11] HEX: 2a48512c3836353230353033323xxxxxx ...... 6230d0a
2018-02-28 19:14:52  WARN: Geocoding failed - Empty address - GeocoderException (JsonGeocoder:69 < *:34 < *:96 < ...)
2018-02-28 19:14:52  INFO: [C027A2C0] id: 86520503243xxxxx, time: 2018-03-01 00:26:02, lat: xx.34137, lon: xx.99772, speed: 0.0, course: 328.0

Communication over UDP

2018-02-28 19:19:52 DEBUG: [A83B86F7: 5013 < 94.254.225.11] HEX: 2a48512c3836353230353033323xxxxx ...... 6230d0a
2018-02-28 19:24:52 DEBUG: [A83B86F7: 5013 < 94.254.225.11] HEX: 2a48512c3836353230353033323xxxxx ...... 6230d0a
Anton Tananaev7 years ago

Are you using latest release? I would need full HEX samples to check the issue.

Piorun7 years ago

[REMOVED]

Last four digits in IMEI are masked ... please delete my message after reading.

Anton Tananaev7 years ago

There was a server issue, but I have fixed it now.

Piorun7 years ago

Thank you for prompt response :)
Could you provide the compiled version of Traccar (just JAR) - I don't have the Java SDK installed.

Anton Tananaev7 years ago

Unfortunately I can't, but you can wait for next official release which should be fairly soon.

Piorun7 years ago

One more question to the hotfix "Handle H02 message new line ":

My tracker doesn't respond to any commands.
Is it possible to add EOL (\0x0d,\0x0a) to the command sent from Traccar to the device? (or define command as a hex string)

Device -> Traccar (EOL at the end)

0000   2a 48 51 2c 38 36 35 32 30 35 30 33 31 31 31 31  *HQ,865205031111
0010   31 31 31 2c 48 54 42 54 23 0d 0a                          111,HTBT#..                              

Traccar -> Device

0030   xx xx xx xx xx xx 2a 48 51 2c 38 36 35 32 30 35  ......*HQ,865205
0040   30 33 31 31 31 31 31 31 31 2c 43 51 23             031111111,CQ#                   <- missing EOL
Anton Tananaev7 years ago

Well, it works for most devices, so we can't really break existing ones.

Piorun7 years ago

h02 works over UDP on build 3.16, THX!