-
Notifications
You must be signed in to change notification settings - Fork 29
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
cannot connect to betaflight fcs #59
Comments
with log level DEBUG I get this output
|
Hello, I am having the same issue right now. For me, it works fine if I NOT set msp_override_channels_mask = 245760, but keep it at = 0. |
I think you probably had another issue. I could fix my issue with this PR: #60 The problem was that betaflight sent a message with payload size > 255 which msp could not handle. |
Mine crashes at: |
that should be fixed with my PR ;) |
Sadly it does not seem to fix it? Using your PR it processes the "jumbo" message but is stuck afterwards and does not continue.
|
hmmm, |
I get this
|
I did some force pushes. Can you post ur git hash? |
I checked out your repo with the one commit. |
that's what I am using too. You have to debug where this wrong 65535 size comes from. It should be 317. |
but it could be different for your betaflight version and settings. I am using betaflight 4.5 from github. |
I am using official Betaflight 4.4.3 on a SpeedyBee F405 V3 |
it would be nice if you can debug the problem and improve my PR |
do you have "msp_override_channels_mask" set to anything other than 0? |
I did not change that value |
try changing it. Mine is 245760. Thats what breaks it for me |
maybe its a betaflight bug and it outputs garbage in that case ^^ |
hmm looks like a betaflight bug? Can u add a debug output of the raw rx bytes and open an issue in betaflight github? |
I tried it using YAMSPY and that works fine 🤔 |
By the way, the Betaflight FC sends the FlightControllerIdentifier "BTFL", but in FirmwareVariants.hpp Betaflight is called "BAFL". Do you think this is a problem? |
I saw that too, I think it's a bug, but I did not see that it causes any problems besides displaying BAFL instead of BTFL. |
Where can I print the raw RX bytes? 🙈 |
U have to add debug prints in source code. See how the other debug messages are printed. |
Yeah but where do the raw RX bytes come in? What line? |
u can find it :) |
ok. does yours also not work with the msp_override_channels_mask set? |
I will try it when I need it :) |
is this the bytes?
|
yes, but the byte output from the problematic 116 message is not there. I have to work on other stuff now... |
ok I will try to find the issue, thanks! |
There were recent BF bugfixes related to MSP, such as betaflight/betaflight#12857 It would be good if you can test with BF 4.5 RC2 if the problem is still there. |
Ok. I will try. I just printed the bytes:
|
should be the payload length, 0 + 41 << 8 = 16640, that does not make sense. I also wonder why the debug message says |
Indeed, Betaflight 4.5 RC2 with your PR fixes the issue! |
ok, then it was a BF bug after all. |
yes, seems like it |
Betaflight 4.5 - Same issue here, how it can be fixed? |
I get this error
The text was updated successfully, but these errors were encountered: