FTDI Community
General Category => General Discussion => Topic started by: CarloVRR on February 15, 2022, 10:27:32 AM
-
I'd would like to build a device, using the Vinculum II, to capture some MIDI data strings sent on the USB port of an audio device (MIDI on the USB); it sends 4 bytes using a bulk mode (endpoint 0x82, input) through the USB interface.
Any suggestions or FW application ?
Thank you
-
Carlo:
Need more information about the USB to MIDI device. Please run our USB View utility, highlight the MIDI device, and send me a screenshot.
https://ftdichip.com/wp-content/uploads/2020/07/usbview.zip
Best Regards,
Cameron Forbes, FTDI USA
-
Thanks Cameron,
I need to connect the Vinculum II to a device that works at High Speed, it uses a Bulk transfer type and send 4 MIDI bytes on the USB interface.
I need to capture these bytes, I made several tests (Class: MIDI) but it seems that the Vinculum II is not able to communicate with a high speed device...
May you help me to understand where is the problem ?
Thank you
Carlo
Carlo:
Need more information about the USB to MIDI device. Please run our USB View utility, highlight the MIDI device, and send me a screenshot.
https://ftdichip.com/wp-content/uploads/2020/07/usbview.zip
Best Regards,
Cameron Forbes, FTDI USA
-
Carlo:
Need more information about the USB to MIDI device. Please run our USB View utility, highlight the MIDI device, and send me a screenshot.
https://ftdichip.com/wp-content/uploads/2020/07/usbview.zip
Best Regards,
Cameron Forbes, FTDI USA
-
Carlo:
Need more information about the USB to MIDI device. Please run our USB View utility, highlight the MIDI device, and send me a screenshot.
https://ftdichip.com/wp-content/uploads/2020/07/usbview.zip
Best Regards,
Cameron Forbes, FTDI USA
I sent a TXT file...
-
I sent a TXT file...it contains what I have captured using a USB monitor software...I' m able to write an appication that enumerates the USB device, but when I try to open a Midi class the application returns an error....
Carlo
-
Carlo:
Need more information about the USB to MIDI device. Please run our USB View utility, highlight the MIDI device, and send me a screenshot.
https://ftdichip.com/wp-content/uploads/2020/07/usbview.zip
Best Regards,
Cameron Forbes, FTDI USA
I' m able to write an appication that enumerates the USB device, but when I try to open a Midi class the application returns an error....
Carlo
-
Carlo:
The VNC2 embedded host controller only supports a limited number of USB Device Classes.
I'm afraid the VNC2 drivers do not support MIDI class devices.
Best Regards,
Cameron Forbes, FTDI USA
-
Carlo:
The VNC2 embedded host controller only supports a limited number of USB Device Classes.
I'm afraid the VNC2 drivers do not support MIDI class devices.
Best Regards,
Cameron Forbes, FTDI USA
The USB.H contains also the MIDI class code as MIDISTREAMING (0x03)...
#define USB_CLASS_DEVICE 0x00
#define USB_CLASS_AUDIO 0x01
#define USB_CLASS_CDC_CONTROL 0x02
#define USB_CLASS_HID 0x03
#define USB_CLASS_PHYSICAL 0x05
#define USB_CLASS_IMAGE 0x06
#define USB_CLASS_PRINTER 0x07
#define USB_CLASS_MASS_STORAGE 0x08
#define USB_CLASS_HUB 0x09
#define USB_CLASS_CDC_DATA 0x0a
#define USB_CLASS_SMART_CARD 0x0b
#define USB_CLASS_CONTENT_SECURITY 0x0d
#define USB_CLASS_VIDEO 0x0e
#define USB_CLASS_PERSONAL_HEALTHCARE 0x0f
#define USB_CLASS_DIAGNOSTIC_DEVICE 0xdc
#define USB_CLASS_WIRELESS_CONTROLLER 0xe0
#define USB_CLASS_MISCELLANEOUS 0xef
#define USB_CLASS_APPLICATION 0xfe
#define USB_CLASS_VENDOR 0xff
#define USB_SUBCLASS_ANY 0xff
#define USB_PROTOCOL_ANY 0xff
// USB_CLASS_DEVICE
#define USB_SUBCLASS_DEVICE 0x00
#define USB_PROTOCOL_DEVICE 0x00
// USB_CLASS_AUDIO
#define USB_SUBCLASS_AUDIO_UNDEFINED 0x00
#define USB_SUBCLASS_AUDIO_AUDIOCONTROL 0x01
#define USB_SUBCLASS_AUDIO_AUDIOSTREAMING 0x02
#define USB_SUBCLASS_AUDIO_MIDISTREAMING 0x03 <---------- ****
#define USB_PROTOCOL_AUDIO_UNDEFINED 0x00
#define USB_PROTOCOL_AUDIO_VERSION_02_00 0x20
Anyway is there a possibility that you will add this features ?
Carlo
-
Carlo:
The VNC2 embedded host controller only supports a limited number of USB Device Classes.
I'm afraid the VNC2 drivers do not support MIDI class devices.
Best Regards,
Cameron Forbes, FTDI USA
Dear Cameron,
I've written a code that uses the MIDI class, try it with a keyboard and a synth, both work and I don't receive any errors.
The same code tested with the PodGo, I attach the USBView file, returns an error (the enumeration doesn't return any error) when I try to open a MIDI class; the PodGo has a high speed USB connection while the Vinculum II works with a full speed, this different speed could be the origin of the error ?
Thank you, best regards
-
Hello:
It may be possible to modify our CDC Host driver code (included with the VNC2 IDE) to work with your MIDI devices Miscellaneous Class (0xef) Audio Streaming sub-class (0x02)
You can find the CDC Host driver app note (AN_171) here:
https://ftdichip.com/wp-content/uploads/2020/08/AN_171_Vinculum_II_USB_Host_Using-_the_CDC_Driver.pdf
You can also contact me by email: us.support@ftdichip.com
Best Regards,
USA Support