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

You are here

TLS connection to Amazon AWS using the EHS6T module | Telit Cinterion IoT Developer Community

November 14, 2018 - 4:30pm, 4904 views

Hello,

I am trying to establish a TLS connection to Amazon AWS using the EHS6T module.

I have converted my certificates using certs.sh, have uploaded the files to the terminal and have installed them by the following commands:

at^sjmsec="cmd",0B00310001000500020001
at^sjmsec="file",AddHttpsCertificateUntrusted.bin
at^sjmsec="file",AddHttpsClientCertificateUntrusted.bin

A test if HTTPS is setup correctly (at^sjmsec?) shows:

^SJMSEC: 1,1,1,1

OK

I tried to establish the connection by the following commands (they have worked before for an uncertified connection using socktcp://, with another url):

AT^SMSO
AT^SCFG="tcp/WithURCs","off"
AT&W
AT^SPOW=1,0,0
AT^SMONI
AT^SCFG="tcp/WithURCs","off"
AT+CMEE=2
AT+CGATT=1
AT^SICS=1,conType,GPRS0
AT^SICS=1,alphabet,1
AT^SICS=1,apn,"aer.aerisapn.eu"
AT^SISS=1,srvType,Socket
AT^SISS=1,alphabet,1
AT^SISS=1,conId,1
AT^SISS=1,address,"socktcps://a2euo1yqohgqe-ats.iot.eu-west-1.amazonaws.com:8883;etx"
AT^SISO=1

Checking the status using

AT^SISO?

results in:

^SISO: 0,""
^SISO: 1,"Socket",6,1,0,0,"0.0.0.0:0","0.0.0.0:0"
^SISO: 2,""
^SISO: 3,""
^SISO: 4,""
^SISO: 5,""
^SISO: 6,""
^SISO: 7,""
^SISO: 8,""
^SISO: 9,""

According to the manual srvState 6 means:

Down
This state is entered if
- the service has successfully finished its session (see note on Socket),
- the remote peer has reset the connection or
- the IP connection has been closed because of an error (see note below on service or network errors).

ATI1 gives the following firmware information:

EHS6
REVISION 03.001
A-REVISION 00.000.42

Do you have any ideas what could be the problem?
Many thanks!
Henning