I’m trying to get my dragonfly to send an SMS message and I’m having some issues.
I’m using:
Dragonfly_Cellular_SMS_Example
https://developer.mbed.org/teams/MultiTech/code/Dragonfly_Cellular_SMS_Example/
I’m getting this message across debug port (I’ve removed my cell phone number):
[INFO] initializing cellular radio
[INFO] setting APN
[WARNING] sendCommand [AT+CMGS="+1xxxxxxxxxx",145] timed out after 2000 milliseconds
main.cpp has line “radio->sendSMS(msg)”
I’m finding sendSMS at line 254 in Cellular.cpp. It calls sendCommand, which I’m finding at line 170 in Cellular.cpp. A final check at line 245 is what generates the timeout message on the debug port. The timeout has to do with getting a response from the Telit module, and if it doesn’t get a response it sends out the message seen above.
I’ve also tried VVV_MultiTech_Dragonfly_ATT_Dallas. I basically get the same error message.
[INFO] starting…
[TRACE] radio replied
[DEBUG] EasyIP radio model: HE910
[DEBUG] radio type: MTSMC-H5
[INFO] MTSAS is ok
[DEBUG] ————————————————–
[DEBUG] SENSOR DATA
[DEBUG] temperature: 23.81 C
[DEBUG] analog uv: 0.5 mW/cm2
[DEBUG] ambient Light 26.888
[DEBUG] proximity count 25.000
[DEBUG] hall effect: South 0 North 0
[DEBUG] pressure: 978.17 hPa
[DEBUG] magnetometer:
x: -0.071 y: -0.026 z: -0.026 uT
[DEBUG] accelerometer:
x: 0.012 y: 0.030 z: 1.004 g
[DEBUG] color:
red: 331 grn: 1046 blu: 563
[DEBUG] ————————————————–
[INFO] SMS Send Routine
In sms routine
[DEBUG] sending SMS to 16512382572:
SENSOR DATA:
{“Ambient Light”:33.031006,”Prox”:24.000000}
[WARNING] sendCommand [AT+CMGS="+1xxxxxxxxxx",145] timed out after 2000 milliseconds
I’ve tried running the YYY_Dragonfly_USBTerminal and sending AT commands. It appears that my SIM is connected to the network.
at
OK
at+ccid
+CCID: 89011702272024881861
OK
at+creg?
+CREG: 0,1
OK
It seems like my .bin file was correctly programmed in. My debug port is working. The micro is responding. SIM appears to be connecting to the network.
What do I look at next? I’m not sure what would cause the message I’m getting.