SMS Timeout
- This topic has 2 replies, 2 voices, and was last updated 7 years, 7 months ago by Mike Meyer.
-
AuthorPosts
-
April 2, 2017 at 3:25 pm #18120Mike MeyerParticipant
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 millisecondsmain.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 millisecondsI’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: 89011702272024881861OK
at+creg?
+CREG: 0,1OK
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.
April 3, 2017 at 2:34 pm #18129Peter FerlandBlockedAre you able to send an SMS message using AT commands?
at+cnmi=2,2,0,1,0 at+cmgf=1 at+cmgs=”+1 YOUR PHONE NUMBER”
You’ll get an extra prompt. Type your message then press control-z to send.
If the SIM has data service, does a ping work? Try
at#sgact=1,1 at#ping=”www.google.com” at#sgact=1,0
April 3, 2017 at 5:06 pm #18131Mike MeyerParticipantHere is what I got:
at
OK
at+cnmi=2,2,0,1,0
OK
at+cmgf=1
OK
at+cmgs=”+1xxxxxxxxxx”
> Test message
+CMGS: 72OK
I didn’t receive the text. I tried it again with my wife’s number and didn’t receive the text.
at#sgact=1,1
#SGACT: 10.161.98.28OK
at#ping=”www.google.com”
#PING: 01,”172.217.3.164″,28,51
#PING: 02,”172.217.3.164″,2,51
#PING: 03,”172.217.3.164″,2,51
#PING: 04,”172.217.3.164″,2,51OK
at#sgact=1,0
OK -
AuthorPosts
- You must be logged in to reply to this topic.