Neil,

SUMMARY:
Please create a simple generic solution to write to Interrupt-Out endpoints.

DETAILS:
I have a device that needs Interrupt-Out support. It is an analog/digital data
capture card from Ontrak Control Systems, called an ADU200.
(others on the list may recall that in February I asked for help... thanks again)

As you noted, tThe usb_serial.c functions seem to mash USB functionality into a
tty model. (square peg - round hole). Yes it can be done, but all my device does
is write and read 8 byte packets on the Interrupt Out endpoint.

So I passed over the USB serial model.

I satisfied my Interrupt-Out requirement by creating a function called usb_int_msg.
I cloned the usb_bulk_msg function in drivers/usb/core/message.c and made
the obvious changes to support an Interrupt-Out endpoint.

This was a simple, small-footprint change that did the trick for me. 
I tested the change on 2.6.0-test6, 2.6.0-test8 and 2.6.0-test9. 
(note: this is on a uniprocessor system so races are minimized)

However, I now have a driver that requires custom kernel builds to install.
Plus my crude solution is likely to transgress some unknown rule somewhere in 
the USB core.

I would prefer to use standard generic functions from accepted kernel routines.

It would be ideal if you could structure your solution so that the low-level 
functionality was available outside your custom driver.
(specifically a function to write to the Interrupt Out endpoint)
I will then change my driver to utilize your generic function.

In the past other people were interested in Interrupt Out endpoints.
Specifically for Labjack interface boards and for Evolution Robots.
I do not know how the others solved their Interrupt Out needs.

Bye,
John Homppi



----------
From:   Neil Whelchel
Sent:   Friday, November 07, 2003 6:30 PM
To:     [EMAIL PROTECTED]
Subject:        [linux-usb-devel] Class or not to class...

Hello,
I am working on a driver for a USB I/O box (it is a little plastic box with a USB
port on one side and screw terminals on the other that are general purpose digital
input/output) and I have ran into a design philosophy problem, so I thought that
I would post my thoughts for discussion, maybe start an all out war... ;)

<<<<<< SNIP >>>>>>>>

Any thoughts?
-Neil Whelchel-
First Light Internet Services
760 366-0145
- We don't do Window$, that's what the janitor is for -




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to