GNSS

Hi,



I use the library from the site: <LINK_TEXT text=“https://github.com/Seeed-Studio/WioLTE_ … no_Library”>https://github.com/Seeed-Studio/WioLTE_Cat_NB1_Arduino_Library</LINK_TEXT>

and I had tried the gnss example and get things like below

*****************************************************



$GNRMC,V,N
4D

$GNVTG,N
2E

$GNGGA,0,00,99.99,56

$GNGSA,A,1,99.99,99.99,99.99
2E

$GNGSA,A,1,99.99,99.99,99.99
2E

$GPGSV,1,1,01,30,44
7B

$GLGSV,1,1,00
65

$GNGLL,V,N
7A

$GNRMC,V,N
4D

$GNVTG,N
2E

$GNGGA,0,00,99.99,56

$GNGSA,A,1,99.99,99.99,99.99
2E

$GNGSA,A,1,99.99,99.99,99.99
2E

$GPGSV,1,1,04,07,43,17,38,18,39,30,44
70

$GLGSV,1,1,00
65

$GNGLL,V,N
7A

$GNRMC,V,N
4D

$GNVTG,N
2E

$GNGGA,0,00,99.99,56

$GNGSA,A,1,99.99,99.99,99.99
2E

$GNGSA,A,1,99.99,99.99,99.99
2E

$GPGSV,2,1,06,07,44,09,41,17,40,18,41
79

$GPGSV,2,2,06,28,40,30,45
73

$GLGSV,1,1,00
65

$GNGLL,V,N
7A

************************************************************************



However, I want to get the str_longitude and str_latitude,

so I try the code like below:

************************************************************



#include <ublox_sara_r4_gnss.h>



UBLOX_SARA_R4_GNSS gnss = UBLOX_SARA_R4_GNSS();



void setup()

{

// Open GNSS module

gnss.open_GNSS();

delay(3000);

SerialDebug.println("_Start");

}



void loop() {

char buffer[64];

if(gnss.getCoordinate()){

SerialDebug.print(“GNSS: “);

SerialDebug.print(gnss.longitude, 6);

SerialDebug.print(”,”);

SerialDebug.println(gnss.latitude, 6);

SerialDebug.print(gnss.str_longitude);

SerialDebug.print(",");

SerialDebug.println(gnss.str_latitude);

} else{

SerialDebug.println(“Error!”);

}



delay(1000);

}



**************************************************************



but i didn’t recieve any response

How can I get the GNSS data from WioLTE_Cat_NB1 ?



Thank You .

Hi there~



Please make sure you have the GPS antenna is connected, put the wio module in open area. Keep the code running for a while to get the connection with satellite. thanks.