LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to tell which serial port a device is on (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-tell-which-serial-port-a-device-is-on-4175501565/)

NotionCommotion 04-13-2014 02:28 PM

How to tell which serial port a device is on
 
How do I tell which ttySx a device is on. I am specifically looking for the below FaxModem:
Code:

Bus 003 Device 007: ID 0803:9700 Zoom Telephonics, Inc. 2986L FaxModem
Thank you

Code:

[root@desktop ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 04f2:1060 Chicony Electronics Co., Ltd
Bus 001 Device 034: ID 0461:4d0f Primax Electronics, Ltd HP Optical Mouse
Bus 002 Device 003: ID 058f:6362 Alcor Micro Corp. Flash Card Reader/Writer
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 007: ID 0803:9700 Zoom Telephonics, Inc. 2986L FaxModem
[root@desktop ~]#


michaelk 04-13-2014 03:02 PM

Look at the output of the dmesg command or look at the /dev/directory.

I have the 3095 model which also uses the cdc_acm module and is automatically configured as /dev/ttyACM0

NotionCommotion 04-13-2014 03:37 PM

Thank you Michael,

I earlier tried that, but had negative results. Did again and more promising this time. I think it is time to buy a new modem.

I couldn't find anything in /dev/directory, but did get this:

Code:

[root@desktop dev]# dmesg | grep tty
console [tty0] enabled
cdc_acm 3-2:2.0: ttyACM0: USB ACM device
[root@desktop dev]#

The modem is now working, so thanks again. Funny thing happened, however.

I unplugged the modem and plugged it into a different USB. Bunch of text covered the screen on the physical machine, and then Linux rebooted without asking me. Is this normal? Sounds like something Windows would do :(

suicidaleggroll 04-13-2014 03:38 PM

Run dmesg or tail /var/log/messages while plugging in the device.

Or run ls -lrt before and after plugging in the device to see which tty has been added.



Edit: too slow...


All times are GMT -5. The time now is 01:52 AM.