Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No data sent with ESP32 #290

Open
highway11 opened this issue Jul 4, 2022 · 7 comments
Open

No data sent with ESP32 #290

highway11 opened this issue Jul 4, 2022 · 7 comments

Comments

@highway11
Copy link

highway11 commented Jul 4, 2022

Has anyone successfully used this library with an ESP32 and Hairless Midi Serial Bridge (Windows)?
I have a very simple program to test, but it seems to be sending no data via the serial connection:

image

Is there something I need to be doing differently? Monitoring the serial port shows no data is being sent

@lathoub
Copy link
Collaborator

lathoub commented Jul 4, 2022

Hi @highway11
I use this lib with an ESP32, so it can work :-)

What I recommend:

  1. Serial will not work (serial is used for programming the ESP32), I use Serial2
  2. ESP32 uses 3.3V, not 5V (other resistor values, do a google search)
  3. use the customBaudRate example

Good luck!

@highway11
Copy link
Author

Thanks for the info @lathoub

I'm trying to send midi data over the same USB connection I use to program the ESP32, using the Hairless Midi Serial Bridge.
https://projectgus.github.io/hairless-midiserial/

1.When you say use Serial2, does that mean you are sending midi data out of a different connection then the standard USB on the ESP32?
2. I don't think voltage is an issue unless I'm using different pins/connection than the standard USB port?

@lathoub
Copy link
Collaborator

lathoub commented Jul 4, 2022

Totally confused. An ESP32 does not have a USB port (or are you talking about a USB in from of a ESP32 (eg DOIT ESP32 Devkit v1.0) that is used program it - that will not support MIDI)

@highway11
Copy link
Author

Yes, its a ESP32 Devkit sorry for the confusion. I was using RTPMidi to send midi commands via wifi, but I was hoping to switch to USB for it to be more robust connection. My idea was just plug in the ESP32 Devkit into my PC and have it send midi messages through the serial connection which Hairless Midi Serial Bridge is supposed to interpret and send out to another midi device

@highway11
Copy link
Author

Is there a reason it can't send MIDI commands over the same Serial/USB port I use to program it? I thought that was the purpose of the Hairless Midi Serial Bridge software, to monitor that serial port and redirect MIDI commands?

Failing that, is there another way you suggest connecting my ESP32 Devkit to a windows PC to send MIDI commands via USB? Do I need to create a 2nd USB connection from some other pins on the ESP32?

@lathoub
Copy link
Collaborator

lathoub commented Jul 5, 2022

Got it, unconfused now :-) I never tried it that way. Do you have a serial sniffer on your computers serial port? What does that show?

@highway11
Copy link
Author

That's the strange thing, the serial monitor shows no output whatsoever. I thought the MIDI.sendNoteOn(1, 127, 1); command should send some data through serial.

I also tested with an older Midi library (ardumidi) and it sends data through serial but it seems that the Hairless Midi Bridge doesn't know how to interpret that data, so I'm trying the more recommended library which is this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants