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

make BLE device name and SSID the same #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BluemarkInnovations
Copy link
Contributor

In the PR, the advertisement BLE name and the WiFi SSID have the same format.

  • use the last 4-chars of the UAS ID
  • if not available use the last 4-chars of the device MAC address
  • SSID can be override by the relevant parameter setting. In this PR, the BLE name is not updated in such a case.
  • both BLE and SSID start with RID_

snprintf(legacy_name, sizeof(legacy_name), "ArduRemoteID_%s", &UAS_ID[ID_len-ID_tail]);

//fall back options for BLE device name. If the uas_id is not set, use the 4 chars from the MAC address instead
if (strlen(g.uas_id) == 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs this PR first:
#82

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, so leave this PR as is. Unless you want have additional feedback.

@BluemarkInnovations
Copy link
Contributor Author

or PR #73

It is always good to start with the oldest PRs first,. On the other hand I should have referenced this PR #73 here .

@tridge
Copy link
Contributor

tridge commented Jan 10, 2023

@BluemarkInnovations I've updated the PR and force pushed, but I'm really not sure this is a good idea. What if the user sets the same UAS_ID on two aircraft? We'd be able to see both now, but could not if we force the same BT ID.

@BluemarkInnovations
Copy link
Contributor Author

@BluemarkInnovations I've updated the PR and force pushed, but I'm really not sure this is a good idea. What if the user sets the same UAS_ID on two aircraft? We'd be able to see both now, but could not if we force the same BT ID.

Not sure how the Android app works, but I assume it will show up as two devices. This week busy, but I can try to do some testing next week. I understand your point, but we are talking about a user that enters incorrect data i.e. is non-compliant.

The downside of the current existing implementation is that the used SSID name has no relation with the UAS_ID settings. I mean if you detect multiple RID SSIDs, you don't know which one to connect to if you want to change the settings of drone with UAD_ID A. So to me this PR has more benefits than drawbacks.

@BluemarkInnovations
Copy link
Contributor Author

@tridge I have tested it with two db201 modules setting it to the same UAS ID settings. In the OpenDroneID app they are detected as two separate RID devices.

@tridge
Copy link
Contributor

tridge commented Oct 16, 2023

In the OpenDroneID app they are detected as two separate RID devices.

and when you see then in WIFI tool for web status? They will show as the same
I like the fact that it is unique now

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