User Tools

Site Tools


latinet:ull:problems:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
latinet:ull:problems:start [2023/10/25 14:48] – created rolf.beckerlatinet:ull:problems:start [2023/10/25 14:59] (current) – [Problems with the Arduino installation on Linux] rolf.becker
Line 1: Line 1:
 +~~NOTOC~~
  
 +===== Problems with the Arduino installation on Linux ======
  
-===== Problems with the Arduino installation on LInux ======+We downloaded the zip archive of IDE version 2.2.1 (Oct. 2023) and encountered the followig problems:
  
 === esptool cannot find pyserial ==== === esptool cannot find pyserial ====
Line 8: Line 10:
    
 Workaround:  Workaround: 
 +
 +<code>
 sudo apt install pip3 sudo apt install pip3
 pip3 install pyserial pip3 install pyserial
 +</code>
  
 Try to upload the code from the Arduino IDE to the esp32. It will call esptool in the background. It should work now. Try to upload the code from the Arduino IDE to the esp32. It will call esptool in the background. It should work now.
Line 15: Line 20:
 ==== ttyUSBx device is not avaliable ==== ==== ttyUSBx device is not avaliable ====
  
-The reason is that the CH340 usb-to-serial driver collides with the preinstalled Braille interface driver brltty.+The reason is that the CH340 usb-to-serial driver collides with the preinstalled **Braille** interface driver **brltty**. 
 You can check this driver registration problem with  You can check this driver registration problem with 
 +
 +<code>
 sudo dmesg -w  sudo dmesg -w 
-Plug in and unplug the board. You will see that the usb-to-serial driver is unloaded in the end.+</code> 
 + 
 +**Plug in the board** and observe the dmesg output. You will see that the usb-to-serial driver is unloaded in the end. This is the problem. The driver, i.e. the serial communication device, is finally not available.
  
 Workaround: Workaround:
-Several. If you do not need a Braille interface the easiest would be to deinstall the full driver support by+ 
 +If you do not need a Braille interface the easiest would be to deinstall the full driver support by 
 + 
 +**Remove the brltty driver:** 
 + 
 +<code>
 sudo apt remove brltty sudo apt remove brltty
 +</code>
 +
 +** Alternative: deactivate.**
 +
 +<code>
 +systemctl stop brltty-udev.service
 +sudo systemctl mask brltty-udev.service
 +systemctl stop brltty.service
 +systemctl disable brltty.service
 +</code>
  
 ==== The Linux user is not allowed to use the ttyUSBx interface ==== ==== The Linux user is not allowed to use the ttyUSBx interface ====
  
 Solution: Solution:
 +
 Add the resepective Linux user to the user group dialout: Add the resepective Linux user to the user group dialout:
-sudo usermod -...+ 
 +<code> 
 +sudo  usermod -a -G dialout <username> 
 +</code> 
 + 
 +Log out completely and log in againA restart is not necessaryThe Arduino IDE running under user id <username> should now have access to the ttyUSBx interface.
  
  
latinet/ull/problems/start.1698238105.txt.gz · Last modified: 2023/10/25 14:48 by rolf.becker