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
  • Hi

    Could you please have a look at the code for the solar beacon: https://github.com/NordicSemiconductor/solar_sensor_beacon/blob/master/src/hal_radio.c

    It is also an implementation of BLE advertising using RADIO registers only.

    Best regards
    Torbjørn

  • Hi I have seen this code. But i coudn't find anything as such. If APP_ERROR_CHECK fails I won't have noticed it unless i am in debug mode. So i tried running in debug mode to see if all is ok. two ways i did it:

    1. Setting a breakpoint in the while loop and verify that it stops there
    2. in debug mode, after executing for a little while, pause execution and see where it is.

    On doing the second way mentioned above, it started in a paused state and then when i run it, i get a hardfault with no call stack. Whether this indicates too small main or may be stack size?

    However, when i set a breakpoint in while loop in the main, i got the hard fault before the breakpoint. But when i set some point very early in the main, it was okay then. But again i set it some time later but before the while only and agian it was a hard fault.

    Can you please comment on what's going wrong over here.

    And if its some problem with the stack size, how do i rectify it.

    You can refer to my updated main.c file attached at the top.

    Thanks!!!

Reply
  • Hi I have seen this code. But i coudn't find anything as such. If APP_ERROR_CHECK fails I won't have noticed it unless i am in debug mode. So i tried running in debug mode to see if all is ok. two ways i did it:

    1. Setting a breakpoint in the while loop and verify that it stops there
    2. in debug mode, after executing for a little while, pause execution and see where it is.

    On doing the second way mentioned above, it started in a paused state and then when i run it, i get a hardfault with no call stack. Whether this indicates too small main or may be stack size?

    However, when i set a breakpoint in while loop in the main, i got the hard fault before the breakpoint. But when i set some point very early in the main, it was okay then. But again i set it some time later but before the while only and agian it was a hard fault.

    Can you please comment on what's going wrong over here.

    And if its some problem with the stack size, how do i rectify it.

    You can refer to my updated main.c file attached at the top.

    Thanks!!!

Children
No Data
Related