This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

S130 Example from git nRF51-be-app-hrs-s130 not working with scanning and advertising

Hi all,

I am not sure what to do now. I have been trying to get the s130 working with the device manager. I tried using github.com/.../nRF51-ble-app-hrs-s130 with sdks 7.2 and s130 of 0.9.alpha. I am using GCC for compiling. and eclipse for debugging.

I have got everything to compile and load up on pca10028 board. However, the program would not do anything. It would init the device manager and then get stuck somewhere. Where it is stuck i do not know. it does not seem to be throwing any assert error.

It seem to be only the peripheral side of thing. I say this because when i comment out the advertising start and program was able to run and connect to the other device. when advertising was only on it does not advertise any data that can be seen through the master control panel. and then when both of them are enabled it just stop no more connection to the other board.

Any thought on this?

  • @Hacsx: Have you made sure you have updated the include API header files for the S130 v0.9 ? Please be noted that the example on github is based on S130 v0.5. The new header files is available in the softdevice .zip file.

    Also you would need to uncomment those call for sd_ble_enable() in ble_stack_init() in the example as well. sd_ble_enable() is required from S130 v0.9

    I'm testing here with the example after modification and it worked fine. I can see it connect to a peripheral and when connect to it I can see the heart rate value being updated.

  • I have updated the header files with that of 0.9.alpha. I have also enabled the sd_ble_enabled(). With out the enable the program is stuck in a infinite loop of ble event. It is pretty strange for me to have this happen. The changes to the code were take out the gpio setting and makes it bsp init, add the enable and ran it.
    I am not sure what could be different from yours.
    When my program connect to a peripheral fine if you disable the peripheral advertisment. But if that is on it does not seem to do anything.
    I saw that there is a new sdks 8.0 out and it has support for the s130 so I will give that a try.
    Also I have tried starting with the ble_app_hrs_c moved it over the s130 and it is working. Connected to the peripherals. However when I added the peripheral side to it, the same problem occurs.

  • I finally got it working. After changing to the new sdks 8.0 i modified the files and created new makefile for the gcc and it seem to be working now. Not really sure what is the cause of it.

Related