This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sending UDP using the Serial LTE Modem application - AT sequence

Hi

I have upgraded from an early version of SLM to the latest version in nRF Connect SDK ver. 1.3.1

the SLM application is running on a custom board with a nRF52840. Using the old version of SLM, the following commands resulted in successful communication:

  

at#xsocket=1,2
at#xudpsendto="xx.xxx.xx.xxx",xxxx,"testing"
at#xudprecvfrom="xx.xxx.xx.xxx",xxxx,100,1
at#xsocket=0

What is the correct sequence of AT commands in the new version? And is there some documentation on available commands in the SLM application?

Parents Reply
  • Using the draft documentation, I ended up with this sequence:

    at#xsocket=1,2,0    // must have the last zero
    at#xsendto="xx.xxx.xx.xxx",xxxx,"Test UDP"
    
    // both below works ok
    at#xrecvfrom="xx.xxx.xx.xxx",xxxx
    at#xrecvfrom="xx.xxx.xx.xxx",xxxx,100,1
    
    at#xsocket=0

    But at#xrecvfrom hangs if there is no data from the network. Is there a way to test before fetch, or a timeout parameter?

Children
Related