From: Rodrigo D. <cu...@uo...> - 2002-01-19 19:19:32
|
Johann Deneux wrote: >On Sat, 19 Jan 2002, Rodrigo Damazio wrote: > >>Bj|rn Augustsson wrote: >> >>>Quoting Rodrigo Damazio <cu...@uo...>: >>> >>[...] >> Regarding the HID-specific stuff which isn't supported through=20 >>the event API, such as binding physical units, how about using a=20 >>"/dev/usb/hidsomething" device which could control this?? I guess this=20 >>is more generic than creating it on the "jsx" device because it applies= =20 >>to many kinds of HIDs, not just joysticks... >> > >The event API is not fixed, as far as I know. It would be better to use >this one. Indeed, we do not know for sure this is hid specific.=20 > >>>>I don't know how to interpret some of the hex=20 >>>>data...I've realized some things, for example a phase that starts wit= h=20 >>>>01 is to report buttons and axes, "02 32 00" is when you hold the=20 >>>>stick(there's a little sensor), "02 36 00" is when you release it, an= d=20 >>>>so on... >>>> > >Funny, this really looks like the I-Force protocol. May I have a copy of >your dumps ? According to Immersion, Microsoft uses its own software and >drivers, which Immersion knows nothing about. But maybe they actually us= e >the iforce protocol. I don't know. On the other hand, I notice that the >pid spec does not differe much from the iforce one. > Okay, today I looked deeper into the specs, and I found out it's=20 *partially* compliant...almost everything works according to the PID=20 specs, with a few exceptions..02(set envelope) has 7 bytes after it=20 instead of 6...06(Set ramp) has 3 bytes after it instead of 4...is this=20 the I-Force protocol?? I'm attaching some commented dumps to this message= ... >>>Can you send me the dumps you have? That could really help me understa= nd >>>some problems I'm having. I started from the other direction, from the= =20 >>>spec down, instead of from the wires up. >>> >> I have looked at the specs too, but at first sight they didn't=20 >>help much, mostly because I had never looked at USB in a low level...bu= t=20 >>I'll look at them better tonight...does this joystick follow those spec= s=20 >>then? Or do we really have to guess how it works? >> I'll send you some dumps by e-mail(so as not to clutter up the=20 >>mailing list)...do have Immersion Studio?? If not you should get it,=20 >> > >Well, if you compress them, they should not be that big, should they ? A= t >least, please also send a copy to me. > I'm sending a bzip2-ed copy here...if you want more dumps please=20 let me know(I didn't save most of my tests, I just looked at them on the=20 screen and guessed the meaning of bytes by changing parameters in=20 Immersion Studio... Rodrigo --=20 ******************************* * Rodrigo Damazio * * *************************** * * cu...@uo... * * rod...@po... * * ICQ: #3560450 * * http://www.vros.com/cuddly/ * * *************************** * * Engenharia da Computa=E7=E3o * * Escola Polit=E9cnica * * USP - S=E3o Paulo * ******************************* |