Print nmea data

good morning
I'm trying to print the nmea data from the Allystar TAU1312 GNSS module, but the nmea data is not being printed as expected.
Could someone help me, please?

Please edit your post to replace the screenshot with the code and output, posted as text using code tags (<code> editor button).

Maybe try

gps.begin(9600);

Is this your complete sketch?

#include <SoftwareSerial.h>
#define PINO_RX 2
#define PINO_TX 3

// Serial para comunicar com o módulo
SoftwareSerial gps (PINO_RX, PINO_TX);

void setup() {
  // Configura os pinos
  pinMode(PINO_RX, INPUT);
  pinMode(PINO_TX, OUTPUT);

  // Inicia a comunicação serial padrão (monitor serial)
  Serial.begin(115200);

  // Inicia a comunicação serial com o modulo
  gps.begin(115200);
}

void loop() {
  // Enquanto a comunicação estiver disponível, imprime os dados recebidos
  while (gps.available() > 0) {
    Serial.write(gps.read());
  }
}

/*

11:02:01.482 -> $GNGSA, 140204.000,0552.0855663, S, 03513.4643673, W, 1,09, 1.13, 53.323,M,-9.801,M,, *57
11:02:05.318 -> $GNGSA, A, 3, 12, 2, 8,5,,,6,1251C$GA, 2b12,,, .13.5*GG,, 217122512,,,2,,,,,1DSGV, 22,,72122,,,,,902,,5PS33,271,,5102,,,5212,,, 5BS31,671,653,, 4047952, *$G, 21132,,, 484021,024, *BS, 305221,,4,7 11:02:05.350 -> R, 040,02053553633,001071, ACE$DA40007123004GS, 040,1,,.55, 6* $GNGGA, 140205.000,0552.0855186, S, 03513.4641677,W,1,09,1.13,53.236,M,-9.801,M,, *5C 11:02:06.326 -> $GNGSA, A, 3, 12, 5821,,, ., 3., *GS, 22, 2,,,,6,12547$GV, 1a21,2,,0,,37253216GS, 122, 781221,,, 5,02,,5GS332271,,5102,75,,,447*4$G,,137,52,, 82252,742515 11:02:06.364 -> DV,,,,242384021,,4,14$GV, 13,,2,,,4,7
11:02:06.364 -> NM050, 0205653347W.01012,, *GZ,050,1,0,0 *F$G12.052,,5,54.65
11:02:07.288 -> $GNGGA, 140206.000, 05M&
11:02:07.328 -> "2"02"Ob:0) 000
11:02:07.328 -> b�lb�R��
11:02:07.328 -> �☐☐�¤�¤*��jlm��=
11:02:07.328 -> $GNGSA, A, 3, 12, 25, 18, 24,15,,,,,,,,2.61,1.13,2.35,1*0C
11:02:07.328 -> $GNGSA,, 412,,2112547$PV,1,,12325238832,,2616
11:02:07.365 -> PV31, 47, 2544312c,,,8115GS, 322711252,74779522255BS, 10671, 65322527895511
11:02:07.365 -> S32013242,,,,056\24, *BG, 1,,,2,, 34, 7GR, 060,0555,3144,, 0,011,, CF$NA42007123004
11:02:07.365 -> NS12601, 5,56.07
11:02:08.325 -> $GNGGA, 140207.000, 0552.085n754, S, 03513.4640492,W,1,09,1.13,52 960,M,-9.801, M,, *50 11:02:08.325 -> $GNGSA, A, 3, 122,,45,,, 61325 * $G,,,,,2,, 21.3., OPS31,271,,510983002
11:02:08.325 -> R��
11:02:08.365 -> "GPS3222,7352231,, 5b00,15
11:02:08.365 -> G, 31171205, 34223,122,,5

*/

Software serial is not going to reliably work at 115200 baud.

SoftwareSerial may even have problems at 38400 baud (on an Arduino Uno and the like), so stay below that, or use an Arduino with more than one hardware serial port.

yes

Follow up with @david_2018 and @jremington

Serial.begin(9600); // Serial monitor
gps.begin(9600); // Software Serial

... and show your results.

If you have to run the GPS at 115200, what I've done before is to wire the Tx from the GPS to the hardware Rx on the UNO, leaving the GPS Rx line unconnected. That allows you to receive GPS data on Serial, while still being able to send data to the serial monitor over Serial, but you do have to disconnect the GPS from the Rx pin when uploading a sketch.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.