SoftwareSerial Library Issue

It allows you to test the GPS module and change some of its parameters

i don't have usb hub bro to connect gps with ublox

OK, let's try something really simple

Disconnect the GPS module from the Uno completely

Upload this sketch

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

void loop()
{
    if (Serial.available())
    {
        Serial.write(Serial.read());
    }
}

Now connect the 5V and GND wires from the GPS to the Uno. Connect the GPS Tx wire to the Rx pin on the Uno. Do not connect the GPS Rx wire

Open the Serial monitor and set the baud rate to 9600. Once the GPS unit has a satellite lock its LED should start blinking once per second. What, if anything, do you see on the Serial monitor once it has a lock ?

Now LED is also blinking and i am receiving the data like

$GNGGA,140322/000,2737.61059,N,07808.32784,E,1,16,0.9,126.7,M,0$GOGGA,140323.000,2737.61080,N,07808.32725,E,1,16,0.9,128.3,M,0$GNGGA,140328.000,2737/61087,N,07808.32719,E,1,15,1.1,127.9,M,0$GNGG@,140333.000,2737.61106,N,07808.32742,E,1,15,1.1,128.4,M,0

anything you can help me with this

#include <SoftwareSerial.h>

#define rxPin 8
#define txPin 9
SoftwareSerial gpsSerial(rxPin, txPin);

void setup() {
  //Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
  Serial.begin(115200);

  //Begin serial communication with Arduino and SIM800L
  gpsSerial.begin(115200);

  Serial.println("Initializing...");
  delay(1000);
}

void loop() {
  while (gpsSerial.available() > 0)
    Serial.write(gpsSerial.read());
    delay(5000);
}

this is my sketch

$GNGGA,140322/000,2737.61059,N,07808.32784,E,1,16,0.9,126.7,M,0$GOGGA,140323.000,2737.61080,N,07808.32725,E,1,16,0.9,128.3,M,0$GNGGA,140328.000,2737/61087,N,07808.32719,E,1,15,1.1,127.9,M,0$GNGG@,140333.000,2737.61106,N,07808.32742,E,1,15,1.1,128.4,M,0

That is what it ought to look like

In your sketch you have

 gpsSerial.begin(115200);

Why have you set the GPS baud rate to 115200 when it is obviously running at 9600 baud if you followed my instructions ?

Because GPS is only working on this baud rate if i set other then this baud rate it sending non readable data

Please post the sketch that you used when you got this data

$GNGGA,140322/000,2737.61059,N,07808.32784,E,1,16,0.9,126.7,M,0$GOGGA,140323.000,2737.61080,N,07808.32725,E,1,16,0.9,128.3,M,0$GNGGA,140328.000,2737/61087,N,07808.32719,E,1,15,1.1,127.9,M,0$GNGG@,140333.000,2737.61106,N,07808.32742,E,1,15,1.1,128.4,M,0
#include <SoftwareSerial.h>

#define rxPin 8
#define txPin 9
SoftwareSerial gpsSerial(rxPin, txPin);

void setup() {
  Serial.begin(115200);
  gpsSerial.begin(115200);
  Serial.println("Initializing...");
  delay(1000);
}

void loop() {
  while (gpsSerial.available() > 0) {
    Serial.write(gpsSerial.read());
  }
  Serial.println();
  delay(5000);
}

I thought that you had used the sketch that I posted in post #23

Yes same just few modification in baud rate and new line and delays

But it was not my sketch that you posted when I asked you to

For instance, my sketch did not use SoftwareSerial

Before going any further we need to know which sketch gave you the correct data

NOTE that SoftwareSerial will work unreliably, if at all, at 115200 baud and that the default GPS baud rate is usually 9600

This is the final sketch that i have shared to you in post #28 and baud rate for Serial montor and GPS is 115200

So you did not use my test sketch after all, but using the sketch that you posted in reply #28 you got output like

$GNGGA,140322/000,2737.61059,N,07808.32784,E,1,16,0.9,126.7,M,0$GOGGA,140323.000,2737.61080,N,07808.32725,E,1,16,0.9,128.3,M,0$GNGGA,140328.000,2737/61087,N,07808.32719,E,1,15,1.1,127.9,M,0$GNGG@,140333.000,2737.61106,N,07808.32742,E,1,15,1.1,128.4,M,0

Is that correct ?

yes

OK, but you cannot trust SoftwareSerial at 115200 and I am surprised that the GPS module is using that baud rate. It is not impossible but it is unlikely. Where did you get the GPS module from ?

If you have not already done so, install the TinyGPS++ library and try the DeviceExample sketch that comes with it

I bought GPS From robocraze no i used Tiny GPS for the same and its working now Thanks a lot for your support

I am glad that you got it working but I repeat that SoftwareSerial cannot be trusted at 115200 baud, so good luck using it