Skip to content

bluetooth: host: sample applications can't set BT address w/o using an FS #7434

@mike-scott

Description

@mike-scott

Previous to commit d22b7c9, sample applications could use the bt_storage API to set the BT address. That API was removed eliminating functionality that can be useful.

Here are some use-cases:

  • Non-Nordic devices may not support a static internal private BT address
  • Using customized logic to establish BT addresses allows CI testing / management to establish pre-defined values for whitelists / blacklists, etc
  • As the BT address is directly translated into a portion of the IPv6 6lowpan address, we can customize the subnet used. Establishing subnetted networks during test (IE: custom 5th/6th octet values + 32 bit serial number value):
    BT Address can be hardcoded to D4:E7 + <32 bit serial # value>.

Example: Calculated 32-bit serial # b1830106 would translate to BT address: D4:E7:B1:83:01:06 which would translate to 6lowpan IPv6 address: fe80::d4e7:b1ff:fe83:106.

The 6lowpan gateway could use the fe80::d4e7/80 mask for networking instead of the typical fe80::/64 mask if desired.

Metadata

Metadata

Labels

area: BluetoothbugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions