Hi Pritish,

On Wed, Mar 08, 2017 at 02:47:01PM -0800, Pritish Gandhi wrote:
> So it seems like the nrf52dk should have a RANDOM STATIC address which
> should be programmed once in the hardware. However I'm not able to read
> that address from the host.
> Would appreciate any help.

You can configure the device with a random static address using this
function:

    int ble_hs_id_set_rnd(const uint8_t *rnd_addr)

(http://mynewt.apache.org/latest/network/ble/ble_hs/ble_hs_id/functions/ble_hs_id_set_rnd/)

The argument that you pass to this function would be the address
that was preprogrammed into the board.  I'm afraid I am not sure how to
read this preprogrammed address out of the nRF hardware.

> On Wed, Mar 8, 2017 at 1:48 PM, Pritish Gandhi <prit...@aylanetworks.com>
> wrote:
> > I have a bunch of nrf52dk EVBs that I'm running the sample bleprph app on
> > and I noticed that all the device seems to have the same BD_ADDR (All
> > 0x0a's). Doesn't each device need to have a unique BD_ADDR and shouldn't
> > that come from the BLE controller?
> > I see that the bls_hs_startup_read_bd_addr() always returns with a BD_ADDR
> > of all 0xa's. Does that mean that this device requires us to self program
> > the BD_ADDR?

The only way to change the device's public address (BD_ADDR) is by
hardcoding it in main.  This is not a great solution, so we'll
definitely need to add support for reading the public address from flash
at startup.

Chris

Reply via email to