Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Advanced users • Re: Set BLE scanning interval/window

$
0
0
When the connect call returns positive, am i effectively connected, or is this a "start of connection" process notification? I can see in bluetoothctl that at that moment it also says connected there.
When connected it is the connection interval that matters. In simple terms while connected this is period when both devices wake up and check for data that the other side wants to send. if there is data, more packets can be sent in same connection interval (as long as they fit). The interval is negotiated when connection is created, both sides can suggest some value and the other side may accept it. It can also be changed during the connection lifetime. Shorter interval means better latency, higher power drain, not necessarily higher throughput. Typically it starts with short interval and after some time (of possibly idle connection) longer interval can be negotiated.

Scanning interval/window is only used when searching for devices = searching for advertising packets of devices around. If window is too small part of the scan interval, there is higher chance to miss advertising packets, but it saves power and also will not block other communication if there are already other connections established to other devices.

Statistics: Posted by fanoush — Mon Mar 31, 2025 3:27 pm



Viewing all articles
Browse latest Browse all 8013

Trending Articles