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

Mesh SDK Beacon example not working?

I have problems getting the beacon example in the new mesh SDK v0.10.0 working. I invoke cmake with this command:

cmake -DTOOLCHAIN=gccarmemb -DPLATFORM=nrf51422_xxAC -DBOARD=pca10028 -DSOFTDEVICE=s130_2.0.1 ..

And program the device with these commands:

nrfjprog -f NRF51 --program ../../../external/softdevice/s130_2.0.1/s130_nrf51_2.0.1_softdevice.hex --chiperase --verify
nrfjprog -f NRF51 --program beaconing_nrf51422_xxAC_s130_2.0.1.hex --verify
nrfjprog -f NRF51 --reset

With J-Link RTT Viewer i can see the program is running fine, but it does not advertise anything.

I can get the light switching example work with the same commands, but not the beacon example.

Are there anybody else with the same problem? And am i doing something wrong or is there a bug in the program?

Parents
  • Hi Søren,

    You're right, there is a bug. In v0.10.0 we introduced completely new bearer layer and with it an API change that wasn't picked up in the example. You have to enable the advertiser explictly.

    To fix it, add the following to the beaconing/src/main.c:

    static void start_advertiser(void)
    {
        advertiser_enable(&m_advertiser);
    

    Thanks for reporting the issue. I'll report it internally and we'll get it fixed in the next release.

    Best,
    Thomas

Reply
  • Hi Søren,

    You're right, there is a bug. In v0.10.0 we introduced completely new bearer layer and with it an API change that wasn't picked up in the example. You have to enable the advertiser explictly.

    To fix it, add the following to the beaconing/src/main.c:

    static void start_advertiser(void)
    {
        advertiser_enable(&m_advertiser);
    

    Thanks for reporting the issue. I'll report it internally and we'll get it fixed in the next release.

    Best,
    Thomas

Children
Related