Thank you for the reply. I have used the send methods to send various AT commands. Still not able to read any of the SMS messages. I have tried the following commands to list, read, and send CMGL, CMGR, CMGS. Responses have been inconsistent. I have tried clearing the messages from the sim and device using CMGD.
Now I’m not able to send using the send sms example. Here is the output using the example code (last 4 of phone number redacted here but not in output)…
Sixfab Raspberry Pi Cellular IoT Shield Class initialized!
BG96 module disabled!
BG96 module enabled!
BG96 module powered up!
ATE1
ATE1
OK
AT+CMGF=1
AT+CMGF=1
OK
AT+CMGS=“176081XXXX”
AT+CMGS=“176081XXXX”
hello world!
�
�
�
�
�
�
�
�
�
�
�
�
---- End of output
It seems the final send command fails and just re-attempts. This send method was working a few days ago and now all I get is the above response. Is there a way to reset the modem back to original settings?
Saeed, Yes I’m using the correct syntax for the AT commands (I’ve worked with them before). I’ve included some troubleshooting responses below. The modem was initially functional with my sim and carrier (US Mobile). The modem is now (3 days later) not able to connect with the carrier. I’ve ruled out the other hardware and software by swapping the modem to previously functioning RPI. It appears the problem is with the modem config or my carrier. I’ve ordered a new sim card which I will test before giving up on this module.
Here are some of my commands and responses from troubleshooting…
node.sendATComm(“AT+CREG?”,“OK\r\n”)
+CREG: 0,4 Disabled, Unknown, then +CREG: 2,3 Enabled, Denied
node.sendATComm(“AT+CSQ”,“OK\r\n”)
+CSQ: 99,99 Not known or not detectable
node.sendATComm(“AT+COPS?”,“OK\r\n”)
+COPS: 0 NO CARRIER
I’ve also attempted to re-register the device with my carrier using:
node.sendATComm(“AT+CREG=1”,“OK\r\n”)
OK
node.sendATComm(“AT+CREG=2”,“OK\r\n”)
OK
I did also attempt to enable PPP and UDP connections by following the SixFab example instructions. Is it possible that those settings are conflicting with the connection to the carrier and SMS functionality?
Saeed,
I’ve tested a new SIM with the same result (it just hangs on sending, no connection to carrier). How can I reset the modem to the factory settings it was shipped with?
I don’t really need to touch the low-level AT commands necessarily right? If i want to interact with my messages and send something back perhaps. I was looking at some open source options like : https://docs.gammu.org/index.html @saeed