Connexion Arduino Mega / Ubuntu 19.04 disco

Suite à la mise à jour de mon système en Ubuntu 19.04, je rencontre un problème de connexion USB de mon Arduino Mega qui me sert de RFLink.

Extrait du lsusb :

Bus 002 Device 014: ID 05ac:12a8 Apple, Inc. iPhone5/5C/5S/6
Bus 002 Device 015: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 002 Device 003: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 001 Device 003: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Extrait du dmesg à la connexion USB :

Sep 9 01:20:45 jma kernel: [263070.733073] usb 2-1.5.3: new full-speed USB device number 15 using ehci-pci
Sep 9 01:20:45 jma kernel: [263070.842559] usb 2-1.5.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.54
Sep 9 01:20:45 jma kernel: [263070.842562] usb 2-1.5.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
Sep 9 01:20:45 jma kernel: [263070.842564] usb 2-1.5.3: Product: USB2.0-Serial
Sep 9 01:20:45 jma kernel: [263070.842969] ch341 2-1.5.3:1.0: ch341-uart converter detected
Sep 9 01:20:45 jma kernel: [263070.844910] usb 2-1.5.3: ch341-uart converter now attached to ttyUSB0
Sep 9 01:20:45 jma mtp-probe: checking bus 2, device 15: “/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.3”
Sep 9 01:20:45 jma mtp-probe: bus: 2, device: 15 was not an MTP device
Sep 9 01:20:45 jma snapd[12844]: hotplug.go:193: hotplug device add event ignored, enable experimental.hotplug
Sep 9 01:20:45 jma mtp-probe: checking bus 2, device 15: “/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.3”
Sep 9 01:20:45 jma mtp-probe: bus: 2, device: 15 was not an MTP device
Sep 9 01:20:48 jma ModemManager[764]: Couldn’t check support for device ‘/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5.3’: not supported by any plugin

Logs générés par domoticz :

Sep 9 01:21:07 jma domoticz[4588]: 2019-09-09 01:21:07.255 #033[1;31mError: RFLink: Error opening serial port!#033[0;0m
Sep 9 01:21:07 jma domoticz[4588]: 2019-09-09 01:21:07.455 Status: RFLink: serial retrying in 30 seconds…

La solution :

chmod 777 /dev/ttyUSB0

Rien de plus compliqué 🙂

This entry was posted in Arduino, IoT, Linux, Non classé. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.