调整无线发射功率
跳转到导航
跳转到搜索
本文介绍了在博流芯片+SDK上如何调整无线部分的发射功率和capcode,功率配置不区分AP还是Station模式,它只和硬件RF信号有关系,和上层软件工作模式无关。
发射功率配置在 sdk 根目录的 bsp/board/CHIPdk/config目录下的后缀为.dts文件,一般叫做bl_factory_params_IoTKitA_auto.dts。
使用文件编辑器打开该文件,找到 brd_rf 配置:
功率配置调整完毕之后,保存文件,重新烧录即可生效。
开发板上电之后,查看 [rfparam] 开头的日志打印确认功率调整是否生效。
dynamic memory init success, ocram heap size = 268 Kbyte
____ __ __ _ _ _
| _ \ / _|/ _| | | | | | |
| |_) | ___ _ _| |_| |_ __ _| | ___ | | __ _| |__
| _ < / _ \| | | | _| _/ _` | |/ _ \| |/ _` | '_ \
| |_) | (_) | |_| | | | || (_| | | (_) | | (_| | |_) |
|____/ \___/ \__,_|_| |_| \__,_|_|\___/|_|\__,_|_.__/
Build:10:18:30, Nov 11 2025
Copyright (c) 2022 Bouffalolab team
Version of used components:
Version: component_version_macsw_1.7.10
Version: 2025-05-09 a0dd790
Version: component_version_fhost_1.7.10
Version: component_version_lhal: lhal-v1.1.0-371-g33f2ebfa
Version: component_version_sdk: 2.0.0
Version: component_version_boot2: 8.1.8
======== chip info ========
package QFN40
flash_info 4MB
psram_info NO
version A0
======== flash cfg ========
flash clock 80MHz
flash delay 110,135,3
flash size 0x00400000
jedec id 0x1660C8
mid 0xC8
iomode 0x04
clk delay 0x01
clk invert 0x03
read reg cmd0 0x05
read reg cmd1 0x35
write reg cmd0 0x01
write reg cmd1 0x01
qe write len 0x02
cread support 0x01
cread code 0x20
burst wrap cmd 0x77
===========================
uart sig1:ffffffff, sig2:0000f32f
clock gen1:9ffffffd, gen2:0fff0c11
xtal:40000000Hz(crystal)
board init done
===========================
bouffalolab />[I][rfparam] xtal value 40000000
[I][rfparam] dcdc_trim empty
[I][rfparam] dcdc_trim use default value 0x80
[I][rfparam] icx empty
[I][rfparam] icx use default value 0x80
[I][rfparam] iptat empty
[I][rfparam] iptat use default value 0x80
[I][rfparam] tmp_mp use default value 35
[I][rfparam] RF_PARAM TLV ADDRESS: 0xA0000400
[I][rfparam] pwr_mode is bf
Empty slot:1
[I][rfparam] efuse wlan pwr_offset[14]: 2,2,2,1,1,0,-1,0,0,1,1,2,2,3,
[I][rfparam] tlv wlan pwr_offset[14]: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,
[I][rfparam] wlan pwr_offset[14]: 2,2,2,1,1,0,-1,0,0,1,1,2,2,3,
Empty slot:1
[I][rfparam] efuse wlan lp pwr_offset[14]: 0,0,0,0,0,0,0,1,2,3,4,5,6,8,
[I][rfparam] tlv wlan lp pwr_offset[14]: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,
[I][rfparam] wlan lp pwr_offset[14]: 0,0,0,0,0,0,0,1,2,3,4,5,6,8,
Empty slot:1
[I][rfparam] efuse bz pwr_offset[5]: -2,-4,-4,-1,-1,
[I][rfparam] tlv bz pwr_offset[5]: 0,0,0,0,0,
[I][rfparam] bz pwr_offset[5]: -2,-4,-4,-1,-1,
[I][rfparam] pwr_11b[4]: 20,20,20,20,
[I][rfparam] pwr_11g[8]: 18,18,18,18,18,18,16,16,
[I][rfparam] pwr_11n_ht20[8]: 18,18,18,18,18,16,15,15,
[I][rfparam] pwr_11n_ht40[8]: 18,18,18,18,18,16,15,14,
[I][rfparam] pwr_11ac_vht20[10]: 18,18,18,18,18,16,15,15,15,14,
[I][rfparam] pwr_11ac_vht40[10]: 18,18,18,18,18,16,15,14,14,13,
[I][rfparam] pwr_11ax_he20[12]: 18,18,18,18,18,16,15,15,15,14,13,13,
[I][rfparam] pwr_11ax_he40[12]: 18,18,18,18,18,16,15,14,14,13,12,12,
[I][rfparam] capcode mode is MF
Empty slot:1
[I][rfparam] efuse capcode_in 32,capcode_out 32
[I][rfparam] capcode_in 32,capcode_out 32
[I][rfparam] tcal.en_tcal = 0
[I][rfparam] tcal.linear_or_follow = 1
[I][rfparam] tcal.Tchannels[5]: 2412,2427,2442,2457,2472,
[I][rfparam] tcal.Tchannel_os[5]: 180,168,163,160,157,
[I][rfparam] tcal.Tchannel_os_low[5]: 199,186,170,165,160,
[I][rfparam] tcal.Troom_os = -1
[I][rfparam] pwr_ble = 13
[I][rfparam] pwr_bt[3]: 10,8,8,
[I][rfparam] pwr_zigbee = 13
[I][rfparam] country_code = 86
[I][rfparam] en_tcap = 0
[I][rfparam] tcap_tsen[10]: -3,-4,20,39,39,40,41,42,43,44,
[I][rfparam] tcap_cap[11]: 28,29,30,31,32,33,34,35,36,37,38,
[I][MAIN] PHY RF init success!
[I][MAIN] Starting wifi ...
macsw features:
macsw mode: normal
macsw platform dma: enable
[I][MAIN] Starting fhost ...
SIGTERM is NOT supported yet!
SIGHUP is NOT supported yet!