-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Konami Keyboard for Beatmania DaDaDa #47
Comments
You should use linux to analyze such devices because a significant part is missing ( |
How do I inspect it on linux? |
Run the following command, re/connect the device, wait a few seconds and then press Ctrl+C: While the device is connected: To dump hid packets run the following command, then press one button noting both the button pressed and the output: |
Bus 002 Device 010: ID 0510:0002 Sejin Electron, Inc. USB JIS Mini Keyboard |
/sys/devices/pci0000:00/0000:00:14.0/usb2/2-5/2-5:1.0/0003:0510:0002.000A/report_descriptor |
[manjaro manjaro]# sudo usbhid-dump --entity=d --model=0510:0002 |
I guess at least on linux with evdev it seems to (mostly) work 463286f Now the annoying part would be how to block PCSX2 UI from ASDF/JKL only stage also registers U as J, I as K etc, don't know if intentional or something borked. |
My hack with the standard keyboard module worked fine except the escape button |
Connection Status : 0x01 (Device is connected)
Port Chain : 2-5
Properties : 0x01
IsUserConnectable : yes
PortIsDebugCapable : no
PortHasMultiCompanions : no
PortConnectorIsTypeC : no
ConnectionIndex : 5
Device Description : USB Input Device
Device Path : \?\USB#VID_0510&PID_0002#5&20eff38c&0&5#{a5dcbf10-6530-11d2-901f-00c04fb951ed} (GUID_DEVINTERFACE_USB_DEVICE)
Kernel Name : \Device\USBPDO-11
Device ID : USB\VID_0510&PID_0002\5&20EFF38C&0&5
Hardware IDs : USB\VID_0510&PID_0002&REV_0020 USB\VID_0510&PID_0002
Driver KeyName : {745a17a0-74d3-11d0-b6fe-00a0c90f57da}\0017 (GUID_DEVCLASS_HIDCLASS)
Driver : \SystemRoot\System32\drivers\hidusb.sys (Version: 10.0.19041.1 Date: 2019-12-07)
Driver Inf : C:\WINDOWS\inf\input.inf
Legacy BusType : PNPBus
Class : HIDClass
Class GUID : {745a17a0-74d3-11d0-b6fe-00a0c90f57da} (GUID_DEVCLASS_HIDCLASS)
Service : HidUsb
Enumerator : USB
Location Info : Port_#0005.Hub_#0003
Location IDs : PCIROOT(0)#PCI(1400)#USBROOT(0)#USB(5), ACPI(SB)#ACPI(PCI0)#ACPI(XHC_)#ACPI(RHUB)#ACPI(HS05)
Container ID : {4771d702-e0c2-11ea-b4aa-98588a040f8f}
Manufacturer Info : (Standard system devices)
Capabilities : 0x84 (Removable, SurpriseRemovalOK)
Status : 0x0180400A (DN_DRIVER_LOADED, DN_STARTED, DN_REMOVABLE, DN_NT_ENUMERATOR, DN_NT_DRIVER)
Problem Code : 0
HcDisableSelectiveSuspend: 0
EnableSelectiveSuspend : 0
SelectiveSuspendEnabled : 0
EnhancedPowerMgmtEnabled : 1
IdleInWorkingState : 0
WakeFromSleepState : 0
Power State : D0 (supported: D0, D1, D2, D3, wake from D0, wake from D1, wake from D2)
Child Device 1 : HID Keyboard Device
Device Path 1 : \?\HID#VID_0510&PID_0002#6&380ae972&0&0000#{884b96c3-56ef-11d1-bc8c-00a0c91405dd} (GUID_DEVINTERFACE_KEYBOARD)
Device Path 2 : \?\HID#VID_0510&PID_0002#6&380ae972&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}\kbd (GUID_DEVINTERFACE_HID)
Kernel Name : \Device\000000be
Device ID : HID\VID_0510&PID_0002\6&380AE972&0&0000
Class : Keyboard
Driver KeyName : {4d36e96b-e325-11ce-bfc1-08002be10318}\0002 (GUID_DEVCLASS_KEYBOARD)
Service : kbdhid
Connection Index : 0x05 (5)
Connection Status : 0x01 (DeviceConnected)
Current Config Value : 0x01
Device Address : 0x10 (16)
Is Hub : 0x00 (no)
Device Bus Speed : 0x00 (Low-Speed)
Number Of Open Pipes : 0x01 (1 pipe to data endpoints)
Pipe[0] : EndpointID=1 Direction=IN ScheduleOffset=0 Type=Interrupt
Data (HexDump) : 05 00 00 00 12 01 10 01 00 00 00 08 10 05 02 00 ................
20 00 01 02 00 01 01 00 00 10 00 01 00 00 00 01 ...............
00 00 00 07 05 81 03 08 00 0A 00 00 00 00 ..............
Connection Index : 0x05 (5)
Length : 0x10 (16 bytes)
SupportedUsbProtocols : 0x03
Usb110 : 1 (yes)
Usb200 : 1 (yes)
Usb300 : 0 (no)
ReservedMBZ : 0x00
Flags : 0x00
DevIsOpAtSsOrHigher : 0 (Is not operating at SuperSpeed or higher)
DevIsSsCapOrHigher : 0 (Is not SuperSpeed capable or higher)
DevIsOpAtSsPlusOrHigher : 0 (Is not operating at SuperSpeedPlus or higher)
DevIsSsPlusCapOrHigher : 0 (Is not SuperSpeedPlus capable or higher)
ReservedMBZ : 0x00
Data (HexDump) : 05 00 00 00 10 00 00 00 03 00 00 00 00 00 00 00 ................
bLength : 0x12 (18 bytes)
bDescriptorType : 0x01 (Device Descriptor)
bcdUSB : 0x110 (USB Version 1.10)
bDeviceClass : 0x00 (defined by the interface descriptors)
bDeviceSubClass : 0x00
bDeviceProtocol : 0x00
bMaxPacketSize0 : 0x08 (8 bytes)
idVendor : 0x0510 (Sejin Electron Inc.)
idProduct : 0x0002
bcdDevice : 0x0020
iManufacturer : 0x01 (String Descriptor 1)
Language 0x0409 : "KONAMI CPJ1"
iProduct : 0x02 (String Descriptor 2)
Language 0x0409 : "USB JIS Mini Keyboard"
iSerialNumber : 0x00 (No String Descriptor)
bNumConfigurations : 0x01 (1 Configuration)
Data (HexDump) : 12 01 10 01 00 00 00 08 10 05 02 00 20 00 01 02 ............ ...
00 01 ..
bLength : 0x09 (9 bytes)
bDescriptorType : 0x02 (Configuration Descriptor)
wTotalLength : 0x0022 (34 bytes)
bNumInterfaces : 0x01 (1 Interface)
bConfigurationValue : 0x01 (Configuration 1)
iConfiguration : 0x02 (String Descriptor 2)
Language 0x0409 : "USB JIS Mini Keyboard"
bmAttributes : 0xA0
D7: Reserved, set 1 : 0x01
D6: Self Powered : 0x00 (no)
D5: Remote Wakeup : 0x01 (yes)
D4..0: Reserved, set 0 : 0x00
MaxPower : 0x14 (40 mA)
Data (HexDump) : 09 02 22 00 01 01 02 A0 14 09 04 00 00 01 03 01 ..".............
01 00 09 21 10 01 0F 01 22 44 00 07 05 81 03 08 ...!...."D......
00 0A ..
bLength : 0x09 (9 bytes)
bDescriptorType : 0x04 (Interface Descriptor)
bInterfaceNumber : 0x00
bAlternateSetting : 0x00
bNumEndpoints : 0x01 (1 Endpoint)
bInterfaceClass : 0x03 (HID - Human Interface Device)
bInterfaceSubClass : 0x01 (Boot Interface)
bInterfaceProtocol : 0x01 (Keyboard)
iInterface : 0x00 (No String Descriptor)
Data (HexDump) : 09 04 00 00 01 03 01 01 00 .........
bLength : 0x09 (9 bytes)
bDescriptorType : 0x21 (HID Descriptor)
bcdHID : 0x0110 (HID Version 1.10)
bCountryCode : 0x0F (15 = Japan (Katakana))
bNumDescriptors : 0x01
Data (HexDump) : 09 21 10 01 0F 01 22 44 00 .!...."D.
Descriptor 1:
bDescriptorType : 0x22 (Class=Report)
wDescriptorLength : 0x0044 (68 bytes)
Error reading descriptor : ERROR_INVALID_PARAMETER
bLength : 0x07 (7 bytes)
bDescriptorType : 0x05 (Endpoint Descriptor)
bEndpointAddress : 0x81 (Direction=IN EndpointID=1)
bmAttributes : 0x03 (TransferType=Interrupt)
wMaxPacketSize : 0x0008
bInterval : 0x0A (10 ms)
Data (HexDump) : 07 05 81 03 08 00 0A .......
bLength : 0x04 (4 bytes)
bDescriptorType : 0x03 (String Descriptor)
Language ID[0] : 0x0409 (English - United States)
Data (HexDump) : 04 03 09 04 ....
------ String Descriptor 1 ------
bLength : 0x18 (24 bytes)
bDescriptorType : 0x03 (String Descriptor)
Language 0x0409 : "KONAMI CPJ1"
Data (HexDump) : 18 03 4B 00 4F 00 4E 00 41 00 4D 00 49 00 20 00 ..K.O.N.A.M.I. .
43 00 50 00 4A 00 31 00 C.P.J.1.
------ String Descriptor 2 ------
bLength : 0x2C (44 bytes)
bDescriptorType : 0x03 (String Descriptor)
Language 0x0409 : "USB JIS Mini Keyboard"
Data (HexDump) : 2C 03 55 00 53 00 42 00 20 00 4A 00 49 00 53 00 ,.U.S.B. .J.I.S.
20 00 4D 00 69 00 6E 00 69 00 20 00 4B 00 65 00 .M.i.n.i. .K.e.
79 00 62 00 6F 00 61 00 72 00 64 00 y.b.o.a.r.d.
The text was updated successfully, but these errors were encountered: