The sleeping time is automatically calculated depending on the advertising or the connection intervals, as far as there are no BLE events for the 68x to serve the device will be sleeping, if there are events to serve it will sleep and wake up automatically in order to serve them on time.
thank you for the fast response. So if I set a higher advertising interval e.g. 6sec it will sleep longer? Is ble_gap_adv_intv_set() the right function for this? Also why does it have a adv_intv_min and adv_intv_max?
Yes, as long as you set the advertising interval, the longer you will sleep, but there is a limitation of 8 seconds, for example if you set the connection or the advertising interval more than 8 seconds the device will wake up in 8 seconds to reload the "Timer1" and will sleep again, and yes the proper function to set the advertising data is the ble_gap_adv_intv_set.
The adv_min and adv_max are defined by the specification and provide a time span in order for the controller in order to decide the best advertising interval if its has additional activities to serve (a connection or multiple connections, etc).
嗨Firefox2005,
The sleeping time is automatically calculated depending on the advertising or the connection intervals, as far as there are no BLE events for the 68x to serve the device will be sleeping, if there are events to serve it will sleep and wake up automatically in order to serve them on time.
Thanks MT_dialog
Hello,
thank you for the fast response. So if I set a higher advertising interval e.g. 6sec it will sleep longer?
Is ble_gap_adv_intv_set() the right function for this?
Also why does it have a adv_intv_min and adv_intv_max?
嗨Firefox2005,
Yes, as long as you set the advertising interval, the longer you will sleep, but there is a limitation of 8 seconds, for example if you set the connection or the advertising interval more than 8 seconds the device will wake up in 8 seconds to reload the "Timer1" and will sleep again, and yes the proper function to set the advertising data is the ble_gap_adv_intv_set.
The adv_min and adv_max are defined by the specification and provide a time span in order for the controller in order to decide the best advertising interval if its has additional activities to serve (a connection or multiple connections, etc).
Thanks MT_dialog