• AVR Freaks

USB Composite Device(HID and MIDI)

Author
yamamo2shun1
New Member
  • Total Posts : 27
  • Reward points : 0
  • Joined: 2011/08/28 19:18:16
  • Location: 0
  • Status: offline
2012/05/11 09:31:38 (permalink)
0

USB Composite Device(HID and MIDI)

Hi all,

I developed the prototyping board based on PIC32MX675F512H.

http://atelier.tkrworks.net/controller3149

This is the usb composite device of HID and MIDI.

Recently, I finished to check the operation on Mac OS X 10.7.
But the MIDI device is not recognized on Windows 7.

http://atelier.tkrworks.net/beta/devmgr_win7.jpg

I doubt the usb descriptor but I cannot find the mistake by myself...

So I attached my project files.
So please tell me if you find the problem.

http://atelier.tkrworks.n...uter093_OSC_MIDI.X.zip
*My environment is MPLABX v1.10, MPLABC v2.02 and Microchip Application Library v2012-04-03 on Mac OS X 10.7.4.
**I want to use XC32 compiler but the ethernet isn't operated correctly with XC32 v1.0 mac ver.

Thanks,
#1

3 Replies Related Threads

    bytencoder
    Super Member
    • Total Posts : 363
    • Reward points : 0
    • Joined: 2009/06/25 12:30:07
    • Location: 0
    • Status: offline
    Re:USB Composite Device(HID and MIDI) 2012/05/11 12:02:25 (permalink)
    +2 (1)
    ............
        0x01,       //bInCollection
        0x01,       //baInterfaceNr(1) <<<<<< Isn't that suppose to be 2 ???

        /* MIDI Adapter Standard MS Interface Descriptor 9(76) */
        0x09,       //bLength
        0x04,       //bDescriptorType
        0x02,       //bInterfaceNumber
        0x00,       //bAlternateSetting
      .........

    #2
    yamamo2shun1
    New Member
    • Total Posts : 27
    • Reward points : 0
    • Joined: 2011/08/28 19:18:16
    • Location: 0
    • Status: offline
    Re:USB Composite Device(HID and MIDI) 2012/05/11 16:35:35 (permalink)
    0

    Hi bitencoder,


    bytencoder

    ............
       0x01,       //bInCollection
       0x01,       //baInterfaceNr(1) <<<<<< Isn't that suppose to be 2 ???

       /* MIDI Adapter Standard MS Interface Descriptor 9(76) */
       0x09,       //bLength
       0x04,       //bDescriptorType
       0x02,       //bInterfaceNumber
       0x00,       //bAlternateSetting
    .........


    Thank you very much!!! 

    My device's MIDI is recognized by Windows!
    #3
    chinzei
    Super Member
    • Total Posts : 2250
    • Reward points : 0
    • Joined: 2003/11/07 12:39:02
    • Location: Tokyo, Japan
    • Status: offline
    Re:USB Composite Device(HID and MIDI) 2012/05/11 22:19:50 (permalink)
    0

    For audio interface, HID is a supposed interface to be appended.
    When you align the interfaces in this order, you can do without IAD.

    Config descriptor
    - Audio Control I/F
    - Audio Streaming I/F
    - HID I/F

    Enumeration of Interface Collections on Audio Devices without IADs
    http://msdn.microsoft.com...ff537105(v=vs.85).aspx

    Tsuneo
    #4
    Jump to:
    © 2019 APG vNext Commercial Version 4.5