BC92 connect to AWS Iot Core

Hello,
i want to connect BC92 to AWS Iot Core MQTT server.

I can load my certificates with:

  • AT+QSSLCFG=1,1,“cacert”
  • AT+QSSLCFG=1,1,“clientkey”
  • AT+QSSLCFG=1,1,“clientcert”

Then set SSL ContextId with this command
AT+QMTCFG=“ssl”,3,1,1,1

Open Network is OK
AT+QMTOPEN=1,“*******-ats.iot.eu-central-1.amazonaws.com”,8883
OK
+CSCON: 1
+QMTOPEN: 1,0

Connection to broker goes wrong
AT+QMTCONN=1,“****”,“?SDK=CPPv2&Version=v1.14.1”,“”
OK
+CSCON: 1
+CSCON: 0
+QMTSTAT: 1,3
+QMTCONN: 1,2

I need the procedure for enable MQTT over SSL, there is any specific application note for this modem BC92?

Best Regards

Nicola

No SSL document can be found. There is no SSL sample reference in the MQTT document. If business needs, please change other modules or use non-SSL MQTT server

Hi,
This answer (BC92 mqtt application note) says that mqtt commands is standard and I can refer to BC66 documentation.

BC66 supports SSL,but BC92 not supports

Hi @Nicola

Maybe some of these commands could help you!
This is an example of connecting to mosquito open broker using SSL.

AT+QSSLCFG=1,5,"seclevel",2
OK

AT+QSSLCFG=1,5,"cacert"
>
"insert the CA cert"
CTRL-Z
+QSSLCFG: 1,5,"cacert",1452
OK

AT+QSSLCFG=1,5,"clientcert"
>
"insert the client certificate"
CTRL-Z
+QSSLCFG: 1,5,"clientcert",1298
OK

AT+QSSLCFG=1,5,"clientkey"
>
"insert the client key"
CTRL-Z
+QSSLCFG: 1,5,"clientkey",1704
OK

AT+QMTCFG="version",3,1
+CSCON: 0
OK

AT+QMTCFG="ssl",3,1,1,5
OK

AT+QMTOPEN=3,"test.mosquitto.org",8884
OK
+CSCON: 1
+QMTOPEN: 3,0

AT+QMTCONN=3,"nouvennbc92"
OK

+QMTCONN: 3,0,0

AT+QMTSUB=3,1,"nouvenn/",1
OK
+QMTSUB: 3,1,0,1

AT+QMTPUB=3,0,0,0,"nouvenn/"
>
TesteNouvenn
CTRL-Z

OK
+QMTPUB: 3,0,0
+QMTRECV: 3,0,nouvenn/,TesteNouvenn