Hello,
I’d like to know default and max values for below variables.
I cannot find it in the documents.
Default max rx window size
Max rx window size value can be set by BLE_Set_RxWinSize_Max().
What means of the “instant_change_include” parameter in below function? How do I set it?
void BLE_Set_RxWinSize_Max(uint32_t max_rxWin, uint8_t instant_change_include)
Max “rx_win_size_disconnect” value in below function is same as #2’s max rx window size value?
void BLE_Set_RxWinSizeDisconnect(uint32_t rx_win_size_disconnect)
The default ble sleep duration is 30 seconds then the “maximum_value” below is 48,000. What is the max value can be set?
void BLE_Sleep_MaxDuration_Set(int32_t maximum_value)
Is there any problem in operation when advertising or connected if the ble sleep duration value is set to the maximum? If not, I want to set it to the maximum in order to minimize the current consumption. Does this make sense?
The supervision timeout is used to detect a loss in connection.
It is defined as the maximum time between two received data packets before the Connection is
considered lost.
Its value ranges between 100 milliseconds - 32 seconds in increments of 10 milliseconds.
Each physical link has a timer that is used for link supervision. This timer is used to detect physical link loss caused by devices moving out of range, or being blocked by interference, a device’s power-down, or other similar failure cases.
Using the “BLE_Set_RxWinSizeDisconnect(uint32_t rx_win_size_disconnect)” API, applications can set a desired Rx window size in us, so that when the Rx window is widened up to a size equal to or greater than this value, the link is lost by the stack.
So we could see they do have different definition for link loss.
There is no default maximum rx window size.
By using BLE_Set_RxWinSize_Max can be used to set Max time (unit =us and 32-bit count for max value. That means 2^32 *1us ).
What is the max value can be set with BLE_Sleep_MaxDuration_Set in numbers?
The RX window size depends on connection interval, slave latency and clock accuracy etc.
Minimum value is 14 us for this.
For the Max value for BLE_Sleep_MaxDuration_Set is 32-bit count. It means 2^32 * 625us.