定频认证指导
进行 CE / FCC 认证的时候,会要求设备的无线信号工作在指定频率。本教程会指引你如何进行 Wi-Fi / 蓝牙相关的定频设置。
安装配置工具
请在待验证设备上执行以下命令:
# 禁用默认 brcmfmac 驱动程序
echo "blacklist brcmfmac" >> /etc/modprobe.d/blacklist.conf
# 下载 wl 工具
sudo wget -O /usr/local/sbin/wl https://dl.radxa.com/fix_freq_docs/wl
sudo chmod +x /usr/local/sbin/wl
# 安装 armel 依赖
sudo dpkg --add-architecture armel
sudo apt update
sudo apt install libc6:armel
# 以下工具用于rtl8723ds 模块
sudo wget -O /usr/local/sbin/rtwpriv https://dl.radxa.com/fix_freq_docs/rtwpriv
sudo wget -O /usr/local/sbin/rtlbtmp https://dl.radxa.com/fix_freq_docs/rtlbtmp
sudo chmod +x /usr/local/sbin/rtwpriv
sudo chmod +x /usr/local/sbin/rtlbtmp
替换专用固件
请在待验证设备上执行以下命令:
- AP6256
- AP6212
- AW-CM256SM
- RTL8723DS
sudo mv /lib/firmware/brcm/fw_bcm43456c5_ag.bin /lib/firmware/brcm/fw_bcm43456c5_ag.bin.bak
sudo wget -O /lib/firmware/brcm/fw_bcm43456c5_ag.bin https://dl.radxa.com/fix_freq_docs/ap6256/fw_bcm43456c5_ag_mfg.bin
reboot
sudo wl ver # 出现 WLTEST 字样,说明固件替换成功
sudo hcitool cmd 0x03 0x003 # 没有报错,说明蓝牙环境正常
sudo mv /lib/firmware/brcm/fw_bcm43438a1.bin /lib/firmware/brcm/fw_bcm43438a1.bin.bak
sudo wget -O /lib/firmware/brcm/fw_bcm43438a1.bin https://dl.radxa.com/fix_freq_docs/ap6212/fw_bcm43438a1_mfg.bin
reboot
sudo wl ver # 出现 WLTEST 字样,说明固件替换成功
sudo hcitool cmd 0x03 0x003 # 没有报错,说明蓝牙环境正常
sudo mv /lib/firmware/brcm/cyw43455.bin /lib/firmware/brcm/cyw43455.bin.bak
sudo wget -O /lib/firmware/brcm/cyw43455.bin hhttps://dl.radxa.com/fix_freq_docs/cm256/cyw43455-mfgtest-7.45.100.18.bin
reboot
sudo wl ver # 出现 WLTEST 字样,说明固件替换成功
sudo hcitool cmd 0x03 0x003 # 没有报错,说明蓝牙环境正常
sudo wget -O /lib/firmware/mp_rtl8723ds_config https://dl.radxa.com/fix_freq_docs/rtl87123ds/mp_rtl8723ds_config
sudo wget -O /lib/firmware/mp_rtl8723d_fw https://dl.radxa.com/fix_freq_docs/rtl87123ds/mp_rtl8723d_fw
reboot
在进行bt定频之前,需要先关闭 rtl8723ds-btfw-load.service 服务
sudo systemctl stop rtl8723ds-btfw-load.service
继续完成测试
请参考以下文档进行测试:
Wi-Fi RF Test Commands for Linux-v05.pdf
BT+RF+Test+Commands+for+Linux-v07.pdf
RTL8723DS 请参考以下文档进行测试
Realtek_linuxFixed Frequency Instruction Guide.pdf
MP tool user guide for linux20181108.pdf
注意事项
测试 Wi-Fi 时,需要关闭蓝牙:
sudo rfkill block bluetooth
sudo rfkill unblock wlan
测试蓝牙时,需要关闭 Wi-Fi:
sudo rfkill block wlan
sudo rfkill unblock bluetooth