3-带CTE蓝牙广播包的接收
环境准备
环境准备
- AD fmcomms5 + Xillinx zc706开发板
- Analog Devices ADALM-Pluto Radio
- MATLAB(预装上面两个硬件的支持包,还有提示要安装的支持包,下面列举几个重要的)
- Communications Toolbox Support Package for Xilinx Zynq-Based Radio
- Communications Toolbox Support Package for Analog Devices ADALM-Pluto Radio
- Communications Toolbox Library for the Bluetooth Protocol
蓝牙接收端收包
蓝牙包的发送使用AD fmcomms5 + Xillinx zc706开发板配合通信工具箱中的蓝牙协议进行接收
接收端脚本
配置蓝牙包参数
配置PHY模式为LE1M,通过示例代码提供的helperBLEReceiverConfig()函数配置蓝牙接收机的参数
phyMode = 'LE1M';
bleParam = helperBLEReceiverConfig(phyMode);
prbDet = comm.PreambleDetector(bleParam.RefSeq,'Detections','First');
helperBLEReceiverConfig()
bleParam.Mode = phyMode;
accessAddHex = '8E89BED6'; % Access address value in hexadecimal
bleParam.AccessAddLen = 32; % Length of access address
bleParam.SamplesPerSymbol = 8; % Samples per symbol
bleParam.ChannelIndex = 37; % Channel index value in the range [0,39]
bleParam.CRCLength = 24; % Length of CRC
bleParam.HeaderLength = 16; % Length of PDU header
bleParam.CTELength