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

Difference between System Events and BLE events in S110?

In SDK source code of S110 SOftdevice, I'v found two events for which module is registered and waiting using "softdevice_sys_evt_handler_set" & "softdevice_ble_evt_handler_set". Both Events are coming from Softdevice(stack), can somebody please tell me what are these two different event types.

Parents
  • System events handled in the softdevice_sys_evt_handler_set function are events related to the non-radio portion of the SOC. Things like events generated by the NVMC (Non-Volatile Memory Controller) would fall into this category.

    Bluetooth Low Energy events are those related to the Bluetooth communications functions provided by the stack and radio. Things like connect, disconnect, packet received, packet transmitted etc.

    They probably could have been implemented in a single event handler, but that would take away from the clarity of a module design. For example if you were doing a design with the ANT protocol rather than BLE, your event handler would be cluttered with BLE events even though you don't use them.

Reply
  • System events handled in the softdevice_sys_evt_handler_set function are events related to the non-radio portion of the SOC. Things like events generated by the NVMC (Non-Volatile Memory Controller) would fall into this category.

    Bluetooth Low Energy events are those related to the Bluetooth communications functions provided by the stack and radio. Things like connect, disconnect, packet received, packet transmitted etc.

    They probably could have been implemented in a single event handler, but that would take away from the clarity of a module design. For example if you were doing a design with the ANT protocol rather than BLE, your event handler would be cluttered with BLE events even though you don't use them.

Children
No Data
Related