BG96 Connect Azure IoT Hub with X.509

Hello everyone,

I’m trying to connect BG96 to Azure IoT Hub via AT command but without luck on command AT+QMTCONN

here is my command :
[2021-07-29_13:48:31:595]AT+QSSLCFG=“clientkey”,1,“UFS:ck.pem”

[2021-07-29_13:48:31:597]OK
[2021-07-29_13:48:32:511]AT+QSSLCFG="clientcert",1,"UFS:cc.pem"

[2021-07-29_13:48:32:511]OK
[2021-07-29_13:48:33:380]AT+QSSLCFG="cacert",1,"UFS:ca.pem"

[2021-07-29_13:48:33:380]OK
[2021-07-29_13:48:34:043]AT+QSSLCFG="ciphersuite",1,0XFFFF

[2021-07-29_13:48:34:043]OK
[2021-07-29_13:48:34:924]AT+QSSLCFG="seclevel",2,2

[2021-07-29_13:48:34:924]OK
[2021-07-29_13:48:35:961]AT+QMTCFG="ssl",2,1,1

[2021-07-29_13:48:35:961]OK
[2021-07-29_13:48:37:193]AT+QMTCFG="version",2,4

[2021-07-29_13:48:37:193]OK
[2021-07-29_13:48:38:425]AT+QMTOPEN=2,"xxxxxxx.azure-devices.net",8883

[2021-07-29_13:48:38:425]OK
[2021-07-29_13:48:48:751]
[2021-07-29_13:48:48:751]+QMTOPEN: 2,0
[2021-07-29_13:48:50:996]AT+QMTCONN=2,"BG96-DEMO","SharedAccessSignature sr=xxxxxxx.azure-devices.net&sig=myWsEU89koS647wic6twY7j%2BfmWnVqQKlK%2FGbvfn1bU%3D&se=1627536860&skn=iothubowne"

[2021-07-29_13:48:50:996]OK
[2021-07-29_13:48:51:528]
[2021-07-29_13:48:51:528]**+QMTCONN: 2,0,3**
[2021-07-29_13:49:21:744]
[2021-07-29_13:49:21:744]+QMTSTAT: 2,4
[2021-07-29_13:49:28:234]
[2021-07-29_13:49:28:234]+CTZE: "+36",0,"2021/07/29,04:49:29"

According to the document
client_idx , result , ret_code
+QMTCONN: 2,0,3
0 : Packet sent successfully and ACK received from server
3 : Connection Refused: Server Unavailable

does anyone know how to solve this problem ?

hi, Ping_Chiang:
According to the preceding description, the CA certificate may cause an exception error;I suggest you use MQTT.fx for testing to verify and confirm whether the CA certificate and connection to the server are normal. If you can connect to the Azure MQTT server after passing MQTT.fx and uploading the CA certificate, then we will proceed to the next step.