Closed felipesms closed 1 year ago
Hello. Which example are you using? Also make sure the antenna is outdoors
thanks... I tested outdoors with antenna
// See all AT commands, if wanted
// Your GPRS credentials, if any const char apn[] = "zap.vivo.com.br"; const char gprsUser[] = "vivo"; const char gprsPass[] = "vivo";
StreamDebugger debugger(SerialAT, Serial); TinyGsm modem(debugger);
TinyGsm modem(SerialAT);
void modem_on() {
pinMode(BAT_EN, OUTPUT);
digitalWrite(BAT_EN, HIGH);
//A7670 Reset
pinMode(RESET, OUTPUT);
digitalWrite(RESET, LOW);
delay(100);
digitalWrite(RESET, HIGH);
delay(3000);
digitalWrite(RESET, LOW);
pinMode(PWR_PIN, OUTPUT);
digitalWrite(PWR_PIN, LOW);
delay(100);
digitalWrite(PWR_PIN, HIGH);
delay(1000);
digitalWrite(PWR_PIN, LOW);
}
bool reply = true;
// liga gps e flash // AT+CGNSSPWR=1,1
//AT+CGPSINFO void setup() { Serial.begin(115200); // Set console baud rate SerialAT.begin(115200, SERIAL_8N1, PIN_RX, PIN_TX); delay(10); modem_on();
modem.gprsConnect(apn, gprsUser, gprsPass);
delay(2000);
//turn on gps Serial.println("\n---Starting GPS TEST---\n"); SerialAT.println("AT+CGNSSPWR=1,1");
delay(10000);
if (modem.isGprsConnected()) {
Serial.println("GPRS connected");
}
String ccid = modem.getSimCCID();
Serial.println("CCID: " + ccid);
String imei = modem.getIMEI();
Serial.println("IMEI: " + imei);
String cop = modem.getOperator();
Serial.println("Operator: " + cop);
IPAddress local = modem.localIP();
Serial.println("Local IP: " + String(local));
int csq = modem.getSignalQuality();
Serial.println("Signal quality: " + String(csq));
SerialAT.println("AT+CPSI?"); //Get connection type and band
modem.getModemInfo();
// get gps data
float lat, lon;
if (modem.getGPS(&lat, &lon)) { Serial.printf("lat:%f lon:%f\n", lat, lon);}
if (reply) {
Serial.println(F("***********************************************************"));
Serial.println(F(" You can now send AT commands"));
Serial.println(F(" Enter \"AT\" (without quotes), and you should see \"OK\""));
Serial.println(F(" If it doesn't work, select \"Both NL & CR\" in Serial Monitor"));
Serial.println(F(" DISCLAIMER: Entering AT commands without knowing what they do"));
Serial.println(F(" can have undesired consiquinces..."));
Serial.println(F("***********************************************************\n"));
} else {
Serial.println(F("***********************************************************"));
Serial.println(F(" Failed to connect to the modem! Check the baud and try again."));
Serial.println(F("***********************************************************\n"));
}
}
void loop() {
while (true) {
if (SerialAT.available()) {
Serial.write(SerialAT.read());
}
if (Serial.available()) {
SerialAT.write(Serial.read());
}
delay(10);
}
}
Thanks, I used the code and add data APN. I sended for board. the chip not returned message of gps . Best regards for solutions. thanks. I from brazil, need the chip any command?
// log port com
getGPS 463441 AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
OK getGPS 465446 AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
OK getGPS 467451 AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
OK getGPS 469456 AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
OK getGPS 471461 AT+CGNSSINFO
+CGNSSINFO: ,
OK Modem Name: A7670SA-FASE
Manufacturer: INCORPORATED Model: A7670SA-FASE Revision: A7670M7_V1.11.1 IMEI: 869731052065927 +GCAP: +CGSM,+FCLASS,+DS
Is the antenna wired right. Can you take a picture of your board?
link https://imgur.com/a/jLZ0BI8
thanks
Leave the example unchanged. Connect the MicroUSB and open the serial port with NMEA. See if there is data output . (The board needs to be positioned outdoors)
UHHHHHHHHHHHHHHH
CGNSSINFO: ,,,,,,,,
OK getGPS 59215 AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
OK getGPS 61220 AT+CGNSSINFO
+CGNSSINFO: 3,08,,00,00,1947.80135,S,04354.86991,W,151122,124230.00,802.6,0.414,,12.,5.1,10.
OK lat:-0.000000 lon:-0.000000 AT+CGPS=0
All ready.
thanks
Here are the debugging tips for GNSS of A7670 GPS version: Burn ATDebug, and then send commands in the following order
AT+CGDRT=4,1
AT+CGSETV=4,0
AT+CGNSSPWR=1
Waiting to return > +CGNSSPWR: READY!
Next send
AT+CGNSSMODE=3
AT+CGNSSNMEA=1,1,1,1,1,1,0,0
AT+CGPSNMEARATE=2
AT+CGNSSTST=1
AT+CGNSSPORTSWITCH=0,1
Check whether the GPS NMEA message will be output to the AT port
The final effect is shown in the following figure:
Hello, thank you very much. I will try .
Hello, thank you very much. I will try .
Please try again according to the above command
I always get this on my serial monitor
setup... SDCard MOUNT FAIL
Wait... Initializing modem... AT AT AT AT AT AT AT AT AT AT AT AT AT AT AT AT AT AT AT AT
*ATREADY: 1 AT OK ATE0 AT OK AT+CMEE=0 AT OK AT+CTZR=0 ATE0 OK AT+CTZU=1
OK AT+CPIN?
OK
OK
ERROR AT+CPIN?
*ISIMAID: "A0000000871004FFFFF00189000001FF"
+CPIN: READY
+CPIN: READY
OK AT+CGMM
A7670SA-FASE
OK Modem Name: A7670SA-FASE ATI
Manufacturer: INCORPORATED Model: A7670SA-FASE Revision: A7670M7_V1.11.1 IMEI: 869731051383453 +GCAP: +CGSM,+FCLASS,+DS
OK Initializing modem... AT
OK ATE0
OK AT+CMEE=0
OK AT+CTZR=0
OK AT+CTZU=1
OK AT+CPIN?
+CPIN: READY
OK AT+CGMM
A7670SA-FASE
OK Modem Name: A7670SA-FASE ATI
Manufacturer: INCORPORATED Model: A7670SA-FASE Revision: A7670M7_V1.11.1 IMEI: 869731051383453 +GCAP: +CGSM,+FCLASS,+DS
OK AT+CGNSSPWR=0
SMS DONE
+CGEV: EPS PDN ACT 1
OK AT+CGNSSPWR=1
OK Wait GPS reday........ +CGNSSPWR: READY! AT+CGNSSMODE=1
OK AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
OK getGPS 23942 AT+CGNSSINFO
PB DONE
+CGNSSINFO: ,,,,,,,,
OK getGPS 25949 AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
OK getGPS 27956 AT+CGNSSINFO
+CGNSSINFO: ,,,,,,,,
OK getGPS 29963
It can be seen that you did not operate according to the above method. When you turn on the GPS, you must turn on the power supply of the end of the world, otherwise you will not receive any satellite signals
https://github.com/Xinyuan-LilyGO/T-A7670X/issues/25#issuecomment-1346243254
The GPS antenna that came with the device isn't working as well as other antennas I have. I have swapped the antenna and now the GPS fix happens in seconds.
I have swapped the antenna
Could you link the antenna you used for reference?
It's from a local supplier, but as long as it has the u.FL
connector, then you should be ok.
Drone GPS antennas usually have that connection.
Onde posso arrumar uma firmware do a7670sa open ?? Para fazer modificações
Gostaria de modificar o nome da versão que aparece quando consulto pelo SMS com o comando version#, alguém pode me ajudar como consigo alterar ?
Hello , So I have the module T-SIM-A7670-R2 (A7670SA R2 With GPS) I am using Arduino to program. I able to connect to the network but I couldn't get the GPS to work.
AT+CGNSSINFO +CGNSSINFO: ,,,,,,,,
thank you so much