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

  • Hi

    Sorry to be a pain, but I still can't get it to compile :(

    I meant the top example folder, including the main.c file, the sdk_config.h file and all the project files. I tried to piece together your project myself, but as I fix one error a new one pops up (probably because I have the wrong config file, or the wrong SDK version).

    As an example, see the following project:
    ble_app_hrs.zip

    Then you just have to copy that folder into one of the SDK example folder and the project will compile.

    Also, can you let me know which version of the SDK you are using?

    Best regards
    Torbjørn

  • I will check this out. I am using SDK v12.2 SES. Also I am using PCA 10028 and not PCA 10040. Can u please clarify the last thing you mentioned above. U mean I move this entire zipped folder into the ppi example folder which is my project?

    Thanks!!!

  • Hi

    Sorry, I explained a bit poorly. I mean that if you zip your entire example folder then I can just move it into my SDK and make it work. You don't have to move anything.

    I expect that you have a folder that looks something like this: \nRF5_SDK_12.2.0\examples\peripheral\my_example\

    In this case you should just zip the entire 'my_example' folder (or whatever you have called it), and send that to me. Then I can unzip it into my own SDK examples folder and all the references should work.

    Best regards

  • Hi, You can find the zipped folder at the top.

    Regards Raghav

  • 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

Related