You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you plug an IOIO-OTG board into a USB port on your Linux machine, you can check which serial port has been assigned to the device by using various commands and tools. Here are a few methods:
39
-
40
-
Check dmesg Logs:
41
-
42
-
Open a terminal and run the following command to view the kernel logs:
43
-
44
-
bash
45
-
Copy code
46
-
dmesg | tail
47
30
Look for lines related to the connected USB device. The assigned serial port might be mentioned in the logs.
48
31
49
-
Use lsusb and udevadm:
32
+
## Use lsusb
50
33
51
34
Use lsusb to list the connected USB devices and note the device ID.
52
35
53
-
bash
54
-
Copy code
36
+
```
55
37
lsusb
56
-
Use udevadm to get detailed information about the device:
38
+
```
39
+
40
+
## Use udevadm to get detailed information about the device:
57
41
58
-
bash
59
-
Copy code
42
+
```
60
43
udevadm info -a -n /dev/ttyUSB0
44
+
```
61
45
Replace /dev/ttyUSB0 with the appropriate device file.
62
46
63
-
Check /dev/ Directory:
47
+
## Check /dev/ Directory:
64
48
65
49
After connecting the device, run the following command to list the /dev/ directory:
66
50
67
-
bash
68
-
Copy code
51
+
``
69
52
ls /dev/ttyUSB*
70
-
This should show you the assigned serial port(s) for connected USB devices.
53
+
``
71
54
72
-
Use minicom or screen:
73
-
74
-
Install minicom if it's not already installed:
75
-
76
-
bash
77
-
Copy code
78
-
sudo apt-get install minicom
79
-
Run minicom:
80
-
81
-
bash
82
-
Copy code
83
-
minicom -D /dev/ttyUSB0
84
-
Replace /dev/ttyUSB0 with the actual serial port.
85
-
86
-
Alternatively, use screen:
87
-
88
-
bash
89
-
Copy code
90
-
screen /dev/ttyUSB0
91
-
Replace /dev/ttyUSB0 with the actual serial port.
55
+
This should show you the assigned serial port(s) for connected USB devices.
0 commit comments