Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS2 Package Error : U-blox: received NACK: 0x06 / 0x01 #230

Open
rafiqrana opened this issue Nov 7, 2023 · 2 comments
Open

ROS2 Package Error : U-blox: received NACK: 0x06 / 0x01 #230

rafiqrana opened this issue Nov 7, 2023 · 2 comments

Comments

@rafiqrana
Copy link

rafiqrana commented Nov 7, 2023

I am trying to run ublox_gps_node with the provided zed_f9p.yaml config file; however, it produces error [ERROR] U-blox: received NACK: 0x06 / 0x01. Suggested by different webpages, the problem might be baud rate; however, I have tested with 9600, 57600, 38400, etc. - nothing worked.

GPS Device:
RTK ZED F9P GNSS

To Reproduce:
To reproduce the error, one needs to create a launch file within launch directory of the ulbox_gps package or from a new package. The tested launch file as follows:

import os

import ament_index_python.packages
import launch
import launch_ros.actions


def generate_launch_description():
    config_directory = os.path.join(
        ament_index_python.packages.get_package_share_directory('ublox_gps'),
        'config')
    params = os.path.join(config_directory, 'zed_f9p.yaml')
    ublox_gps_node = launch_ros.actions.Node(package='ublox_gps',
                                             executable='ublox_gps_node',
                                             output='both',
                                             parameters=[params])

    return launch.LaunchDescription([ublox_gps_node,

                                     launch.actions.RegisterEventHandler(
                                         event_handler=launch.event_handlers.OnProcessExit(
                                             target_action=ublox_gps_node,
                                             on_exit=[launch.actions.EmitEvent(
                                                 event=launch.events.Shutdown())],
                                         )),
                                     ])

Expected behavior:
Upon successful run, the node should publish gps coordinate to /fix topic.

Screenshots:

[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [ublox_gps_node-1]: process started with pid [256794]
[ublox_gps_node-1] [INFO] [1699327259.356706354] [ublox_gps_node]: U-Blox: Opened serial port /dev/ttyACM0
[ublox_gps_node-1] [INFO] [1699327259.858498733] [ublox_gps_node]: EXT CORE 1.00 (f10c36), HW VER: 00190000
[ublox_gps_node-1] [INFO] [1699327259.865033133] [ublox_gps_node]: U-Blox Firmware Version: 9
[ublox_gps_node-1] [WARN] [1699327259.866098143] [ublox_gps_node]: For HPG Ref devices, nav_rate should be exactly 1 Hz.
[ublox_gps_node-1] [INFO] [1699327259.872444645] [ublox_gps_node]: U-Blox configured successfully.
[ublox_gps_node-1] [ERROR] [1699327259.875390779] [ublox_gps_node]: U-blox: received NACK: 0x06 / 0x01
[ublox_gps_node-1] [ERROR] [1699327259.875771974] [ublox_gps_node]: U-blox: received NACK: 0x06 / 0x01

Desktop INFO:

  • OS: Ubuntu 22.04
  • ROS Version ROS2 Humble
@Corund060
Copy link

I get those errors too, but I still get coordinates on /ublox_gps_node/fix topic

@brandonbeggs
Copy link

Try setting /publish/aid/all to false

In my case what is happening is the ROS2 node is sending a configuration command to the uBlox receiver to generate AID messages periodically. The F9P does not have support for this message type so it is sending a NACK.

Changing debug in your config file to a higher number will give more context about what UBX message is failing. In my case it is:

  • 0x0B 0x30 (AID-ALM)
  • 0x0B 0x31 (AID-EPH)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants