This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MAC address randomly set to 00:00:00:00:00:00

Hello,

I do migration from SDK11 to SDK12 (S132-SD-v2.0.1 to S132-SD-v3.1.0) and my device (nRF52-DK) randomly got a MAC of 00:00:00:00:00:00.

Helped by the migration document, I configure random private non resolvable MAC address with:

#define BLE_GAP_PRIVATE_ADDR_CYCLE_INTERVAL_S (15 * 60)
sd_ble_gap_privacy_set(&(ble_gap_privacy_params_t) { 
	.privacy_mode = BLE_GAP_PRIVACY_MODE_DEVICE_PRIVACY,
	.private_addr_type = BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE,
	.private_addr_cycle_s = BLE_GAP_PRIVATE_ADDR_CYCLE_INTERVAL_S,
	.p_device_irk = NULL
});

This erroneous MAC address prevent device detection from Apple iphone/ipod.

Moreover, the MAC address seems to change after (during?) each connection !?

Do you see my mistake? Can someone help me?

Thanks!

Related