Force Feedback (descriptor help)

Author
ulao
Senior Member
  • Total Posts : 135
  • Reward points : 0
  • Joined: 2009/07/14 08:52:14
  • Location: 0
  • Status: offline
2010/03/23 08:01:15 (permalink)
0

Force Feedback (descriptor help)

Hi all been trying to use the DX ( HID ) based Force Feedback for some time now. Most of the info I find is on this site so I hope at most I get one reply. Seems as most sites ovoid this like the plague.

If anyone has hidView please, please do share.. I can not find this thing, and the new usbcv is crap.. I think I could help myself if I had access to such a tool.

I'm only interested in the vibration and thinking I need to use constant force for it.

Here is my descriptor is usblyzer sees it. So far its the best I can come up with.


Usage Page (Generic Desktop)     05 01
Usage (Joystick)     09 04
Collection (Application)     A1 01
Report Size (8)     75 08
Report Count (6)     95 06
Logical Minimum (0)     15 00
Logical Maximum (255)     26 FF 00
Physical Minimum (0)     35 00
Physical Maximum (255)     46 FF 00
Usage (X)     09 30
Usage (Y)     09 31
Usage (Z)     09 32
Usage (Rx)     09 33
Usage (Ry)     09 34
Usage (Rz)     09 35
Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit)     81 02
Report Size (8)     75 08
Report Count (2)     95 02
Logical Minimum (0)     15 00
Logical Maximum (255)     26 FF 00
Usage (Slider)     09 36
Usage (Dial)     09 37
Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit)     81 02
Unit (None)     65 00
Usage Page (Button)     05 09
Logical Minimum (0)     15 00
Logical Maximum (1)     25 01
Report Size (1)     75 01
Report Count (24)     95 18
Usage Minimum (Button 1)     19 01
Usage Maximum (Button 24)     29 18
Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit)     81 02
Usage Page (Physical Input Device)     05 0F
Usage (PID State Report)     09 92
Collection (Logical)     A1 02
    Usage (Device Paused)     09 9F
    Usage (Actuators Enabled)     09 A0
    Usage (Safety Switch)     09 A4
    Usage (Actuator Override Switch)     09 A5
    Usage (Actuator Power)     09 A6
    Logical Minimum (0)     15 00
    Logical Maximum (1)     25 01
    Physical Minimum (0)     35 00
    Physical Maximum (1)     45 01
    Report Size (1)     75 01
    Report Count (5)     95 05
    Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit)     81 02
    Report Count (3)     95 03
    Input (Cnst,Var,Abs,NWrp,Lin,Pref,NNul,Bit)     81 03
    Usage (Effect Playing)     09 94
    Logical Minimum (0)     15 00
    Logical Maximum (1)     25 01
    Physical Minimum (0)     35 00
    Physical Maximum (1)     45 01
    Report Size (1)     75 01
    Report Count (1)     95 01
    Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit)     81 02
    Usage (Effect Block Index)     09 22
    Logical Minimum (1)     15 01
    Logical Maximum (40)     25 28
    Physical Minimum (1)     35 01
    Physical Maximum (40)     45 28
    Report Size (7)     75 07
    Report Count (1)     95 01
    Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit)     81 02
End Collection     C0
Usage (Set Effect Report)     09 21
Collection (Logical)     A1 02
    Usage (Effect Block Index)     09 22
    Logical Minimum (1)     15 01
    Logical Maximum (40)     25 28
    Physical Minimum (1)     35 01
    Physical Maximum (40)     45 28
    Report Size (8)     75 08
    Report Count (1)     95 01
    Output (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit)     91 02
    Usage (Effect Type)     09 25
    Collection (Logical)     A1 02
        Usage (ET Constant Force)     09 26
        Logical Maximum (12)     25 0C
        Logical Minimum (1)     15 01
        Physical Minimum (1)     35 01
        Physical Maximum (12)     45 0C
        Report Size (8)     75 08
        Report Count (1)     95 01
        Output (Data,Ary,Abs,NWrp,Lin,Pref,NNul,NVol,Bit)     91 00
    End Collection     C0
    Usage (Set Constant Force Report)     09 73
    Collection (Logical)     A1 02
        Usage (Effect Block Index)     09 22
        Logical Minimum (1)     15 01
        Logical Maximum (40)     25 28
        Physical Minimum (1)     35 01
        Physical Maximum (40)     45 28
        Report Size (8)     75 08
        Report Count (1)     95 01
        Output (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit)     91 02
        Usage (Magnitude)     09 70
        Logical Minimum (-255)     16 01 FF
        Logical Maximum (255)     26 FF 00
        Physical Minimum (-10000)     36 F0 D8
        Physical Maximum (10000)     46 10 27
        Report Size (16)     75 10
        Report Count (1)     95 01
        Output (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit)     91 02
    End Collection     C0
End Collection     C0
End Collection     C0





I also could add

0x09,0x92,    //    Usage ES Playing
     0xA1,0x02,    //    Collection Datalink
     0x09,0x9F,    //    Usage DS Device is Reset
     0x09,0xA0,    //    Usage DS Device is Pause
     0x09,0xA4,    //    Usage Actuator Power
     0x09,0xA5,    //    Usage Undefined
     0x09,0xA6,    //    Usage Undefined
     0x15,0x00,    //    Logical Minimum 0
     0x25,0x01,    //    Logical Maximum 1
     0x35,0x00,    //    Physical Minimum 0
     0x45,0x01,    //    Physical Maximum 1
     0x75,0x01,    //    Report Size 1
     0x95,0x05,    //    Report Count 5
     0x81,0x02,    //    Input (Variable)
     0x95,0x03,    //    Report Count 3
     0x81,0x03,    //    Input (Constant, Variable)
     0x09,0x94,    //    Usage PID Device Control
     0x15,0x00,    //    Logical Minimum 0
     0x25,0x01,    //    Logical Maximum 1
     0x35,0x00,    //    Physical Minimum 0
     0x45,0x01,    //    Physical Maximum 1
     0x75,0x01,    //    Report Size 1
     0x95,0x01,    //    Report Count 1
     0x81,0x02,    //    Input (Variable)
     0x09,0x22,    //    Usage Effect Block Index
     0x15,0x01,    //    Logical Minimum 1
     0x25,0x28,    //    Logical Maximum 28h (40d)
     0x35,0x01,    //    Physical Minimum 1
     0x45,0x28,    //    Physical Maximum 28h (40d)
     0x75,0x07,    //    Report Size 7
     0x95,0x01,    //    Report Count 1
     0x81,0x02,    //    Input (Variable)
     0xC0    ,    // End Collection

but I dont know that its needed, nor does it help.I did try the really big desc found on this site but it does not work ( I think do to the size ) but I dont really care to make a mess of things. I try to learn how its done and then use whats needed. So far fedit does not see any FFB devices. Is something else needed to sign this as a FFB device?


Something else I notices is if I try adding all of the Report Definitions my application page collection gets is too big. I use size of to determin the size but I guess there is a limitation some where.
post edited by ulao - 2010/03/23 20:06:08
#1

29 Replies Related Threads

    Jump to:
    © 2017 APG vNext Commercial Version 4.5