I have a fona 800 arduino shield
It was recently working fine. Sending and receiving sms. It uses a ting sms and that still works ok as I tested it in another phone.
I use the Fona to trigger a relay and close a gate. It was all working fine.
I still get a blue led flashing every 2 seconds and a permanent green led and a yellow charge led. So it like good to go.
In the example test sketch, most commands return a sensible result. However when I try to send it a sms NOTHING
if any one knows of a definitive test to see if something is blown then I would be grateful
Any one know what is the maximum temperature this unit can stand. As I had this thing outside in a gray water proof box.
When I put it outside 2 weeks ago it was fine. I had it running off the lips plus a 12 amp hr battery. When I returned the battery was on 4.6 volts and no all the LED's were off.
I recharged both the lipo and the main battery all the LEDs came on as expected, however no sms can be received.
Maybe it got too hot in the box.
I would appreciate if someone can lead me to test to see if the thing is working as it looks fine to me based on the LED's
regards
Max
Fona 800 not sending sms
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Fona 800 not sending sms
Are you using FONATest to send SMS? Make sure your Serial Monitor is set to send both a newline and a carriage return
- mbirley
- Posts: 8
- Joined: Mon Jan 30, 2017 12:06 am
Re: Fona 800 not sending sms
I have set NL and CR as requested. No joy
I have tried with another sim card as well and no luck
This was working before. It still does everything like it should except the most important thing of sending and receiving sms's
Can you tell me the maximum operating temperature as requested in my original post
Also what is the power consumption as I can not find it in your online material.
regards
Max
I have tried with another sim card as well and no luck
This was working before. It still does everything like it should except the most important thing of sending and receiving sms's
Can you tell me the maximum operating temperature as requested in my original post
Also what is the power consumption as I can not find it in your online material.
regards
Max
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Fona 800 not sending sms
Max operating temp of the SIM800 is 85ºC. Hard to say what the overall temp sensitivity of the entire board is, but 70ºC should be a safe assumption.
Power consumption is spiky. There's no single number for that. It depends on what the SIM800 is doing.
So, other functions work? It's just sending SMS that has a problem? I wonder if the memory is full? I know that there is limited storage space for receiving messages, but I don't know if that same space is used for outgoing messages.
In the library folder, go into the 'includes' folder and edit FONAConfig.h to turn on debug messages:
Run FONATest and try to send a message. Post the complete serial monitor trace
Power consumption is spiky. There's no single number for that. It depends on what the SIM800 is doing.
So, other functions work? It's just sending SMS that has a problem? I wonder if the memory is full? I know that there is limited storage space for receiving messages, but I don't know if that same space is used for outgoing messages.
In the library folder, go into the 'includes' folder and edit FONAConfig.h to turn on debug messages:
Code: Select all
/* ADAFRUIT_FONA_DEBUG
* When defined, will cause extensive debug output on the
* DebugStream set in the appropriate platform/ header.
*/
#define ADAFRUIT_FONA_DEBUG
- mbirley
- Posts: 8
- Joined: Mon Jan 30, 2017 12:06 am
Re: Fona 800 not sending sms
Hi
Thanks for your reply
This device lays dormant for days at a time. Its triggers a gate. I would only expect one sms per week. It and its arduino uno is powered by 12 amp hour battery. So I want to know the time between changing the battery? even approx.
Also what would be the minimum voltage?
The config file was already set to produce the debug info. so no need for me to do anything
I have never been able to copy the console output. Can you give me the steps. I use a mac.
I know that a STOUT.txt file is produced somewhere, however I have never been able to find it.
When you send the instructions I will post the output
most appreciated
max
Thanks for your reply
This device lays dormant for days at a time. Its triggers a gate. I would only expect one sms per week. It and its arduino uno is powered by 12 amp hour battery. So I want to know the time between changing the battery? even approx.
Also what would be the minimum voltage?
The config file was already set to produce the debug info. so no need for me to do anything
I have never been able to copy the console output. Can you give me the steps. I use a mac.
I know that a STOUT.txt file is produced somewhere, however I have never been able to find it.
When you send the instructions I will post the output
most appreciated
max
- mbirley
- Posts: 8
- Joined: Mon Jan 30, 2017 12:06 am
Re: Fona 800 not sending sms
Now I have found the serial monitor copy and paste..........
regards
Max
FONA basic test
Initializing....(May take 3 seconds)
Attempting to open comm with ATs
---> AT
<---
---> AT
<---
---> AT
<--- AT
---> AT
<--- AT
---> ATE0
<--- ATE0
---> ATE0
<--- OK
---> AT+CVHU=0
<--- OK
---> ATI
<--- SIM800 R13.08
OK
RDY
+CFUN: 1
---> AT+GMM
<--- SIMCOM_SIM800H
OK
+CPIN: READY
FONA is OK
Found FONA 800H
---> AT+GSN
<--- 869152024639147
Module ****: 869152024639147
-------------------------------------
[?] Print this menu
[a] read the ADC 2.8V max (FONA800 & 808)
read the Battery V and % charged
[C] read the SIM CCID
Unlock SIM with PIN code
read RSSI
[n] get Network status
[v] set audio Volume
[V] get Volume
[H] set Headphone audio (FONA800 & 808)
[e] set External audio (FONA800 & 808)
[T] play audio Tone
[P] PWM/Buzzer out (FONA800 & 808)
[f] tune FM radio (FONA800)
[F] turn off FM (FONA800)
[m] set FM volume (FONA800)
[M] get FM volume (FONA800)
[q] get FM station signal level (FONA800)
[c] make phone Call
[A] get call status
[h] Hang up phone
[p] Pick up phone
[N] Number of SMSs
[r] Read SMS #
[R] Read All SMS
[d] Delete SMS #
[s] Send SMS
Send USSD
[y] Enable network time sync (FONA 800 & 808)
[Y] Enable NTP time sync (GPRS FONA 800 & 808)
[t] Get network time
[G] Enable GPRS
[g] Disable GPRS
[l] Query GSMLOC (GPRS)
[w] Read webpage (GPRS)
[W] Post to website (GPRS)
[S] create Serial passthru tunnel
-------------------------------------
FONA>
Call Ready
SMS Ready
s
Send to #8308880626
Type out one-line message (140 char): please work
---> AT+CMGF=1
<--- OK
---> AT+CMGS="8308880626"
<--- >
> please work
^Z
Failed
FONA> s
Send to #18308880626
Type out one-line message (140 char): please now work
---> AT+CMGF=1
<--- OK
---> AT+CMGS="18308880626"
<--- >
> please now work
^Z
Failed
FONA>
regards
Max
FONA basic test
Initializing....(May take 3 seconds)
Attempting to open comm with ATs
---> AT
<---
---> AT
<---
---> AT
<--- AT
---> AT
<--- AT
---> ATE0
<--- ATE0
---> ATE0
<--- OK
---> AT+CVHU=0
<--- OK
---> ATI
<--- SIM800 R13.08
OK
RDY
+CFUN: 1
---> AT+GMM
<--- SIMCOM_SIM800H
OK
+CPIN: READY
FONA is OK
Found FONA 800H
---> AT+GSN
<--- 869152024639147
Module ****: 869152024639147
-------------------------------------
[?] Print this menu
[a] read the ADC 2.8V max (FONA800 & 808)
read the Battery V and % charged
[C] read the SIM CCID
Unlock SIM with PIN code
read RSSI
[n] get Network status
[v] set audio Volume
[V] get Volume
[H] set Headphone audio (FONA800 & 808)
[e] set External audio (FONA800 & 808)
[T] play audio Tone
[P] PWM/Buzzer out (FONA800 & 808)
[f] tune FM radio (FONA800)
[F] turn off FM (FONA800)
[m] set FM volume (FONA800)
[M] get FM volume (FONA800)
[q] get FM station signal level (FONA800)
[c] make phone Call
[A] get call status
[h] Hang up phone
[p] Pick up phone
[N] Number of SMSs
[r] Read SMS #
[R] Read All SMS
[d] Delete SMS #
[s] Send SMS
Send USSD
[y] Enable network time sync (FONA 800 & 808)
[Y] Enable NTP time sync (GPRS FONA 800 & 808)
[t] Get network time
[G] Enable GPRS
[g] Disable GPRS
[l] Query GSMLOC (GPRS)
[w] Read webpage (GPRS)
[W] Post to website (GPRS)
[S] create Serial passthru tunnel
-------------------------------------
FONA>
Call Ready
SMS Ready
s
Send to #8308880626
Type out one-line message (140 char): please work
---> AT+CMGF=1
<--- OK
---> AT+CMGS="8308880626"
<--- >
> please work
^Z
Failed
FONA> s
Send to #18308880626
Type out one-line message (140 char): please now work
---> AT+CMGF=1
<--- OK
---> AT+CMGS="18308880626"
<--- >
> please now work
^Z
Failed
FONA>
- mbirley
- Posts: 8
- Joined: Mon Jan 30, 2017 12:06 am
Re: Fona 800 not sending sms
here are some examples of the 800 working
FONA>
Call Ready
SMS Ready
a
---> AT+CADC?
<--- +CADC: 1,1674
ADC = 1674 mV
FONA> b
---> AT+CBC
<--- +CBC: 0,100,4221
VBat = 4221 mV
---> AT+CBC
<--- +CBC: 0,100,4221
VPct = 100%
FONA> C
---> AT+CCID
<--- 8901260962171525857f
SIM CCID = 8901260962171525857f
FONA> i
---> AT+CSQ
<--- +CSQ: 11,0
RSSI = 11: -92 dBm
FONA> n
---> AT+CREG?
<--- +CREG: 0,5
Network status 5: Registered roaming
FONA> N
---> AT+CMGF=1
<--- OK
---> AT+CPMS?
<--- +CPMS: "SM",0,30,"SM",0,30,"SM",0,30
0 SMS's on SIM card!
FONA>
FONA>
Call Ready
SMS Ready
a
---> AT+CADC?
<--- +CADC: 1,1674
ADC = 1674 mV
FONA> b
---> AT+CBC
<--- +CBC: 0,100,4221
VBat = 4221 mV
---> AT+CBC
<--- +CBC: 0,100,4221
VPct = 100%
FONA> C
---> AT+CCID
<--- 8901260962171525857f
SIM CCID = 8901260962171525857f
FONA> i
---> AT+CSQ
<--- +CSQ: 11,0
RSSI = 11: -92 dBm
FONA> n
---> AT+CREG?
<--- +CREG: 0,5
Network status 5: Registered roaming
FONA> N
---> AT+CMGF=1
<--- OK
---> AT+CPMS?
<--- +CPMS: "SM",0,30,"SM",0,30,"SM",0,30
0 SMS's on SIM card!
FONA>
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Fona 800 not sending sms
Alas! Somebody commented out the debug statements we're interested in! Rats
In the fona library, find the sendSMS function in Adafruit_FONA.cpp (it should be at around line 564) and replace the function with this. I restored the debug statements:
Also, I notice that you're connected in Roaming mode. Is it possible that your network doesn't support SMS while roaming?
As for power - my meter is AWOL just now, but the Fona will use very little power. Basically, just enough to light the LEDs. Just a few mA - maybe 10 or so. Of course, whatever Arduino you're using will have its own power draw.
All of the power for actually running the SIM800 comes from the LiPo. That is sporadic and spiky, so there's no good answer to give you on that. It depends on what the chip needs to stay connected and send the messages.
In the fona library, find the sendSMS function in Adafruit_FONA.cpp (it should be at around line 564) and replace the function with this. I restored the debug statements:
Code: Select all
boolean Adafruit_FONA::sendSMS(char *smsaddr, char *smsmsg) {
if (! sendCheckReply(F("AT+CMGF=1"), ok_reply)) return false;
char sendcmd[30] = "AT+CMGS=\"";
strncpy(sendcmd+9, smsaddr, 30-9-2); // 9 bytes beginning, 2 bytes for close quote + null
sendcmd[strlen(sendcmd)] = '\"';
if (! sendCheckReply(sendcmd, F("> "))) return false;
DEBUG_PRINT(F("> ")); DEBUG_PRINTLN(smsmsg);
mySerial->println(smsmsg);
mySerial->println();
mySerial->write(0x1A);
DEBUG_PRINTLN("^Z");
if ( (_type == FONA3G_A) || (_type == FONA3G_E) ) {
// Eat two sets of CRLF
readline(200);
DEBUG_PRINT("Line 1: "); DEBUG_PRINT(strlen(replybuffer)); DEBUG_PRINT(": "); DEBUG_PRINTLN(replybuffer);
readline(200);
DEBUG_PRINT("Line 2: "); DEBUG_PRINT(strlen(replybuffer)); DEBUG_PRINT(": "); DEBUG_PRINTLN(replybuffer);
}
readline(10000); // read the +CMGS reply, wait up to 10 seconds!!!
DEBUG_PRINT("Line 3: "); DEBUG_PRINT(strlen(replybuffer)); DEBUG_PRINT(": "); DEBUG_PRINTLN(replybuffer);
if (strstr(replybuffer, "+CMGS") == 0) {
return false;
}
readline(1000); // read OK
DEBUG_PRINT("* "); DEBUG_PRINTLN(replybuffer);
if (strcmp(replybuffer, "OK") != 0) {
return false;
}
return true;
}
Code: Select all
FONA> n
---> AT+CREG?
<--- +CREG: 0,5
Network status 5: Registered roaming
All of the power for actually running the SIM800 comes from the LiPo. That is sporadic and spiky, so there's no good answer to give you on that. It depends on what the chip needs to stay connected and send the messages.
- mbirley
- Posts: 8
- Joined: Mon Jan 30, 2017 12:06 am
Re: Fona 800 not sending sms
When the slider is switched to "charge" the unit does not send sms's. However when it is set to run id does. I hadn't noticed this. This is when I have a 12v battery and the lips battery connected. So it seems the shield is working
Questions
does this mean that when the slider is set to run the lipos is driving the shield and uno and is not being charged?
I am using a 12 amp hour sealed lead acid battery as I want this unit to operate for at least a week
Question
what settings do I need on the shield for the 12v battery to run the Uno, the shield and lipo
if the 12 v can not charge the Lipo and the unit not send sms because the slider is set to run not charge then I need a much larger lipo Y/N???? and this would be a rather impractical design!
regards
Max
Questions
does this mean that when the slider is set to run the lipos is driving the shield and uno and is not being charged?
I am using a 12 amp hour sealed lead acid battery as I want this unit to operate for at least a week
Question
what settings do I need on the shield for the 12v battery to run the Uno, the shield and lipo
if the 12 v can not charge the Lipo and the unit not send sms because the slider is set to run not charge then I need a much larger lipo Y/N???? and this would be a rather impractical design!
regards
Max
- adafruit_support_rick
- Posts: 35092
- Joined: Tue Mar 15, 2011 11:42 am
Re: Fona 800 not sending sms
Yes, with the switch set to 'RUN', the battery is not being charged.
However, the FONA should work while the switch is set to CHRG. How are you wired up to the 12V battery? Can you post some pictures of your setup?
However, the FONA should work while the switch is set to CHRG. How are you wired up to the 12V battery? Can you post some pictures of your setup?
- adafruit2
- Posts: 22149
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Fona 800 not sending sms
12V is really high, you're losing a ton of power if its linearly regulated. are you using a buck converter? some photos will help!
- Mouser
- Posts: 12
- Joined: Wed Nov 22, 2017 5:08 pm
Re: Fona 800 not sending sms
I respect your problem and I am curious. How in the world did you get the thing to get signal in the first place. I soldered it together as a stacker got a sim card and plan from tmobile. Ordered exactly the items that adafruit recommended and assembled it exactly as they instructed. It can tell me the battery charge, correctly identify the sim800h and id number and the sim. Every thing I read tells me it must be a tmobile dead spot but a T-Mobile phone next to it works fine with this sim, I know its not a dead spot or bad SIM. I checked all the connections and I have no crossing or bridging and I am using it with a head set so no need to solder speakers or mic. Board looks fine and undamaged, so I am leaning towards something must be changed in the software. I am running the Adafruit FONA 800 Shield - Voice/Data Cellular GSM for Arduino PID: 2468 on an Arudion UNO R3 SMD. The code I am using is the FonaTest code provided in the learning portion. I was hoping to make it work before starting to modify it so that I had a good baseline. Someone please help I have a deadline of 2 weeks to get this whole project finished and gsm capabilities is only step one. Here is the console output report and the soldering is fine there are no shorts, no bridging, and no bad connections. as far as connecting it to the Arduino it is literally stacked on top of an UNO.
FONA basic test
Initializing....(May take 3 seconds)
Attempting to open comm with ATs
---> AT
<---
---> AT
<---
---> AT
<--- AT
---> AT
<--- AT
---> ATE0
<--- ATE0
---> ATE0
<--- OK
---> AT+CVHU=0
<--- OK
---> ATI
<--- SIM800 R13.08
OK
RDY
+CFUN: 1
---> AT+GMM
<--- SIMCOM_SIM800H
OK
+CPIN: READY
---> AT+CPMS="SM","SM","SM"
<--- ERROR
FONA is OK
Found FONA 800H
---> AT+GSN
<--- 862877037244405
Unlock SIM with PIN code
read RSSI
[n] get Network status
[v] set audio Volume
[V] get Volume
[H] set Headphone audio (FONA800 & 808)
[e] set External audio (FONA800 & 808)
[T] play audio Tone
[P] PWM/Buzzer out (FONA800 & 808)
[f] tune FM radio (FONA800)
[F] turn off FM (FONA800)
[m] set FM volume (FONA800)
[M] get FM volume (FONA800)
[q] get FM station signal level (FONA800)
[c] make phone Call
[A] get call status
[h] Hang up phone
[p] Pick up phone
[N] Number of SMSs
[r] Read SMS #
[R] Read All SMS
[d] Delete SMS #
[s] Send SMS
Send USSD
[y] Enable network time sync (FONA 800 & 808)
[Y] Enable NTP time sync (GPRS FONA 800 & 808)
[t] Get network time
[G] Enable GPRS
[g] Disable GPRS
[l] Query GSMLOC (GPRS)
[w] Read webpage (GPRS)
[W] Post to website (GPRS)
[S] create Serial passthru tunnel
-------------------------------------
Module I/M/EI: 862877037244405
-------------------------------------
[?] Print this menu
[a] read the ADC 2.8V max (FONA800 & 808)
read the Battery V and % charged
[C] read the SIM CCID
FONA>
Call Ready
SMS Ready
C
---> AT+CCID
<--- 8901260932772408746f
SIM CCID = 8901260932772408746f
FONA> i
---> AT+CSQ
<--- +CSQ: 0,0
RSSI = 0: -115 dBm
FONA>
- adafruit2
- Posts: 22149
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Fona 800 not sending sms
mouser, post a photo of your setup, also make sure you have a good antenna, good battery and check after a few minutes the RSSI :)
- Mouser
- Posts: 12
- Joined: Wed Nov 22, 2017 5:08 pm
Re: Fona 800 not sending sms
here is the photo. battery is good and I have had it plugged in and running for the last 10 minutes. Still no dice :(. Antenna is brand new (part of the order I just got from you) and looks perfect. Thank you for your assistance.
Charlie
Charlie
- Attachments
-
- 20170201_131931.JPG (38.96 KiB) Viewed 793 times
- Mouser
- Posts: 12
- Joined: Wed Nov 22, 2017 5:08 pm
Re: Fona 800 not sending sms
here are the pictures of the contacts and connections
- Attachments
-
- fona.jpg (134.05 KiB) Viewed 786 times
Please be positive and constructive with your questions and comments.