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

s130 dual role example - event handling

Hello,

I'm developing device application where I need:

  • peripheral (advertising also when in connection)
  • central role
  • whitelisted connections
  • maybe some encryption

I started developing on PCA10028 board and as a based of a project I took the example described as "BLE Dual role application" (experimental_ble_app_s130_example_c_s130, sdk 8.1.1). While reading the code I see that there is no "standard" softdevice system nor ble event handling with handlers such as: softdevice_sys_evt_handler_set or softdevice_ble_evt_handler_set. Instead, every event is being handled in event_handle(..) function in main.

Questions:

  1. is this reliable solution for central and peripheral event hadling? Or it is just for experimental version until next s130 version?

  2. Why "standard" handlers were not used?

  3. Am I able to implement all of the features with s130 dual role that I described at the top of the message?

Cheers

Parents
  • Hi AdrianD,

    There are events in the central side that are not in peripheral side and vice versa. And some of them are common to both. As the name suggests, we are experimenting on the best way to handle the event which could be of any role.

    1. It is experimental version, ideally we would like to handle it in a standard way thoughtout but we are not there yet.

    2. because we are experimenting. It is not that its impossible.

    3)Yes you should be able to do it.

Reply
  • Hi AdrianD,

    There are events in the central side that are not in peripheral side and vice versa. And some of them are common to both. As the name suggests, we are experimenting on the best way to handle the event which could be of any role.

    1. It is experimental version, ideally we would like to handle it in a standard way thoughtout but we are not there yet.

    2. because we are experimenting. It is not that its impossible.

    3)Yes you should be able to do it.

Children
Related