ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Unable to Open Com Port [closed]

asked 2021-05-28 19:56:51 -0600

mfatih gravatar image

Hi AskUbuntu community.

I want ask a question about the opening of serial ports in Ubuntu. I use Ubuntu 20.04 in my MSI computer.

I want to access a hardware device (A GPS unit) via USB cable. I installed the ROS2 driver of the device and tried the below code example:

ros2 launch sbg_driver sbg_device_launch.py

After that I got the error message: sbgInterfaceSerialCreate: Unable to open the com port: /dev/sbg

To fix the error, I added myuser to dialout and tty groups but the error did not be fixed.

Can you help me?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by gvdhoorn
close date 2021-06-01 14:22:11.641910

Comments

1

This is clearly a cross-post (the OP hasn't even removed the salutation) of Unable to Open Com Port on AskUbuntu.

The cross-post there even has responses.

@mfatih: please do not cross-post, or at least not within a day.

gvdhoorn gravatar image gvdhoorn  ( 2021-06-01 14:23:44 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-06-01 13:07:26 -0600

djchopp gravatar image

updated 2021-06-01 13:10:47 -0600

Chances are your serial device is not named /dev/sbg

Try:

  1. Unplugging your usb->serial converter.
  2. Run ls /dev in a terminal
  3. Plug in the usb->serial converter
  4. Run ls /dev again.
  5. Look for a newly added device (probably something like /dev/ttyUSB0)
  6. Edit config/sbg_device_uart_default.yaml to use the new device instead of /dev/sbg
edit flag offensive delete link more

Comments

Thanks, this method fixed my problem.

mfatih gravatar image mfatih  ( 2021-06-04 00:30:55 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2021-05-28 19:56:51 -0600

Seen: 1,407 times

Last updated: Jun 01 '21