Skip to content

Bluetooth Flashing the Flight Controller #4391

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

Open
Witty-Wizard opened this issue Mar 19, 2025 · 6 comments
Open

Bluetooth Flashing the Flight Controller #4391

Witty-Wizard opened this issue Mar 19, 2025 · 6 comments

Comments

@Witty-Wizard
Copy link

Is your feature request related to a problem? Please describe

It would be convenient to flash flight controllers (FC) over Bluetooth directly from the Configurator

Describe the solution you'd like

Add a defined way to flash FC over Bluetooth in the Configurator

Describe alternatives you've considered

To use the Speedybee app, but requires a speedybee FC and works from mobile app only.

Other information

I have implemented BLE support in the dronebridge project in DroneBridge/ESP32#103. So I was looking to add BLE flashing aswell to this, but the configurator has to support that.

@haslinghuis
Copy link
Member

Have been working on this - but obvious not ready nor working.

  • transfer works - but my code does not erase or verify.
  • not sure if the command for putting the FC into DFU is processed correctly.
  • takes 30 minutes to transfer firmware but using gzip we could reduce this to about 10 minutes - but would need decompression support on the BLE host.

Alternatives

@Witty-Wizard
Copy link
Author

Have been working on this - but obvious not ready nor working.

  • transfer works - but my code does not erase or verify.
  • not sure if the command for putting the FC into DFU is processed correctly.
  • takes 30 minutes to transfer firmware but using gzip we could reduce this to about 10 minutes - but would need decompression support on the BLE host.

Alternatives

Where can I find the code for this, I would like to make my BLE stack compatible with this.

@haslinghuis
Copy link
Member

Did not know about DroneBridge - have used UAVmatrix with zerotier over LTE on RPi 3B+ with Navio2 flight controller using ArduPilot with QGC around 2018 but latency was around 100ms. Have not tried WBC hardware though.

Working to finish refactoring serial in #4413 but stuck on last commit and requires lot of testing all scenario's before I push the next one.

Using OTA or WiFi for flashing firmware is preferred.

Perhaps we can use ELRS hardware which already supports gzip but not sure ESP32 can hold such amount of data without pass-through using buffering. Otherwise would like to have a BF supported communications chip for new flight controllers.

@Witty-Wizard
Copy link
Author

What FC are you using for testing?

@haslinghuis
Copy link
Member

haslinghuis commented Apr 10, 2025

SPBE F405MINI or SPBE F722V3

Need to check HBRO KAKUTEH7

@Witty-Wizard
Copy link
Author

SPBE F405MINI or SPBE F722V3

Need to check HBRO KAKUTEH7

Hv they published how are they handling firmware updates through BLE, i could not find any where how they handled it

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

No branches or pull requests

2 participants