nrf 9160 Serial LTE Modem

Hello All,

I used the sample Serial LTE modem code and downloaded it to nrf9160. Can some please help me with a sample AT commands to send to tcp/udp server and how should I receive it on the server (like a basic implementation). It would great help.



Nordic user

Top Replies

  • Hi!

    The documentation shows which AT commands are used in this sample, see here. So you can use any of these. 

    how should I receive it on the server (like a basic implementation)

     This really depends on what you're planning to do.

    What are you trying to achieve with this application? Could you give some specifics?

    Best regards,


  • Thanks for the reply Heidi and apologies for the late reply. Let me frame the question in a different way. I am getting error when I type in AT command mentioned in the post. Could you please give me an example. of the AT Command which you send specifically which doe work and also I am not sure about the what does "op" and "type" mean in "AT#XSOCKET=<op>[,<type>]".

    Thanks in advance

  • Okay, I see.

    I'm not sure about the answer, and for some reason, I can't get the sample up and running at the moment. We're short on staff here at Nordic at the moment due to the holidays so I will have to get back to you on January 6th.

    Best regards,


  • Thanks Heidi, Looking forward to hear from you on 6th Jan. 

    Happy New Year,

    Best Regards

    Nordic User

  • Hi!

    I have attached a more thorough documentation of the individual AT commands. 


    And here is an example of how to test connecting to a server over TCP. 

    //Opening socket and type SOCK_STREAM (1)
    //Response: #XSOCKET: <handle>[,<protocol>]
    //Bind socket with local port
    //Connect to TCP server with url and port
    at#xtcpconn="", <port>
    //Respose: #XTCPCONN: <status> (1: connected, 0: disconnected)
    //Send data over TCP connection
    //Receive data over TCP connection
    //<length> is requested number of bytes
    //<timeout> is timeout value in seconds. If not specified, then system default
    //Closing cosket
    //Response: #XSOCKET: <handle>[,<protocol>]

    Let me know if this works for you!

    Best regards,