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

nRF51-DK PCA10028 Proximity example don’t seem to work

Has anyone been able to get the examples to work on PCA10028?

I went through the following steps:

Used nRFgo Studio to flash in s110_nrf51822_7.1.0_softdevice.hex Downloaded nRF51_SDK_7.1.0_372d17a_packs.zip and unpacked into Keil uVision5 From the Pack Manager, I created a copy of ble_app_proximity_s110_pca10028 I built the project and flashed it into the PCA10028

The nRF51-DK advertises as a Nordic Prox and shows the expected services. However when I try to write ‘1’ Immediate Alert Service, I don’t see the Alert LED blink as expected.

I also tried starting with ble_app_template_s110 and merging in the lbs service from here: github.com/.../nrf51-ble-app-lbs

Same behavior, the device advertises the service, but the ble_lbs_on_ble_evt callback function never seems to called.

Any suggestions as to what I’m missing? This worked fine for me on the older development kit.

Parents Reply Children
  • It looks like my problem is caused by bonding. I was using my own iOS app as the central.

    However when I switch to LightBlue for iOS, I get an “Bluetooth Pairing Request” pop-up.

    This pairing request seems to happen every time I connect to the perpherial. After pairing, the characteristic writes do work.

    Is there a way to disable bonding?

    I tried clearing this parameter in the prox example, but it still seems to want to pair/bond.

    define SEC_PARAM_BOND 0

  • The proximity service requires pairing, so it won't be a good proximity implementation if you disable pairing. However, it the pairing was the issue you may be able to get back to normal operation by going into the bluetooth setting on your iOS device and make sure that paired devices is emptied or at least that the proximity device isn't in there.

Related