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.