xpl_happy_pedals
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
| Obě strany předchozí revizePředchozí verzeNásledující verze | Předchozí verze | ||
| xpl_happy_pedals [2015/09/03 21:44] – [zkoumání xpl] djbuldog | xpl_happy_pedals [2025/08/28 10:09] (aktuální) – upraveno mimo DokuWiki 127.0.0.1 | ||
|---|---|---|---|
| Řádek 26: | Řádek 26: | ||
| lrwxrwxrwx 1 root root 9 zář 3 19:47 usb-Logitech_USB_Keyboard-event-kbd -> ../event4 | lrwxrwxrwx 1 root root 9 zář 3 19:47 usb-Logitech_USB_Keyboard-event-kbd -> ../event4 | ||
| </ | </ | ||
| + | |||
| + | ===== lsinput ===== | ||
| + | |||
| + | < | ||
| + | / | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | bits ev : EV_SYN EV_KEY EV_ABS EV_MSC | ||
| + | |||
| + | / | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | bits ev : EV_SYN EV_KEY EV_ABS EV_M | ||
| + | </ | ||
| + | |||
| + | ===== evtest ===== | ||
| * eventX lze číst přes evtest nástroj | * eventX lze číst přes evtest nástroj | ||
| * příklad logitech: | * příklad logitech: | ||
| - | ===== zkoumání xpl ===== | + | < |
| + | Pharaon:/ | ||
| + | Input driver version is 1.0.1 | ||
| + | Input device ID: bus 0x3 vendor 0x46d product 0xc215 version 0x110 | ||
| + | Input device name: " | ||
| + | Supported events: | ||
| + | Event type 0 (EV_SYN) | ||
| + | Event type 1 (EV_KEY) | ||
| + | Event code 288 (BTN_TRIGGER) | ||
| + | Event code 289 (BTN_THUMB) | ||
| + | Event code 290 (BTN_THUMB2) | ||
| + | Event code 291 (BTN_TOP) | ||
| + | Event code 292 (BTN_TOP2) | ||
| + | Event code 293 (BTN_PINKIE) | ||
| + | Event code 294 (BTN_BASE) | ||
| + | Event code 295 (BTN_BASE2) | ||
| + | Event code 296 (BTN_BASE3) | ||
| + | Event code 297 (BTN_BASE4) | ||
| + | Event code 298 (BTN_BASE5) | ||
| + | Event code 299 (BTN_BASE6) | ||
| + | Event type 3 (EV_ABS) | ||
| + | Event code 0 (ABS_X) | ||
| + | Value 508 | ||
| + | Min 0 | ||
| + | Max | ||
| + | Fuzz 3 | ||
| + | Flat 63 | ||
| + | Event code 1 (ABS_Y) | ||
| + | Value 516 | ||
| + | Min 0 | ||
| + | Max | ||
| + | Fuzz 3 | ||
| + | Flat 63 | ||
| + | Event code 5 (ABS_RZ) | ||
| + | Value 128 | ||
| + | Min 0 | ||
| + | Max 255 | ||
| + | Flat 15 | ||
| + | Event code 6 (ABS_THROTTLE) | ||
| + | Value 213 | ||
| + | Min 0 | ||
| + | Max 255 | ||
| + | Flat 15 | ||
| + | Event code 16 (ABS_HAT0X) | ||
| + | Value 0 | ||
| + | Min -1 | ||
| + | Max 1 | ||
| + | Event code 17 (ABS_HAT0Y) | ||
| + | Value 0 | ||
| + | Min -1 | ||
| + | Max 1 | ||
| + | Event type 4 (EV_MSC) | ||
| + | Event code 4 (MSC_SCAN) | ||
| + | Properties: | ||
| + | Testing ... (interrupt to exit) | ||
| + | </ | ||
| + | |||
| + | * happy pedals | ||
| + | |||
| + | < | ||
| + | Pharaon:/ | ||
| + | Input driver version is 1.0.1 | ||
| + | Input device ID: bus 0x3 vendor 0x2341 product 0x8036 version 0x101 | ||
| + | Input device name: " | ||
| + | Supported events: | ||
| + | Event type 0 (EV_SYN) | ||
| + | Event type 1 (EV_KEY) | ||
| + | Event code 288 (BTN_TRIGGER) | ||
| + | Event code 289 (BTN_THUMB) | ||
| + | Event type 3 (EV_ABS) | ||
| + | Event code 2 (ABS_Z) | ||
| + | Value 480 | ||
| + | Min 0 | ||
| + | Max | ||
| + | Fuzz 3 | ||
| + | Flat 63 | ||
| + | Event code 3 (ABS_RX) | ||
| + | Value 20 | ||
| + | Min 0 | ||
| + | Max | ||
| + | Fuzz 3 | ||
| + | Flat 63 | ||
| + | Event code 4 (ABS_RY) | ||
| + | Value 23 | ||
| + | Min 0 | ||
| + | Max | ||
| + | Fuzz 3 | ||
| + | Flat 63 | ||
| + | Event type 4 (EV_MSC) | ||
| + | Event code 4 (MSC_SCAN) | ||
| + | Properties: | ||
| + | Testing ... (interrupt to exit) | ||
| + | </ | ||
| + | |||
| + | ===== lsusb ===== | ||
| + | |||
| + | < | ||
| + | Bus 001 Device 003: ID 046d:c215 Logitech, Inc. Extreme 3D Pro | ||
| + | Device Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bcdUSB | ||
| + | bDeviceClass | ||
| + | bDeviceSubClass | ||
| + | bDeviceProtocol | ||
| + | bMaxPacketSize0 | ||
| + | idVendor | ||
| + | idProduct | ||
| + | bcdDevice | ||
| + | iManufacturer | ||
| + | iProduct | ||
| + | iSerial | ||
| + | bNumConfigurations | ||
| + | Configuration Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | wTotalLength | ||
| + | bNumInterfaces | ||
| + | bConfigurationValue | ||
| + | iConfiguration | ||
| + | bmAttributes | ||
| + | (Bus Powered) | ||
| + | MaxPower | ||
| + | Interface Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bInterfaceNumber | ||
| + | bAlternateSetting | ||
| + | bNumEndpoints | ||
| + | bInterfaceClass | ||
| + | bInterfaceSubClass | ||
| + | bInterfaceProtocol | ||
| + | iInterface | ||
| + | HID Device Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bcdHID | ||
| + | bCountryCode | ||
| + | bNumDescriptors | ||
| + | bDescriptorType | ||
| + | wDescriptorLength | ||
| + | | ||
| + | ** UNAVAILABLE ** | ||
| + | Endpoint Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bEndpointAddress | ||
| + | bmAttributes | ||
| + | Transfer Type Interrupt | ||
| + | Synch Type | ||
| + | Usage Type | ||
| + | wMaxPacketSize | ||
| + | bInterval | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | Bus 005 Device 011: ID 2341:8036 Arduino SA Leonardo (CDC ACM, HID) | ||
| + | Device Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bcdUSB | ||
| + | bDeviceClass | ||
| + | bDeviceSubClass | ||
| + | bDeviceProtocol | ||
| + | bMaxPacketSize0 | ||
| + | idVendor | ||
| + | idProduct | ||
| + | bcdDevice | ||
| + | iManufacturer | ||
| + | iProduct | ||
| + | iSerial | ||
| + | bNumConfigurations | ||
| + | Configuration Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | wTotalLength | ||
| + | bNumInterfaces | ||
| + | bConfigurationValue | ||
| + | iConfiguration | ||
| + | bmAttributes | ||
| + | (Bus Powered) | ||
| + | MaxPower | ||
| + | Interface Association: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bFirstInterface | ||
| + | bInterfaceCount | ||
| + | bFunctionClass | ||
| + | bFunctionSubClass | ||
| + | bFunctionProtocol | ||
| + | iFunction | ||
| + | Interface Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bInterfaceNumber | ||
| + | bAlternateSetting | ||
| + | bNumEndpoints | ||
| + | bInterfaceClass | ||
| + | bInterfaceSubClass | ||
| + | bInterfaceProtocol | ||
| + | iInterface | ||
| + | CDC Header: | ||
| + | bcdCDC | ||
| + | CDC Call Management: | ||
| + | bmCapabilities | ||
| + | call management | ||
| + | bDataInterface | ||
| + | CDC ACM: | ||
| + | bmCapabilities | ||
| + | sends break | ||
| + | line coding and serial state | ||
| + | CDC Union: | ||
| + | bMasterInterface | ||
| + | bSlaveInterface | ||
| + | Endpoint Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bEndpointAddress | ||
| + | bmAttributes | ||
| + | Transfer Type Interrupt | ||
| + | Synch Type | ||
| + | Usage Type | ||
| + | wMaxPacketSize | ||
| + | bInterval | ||
| + | Interface Descriptor: | ||
| + | | ||
| + | bDescriptorType | ||
| + | bInterfaceNumber | ||
| + | bAlternateSetting | ||
| + | bNumEndpoints | ||
| + | bInterfaceClass | ||
| + | bInterfaceSubClass | ||
| + | bInterfaceProtocol | ||
| + | iInterface | ||
| + | Endpoint Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bEndpointAddress | ||
| + | bmAttributes | ||
| + | Transfer Type Bulk | ||
| + | Synch Type | ||
| + | Usage Type | ||
| + | wMaxPacketSize | ||
| + | bInterval | ||
| + | Endpoint Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bEndpointAddress | ||
| + | bmAttributes | ||
| + | Transfer Type Bulk | ||
| + | Synch Type | ||
| + | Usage Type | ||
| + | wMaxPacketSize | ||
| + | bInterval | ||
| + | Interface Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bInterfaceNumber | ||
| + | bAlternateSetting | ||
| + | bNumEndpoints | ||
| + | bInterfaceClass | ||
| + | bInterfaceSubClass | ||
| + | bInterfaceProtocol | ||
| + | iInterface | ||
| + | HID Device Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bcdHID | ||
| + | bCountryCode | ||
| + | bNumDescriptors | ||
| + | bDescriptorType | ||
| + | wDescriptorLength | ||
| + | | ||
| + | ** UNAVAILABLE ** | ||
| + | Endpoint Descriptor: | ||
| + | bLength | ||
| + | bDescriptorType | ||
| + | bEndpointAddress | ||
| + | bmAttributes | ||
| + | Transfer Type Interrupt | ||
| + | Synch Type | ||
| + | Usage Type | ||
| + | wMaxPacketSize | ||
| + | bInterval | ||
| + | </ | ||
| + | ====== zkoumání xpl ====== | ||
| * jak X-Plane zjístí seznam events? | * jak X-Plane zjístí seznam events? | ||
| - | | + | |
| < | < | ||
| Řádek 71: | Řádek 382: | ||
| open("/ | open("/ | ||
| </ | </ | ||
| + | |||
| + | * 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 | ||
| + | |||
| + | < | ||
| + | inotify_add_watch(7, | ||
| + | </ | ||
| + | |||
| + | * podle čeho se rozhodne, že se mu eventX líbí? | ||
| + | |||
| + | < | ||
| + | open("/ | ||
| + | open("/ | ||
| + | open("/ | ||
| + | open("/ | ||
| + | open("/ | ||
| + | open("/ | ||
| + | open("/ | ||
| + | ioctl(30, EVIOCGBIT(EV_SYN, | ||
| + | ioctl(30, EVIOCGBIT(EV_KEY, | ||
| + | ioctl(30, EVIOCGBIT(EV_ABS, | ||
| + | fcntl(30, F_SETFL, O_RDONLY|O_NONBLOCK) = 0 | ||
| + | ioctl(30, EVIOCGNAME(256), | ||
| + | ioctl(30, EVIOCGUNIQ(256), | ||
| + | ioctl(30, EVIOCGID, {ID_BUS=3, ID_VENDOR=1133, | ||
| + | ioctl(30, EVIOCGBIT(EV_KEY, | ||
| + | ioctl(30, EVIOCGBIT(EV_ABS, | ||
| + | ioctl(30, EVIOCGABS(ABS_X), | ||
| + | ioctl(30, EVIOCGABS(ABS_Y), | ||
| + | ioctl(30, EVIOCGABS(ABS_RZ), | ||
| + | ioctl(30, EVIOCGABS(ABS_THROTTLE), | ||
| + | open("/ | ||
| + | ioctl(31, EVIOCGBIT(EV_SYN, | ||
| + | ioctl(31, EVIOCGBIT(EV_KEY, | ||
| + | ioctl(31, EVIOCGBIT(EV_ABS, | ||
| + | close(31) | ||
| + | </ | ||
| + | |||
| + | ====== connected threads ====== | ||
| + | ====== založení vlákna ====== | ||
| + | |||
| + | * SUBJECTS SUGGESTIONS | ||
| + | * X-Plane doesn' | ||
| + | * BUG? X-Plane doesn' | ||
| + | * Why X-Plane doesn' | ||
| + | * TEXT: | ||
| + | * My XPL is 10.36+ | ||
| + | * My joystick based on arduino ... code | ||
| + | * Releated information | ||
| + | * http:// | ||
| + | * http:// | ||
| + | * tohle je zajímavé!! bacha... linux port je na pokraji smrti. Važ negativní slova :) | ||
| + | * autorem toho nového joy api je Chris Serio | ||
| + | * http:// | ||
| + | * http:// | ||
| + | * 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.1441309447.txt.gz · Poslední úprava: (upraveno mimo DokuWiki)
