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

defining serial ports

asked 2013-03-07 08:33:48 -0500

TJump gravatar image

For all my current drivers it seems they use 'ttyUSB#' for reading inputs (see example below)

def __init__(self, default_port='/dev/ttyUSB0'):

What are the definitions for reading other port types (especially UART)?

or, a link to a reference?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-03-07 08:42:38 -0500

dornhege gravatar image

It obviously depends on the device.

UARTs you'll usually find at /dev/ttyS*

Some devices as Hokuyos or newer Arduinos also show up at /dev/ttyACM*.

edit flag offensive delete link more


This is good information. Are these and other different port address schemes documented somewhere? It would be good to know the reference.

TJump gravatar image TJump  ( 2013-03-08 01:28:13 -0500 )edit

AFAIK not in general as it depends on the driver what devices that one brings up. There might be some official overview, though.

dornhege gravatar image dornhege  ( 2013-03-08 01:35:02 -0500 )edit

In most cases it's also quite simple to figure out: Check dmesg output before and after plugging a device. There should be some message with the /dev/... if there is one. This doesn't work with anything that is already connected to the system like a COM port.

dornhege gravatar image dornhege  ( 2013-03-08 01:36:24 -0500 )edit

Question Tools


Asked: 2013-03-07 08:33:48 -0500

Seen: 213 times

Last updated: Mar 07 '13