Giter Club home page Giter Club logo

libftdinet's Introduction

FAQ

Q: I'm getting permission denied errors/exceptions when trying to use my device
A: You can either run as root (or via sudo) which is not recommended, or add a udev rule to properly set permissions.
 It is recommended that you go through the udev rules approach, running as root is never a good idea.

Steps
-----
- NOTE: This is Ubuntu specific but is pretty close to what you need for all systems using udev

Create /etc/udev/rules.d/usb-ftdi.rules with the contents:

#FT2232 Adapter
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6015", GROUP:="libftdi", MODE:="0660"

Note that the product and vendor should match what is reported by 'lsusb' for your particular ftdi device. This rule can
be adjusted to allow a series or a range of product values if you have multiple devices with different product values.

Note that the group give, 'libftdi' was added to the system via 'sudo addgroup libftdi' and the user that intends to
use the ftdi device added to this group via 'sudo adduser <username> libftdi'. You can use whichever group you would like
in place of 'libftdi' if your user accounts all belong to that particular group.

There may be a simpler way to reinitialize things but rebooting after these steps will cause the udev rules to
be re-examined and force the user to log-in again which will refresh their group settings.


libftdinet's People

Contributors

coolnumber9 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

df3xc lbuczko

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.