Transferring different data between HO2 protocol and Traccar.

Radar2 years ago

Hello friends.
As you know, most of the devices made in China use the H02 protocol.
I also want to send different data from the serial port of the device with arduino.
Can I send also different data besides the standard location and altitude information? Is it compatible with Traccar?
Have a nice day.

Anton Tananaev2 years ago

As you know, most of the devices made in China use the H02 protocol.

Most devices made in China use Huabao protocol because it's the government standard in China, but there are still a lot of devices that use H02, mostly for historical reasons.

Can I send also different data besides the standard location and altitude information? Is it compatible with Traccar?

Some additional data is supported. You can check the source code for details.

Radar2 years ago

Thanks Anton. There are Ortem brand devices with 200,000 users in Turkey. The protocol is similar to this.

 ¡HX;86254904730835672;117; 
+QGNSSRD:GNRMC,205815.000,A,3957.6137,N,03251.0129,E,0.67,95.99,201122,,,A*40 ;0;0!

Is there any protocol compatible with this?

Anton Tananaev2 years ago

Looks similar to the standard NMEA format. Not exact match though, so probably would require some modifications to support it.

Radar2 years ago

Which port and protocol should I work on?
I can't see any data in the server logs.

Anton Tananaev2 years ago

NMEA works on port 5005.

Radar2 years ago

Thanks Anton.

2022-12-02 02:08:11  INFO: [T23a9f819: t55 < 37.154.18.225] 404c303336383632353439303437333038333531313230323131323131313535353230333935373631373430333235313032343230303030313030313030423630303030413530323530303021

The data has arrived. Which files should I work with? debug.xml and t55 decoder?

Anton Tananaev2 years ago

The data looks completely different from what you shown before.

What you have now looks like the Net protocol (port 5215).

Radar2 years ago

(Port 5005)
I looked with a hex converter.
HEX:

404c303336383632353439303437333038333531313230323131323131313535353230333935373631373430333235313032343230303030313030313030423630303030413530323530303021

TEXT:

@L036862549047308351120311210003270395762450325101950000100100000000F205A000!

DEVICE'S SMS ANSWER:

¡HX;86254904730835112;117; 
+QGNSSRD: ¤GNRMC,232932.000,A,3957.6245,N,03251.0195,E,0.46,220.94,011222,,,A*72 
;0;0!

Data is correct. What should I do to parse it?

Radar2 years ago

port 5215 worked. Thank you.

Radar2 years ago
2022-12-02 03:21:03  INFO: [Tee085356: net < 37.154.98.136] 404c303336383632353439303437333038333531313230323131323132323139333130333935373631313130333235313032393530303030313030313030433130303030463030463930303021
2022-12-02 03:21:03  INFO: [Tee085356] id: 862549047308351, time: 2021-11-03 01:19:31, lat: 39.96019, lon: 32.85049, speed: 1.9, course: 249.0

Does this protocol support transmitting information such as temperature and humidity from the serial port?