Check with using the USB Device Info tool.
- Disconnect the USB MIDI device.
- Open the
USB Device Infoapp, and selectAndroidtab. NotLinuxtab. - At first, push
Refreshbutton once. Then connect the USB MIDI device. - Push
Refreshbutton again. - Now, if the device information has been appended, the Android may connect the USB MIDI device.
- If nothing has changed, the Android can not detect the device...
Continue seeing the USB Device Info app's Interface's Class information.
The Audio Device (0x1) Class must be existed one or more.
If you found only the other Classes(CDC, HID or something), the device seems not an standard USB MIDI device. The library can connect with non standard USB MIDI device, if the device using USB MIDI compatible protocol.
Seek all Endpoint information.
The USB MIDI compatible device have one or more Endpoints.
And check these conditions.
- Type is
BulkorInterrupt. - Direction is
InboundorOutbound, or both of them.
If the Endpoint informations matches above conditions, the device can be detected with this driver.
Then, write down the VendorId information of the device.
- Git clone this project. And import into Eclipse workspace.
- Choose the library project, and open
res/xml/device_filter.xmlfile.
You can see the line like this.
<usb-device vendor-id="1177" />Add similar line in the xml file, and change vendor-id to the device's VendorId.
Caution: The app's displaying id value is Hexadecimal, but the xml's value must be decimal.
- Uninstall original sample application from the Android device.
- Build the sample app, and run with Android device.
- When app has launched, then connect the USB MIDI device.
- If the configuration succeed, Sample application will detect the device.
- Send some MIDI messages from the device, and check the informations are shown correctly.
- Send some MIDI messages to the device, and check the device works correctly.
If you could connect and use the device, please email me the device VendorId information, or do fork, modify the xml file, and pull request on github please.