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

ESC firmware corruption during settings write with esc-configurator #76

Open
regularexpression opened this issue Jan 15, 2023 · 12 comments

Comments

@regularexpression
Copy link

  1. Flashed Bluejay with the help of esc-configurator.com on Jhemcu gsf405a aio (Betaflight was installed).
  2. Flashed QuickSliver on flight controller.
  3. Tried to change motor direction with the help of esc-configurator.com.
  4. Three of four esc disappeared.
  5. Reflashed Betaflight.
  6. Blheli configurator could see all four esc but with corrupted firmware.
    corrupted-esc-example
  7. Force reflashed to blheli_s with Blheli configurator.
  8. All four esc appeared in esc-configurator.com.

This was tried 2 times.

@bkleiner
Copy link
Collaborator

what QS version did you run? 0.9.5?

@regularexpression
Copy link
Author

yes

@bkleiner
Copy link
Collaborator

does not appear to be a general issue, i just ran through a couple of scenarios.
might be related to the JHE board somehow. those don't have the best track-record.

@regularexpression
Copy link
Author

I'll try to investigate this problem more this week.

@voyn238
Copy link

voyn238 commented Jan 22, 2023

A similar thing happened to me with my Mobula 7 1S ELRS on their X12 board. ESC 2 got wiped out and it took me a bunch of tries via different methods to get BLHeli_S back on it, and then re-flashed to BlueJay. Scary! I thought my board was toast.

@bkleiner
Copy link
Collaborator

Please keep me up-to-date if you were able to gain more insight into what is happening here.
I can't seem to reproduce the issue with boards i have on hand here (crazybee, bfpv elrs, matekf405).

@regularexpression
Copy link
Author

Sorry for the delay. Had less time then expected.
Just tested four different crazybee_f4_elrs(x12, elrsf4 2g4, diamond and superbee), one crazybee_f4 (crazybee f4 pro + external elrs on uart) and two Jhemcu gsf405a(with different gyros).
All AIOs were powered by power supply with fixed voltage 4.0v (not battery).
Problem randomly appears only on jhemcu, but this time I can flash them via esc-configurator.com.
Problem appears only when QuickSilver flashed (v0.9.5, v0.9.5dev, v0.8.5-dev were tested).
With Betaflight v4.4.0 flashed problem doesn't appear (reflash from QS to BF and vice versa was done several times).
According to my observations during "Connect" button click in esc-configurator.com something goes wrong (not correct sound from esc).
Clipboard01

@regularexpression
Copy link
Author

regularexpression commented Jan 31, 2023

Also want to note that Jhemcu gsf405a and superbee f4 have the same esc S-H-50.

@regularexpression
Copy link
Author

And maybe someone with GOKU Versatile F405 1-2S 12A (FLYWOOF405S_AIO) could try to repeat the same steps, because this FC is very similar to jhemcu.

@banyaszg
Copy link

banyaszg commented Feb 6, 2023

I don't know whether there is a connection but in the case of my Beta F4 1S serial ELRS if I load the ESC info in the QS configurator, then it won't work. I receive only corrupt info. But for me the ESC works well.
(QS 0.9.5, ESC A-X-5, BJ 0.18.1)

@regularexpression
Copy link
Author

I've checked Betafpv f4 1S 5a aio (Spi elrs) on QS 0.9.5 (esc o-h-5) - no issue.

@bkleiner
Copy link
Collaborator

bkleiner commented Jun 27, 2024

i might have come across something. previously QS would feed the blheli response bytes as they came to the usb serial port, which, depending on the current state of the usb buffer, could lead to some time passing between bytes.
this might cause false positives on the esc timing out during the flash operation
074f1b5

i have now introduced some additional buffering which makes it so that the response is always sent in one go. if for nothing else, that seems to make the esc configurator much quicker to load the settings.

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

4 participants