2
I'm using a FTDI 2232H chip in synchronous FIFO mode to communicate over USB to an altera Cyclone II FPGA. I've developed a program that will communicate with the device, using libftdi and libusb, running from a TI AM3517 arm processor with Debian installed.
I'm not to sure how to have configure the debian OS to start the my communication process on detection(ie. hotplug) of the FTDI 2232H usb device.
in case anyone was wondering heres the udev rule I used to implement this. I created /etc/udev/rules.d/99-FTDI2232H-usb.rules
I here i'm running my program /opt/prog and passing in the serial manufacture and product information as arguments
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6010", RUN+="/opt/prog %s{serial} %s{manufacturer} %s{product}", ${serial}, $ATTR{manufacturer}, $ATTRS{product} – richmb – 2011-06-14T20:24:37.510