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

How to implement timeslot observer based on ble_app_hrs?

Greetings,

I have a peripheral (S110) , when it is connecting to a central, it also need to scan another broadcaster (beacon) to obtain its RSSI and send to the central. So I tried to use the Nordic GitHub project Timeslot Oberver example on ble_app_hrs. So I copied the code from \nRF51-multi-role-conn-observer-advertiser-master\observer to \ble_app_hrs , and merged the two main() functions. But it didn't work. And I found if i commented advertising_start(), it can print advertising_report. And if i uncommented advertising_start(), it printed nothing. What's the problem and how can I do? Many thanks!

  • @adriand: Yeah, you are correct. I didn't noticed that the code in the git hub example already done the active scanning with timeslot. I think it should be fine to follow the code in the git hub example and implement it on the hrs example. The reason I recommend S130 is that the APIs for S130 and S110 is getting closer and closer. Soon the peripheral performance on S130 would be the same as the S110 and it's much easier to use the central role (scanner) on S130 than usng the timeslot. (Note that S110 v8.x maybe the last version of the S110).

    But it's nothing wrong if you want to use the S110 and the timeslot.

Related