Xinyuan-LilyGO / LilyGO-T-A76XX

LilyGo A7670X A7608X SIM7670G series
MIT License
128 stars 57 forks source link

A7670 GPS not working #137

Closed putthipongta closed 1 month ago

putthipongta commented 2 months ago

A7670E with GPS antenna and SIM card and outdoor test example : GPS_BuiltIn

Start modem...
AT
AT
AT
AT
.
AT
AT
+CPIN: READY
[14212] ### Unhandled: +CPIN: READY
AT

*ATREADY: 1
AT

OK

Enabling GPS/GNSS/GLONASS
AT+CGNSSPWR=1
AT

OK
AT+CGNSSPWR=1

OK

SMS DONE

+CGEV: EPS PDN ACT 1

+CGNSSPWR: READY!
GPS Enabled
AT+CGNSSIPR=115200

AT+CGNSSIPR=115200

OK
Requesting current GPS/GNSS/GLONASS location
AT+CGNSSINFO
AT+CGNSSINFO

+CGNSSINFO: ,,,,,,,,

OK
Couldn't get GPS/GNSS/GLONASS location, retrying in 15s.
Requesting current GPS/GNSS/GLONASS location
AT+CGNSSINFO

PB DONE
AT+CGNSSINFO

+CGNSSINFO: ,,,,,,,,

OK
Couldn't get GPS/GNSS/GLONASS location, retrying in 15s.
Requesting current GPS/GNSS/GLONASS location
AT+CGNSSINFO
AT+CGNSSINFO

+CGNSSINFO: ,,,,,,,,

OK
Couldn't get GPS/GNSS/GLONASS location, retrying in 15s.
lewisxhe commented 2 months ago

How to determine whether the modem GPS chip is working properly?

  1. First, determine whether the purchased board model supports GPS function, regardless of whether the physical board contains a GPS antenna interface. A7670G does not have built-in GPS function. If the order includes GPS function, it is an external GPS module program. Please run example/GPSShield
  2. Upload GPS_NMEA_Output firmware, then open the serial monitor, adjust the baud rate to 115200, and check whether NMEA sentences are output
  3. If there is no NMEA sentence output, or the GPS command fails, please open an issue in github, report the model you are using and upload the module label image (used to determine the modem hardware version, not the model), and provide the hardware log output message
  4. If the NMEA sentence output is normal, place the device outdoors or outside the window for positioning test
  5. If positioning cannot be performed outdoors, try to replace the antenna or change the position to reposition
  6. If the above operations do not work, check the center pin of the GPS antenna Is there a 2.8~3.3V voltage? If there is voltage and data output, it can be judged that the GPS is completely working properly, and there may be a problem with the antenna.
  7. If there is an available SIM card inserted on the board, you can try to use the accelerated positioning function. This is limited to A7670 users and not suitable for SIM7670G users.

The sixth point is particularly important. Data is output and there is voltage on the center pin of the antenna. This is a manifestation of GPS working. At this time, reporting an issue is powerless. The only thing you can do is to place the GPS where the sky is visible, or replace it with a better antenna for positioning.

For cold start positioning, depending on the quality of the signal, the positioning time varies from 1 minute to 5 minutes, or even longer

putthipongta commented 2 months ago
  1. Board model is A7670E and support GPS function.
  2. I tried to use GPS_NMEA_Output and this is message
    
    Modem starting...AT
    AT
    AT
    AT
    .
    AT
    AT
    AT
    AT
    .
    AT

+CPIN: READY AT

*ATREADY: 1 AT

OK

ATE0 OK ATI AT

OK Unable to obtain module information normally, try again ATE0 AT

OK ATI AT

OK Unable to obtain module information normally, try again OK ATI AT

OK Unable to obtain module information normally, try again ATE0 AT

OK ATI AT

OK Unable to obtain module information normally, try again ATE0

Manufacturer: INCORPORATED Model: A7670E-FASE Revision: A7670M7_V1.11.1 IMEI: 862205059146268 +GCAP: +CGSM,+FCLASS,+DS

OK ATI

SMS DONE

+CGEV: EPS PDN ACT 1

OK Unable to obtain module information normally, try again ATE0

Manufacturer: INCORPORATED Model: A7670E-FASE Revision: A7670M7_V1.11.1 IMEI: 862205059146268 +GCAP: +CGSM,+FCLASS9146268 +GCAP: +CGSM,+FCLASS,+DS

OK ATI

OK Unable to obtain module information normally, try again

lewisxhe commented 2 months ago
  1. Upload the ATDebug sketch, wait for it to fully boot up, and then send AT+SIMCOMATI to report the module firmware version returned to me. Since I also use A7670E-FASE, I can get the module model normally.
    
    « Start modem...
    Modem starting...AT
    AT
    AT
    AT
    .
    AT
    AT
    AT
    AT
    .
    AT
    AT

*ATREADY: 1 AT AT

OK

ATE0 ATE0

OK ATI

Manufacturer: SIMCOM INCORPORATED Model: A7670E-FASE Revision: FAETEST_V1.0.0 IMEI: 860470067519045

OK Model Name:A7670E-FASE Enabling GPS/GNSS/GLONASS AT+CGNSSPWR=1

OK

+CPIN: SIM REMOVED

+CPIN: SIM REMOVED

+CGNSSPWR: READY! GPS Enabled AT+CGNSSIPR=115200

OK AT+CGNSSMODE=3

OK AT+CGNSSNMEA=1,1,1,1,1,1,0,0

OK AT+CGPSNMEARATE=1

OK AT+CGNSSTST=1

OK AT+CGNSSPORTSWITCH=0,1

OK Next you should see NMEA sentences in the serial monitor AT+CGNSSPWR?

+CGNSSPWR: 1,0,1

OK

UC6228CI lite G1L1E1 COM1 PN N/A HWVer N/A FWVer R3.4.21.0Build16211 Copyright (c), Unicore Communications Inc. All rights reserved.

CFGSYS,H101

CFGMSG,0,0,1

CFGMSG,0,1,1

CFGMSG,0,2,1

CFGMSG,0,3,1

CFGMSG,0,4,1

CFGMSG,0,5,1

CFGMSG,0,6,0

CFGMSG,0,7,0

CFGNAV,1000,1000,3

$OK04 $OK04 $OK04 $OK04 $OK04 $OK04 $OK04 $OK04 $OK04 $OK04 $GNRMC,,V,,,,,,,,,,N,V37 $GNGGA,,,,,,0,00,99.99,,,,,,56 $GNGLL,,,,,,V,N7A $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,133 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,331 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,230 $GPGSV,1,1,00,065 $GAGSV,1,1,00,074 $GLGSV,1,1,00,079 $GNVTG,,,,,,,,,N2E $GNRMC,,V,,,,,,,,,,N,V37 $GNGGA,,,,,,0,00,99.99,,,,,,56 $GNGLL,,,,,,V,N7A $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,133 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,331 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,230 $GPGSV,1,1,00,065 $GAGSV,1,1,00,074 $GLGSV,1,1,00,079 $GNVTG,,,,,,,,,N2E $GNRMC,,V,,,,,,,,,,N,V37 $GNGGA,,,,,,0,00,99.99,,,,,,56 $GNGLL,,,,,,V,N7A $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,133 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,331 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,230 $GPGSV,1,1,00,065 $GAGSV,1,1,00,074 $GLGSV,1,1,00,079 $GNVTG,,,,,,,,,N2E



3. Delete the code in the figure below, and then upload it again to check

![image](https://github.com/user-attachments/assets/1cf736b6-4e37-4a8d-9d90-729c9e7ca36e)
putthipongta commented 2 months ago
  1. This is my ATDebug message.
    
    Trying baud rate 115200
    Modem responded at rate:115200
    ***********************************************************
    You can now send AT commands
    Enter "AT" (without quotes), and you should see "OK"
    If it doesn't work, select "Both NL & CR" in Serial Monitor
    DISCLAIMER: Entering AT commands without knowing what they do
    can have undesired consiquinces...
    ***********************************************************

+CGEV: EPS PDN ACT 1

PB DONE AT

OK AT+SIMCOMATI

Manufacturer: INCORPORATED Model: A7670E-FASE Revision: A011B04A7670M7_F A7670M7_B04V02_220927 QCN: IMEI: 862205059146268 MEID: +GCAP: +CGSM,+FCLASS,+DS DeviceInfo:

OK


2. I tried to upload NMEA_Output again and hard reset about 4-5 times until I can get the module model normally.

Manufacturer: INCORPORATED Model: A7670E-FASE Revision: A7670M7_V1.11.1 IMEI: 862205059146268 +GCAP: +CGSM,+FCLASS,+DS

OK

OK

+CGNSSPWR: READY! GPS Enabled AT+CGNSSIPR=115200

OK AT+CGNSSMODE=3

OK AT+CGNSSNMEA=1,1,1,1,1,1,0,0

OK AT+CGPSNMEARATE=1

OK AT+CGNSSTST=1

OK AT+CGNSSPORTSWITCH=0,1

OK Next you should see NMEA sentences in the serial monitor AT+CGNSSPWR?

+CGNSSPWR: 1,0,1

OK $GNRMC,,V,,,,,,,,,,N,V37 $GNGGA,,,,,,0,00,99.99,,,,,,56 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,133 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,331 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,230 $GPGSV,1,1,00,065 $GAGSV,1,1,00,074 $GLGSV,1,1,00,079 $GNRMC,,V,,,,,,,,,,N,V37 $GNGGA,,,,,,0,00,99.99,,,,,,56 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,133 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,331 $GNGSA,A,1,,,,,,,,,,,,,99.99,99.99,99.99,230 $GPGSV,1,1,00,065 $GAGSV,1,1,00,074 $GLGSV,1,1,00,079


*At this time I tried to use GPS_Acceleration and hard reset about 4-5 times until I can get the module model and GPS normally. Thank you for support.

Start modem... . . . . . [13912] ### Unhandled: +CPIN: READY . [14212] ### Unhandled: *ATREADY: 1

Unable to obtain module information normally, try again Unable to obtain module information normally, try again Unable to obtain module information normally, try again [38530] ### Modem: A7670E-FASE Model Name:A7670E-FASE SIM card online Current network mode : AUTO Wait for the modem to register with the network.Online registration successful

Registration Status:1 Inquiring UE system information:LTE,Online,520-04,0x3FC,41889539,9,EUTRAN-BAND1,250,3,0,10,46,49,0 Network IP:10.104.163.88 Enabling GPS/GNSS/GLONASS

GPS Enabled GPS acceleration is enabled success!!! Requesting current GPS/GNSS/GLONASS location Couldn't get GPS/GNSS/GLONASS location, retrying in 15s. Requesting current GPS/GNSS/GLONASS location FixMode:3 Latitude:13.738743 Longitude:100.703163 Speed:27.64 Altitude:-8.10 Visible Satellites:0 Used Satellites:0 Accuracy:3.75 Year:2024 Month:9 Day:12 Hour:2 Minute:4 Second:34 Retrieving GPS/GNSS/GLONASS location again as a string GPS/GNSS Based Location String:3,16,,00,00,13.7382612,N,100.7032013,E,120924,020438.00,-11.4,28.012,175.92,6.51,3.76, Disabling GPS

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 14 days since being marked as stale.