Teltonika Protocol - Attribute values

Anton Tananaev8 years ago

I don't. You should check with Teltonika.

DeZ8 years ago

Ok, but can you tell me wich value you get in this attribute event throught your teltonika protocol ?

Thanks

Anton Tananaev8 years ago

I have no idea what you are talking about. How would I know the value?

DeZ8 years ago

Sorry my english is bad.

I understand that you don't know the code definition.

But can you tell me where you get this code in the raw data of teltonika

Anton Tananaev8 years ago

I still don't understand what you mean. Maybe source code will answer your question:

https://github.com/tananaev/traccar/blob/master/src/org/traccar/protocol/TeltonikaProtocolDecoder.java

DeZ8 years ago

Ok i understand i thought that is an attribute that you mapping in standart traccar attribute event but it is a TELTONIKA attribute Event ID like ioXXX

I found it, it's driver event

Thanks

DeZ8 years ago

Hello,

i found the definition of all codes for io Value.

But i have a problem with the io113 which is 65216 – Service Information.

i receive a long integer like 4294958841 but the real value in teltonika protocol is : -8455 / 4294958841.

Why traccar keep only the last value ? after the /

Thanks

PS : i have the 3.10 version of traccar

DeZ8 years ago

after investigation from the raw data i think that i found a solution

in reality i receive : FFFFDEF9

if i split this value in two parts : FFFF and DEF9, i found 65535 and 57071

And the result of 57071-65535 = -8454, the expect value

You think that is correct ?

i write this function in mysql for select statement :

conv(substr(conv(JSON_EXTRACT(attributes, '$.io113'), 10, 16),5,4),16,10)-
conv(substr(conv(JSON_EXTRACT(attributes, '$.io113'), 10, 16),1,4),16,10)

Anton Tananaev8 years ago

Both values are the same on the binary level. One is unsigned integer and the other one is signed.

DeZ8 years ago

Hello

I don't understand what you mean.

The value -8455 and 4294958841 are same ?

Can you explain me plz ?

Anton Tananaev8 years ago
Anazapta8 years ago

Hi Dez,

Can you help me with the IO definitions for measuring the Fuel Sensor.
I have FM5300 with Sensor installed. How to get the IO for fuel level ?

Thanks,
Ermali

DeZ8 years ago

Hi Ermalbaj

Sorry for my late response ...

what did you mean by Fuel Sensor ?

You have sensor accessorie to measure fuel level connected to FM5300 ?

i don't use this accessorie i get the fuel level directly from CAN.

Anazapta8 years ago

Hi Dez,

i have installed DUT-A sensor device which measure the level of fuel and this device
is connected with FM5300 and should receive analog data.
but i dont receive any IO protocol from teltonika. how do you get fuel level from CAN?
do you have the latest teltonika protokol or manual ? please send to me
ermalbaj@gmail.com

Best Regards,
Ermali

DeZ8 years ago

Hello,

Sorry but this document are confidential and i can't send you.

But with Google Cahe i retreive version of manual

http://webcache.googleusercontent.com/search?q=cache:Wp_C53KKSpYJ:www.teltonika.lt/%3Fmedia_dl%3D3466+&cd=1&hl=fr&ct=clnk&gl=fr

Fuel Tank sensors
A fuel tank level sensor exists in most of the cars, which shows the approximate fuel level in the driver’s indicator panel. It is possible to connect FM5300 Analog input (if sensor returns analogue signal proportional to fuel level). Figure describes the connection scheme to the FM5300 and fuel tank sensor. After the connection to the tank fuel level sensor, calibration is needed. Calibrations needed due of the fact that most fuel tank sensors are not linear. Calibration is being performing by measuring voltage dependence on volume of fuel in tank.

And more a docuementation with DUT-E device

http://technoton-msk.ru/myfiles/deklaracii_o_sovmestimosti/Deklaratsiya_o_sovmestimosty_DUT-E_232_i_Teltonika_FM5300.pdf

Bye