bluetooth midi reconnection (pairing)

Posted on
  • Hi,
    I am trying to use the puck.js as a BLE midi device ( send and receive)
    I am connecting the device with a mac or iphone. The mac systems are not very friendly when it comes to connect a bluetooth midi device, aka you need to go in a menu to connect the device and if the connection get lost you have to redo the all the menu thingy.

    Apple documentation states that the device will reconnect itself automatically if the device accept pairing:­n/coremidi/midi_bluetooth/

    Is there anyway to use the BLEmidi module but to get the device get pairing also ( like when being HID for example)?

    thank you!

  • Yes - there are a few options, and one or other of them might work for you...

  • Thanks @Gordon !
    will look at it and report back.
    In the meantime I worked on a hot fix using applescript to automatically click the button "connect" if it appears in the bluetooth midi window ::)

  • I tried all the above, it worked as advertised but didn't resolved or permit the auto-connection ( the device now show in the main bluetooth menu but still need to get connected every time in the bluetooth audio midi setup windows). I assume its coming from the OS side more than the espruino itself.

    note: I had a weird behavior with NRF.setServices ( NRF.setSecurity({passkey:"123456", lesc:1, bond :1});)
    Where It asked for the passkey only a few restart after and then the Espruino Web IDE will throw random errors when trying to upload new code . had to perform a reset(); save(); to go back to normal.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

bluetooth midi reconnection (pairing)

Posted by Avatar for user155285 @user155285