Display value in Traccar

Ma year ago

Hi everyone,

I have successfully read the engine fuel rate via the hex code 0x15e using a Freematics One+ H (in this case the value is 50).
This is the hex string that is making it to the Traccar server (confirmed via logs):

5543464c4646594623303a3134393337352c3130443a302c3130433a302c3131313a302c3130343a302c3135453a35302c32343a313138342c32303a303b303b302c38323a34342a4645

Which decoded looks like this (Note the 115E:50 section):

UCFLFFYF#0:149375,10D:0,10C:0,111:0,104:0,15E:50,24:1184,20:0;0;0,82:44*FE

My question is: How do I make this value show somewhere in Traccar? Ideally I would like to show it when a user clicks on the vehicle but anywhere else would be acceptable too.

Thank you

Ma year ago

Small correction on a typo:
On the line that reads "Which decoded looks like this (Note the 115E:50 section)"
I meant: "15E"

Anton Tananaeva year ago

I believe Traccar should handle all of the values, at least as generic IO values.

Ma year ago

This is what I see when I go to "more details" for the vehicle in question (note that io271 is not the key/value being discussed):

https://ibb.co/pZ0wXpr

I appreciate any guidance you can provide as to how to get the fuel rate to show up.

Anton Tananaeva year ago

Are you sure you're looking at the same sample?

Ma year ago

Yes, I am 100% sure.

To be clear, my OBD device sends the 15E:50 "key/value pair" only when there is a change in fuel rate and then it stops sending it.

I'm not sure if this fact is what is getting Traccar to not display the value in "more details"?

Anton Tananaeva year ago

That's why I'm asking if you're looking at the right position.

Ma year ago

Sorry, what do you mean right position? And yes, this is the right vehicle (if that's what you are asking me).

This is exactly where I am looking: https://ibb.co/pZ0wXpr

Anton Tananaeva year ago

Position is a data point, not vehicle.

Ma year ago

Please elaborate as to what you mean when you ask if "I am in the right position".
Have you had a chance to look at the screenshot that I posted? Where else should I be looking?

I've provided the hex data being sent to Traccar directly from the Traccar log and a screenshot of where the fuel rate data would presumably be visible to the user. I'm not sure where else I should be looking.

Where would one find this "position"?

Anton Tananaeva year ago

How did you determine that what you see on the screenshot corresponds to the specific HEX message you see in the logs?

Ma year ago

I was looking at the live Traccar map on one screen (where I have only one car) and I was looking at the live Traccar server log on the other screen.

I then waited for this hex message containing the fuel rate to show up in the Traccar log:

5543464c4646594623303a3134393337352c3130443a302c3130433a302c3131313a302c3130343a302c3135453a35302c32343a313138342c32303a303b303b302c38323a34342a4645

I then decoded the message using: https://www.traccar.org/hex-decoder/ and confirmed that the message indeed contain the fuel rate (15E:50).

Then I went to the live Traccar map, clicked on the live position of the vehicle, then clicked on "more details" and that is where my screenshot is coming from.

Anton Tananaeva year ago

How frequently do you get messages? Are you sure there were no other message next second before you managed to check the web app?

Ma year ago

I get messages every second and yes there were messages that came after the message I pasted on this thread.

Ma year ago

I resolved my issue.

It turns out Freematics allows you to setup a PID to poll and a "tier".

Tier 1 basically ensures that the value for the PID is polled every time and also sent to Traccar every time.

Changing the tier for PID_ENGINE_FUEL_RATE to be 1 solved my issue.

Thanks!