Hi everyone,
We develop the project on chip NRF52832 with SDK v14.0.
The chip in this project works in multirole mode. During the work it must scan the devices to acquire the brief real-time information from advertising data and to connect to them when needed.
But sometimes during the connection, characteristics’ discovery or reading / writing the information the scanning can stop working and the real-time-adv-data information from other disconnected slaves cannot be acquired anymore.
In the project the scanning is established at startup with the define SCAN_TIMEOUT = 0.
According to the manual the function “sd_ble_gap_connect()” stops the scanning during the connection establishment and (practically) returns it back only after connection success. So in case of the error the scanning can be not returned.
But practically the scanning the connection can be stopped working also in other cases when connection was lost and sending receiving air data was unsuccessful.
Due to this reason I must ask you some questions:
- Which procedure/function detects if the scanning works without checking absence of scan responding event for a long time.
- Which other functions except “sd_ble_gap_connect()” can stop the scanning?
- Is it possible to return the scanning when the function “sd_ble_gap_connect()” is busy or it can cause any error?