help: sending USB commands from user space??

help: sending USB commands from user space??

Post by Daniel Mil » Thu, 02 Dec 2004 09:32:39


I'm trying to send USB commands to some USB devices from a user-space
application. I've found various examples (spti.c, etc) which show me how
to send SCSI commands to them, but I also need to send USB commands (0xA1
0xFE (get max luns) for example). I'm assuming there's a specific ioctl
that I can use with DeviceIoControl() to send these commands, but I can't
find any documentation on it... can anyone give me any leads on this??
 
 
 

help: sending USB commands from user space??

Post by Daniel Mil » Thu, 02 Dec 2004 09:33:12

I'm trying to send USB commands to some USB devices from a user-space
application. I've found various examples (spti.c, etc) which show me how
to send SCSI commands to them, but I also need to send USB commands (0xA1
0xFE (get max luns) for example). I'm assuming there's a specific ioctl
that I can use with DeviceIoControl() to send these commands, but I can't
find any documentation on it... can anyone give me any leads on this??