martinjos / rb3_driver

Experimental RB3 Wireless MIDI Keyboard Driver
MIT License
34 stars 17 forks source link

Compatibility issue #1

Open silveruniverse opened 9 years ago

silveruniverse commented 9 years ago

Hey, Would it be possible for this to work on win 7 64bit and/or a PS3 Rock Band 3 keyboard? I've tried and tried for hours and MIDI-OX does output random instrument change events, but doesn't do anything if I press the keys, only the buttons.

martinjos commented 9 years ago

Hi silveruniverse, I've just tested it on a Windows 7 64-bit system and it works with the Wii version of the keytar (inc. key events). My guess is that the PS3 version is incompatible. Sorry :-( On 2 May 2015 10:44 pm, "silveruniverse" notifications@github.com wrote:

Hey, Would it be possible for this to work on win 7 64bit and/or a PS3 Rock Band 3 keyboard? I've tried and tried for hours and MIDI-OX does output random instrument change events, but doesn't do anything if I press the keys, only the buttons.

— Reply to this email directly or view it on GitHub https://github.com/martinjos/rb3_driver/issues/1.

tonysidaway commented 9 years ago

You have this person's email address. Here's an idea.

Ask them if they could send you output from another program on your github download area, then if they say yes publish a variation that just records incoming data to a file, and make the binary available for download.

martinjos commented 9 years ago

That's a good idea, I might think about doing that.

tonysidaway commented 9 years ago

silveruniverse, I apologise for referring to you in the third person there. The comment was intended to be a private communication. I didn't know my email would end up on this website.

The idea is to see if it's possible to debug your setup by looking at what the app sees from your variant of the keyboard. It could be a quite simple variation that could easily be accommodated by a small change in the code.

silveruniverse commented 9 years ago

Oh no worries, I'm more than happy to help with this, although I lack any knowledge on how to record the data output by the dongle.

But I tired anyway with software called USB analyzer: https://drive.google.com/file/d/0B3uKvpRVJBDIMUFCMDA1cWpTeTQ/view?usp=sharing

Is what it recorded happening when I enabled the rb3_driver application, but even when pushing the buttons and keys the code there seemed to be the same.

If there's anything I can do and if you wish to add PS3 keyboard compatibility, then I'd be happy to help.

tonike commented 8 years ago

Hello, has there been any progress on this matter? I also own PS3 keytar and I would love to help in anyway possible.

trustmeimanengineer commented 8 years ago

Hi folks, Great project!

I also have a PS3 keytar. I'm looking into it. I can see output for all the buttons in the debugger but nothing from pressing the keyboard keys.

The packet size is still 27 bytes, although the format is a little different from the doc for the Wii version.

I wonder if the PS3 version could use a different endpoint for the keys, or if there is some other difference?

Cheers, Richard.

trustmeimanengineer commented 8 years ago

On the PS3 keytar, packets from endpoint 0x80 look like this: 00 00 08 80 80 80 80 00 00 00 00 00 00 00 00 00 00 00 00 00 02 00 02 00 02 00 02

Byte 0: bit 0 (1) - square bit 1 (2) - x bit 2 (4) - circle bit 3 (8) - triangle

Byte 1: bit 0 (1) - select bit 1 (2) - start bit 4 (10) - playstation button

Byte 2: directional pad, 8 = inactive, 0 = up, increasing clockwise

Remaining bytes always static as above, no response to keyboard keys or modulation slider.

Endpoint 0x02 reads out 9 byte values, all 0. Haven't found any other responsive endpoints. Bit of a mystery. Maybe there is a configuration step required?