Hi,
I am using nrf52 with S132 and sdk11. I want to implement the irk. Could you please suggest some example or tutorial? Reply ASAP.
Hi,
I am using nrf52 with S132 and sdk11. I want to implement the irk. Could you please suggest some example or tutorial? Reply ASAP.
You want to implement IRK? What do you mean? Could you elaborate a bit? Do you mean that you want to use random resolvable address? You can set this with sd_ble_gap_address_set(), see this.
Yes i want to use random resolvable address in relay example.Please explain in detail with sd_ble_gap_address_set() and sd_ble_gap_opt_set().
It should be explained by the API documentation. What exactly is the problem?
In the relay example the nrf52 is in scanning and advertising mode.My problem is I want that nrf52 should scan and advertise only those packets that I am sending from my android phone,but we want to implement this scenario with custom irk on nrf52 side. I am trying to set the irk in ble_gap_irk_t:
ble_gap_irk_t ble_gap_irk_nrf;// declared globally
ble_opt_t m_static_pin_option;//declared globally
in gap_params_init(); I have following implementaion:
uint8_t abc_key[BLE_GAP_SEC_KEY_LEN] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
ble_gap_irk_nrf.irk = abc_key;
m_static_pin_option.gap_opt.privacy.p_irk = &ble_gap_irk_nrf;
m_static_pin_option.gap_opt.privacy.interval_s = BLE_GAP_ADDR_CYCLE_MODE_AUTO;
err_code = sd_ble_opt_set(BLE_GAP_OPT_PRIVACY, &m_static_pin_option);
APP_ERROR_CHECK(err_code);
it gives me error like this:
..\..\..\main.c(761): error: #137: expression must be a modifiable lvalue
ble_gap_irk_zenlab.irk = abc_key;
How can we set the custom irk? i dont want to whitelist as of now but it should be resolvable with our custom irk.Any solution for this or any tutorial or some explanation will also help.
What if you do something like this instead:
ble_gap_irk_t ble_gap_irk_nrf = { .irk = { 0x0, 0x0, 0x0 /*...*/} };