>>>>> "Danny" == Danny Haak <danny.haak@xxxxxxxxx> writes:
Danny> Hi all, I am currently experimenting using libftdi on Ubuntu. I
Danny> compiled the 'simple' example. danny@ubuntu-desktop:~$ gcc
Danny> simple.c /usr/lib/libftdi.so -o simple
Danny> When I tried to run it, I got the following error:
Danny> danny@ubuntu-desktop:~$ ./simple unable to open ftdi device: -8
Danny> (inappropriate permissions on devic
Danny> When the example is run as root, it works fine.
Danny> danny@ubuntu-desktop:~$ sudo ./simple ftdi_read_chipid: 0 FTDI
Danny> chipid: 7EEE7FC5
Danny> Is it absolutely necessary to run the program as root? Or is it
Danny> possible to change the permissions of a user on the device? If
Danny> so, which device? I couldn't found anything on this in the
Danny> documentation.
In /etc/udev/rules ( or an appropriate place in your distribution) you
should something like
#FT2232 Adapter
ACTION=="add", BUS=="usb", SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6010",
GROUP:="users", MODE:="0660"
#FT232 Adapter
ACTION=="add", BUS=="usb", SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6001",
GROUP:="users", MODE:="0660"
#FT Adapter
ACTION=="add", BUS=="usb", SYSFS{idVendor}=="0403", SYSFS{idProduct}=="6006",
GROUP:="users", MODE:="0660"
--
Uwe Bonnes bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|