Pb with USB Mouse/PS2SDK

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Pb with USB Mouse/PS2SDK

Post 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
- TiTAN Art Division -
http://www.titandemo.org
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post 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 ?
- TiTAN Art Division -
http://www.titandemo.org
mharris
Posts: 155
Joined: Sun Jan 25, 2004 2:26 pm
Location: Annapolis, MD, USA

Post 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.
User avatar
Shazz
Posts: 244
Joined: Tue Aug 31, 2004 11:42 pm
Location: Somewhere over the rainbow
Contact:

Post 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
- TiTAN Art Division -
http://www.titandemo.org
Post Reply