According to the 7600 manual, it supports MQTT via AT commands.
https://simcom.ee/documents/SIM7600E/SI ... _V1.01.pdf
I've been trying to get this working for the past couple of weeks, but I keep getting a error 0,14 "client is busy" response from the modem whenever I attempt to subscribe or publish to a topic.
Has anyone got this working or perhaps has some experience with this that could help?
So far SIMCOM support has not responded and unfortunately I can't find anything online.
Here is the modem output:
Code: Select all
=== SENT@4254 ===
AT
==================
=== RECV@4257 ===
OK
==================
=== SENT@4257 ===
ATE0
==================
=== RECV@4260 ===
OK
==================
=== SENT@4260 ===
ATI
==================
=== RECV@4273 ===
Manufacturer: SIMCOM INCORPORATED
Model: SIMCOM_SIM7600E
Revision: SIM7600M21-A_V1.1
IMEI: XXXXXXXXXXXXXXXXXXXXX
+GCAP: ==================
=== RECV@4277 ===
+CGSM
OK
==================
OK
Registering on network...
=== SENT@4284 ===
AT+CPSI?
==================
=== RECV@4295 ===
+CPSI: LTE,Online,505-01,0x309D,136092930,257,EUTRAN-BAND3,1275,4,4,-178,-1185,-789,7
OK
==================
=== SENT@4300 ===
AT+CREG?
==================
=== RECV@4304 ===
+CREG: 0,1
OK
==================
=== SENT@4309 ===
AT+CGREG?
==================
=== RECV@4314 ===
+CGREG: 0,1
OK
==================
=== SENT@4319 ===
AT+CGDCONT=1,"IP","connect.apn"
==================
=== RECV@4341 ===
OK
==================
=== SENT@4341 ===
AT+CGACT=1,1
==================
=== RECV@4345 ===
OK
==================
OK
Init MQTT...
Connecting...
=== SENT@74524 ===
AT+CMQTTSTART
==================
=== RECV@74533 ===
+CMQTTSTART: 0
OK
==================
=== SENT@75533 ===
AT+CMQTTACCQ=0,"SIMCom_client01",1
==================
=== RECV@75539 ===
OK
==================
=== SENT@77539 ===
AT+CMQTTWILLTOPIC=0,10
==================
=== RECV@77543 ===
>==================
=== SENT@78543 ===
esp32/will
==================
=== RECV@78546 ===
OK
==================
=== SENT@79546 ===
AT+CMQTTWILLMSG=0,4,1
==================
=== RECV@79550 ===
>==================
=== SENT@80550 ===
test
==================
=== RECV@80554 ===
OK
==================
OK, CONNECTION SETUP READY!
CMQTTCONNECT Connecting...
=== SENT@81554 ===
AT+CMQTTCONNECT=0,"tcp://test.mosquitto.org:1883",60,1
==================
=== RECV@81569 ===
OK
==================
CMQTTCONNECT SUCCESS
CONNECTED!
=== SENT@82569 ===
AT+CMQTTSUBTOPIC=0,10,1
==================
=== RECV@82576 ===
+CMQTTSUBTOPIC: 0,14
ERROR
==================
FAILED TO SUBSCRIBE!