Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to connect Azure IOT hub using sim7600 ?

Status
Not open for further replies.

heap_f511

Newbie
Newbie level 2
Joined
Dec 14, 2020
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
4
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,

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, kindly guide me in this,
this is the first time I am using sim7600 and azure

thanks
KJesav
 

tried this also

Code:
AT+CMQTTCONNECT=0,"tcp://IOTHUB.azure-devices.net:8883",90,1,"IOTHUB.azure-devices.net/testdev/?api-version=2018-06-30","IOTHUB.azuredevices.net%2Fdevices%2Ftestdev&sig=0xNig7Hcyd9MJUiEyGCQLASM5pTEB1NP7MAy%2FssAi58%3D&se=1639212345"
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top