Buffer Overflow Issue on FMC234 During Data Transmission to TCP Server

Hello,

I’m experiencing an issue with my FMC234 device when attempting to send data to a custom TCP server. The device is configured to transmit AVL data every 10 seconds. While the IMEI is successfully sent to the server, and an acknowledgment is correctly received, the connection subsequently fails due to a buffer overflow issue on the device.

Here are the logs showing the IMEI transmission and acknowledgment:

[2024.11.15 15:01:00]-[REC.SEND.1] send imei
[2024.11.15 15:01:01]-[ATCMD] <<AT+CIPSEND=0,17
[2024.11.15 15:01:01]-[ATCMD] >>[213] >K
[2024.11.15 15:01:01]-[NETWORK.PARSER] Parsing data from 0 socket, data len: 1
[2024.11.15 15:01:01]-[NETWORK.PARSER] imei answer received!

However, immediately after the acknowledgment, the connection fails due to a buffer overflow issue, as shown in the following logs:

[2024.11.15 15:01:01]-[CODEC.APP] 0x000000BC doesn't fit into buffer
[2024.11.15 15:01:01]-[NETWORK] ERROR @ m2m_network_api.c(2802):[SEND.DATA.0961] Error: 4
[2024.11.15 15:01:01]-[NETWORK] WARNING @ 3033:[ERROR.HANDLER.0961] Caller: 4/send data, code: 4, type: 1, Cnt:[E:0, W:99, A:0]

Additional diagnostic information showing the connection status and actions taken during the send attempt:

[2024.11.15 15:01:00]-[ATCMD] <<AT+CIPSTART=0,"TCP","<server_address>",5000
[2024.11.15 15:01:01]-[ATCMD] >>[213] >K
[2024.11.15 15:01:01]-[ATCMD] >>[214]  
[2024.11.15 15:01:01]-[ATCMD] >>[214] 0,SEND OK
[2024.11.15 15:01:01]-[NETWORK] [SEND.DATA.0857] Waiting for socket send result, waiting: 10 sec
[2024.11.15 15:01:01]-[MDM.QTL] RX HANDLE data pending state
[2024.11.15 15:01:01]-[MDM.ALT] ERROR @ m2m_modem_meig_slm320.c(323):Sock:0 closed before reading

Could you help clarify what might be causing this buffer overflow issue and the subsequent disconnection?

Thank you for your assistance.

Hi @mrcsofia

Good day, have you tried to use another TCP server to test your device? Please try to test using flespi and check if the device will send the records to the server without any issue : flespi panel

On the other hand please update the firmware of your device to the latest version:
Download link:
https://wiki.teltonika-gps.com/view/Special:Redirect/file/03.29.00.Rev.601_and_configurator.zip

If the issue still happens kindly contact your sales manager or contact us via the Helpdesk.

Best Regards
Maynard C

This topic was automatically closed after 15 days. New replies are no longer allowed.