Only few 'statusCode' values are found

Srini Kandula7 years ago

Hi there,
We are using forward.url feature to receive the GPS event data to one of our REST APIs. We are trying to find the event which has status code indicates when the vehicle is stopped. I'm referring to the status codes here http://www.geotelematic.com/docs/StatusCodes.pdf. When I inspect the data the only status code we are receiving are 'null', '0xF020', '0xF11C' and '0xF841'. As per the referred document I don't see any events indicating stopped event. What is that I'm missing? Below is part of my traccar config.

<entry key="forward.enable">true</entry>
<entry key="forward.url">http://xyz/api/kafka/addDevicePosition?gprmc={gprmc}&amp;name={name}&amp;uniqueId={uniqueId}&amp;deviceId={deviceId}&amp;protocol={protocol}&amp;deviceTime={deviceTime}&amp;fixTime={fixTime}&amp;valid={valid}&amp;latitude={latitude}&amp;longitude={longitude}&amp;altitude={altitude}&amp;speed={speed}&amp;course={course}&amp;statusCode={statusCode}&amp;attributes={attributes}&amp;address={address}&amp;</entry>

-Srini

Anton Tananaev7 years ago

OpenGTS status code handling in Traccar is very limited:

https://github.com/traccar/traccar/blob/master/src/org/traccar/WebDataHandler.java#L73

Srini Kandula7 years ago

Thank you for the reply. How do you suggest I can recognize a stopped vehicle?

Anton Tananaev7 years ago

By speed value?