Ask Your Question
0

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
2

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

Comments

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

TJump gravatar imageTJump ( 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 imagedornhege ( 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 imagedornhege ( 2013-03-08 01:36:24 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 111 times

Last updated: Mar 07 '13