Icomera Moovbox HTTP POST to Traccar server

Dr.Larry4 years ago

After getting a number of icomera moovbox units, I have been trying to get the Moovbox to work with Traccar. I have Hex lines coming into the Traccar server and I was wondering if anyone would know how to get the traccar to receive the http post xml from the moovbox to the traccar. I tried but all I see is the following:

2020-08-16 15:53:46  INFO: [b51b2719: osmand < 182.232.145.37] HEX: 504f5354202f20485454502f312e310d0a486f73743a207a65657263682e64646e732e6e65743a353035350d0a4163636570743a202a2f2a0d0a436f6e74656e742d547970653a206170706c69636174696f6e2f786d6c0d0a436f6e74656e742d4c656e6774683a203333320d0a0d0a3c6770732069643d227836677073223e3c636f6f7264696e617465733e3c636f6f7264696e6174653e3c6669783e333c2f6669783e3c74696d653e313539373536383032303c2f74696d653e3c6c617469747564653e3130302e3732363235323c2f6c617469747564653e3c6c6f6e6769747564653e31332e3832313335363c2f6c6f6e6769747564653e3c616c7469747564653e2d382e3630303030303c2f616c7469747564653e3c636c696d623e302e3030303030303c2f636c696d623e3c73706565643e302e3535333030303c2f73706565643e3c73657061726174696f6e3e2d32372e3330303030303c2f73657061726174696f6e3e3c747261636b3e302e3030303030303c2f747261636b3e3c736174656c6c697465733e373c2f736174656c6c697465733e3c2f636f6f7264696e6174653e3c2f636f6f7264696e617465733e3c2f6770733e
2020-08-16 15:53:46  INFO: [b51b2719: osmand > 182.232.145.37] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2020-08-16 15:53:56  INFO: [b51b2719: osmand < 182.232.145.37] HEX: 504f5354202f20485454502f312e310d0a486f73743a207a65657263682e64646e732e6e65743a353035350d0a4163636570743a202a2f2a0d0a436f6e74656e742d547970653a206170706c69636174696f6e2f786d6c0d0a436f6e74656e742d4c656e6774683a203333320d0a0d0a3c6770732069643d227836677073223e3c636f6f7264696e617465733e3c636f6f7264696e6174653e3c6669783e333c2f6669783e3c74696d653e313539373536383033303c2f74696d653e3c6c617469747564653e3130302e3732363235373c2f6c617469747564653e3c6c6f6e6769747564653e31332e3832313334343c2f6c6f6e6769747564653e3c616c7469747564653e2d372e3630303030303c2f616c7469747564653e3c636c696d623e302e3030303030303c2f636c696d623e3c73706565643e302e3139383030303c2f73706565643e3c73657061726174696f6e3e2d32372e3330303030303c2f73657061726174696f6e3e3c747261636b3e302e3030303030303c2f747261636b3e3c736174656c6c697465733e363c2f736174656c6c697465733e3c2f636f6f7264696e6174653e3c2f636f6f7264696e617465733e3c2f6770733e
2020-08-16 15:53:56  INFO: [b51b2719: osmand > 182.232.145.37] HEX: 485454502f312e31203430302042616420526571756573740d0a636f6e74656e742d6c656e6774683a20300d0a0d0a
2020-08-16 15:54:06  INFO: [b51b2719: osmand < 182.232.145.37] HEX: 504f5354202f20485454502f312e310d0a486f73743a207a65657263682e64646e732e6e65743a353035350d0a4163636570743a202a2f2a0d0a436f6e74656e742d547970653a206170706c69636174696f6e2f786d6c0d0a436f6e74656e742d4c656e6774683a203333320d0a0d0a3c6770732069643d227836677073223e3c636f6f7264696e617465733e3c636f6f7264696e6174653e3c6669783e333c2f6669783e3c74696d653e313539373536383034303c2f74696d653e3c6c617469747564653e3130302e3732363236343c2f6c617469747564653e3c6c6f6e6769747564653e31332e3832313336303c2f6c6f6e6769747564653e3c616c7469747564653e2d362e3330303030303c2f616c7469747564653e3c636c696d623e302e3030303030303c2f636c696d623e3c73706565643e302e3130313030303c2f73706565643e3c73657061726174696f6e3e2d32372e3330303030303c2f73657061726174696f6e3e3c747261636b3e302e3030303030303c2f747261636b3e3c736174656c6c697465733e363c2f736174656c6c697465733e3c2f636f6f7264696e6174653e3c2f636f6f7264696e617465733e3c2f6770733e

So this tells me that the server sees this data from the moovbox, however its not able to decode the format and all I see is the hex data listed above, I would appreciate if someone has a solution to make this work in traccar.

The Moovbox sends out a http post in the following format:

<gps          id="...">
<coordinates>
<coordinate>
<fix>...</fix>
<time>...</time>
<latitude>...</latitude>
<longitude>...</longitude>
<altitude>...</altitude>
<climb>...</climb>
<speed>...</speed>
<separation>...</separation>
<track>...</track>
</coordinate></coordinates>
</gps

The manual from Icomera states:
If you wish to integrate your Moovbox with a third party tracking solution, en-abling GPS Coordinate Transmission will send information to a remote serveras an HTTP POST in XML format. This information includes time stamp, lat-itude, longitude, altitude and speed. The third party application will need to be able to parse the data and interpret it as a supported device type.HTTP URLEnter the URL of the target server location to where you want the HTTP POST request to be sent. This can be either HTTP or HTTPS; FTP URL's are not supported.

If anyone knows how to make this work, please work with me to get it going. Thank you

Dr.Larry4 years ago

after using the hex decoder, this is what the icomera is sending to traccar:

POST / HTTP/1.1
Host: 192.168.1.2:5011
Accept: */*
Content-Type: application/xml
Content-Length: 329

<gps id="911">
<coordinates><coordinate>
<fix>3</fix>
<time>1597580050</time>
<latitude>100.726257</latitude>
<longitude>13.821351</longitude>
<altitude>9.500000</altitude>
<climb>0.000000</climb>
<speed>0.064000</speed>
<separation>-27.300000</separation>
<track>0.000000</track>
<satellites>9</satellites>
</coordinate></coordinates>
</gps>
Anton Tananaev4 years ago

Currently this format is not supported, but it seems to be pretty straightforward to implement.

Dr.Larry4 years ago

What would it take to implement it?

Anton Tananaev4 years ago

If you want to do it yourself, check this documentation:

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

If you need our help, send an email to support.