Hello, I'm trying to make a program to control an USB device called
"Qoob Pro" (a Nintendo Gamecube modchip with an USB interface). The
device has a 2MB embedded flash memory that allows to store some
homebrews programs. There is a Windows client to do that but no Linux
one. Then, I've intercepted the communications between the host program
and the device and I've found some part of the protocol, I've done a
small program to reproduce it under windows and it works well with no
particular problems. Then I've tried to port it to Linux and I've got
big problems. Using the libusb library, I try to send some control
messages to the device and I only get timeouts ! Of course, I've check a
few things and I think the libusb initialization is well. One more thing
: it seems that the device is not responding to set_configuration and
set_alt_interface, but since there's only one interface and
configuration, I think I can skip it.
I've installed usbmon to check the packet sent by my program from linux
and it seems to be good and similar to the one Windows produces using
"WriteFile" on an opened HID Device (it's an HID device by just it's
name, it uses no HID feature). Btw, they use "WriteFile" and
"HidD_GetFeature" in the original program just like the documentation of
the USB controller / flash memory combo (a UPSD3200 chip), since it's
just control messages, I think I can only use usb_control_msg on Linux
with the appropriate setup packet, is it correct ?
I'm using latest kernel 2.6.13 built from the kernel.org sources and I'm
running Debian on a Dell Latiture D505 with UHCI controller.
I'm asking that question : Why do I get a timeout ? Is because of a poor
usb controller or firmware on the chip (the controller is an AT89C5131)
that expects "Windows" communications and then doesn't recognize the way
Linux does ?
Some links :
- lspci -v on my computer : http://orphis.free.fr/lspci.txt
- lsusb -vvv in root when it's detached fom usbhid (device is
03EB:0001) : http://orphis.free.fr/lsusb.txt
- usbsnoop log acquired from Windows, it's communication between the
original software and my windows computer :
http://orphis.free.fr/usbsnoop.log.gz
- usbmon log acquired from Linux, it's my program trying to send a
control message to the device : http://orphis.free.fr/usbmon.log
I hope there's anything you need to help me track the "bug" or missing
feature to make this work.
Best regards,
Florent Castelli
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users