ublox icon indicating copy to clipboard operation
ublox copied to clipboard

GNSS Sample Rate over UART for NEO-M8Q0

Open harald85 opened this issue 3 years ago • 0 comments

I am using the ublox ROS Node for the communication with the NEO - M 8 Q0 - 1 0. The chip communicates via UART and the default configuration is 9600 Bautrate with one rostopic message per second. We now need 4 or more messages per second. I tried to change the rate parameter in the config to 2 or 4 but the message is also published with 1Hz. I also tried to change the baudrate in the configuration to 115200 but then I got the following error:

[ INFO] [1562923536.984527438]: U-Blox: Opened serial port /dev/ttyS2
[DEBUG] [1562923537.485120091]: U-Blox: Set ASIO baudrate to 9600
[DEBUG] [1562923537.985716925]: U-Blox: Set ASIO baudrate to 19200
[DEBUG] [1562923538.486255526]: U-Blox: Set ASIO baudrate to 38400
[DEBUG] [1562923538.986828667]: U-Blox: Set ASIO baudrate to 57600
[DEBUG] [1562923539.487401594]: U-Blox: Set ASIO baudrate to 115200
[DEBUG] [1562923539.487568125]: Configuring UART1 baud rate: 115200, In/Out Protocol: 7 / 1
terminate called after throwing an instance of 'std::runtime_error'
  what():  Could not configure serial baud rate

I use the following configuration:

# Configuration Settings for NEO-M8Q connected via serial port
 
debug: 1                    # Range 0-4 (0 means no debug statements will print)
 
device: /dev/ttyS2
frame_id: neom8qraw
rate: 4                     # in Hz
nav_rate: 1                 # [# of measurement cycles], recommended 1 Hz, may
                            # be either 5 Hz (Dual constellation) or
                            # 8 Hz (GPS only)
 
config_on_startup: true
 
raw_data: true
 
uart1:
  baudrate: 115200
 
inf:
  all: false                   # Whether to display all INF messages in console

What exactly is my failure and is there a workaround for my situation?

harald85 avatar Apr 14 '21 22:04 harald85