Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

Issue establishing a TCP connection using PLS62-W | Telit Cinterion IoT Developer Community

February 4, 2020 - 12:46pm, 6619 views

Hi,

I am currently trying to create a TCP socket to connect my AWS broker. My plan is to once I can succesfully connect to AWS using transparent TCP, is to use the MQTT client in my micrcontroller to publish data.

This is the steps that I have taken to try and create transparent TCP connection:

*Setup internet service profile*

 AT+CPIN? +CPIN: READY 

OK

AT+CSQ

+CSQ: 4,99

OK

AT+COPS?+COPS: 0,0,"vodafone UK",2

OK

AT+CGREG?+CGREG: 0,1

OK

AT+CGDCONT=1,"IP","wap.vodafone.co.uk"

OK

AT+CGATT=1

OK

AT^SICA=1,1

OK

*Create TCP socket and establish connection*

AT^SISS=1,srvType,"Socket" 

OK

AT^SISS=1,conId,1

AT^SISS=1,address,"socktcp://xxxxxxxxxxxx-ats.iot.us-west-2.amazonaws.com:8883;etx;timer=200" 

OK

AT^SISO=1

OK

at^sist=1 

OK

at^sisi=1^SISI: 1,6,0,8,8,0

OK

at^sist=1 CONNECT

..

NO CARRIER

^SIS: 1,0,48,"Remote peer has closed the connection"

^SISR: 1,2

AT^SISO?^SISO: 0,""

^SISO: 1,"Socket",5,2,0,16,"10.229.118.129:4098","35.155.189.22:8883"

^SISO: 2,""

^SISO: 3,""

^SISO: 4,""

^SISO: 5,""

^SISO: 6,""

^SISO: 7,""

^SISO: 8,""

^SISO: 9,""

OK

AT^SISW=1,10^SISW: 1,10,0

ERROR

^SIS: 1,0,48,"Remote peer has closed the connection"

^SISR: 1,2

My problem is I keep getting the error ^SIS: 1,0,48,"Remote peer has closed the connection" or ^SISE: 1,61,"Fatal: Service has no socket connection". 

I am able to succesfully connect to my broker using HTTP and publish data to it so am not sure why I am unable to create TCP connection.

Any guidance would be greatly appreciated. 

Thanks