On Wed, Aug 14, 2002 at 12:29:59PM +0200, Trevor Spiteri wrote:
> Hi all
> 
> How can I autodetect an inserted USB modem and run some program when it
> is inserted? The modem has an FTDI chip and I modified the ftdi_sio
> kernel driver to detect its id (vendor id 0x0f94, product id 0x0001). As
> soon as I insert it, the FTDI driver detects it and creates the device
> 188, 0 (/dev/ttyUSB0). I need that when I plug in this modem:
> 1. The ftdi driver creates a serial port. (done)
> 2. A user-mode program is automatically launched and receives the device
> minor number assigned to this modem.

/sbin/hotplug gets run when the device is plugged in.  But the minor
number isn't being passed to it (yet...for 2.5 we're working on it...)

If you're using 2.5 you can look in the /proc/tty/driver/usb-serial file
to get the minor number for your device.  Or you can parse the kernel
log entries (not exactly the nicest way, I know...)

And are you sure that your modem will work with the ftdi_sio driver?

thanks,

greg k-h


-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to