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

Sniffer not functioning.

ppi.zipHi, I am using radio with ppi to advertize packets as shown in the mainc file attached. Even after allocating the access address of Bluetooth on line 196 as set_address0(0x8E89BED6); and advertizing channel selected as 37 as shown in lines 150-156 , my device doesn't show up on sniffer.

I even tried to replace the dongle considering it most likely to be hardware issue. But the problem still persists. main.c Can you please guide on this.

Thanks in advance!!ppi.zip

Parents Reply
  • Hi
    The first thing I spot with the debugger is that the code quickly gets stuck in the radio interrupt, which seems to get called over and over.

    I see that you set various events to generate interrupts in the NRF_RADIO->INTENSET register. In this case you should also have several code snippets in the interrupt to handle the various events. As it is now I can't see that you process other events than the END event.

    What you need is something like this...

    if(NRF_RADIO->EVENTS_READY != 0)
    {
      NRF_RADIO->EVENTS_READY = 0; 
      // Process the READY event
    }
    if(NRF_RADIO->EVENTS_END != 0)
    {
      NRF_RADIO->EVENTS_END = 0;
      // Process the END event
    }
    // And similar for the ADDRESS and PAYLOAD events
    

    Best regards

Children
No Data
Related