0

FONA 808 Shield responding with "ERROR" to any "AT+CGPS..."
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

FONA 808 Shield responding with "ERROR" to any "AT+CGPS..."

by cmarkovich on Sat Sep 05, 2015 8:18 pm

I'm using the FONA 808 Shield (2636) with an Arduino UNO, the Micro GPS Antenna (2460), the GSM Slim Antenna (1991) and the Li-Ion Poly 1200 mAh battery (258B). The Arduino is running the FONAtest sketch. All of the GPS commands (O, o, L, x and E) return ERROR. Going into the "Serial passthru tunnel (S)" function, the 808 Shield responds with ERROR even to GPS commands such as "AT+CGPSPWR=?", but these commands should reply with "+CGPSPWR:" followed by valid parameters and then "OK". This is happening with two different FONA 808 Shields. It's almost as if the SIM808 doesn't recognize the GPS commands in its firmware.

Command FONA 808 Shield Response
ATI SIM808 R14.18
AT+GMR Revision:1418B01SIM808M32
AT+GMM SIMCOM_SIM808
AT+CGPSPWR=? ERROR
AT+CGPSRST=? ERROR
AT+CGPSINF=? ERROR
AT+CGPSOUT=? ERROR
AT+CGPSSTATUS=? ERROR
AT+CGNSPWR=? +CGNSPWR: (0-1)

I found a different SIM com document online "SIM800 Seires_GNSS_Application Note_V1.00". The GNSS commands listed in this document work with my FONA 808 shields. Any ideas why the GPS AT commands do not work?

cmarkovich
 
Posts: 3
Joined: Sat Sep 05, 2015 7:15 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by adafruit_support_rick on Sun Sep 06, 2015 5:09 pm

Please run the FONAtest example code and go through the tutorial steps here. See if you still receive an "ERROR" response from the 808:
https://learn.adafruit.com/adafruit-fon ... a-808-only

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by cmarkovich on Sun Sep 06, 2015 11:38 pm

Thanks for the reply, Rick. I am using the FONAtest example. All of the GPS commands from the menu return ERROR. I used menu item "S" so that AT commands could be entered directly from the Arduino Serial Monitor. Here are some commands and their responses.

FONA> O
    ---> AT+CGPSPWR?
    <--- ERROR

    FONA>S
    NOTE: In the following commands and responses, the ---> and <--- are not part of the command message or response. These characters are just there to help show the command that was sent.
      --->ATI
      <---SIM808 R14.18

      --->AT+GMR
      <---Revision:1418B01SIM808M32

      --->AT+GMM
      <---SIMCOM_SIM808

      --->AT+CGPSRST=?
      <---ERROR

      --->AT+CGPSINF=?
      <---ERROR

      --->AT+CGPSOUT=?
      <---ERROR

      --->AT+CGPSSTATUS=?
      <---ERROR

      --->AT+CGNSPWR=?
      <---+CGNSPWR: (0-1)

cmarkovich
 
Posts: 3
Joined: Sat Sep 05, 2015 7:15 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by adafruit_support_rick on Mon Sep 07, 2015 8:36 am

weird. Please email support@adafruit.com with a link to this thread for a replacement FONA 808 shield

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by cry4brk on Mon Sep 07, 2015 1:59 pm

You can use "AT+CGNSPWR=?" AND GNS instead of GPS in all the comands.

cry4brk
 
Posts: 180
Joined: Tue Oct 09, 2012 3:14 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by adafruit2 on Mon Sep 07, 2015 2:10 pm

yep this was updated in version 2 of the FONA808 module

Revision History

As of August 26, 2015 we are shipping with the version 2 SIM808 module which has a slightly different GPS command naming system (AT+CGNS rather then AT+CGPS), and a newer GPS chipset (MT3337 not MT3336)


We have to update the library, forgot to do that! All the commands just use "CGNS" rather than "CGPS"

adafruit2
Site Admin
 
Posts: 20107
Joined: Fri Mar 11, 2005 7:36 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by vijaybhatt on Tue Sep 08, 2015 12:55 pm

Hi,
I changed all CGPS to CGNS now the module is turning on and off but still not able to get the gps location.. please provide the commands, I will update the library
FONA> o
---> AT+CGNSPWR?
<--- +CGNSPWR: 1
---> AT+CGNSPWR=0
<--- OK
FONA> x
---> AT+CGNSSTATUS?
<--- ERROR
Failed to query
FONA> O
---> AT+CGNSPWR?
<--- +CGNSPWR: 0
---> AT+CGNSPWR=1
<--- OK
FONA> x
---> AT+CGNSSTATUS?
<--- ERROR
Failed to query
FONA> E
GPS NMEA output sentences (0 = off, 34 = RMC+GGA, 255 = all)34 ---> AT+CGNSOUT=034
<--- ERROR
FONA>

vijaybhatt
 
Posts: 1
Joined: Tue Sep 08, 2015 12:53 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by cry4brk on Tue Sep 08, 2015 4:02 pm

I think this is what you are looking for "AT+CGNSINF"
Maybe this will help you. http://www.adafruit.com/datasheets/SIM800%20Series_GNSS_Application%20Note%20V1.00.pdf

cry4brk
 
Posts: 180
Joined: Tue Oct 09, 2012 3:14 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by tictag on Fri Sep 11, 2015 12:22 pm

adafruit2 wrote:yep this was updated in version 2 of the FONA808 module
We have to update the library, forgot to do that! All the commands just use "CGNS" rather than "CGPS"


I like to keep my libraries up-to-date, so assuming you do update the FONA library for Rev2 SIM808, will this break Rev1 commands or will you allow for backwards compatibility? I can't imagine having two separate libraries would be a good solution.

tictag
 
Posts: 219
Joined: Sun Feb 15, 2015 4:01 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by adafruit2 on Fri Sep 11, 2015 2:24 pm

yep just updated it now!
https://github.com/adafruit/Adafruit_FONA_Library
it will use 'ATI' to detect which is attached and automatically adjust/change the commands based on what it detects. please try it out!

For more details, both documents are now available at
https://learn.adafruit.com/adafruit-fon ... /downloads
for v2 you'll need the GNSS document. its annoying they changed the commands >.< but the data is still all there

adafruit2
Site Admin
 
Posts: 20107
Joined: Fri Mar 11, 2005 7:36 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by tictag on Fri Sep 11, 2015 2:39 pm

Arduino (and you) worked hard to get all the Adafruit libraries interfaced into the IDE 6.x library manager....not seeing a v1.2.0 in the list.... ;-p

tictag
 
Posts: 219
Joined: Sun Feb 15, 2015 4:01 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by adafruit2 on Fri Sep 11, 2015 3:00 pm

yep it will take a few days for it to get picked up and updated by the library system, for now, i recommend uninstalling and then manually installing it.

adafruit2
Site Admin
 
Posts: 20107
Joined: Fri Mar 11, 2005 7:36 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by goldiiman on Thu Nov 12, 2015 3:05 pm

Hi

I also have just received my 808, all GSM command work fine. (through PUTTY). Every GPS commands I try I get back ERROR,

I have tried (and others)
AT+CGPSPWR=?
AT+CGNSPWR=?

What should I try?

thanks
martin

goldiiman
 
Posts: 6
Joined: Thu Nov 12, 2015 2:59 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by adafruit2 on Thu Nov 12, 2015 3:12 pm

see above

adafruit2
Site Admin
 
Posts: 20107
Joined: Fri Mar 11, 2005 7:36 pm

Re: FONA 808 Shield responding with "ERROR" to any "AT+CGPS.

by goldiiman on Thu Nov 12, 2015 3:25 pm

i have tried both set of commands, i am using PUTTY so pure serial AT commands

rather then use "see above", could you detail which bit will help me get the GPS working over PUTTY

goldiiman
 
Posts: 6
Joined: Thu Nov 12, 2015 2:59 pm

Please be positive and constructive with your questions and comments.