| Author |
Message |
Henrique Kawakami
Guest
|
Posted:
Wed Dec 08, 2004 9:12 pm Post subject:
USB devices |
|
|
Hi,
I'm interfacing a microcontroller to the USB bus, and would like to provide
support for linux apps also (I already tested it on win32). What would be
the easiest
way? Should I map the device to a file ou make device driver calls?
Thanks!
Henrique |
|
| Back to top |
|
 |
Guest
|
Posted:
Thu Dec 09, 2004 2:57 pm Post subject:
Re: USB devices |
|
|
Henrique Kawakami wrote:
| Quote: | Hi,
I'm interfacing a microcontroller to the USB bus, and would like to
provide
support for linux apps also (I already tested it on win32). What
would be
the easiest
way? Should I map the device to a file ou make device driver calls?
Thanks!
Henrique |
|
|
| Back to top |
|
 |
Neil Cherry
Guest
|
Posted:
Thu Dec 09, 2004 9:20 pm Post subject:
Re: USB devices |
|
|
On Wed, 8 Dec 2004 13:12:32 -0300, Henrique Kawakami wrote:
| Quote: | Hi,
I'm interfacing a microcontroller to the USB bus, and would like to provide
support for linux apps also (I already tested it on win32). What would be
the easiest way? Should I map the device to a file ou make device
driver calls?
|
Under Linux there are 2 way to interface to USB devices, device
drivers and libusb. The fun begins when you need to figure out which
versions of libusb or Linux kernel/device drive you want to support.
I'm no USB expert but I just wrote a device driver for the X10 CM15A
(X10 power line interface/RF to USB interface). The CM15A uses
interrupt transfers to get the data back and forth. The data is in the
format of a command and it's parameters which is just the data written
to the USB device driver. Does this help?
--
Linux Home Automation Neil Cherry ncherry@comcast.net
http://home.comcast.net/~ncherry/ (Text only)
http://hcs.sourceforge.net/ (HCS II)
http://linuxha.blogspot.com/ My HA Blog |
|
| Back to top |
|
 |
|
|
|
|