Page 99 of 195
AT.s LE Command Set v5.1.1b
Copyright © 2002-2021 BlueRadios, Inc.
200 S. Wilcox St., Unit 158 • Castle Rock, CO 80104 • USA • 303-957-1003 •
Advertising/Scan Response Data (ATSDSDLE)
SET ADVERTISING/SCAN RESPONSE DATA
Function:
This command is used to configure the module’s advertising and scan response data. The
advertising data is transmitted in an advertising packet at the advertising interval set in ATSDIT, the scan
response data will only be sent if requested by a device performing an active scan. For this reason, any
data that may change frequently should be put in the advertising data, while static data (such as the
name) should be put in the scan response data.
Advertising and scan response data is made up of one or more advertising data structures (AD
structures), as seen in the figure below. Each one consists of a different type of data which is defined by
the AD Type.
The full list of AD Types can be found here:
https://bluetooth.org/Technical/AssignedNumbers/generic_access_profile.htm
Descriptions of each AD Type can be found in the following document:
https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=282152
Data Checks:
All data is checked to make sure the ad structure lengths match up with the data length, and an
ERROR,01 will be generated if the data is determined to be invalid, but it is up to the user to make sure
the data meets the requirements of the BT5.0
specification.
The Flags AD structure (AD Type 0x01, 3 bytes) is required to be the first AD structure in the advertising
data. If it is not detected it will automatically be inserted at the front of the data. This does not apply to
scan response data.
Manufacturer Specific Data:
The examples using an Ad Type of Manufacturer Specific Data (0xFF) use a Company Identifier (CID) of
0x0085, which belongs to BlueRadios, Inc. This value can be used by our clients for Manufacturer
Specific Data, as long as the next byte in the data is 0xFF (as shown in the examples), which states that
the following bytes are BlueRadios Client Specific Data. However, we do recommend that our clients get
their own CID. The Bluetooth SIG gives a unique Company Identifier Code to each Bluetooth SIG