Serial LTE Modem TCP/IP Example

I have programmed the NRF9160 with the Serial LTE Modem example and am following along with the example here - Testing scenarios — nRF Connect SDK 2.0.99 documentation (nordicsemi.com)

First thing I notice is AT#XSLMVER returns 2.0.2 instead of 1.5 in the example. 

When I try AT#XSOCKET=1,1,0 it returns XSOCKET: 0,1,6 instead of 1,1,0,6 in the example. 

AT#XSSOCKET? returns 0,1,0 instead of 1,6,0.

I do get the expected OK response from AT#XSOCKETOPT=1,20,60

The rest of the example trying to connect to port 80 of google.com does not seem to work. 

Any ideas, or perhaps I've done something wrong?


Thank you! 

Parents
  • Hi Eric,

    Thanks for the update. I tested data mode and it seems work on LTE Link Monitor. Just ignore the timed-out reminder since it does not give a response on data mode before end with +++

    2022-09-01T08:26:41.488Z DEBUG modem >> AT#XSOCKET=1,1,0
    2022-09-01T08:26:41.506Z DEBUG modem << #XSOCKET: 0,1,6
    2022-09-01T08:26:41.507Z DEBUG modem << OK
    2022-09-01T08:26:49.579Z DEBUG modem >> AT#XSOCKETOPT=1,20,30
    2022-09-01T08:26:49.588Z DEBUG modem << OK
    2022-09-01T08:26:56.219Z DEBUG modem >> AT#XCONNECT="google.com",80
    2022-09-01T08:26:56.956Z DEBUG modem << #XCONNECT: 1
    2022-09-01T08:26:56.957Z DEBUG modem << OK
    2022-09-01T08:26:56.961Z DEBUG modem << %CESQ: 49,2,17,2
    2022-09-01T08:27:04.954Z DEBUG modem >> AT#XCONNECT="google.com",80
    2022-09-01T08:27:04.972Z DEBUG modem << ERROR
    2022-09-01T08:27:04.973Z ERROR Error: AT#XCONNECT="google.com",80
     failed
    2022-09-01T08:27:23.565Z DEBUG modem << %CESQ: 255,0,255,0
    2022-09-01T08:27:25.172Z DEBUG modem >> AT#XSEND
    2022-09-01T08:27:26.173Z ERROR Error: 'AT#XSEND
    ' timed out
    2022-09-01T08:27:28.828Z DEBUG modem >> xdasfa
    2022-09-01T08:27:29.841Z ERROR Error: 'xdasfa
    ' timed out
    2022-09-01T08:27:34.515Z DEBUG modem >> xdasfafdafdsaf+++
    2022-09-01T08:27:34.566Z DEBUG modem << OK

    We do not provide such a server for test. You need to build your own with python or other script languages. There are also TCP server apps that can directly run on your PC. You need to make sure the server is exposed to the internet with a Public IP and stop the server when you do not use it for security reasons.

    Best regards,

    Charlie

Reply
  • Hi Eric,

    Thanks for the update. I tested data mode and it seems work on LTE Link Monitor. Just ignore the timed-out reminder since it does not give a response on data mode before end with +++

    2022-09-01T08:26:41.488Z DEBUG modem >> AT#XSOCKET=1,1,0
    2022-09-01T08:26:41.506Z DEBUG modem << #XSOCKET: 0,1,6
    2022-09-01T08:26:41.507Z DEBUG modem << OK
    2022-09-01T08:26:49.579Z DEBUG modem >> AT#XSOCKETOPT=1,20,30
    2022-09-01T08:26:49.588Z DEBUG modem << OK
    2022-09-01T08:26:56.219Z DEBUG modem >> AT#XCONNECT="google.com",80
    2022-09-01T08:26:56.956Z DEBUG modem << #XCONNECT: 1
    2022-09-01T08:26:56.957Z DEBUG modem << OK
    2022-09-01T08:26:56.961Z DEBUG modem << %CESQ: 49,2,17,2
    2022-09-01T08:27:04.954Z DEBUG modem >> AT#XCONNECT="google.com",80
    2022-09-01T08:27:04.972Z DEBUG modem << ERROR
    2022-09-01T08:27:04.973Z ERROR Error: AT#XCONNECT="google.com",80
     failed
    2022-09-01T08:27:23.565Z DEBUG modem << %CESQ: 255,0,255,0
    2022-09-01T08:27:25.172Z DEBUG modem >> AT#XSEND
    2022-09-01T08:27:26.173Z ERROR Error: 'AT#XSEND
    ' timed out
    2022-09-01T08:27:28.828Z DEBUG modem >> xdasfa
    2022-09-01T08:27:29.841Z ERROR Error: 'xdasfa
    ' timed out
    2022-09-01T08:27:34.515Z DEBUG modem >> xdasfafdafdsaf+++
    2022-09-01T08:27:34.566Z DEBUG modem << OK

    We do not provide such a server for test. You need to build your own with python or other script languages. There are also TCP server apps that can directly run on your PC. You need to make sure the server is exposed to the internet with a Public IP and stop the server when you do not use it for security reasons.

    Best regards,

    Charlie

Children
No Data
Related