On Thu, Mar 9, 2017 at 8:56 AM, Szymon Janc <[email protected]> wrote:
> Hi,
>
> On 9 March 2017 at 02:52, Christopher Collins <[email protected]> wrote:
>> 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.
>
> There is FICR register in nRF5X that can be used as a permanent source
> for static random
> address (it is basically a random number so we would still need to
> mask bits for proper static
> random address). The thing is that there is no standard HCI command
> for reading static
> random address from controller. So we would need to have vendor
> command for this or
> use global for time being.

I think, there is a use case to utilize the Nordic's random static
(FICR::DEVICEADDRTYPE = 1) device address to use in advertisement
packet. I was wondering, where should I add (if agreed) these APIs
(say, nrfxx_get_devaddr_type(), nrfxx_get_devaddr(), nrfxx_get_devid() ) ?

Comments please.

Thanks,
Amit

Reply via email to