Hello everyone,
I am working with a SIM7000G module and trying to establish a secure MQTT connection (MQTTS) to HiveMQ Cloud. I have followed the official SIMCom MQTT(S) Application Note, but I am encountering an “ERROR” response when executing AT+SMCONN.
Environment:
-
Broker: HiveMQ Cloud
-
Authentication: One-way SSL (Server Authentication)
-
TLS Version: 1.2 (Required by HiveMQ Cloud)
-
Certificate: ISRG Root X1 CA (Stored as
root.crtand converted viaAT+CSSLCFG)
AT Command Sequence & Logs:
// 1. Network Connection Status
AT+CNACT?
+CNACT: 1,“**********”
OK
// 2. Certificate Conversion
AT+CSSLCFG=“convert”,2,“root.crt”
OK
// 3. MQTT Configuration
AT+SMCONF=“url”,“***************************************.s1.eu.hivemq.cloud”,8883
OK
AT+SMCONF=“username”,“*********”
OK
AT+SMCONF=“password”,“***********”
OK
AT+SMCONF=“clientid”,“QuoCar_TEST_SSL_SIM7000”
OK
// 4. SSL Activation & Connection Attempt
AT+SMSSL=1,“root.crt”,“”
OK
AT+SMCONN
ERROR
Issue: Despite all previous commands returning OK, the final AT+SMCONN returns ERROR after a short delay. I have confirmed that the root.crt contains the correct Root CA data and is successfully stored in the module’s flash memory.
Questions:
-
Is there a specific SSL context configuration (like
AT+CSSLCFG="sslversion") that I must define beforeAT+SMSSLfor HiveMQ Cloud? -
Does the
AT+SMSSL=1,"root.crt",""command correctly map the root certificate for server validation in this firmware version? -
Are there any known issues with SIM7000 firmware regarding HiveMQ’s TLS 1.2 handshake?
Any insights or troubleshooting tips would be greatly appreciated. Thank you!