Scan low energy Bluetooth advertisements, channel information or sample

I wrote an app using bluez that scans BLE ad data. The app does not currently accept any advertising messages.

For advertisements, BLE sends messages using 3 channels, which are 37, 38 and 39. Each uses a different frequency. When the application receives data, I would like to be able to determine on which channel the data was received. If this is not possible, is it possible to force low energy scanning on one channel or a subset of the three channels.

+3


source to share


1 answer


The le_set_advertising_parameters_cp structure contains a channel_map;

if this bit is set to 1 channel 37, and if the bit is set to 2



channel 38 is used, and if bit is set to 4 channels 39, and if bit

set to 7, all channels enabled, more details on page 1058 in spec4.0

+1


source







All Articles