Hey guys
I have but the ATGM336H 5N-31
i want get the bds signal but i cant get it why
i use simple code test
void setup()
{
Serial.begin(9600);
Serial.println("signal test");
}
void loop()
{
while (Serial.available()) {
Serial.write(Serial.read());
}
}
You seem to have the BDS module connected to the hardware serial port. You can't have the module and serial monitor connected to the same port at the same time. Create a software serial port for the module and use hardware serial for program output and debug.
A simple test program using software serial. Connect the module TX to pin 4 (soft serial RX).
#include <SoftwareSerial.h>
// the gps RX (Arduino TX) is not used
SoftwareSerial gpsSerial(4, -1); // RX, TX
void setup()
{
Serial.begin(115200);
gpsSerial.begin(9600);
}
void loop()
{
if(gpsSerial.available())
{
Serial.print(char(gpsSerial.read()));
}
}