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
  • Please enable UDP proxy:

    CONFIG_SLM_UDP_PROXY=y

    and connect using:

    • AT#XUDPCLI=<op>[,<url>,<port>[,<sec_tag>]

    • AT#XUDPSEND=<datatype>,<data>

    recv is handled automatically when using proxy.

    "Proxy" not related to a proxy server as commonly known.
    It is named a proxy as it stands between the TCP interface of the modem and the application itself.
    The modem TCP/UDP layer supports full-duplex but the AT commands are blocking, 
    so we need this added interface to remove the blocking behavior.

Children
Related