On Jun 17, 2005, at 07:56, Alex Gardiner wrote: Hi Alex:
Hi - I am not an expert Java programmer but, using the examples provided, I have got my Linux/Java host to communicate with my new USB hardware. Does anyone have an example of how to implement hotplugging?
You may find this to be of some help:
http://cvs.sourceforge.net/viewcvs.py/jsyncmanager/jsyncmanager/
source/org/jSyncManager/Transport/JavaxUSBTransport.java?
rev=1.4&view=markup
See the initialize() method to see how to set-up the listener. The usbDeviceAttached() method is called when a device is attached to the bus, and it determines whether or not this is a device we're looking for, and if so grabs two bulk I/O pipes (one input, one output), and configures them for access through standard Java streams.
HTH!
Brad BARCLAY,
Lead Developer & Project Administrator,
The jSyncManager Project.
=-=-=-=-=-=-=-=-=-=
From the Mac OS X Desktop of Brad BARCLAY
E-Mail: [EMAIL PROTECTED] Web: http://www.jsyncmanager.org
smime.p7s
Description: S/MIME cryptographic signature
