Ok, maybe I’m completely off in my expectations. Or it’s related to the issues with Apple devices. Or it’s something which works on Pi3B and not on Pi4B.
I want to plug USB-MIDI devices on my Pi and use my Patchbox setup as a kind of Bluetooth hub.
A bit like the WIDI Uhost. Or like a BLE MIDI dongle (Yamaha MD-BT01, WIDI Master, WIDI Jack…). Or like a BLE MIDI controller (Sensel Morph, Artiphon Orba, ROLI Lightpad, ODD Ball…). Or even like an Apple device in “Peripheral” mode (say with AC Sabre).
That’s probably too much to ask…?
Expected behaviour:
Making the Patchbox device Bluetooth discoverable makes it available in the list of Bluetooth MIDI devices in AUM
on my iPad Pro or in Audio & MIDI Setup
on my MacBook Air.
Observed behaviour
Pressing the button for 1s while in MODEP, the LEDs blink for 180s and nothing new appears in lists of Bluetooth MIDI devices.
Setup
Latest Patchbox release on a Raspberry Pi 4B (4GB) with the Pisound HAT.
Bluetooth Status
(via patchbox app on the Pi)
bluetooth_supported=1
bluetooth_service_active_state=active
bluetooth_service_sub_state=running
bluealsa_service_active_state=active
bluealsa_service_sub_state=running
hciuart_service_active_state=active
hciuart_service_sub_state=running
bluetooth_soft_blocked=no
bluetooth_hard_blocked=no
And…
patch@patchbox:~ $ sudo systemctl status pisound-ctl
● pisound-ctl.service - Bluetooth service for Pisound companion app.
Loaded: loaded (/lib/systemd/system/pisound-ctl.service; enabled; vendor pres
Active: active (running) since Wed 2021-10-06 03:11:28 BST; 6h ago
Main PID: 441 (pisound-ctl)
Tasks: 14 (limit: 4915)
CGroup: /system.slice/pisound-ctl.service
├─ 441 /usr/bin/pisound-ctl
├─1289 /bin/sh /usr/bin/mec /etc/mec-blokas.json
├─1293 osc2midi pisound-ctl 127.0.0.1 40436
└─1295 mec-app /etc/mec-blokas.json
Oct 06 03:12:02 patchbox pisound-ctl[441]: mec api initialise
Oct 06 03:12:02 patchbox pisound-ctl[441]: mecapi_proc start
Oct 06 03:12:02 patchbox pisound-ctl[441]: MecApi::MecApi
Oct 06 03:12:02 patchbox pisound-ctl[441]: MecApi_Impl::init
Oct 06 03:12:02 patchbox pisound-ctl[441]: KontrolDevice initialise
Oct 06 03:12:02 patchbox pisound-ctl[441]: KontrolDevice::init
Oct 06 03:12:02 patchbox pisound-ctl[441]: mec_app running
Oct 06 03:12:02 patchbox pisound-ctl[441]: kontrol device : listening on 6050
Oct 06 03:12:02 patchbox pisound-ctl[441]: KontrolDevice::init - complete
Oct 06 03:12:05 patchbox pisound-ctl[441]: KontrolDevice::new client 127.0.0.1 :
Relatedly:
patch@patchbox:~ $ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset
Active: active (running) since Wed 2021-10-06 03:11:35 BST; 6h ago
Docs: man:bluetoothd(8)
Main PID: 634 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
CGroup: /system.slice/bluetooth.service
└─634 /usr/lib/bluetooth/bluetoothd
Oct 06 03:11:35 patchbox systemd[1]: Starting Bluetooth service...
Oct 06 03:11:35 patchbox bluetoothd[634]: Bluetooth daemon 5.50
Oct 06 03:11:35 patchbox systemd[1]: Started Bluetooth service.
Oct 06 03:11:35 patchbox bluetoothd[634]: Starting SDP server
Oct 06 03:11:35 patchbox bluetoothd[634]: Bluetooth management interface 1.18 in
Oct 06 03:11:35 patchbox bluetoothd[634]: Sap driver initialization failed.
Oct 06 03:11:35 patchbox bluetoothd[634]: sap-server: Operation not permitted (1
Oct 06 03:11:35 patchbox bluetoothd[634]: Endpoint registered: sender=:1.12 path
Oct 06 03:11:35 patchbox bluetoothd[634]: Endpoint registered: sender=:1.12 path
Oct 06 03:11:35 patchbox bluetoothd[634]: Failed to set privacy: Rejected (0x0b)
patch@patchbox:~ $ uname -a
Linux patchbox 5.10.63-v7l+ #1457 SMP Tue Sep 28 11:26:14 BST 2021 armv7l GNU/Linux
Comparison
I notice few differences from what @Giedrius had posted in March:
The sender
is different (1.12 with empty path instead of 1.18 with a path).
The main difference, though, is that I’m using third-party apps Apple devices instead of the first-party app on Android.
So…
- Would a “BT discoverable” Patchbox setup show up as a Bluetooth MIDI device on an Android device?
- How about a Windows machine?
- Any other approach would allow me to use the Pi as a kind of Bluetooth MIDI hub/host/patchbay?