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

S120 softdevice, ble_app_hrs_c how to exit from scan_start() to main

main.cI'm using S120 softdevice with nrf51822, I want to use S120 as central and peripheral devices. When I received my beacon data then switch to peripheral for advertise. When I got received beacon data from on_ble_evt then want to exit to main then run advertise. How to exit from scan_start() to main? I suceed to run central and peripheral device using S120 separately.

Parents
  • my project is like this. my device is first running scanning mode to scan my beacons, when the device detect a beacon, transmit beacon's RSSI, peer address and UUID to UART port. Then modify major and minor ID then advertise packet then return to scan mode again. my question, when I use S130 softdevice. recommand proper example code.

    • how and where can I get received beacon's RSSI, peer address and UUID?
    • how can I switch scan mode to advertise mode then return to scan mode?
    • can you make me sample code for me? I'm currently using uVision V4.54 and nRF51_SDK_9.0.0 I have PCA10000 and PCA10001 samples
Reply
  • my project is like this. my device is first running scanning mode to scan my beacons, when the device detect a beacon, transmit beacon's RSSI, peer address and UUID to UART port. Then modify major and minor ID then advertise packet then return to scan mode again. my question, when I use S130 softdevice. recommand proper example code.

    • how and where can I get received beacon's RSSI, peer address and UUID?
    • how can I switch scan mode to advertise mode then return to scan mode?
    • can you make me sample code for me? I'm currently using uVision V4.54 and nRF51_SDK_9.0.0 I have PCA10000 and PCA10001 samples
Children
No Data
Related