ZHCU913A September 2020 – October 2020 WL1801MOD , WL1805MOD , WL1807MOD , WL1831 , WL1831MOD , WL1835MOD , WL1837MOD
WiLink8 驱动程序随附了默认的 wl18xx-conf.bin 二进制文件。/lib/firmware/ti-connectivity/wl18xx-conf.bin 会配置所需的射频参数、使用的天线数量,以及所需的工作频段等。此文件需要根据设置中所用的 WL18xx 器件或模块进行调整。为了简化生成 wl18xx-conf.bin(位于 /lib/firmware/ti-connectivity 中)的过程,R8.8 版本中包含可用于根据硬件配置做出适当选择的配置脚本。以下各节详细介绍了“configure-device.sh”脚本的用法。该脚本将使用所选的选项来更新现有的 wlconf 文件。请注意,编程的值会影响射频性能,并且需要准确的值才能通过认证。
configure-device.sh 是一个菜单式脚本。该脚本会询问硬件相关问题,用于正确配置要与 WiLink 8 器件配套使用的目标。此脚本使用 'wlconf' 实用程序来创建 WiLink8 配置二进制文件。WiLink™ 8 解决方案 WiLink8 – wlconf 包含有关“wlconf”实用程序以及如何修改此配置的更多详细信息。
首先,完成上述启动过程并确保 WiLink8 器件已启动。与目标设备建立串行连接并以 root 身份登录。
导航至脚本所在位置 /usr/sbin/wlconf 并运行 configure-device.sh:
cd /usr/sbin/wlconf
./configure-device.sh
该脚本将会向您询问一系列硬件相关问题并针对您的系统配置 wlconf。此脚本可用于 WiLink8 TI 模块、非 TI 模块或板载芯片设计。下面显示了一些示例。
使用 WiLink8 TI 模块时,该脚本将会自动从 /usr/sbin/wlconf/official_inis
中挑选正确的 INI 文件:
Example for WL1837 without Japanese Certification:
root@am335x-evm:/usr/sbin/wlconf# ./configure-device.sh
Please provide the following information.
Are you using a TI module? [y/n] : y
What is the chip flavor? [1801/1805/1807/1831/1835/1837 or 0 for unknown] : 1837
Should Japanese standards be applied? [y/n] : n
How many 2.4GHz antennas are fitted? [1/2] : 2
How many 5GHz antennas are fitted (using 2 antennas requires a proper switch)? [0/1/2] : 1
[ 106.068069] wlcore: down
---------------------------------------------------------
The device has been successfully configured.
TI Module: y
Chip Flavor: 1837
Base INI file used: /usr/sbin/wlconf/official_inis/WL1837MOD_INI_FCC_CE.ini
Number of 2.4GHz Antennas Fitted: 2
Number of 5GHz Antennas Fitted: 1
Diversity Support: y
SISO40 Support: y
Japanese Standards Applied: n
---------------------------------------------------------
Example for WL1801
root@am335x-evm:/usr/sbin/wlconf# ./configure-device.sh
Please provide the following information.
Are you using a TI module? [y/n] : y
What is the chip flavor? [1801/1805/1807/1831/1835/1837 or 0 for unknown] : 1801
Should SISO40 support be applied? [y/n] : y
[ 539.778261] wlcore: down
---------------------------------------------------------
The device has been successfully configured.
TI Module: y
Chip Flavor: 1801
Base INI file used: /usr/sbin/wlconf/official_inis/WL1835MOD_INI_C2PC.ini
Number of 2.4GHz Antennas Fitted: 1
Number of 5GHz Antennas Fitted: 0
Diversity Support: n
SISO40 Support: y
Japanese Standards Applied: n
---------------------------------------------------------
对于 WiLink8 板载芯片或非 TI 模块配置,该脚本将会挑选 /usr/sbin/wlconf/official_inis/WL8_COB_INI.ini。TI 提供了此文件的模板。 客户将需要根据其设计修改此文件中的射频参数,或者使用各个模块供应商提供的值。
root@am335x-evm:/usr/sbin/wlconf# ./configure-device.sh
Please provide the following information.
Are you using a TI module? [y/n] : n
What is the chip flavor? [1801/1805/1807/1831/1835/1837 or 0 for unknown] : 1837
How many 2.4GHz antennas are fitted? [1/2] : 2
How many 5GHz antennas are fitted (using 2 antennas requires a proper switch)? [0/1/2] : 1
[ 148.158965] wlcore: down
---------------------------------------------------------
The device has been successfully configured.
TI Module: n
Chip Flavor: 1837
Base INI file used: /usr/sbin/wlconf/official_inis/WL8_COB_INI.ini
Number of 2.4GHz Antennas Fitted: 2
Number of 5GHz Antennas Fitted: 1
Diversity Support: n
SISO40 Support: y
Japanese Standards Applied: n
---------------------------------------------------------