Server 6.11.1 broken decoder for Teltonika FMC003

aleagudom 8 hours ago

And what's the parameter name now?
I didn't find any towing or similar parameter on the table, and also no warning symbol was showed when triggering a towing.
Home Assistant wasn't receiving any new parameter related to towing.

Anton Tananaev 8 hours ago

It's the alarm attribute.

Kaldek an hour ago

An FMB965 will be decoded correctly as per the recently updated Teltonika Decoder code (which might have been deployed with 6.11, I can't recall exactly):

 Predicate<String> fmbXXX = (m) -> m != null && (m.startsWith("FM") || m.equals("MTB100") || m.equals("MSP500"));
        Predicate<String> fmb6XX = (m) -> m != null && m.matches("FM.6..");

And the parameter decoding for that:

register(246, fmbXXX, (p, b) -> p.addAlarm(b.readUnsignedByte() > 0 ? Position.ALARM_TOW : null));

Any time data arrives with parameter 246 value greater than 0 it will set the Towing Alarm in Traccar. I have validated this works just this week on our FMM130 and FMM880 units we sell.

Kaldek an hour ago

If you want to disprove this, it's easy enough. Go into Reports-->Logs and when that device IMEI sends the data where you believe parameter 246 is "1", copy that string and use ChatGPT or something to decode the Codec 8 data.