Uživatelské nástroje

Nástroje pro tento web


xpl_happy_pedals

Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revizePředchozí verze
Následující verze
Předchozí verze
xpl_happy_pedals [2015/09/03 21:47] – [Happy pedals XPL issue] djbuldogxpl_happy_pedals [2025/08/28 10:09] (aktuální) – upraveno mimo DokuWiki 127.0.0.1
Řádek 27: Řádek 27:
 </code> </code>
  
- * eventX lze číst přes evtest nástroj+===== lsinput =====
  
- * příklad logitech:+<code> 
 +/dev/input/event6 
 +   bustype : BUS_USB 
 +   vendor  : 0x46d 
 +   product : 0xc215 
 +   version : 272 
 +   name    : "Logitech Logitech Extreme 3D" 
 +   phys    : "usb-0000:00:14.0-4/input0" 
 +   uniq    : "" 
 +   bits ev : EV_SYN EV_KEY EV_ABS EV_MSC 
 + 
 +/dev/input/event7 
 +   bustype : BUS_USB 
 +   vendor  : 0x2341 
 +   product : 0x8036 
 +   version : 257 
 +   name    : "Arduino LLC Arduino Leonardo" 
 +   phys    : "usb-0000:00:1a.0-1.4/input2" 
 +   uniq    : "" 
 +   bits ev : EV_SYN EV_KEY EV_ABS EV_M 
 +</code> 
 + 
 +===== evtest ===== 
 + 
 +  * eventX lze číst přes evtest nástroj 
 +  * příklad logitech:
  
 <code> <code>
Řádek 124: Řádek 149:
 Testing ... (interrupt to exit) Testing ... (interrupt to exit)
 </code> </code>
-===== zkoumání xpl =====+ 
 +===== lsusb ===== 
 + 
 +<code> 
 +Bus 001 Device 003: ID 046d:c215 Logitech, Inc. Extreme 3D Pro 
 +Device Descriptor: 
 +  bLength                18 
 +  bDescriptorType         1 
 +  bcdUSB               1.10 
 +  bDeviceClass            0 (Defined at Interface level) 
 +  bDeviceSubClass         0  
 +  bDeviceProtocol         0  
 +  bMaxPacketSize0         8 
 +  idVendor           0x046d Logitech, Inc. 
 +  idProduct          0xc215 Extreme 3D Pro 
 +  bcdDevice            2.04 
 +  iManufacturer           1  
 +  iProduct                2  
 +  iSerial                 0  
 +  bNumConfigurations      1 
 +  Configuration Descriptor: 
 +    bLength                 9 
 +    bDescriptorType         2 
 +    wTotalLength           34 
 +    bNumInterfaces          1 
 +    bConfigurationValue     1 
 +    iConfiguration          0  
 +    bmAttributes         0x80 
 +      (Bus Powered) 
 +    MaxPower               30mA 
 +    Interface Descriptor: 
 +      bLength                 9 
 +      bDescriptorType         4 
 +      bInterfaceNumber        0 
 +      bAlternateSetting       0 
 +      bNumEndpoints           1 
 +      bInterfaceClass         3 Human Interface Device 
 +      bInterfaceSubClass      0 No Subclass 
 +      bInterfaceProtocol      0 None 
 +      iInterface              0  
 +        HID Device Descriptor: 
 +          bLength                 9 
 +          bDescriptorType        33 
 +          bcdHID               1.10 
 +          bCountryCode           33 US 
 +          bNumDescriptors         1 
 +          bDescriptorType        34 Report 
 +          wDescriptorLength     122 
 +         Report Descriptors:  
 +           ** UNAVAILABLE ** 
 +      Endpoint Descriptor: 
 +        bLength                 7 
 +        bDescriptorType         5 
 +        bEndpointAddress     0x81  EP 1 IN 
 +        bmAttributes            3 
 +          Transfer Type            Interrupt 
 +          Synch Type               None 
 +          Usage Type               Data 
 +        wMaxPacketSize     0x0007  1x 7 bytes 
 +        bInterval              10 
 +</code> 
 + 
 +<code> 
 +Bus 005 Device 011: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID) 
 +Device Descriptor: 
 +  bLength                18 
 +  bDescriptorType         1 
 +  bcdUSB               2.00 
 +  bDeviceClass            0 (Defined at Interface level) 
 +  bDeviceSubClass         0  
 +  bDeviceProtocol         0  
 +  bMaxPacketSize0        64 
 +  idVendor           0x2341 Arduino SA 
 +  idProduct          0x8036 Leonardo (CDC ACM, HID) 
 +  bcdDevice            1.00 
 +  iManufacturer           1  
 +  iProduct                2  
 +  iSerial                 0  
 +  bNumConfigurations      1 
 +  Configuration Descriptor: 
 +    bLength                 9 
 +    bDescriptorType         2 
 +    wTotalLength          100 
 +    bNumInterfaces          3 
 +    bConfigurationValue     1 
 +    iConfiguration          0  
 +    bmAttributes         0x80 
 +      (Bus Powered) 
 +    MaxPower              500mA 
 +    Interface Association: 
 +      bLength                 8 
 +      bDescriptorType        11 
 +      bFirstInterface         0 
 +      bInterfaceCount         2 
 +      bFunctionClass          2 Communications 
 +      bFunctionSubClass       2 Abstract (modem) 
 +      bFunctionProtocol       1 AT-commands (v.25ter) 
 +      iFunction               0  
 +    Interface Descriptor: 
 +      bLength                 9 
 +      bDescriptorType         4 
 +      bInterfaceNumber        0 
 +      bAlternateSetting       0 
 +      bNumEndpoints           1 
 +      bInterfaceClass         2 Communications 
 +      bInterfaceSubClass      2 Abstract (modem) 
 +      bInterfaceProtocol      0 None 
 +      iInterface              0  
 +      CDC Header: 
 +        bcdCDC               1.10 
 +      CDC Call Management: 
 +        bmCapabilities       0x01 
 +          call management 
 +        bDataInterface          1 
 +      CDC ACM: 
 +        bmCapabilities       0x06 
 +          sends break 
 +          line coding and serial state 
 +      CDC Union: 
 +        bMasterInterface        0 
 +        bSlaveInterface         1  
 +      Endpoint Descriptor: 
 +        bLength                 7 
 +        bDescriptorType         5 
 +        bEndpointAddress     0x81  EP 1 IN 
 +        bmAttributes            3 
 +          Transfer Type            Interrupt 
 +          Synch Type               None 
 +          Usage Type               Data 
 +        wMaxPacketSize     0x0010  1x 16 bytes 
 +        bInterval              64 
 +    Interface Descriptor: 
 +     bLength                 9 
 +      bDescriptorType         4 
 +      bInterfaceNumber        1 
 +      bAlternateSetting       0 
 +      bNumEndpoints           2 
 +      bInterfaceClass        10 CDC Data 
 +      bInterfaceSubClass      0 Unused 
 +      bInterfaceProtocol      0  
 +      iInterface              0  
 +      Endpoint Descriptor: 
 +        bLength                 7 
 +        bDescriptorType         5 
 +        bEndpointAddress     0x02  EP 2 OUT 
 +        bmAttributes            2 
 +          Transfer Type            Bulk 
 +          Synch Type               None 
 +          Usage Type               Data 
 +        wMaxPacketSize     0x0040  1x 64 bytes 
 +        bInterval               0 
 +      Endpoint Descriptor: 
 +        bLength                 7 
 +        bDescriptorType         5 
 +        bEndpointAddress     0x83  EP 3 IN 
 +        bmAttributes            2 
 +          Transfer Type            Bulk 
 +          Synch Type               None 
 +          Usage Type               Data 
 +        wMaxPacketSize     0x0040  1x 64 bytes 
 +        bInterval               0 
 +    Interface Descriptor: 
 +      bLength                 9 
 +      bDescriptorType         4 
 +      bInterfaceNumber        2 
 +      bAlternateSetting       0 
 +      bNumEndpoints           1 
 +      bInterfaceClass         3 Human Interface Device 
 +      bInterfaceSubClass      0 No Subclass 
 +      bInterfaceProtocol      0 None 
 +      iInterface              0  
 +        HID Device Descriptor: 
 +          bLength                 9 
 +          bDescriptorType        33 
 +          bcdHID               1.01 
 +          bCountryCode            0 Not supported 
 +          bNumDescriptors         1 
 +          bDescriptorType        34 Report 
 +          wDescriptorLength      52 
 +         Report Descriptors:  
 +           ** UNAVAILABLE ** 
 +      Endpoint Descriptor: 
 +        bLength                 7 
 +        bDescriptorType         5 
 +        bEndpointAddress     0x84  EP 4 IN 
 +        bmAttributes            3 
 +          Transfer Type            Interrupt 
 +          Synch Type               None 
 +          Usage Type               Data 
 +        wMaxPacketSize     0x0040  1x 64 bytes 
 +        bInterval               1 
 +</code> 
 +====== zkoumání xpl ======
  
   * jak X-Plane zjístí seznam events?   * jak X-Plane zjístí seznam events?
-    * on ví, že jich je max 32, tak to prostě zkusí+  * on ví, že jich je max 32, tak to prostě zkusí
  
 <code> <code>
Řádek 164: Řádek 381:
 open("/dev/input/event30", O_RDONLY)    = -1 ENOENT (No such file or directory) open("/dev/input/event30", O_RDONLY)    = -1 ENOENT (No such file or directory)
 open("/dev/input/event31", O_RDONLY)    = -1 ENOENT (No such file or directory) open("/dev/input/event31", O_RDONLY)    = -1 ENOENT (No such file or directory)
 +</code>
 +
 +  * oprávnění určitě měl!! 
 +    * dostal file deskriptor number 
 +    * a testoval jsem to i přes grep -i permission
 +    * a navíc jsem to omylem spustil pod rootem :)
 +
 +  * a takhle X-Plane pozná, zda je tam nový device
 +
 +<code>
 +inotify_add_watch(7, "/dev/input", IN_ATTRIB|IN_CREATE|IN_DELETE) = 2
 </code> </code>
  
   * podle čeho se rozhodne, že se mu eventX líbí?   * podle čeho se rozhodne, že se mu eventX líbí?
  
 +<code>
 +open("/dev/input/event0", O_RDONLY)     = -1 EACCES (Permission denied)
 +open("/dev/input/event1", O_RDONLY)     = -1 EACCES (Permission denied)
 +open("/dev/input/event2", O_RDONLY)     = -1 EACCES (Permission denied)
 +open("/dev/input/event3", O_RDONLY)     = -1 EACCES (Permission denied)
 +open("/dev/input/event4", O_RDONLY)     = -1 EACCES (Permission denied)
 +open("/dev/input/event5", O_RDONLY)     = -1 EACCES (Permission denied)
 +open("/dev/input/event6", O_RDONLY)     = 30
 +ioctl(30, EVIOCGBIT(EV_SYN, 8), [SYN_REPORT, SYN_CONFIG, SYN_DROPPED, 0x4 /* SYN_??? */]) = 8
 +ioctl(30, EVIOCGBIT(EV_KEY, 96), [ 0 ]) = 96
 +ioctl(30, EVIOCGBIT(EV_ABS, 8), [ABS_X, ABS_Y, ABS_RZ, ABS_THROTTLE]) = 8
 +fcntl(30, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
 +ioctl(30, EVIOCGNAME(256), "Logitech Logitech Extreme 3D") = 29
 +ioctl(30, EVIOCGUNIQ(256), ""         = 1
 +ioctl(30, EVIOCGID, {ID_BUS=3, ID_VENDOR=1133, ...}) = 0
 +ioctl(30, EVIOCGBIT(EV_KEY, 96), [ 0 ]) = 96
 +ioctl(30, EVIOCGBIT(EV_ABS, 8), [ABS_X, ABS_Y, ABS_RZ, ABS_THROTTLE]) = 8
 +ioctl(30, EVIOCGABS(ABS_X), {value=508, minimum=0, ...}) = 0
 +ioctl(30, EVIOCGABS(ABS_Y), {value=516, minimum=0, ...}) = 0
 +ioctl(30, EVIOCGABS(ABS_RZ), {value=128, minimum=0, ...}) = 0
 +ioctl(30, EVIOCGABS(ABS_THROTTLE), {value=213, minimum=0, ...}) = 0
 +open("/dev/input/event7", O_RDONLY)     = 31
 +ioctl(31, EVIOCGBIT(EV_SYN, 8), [SYN_REPORT, SYN_CONFIG, SYN_DROPPED, 0x4 /* SYN_??? */]) = 8
 +ioctl(31, EVIOCGBIT(EV_KEY, 96), [ 0 ]) = 96
 +ioctl(31, EVIOCGBIT(EV_ABS, 8), [ABS_Z, ABS_RX, ABS_RY]) = 8
 +close(31) 
 +</code>
 +
 +====== connected threads ======
 +====== založení vlákna ======
 +
 +  * SUBJECTS SUGGESTIONS
 +    * X-Plane doesn't support all axis like /dev/input/eventX devices?
 +    * BUG? X-Plane doesn't support my /dev/input/eventX device :/
 +    * Why X-Plane doesn't like my input/eventX device?
 +  * TEXT:
 +    * My XPL is 10.36+
 +    * My joystick based on arduino ... code
 +    * Releated information
 +      * http://developer.x-plane.com/2012/09/linux-joystick-permissions/ -- zakladni info o novem joy
 +      * http://developer.x-plane.com/2012/05/linux-and-hardwareos-abstractions
 +        * tohle je zajímavé!! bacha... linux port je na pokraji smrti. Važ negativní slova :)
 +        * autorem toho nového joy api je Chris Serio
 +      * http://forums.x-plane.org/index.php?showtopic=83024 - wejoy.. to by stálo asi za zkoušku :)
 +      * http://forums.x-plane.org/index.php?showtopic=84162 - obdobný topic, prý úspěšně vyřešený
 +        * PROVERIT!!!
 +        * pak pokračovat na str3
 +    * Why it is not supported?
 +    * Do anybody know what is XPL looking for in event device? How should I change the device?
 +  * bump update
 +    * I have construct another device... simulating the old one and the result is....
xpl_happy_pedals.1441309644.txt.gz · Poslední úprava: (upraveno mimo DokuWiki)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki