ValentmSTEM / gps_v1

GPS Version 1
MIT License
1 stars 1 forks source link

Adafruit 3G CCID ERROR #1

Open ValentmSTEM opened 8 years ago

ValentmSTEM commented 8 years ago

The Adafruit 3G FONA model reads with the Arduino and everything works except the SIM CCID 'C' request which returns an error.

ValentmSTEM commented 8 years ago

Resolved with extra solder on SIM connector points.

ValentmSTEM commented 8 years ago

New error - GPS Lock not achieved in FONAtest.

hyoung16 commented 8 years ago

Could this be due to interference or not getting line of sight? Have we decided to use the active antenna in the current build? On 12 Dec 2015 8:02 am, "Melinda Valent" notifications@github.com wrote:

New error - GPS Lock not achieved in FONAtest.

— Reply to this email directly or view it on GitHub https://github.com/ValentmSTEM/gps_v1/issues/1#issuecomment-164061707.

acook16 commented 8 years ago

Is: "GPS Lock not achieved in FONAtest." The exact wording of the error message in the serial monitor? \ On Sat, Dec 12, 2015 at 9:03 AM Melinda Valent notifications@github.com wrote:

New error - GPS Lock not achieved in FONAtest.

— Reply to this email directly or view it on GitHub https://github.com/ValentmSTEM/gps_v1/issues/1#issuecomment-164061707.

twitchyliquid64 commented 8 years ago

Using active antenna? I believe its necessary on the 3G one.

ValentmSTEM commented 8 years ago

The setup was exactly as shown in the Adafruit3G Learn page: https://learn.adafruit.com/adafruit-fona-3g-cellular-gps-breakout/arduino-test The code used was from the GitHub repository: https://github.com/adafruit/Adafruit_FONA_Library The serial output was as shown in the attached screen shots: 3g error on network returned

:

acook16 commented 8 years ago

When you do could you please send the entire serial monitor log so we can see what has been processed correctly up until the error

On Sat, Dec 12, 2015 at 12:17 PM Melinda Valent notifications@github.com wrote:

I will conduct another test Monday.

— Reply to this email directly or view it on GitHub https://github.com/ValentmSTEM/gps_v1/issues/1#issuecomment-164092971.

ValentmSTEM commented 8 years ago

Here is a little more. AT commands not shown. I would have to go get the components. Not sure how soon I can do this.

no lock error2

ValentmSTEM commented 8 years ago

https://github.com/adafruit/Adafruit_FONA_Library/blob/704dc2501eb7b4ffbddd9a4cb1b66eca920f0974/Adafruit_FONA.cpp Lines of interest in cpp 672 to 1080: Line 743 to 751 // GPS fix for 3G Line 796 // begin 3G GPS code Line 811 to 815 //not sure if these lines need to be uncommented. Also 'response' misspelt. Line 1228 GSM // this doesn't appear to have a Adafruit_FONA_3G version

acook16 commented 8 years ago

Lines 812 and 814 are not code functions (and should stay commented) Line 813 (+CGPSINFO:4043.000000,N,07400.000000,W,151015,203802.1,-12.0,0.0,0) looks like NMEA data but since the AT command (+CPGSINFO) is missing 'AT' I don't think it needs to be uncommented and would just give an error if you did.

On Sat, Dec 12, 2015 at 3:27 PM Melinda Valent notifications@github.com wrote:

https://github.com/adafruit/Adafruit_FONA_Library/blob/704dc2501eb7b4ffbddd9a4cb1b66eca920f0974/Adafruit_FONA.cpp Lines of interest in cpp 672 to 1080: Line 743 to 751 // GPS fix for 3G Line 796 // begin 3G GPS code Line 811 to 815 //not sure if these lines need to be uncommented. Also 'response' misspelt. Line 1228 GSM // this doesn't appear to have a Adafruit_FONA_3G version

— Reply to this email directly or view it on GitHub https://github.com/ValentmSTEM/gps_v1/issues/1#issuecomment-164109209.

ValentmSTEM commented 8 years ago

https://github.com/adafruit/Adafruit_FONA_Library/blob/704dc2501eb7b4ffbddd9a4cb1b66eca920f0974/Adafruit_FONA.h Lines of interest in *.h Line 38 // What does the 5 refer to? Is it just the listing order for serial? Line 129 to 132 // The serial did not return the time in serial output. Error. Line 134 to 139 // GPRS handling Line 141 to 146 // Only GPS fix handling Line 243 to 261 // this just seems to refer to turning GPS and GPRS on and off Line 246 // This refers to the 'FONA3G_A' but there is nothing similar that refers to the 'FONA3G_E' model. - ISSUE?

ValentmSTEM commented 8 years ago

Full FONAtest Serial Output (12/12/15):

2ÿþþþþÿÿÿÿÿÿþþÿÿÿþþÿÿÿÿÿÿþFONA basic test Initializing....(May take 3 seconds) ---> AT <--- AT ---> AT <--- AT ---> AT <--- AT ---> ATE0 <--- ATE0 ---> ATE0 <--- OK ---> AT+CVHU=0 <--- † ---> ATI <--- Manufacturer: SIMCOM INCORPORATED Model: SIMCOM_SIM5320E Revision: SIM5320E_V1.5 IMEI: 861311004418835 +GCAP: +CGSM,+DS,+ES

OK

FONA is OK Found FONA 3G (European) ---> AT+GSN <--- 861311004418835

Module IMEI: 861311004418835

[?] Print this menu [a] read the ADC 2.8V max (FONA800 & 808) [b] read the Battery V and % charged [C] read the SIM CCID [U] Unlock SIM with PIN code [i] 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 [u] 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) [O] Turn GPS on (FONA 808 & 3G) [o] Turn GPS off (FONA 808 & 3G) [L] Query GPS location (FONA 808 & 3G) [E] Raw NMEA out (FONA808)

[S] create Serial passthru tunnel

FONA> PB DONE b ---> AT+CBC <--- +CBC: 0,13,3.341V VBat = 3341 mV ---> AT+CBC <--- +CBC: 0,17,3.345V VPct = 17% FONA> C ---> AT+CCID <--- +CCID: "89610185000430710463" SIM CCID = 89610185000430710463 FONA> i ---> AT+CSQ <--- +CSQ: 31,99 RSSI = 31: -52 dBm FONA> n ---> AT+CREG? <--- +CREG: 0,1 Network status 1: Registered (home) FONA> t ---> AT+CCLK? <--- +CCLK: "80/01/06,00:38:58+32" Time = "80/01/06,00:38:58+32" FONA> G ---> AT+CGATT=1 <--- OK ---> AT+CGSOCKCONT=1,"IP","telstra.iph" <--- OK ---> AT+CGAUTH=1,1,"","" <--- OK ---> AT+CIPMODE=1 <--- OK ---> AT+NETOPEN=,,1 <--- Network opened FONA> l ---> AT+CIPGSMLOC=1,1 <--- ERROR Failed! Fail code #17 FONA> O ---> AT+CGPS? <--- +CGPS: 0,1 ---> AT+CGPS=1 <--- OK FONA> l ---> AT+CIPGSMLOC=1,1 <--- ERROR Failed! Fail code #17 FONA> l ---> AT+CIPGSMLOC=1,1 <--- ERROR Failed! Fail code #17 FONA> l ---> AT+CIPGSMLOC=1,1 <--- ERROR Failed! Fail code #17 FONA> L ---> AT+CGPSINFO <--- +CGPSINFO:,,,,,,,, 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 ,,,,,,,,

OK FONA> l ---> AT+CIPGSMLOC=1,1 <--- ERROR Failed! Fail code #17 FONA> g ---> AT+NETCLOSE <--- Network closed FONA> G ---> AT+CGATT=1 <--- OK ---> AT+CGSOCKCONT=1,"IP","telstra.iph" <--- OK ---> AT+CGAUTH=1,1,"","" <--- OK ---> AT+CIPMODE=1 <--- OK ---> AT+NETOPEN=,,1 <--- Network opened FONA> o ---> AT+CGPS? <--- +CGPS: 1,1 ---> AT+CGPS=0 <--- OK FONA> O ---> AT+CGPS? <--- +CGPS: 0,1 ---> AT+CGPS=1 <--- OK FONA> l ---> AT+CIPGSMLOC=1,1 <--- ERROR Failed! Fail code #17 FONA> L ---> AT+CGPSINFO <--- +CGPSINFO:,,,,,,,, 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 ,,,,,,,,

OK FONA> l ---> AT+CIPGSMLOC=1,1 <--- ERROR Failed! Fail code #17 FONA> L ---> AT+CGPSINFO <--- +CGPSINFO:,,,,,,,, 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 ,,,,,,,,

OK

FONA> x ---> AT+CGPSINFO <--- +CGPSINFO:,,,,,,,, GPS off

AmpI/AmpQFONA> : 431/430

OK

ValentmSTEM commented 8 years ago

https://github.com/adafruit/Adafruit_FONA_Library/blob/704dc2501eb7b4ffbddd9a4cb1b66eca920f0974/examples/GPS/GPS.ino Lines of interest in GPS.ino Line 48: // comment Line 50: // uncomment Line 100: // uncomment and change APN to 'mdata.net.au' for Aldi and 'telstra.iph' for Telstra. Blank un and pw for both. Line 634 to 672: // this only works for the 808 not the 3G. Consider what goes here for 3G. Noting the output above. The query 'x' indicates GPS is off even though the command 'O' states it as OK.

FONA> O ---> AT+CGPS? <--- +CGPS: 0,1 ---> AT+CGPS=1 <--- OK

FONA> x ---> AT+CGPSINFO <--- +CGPSINFO:,,,,,,,, GPS off

AmpI/AmpQFONA> : 431/430

OK

ValentmSTEM commented 8 years ago

Code for similar 3G SIM http://www.generationrobots.com/media/3G-GPRS-GPS-Arduino-Shield-With-Audio-Video-Kit.pdf

P39 - AT command summary

Product cost USD242.50 http://www.generationrobots.com/en/401849-3g-gprs-gps-shield-for-arduino-raspberry-pi-intel-galileo.html?search_query=SIM5218&results=1

ValentmSTEM commented 8 years ago

I will not be pursuing the Adafruit 3G GPS functionality further at this time. Reasons below:

  1. The Adafruit 3G as it indicates does not yet support GPRS. This is indicated in Line 85 of the GPS test code. GPRS is necessary for this project. http://www.liveviewgps.com/blog/what-is-gprs-and-how-is-it-used-with-gps-tracking-devices/
  2. GPS on the Adafruit 808 model: GSMLOC (location via triangulation of nearest cell towers) is supported by the FONA 800 and 808 but not 3G https://learn.adafruit.com/adafruit-fona-3g-cellular-gps-breakout/3g-vs-fona-800-808#gps
valentm commented 8 years ago

I will however look at direct USB connection to get NMEA strings.

Melinda Valent iPhone

On 14 Dec 2015, at 8:37 pm, Melinda Valent notifications@github.com wrote:

I will not be pursuing the 3G GPS functionality further at this time. Reasons below:

The Adafruit 3G as it indicates does not yet support GPRS. This is indicated in Line 85 of the GPS test code. GPRS is necessary for this project. http://www.liveviewgps.com/blog/what-is-gprs-and-how-is-it-used-with-gps-tracking-devices/

GPS on the Adafruit 808 model: GSMLOC (location via triangulation of nearest cell towers) is supported by the FONA 800 and 808 but not 3G https://learn.adafruit.com/adafruit-fona-3g-cellular-gps-breakout/3g-vs-fona-800-808#gps

— Reply to this email directly or view it on GitHub.