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,N4D
$GNVTG,N2E
$GNGGA,0,00,99.99,56
$GNGSA,A,1,99.99,99.99,99.992E
$GNGSA,A,1,99.99,99.99,99.992E
$GPGSV,1,1,01,30,447B
$GLGSV,1,1,0065
$GNGLL,V,N7A
$GNRMC,V,N4D
$GNVTG,N2E
$GNGGA,0,00,99.99,56
$GNGSA,A,1,99.99,99.99,99.992E
$GNGSA,A,1,99.99,99.99,99.992E
$GPGSV,1,1,04,07,43,17,38,18,39,30,4470
$GLGSV,1,1,0065
$GNGLL,V,N7A
$GNRMC,V,N4D
$GNVTG,N2E
$GNGGA,0,00,99.99,56
$GNGSA,A,1,99.99,99.99,99.992E
$GNGSA,A,1,99.99,99.99,99.992E
$GPGSV,2,1,06,07,44,09,41,17,40,18,4179
$GPGSV,2,2,06,28,40,30,4573
$GLGSV,1,1,0065
$GNGLL,V,N7A
************************************************************************
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.