BG95 Connection Issues

Hello,

I am having MQTT connection issues with BG95.

Can someone support me with this issue.

Every time I connect to the mqtt server and get +QMTOPEN: 0,0 response but when I try +QMTCONN=0,“test_topic”,“bg95Test”,“bg95Test1”

I get +QMTCONN: 0,0,5

CA root certificate is the isrgrootx1 from https://letsencrypt.org/certs/isrgrootx1.pem
certificate & credentials were tested with MQTT.FX and MQTT paho python

AT + COMMANDS

Connect to internet
then

AT+QIACT?
+QIACT: 1,1,1,“10.181.73.161”

AT+QSSLCFG=“cacert”,2,“cacert.pem”
OK

AT+QSSLCFG=“seclevel”,2,1
OK

AT+QSSLCFG=“ciphersuite”,2,0XFFFF
OK

AT+QSSLCFG=“ignorelocaltime”,2,1
OK

AT+QMTCFG=“ssl”,0,1,2
OK

AT+QMTCFG=“version”,0,4
OK

AT+QMTOPEN=0,“4b9fa9f2ad4c424fa69f8642878e39c4.s2.eu.hivemq.cloud”,8883
OK

+QMTOPEN: 0,0

AT+QMTCONN=0,“test_topic”,“bg95Test”,“bg95Test1”
OK

+QMTCONN: 0,0,5
+QMTSTAT: 0,4


I think it has to do with something in the clientID or username encoding.

Can someone please test this and help me connect

ATI

Quectel

BG95-M3

Revision: BG95M3LAR02A04

OK

Can anyone from support at least confirm they can connect to this MQTT broker using BG95 or BG96

  4b9fa9f2ad4c424fa69f8642878e39c4.s2.eu.hivemq.cloud 

port 8883

clientID test_topic
username bg95Test
password bg95Test1

Was this ever resolved? I’m having the same issue and have spent quite a lot of time getting this to work…

I found the resolution to be enabling SNI on the BG95 by doing:
AT+QSSLCFG=“SNI”,“Your SSL Context ID”,1 for example:
AT+QSSLCFG=“SNI”,1,1 worked for me

Here’s what SNI is for reference: https://www.cloudflare.com/learning/ssl/what-is-sni/