usb 1-1: new full-speed USB device number 21 using xhci_hcd So if your dmesg output looks like this: ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0 Can someone please give me an easy to understand and commented minimal example of how to send an stream with uart and how to receive and log it or print it.You can parse dmesg output with AWK and pass the results to a Python script via argument.įor example, this command will pass the port names to script print_argument.py: dmesg | awk '$0 ~ "attached to ttyUSB.+$" ' | xargs python print_argument.py
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |