how to connect Azure IOT hub using sim7600 ?

Discussion about software developed by Freematics, including Freematics Builder and Freematics Emulator GUI
Post Reply
ht_main1
Posts: 1
Joined: Thu May 20, 2021 10:56 pm

how to connect Azure IOT hub using sim7600 ?

Post by ht_main1 »

I am trying to connect to Azure IOT hub with sim7600 but it fails, as told by our IT dept engineer i need Baltimore SSL certificate to establish the connection, but I don't know what is wrong in the following command steps, but the connection is lost and data cannot be transferred.


here is the log output of AT command,

Code: Select all

AT+CSQ
+CSQ: 29,99
OK
AT+CREG?
+CREG: 0,1
OK
AT+CGREG?
+CGREG: 0,1
OK


AT+CGSOCKCONT=1,"IP","Jionet"
OK

AT+CGPADDR
+CGPADDR: 1,25.34.200.216
OK

AT+CGACT?
+CGACT: 1,1

AT+CSSLCFG="sslversion",0,4
OK
AT+CSSLCFG="authmode",0,1
OK

AT+CCERTDOWN="BaltimoreCyberTrustRoot.crt.pem",1262

AT+CSSLCFG="cacert",0,"BaltimoreCyberTrustRoot.crt.pem"
OK

AT+CCERTLIST
+CCERTLIST: "BaltimoreCyberTrustRoot.crt.pem"

OK

AT+NETOPEN
OK

+NETOPEN: 0
AT+CMQTTSTART
+CMQTTSTART: 0

OK
AT+CMQTTACCQ=0, "testdev"
OK
AT+CMQTTSSLCFG=0,0
OK
AT+CMQTTWILLTOPIC=0,32
devices/testdev/messages/events/
OK
AT+CMQTTWILLMSG=0,17,1
>SIMCOM Connected!
OK
AT+CMQTTCONNECT=0,"tcp://IOTHUB.azure-devices.net:8883",90,1,"IOTHUB.azure-devices.net/testdev/?api-version=2018-06-30","SharedAccessSignaturesr=IOTHUB.azuredevices.net%2Fdevices%2Ftestdev&sig=0xNig7Hcyd9MJUiEyGCQLASM5pTEB1NP7MAy%2FssAi58%3D&se=1639212345"
OK

+CMQTTCONNECT: 0,6

+CMQTTCONNLOST: 0,1
let me know if any more data is needed
Post Reply