BLE-CC254x-1.4.2.2 主机模式扫描ibeacon广播包的demo有么?????扫描的ibeacon数据结构是怎么样的?????????
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.
static uint8 scanRspData[] = { // complete name 0x15, // length of this data GAP_ADTYPE_LOCAL_NAME_COMPLETE, 0x53, // 'S' 0x69, // 'i' 0x6d, // 'm' 0x70, // 'p' 0x6c, // 'l' 0x65, // 'e' 0x42, // 'B' 0x4c, // 'L' 0x45, // 'E' 0x42, // 'B' 0x72, // 'r' 0x6f, // 'o' 0x61, // 'a' 0x64, // 'd' 0x63, // 'c' 0x61, // 'a' 0x73, // 's' 0x74, // 't' 0x65, // 'e' 0x72, // 'r' // Tx power level 0x02, // length of this data GAP_ADTYPE_POWER_LEVEL, 0 // 0dBm }; // GAP - Advertisement data (max size = 31 bytes, though this is // best kept short to conserve power while advertisting) static uint8 advertData[] = { // Flags; this sets the device to use limited discoverable // mode (advertises for 30 seconds at a time) instead of general // discoverable mode (advertises indefinitely) 0x02, // length of this data GAP_ADTYPE_FLAGS, GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED, // three-byte broadcast of the data "1 2 3" 0x04, // length of this data including the data type byte GAP_ADTYPE_MANUFACTURER_SPECIFIC, // manufacturer specific advertisement data type 1, 2, 3 };
Beacon格式和广播包一样的,至于simple central就可以扫描到,如果不是定向广播。
你可以基于C:\Texas Instruments\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEBroadcaster 参考上面的VIKI的文档去做ibecaon。
是我理解错误了,我以为你要做ibeacon.
你有抓包文件吗?
你可以看一下下面的文档: