Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from May 7 '11 at 11:34

This question came from our site for professional and enthusiast programmers.

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 Jun 14 '11 at 20:24

You can use halevt (or its predecessor ivman on earlier kernels) to detect and execute actions on hotplug events.

share|improve this answer
Thank you for the quick response. I've been doing to further research and just learned about udev. It seems that both halevt and udev would be able to accomplish this task. Any incite on to which one would be more suitable? – richmb May 6 '11 at 14:24
halevt works for me (detect when audio CD is inserted on a headless media server) but udev appears to be the way forward as HAL is deprecated. You've reached the end of my knowledge on this ;) – sudocode May 6 '11 at 14:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .