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

Bluefruit Playground advertisements and Radio advertisements both using id 1 #11

Open
dhalbert opened this issue Apr 16, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@dhalbert
Copy link

@tannewt
@hathach
@ladyada

It looks like the Bluefruit Playground and Radio advertisements are both using manufacturer data advertisements with an id=1.

_MANUFACTURING_DATA_ADT = const(0xFF)
_ADAFRUIT_COMPANY_ID = const(0x0822)
_RADIO_DATA_ID = const(0x0001) # TODO: check this isn't already taken.

https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/eefeba8d64dfdae15a5469447664eea16d32816e/libraries/Bluefruit52Lib/examples/Peripheral/bluefruit_playground/bluefruit_playground.ino#L411-L423

/ Advertising with only board ID
  struct ATTR_PACKED {
    uint16_t mfr_id;
    
    uint8_t  field_len;
    uint16_t field_key;
    uint16_t field_value;
  } mfr_adv;

  mfr_adv.mfr_id = UUID16_COMPANY_ID_ADAFRUIT;
  mfr_adv.field_len = 4;
  mfr_adv.field_key = 1; // board id    // <---------------------------
  mfr_adv.field_value = USB_PID;

This is too bad. I think it's too late to change the Bluefruit Playground, because it's widely deployed, but maybe we should change Radio, in a major version change. Am I wrong?

We need to keep track of these, probaby in https://github.com/adafruit/bluetooth-low-energy

@hathach
Copy link
Member

hathach commented Apr 16, 2020

@dhalbert I think the board ID is OK, for both to include. Maybe we could add more keys to different between the two e.g Radio service and/or Sensor service etc.. The bluefruit app may need to role out a new update to filter the Radio service ?!!

@tannewt
Copy link
Member

tannewt commented Apr 16, 2020

I doubt many are using both the app and the Radio service at the same time. I'd just update Radio with a major rev and suggest people update it on all of their devices.

@kattni kattni added the bug Something isn't working label May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants