FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Author Topic: How to use libftd2xx.so middleware(ROS at 64bit Linux)  (Read 84 times)

Terry

  • Newbie
  • *
  • Posts: 2
    • View Profile
How to use libftd2xx.so middleware(ROS at 64bit Linux)
« 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),
Logged

FTDI_USA

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: How to use libftd2xx.so middleware(ROS at 64bit Linux)
« Reply #1 on: May 13, 2022, 10:24:04 PM »

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
Logged