Arduino - USB linux

Po připojení:
marek@tera3:~$ dmesg
[1393321.702869] usb 4-4: new full-speed USB device number 2 using ohci-pci
[1393321.899145] usb 4-4: New USB device found, idVendor=1a86, idProduct=7523
[1393321.899151] usb 4-4: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[1393321.899154] usb 4-4: Product: USB2.0-Serial
[1393322.056494] usbcore: registered new interface driver usbserial_generic
[1393322.056514] usbserial: USB Serial support registered for generic
[1393322.062041] usbcore: registered new interface driver ch341
[1393322.062067] usbserial: USB Serial support registered for ch341-uart
[1393322.062095] ch341 4-4:1.0: ch341-uart converter detected
[1393322.071303] usb 4-4: ch341-uart converter now attached to ttyUSB0

marek@tera3:~$ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 05e3:0751 Genesys Logic, Inc.
Bus 001 Device 002: ID 1058:0820 Western Digital Technologies, Inc. My Passport Ultra (WDBMWV, WDBZFP)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

tera3:~# ll /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Jan 30 23:33 /dev/ttyUSB0

tera3:~# gpasswd -a marek dialout
Adding user marek to group dialout

marek@tera3:~$ cat /dev/ttyUSB0
Teplota: 22.00 stupnu Celsia, vlhkost: 22.00  %
Termistor 103 Temperature: 74.36 F; 23.53 C


Zdroj

Žádné komentáře:

Okomentovat

Server Side Rendering - Next

The Benefits of Server Side Rendering Over Client Side Rendering