Teltonika Ignition Status

jack s4 years ago

Hello,
When I monitor Ignition through the configurator it is always 1 but through the program in debug mode it is random 1 or 0 or not enter the case 239, Is there an explanation for this?
and the Id of Ignition in configurator is 101 but in code is 239, why you put it 239?

Ignition Status Image

Ignition Config Image

// TeltonikaProtocolDecoder, when monitor val I see 0,1 or not enter this case
            case 239:
                long val = readValue(buf, length, false);
                position.set(Position.KEY_IGNITION, val == 1);
                break;

Could you please help me?

Anton Tananaev4 years ago

Different Teltonika devices use different ids.

jack s4 years ago

Is this TeltonikaProtocolDecoder supports FMB120?

jack s4 years ago

Hi,
This is the result of sql server query on position,
when ignition is on.
position query

Joystick4 years ago

Hi Jack s,

Case 239 is correct for FMB120 ignition, refer to avl below.
https://wiki.teltonika-gps.com/view/FMB120_AVL_ID

If you set ignition to be triggered by DIN1 on FMB120 traccar server will show ignition as on when di1 is powered on the Teltonika device.

jack s4 years ago

Ok, thank you Pete.

br04 years ago

Вы путаете, это разные параметры. Вот вам подробный отчет.
Событие 239 генерируется трекером:

  1. В зависимости от приоритета этого события Low,High,Panic.
  2. И в зависимости от установленного параметра "operand" (см. скриншот). В моем случаи при вкл/выкл, то есть при смене и отправляется на сервер один раз.
    1

Параметр 101 отвечает за установку одного из 14 вариантов распознавания режима зажигания. Которое, если будет распознано, отправит вам параметр 239.
Установка этого параметра через смс (два пробела если нету логина и пароля) setparam101:idnumber
Ссылка на этот параметр и описание к нему здесь.

Kaloyan Kanev4 years ago

Jack, just use copy.attribute in Traccar config file

br04 years ago

Kaloyan, If you do that, you will miss other important messages. The event must be one, without repetition.

Kaloyan Kanev4 years ago

br0, I use Teltonika from one year. I not missing any other info.
For example you can see this screen shots:
To handle ignition ON and show it in user interface - Example 1
In trip report, which starting after ignition On and ending after ignition Off - Example 2

br04 years ago

Yes, but we are talking about event 239. You only need to send ignition once, becouse there are many other events on the line. I am telling about 253(eco), 240(moving),246(towing) and many others.
p.s. great web interface ;)