Serial LTE Modem : can only send once through datamode

Hello, I'm using the latest version of the Serial LTE Modem on an nrf9160-dk, with CTS/RTS activated. I'm using NRF's Serial Terminal V1.1.1 to communicate with my NRF9160 through UART (using a TTL-234X-3V3)

My datamode terminator is +++\r\n and works.

When I create a socket, connect to it and then try to send, it only works the first time, but not the following times. If I try to send data with the regular AT#XSEND= command, it does work multiple times.

AT+CFUN=1
AT#XSOCKET=1,1,0
AT#XCONNECT="postman-echo.com"
AT#XSEND="GET /get HTTP/1.1
host: postman-echo.com

"
AT#XRECV=1
AT#XSEND="GET /get HTTP/1.1
host: postman-echo.com

"
AT#XRECV=1
AT#XSEND="GET /get HTTP/1.1
host: postman-echo.com

"
AT#XRECV=1
<...>

This works no matter how much I do it.

AT+CFUN=1
AT#XSOCKET=1,1,0
AT#XCONNECT="postman-echo.com"
AT#XSEND
GET /get HTTP/1.1
host: postman-echo.com

+++
AT#XRECV=1 //I do get the correct result there
AT#XSEND
GET /get HTTP/1.1
//It stops right there and doesn't even allow me to go farther

When using datamode, the second AT#XSEND just doesn't work and returns a #XDATAMODE: 0 after the first line written.

RTT log of when that happens:

<err> slm_sock: send() failed: -128, sent: 0
[01:20:51.398,071] <inf> slm_sock: datamode send: -1
[01:20:51.398,101] <wrn> slm_at_host: Raw send failed, 3 dropped

same things happens when I connect another MCU directly to the NRF9160DK

Parents Reply Children
No Data
Related