forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Pb with USB Mouse/PS2SDK

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Thu Jan 13, 2005 5:59 am    Post subject: Pb with USB Mouse/PS2SDK Reply with quote

Hello,

I try to make my very standard USB Miscrosoft Wheel Mouse Optical and I've got this error message :
Code:
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
Back to top
View user's profile Send private message Visit poster's website
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Thu Jan 13, 2005 6:45 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Thu Jan 13, 2005 7:29 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message AIM Address
Shazz



Joined: 31 Aug 2004
Posts: 244
Location: Somewhere over the rainbow

PostPosted: Thu Jan 13, 2005 11:57 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group