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

bugfix BLE legacy advertisements broken #74

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

BluemarkInnovations
Copy link
Contributor

@BluemarkInnovations BluemarkInnovations commented Oct 2, 2022

In the current implementation, BLE4 legacy transmission work for about 30 seconds. Then it crashes and no BT4 legacy packets can be received anymore.

The "issue" seems to be caused the separate BLE legacy advertisement service for the BLE device name. This was also solved in this PR #26 but due to parallel code development at that time, this part wasn't included. The solution is to incorporate the BLE device name broadcast into the regular BT4 transmissions. Not sure what the underlying issue is, perhaps it is just a bug in the ESP/Arduino environment.

@BluemarkInnovations
Copy link
Contributor Author

@tridge I tested it again with the last master build. It fails detecting the Remote ID signals very soon. With my professional receiver it keeps receiving signals. So I guess it has to do with the BT4/5 stack of the phone that doesn't seem to be able to handle multiple BT4 advertisements (crashes). Your Samsung S10 does a better job. This PR is basically a work-around for phones with buggy BT4 implementation. As most phones don't have BT5 support, having a BT4 implementation that can be received my most phones is important.

@tridge
Copy link
Contributor

tridge commented Nov 8, 2022

I've fixed conflicts with previous PRs, and tested

@tridge tridge merged commit ccee9d7 into ArduPilot:master Nov 8, 2022
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

Successfully merging this pull request may close these issues.

2 participants