Dear all,
Greetings!!!
I am using the NRF24LE1E module. I want to pair my device with host using a button. Button is available on device side. Please help me to do it. Please share the solution links related to this task.
Dear all,
Greetings!!!
I am using the NRF24LE1E module. I want to pair my device with host using a button. Button is available on device side. Please help me to do it. Please share the solution links related to this task.
Hi,
If you look at "gzll_device_w_dynamic_pairing" example in nRFgo SDK, these two function calls are what requests the pairing procedure:
// Send "system address request". Needed for sending any user data to Host.
gzp_address_req_send();
// Send "Host ID request". Needed for sending encrypted user data to host.
id_req_status = gzp_id_req_send();
}
// If waiting for Host to grant or reject ID request
if(id_req_status == GZP_ID_RESP_PENDING)
{
// Send new ID request for fetching response
id_req_status = gzp_id_req_send();
}
Note that the above makes use of the encrypted pipe, which is restricted to only one device on the host side. For unencrypted pairing, only call the "gzp_address_req_send()" function (remember to check the return value).
Kind regards,
Håkon
Hi,
If you look at "gzll_device_w_dynamic_pairing" example in nRFgo SDK, these two function calls are what requests the pairing procedure:
// Send "system address request". Needed for sending any user data to Host.
gzp_address_req_send();
// Send "Host ID request". Needed for sending encrypted user data to host.
id_req_status = gzp_id_req_send();
}
// If waiting for Host to grant or reject ID request
if(id_req_status == GZP_ID_RESP_PENDING)
{
// Send new ID request for fetching response
id_req_status = gzp_id_req_send();
}
Note that the above makes use of the encrypted pipe, which is restricted to only one device on the host side. For unencrypted pairing, only call the "gzp_address_req_send()" function (remember to check the return value).
Kind regards,
Håkon