Hi JRs:
如下图里的信息是我用 苹果手机的 eBeacon AP 搜索到的附件 Beacon 设备
请教下,红框里的 ID 值是哪来的?是什么 ID?
谢谢
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
UUID可以直接填充到adverdata里,也可以根据代码设计,更新并填充给GAP层发送出来。一般一家公司beacon产品的UUID是通过一个算法计算出来,填充到广播包里。比如在TI 的例程里,是通过以下函数填充的:
static void MicroEddystoneBeacon_initUID(void)
{
// Set Eddystone UID frame with meaningless numbers for example.
// This need to be replaced with some algorithm-based formula
// for production.
eddystoneUID.namespaceID[0] = 0x00;
eddystoneUID.namespaceID[1] = 0x01;
eddystoneUID.namespaceID[2] = 0x02;
eddystoneUID.namespaceID[3] = 0x03;
eddystoneUID.namespaceID[4] = 0x04;
eddystoneUID.namespaceID[5] = 0x05;
eddystoneUID.namespaceID[6] = 0x06;
eddystoneUID.namespaceID[7] = 0x07;
eddystoneUID.namespaceID[8] = 0x08;
eddystoneUID.namespaceID[9] = 0x09;
eddystoneUID.instanceID[0] = 0x04;
eddystoneUID.instanceID[1] = 0x51;
eddystoneUID.instanceID[2] = 0x40;
eddystoneUID.instanceID[3] = 0x00;
eddystoneUID.instanceID[4] = 0xB0;
eddystoneUID.instanceID[5] = 0x00;
}