Problem with Arduino Adafruit 808 shield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jarek76
 
Posts: 6
Joined: Fri Dec 22, 2017 12:51 pm

Problem with Arduino Adafruit 808 shield

Post by jarek76 »

Hi. I am pretty new in C++ programming and it seems the issue I am facing is beyond me. I have attached Adafruit 808 shield to my Arduino Uno and I am trying to run the below sketch using 115200baud rate.

// Libraries
#include "Adafruit_FONA.h"
#include <SoftwareSerial.h>
// Pins
#define FONA_RX 2
#define FONA_TX 3
#define FONA_RST 4
// Buffer
char replybuffer[255];
// Instances
SoftwareSerial fonaSS = SoftwareSerial(FONA_TX, FONA_RX);
SoftwareSerial *fonaSerial = &fonaSS;

// Hardware serial is also possible!
//HardwareSerial *fonaSerial = &Serial;

// Use this for FONA 800 and 808s
Adafruit_FONA fona = Adafruit_FONA(FONA_RST);
//Use this one for FONA 3G
//Adafruit_FONA_3G fona = Adafruit_FONA_3G(FONA_RST);
void setup() {
// Init board
while (!Serial);
Serial.begin(115200);
Serial.println(F("FONA location test"));
Serial.println(F("Initializing....(May take 3 seconds)"));
fonaSerial->begin(4800);
if (! fona.begin(*fonaSerial)) {
Serial.println(F("Couldn't find FONA"));
while(1);

.......
.......

Despite the compilation is fine, I am getting the following message in serial monitor:

FONA location test
Initializing....(May take 3 seconds)
Attempting to open comm with ATs
---> AT
<---
---> AT
<---
---> AT
<---
---> AT
..
..
Timeout: No response to AT... last ditch attempt.
---> AT
<---
---> AT
<---
---> AT
<---
---> ATE0
<---
---> ATE0
<---
Couldn't find FONA

The lipo battery, GSM ANT, AND GPS are connected accordingly. The led is blinking in blue and everything looks fine, however fona cannot be found whatsoever. Can someone help me out to put it right?

User avatar
jarek76
 
Posts: 6
Joined: Fri Dec 22, 2017 12:51 pm

Re: Problem with Arduino Adafruit 808 shield

Post by jarek76 »

Doea anybody know the answer?

User avatar
katrinasiegfried
 
Posts: 4
Joined: Wed Oct 26, 2016 7:39 pm

Re: Problem with Arduino Adafruit 808 shield

Post by katrinasiegfried »

Do you have a LiPo battery plugged into the JST connector? You cannot use the FONA without one.

User avatar
jarek76
 
Posts: 6
Joined: Fri Dec 22, 2017 12:51 pm

Re: Problem with Arduino Adafruit 808 shield

Post by jarek76 »

Yes, lipo battery is connected accordingly.

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problem with Arduino Adafruit 808 shield

Post by adafruit_support_carter »

Post a photo of your setup showing all connections.

User avatar
jarek76
 
Posts: 6
Joined: Fri Dec 22, 2017 12:51 pm

Re: Problem with Arduino Adafruit 808 shield

Post by jarek76 »

There you go...
Attachments
pic4.jpg
pic4.jpg (264.44 KiB) Viewed 411 times
pic3.jpg
pic3.jpg (265.59 KiB) Viewed 411 times
pic1.jpg
pic1.jpg (199.88 KiB) Viewed 411 times

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problem with Arduino Adafruit 808 shield

Post by adafruit_support_carter »


User avatar
jarek76
 
Posts: 6
Joined: Fri Dec 22, 2017 12:51 pm

Re: Problem with Arduino Adafruit 808 shield

Post by jarek76 »

Many thanks. It works now, however the following error pops up:
---> AT+CGNSPWR?
<--- +CGNSPWR: 0
---> AT+CGNSPWR=1
<--- OK
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- ERROR
---> AT+CGNSINF
<--- +CGNSINF: 0,,,,,,,,,,,,,,,,,,,,
Localisation method: GPRS
---> AT+CIPGSMLOC=1,1
<--- +CIPGSMLOC: 601
Fail code #601


Does it mean there is something wrong with my sim card?

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: Problem with Arduino Adafruit 808 shield

Post by adafruit_support_carter »

What example sketch are trying to run?

User avatar
jarek76
 
Posts: 6
Joined: Fri Dec 22, 2017 12:51 pm

Re: Problem with Arduino Adafruit 808 shield

Post by jarek76 »

I am trying to run a standard Fona test sketch. Have also tried to enable GPRS via "G" command, however to no avail. The following message is being populated:
SHUT OFONA> K
G
---> AT+CIPSHUT
<--- AT+CIPSHUT
---> AT+CGATT=1
<--- AT+CGATT=1
Failed to turn on
OK
FONA>

Raw NMEA out attached below:
FONA>
Call Ready

SMS Ready
L
---> AT+CGNSINF
<--- +CGNSINF: 0,,,,,,,,,,,,,,,,,,,,
Reply in format: mode,fixstatus,utctime(yyyymmddHHMMSS),latitude,longitude,altitude,speed,course,fixmode,reserved1,HDOP,PDOP,VDOP,reserved2,view_satellites,used_satellites,reserved3,C/N0max,HPA,VPA
0,,,,,,,,,,,,,,,,,,,,
FONA> t
---> AT+CCLK?
<--- +CCLK: "04/01/01,00:56:04+00"
Time = "04/01/01,00:56:04+00"
FONA> G
---> AT+CIPSHUT
<--- SHUT OK
---> AT+CGATT=1
<--- OK
---> AT+SAPBR=3,1,"CONTYPE","GPRS"
<--- OK
---> AT+SAPBR=3,1,"APN","FONAnet"
<--- OK
---> AT+CSTT="FONAnet"
<--- OK
---> AT+SAPBR=1,1
<--- ERROR
Failed to turn on
FONA>

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”