Closed a-3isa closed 1 month ago
Hi @a-3isa ,
In your code, you are trying to use Serial to communicate with the gps02-ubx module on UART2 (myGNSS.connectedToUART2();
). But I think the gps02-ubx module does not provide access to UART2, only UART1?
In your screenshot, I think you are using I2C to communicate with the gps02-ubx module? This does not match your code.
To help you further, we need to see a schematic and a photo of how you have connected the gps02-ubx module to the ESP32.
Best wishes, Paul
Closing... Please reopen if you need more help with this.
i am getting this![1](https://github.com/sparkfun/SparkFun_u-blox_GNSS_v3/assets/97750156/63c6f9c2-12ad-4f14-8ce9-a3fcc8e0f68f)
when i am try to connect to gps02-ubx using esp32c3
`#include "HardwareSerial.h"
include //http://librarymanager/All#SparkFun_u-blox_GNSS_v3
SFE_UBLOX_GNSS myGNSS;
HardwareSerial mySerial(1);
long lastTime = 0; //Simple local timer. Limits amount if I2C traffic to u-blox module.
struct gps_readings { long lat, lon, alt; };
void gps_init() { Serial.println("GPS initializing....");
do { Serial.println("GNSS: trying 38400 baud");
} while (1); // Serial.println("GNSS serial connected"); Serial.println("The GPS is successfully initialized."); Serial.println("================================================");
myGNSS.setUART1Output(COM_TYPE_UBX); //Set the UART port to output UBX only myGNSS.saveConfiguration(); //Save the current settings to flash and BBR } `