How to identify multiple USB-serial adapters under

2020-02-23 16:05发布

I am reading data from multiple identical USB-serial adapters under Ubuntu 10.1.

On occasion, their /dev/tty path changes (eg if other USB devices are connected on startup).

I need a way of repeatedly referring to the same adapter through any such changes.

The devices all have the same serial numbers, according to udevadm.

I think the most likely option is to identify an adapter by which port it is connected to (they don't get moved around).

I can find all sorts of interesting /dev paths that might work, but despite all the discussion about udev online, I can't locate a definitive statement about whether some of these paths are static if the device is plugged into a static port.

7条回答
Deceive 欺骗
2楼-- · 2020-02-23 16:51

usb-devices can get you the port number and the bus/dev enumeration.

查看更多
登录 后发表回答