Skip to content

usb.host.find() OK for MIDI keyboards in 9.2.4, but fails for some in CP>=9.2.5 on Feather RP2040 USB Host #10494

Open

Description

@RobCranfill

CircuitPython version and board name

Adafruit CircuitPython 9.2.5 on 2025-03-19; Adafruit Feather RP2040 USB Host with rp2040

Code/REPL

import usb.core
import time

time.sleep(5) # needed for USB to settle? I don't think so, but whatev.

print("Looking for midi devices")
while True:
    i = 0
    for device in usb.core.find(find_all=True):
	print("Found a device")
	i += 1
    print(f"Found {i} devices; going around again...")
    time.sleep(1)

Behavior

Adafruit CircuitPython 9.2.5 on 2025-03-19; Adafruit Feather RP2040 USB Host with rp2040
>>> 
soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Looking for midi devices
Found 0 devices; going around again...
Found 0 devices; going around again...
Found 0 devices; going around again...
Traceback (most recent call last):
  File "code.py", line 2, in <module>
  File "super_simple_test.py", line 14, in <module>
KeyboardInterrupt: 

Description

usb.core.find() does not see the device under CP>=9.2.5, but did under <=9.2.4.

Additional information

The following test code runs correctly with all MIDI keyboards I have tried it on under CP 9.2.4 and earlier, but fails on some MIDI keyboards under CP 9.2.5 and later.

Test code


import usb.core
import time

time.sleep(5) # needed for USB to settle? I don't think so, but whatev.

print("Looking for midi devices")
while True:
    i = 0
    for device in usb.core.find(find_all=True):
	print("Found a device")
	i += 1
    print(f"Found {i} devices; going around again...")
    time.sleep(1)

Testing with Akai MPKMini2 MIDI keyboard

Test run 1 (success)

Adafruit CircuitPython 9.2.4 on 2025-01-28; Adafruit Feather RP2040 USB Host with rp2040
>>> 
>>> 
soft reboot

Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Looking for midi devices
Found a device
Found 1 devices; going around again...
Found a device
Found 1 devices; going around again...
Traceback (most recent call last):
  File "code.py", line 2, in <module>
  File "super_simple_test.py", line 14, in <module>
KeyboardInterrupt: 
...

Test run 2 (failure)

	Adafruit CircuitPython 9.2.5 on 2025-03-19; Adafruit Feather RP2040 USB Host with rp2040
	>>> 
	soft reboot

	Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
	code.py output:
	Looking for midi devices
	Found 0 devices; going around again...
	Found 0 devices; going around again...
	Found 0 devices; going around again...

Test run 3 (failure)

	Adafruit CircuitPython 10.0.0-alpha.8 on 2025-07-08; Adafruit Feather RP2040 USB Host with rp2040
	>>> 
	>>> 
	soft reboot

	Auto-reload is off.
	code.py output:
	Looking for midi device
	Found 0 devices; going around again...
	Found 0 devices; going around again...
	...

Output from lsusb --vvv for Akai MPKMini2

As per suggestion/request of @tannewt here is some info on the device from a Linux box:

rob@ScreamerIVU:~$ sudo lsusb -vvv >mpkmini.lsusb.text
 (and then edited to show only the pertinent device)

...
Bus 001 Device 009: ID 2011:0715 AKAI MPKmini2
Negotiated speed: Full Speed (12Mbps)
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 [unknown]
  bDeviceSubClass         0 [unknown]
  bDeviceProtocol         0 
  bMaxPacketSize0        32
  idVendor           0x2011 AKAI
  idProduct          0x0715 MPKmini2
  bcdDevice            0.00
  iManufacturer           1 AKAI
  iProduct                2 MPKmini2
  iSerial                 3 0001
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0085
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x00
      (Missing must-be-set bit!)
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 [unknown]
      bInterfaceProtocol      0 
      iInterface              0 
	HID Device Descriptor:
	  bLength                 9
	  bDescriptorType        33
	  bcdHID               1.11
	  bCountryCode            0 Not supported
	  bNumDescriptors         1
	  bDescriptorType        34 (null)
	  wDescriptorLength      52
	  Report Descriptors: 
	    ** UNAVAILABLE **
      Endpoint Descriptor:
	bLength                 7
	bDescriptorType         5
	bEndpointAddress     0x81  EP 1 IN
	bmAttributes            3
	  Transfer Type            Interrupt
	  Synch Type               None
	  Usage Type               Data
	wMaxPacketSize     0x0020  1x 32 bytes
	bInterval               1
      Endpoint Descriptor:
	bLength                 7
	bDescriptorType         5
	bEndpointAddress     0x02  EP 2 OUT
	bmAttributes            3
	  Transfer Type            Interrupt
	  Synch Type               None
	  Usage Type               Data
	wMaxPacketSize     0x0020  1x 32 bytes
	bInterval               1
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
	bLength                 9
	bDescriptorType        36
	bDescriptorSubtype      1 (HEADER)
	bcdADC               1.00
	wTotalLength       0x0009
	bInCollection           1
	baInterfaceNr(0)        2
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         1 Audio
      bInterfaceSubClass      3 MIDI Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      MIDIStreaming Interface Descriptor:
	bLength                 7
	bDescriptorType        36
	bDescriptorSubtype      1 (HEADER)
	bcdADC               1.00
	wTotalLength       0x0041
      MIDIStreaming Interface Descriptor:
	bLength                 6
	bDescriptorType        36
	bDescriptorSubtype      2 (MIDI_IN_JACK)
	bJackType               1 Embedded
	bJackID                 1
	iJack                   0 
      MIDIStreaming Interface Descriptor:
	bLength                 6
	bDescriptorType        36
	bDescriptorSubtype      2 (MIDI_IN_JACK)
	bJackType               2 External
	bJackID                 2
	iJack                   0 
      MIDIStreaming Interface Descriptor:
	bLength                 9
	bDescriptorType        36
	bDescriptorSubtype      3 (MIDI_OUT_JACK)
	bJackType               1 Embedded
	bJackID                 3
	bNrInputPins            1
	baSourceID( 0)          2
	BaSourcePin( 0)         1
	iJack                   0 
      MIDIStreaming Interface Descriptor:
	bLength                 9
	bDescriptorType        36
	bDescriptorSubtype      3 (MIDI_OUT_JACK)
	bJackType               2 External
	bJackID                 4
	bNrInputPins            1
	baSourceID( 0)          1
	BaSourcePin( 0)         1
	iJack                   0 
      Endpoint Descriptor:
	bLength                 9
	bDescriptorType         5
	bEndpointAddress     0x03  EP 3 OUT
	bmAttributes            2
	  Transfer Type            Bulk
	  Synch Type               None
	  Usage Type               Data
	wMaxPacketSize     0x0040  1x 64 bytes
	bInterval               0
	bRefresh                0
	bSynchAddress           0
	MIDIStreaming Endpoint Descriptor:
	  bLength                 5
	  bDescriptorType        37
	  bDescriptorSubtype      1 (Invalid)
	  bNumEmbMIDIJack         1
	  baAssocJackID( 0)       1
      Endpoint Descriptor:
	bLength                 9
	bDescriptorType         5
	bEndpointAddress     0x84  EP 4 IN
	bmAttributes            2
	  Transfer Type            Bulk
	  Synch Type               None
	  Usage Type               Data
	wMaxPacketSize     0x0040  1x 64 bytes
	bInterval               0
	bRefresh                0
	bSynchAddress           0
	MIDIStreaming Endpoint Descriptor:
	  bLength                 5
	  bDescriptorType        37
	  bDescriptorSubtype      1 (Invalid)
	  bNumEmbMIDIJack         1
	  baAssocJackID( 0)       3
...

Activity

  1. added this to the 10.x.x milestone on Jul 17, 2025
  2. RobCranfill commented on Dec 8, 2025

    @RobCranfill
    Author

    Still failing on

    Adafruit CircuitPython 10.0.3 on 2025-10-17; Adafruit Feather RP2040 USB Host with rp2040

  3. modified the milestones: 10.x.x, 10.3.0 on May 19, 2026
  4. modified the milestones: 10.3.0, 10.x.x on Jun 1, 2026
  5. dhalbert commented on Jun 1, 2026

    @dhalbert
    Collaborator

    I tested with 9.2.4, 9.2.5, and 10.3.0-alpha.2 with the MIDI devices I had on hand: Arturia MiniLab Mk II, Line 6 MobileKeys 25, and a decades-old USB-MIDI adapter. All were detected in all builds. One thing I tried with the Line 6 and the adapter was to unplug and replug them while the detect loop was running. On all builds they did not re-detect, but did re-detect after a hard reset.

    I looked at the code changes between 9.2.4 and 9.2.5. Pico-PIO-USB was updated. There don't appear to be any significant code changes in the USB host code besides that.

    I'm going to push this to 10.x.x for now, because it seems to work on a lot of keyboards. @RobCranfill if you could list some other devices it doesn't work on, that might help in debugging in the long term.

  6. RobCranfill commented on Jun 2, 2026

    @RobCranfill
    Author

    Awesome: I find that my test code does work under CP 10.2.1 with the MPK Mini, and also works on myNektar Impact LX88+ and a Roland FP30X (which is the one kbd that it's always worked on) - so it now works on 100% of my suitable keyboards. Nice work!

    I guess I should close this issue?

    /rob

  7. dhalbert commented on Jun 2, 2026

    @dhalbert
    Collaborator

    Thanks for re-testing so quickly! I'll close now.

  8. RobCranfill commented on Jul 8, 2026

    @RobCranfill
    Author

    I am sorry to say I appear to have spoken too soon. This bug remains in effect in CP 10.2.1. I'm not sure how I made that mistake. (I think I was running 10.0.3 on the testbed and forgot that.)

    I will poke around some more and see if I can bring anything new to the table.

    Sorry,
    /r

  9. reopened this on Jul 9, 2026
  10. dhalbert commented on Sep 20, 2026

    @dhalbert
    Collaborator

    More work has been done on USB host, so worth retesting on 10.4.0-alpha.2.

  11. mikeysklar commented on Sep 20, 2026

    @mikeysklar
    Collaborator

    @RobCranfill could you also try these test builds on the Feather RP2040 USB Host with the MPK Mini? It has a Pico-PIO-USB receive fix (#11135).

    ; older build with PIO USB patches
    cp-11135-feather_rp2040_usb_host-en_US.uf2.zip

    ; new build with PIO USB patches and larger cap
    cp-main-9701f33a8f-piousb-5a37a66+210+211-cap68-feather_rp2040_usb_host.uf2.zip

  12. RobCranfill commented on Sep 22, 2026

    @RobCranfill
    Author

    More work has been done on USB host, so worth retesting on 10.4.0-alpha.2.

    Yes, some progress. See my upcoming comment as a reply to you and mikeysklar.

  13. RobCranfill commented on Sep 22, 2026

    @RobCranfill
    Author

    @RobCranfill could you also try these test builds on the Feather RP2040 USB Host with the MPK Mini? It has a Pico-PIO-USB receive fix (#11135).

    ; older build with PIO USB patches cp-11135-feather_rp2040_usb_host-en_US.uf2.zip

    ; new build with PIO USB patches and larger cap cp-main-9701f33a8f-piousb-5a37a66+210+211-cap68-feather_rp2040_usb_host.uf2.zip

    Yes, some progress. See my upcoming comment as a reply to you and dhalbert.

  14. RobCranfill commented on Sep 22, 2026

    @RobCranfill
    Author

    Well, there was a little progress: all 3 flavors now detect the DM6 and can open it as a MIDI device.

    The MPKMini is still not even detected by usb.find().

    10.4.0-alpha.2

            USB?    MIDI?   MIDI Events?
    
    Nektar: y       y       y
    DM6:    y       y       n
    MPK:    n
    

    ; older build with PIO USB patches
    Zip: cp-11135-feather_rp2040_usb_host-en_US.uf2.zip
    UF2: adafruit-circuitpython-adafruit_feather_rp2040_usb_host-en_US-20260723-main-PR11135-f32e05c.uf2
    REPL: Adafruit CircuitPython 10.3.0-alpha.4-1-gf32e05c77c on 2026-07-23; Adafruit Feather RP2040 USB Host with rp2040

    • same results

    ; new build with PIO USB patches and larger cap
    Zip: cp-main-9701f33a8f-piousb-5a37a66+210+211-cap68-feather_rp2040_usb_host.uf2.zip
    UF2: cp-main-9701f33a8f-piousb-5a37a66+210+211-cap68-feather_rp2040_usb_host.uf2
    REPL: Adafruit CircuitPython 10.4.0-alpha.2-24-g9701f33a8f-dirty on 2026-09-20; Adafruit Feather RP2040 USB Host with rp2040

    • same results

    Here's the test code:

    
    # open MIDI device, show messages received.
    # works on all MIDI devices except MPK and DM6
    
    import time
    import usb.core
    import adafruit_midi
    import adafruit_usb_host_midi
    
    
    print(f"\nrunning {__name__}")
    print("looking for USB device...")
    
    raw_midi = None
    while raw_midi is None:
        print("scanning USB bus...")
        n_found = 0
        for device in usb.core.find(find_all=True):
            n_found += 1
            try:
                raw_midi = adafruit_usb_host_midi.MIDI(device, timeout=0.1)
                print(f"Found device {hex(device.idVendor)}:{hex(device.idProduct)}")
            except Exception as e:
                print(f"{e}")
                continue
            if raw_midi is None:
                time.sleep(1)
        print(f" found {n_found} devices...")
        time.sleep(1)
    
    time.sleep(1)
    
    print("Trying as MIDI device....")
    midi_device = adafruit_midi.MIDI(midi_in=raw_midi)
    print(f"    {midi_device=}")
    print(f"    {midi_device.__dict__=}")
    
    while True:
        msg = midi_device.receive()
        if msg:
            print("midi msg:", msg)
    
    

    Output with DM6 attached:

    running dm6_to_sr16_b
    looking for USB device...
    scanning USB bus...
    Found device 0xa67:0x5011
     found 1 devices...
    Trying as MIDI device....
        midi_device=<MIDI object at 0x20013f70>
        midi_device.__dict__={'_out_channel': 0, '_in_channel': (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15), '_outbuf': bytearray(b'\x00\x00\x00\x00'), '_skipped_bytes': 0, '_midi_out': None, '_debug': False, '_in_buf': bytearray(b''), '_midi_in': MIDI Device Medeli El⁥挀琀爀漀渀/e-drum         , '_in_buf_size': 30}
    
    

    but thumping on the drum produces no MIDI notes. (Works fine elsewhere.)

    Thanks for looking into this! This is progress, and one step closer to me being able to continue with my USBMIDI-to-DINMIDI project.

    Thanks,
    Rob

  15. mikeysklar commented on Sep 22, 2026

    @mikeysklar
    Collaborator

    @RobCranfill thanks! Could you run this with the DM6 attached, hit a few pads, and paste the output? It skips the MIDI libraries and prints the raw USB data.

    import time, usb.core
    import adafruit_usb_host_descriptors as d
    
    dev = None
    while dev is None:
        dev = usb.core.find()
        time.sleep(0.5)
    print(repr(dev.manufacturer), repr(dev.product))
    
    cfg = d.get_configuration_descriptor(dev, 0)
    print(" ".join("%02x" % b for b in cfg))
    
    # find the MIDI streaming IN endpoint
    iface, ep, midi, i = 0, 0, False, 0
    while i < len(cfg):
        if cfg[i + 1] == 4:
            midi = cfg[i + 5] == 1 and cfg[i + 6] == 3
            if midi:
                iface = cfg[i + 2]
        elif cfg[i + 1] == 5 and midi and cfg[i + 2] & 0x80:
            ep = cfg[i + 2]
        i += cfg[i]
    print("iface", iface, "in ep", hex(ep))
    
    dev.set_configuration()
    dev.detach_kernel_driver(iface)
    buf = bytearray(64)
    while True:
        try:
            n = dev.read(ep, buf, 100)
            print(n, " ".join("%02x" % b for b in buf[:n]))
        except usb.core.USBTimeoutError:
            pass
        except usb.core.USBError as e:
            print("USBError", e)
            time.sleep(0.5)

    If you have a Linux box handy, lsusb -v for the DM6 would help too. This board might being using a crazy device name.

  16. RobCranfill commented on Sep 22, 2026

    @RobCranfill
    Author

    @RobCranfill thanks! Could you run this with the DM6 attached, hit a few pads, and paste the output? It skips the MIDI libraries and prints the raw USB data.

    Not sure which version(s) you wanted me to test against. I tried 10.3.0-alpha.4.1 and 10.4.0-alpha.2-24-g9701f33a8f-dirty. Happy to do this with the older one if you want. Same result with both (no MIDI events output.)

    Adafruit CircuitPython 10.3.0-alpha.4-1-gf32e05c77c on 2026-07-23; Adafruit Feather RP2040 USB Host with rp2040
    >>> 
    soft reboot
    code.py output:
    'Medeli El⁥挀琀爀漀渀' 'e-drum         '
    09 02 65 00 02 01 03 80 32 09 04 00 00 00 01 01 00 00 09 24 01 00 01 09 00 01 01 09 04 01 00 02 01 03 00 00 07 24 01 00 01 41 00 06 24 02 01 01 00 06 24 02 02 02 00 09 24 03 01 03 01 02 01 00 09 24 03 02 04 01 01 01 00 09 05 81 02 04 00 00 00 00 05 25 01 01 03 09 05 02 02 04 00 00 00 00 05 25 01 01 01
    iface 1 in ep 0x81
    

    Hitting the pads produced no output.

    If you have a Linux box handy, lsusb -v for the DM6 would help too. This board might being using a crazy device name.

    Here ya go:

    Bus 005 Device 021: ID 0a67:5011 Medeli Electronics Co., Ltd e-drum         
    Negotiated speed: Full Speed (12Mbps)
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               1.10
      bDeviceClass            0 [unknown]
      bDeviceSubClass         0 [unknown]
      bDeviceProtocol         0 
      bMaxPacketSize0         8
      idVendor           0x0a67 Medeli Electronics Co., Ltd
      idProduct          0x5011 e-drum         
      bcdDevice            1.22
      iManufacturer           1 Medeli El⁥挀琀爀漀渀
      iProduct                2 e-drum         
      iSerial                 0 
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength       0x0065
        bNumInterfaces          2
        bConfigurationValue     1
        iConfiguration          3 
        bmAttributes         0x80
          (Bus Powered)
        MaxPower              100mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           0
          bInterfaceClass         1 Audio
          bInterfaceSubClass      1 Control Device
          bInterfaceProtocol      0 
          iInterface              0 
          AudioControl Interface Descriptor:
            bLength                 9
            bDescriptorType        36
            bDescriptorSubtype      1 (HEADER)
            bcdADC               1.00
            wTotalLength       0x0009
            bInCollection           1
            baInterfaceNr(0)        1
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       0
          bNumEndpoints           2
          bInterfaceClass         1 Audio
          bInterfaceSubClass      3 MIDI Streaming
          bInterfaceProtocol      0 
          iInterface              0 
          MIDIStreaming Interface Descriptor:
            bLength                 7
            bDescriptorType        36
            bDescriptorSubtype      1 (HEADER)
            bcdADC               1.00
            wTotalLength       0x0041
          MIDIStreaming Interface Descriptor:
            bLength                 6
            bDescriptorType        36
            bDescriptorSubtype      2 (MIDI_IN_JACK)
            bJackType               1 Embedded
            bJackID                 1
            iJack                   0 
          MIDIStreaming Interface Descriptor:
            bLength                 6
            bDescriptorType        36
            bDescriptorSubtype      2 (MIDI_IN_JACK)
            bJackType               2 External
            bJackID                 2
            iJack                   0 
          MIDIStreaming Interface Descriptor:
            bLength                 9
            bDescriptorType        36
            bDescriptorSubtype      3 (MIDI_OUT_JACK)
            bJackType               1 Embedded
            bJackID                 3
            bNrInputPins            1
            baSourceID( 0)          2
            BaSourcePin( 0)         1
            iJack                   0 
          MIDIStreaming Interface Descriptor:
            bLength                 9
            bDescriptorType        36
            bDescriptorSubtype      3 (MIDI_OUT_JACK)
            bJackType               2 External
            bJackID                 4
            bNrInputPins            1
            baSourceID( 0)          1
            BaSourcePin( 0)         1
            iJack                   0 
          Endpoint Descriptor:
            bLength                 9
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0004  1x 4 bytes
            bInterval               0
            bRefresh                0
            bSynchAddress           0
            MIDIStreaming Endpoint Descriptor:
              bLength                 5
              bDescriptorType        37
              bDescriptorSubtype      1 (Invalid)
              bNumEmbMIDIJack         1
              baAssocJackID( 0)       3
          Endpoint Descriptor:
            bLength                 9
            bDescriptorType         5
            bEndpointAddress     0x02  EP 2 OUT
            bmAttributes            2
              Transfer Type            Bulk
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0004  1x 4 bytes
            bInterval               0
            bRefresh                0
            bSynchAddress           0
            MIDIStreaming Endpoint Descriptor:
              bLength                 5
              bDescriptorType        37
              bDescriptorSubtype      1 (Invalid)
              bNumEmbMIDIJack         1
              baAssocJackID( 0)       1
    

    Again, thanks for looking into this!
    /rob

  17. mikeysklar commented on Sep 22, 2026

    @mikeysklar
    Collaborator

    @RobCranfill thanks, that helps. The DM6 uses 4 byte packets, so a 64 byte read never fills and times out. Could you change buf = bytearray(64) to buf = bytearray(4) and try again?

  18. RobCranfill commented on Sep 22, 2026

    @RobCranfill
    Author

    Yes, that worked! Here's some output with a couple drum-hits:

    code.py output:
    'Medeli El⁥挀琀爀漀渀' 'e-drum         '
    09 02 65 00 02 01 03 80 32 09 04 00 00 00 01 01 00 00 09 24 01 00 01 09 00 01 01 09 04 01 00 02 01 03 00 00 07 24 01 00 01 41 00 06 24 02 01 01 00 06 24 02 02 02 00 09 24 03 01 03 01 02 01 00 09 24 03 02 04 01 01 01 00 09 05 81 02 04 00 00 00 00 05 25 01 01 03 09 05 02 02 04 00 00 00 00 05 25 01 01 01
    iface 1 in ep 0x81
    4 0f fe 00 00
    4 0f fe 00 00
    4 0f fe 00 00
    4 0f fe 00 00
    4 0f fe 00 00
    4 09 99 30 42
    4 09 99 30 00
    4 0f fe 00 00
    4 09 99 30 51
    4 09 99 30 00
    4 0f fe 00 00
    4 09 99 30 64
    4 09 99 30 00
    4 0f fe 00 00
    4 0f fe 00 00
    4 0f fe 00 00
    Traceback (most recent call last):
      File "code.py", line 7, in <module>
      File "sklar1.py", line 30, in <module>
    KeyboardInterrupt: 
    
    Code done running.
    Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
    
    Press any key to enter the REPL. Use CTRL-D to reload.
    
    Adafruit CircuitPython 10.4.0-alpha.2-24-g9701f33a8f-dirty on 2026-09-20; Adafruit Feather RP2040 USB Host with rp2040
    >>> 
    
    

    I'm about to go on vacation in a place with crummy internet access, but I'm gonna try to bring everything I need to work on this and I can check in here on my phone. (OK, I'm a dweeb and this is indeed fun, so no worries!)

    /rob

  19. mikeysklar commented on Sep 22, 2026

    @mikeysklar
    Collaborator

    Good, that confirms it. The DM6 sends 4 byte packets and the library always reads 64, so the read never completes and the data is dropped. Fix here: adafruit/Adafruit_CircuitPython_USB_Host_MIDI#10. Enjoy the vacation!

    The MPK Mini is a separate problem, it fails before any of this.

  20. RobCranfill commented on Sep 25, 2026

    @RobCranfill
    Author

    As I just commented over on that USB_host_midi thread/issue, I can report that CP 11.0.0-alpha.1 along with a new adafruit_usb_host_midi.py does work with my un-simulated DM6! So onward with my project!

    And thanks to y'all for moving this forward!!

    (This, after 2 trips to the public library to download stuff - no internet here except on my phone! :-) )

  21. modified the milestones: 10.x.x, 11.0.0 on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions