Gentlemen / Ladies,

I need some advice on a USB device design issue and I believe this
mailing list might be a good place to find individuals with experience in
driver implementation.  

I am designing an end to end solution for USB based sensor networks
(infrared, sonar, etc). That being said, I have the luxary of designing
the device hardware, writing the firmware, and developing the Linux
driver.  

So far, I am able to send/receive data from Linux userspace applications
using bulk transfers.  I was thinking about rewriting things on both sides
to support interrupt transfers, since I would like to get data from the
device as fast as possible and at the highest frequency possible.  The
endpoints are 8 bytes each.  

>From your experience writing Linux device drivers and the Linux usb
stack, which transfer type would better suit our application?  Is it
faster for my user space apps to constantly request bulk transfers, or
have the controller constantly poll the interrupt ep and some how
provide an interface for the user space application to read this data
received by the driver. (If I did go this route, what would that interface
look like.)

>From my search of the archives, I see that the behavior of int transfers
has changed in 2.5, with the usb subsystem requiring the user to re-submit
urbs at completion time.  However, my target is 2.4 (UHCI controller).  

Your thoughts/flames/ideas are appreciated.  Especially on bulk vs. int
transfers and how to interface data received from int transfers to
userspace apps.  

When all of this development is complete, I will on submit a request
for permission to open source all of this (including firmware).  


Thanks

--
Gaurav Naik ("g")
Data Fusion Lab
Drexel University
Philadelphia, PA 

SWAT: Secure Wireless Agent Testbed



-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to