GPS V.KEL not working

I use V.KEL VK2828U8G5LF S/N:1608U00401 connect with arduino MEGA 2560

| GPS | | | ARDUINO |
| - | - | - |
| TX | | | RX-12(PWM) |
| RX | | | TX-11(PWM) |
| VCC | | | 5V |
| GNN | | | GNN |

My code.

#include <SoftwareSerial.h>
SoftwareSerial gpsBoard (12, 11, false);

void setup() {
  Serial.begin(38400);
  gpsBoard.begin(9600);
}

void loop() {
  while (gpsBoard.available()) {

    byte c = gpsBoard.read();                   // Read the GPS data
    
    Serial.print((char)c);
    
  }
  Serial.print(gpsBoard.available());
  delay(1000);
}

On run in Serial monitor

0
$GNRMC,,V,,,,,,,,,,N*4D
$GNVTG,,,,,,,,,N*2E
$GNGGA,,,,,,0,00,0$GNRMC,,V,,,,,,,,,,N*4D
$GNVTG,,,,,,,,,N*2E
$GNGGA,,,,,,0,00,0$GNRMC,,V,,,,,,,,,,N*4D
$GNVTG,,,,,,,,,N*2E
$GNGGA,,,,,,0,00,0$GNRMC,,V,,,,,,,,,,N*4D
$GNVTG,,,,,,,,,N*2E
$GNGGA,,,,,,0,00,0$GNRMC,,V,,,,,,,,,,N*4D
$GNVTG,,,,,,,,,N*2E
$GNGGA,,,,,,0,00,0$GNRMC,,V,,,,,,,,,,N*4D
$GNVTG,,,,,,,,,N*2E
$GNGGA,,,,,,0,00,0

Help me please. :-\

If you have a Mega2560, do not use SoftwareSerial emulation, use one of the three available hardware serial interfaces. SoftwareSerial should only be used if absolutely no other option is available.

You need to connect the EN pin to HIGH (either the 5V or a GPIO on the Arduino so you can control the modules power consumption) to enable it.

First, simplify your echo loop to this:

void loop() {
  while (gpsBoard.available()) {

    byte c = gpsBoard.read();                   // Read the GPS data
    
    Serial.print((char)c);
    
  }
}

The delay will cause it to lose data.

The data that you did capture shows that you do not have good satellite reception. Check the antenna connections (if any) and try going nearer to windows. You may have to go outside and have a clear view of the sky (no tall buildings). It could take 10-20 minutes for you to get the first fix.

If you start getting numbers between the commas, then you will know the GPS has good satellite reception.

When that's working, you might be interested in the smallest, fastest GPS parsing library, NeoGPS. It will parse the sentences from this new GPS device, unlike most other libraries. NeoGPS is available from the Arduino Library Manager, under the menu Sketch -> Include Library -> Manage Libraries.

Like pylon said, you don't need SoftwareSerial on pins 10 and 11, because the Mega has 3 other hardware serial ports on pins 14-19: Serial1, Serial2 and Serial3. For example, connect the GPS RX to Arduino 18, GPS TX to Arduino 19, and use Serial1 instead:

#define gpsBoard Serial1

void setup() {
  Serial.begin(38400);
  gpsBoard.begin(9600);
}

void loop() {
  while (gpsBoard.available()) {

     byte c = gpsBoard.read();                   // Read the GPS data
    
     Serial.print((char)c);
  }
}[/cocde]

It looks like this might be a 3.3V module, if it really has a ublox M8N chip. If that's true, you should use "level shifting" on the RX and TX pins. Don't connect the GPS RX for now. Search around here, or read this post.

Cheers,
/dev

Thank you pylon and /dev for answer very much.

I fix by connect the EN pin to HIGH and wait about 2 minute.
if not show lat long. I click reset arduino. it will working.