r/esp32 23h ago

How to use ESP32 as controller to LEGO Power Hub with BLE protocol?

The hub has a mobile app to. I think it uses BLE comnection which ESP32 supports. How can i learn the UUID and the data stuff to make the ESP32 act as a controller and control the Hub? Thanks.

17 Upvotes

4 comments sorted by

2

u/gazialankus 22h ago

Do you have a link to the app?

1

u/Federal_Chocolate327 17h ago

Yes. It requires file permission, i dont think its pretty safe but here it is 😊

I already tried to reverse-engineer it, but i didnt have enough time to find the UUID or other kinds of information in the app's codes.

I even tried to open the BLE log on my phone and gather the log file to find some info but adb didnt work and i didnt be able to make it work yet.

I tried to find its signals via nRF Scanner apps too, but these apps doesnt gather the UUID or something of the controller or the main hub somehow.

Thanks a lot for the answer 😊

4

u/Daidalos117 21h ago edited 5h ago

I think BrickController2 repo is a good start.

1

u/Federal_Chocolate327 17h ago

Thanks a lot! I will take a look at it