Page 1 of 1

Pb with USB Mouse/PS2SDK

Posted: Thu Jan 13, 2005 5:59 am
by Shazz
Hello,

I try to make my very standard USB Miscrosoft Wheel Mouse Optical and I've got this error message :

Code: Select all

PS2MOUSE: Found a mouse device
PS2MOUSE: Connected device
PS2MOUSE: Configuration set error res 290, bytes 0, arg a2500
I'm using PS2MOUSE driver from PS2SDK 1.2 and USBD.IRX found with Lion's eyetoy driver sample

I took at look at ps2sdk but I did not find what has generated this error (USBD ?)
Does anybody have ever try to use a Microsoft USB mouse or found a workover ?

Thx....

Shazz

Posted: Thu Jan 13, 2005 6:45 am
by Shazz
For information, this mouse works well with Halflife which uses a different USB mouse driver (different interface, USBMOUSE.IRX called SCE_USB_MOUSE_SAMPLE)

So where does the issue come from : USBD.IRX ? PS2MOUSE.IRX ?

Posted: Thu Jan 13, 2005 7:29 am
by mharris
Here's what I discovered after grepping the ps2sdk source:

This error is reported in iop/usb/mouse/src/ps2mouse.c in the ps2mouse_config_set() routine. This is passed as the 'doneCB' callback function to UsbSetDeviceConfiguration(), which is invoked from ps2mouse_connect().

According to the usbd.h header file, result code 290 (0x122) is USB_RC_ABORTED. The helpful comment is "Operation Aborted."

... so my guess is the USB driver attempted to configure the device, and the device either aborted the config request, or the usb driver didn't understand something and aborted it. It's been a while since I messed around with USB device drivers, so this is about as much help as I can provide.

Posted: Thu Jan 13, 2005 11:57 pm
by Shazz
Thanx,

It should help, I was not able to find where the ps2mouse_config_set() was called...

So I'll try with another USBD driver, maybe it will solve my issue... or I'll write another one :D