FTDI Community
General Category => Discussion - Software => Topic started by: Terry on May 13, 2022, 09:47:35 AM
-
Hi guys~
I want to use FT232HL library at ROS(middleware), but there are some problem.
I confirmed that it works at the OS level using sudo commend, but middleware can't use it.
Anyone have a solution to this problem?
My PC enviornment : 64bit Linux, Kinetic ROS(middleware),
-
Terry:
You can make "sudo" built-in as follows.
Making the following change to the /lib/udev/rules.d/50-udev-default.rules file allows you to run d2xx applications without the need to ‘sudo’ them:
SUBSYSTEM==”usb”, ENV{DEVTYPE}==”usb_device”, MODE=”0664″
to :
SUBSYSTEM==”usb”, ENV{DEVTYPE}==”usb_device”, MODE=”0666″
This has been tested on a Ubuntu 20.04 VM, and works quite well when testing with an FT232R and the EEPROM/read example.
A customer noted the following udev rule which should do the same thing, and be less of a security risk (this would be for a single device, but could be modified for all FTDI devices):
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="faf0", GROUP="users", MODE="0666"
Best Regards,
Cameron Forbes, USA Support