BG95-M3 - MQTT Failed to parse domain name

Hi,

We move our design from BG96 to BG95-M3 and got the following problem with the MQTT server connection:

When opening the MQTT Connection with SSL (AT+QMTOPEN) we always get 0,4 (Failed to Parse domain name). Same sequence running on our BG96 is working fine. See log:

RDY
APP RDY
ATV1

OK
ATE1

OK
AT+CSQ

+CSQ: 99,99

OK
AT+QGPS=1

OK
AT+CSQ

+CSQ: 99,99

OK
10:05:43: AT+CSQ

+CSQ: 10,99

OK
AT+QMTDISC=0

OK
AT+QMTCLOSE=0

ERROR
AT+QICSGP=1,1,"myApn","","",1

OK
AT+QFDEL="*"

OK
AT+QFUPL="ca.crt",1432,500

CONNECT
+QFUPL: 1432,1470

OK
AT+QFUPL="client.crt",1322,500

CONNECT
+QFUPL: 1322,421

OK
AT+QFUPL="client.key",1675,500

CONNECT
+QFUPL: 1675,704a

OK
AT+QSSLCFG="cacert",2,"ca.crt"

OK
AT+QSSLCFG="clientcert",2,"client.crt"

OK
AT+QSSLCFG="clientKey",2,"client.key"

OK
AT+QSSLCFG="sslversion",2,4

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

OK
AT+QSSLCFG="ciphersuite",2,0xFFFF

OK
AT+QSSLCFG="sni",2,1

OK
AT+QMTCFG="version",0,4

OK
AT+QMTCFG="keepalive",0,10

OK
AT+QMTCFG="session",0,0

OK
AT+QMTCFG="ssl",0,1,2

OK
AT+QMTCFG="will",0,1,2,0,"will/0062001/v1/004121004","Disconnected"

OK
AT+QMTOPEN=0,"mqtt.dev.myServer.com",8883

OK

+QMTOPEN: 0,4

If we replace
AT+QMTOPEN=0,"mqttv1.dev.myServer.com",8883
by the IP address
AT+QMTOPEN=0,"40.60.xx.xx",8883
it’s working fine…

We also try with
AT+QSSLCFG=“sni”,2,1
AT+QSSLCFG=“sni”,2,0
it doesn’t change anything

Thanks for your help!

based on your description ,

pls add SSL SNI setting in your AT procedure.

if this modification does not work still , pls reach to Support@quectel.com

Found the issue,

GPS and MQTT can not run at the same time. Check BG95&BG77&BG600L_Series_GNSS_Application_Note_V1.1

Turn off GPS solve the issue.

2 Likes

same issue aroy and turning GPS off fix this.
Atleast quectel should mention in error code that this error is coming cz GPS in on.