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

ESP32 BLE support #8

Open
Marc12O opened this issue May 31, 2024 · 15 comments
Open

ESP32 BLE support #8

Marc12O opened this issue May 31, 2024 · 15 comments
Assignees

Comments

@Marc12O
Copy link

Marc12O commented May 31, 2024

Heltec WiFi LoRa 32 V3 board, the latest V3.1 board, has no discoverable Bluetooth, with RNode firmware 1.72

On my phone, when trying to add a BT device and pair it, nothing shows up, I did activate BT with rnodeconf -b and -p

Other boards like TTGO work fine

The rest of functionality works fine, e.g. USB connection, LoRa :-)

Thank you for RNode!

2024-05-31 11 03 38

2024-05-31 11 03 44

@jacobeva
Copy link

From looking at our codebase currently, it looks to me that this board uses BLE, but there is no driver written for it yet on ESP32 platforms.

@jacobeva jacobeva changed the title Heltec WiFi LoRa 32 V3 board, V3.1 has no discoverable Bluetooth, firmware 1.72 ESP32 BLE support May 31, 2024
@jacobeva
Copy link

As of current I do not possess any of these boards, or any ESP32 device which has BLE capability. You are welcome to attempt the implementation of this feature yourself (and I will provide you direction). If not, a hardware donation would allow me to implement it when I have time :)

@Marc12O
Copy link
Author

Marc12O commented Jun 3, 2024

Thank you!

@jacobeva
Copy link

jacobeva commented Jun 8, 2024

A board is on its way to me, @Marc12O is aware of this.

@jacobeva jacobeva self-assigned this Jun 10, 2024
@jacobeva
Copy link

The board arrived a couple days ago. Development will begin when I have time.

@jacobeva jacobeva changed the title ESP32 BLE support Heltec LoRa 32 BLE support Jul 11, 2024
@jacobeva jacobeva changed the title Heltec LoRa 32 BLE support Heltec LoRa 32 V3 BLE support Jul 11, 2024
@jacobeva
Copy link

jacobeva commented Aug 2, 2024

Progress is being made on this front, I have just managed to get a basic connection working over BLE to my computer. Now to iron out bugs and get serial working properly...

@jacobeva jacobeva changed the title Heltec LoRa 32 V3 BLE support ESP32 BLE support Aug 21, 2024
@jacobeva
Copy link

jacobeva commented Aug 21, 2024

My changes have been pushed to the esp32-ble branch on this repo. For anyone who may have time, testing would be appreciated. Currently there's a crash which occurs after some time when receiving / sending packets, probably memory related. Also, the throughput is bottlenecked by BLE quite heavily, I will work on that also.

https://github.com/liberatedsystems/RNode_Firmware_CE/tree/esp32-ble

@macvenez
Copy link

macvenez commented Sep 1, 2024

Hi, I'm trying to enable ble, I checked out this branch, compiled and uploaded it (thanks to your help in the other discussion :-) ), anyway when the device boots up I start scanning from my phone and nothing shows up as bluetooth device. Do I have to enable it from the device somewhere?
Still thanks for these sunday tests

@jacobeva
Copy link

jacobeva commented Sep 1, 2024

rnodeconf -b /dev/ttyUSB0 to enable bluetooth :)

@jacobeva
Copy link

jacobeva commented Sep 1, 2024

You need to run rnodeconf -p /dev/ttyUSB0 in order to enable pairing also.

@macvenez
Copy link

macvenez commented Sep 2, 2024

Thanks, that worked on the device and I managed to connect it.
The issue now is I can't connect to the rnode device from the sideband app on Android.
The device is successfully paired but it won't connect to the phone (and app) when starting sideband, it says "starting rnode" but the device then doesn't connect...

EDIT: I followed this guide from unsigned.io if it may help

@jacobeva
Copy link

jacobeva commented Sep 2, 2024 via email

@macvenez
Copy link

macvenez commented Sep 2, 2024

Alright, that's what I was missing then, thanks!
How are you testing ble connectivity?

@jacobeva
Copy link

jacobeva commented Sep 2, 2024 via email

@jacobeva
Copy link

jacobeva commented Oct 3, 2024

Mark actually beat me to it on this one, see here. This will be merged into the CE repo soon.

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

3 participants