0
votes

I am writing a kernel mode usb driver for Linux.

I have a hardware which contains switches, LEDs, bargraph LEDs, bulk data transfers etc. In its specs it explains that you can query to firmware to read state of the individual hardware on a board. They have provided something called Vendor Commands. I cannot figure out that how to send the vendor command using linux kernel USB interface. For some of the individual HW like LEDs and bargraph, there is only one way to know the state by using the Vendor Command. No endpoint info available for that. Using lsusb -v command, it just shows 3 endpoints. One Interrupt and 2 Bulk. Interrupt is for one set of switches.

It describes the vendor commands for Interrupt endpoint also.

How to send those command?

1
Thank you very much for keeping the vendor command documentation a secret.CL.
Sorry about that. I am basically trying to write a linux port for OSR USB-FX2 for learning purpose. The link to the spec is <osronline.com/hardware/OSRFX2_32.pdf> .smm

1 Answers

0
votes

All the vendor-specific commands of the OSR USB FX-2 must be sent as control transactions to endpoint 0.