Coder Social home page Coder Social logo

Comments (11)

georaura avatar georaura commented on August 14, 2024 2

Hi Carlos,
I have the same problem. I resolve this, changing the BLEMidiClient.cpp file:

// I have an error on this line (null pointer, i think):
if(device.getServiceUUID().equals(BLEUUID(MIDI_SERVICE_UUID))) {

// Then I change for this code:

if (device.haveServiceUUID() && device.isAdvertisingService(BLEUUID(MIDI_SERVICE_UUID))) {

Please comment if you resolve your problem..

from esp32-ble-midi.

max22- avatar max22- commented on August 14, 2024 2

Hi everyone,
I have integrated the bug fix from @georaura into the library, and i have also implemented timestamps.
i have made a small release this morning, it is available in Platformio and Arduino IDE.
I will mark it as closed, but don't hesitate to contact me if you find some other bugs.
And happy new year !

from esp32-ble-midi.

georaura avatar georaura commented on August 14, 2024 1

Hi Maxime.
Merry chritsmas too !!
I'm using an HiLetgo ESP32 dev module to control an Avid Eleven Rack guitar effects connected through a midi BLE dongle (Doremidi model from Shenzhen Huashi Technology Company) . I send program change messages and with the code fix it works fine..
Thanks for the library...

from esp32-ble-midi.

carloslema avatar carloslema commented on August 14, 2024 1

@georaura I am going old school to control a TriAxis/2:90, Cmaj & Loop Switch I made. I am expanding forntoh/LcdMenu — although the 20x4 LCD is very limiting.

BLE pedal Board

from esp32-ble-midi.

max22- avatar max22- commented on August 14, 2024

Hi Carlos,
I am happy to see that it is useful for you !
I think the error is in this line :
BLEMidiClient.begin("YamahaBT01");
In fact, the parameter you give to the "begin" function is the name you want to give to your ESP, not the name of the device you want to connect to. My example wasn't very clear.
Can you try to uncomment the debugging line just below and send me the output ?

best regards
Maxime

from esp32-ble-midi.

carloslema avatar carloslema commented on August 14, 2024

Hi Maxime, Thanks for your response.

Yeah, I tried BLEMidiClient.begin("ESP32-BLEMIDI") before, and uncommenting the debugger — crickets.
Even with verbose debugging the console just prints, "Initializing BLE" — but nothing else.

BTW, I am using the Adafruit Huzzah ESP32.

Also, I have been using another script, sans a nice class, that connects and sends MIDI to the BT01 dongle — but packaging multiple MIDI packets is where I am running into issues —— and that's where I started to look for a better alternative, possibly yours.

best,
\ carlos

from esp32-ble-midi.

max22- avatar max22- commented on August 14, 2024

Do you use Arduino IDE or PlatformIO ?
Can you send me the full log of the serial console ?
(I have copy/pasted your code, and it works, it detects my guitar amplifier)
It's weird because the Adafruit Huzzah seems to have the same chip... (I have mainly tested my lib with my NodeMCU ESP32-S v1.1).

from esp32-ble-midi.

carloslema avatar carloslema commented on August 14, 2024

from esp32-ble-midi.

max22- avatar max22- commented on August 14, 2024

Hi Carlos,
I am interested by the other messages, can you send me the complete log you get in the serial monitor ?

from esp32-ble-midi.

max22- avatar max22- commented on August 14, 2024

Hi georaura,
thanks for your feedback, and merry christmas !
Can you tell me what esp32 board you are using, and what midi device ?

from esp32-ble-midi.

carloslema avatar carloslema commented on August 14, 2024

@georaura Thanks for the fix — Yes, indeed this works on the Adafruit HUZZAH ESP32.

Happy Holidays!

from esp32-ble-midi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.