Chocolate Bluetooth

I saw this on eBay for £25 and instantly thought it might be worth a punt…

Should have probably looked up how to Bluetooth with a zynthian first.

Running ‘bluetooothctl’ on the command line seems to do diddly squat.

Reckon I can use this as a remote anyway?

There are two steps with BT midi. First, connect the BT to the device using the standard procedure like:
https://www.raspberrypi.org/forums/viewtopic.php?t=214373

Make sure you trust it. Then you will have created a MIDI device that will re-connect. From there you need to connect the stream to zynth, but you need to do it via the OS MIDI thru port like this:

root@zynthian:~# aconnect -l
client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
	Connecting To: 128:0
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
	Connecting To: 128:0[real:0]
	Connected From: 128:0
client 16: 'f_midi' [type=kernel,card=0]
    0 'f_midi          '
client 129: 'UD-BT01' [type=user,pid=695]
    0 'UD-BT01 Bluetooth'

Then you need to connect the device (the UDBT01 in this example) to the MIDI through port:

root@zynthian:~# aconnect 129 14

and you get this:

root@zynthian:~# aconnect -l
client 0: 'System' [type=kernel]
    0 'Timer           '
    1 'Announce        '
	Connecting To: 128:0
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
	Connecting To: 128:0[real:0]
	Connected From: 128:0, 129:0
client 16: 'f_midi' [type=kernel,card=0]
    0 'f_midi          '
client 129: 'UD-BT01' [type=user,pid=695]
    0 'UD-BT01 Bluetooth'
	Connecting To: 14:0

That should work. Unfortunately, it doesn’t re-connect the MIDI port on re-boot.

Of course, you could probably just connect the USB cable…

Gonzo

I am not even able to get that far… oh dear

systemctl enable --now bluetooth

This is what mine looks like

root@zynthian:~# systemctl status bluetooth
● bluetooth.service - Bluetooth service
   Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/bluetooth.service.d
           └─01-disable-sap-plugin.conf
   Active: active (running) since Mon 2022-03-21 04:50:23 GMT; 1 months 4 days ago
     Docs: man:bluetoothd(8)
 Main PID: 626 (bluetoothd)
   Status: "Running"
    Tasks: 1 (limit: 2061)
   Memory: 2.1M
   CGroup: /system.slice/bluetooth.service
           └─626 /usr/lib/bluetooth/bluetoothd --compat --experimental --noplugin=sap

Mar 21 04:50:22 zynthian systemd[1]: Starting Bluetooth service...
Mar 21 04:50:23 zynthian bluetoothd[626]: Bluetooth daemon 5.50
Mar 21 04:50:23 zynthian systemd[1]: Started Bluetooth service.
Mar 21 04:50:23 zynthian bluetoothd[626]: Starting SDP server
Mar 21 04:50:23 zynthian bluetoothd[626]: Excluding (cli) sap
Mar 21 04:50:23 zynthian bluetoothd[626]: Bluetooth management interface 1.14 initialized
Mar 21 04:50:23 zynthian bluetoothd[626]: Failed to set privacy: Rejected (0x0b)

what if you do dmesg | grep -i blue

dmesg | grep -i blue returns nothing