I’m using GL865 Dual module to sent data to a server over HTTP protocol. When I send data to a test server over GPRS, sometimes it works correctly but sometimes last part of the data is not received by server. In that case, sent part of the data is nearly multiple of TCP packet size. For example, if I send 1KB data and packet size is 300 bytes, nearly 600 bytes of data (sometimes nearly 300 or 900 bytes of it) will be received by the server. The number is not 600 but always the same value. Problem is not connection drop. Server gets the data it can and responds with a short string containing the number of correctly sent data, then connection is closed.
I tried many things:
I tried many times to solve that problem but I cannot find the reason. Some other things:
Use AT#SI to investigate if all data is handled by the socket, maybe some of it lost between the micro and module.
Maybe there are baudrate issues, fix it in module with AT+IPR.
Hit enter to search or ESC to close
Knowledge Base & Download Zone