Gadget MIDI: host must configure MIDI output to reach board #1

Open
opened 2026-06-23 07:34:48 +00:00 by david · 0 comments
Owner

The f_midi gadget is correctly configured (in_ports=1, out_ports=1, linked to config). Board→host MIDI works (Tx bytes increase). But host→board Rx bytes stays at 0 regardless of MIDI sent from the host computer.

Symptoms:

  • /proc/asound/card2/midi0 shows Rx bytes: 0 even when host sends MIDI
  • midi-bridge reads from /dev/snd/midiC2D0 correctly but receives no data
  • Local UDP test to viz works — the chain from UDP → viz → router → matrix is functional

Likely cause:

  • The host computer's MIDI application (Pd/plugdata controller.pd) is not routing MIDI to the board's USB MIDI device
  • Or the host has not claimed the MIDI interface (driver issue)

Verification steps for host:

  1. Run lsusb on host — should show "Arduino Uno Q Audio Synth"
  2. Check MIDI devices on host — the board should appear as a MIDI port
  3. Configure Pd/plugdata MIDI output to use the board's MIDI device
  4. Send a note and check /proc/asound/card2/midi0 for non-zero Rx bytes
The f_midi gadget is correctly configured (in_ports=1, out_ports=1, linked to config). Board→host MIDI works (Tx bytes increase). But host→board Rx bytes stays at 0 regardless of MIDI sent from the host computer. **Symptoms:** - `/proc/asound/card2/midi0` shows `Rx bytes: 0` even when host sends MIDI - `midi-bridge` reads from `/dev/snd/midiC2D0` correctly but receives no data - Local UDP test to viz works — the chain from UDP → viz → router → matrix is functional **Likely cause:** - The host computer's MIDI application (Pd/plugdata controller.pd) is not routing MIDI to the board's USB MIDI device - Or the host has not claimed the MIDI interface (driver issue) **Verification steps for host:** 1. Run `lsusb` on host — should show "Arduino Uno Q Audio Synth" 2. Check MIDI devices on host — the board should appear as a MIDI port 3. Configure Pd/plugdata MIDI output to use the board's MIDI device 4. Send a note and check `/proc/asound/card2/midi0` for non-zero `Rx bytes`
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: david/uno-q-audio-synth#1