TI中文支持网
TI专业的中文技术问题搜集分享网站

BLE协议栈中,GAP_ADDR_TYPE这四种类型分别对于什么地址,哪个对于MAC地址?这几种地址是什么一种关系?

addrType就是从机广播的地址类型

/** @defgroup GAP_ADDR_TYPE_DEFINES GAP Address Types
 * @{
 */
#define ADDRTYPE_PUBLIC               0x00  //!< Use the BD_ADDR
#define ADDRTYPE_STATIC               0x01  //!< Static address
#define ADDRTYPE_PRIVATE_NONRESOLVE   0x02  //!< Generate Non-Resolvable Private Address
#define ADDRTYPE_PRIVATE_RESOLVE      0x03  //!< Generate Resolvable Private Address
/** @} End GAP_ADDR_TYPE_DEFINES */

Yue TANG:

看蓝牙协议标准core 4.0

1.3 DEVICE ADDRESSDevices are identified using a device address. Device addresses may be eithera public device address or a random device address. A public device addressand a random device address are both 48 bits in length.A device shall contain at least one type of device address and may containboth.The public device address shall be created in accordance with section 9.2 ("48-bit universal LAN MAC addresses") of the IEEE 802-2001 standard (http://standards.ieee.org/getieee802/download/802-2001.pdf) and using a valid OrganizationallyUnique Identifier (OUI) obtained from the IEEE Registration Authority(see http://standards.ieee.org/regauth/oui/forms/ and sections 9 and 9.1 of theIEEE 802-2001 specification).The public device address is divided into the following two fields:• company_assigned field is contained in the 24 least significant bits• company_id field is contained in the 24 most significant bits

The random device address is divided into the following two fields:• hash field is contained in the 24 least significant bits, as defined in [Vol. 3]Part C, Section 10.8.2.3.• random field is contained in the 24 most significant bits, as defined in [Vol. 3]Part C, Section 10.8.2.2.

再看10.8

10.8 RANDOM DEVICE ADDRESSRandom device addresses are defined in the Link Layer section in [Vol. 6], PartB Section 1.3.For the purposes of this profile, the random device address may be of either ofthe following two sub-types:• Static address• Private address.The term random device address refers to both static and private addresstypes.The transmission of a random device address is optional. A device shall acceptthe reception of a random device address from a remote device.The private address may be of either of the following two sub-types:• Non-resolvable private address• Resolvable private address

赞(0)
未经允许不得转载:TI中文支持网 » BLE协议栈中,GAP_ADDR_TYPE这四种类型分别对于什么地址,哪个对于MAC地址?这几种地址是什么一种关系?
分享到: 更多 (0)