For convenience, the `xhcidbc-log` shell script in the `misc/` directory
can be used to gather debug output from the device. It uses the
`inotifywait` utility (part of [*inotify-tools*][2]) to wait for the
-device to be created and then display the output using `cat`. Either
-execute the script as root or make sure the user has the necessary
-access rights, e.g. is member of the `dialout` group.
-
-If there is no visible console output despite the serial device being present,
-the tty setting may be incorrect. Issue the following command to adjust the
-parameters:
-
- $ stty -F /dev/serial/by-id/usb-secunet_HW.DbC_1-if00-port0 raw -echo
-
-`stty` is part of the [*coreutils* software collection][3].
+device to be created and then displays the output using `picocom`.
+Either execute the script as root or make sure the user has the
+necessary access rights, e.g. is member of the `dialout` group.
## BIOS considerations
[1]: https://www-ssl.intel.com/content/www/us/en/io/universal-serial-bus/extensible-host-controler-interface-usb-xhci.html
[2]: https://github.com/rvoicilas/inotify-tools/wiki
-[3]: https://www.gnu.org/software/coreutils/
do
for f in "/dev/serial/by-id/usb-secunet_HW.DbC"*; do
if [ -e "$f" ] ; then
- cat "$f"
+ picocom -b 115200 -r -l "$f"
break 2;
else
inotifywait -qe create /dev/serial/by-id 2>&1