I am coding in C for a Pico.
I am trying to use a Waveshare SIM7020E module to connect to the NBIoT network. My ultimate goal is to publish MQTT messages using the Pico and the SIM module.
In order to use the SIM module, I have an M2M SIM card with an APN.
I think I have successfully connected to the network, but I cannot reach the MQTT broker.
I am not sure if I am missing something or if I am just not really connected to the network.
If anyone has used this technology before to do something similar in Europe, I would appreciate any help.
Here are the AT commands I am using and the results:
Sending command: AT
�AT
OK
Sending command: AT+CSTT="*myapn*","",""
AT+CSTT="*myapn*","",""
OK
Sending command: AT+CIICR
AT+CIICR
OK
Sending command: AT+CIFSR
AT+CIFSR
100.68.5.157
Sending command: AT+CREG?
AT+CREG?
+CREG: 0,5 (which means I am roaming)
OK
Sending command: AT+CGATT?
AT+CGATT?
+CGATT: 1 (wich means I am attached to the network)
OK
Sending command: AT+COPS?
AT+COS?
Sending command: AT+CMQNEW="xx.xx.xx.xx","1883",60000,1024
AT+CMQNEW="xx.xx.xx.xx","1883",60000,1024
ERROR
I am trying to use a Waveshare SIM7020E module to connect to the NBIoT network. My ultimate goal is to publish MQTT messages using the Pico and the SIM module.
In order to use the SIM module, I have an M2M SIM card with an APN.
I think I have successfully connected to the network, but I cannot reach the MQTT broker.
I am not sure if I am missing something or if I am just not really connected to the network.
If anyone has used this technology before to do something similar in Europe, I would appreciate any help.
Here are the AT commands I am using and the results:
Sending command: AT
�AT
OK
Sending command: AT+CSTT="*myapn*","",""
AT+CSTT="*myapn*","",""
OK
Sending command: AT+CIICR
AT+CIICR
OK
Sending command: AT+CIFSR
AT+CIFSR
100.68.5.157
Sending command: AT+CREG?
AT+CREG?
+CREG: 0,5 (which means I am roaming)
OK
Sending command: AT+CGATT?
AT+CGATT?
+CGATT: 1 (wich means I am attached to the network)
OK
Sending command: AT+COPS?
AT+COS?
Sending command: AT+CMQNEW="xx.xx.xx.xx","1883",60000,1024
AT+CMQNEW="xx.xx.xx.xx","1883",60000,1024
ERROR
Statistics: Posted by Am- — Wed Jul 17, 2024 12:25 pm — Replies 0 — Views 12