i want to save ubx raw data on a sd card with the help of an arduino. I have an ardusimple module which sends data. On the serial monitore I am receiviing NMEA data. I use this code an the serial monitor is on 9600 baud.
#include <SoftwareSerial.h>
#define PIN_RXD 3
#define PIN_TXD 4
#define GPS_BAUD 38400
// serial connection to the GPS device
SoftwareSerial gpsSerial(PIN_RXD, PIN_TXD);
void setup()
{
Serial.begin(9600);
gpsSerial.begin(GPS_BAUD);
}
void loop()
{
// Output raw GPS data to the serial monitor
while (gpsSerial.available() > 0) {
Serial.write(gpsSerial.read());
}
}
Now i want to receiving UBX binary, so i changed the device setting to:
CFG-UART1outProt-NMEA 0
CFG-UART1outProt-UBX 1
CFG-MSGOUT-UBX_NAV_PTV_UART1
in the serial monitor i get data but only in ,,?????,
do I need to change the baud rate or is there a problem with the device settings?
#include <SoftwareSerial.h>
#define PIN_RXD 3
#define PIN_TXD 4
#define GPS_BAUD 38400
// serial connection to the GPS device
SoftwareSerial gpsSerial(PIN_RXD, PIN_TXD);
void setup()
{
Serial.begin(9600);
gpsSerial.begin(GPS_BAUD);
}
void loop()
{
// Output raw GPS data to the serial monitor
while (gpsSerial.available() > 0) {
Serial.write(gpsSerial.read());
}
}
Now i want to receiving UBX binary, so i changed the device setting to:
CFG-UART1outProt-NMEA 0
CFG-UART1outProt-UBX 1
CFG-MSGOUT-UBX_NAV_PTV_UART1
in the serial monitor i get data but only in ,,?????,
do I need to change the baud rate or is there a problem with the device settings?
replied 1 year ago
Software Serial, and byte level data management are not suitable for the volumes of data being generated. Find a more capable Arduino, they make a broad selection now, along with Adafruit, SparkFun and others.
https://portal.u-blox.com/s/question/0D52p0000Ctpyw3CQA/f9p-ubx-rawx-binary