Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bluetooth 4.0 scan response

What exactly is a BLE scan response packet?

Since there is almost nothing to be found online, we would like to now this.

Does a scan response packet, respond on a device scan or is it like the advertisement packet sent every x seconds?

like image 578
barry007 Avatar asked Aug 06 '14 11:08

barry007


People also ask

What is scan response in BLE?

A BLE scan response is the packet that is sent by the advertising device (peripheral) upon the reception of scanning requests (i.e. yes, it is a response to a device scan). The scan response usually has more data than the advertising packets.

What is a scan response?

When a scanner receives an advertising packet from an advertising device, it has the option to request additional data through the use of an active scan. The advertising device can then reply with a different thirty-one byte packet known as a scan response.

How often does Bluetooth scan?

To get at least 1 response from a Bluetooth device that is in a low power mode takes 1.28 seconds, so inquiry time is in multiples of that period up to a maximum of 61.44 seconds (48 periods), so the time range is 1 (1.28 seconds) to 48 (61.44 seconds).


2 Answers

A BLE scan response is the packet that is sent by the advertising device (peripheral) upon the reception of scanning requests (i.e. yes, it is a response to a device scan). The scan response usually has more data than the advertising packets. In other words, central devices send scan requests to the advertising device in order to get additional user data through the scan response. Please also note that scan responses are considered to have fixed 'static' data relative to the more dynamic advertising data.

Advertising packets and scan response share the same format, and are transmitted over the same three physical channels (they are both sent as advertising events), but are otherwise two different things.

For more information, I recommend reading about scan response packets in the SIG's core specification found here.

I hope this helps

like image 53
Youssif Saeed Avatar answered Oct 12 '22 02:10

Youssif Saeed


An important addition to yousif saeed's answer:

According to the Bluetooth 4.x specification, Peripheral devices accepting Scan Requests,

  • Must advertise this by using a specific Advertising Type value in the protocol header.
  • Must use advertising intervals of equal or bigger than, at least, 100 ms, so that the Central/Peripheral devices can exchange the Scan Request/Response packets in the time between two consecutive advertising packets (advertising interval).

Keep in mind, also, that depending on your particular hardware platform and Bluetooth Low Energy software stack,

  • You may find that a peripheral device accepting Scan Requests is non connectable, that is, may be limited to behave as a pure beacon (connection-less).
like image 24
jose.angel.jimenez Avatar answered Oct 12 '22 02:10

jose.angel.jimenez