Hi ,I am now using nrf24lu1p and 51822 for communication, the use of Gazell for paired debugging, and now want to use the upper authorities to close the NRF24LU1P Gazell pairing function, how do I set?
Hi ,I am now using nrf24lu1p and 51822 for communication, the use of Gazell for paired debugging, and now want to use the upper authorities to close the NRF24LU1P Gazell pairing function, how do I set?
nrf24lu1p:
while(true)
{
switch(app_state)
{
// Active state dongle operation
case APP_ACTIVE:
// Run pairing library
gzp_host_execute();
if(hal_usb_get_state() == CONFIGURED)
{
// New pairing request received?
if(gzp_id_req_received())
{
if(EnablePairFlag)
{
// Grant all requests
gzp_id_req_grant();
}
else
{
gzp_id_req_reject();
}
}
// If "vendor specific" data received on USB
if(app_usb_out_data_ready)
{
switch(usb_out_buf[1])
{
case EnablePipeCmd:
{
LED =0;
EnablePairFlag = true;
EnablePipeFunc();
break;
}
case DisablePipeCmd:
{
LED =1;
EnablePairFlag = false;
DisablePipeFunc();
break;
}
default:
{
gzll_ack_payload_write(usb_out_buf, 17,NRFR_DEFAULT_PIPE); //TODO_XIAO
break;
}
}
app_usb_out_data_ready = false;
app_usb_awaiting_response = false;
}
nrf51822:
static void Earse_PipeHandle(void)
{
gzp_erase_pairing_data();
}
static void nRF_RepairHandle(void)
{
while(!system_addr_received)
{
system_addr_received = gzp_address_req_send();
nrf_delay_ms(3);
}
}
Thanks
What exactly did you try? If you reject pairing how could the nRF51 be paired ? Please post your code.
Have you made sure gzp_id_req_reject(); was called and you still able to pair ? Note that there is encrypted pipe and non-encrypted pipe. How did you check if you actually paired ? Note that gzp_id_req_reject() only rejects host ID, not the system address.