USB devices
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
USB devices

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System
Author Message
Henrique Kawakami
Guest





Posted: Wed Dec 08, 2004 9:12 pm    Post subject: USB devices Reply with 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
Guest






Posted: Thu Dec 09, 2004 2:57 pm    Post subject: Re: USB devices Reply with quote

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 Reply with quote

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
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Embedded System All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB