Prepare or Fix Linux for EmuFlight, BetaFlight, CleanFlight, ButterFlight, or any other *Flight
Linux Serial/USB device access
Edit/create udev
rules: (use vi, nano, or any text editor)
sudo nano /etc/udev/rules.d/50-myusb.rules
Copy/paste this content and save it: (See STM list here: https://devicehunt.com/view/type/usb/vendor/0483)
# ALL STMicroelectronics devices & DFU
SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="****", GROUP="plugdev", MODE="0664"
SUBSYSTEM=="tty", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="****", GROUP="plugdev", MODE="0664"
Then reload the rules:
sudo udevadm control --reload
You must add yourself (username) to plugdev group.
sudo usermod -a -G plugdev $USER
You must add yourself to the dialout group for tty/serial permissions: (This fixes Failed to open serial port: FILE_ERROR_ACCESS_DENIED
)
sudo usermod -a -G dialout $USER
You must now logout/login to update user access rights. Afterward, you may run Configurator which should properly connect to flight controllers.
note: some older OS could use GROUP="users",
but newer OS seem to not allow it.
---
references
https://hackmd.io/@nerdCopter/H1dtIuUSn
https://hackmd.io/@nerdCopter/rJv5TUrQ2
good luck!
Please consider crypto tipping:
No comments:
Post a Comment
Comments, Suggestions or "Thank you's" Invited! If you have used this info in any way, please comment below and link/link-back to your project (if applicable). Please Share.
I accept Bitcoin tips of ANY amount to: 1GS3XWJCTWU7fnM4vfzerrVAxmnMFnhysL
I accept Litecoin tips of ANY amount to: LTBvVxRdv2Lz9T41UzqNrAVVNw4wz3kKYk