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.

Thanks

Regards

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,

    Heidi

  • 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,

    Heidi

  • 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. 

    slm_at_commands_v1.1.xlsx

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

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

    Let me know if this works for you!

    Best regards,

    Heidi

Related