OK, I’ll try that.
John Nagle
Team Overbot
Henry VanDyke wrote:
John Nagle <> nagle@overbot.com> > wrote in message
news:ccco9r$b0v$> 1@inn.qnx.com> …OK, thanks.
Here’s the device, nonresponsive after a day of idle:
gcrear1$ ./usb
USB (UHCI) v1.10, v1.01 DDKdevice 1 - descriptors - Input/output error
Ok.Either the device is in a bad state or something is wrong in the USB stack.
I’ll try to reproduce it here. Could you verify that it happens overnight
with just the ‘hidview -a’ running ( Without the joystick driver running)
Also, if you have a usb mouse or keyboard you could plug it in as well
and see if it is still responsive when running hidiview/usb.
== unplugged USB cable and plugged it back in ==gcrear1$ ./usb
USB (UHCI) v1.10, v1.01 DDKDevice Address : 1
Vendor : 0x046d (Logitech )
Product : 0xca03 (Logitech MOMO Racing )
Class : 0x00 (Independant per interface)So either the device or the driver is in some bad state.
Any insights?Inserting and removing the device brings it back up.
Restarting my application does NOT bring it back up. My
program gets an insertion event for the dead device when
the program is started, but never gets any other events.“hidview -a” doesn’t produce any output from the device
when it’s in the “Input/output error” state.John Nagle
Henry VanDyke wrote:
John Nagle <> nagle@downside.com> > wrote in message
news:cbustr$n5i$> 1@inn.qnx.com> …
This is still happening. And on at least one occasion,
the device seemed to stop responding.There’s always the possibility that the joystick device
itself is having problems. Is there some way I can send
a command to the joystick that tests if it is responding?
You could run the usb utility. This will at least make sure the device
is responding.Also try running ‘hidview -A’ . This will display the raw data coming
from the device.
What’s the easiest way to force an HID update event?
I need to do that at startup, anyway, to get the
initial position readings.
hidd_get_report()
John Nagle
Team OverbotJohn Nagle wrote:
Another problem:If my application is left idle for hours, with no HID activity,
new joystick activity DOES NOT result in input events. Unplugging
the device WILL result in a removal event. Plugging the device
back in WILL result in an insertion event, and thereafter it works.
I’ve seen this three times now, overnight.Are there any long timeouts in the HID code? Please check.
John Nagle
Team Overbot
\