Commit Graph

64 Commits

Author SHA1 Message Date
alf45tar 3f9b48cb1a
Moved SERVICE_UUID and CHARACTERISTIC_UUID inside namespace to avoid conflicts 2021-12-08 12:51:48 +01:00
alf45tar f8236efa5f
Moved SERVICE_UUID and CHARACTERISTIC_UUID inside namespace to avoid conflicts 2021-12-08 12:49:56 +01:00
lathoub dbeadf5a7f events return a pointer to this for easy event chaining 2021-09-23 22:25:31 +02:00
lathoub 950ff4e219 updated parser for MultiPart SysEx
Thanks to @RobertoHE
2021-09-23 17:44:40 +02:00
lathoub e0afefb9a2 re-advertise after disconnect (ESP32 & ESP32_NimBLE) 2021-09-22 22:42:12 +02:00
Roberto b3df11a0ea Update Communication Parameters 2021-09-21 18:22:25 +02:00
Roberto 6ea32b340f Transmision power 2021-09-21 18:16:13 +02:00
RobertoHE f9ad1e5b83
Transmition speed Improved WriteNoResponse
Now it sends data to server in Write Without Response mode. This increase the transmission speed and it get adapted to MIDI over BLE protocol.
Some devices needs a first message with confirmation for clean security flags. After a connection or after an error, the first message is sended like Write (with response).
2021-09-21 17:39:06 +02:00
lathoub 6045d2270c setName 2021-09-19 16:48:20 +02:00
lathoub 3b08fec7da
remove duplicate end()
thanks @alf45tar for spotting!
2021-08-10 17:02:41 +02:00
lathoub 697e0d40b0
Delete BLE-MIDI_Client_ESP32.h
see PR #30
2021-08-06 09:12:51 +02:00
lathoub f1e0982e6b
Merge pull request #30 from RobertoHE/master
Client for BLEMIDI
2021-08-06 09:11:31 +02:00
RobertoHE 3c8f54c459
Create BLE-MIDI_Client_ESP32.h
For pull request only
2021-08-06 08:29:48 +02:00
RobertoHE c87819b42e
Delete src/hardware/src directory 2021-08-06 08:27:37 +02:00
RobertoHE ab1dd1567f
Create BLE-MIDI_Client_ESP32.h 2021-08-06 08:23:03 +02:00
RobertoHE ad26e7b4ed
Undo Changes for PullRequest
Conflict with other opened pull request
2021-08-06 00:00:04 +02:00
Roberto 31817fba8e Parser Upgraded 2021-08-05 21:31:42 +02:00
Roberto 586207d747 Some little modification in Scan times.
Removed a printf in Connect()
Removed avaliableSpace
2021-08-05 17:39:33 +02:00
RobertoHE 895089174b
Update and simplify connect()
(UNTESTED)
Connect() method is simplified. Only one client connection by object is allowed now. If any connection step fails during connection setup, this client is deleted and reset. This deleted client doesn't ocupe for NIMBLE_MAX_CONNECTIONS count now.
Some Serial.print() traces was commented.
Now NotifyCB() doesn't check space available in rx buffer.
2021-08-05 10:58:02 +02:00
Roberto 4e52f70062 Modified received(). Running Status and divided SysEx are accepted 2021-08-04 17:39:48 +02:00
Roberto 49f7ec93db Removed non-functional BLE-MIDI_Client_ESP32.h 2021-07-09 18:40:21 +02:00
Roberto 5f7d493acd Added characterisctic protecction in write(). Clean-up the code 2021-07-09 18:36:37 +02:00
Roberto 60cfe28c45 Merge branch 'master' of https://github.com/RobertoHE/Arduino-BLE-MIDI 2021-07-03 11:08:41 +02:00
Roberto b830648af4 Limpieza y estructuracion del codigo. Se han añadido defines al inicio del fichero para que modificar las caracteristicas de seguridad, nombre y parámetros de comunicacion. TODO: No depender del método read(), que salten los callback de manera automática 2021-07-03 11:08:22 +02:00
RobertoHE 65d96380b8 test 2021-06-08 16:12:04 +02:00
Roberto b8831e4d3e Reconnect mechanism done in avaliable funcion. Avaliable is called in MIDI.read() in funtional code. FIXED: Write method now works. TODO: Clear debug comments and structure the code. Change scanDone and doConnect global variables inside AdviceCB class. BUG: If input buffer is completly full it is not possible send or recive anything 2021-06-05 14:19:52 +02:00
Roberto 75069b93ea First stable client connection. TODO: autoReconnect and ConnectTo 2021-05-31 18:46:43 +02:00
lathoub aa0f6bc44a added end() method, stop'ping BLE 2021-05-28 21:06:07 +02:00
lathoub 4aee6708ca Windows connection to ESP32
Windows connection to ESP32, based on suggestion from @wakwak-koba (I get notes in the MIDIBerry input monitor using ESP32, but not using NimBLE ?? (MidiBle example)
2020-10-25 22:52:27 +01:00
wakwak_koba ab02fbc108 Fixed not being able to pair with Windows when using NimBLE
and, consideration for boards that don't implement the `LED_BUILTIN` constant
2020-10-23 08:12:52 +09:00
lathoub f274037f81 rename BLEMIDI to BLEMIDI_Transport & cleanup
- rename BLEMIDI to BLEMIDI_Transport (avoid class name collision)
- cleanup
2020-10-11 11:37:45 +02:00
lathoub 5f8a38a5b8 cleanup 2020-10-03 17:13:12 +02:00
lathoub ba7c598a52 complete send SysEx (over multiple packets)
Test multiple packets by sending sysex11 over a buffer of 5 bytes of more (change byte mTxBuffer[Settings::MaxBufferSize];)

Interesting edge cases are with buffer len: 5,7 and 12 (with sysex11)
2020-10-03 10:02:49 +02:00
lathoub 359c9acd22 added basic sysex (1 packet) + example 2020-10-03 06:19:37 +02:00
lathoub 700159ab93 BLE-MIDI => BLEMIDI in filenames 2020-10-03 04:20:53 +02:00
lathoub b22cc18fc0 from feat/2.0.0 2020-10-03 04:11:56 +02:00
lathoub 6eaf748522
fix bug that points to non-exiting file
Thank you @alf45tar for pointing this out
2020-01-05 16:55:32 -05:00
Arik Caspi 89731d5def Adding Support for BLE Midi Client
Currently library only support BLE Midi server
Adding the option connect as client
2019-12-21 13:01:41 +02:00
lathoub a23461e4f7 added midi-common submodule 2019-08-06 18:34:56 +02:00
lathoub 4daf0a477e removed submodule 2019-08-06 18:33:37 +02:00
lathoub 71a32806e1 abstract MIDI interface using submodule
1) abstract MIDI interface using submodule
2) modify ble_esp32 to abstract MIDI interface (renamed serialize to write)
3) fixed #include path
4) exmaple sends NoteOn/NoteOff and removed call to read();
2019-08-05 22:17:47 +02:00
Da CodeKid 79c7d4ec22
Fix sendChannelMessage Signature on SendNoteOn/Off
Fix sendChannelMessage call Signature on SendNoteOn & SendNoteOff functions
2019-02-18 14:35:25 -05:00
alf45tar e18a6fd005
Update Ble_esp32.h 2018-12-31 10:44:26 +01:00
Akihiro Komori 98cdddfb16 add BLE2902 2018-12-11 15:00:25 +09:00
lathoub 6cb35ccdea more parsing of messages 2018-11-11 08:58:28 -05:00
lathoub 26c4973e12 implemented parser for incoming messages 2018-11-11 08:49:56 -05:00
lathoub e91e4209b1 renamed receive -> read
similar to MIDI on Arduino by 47effects
2018-11-10 20:20:22 -05:00
lathoub 920fbe1644 cleanup 2018-11-10 20:07:47 -05:00
lathoub c3f40ace79 added virtual serialization methods
the serialization methods are the one that will send the MIDI buyes - either Serial, over AppleMIDI or BLE MIDI
2018-11-10 11:33:23 -05:00
lathoub 6c0b22e2ca abstract MIDI interface according to 47effects/midi 2018-11-04 08:41:54 +01:00