Teltonika FMB140 data error

hornyakn2 years ago

I use traccar 5.6 on my own server. The clients are Teltonika FMB140 devices.
The device try to send datas to the server, but it is failing with:

2023-04-02 14:22:46  INFO: [Uafadc0ce] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)

I dont know what is that and how can I fix it...

Anton Tananaev2 years ago

It looks like your device sent only a single byte of data. Is that expected? Do you have documentation explaining it?

hornyakn2 years ago

I dont know and I not exactly understand your question... What kind of documentation? I just want to track my vehicles and collecting can data in traccar.

hornyakn2 years ago

I'm happy to help or debug if you can say what I need to do. :)

Anton Tananaev2 years ago

You probably need to forward this question to Teltonika support. This looks like a device malfunction to me, but maybe there's a valid case for sending a single byte of information to the server. It would also be helpful if you shared the actual HEX before this error.

hornyakn2 years ago

All 3 devices are wrong? I'm not think so, small chance.

hornyakn2 years ago
2023-04-02 14:15:07  INFO: [Uad462d5b: teltonika < 1.2.3.4] 0053cafe0151000f33353035343435303934313236303008010000018741b0d280000ce7aa581c58154a00000000000000000a05ef00f0001505c803450303420000430ebd44000002f1000054a6100001cbd50001
2023-04-02 14:15:07  INFO: [Uad462d5b: teltonika > 1.2.3.4] 00050000015101
2023-04-02 14:15:07  INFO: [Uad462d5b] id: XXXXXXXXXXXXXX, time: 2023-04-02 13:18:40, lat: 1.11111, lon: 2.22222, course: 0.0
2023-04-02 14:15:38  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:15:38  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
2023-04-02 14:16:08  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:16:08  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
2023-04-02 14:16:38  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:16:38  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
2023-04-02 14:17:09  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:17:09  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
2023-04-02 14:17:39  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:17:39  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
2023-04-02 14:18:09  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:18:09  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
2023-04-02 14:18:39  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:18:39  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
2023-04-02 14:19:09  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:19:09  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
2023-04-02 14:19:39  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:19:39  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
2023-04-02 14:19:46  INFO: [Uad462d5b: teltonika < 1.2.3.4] 0053cafe0152000f33353035343435303934313236303008010000018741e8a778000ce7aa581c58154a00000000000000000a05ef00f0001505c803450303420000430e5d44000002f1000054a6100001cbd50001
2023-04-02 14:19:46  INFO: [Uad462d5b: teltonika > 1.2.3.4] 00050000015201
2023-04-02 14:19:46  INFO: [Uad462d5b] id: XXXXXXXXXXXXXX, time: 2023-04-02 14:19:39, lat: 1.11111, lon: 2.22222, course: 0.0
2023-04-02 14:20:16  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:20:16  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
2023-04-02 14:20:46  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:20:46  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
2023-04-02 14:21:16  INFO: [Uad462d5b: teltonika < 1.2.3.4] ff
2023-04-02 14:21:16  INFO: [Uad462d5b] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:72 < ... < StandardLoggingHandler:44 < ...)
Anton Tananaev2 years ago

Can you please try the preview version?

https://www.traccar.org/preview/

Kaloyan Kanev2 years ago

@hornyakn, are you using Codec 8 Extended protocol ?
Open your Teltonika configurator, go to System -> System Settings and in Data Protocol set Codec 8 Extended.
Save settings to device and make restart.

hornyakn2 years ago

@Anton: This seems to be better, there is data in traccar, but some are missing. But no log file created and therefore no logs, no I don't know...
@Kaloyan: Currently I think no, simple Codec8. But earlier i tried this too.

hornyakn2 years ago

Better, but still have errors

2023-04-03 08:18:22  INFO: [U85f886ec: teltonika < 1.2.3.4] 009fcafe01a1000f33353035343435303934313236303008010000018745c418a0000ce7b0fc1c58114100f900ac060000f01d08ef00f0001505c80045015100520059000ab50011b6000e423040430fb244007e5400005500005a00006e00007300000af1000054a61000025422530000000057000000006400002bfe6600000000670000000069000000006b000000007b000000000165000000000000000001
2023-04-03 08:18:22  INFO: [U85f886ec] id: XXXXXXXXXXXXXXX, time: 2023-04-03 08:18:12, lat: 1.11111, lon: 2.22222, course: 172.0
2023-04-03 08:18:22  INFO: [U85f886ec: teltonika > 1.2.3.4] 0005000001a101
2023-04-03 08:18:54  INFO: [U85f886ec: teltonika < 1.2.3.4] ff
2023-04-03 08:18:54  INFO: [U85f886ec] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:75 < ... < StandardLoggingHandler:44 < ...)
2023-04-03 08:19:24  INFO: [U85f886ec: teltonika < 1.2.3.4] ff
2023-04-03 08:19:24  INFO: [U85f886ec] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:75 < ... < StandardLoggingHandler:44 < ...)
2023-04-03 08:19:54  INFO: [U85f886ec: teltonika < 1.2.3.4] ff
2023-04-03 08:19:54  INFO: [U85f886ec] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:75 < ... < StandardLoggingHandler:44 < ...)
2023-04-03 08:20:24  INFO: [U85f886ec: teltonika < 1.2.3.4] ff
2023-04-03 08:20:24  INFO: [U85f886ec] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:75 < ... < StandardLoggingHandler:44 < ...)
2023-04-03 08:20:54  INFO: [U85f886ec: teltonika < 1.2.3.4] ff
2023-04-03 08:20:54  INFO: [U85f886ec] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:75 < ... < StandardLoggingHandler:44 < ...)
2023-04-03 08:21:24  INFO: [U85f886ec: teltonika < 1.2.3.4] ff
2023-04-03 08:21:24  INFO: [U85f886ec] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:75 < ... < StandardLoggingHandler:44 < ...)
2023-04-03 08:21:54  INFO: [U85f886ec: teltonika < 1.2.3.4] ff
2023-04-03 08:21:54  INFO: [U85f886ec] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:75 < ... < StandardLoggingHandler:44 < ...)
2023-04-03 08:22:24  INFO: [U85f886ec: teltonika < 1.2.3.4] ff
2023-04-03 08:22:24  INFO: [U85f886ec] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:75 < ... < StandardLoggingHandler:44 < ...)
2023-04-03 08:22:54  INFO: [U85f886ec: teltonika < 1.2.3.4] ff
2023-04-03 08:22:54  INFO: [U85f886ec] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:75 < ... < StandardLoggingHandler:44 < ...)
2023-04-03 08:23:24  INFO: [U85f886ec: teltonika < 1.2.3.4] ff
2023-04-03 08:23:24  INFO: [U85f886ec] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:75 < ... < StandardLoggingHandler:44 < ...)
hornyakn2 years ago
2023-04-03 08:14:16  INFO: [U85f886ec: teltonika > 1.2.3.4] 00050000016d03
2023-04-03 08:14:47  INFO: [U85f886ec: teltonika < 1.2.3.4] ff
2023-04-03 08:14:47  INFO: [U85f886ec] error - readerIndex(0) + length(2) exceeds writerIndex(1): PooledUnsafeDirectByteBuf(ridx: 0, widx: 1, cap: 2048) - IndexOutOfBoundsException (... < TeltonikaProtocolDecoder:666 < *:644 < ExtendedObjectDecoder:75 < ... < StandardLoggingHandler:44 < ...)
2023-04-03 08:14:47  INFO: [U85f886ec: teltonika < 1.2.3.4] 009fcafe016e000f33353035343435303934313236303008010000018745c0ec20000ce4ca9a1c56b34100000000030000001d08ef01f0011503c80045025100520059000ab5001db6001b42383f430fa44400875400005500005a00006e00007300000af1000054a61000024c83530000000057000000006400002bfe6600000000670000000069000000006b000000007b000000000165000000000000000001
2023-04-03 08:14:47  INFO: [U85f886ec] id: XXXXXXXXXXXXXXX, time: 2023-04-03 08:14:44, lat: 1.11111, lon: 2.22222, course: 0.0
2023-04-03 08:14:47  INFO: [U85f886ec: teltonika > 1.2.3.4] 00050000016e01
Anton Tananaev2 years ago

It does look like it's sending one byte messages:

2023-04-03 08:21:54  INFO: [U85f886ec: teltonika < 1.2.3.4] ff

You need to ask Teltonika for the documentation for it. It doesn't really make sense to me.

Kaloyan Kanev2 years ago

@hornyakn, all FMB140 devices with firmware after 3.25 MUST to set Codec 8 Extended protocol!
I working only with Teltonika devices and Traccar working without problems with them.

hornyakn2 years ago

@Anton: Maybe a keepalive packet?
@Kaloyan: At morning I switched to Codec 8 Extended. Where I can find the stored can datas in traccar?