Index: book.xml.withusb =================================================================== --- book.xml.withusb +++ book.xml.withusb @@ -6328,6 +6328,47 @@ always have a modem attached to the port. + If you are using USB to UART converter cables, + then it will show up as a different device. An easy way to + find out what it will show up in &man.dmesg.8; is to run + &man.dmesg.8; without having your device connected, then + running &man.dmesg.8; again to see what your device is + listed as: + + &prompt.user; dmesg | tail -5 +ums0: 3 buttons and [XYZ] coordinates ID=0 +ugen1.5: <Logitech USB Keyboard> at usbus1 +ukbd0 on uhub3 +ukbd0: <USB Keyboard> on usbus1 +kbd2 at ukbd0 +&prompt.user;dmesg | tail -5 +ukbd0: <USB Keyboard> on usbus1 +kbd2 at ukbd0 +ugen1.4: <Silicon Labs CP2102 USB to UART Bridge Controller>at usbus1 +uslcom0 on uhub3 +uslcom0: <CP2102 USB to UART Bridge Controller> on usbus1 + + In the commands above, the first &man.dmesg.8; + happened before the device was connected. Then we + connected the usb and the second &man.dmesg.8; was used + to show the device detected. The | tail -5 + pipe was used to do limit the output to 5 lines. This is + only a way to ensure that our device is detected, but it + will not show up in /dev/ as + uslcom0. USB to UART devices usually + show up as ttyUX where X is the + number of device. + + To establish a connection through USB to UART, use the + cu command. For example if the + device is shown up in /dev/ttyU0: + + &prompt.user;cu -l /dev/ttyU0 -s [speed] + + Where speed is the baud-rate of + your device which you can find on your device's website. + For BeagleBone Black, as an example, this is 115,200. + The GENERIC kernel includes support for two serial ports using the same IRQ and port address settings in the above example. If these settings