Ignition state of GPS103B with Protocol H02 and Port 5013 is not show correctly

hss9 years ago

Dear Anton

I am using a Coban Tracker model GPS103B with Protocol H02 and Port 5013.

The data is arriving correctly to my server:

2a48512c3335353438383032303131353835302c56312c3032333934342c2c333332372e30333738342c532c30373033342e32393338352c572c302e30302c302c3239303131362c4646464146464646230d0a

*HQ,355488020115850,V1,023944,,3327.03784,S,07034.29385,W,0.00,0,290116,FFFAFFFF#

But there is a problem:

When the ACC signal is in off state (no power in ACC wire), the Web GUI shows Ignition = True
When the ACC signal is in on state (12V power in ACC wire), the GUI shows Ignition = False

How can I correct this?

Which lines of code I need to change on source code v3.2 to correct it?

Regards,

Carlos

Anton Tananaev9 years ago

You need to make a change in H02ProtocolDecoder.java line 69.

hss9 years ago

Which change must I do? Could you show me please?

Anton Tananaev9 years ago

Just remove the exclamation mark.

hss9 years ago

OK, now the ACC status works OK. Thanks a lot.

hss9 years ago

Hi Anton

Now I need to translate the status words (true, false) to spanish language ... How can I do this?

I want to show:

Ignition: true > Ignicion > Encendido
Ignition: false > Ignicion > Apagado

Thanks in advance.

Anton Tananaev9 years ago

Unfortunately there is no localization support for attributes at the moment, but you can change the name directly in the code.

sulfy8 years ago

Me too have the exact same problem,
When the ACC signal is in off state (no power in ACC wire), the Web GUI shows Ignition = True
When the ACC signal is in on state (12V power in ACC wire), the GUI shows Ignition = False

Can you please help me on this? , i am not familiar with java coding

Anton Tananaev8 years ago

@sulfy, the issue is already fixed on GitHub. You can just wait for next Traccar release or build it from source yourself.