锐单电子商城 , 一站式电子元器件采购平台!
  • 电话:400-990-0325

WiFi之WL工具命令

时间:2023-05-30 03:37:00 wl系列传感器wlcal5

一. 功耗测试
1.设置天线:
2X2:
wl down
wl txchain 3
wl rxchain 3
wl antdiv 3
wl txant 3
wl up

1X1:(天线1)
wl down
wl txchain 1
wl rxchain 1
wl antdiv 0
wl txant 0
wl up

1X1:(天线2)
wl txchain 2
wl rxchain 2
wl antdiv 1
wl txant 1

2.设置MCS:
wl down
wl nrate –m mcs_index
wl up

3.设置带宽:
wl down
wl chanspec –c channel –b band –w bandwidth –s sideband
wl up

4.设置发射功率
wl down
wl txpwr1 pwr_value(dBm)
wl up

5.设置信道
wl down
wl channel chan_no
wl up

6.查询命令
获取MCS:
wl nrare

获得发射功率:
wl txpwr1

获取状态信息:
wl status

二. 射频测试

  1. 双发命令
    wl mpc 0
    wl down
    wl scansuppress 1
    wl band b
    wl country ALL
    wl bi 65535
    wl ampdu 1
    wl rateset 6b
    wl txchain 3
    wl antdiv 3
    wl txant 3
    wl mimo_bw_cap 1
    wl mimo_txbw 2
    wl chanspec -c 1 -b 2 -w 20 -s 0
    wl nrate -m 15 -s 3
    wl up
    wl interference 0
    wl phy_forcecal 1
    wl txpwr1 -1
    wl txpwr1
    wl disassoc
    wl pkteng_start 00:22:33:44:55:66 tx 100 1500 0

  2. 11a测试
    wl mpc 0
    wl down
    wl frameburst 1
    wl interference 0
    wl txchain 1
    wl band a
    wl mimo_bw_cap 1
    wl chanspec 100
    wl nrate -r 54 -s 0
    wl txpwr1 -o -d 13
    wl up
    wl pkteng_start 00:22:33:44:55:66 tx 100 1500 0
    wl phy_forcecal 1
    wl pkteng_stop tx
    wl mpc 0
    wl down
    wl frameburst 1
    wl interference 0
    wl txchain 1
    wl band a
    wl mimo_bw_cap 1
    wl chanspec 100
    wl nrate -m 7 -s 3
    wl txpwr1 -o -d 11
    wl up
    wl pkteng_start 00:22:33:44:55:66 tx 100 1500 0
    wl phy_forcecal 1
    wl pkteng_stop tx

  3. 11b/g测试
    wl mpc 0
    wl down
    wl band b
    wl bi 65535
    wl chanspec -c 13 -b 2 -w 20 -s 0
    wl bg_rate 54
    wl txchain 2
    wl rxchain 2
    wl txant 1
    wl antdiv 1
    wl up
    wl txpwr1 -o -d 10
    wl pkteng_start 00:22:33:44:55:66 tx 100 1500 0
    wl phy_forcecal 1
    wl pkteng_stop tx
    wl pkteng_stats

  4. 11g CDD测试
    wl mpc 0
    wl down
    wl band b
    wl bi 65535
    wl chanspec -c 1 -b 2 -w 20 -s 0
    wl nrate -r 54 -s 1
    wl up
    wl txpwr1 -o -d 11
    wl pkteng_start 00:22:33:44:55:66 tx 100 1500 0
    wl phy_forcecal 1
    wl pkteng_stop tx

  5. 11n 20MHz测试
    wl mpc 0
    wl down
    wl band b
    wl bi 65535
    wl chanspec -c 1 -b 2 -w 20 -s 0
    wl nrate -m 7 -s 0
    wl txchain 1
    wl rxchain 1
    wl txant 0
    wl antdiv 0
    wl up
    wl txpwr1 -o -d 8
    wl pkteng_start 00:22:33:44:55:66 tx 100 1500 0
    wl phy_forcecal 1
    wl pkteng_stop tx

  6. 11n 40MHz测试
    wl mpc 0
    wl down
    wl country ALL
    wl scansuppress 1
    wl txant 0
    wl bi 65535
    wl mimo_bw_cap 1
    wl mimo_txbw 4
    wl chanspec 1l
    wl nrate -m 7 -s 0
    wl up
    wl txpwr1 -o -d 11
    wl pkteng_start 00:22:33:44:55:66 tx 100 1500 0
    wl phy_forcecal 1
    wl pkteng_stop tx

三. 设置工作模式

  1. AP mode
    ifconfig WiFi0 192.168.1.1 up
    wl down
    wl apsta 0
    wl ap 1
    wl wsec 0
    wl wpa_auth 0
    wl channel 1
    wl mpc 0
    wl ssid –C 0 test_ssid
    wl up
    wl bss –C 0 up

  2. APSTA mode
    ifconfig WiFi0 up
    wl ap 1
    wl apsta 1
    wl mbss 1
    wl up
    wl bss –C 1 down
    wl ssid –C 1 test_ssid1
    wl mpc 0
    wl bss –C 1 up

  3. Multi SSID mode
    wl bss -C 0 down
    wl bss -C 1 down
    wl down
    wl ap 1
    wl mbss 1
    wl mpc 0
    wl country JP
    wl channel 13
    wl maxassoc 10
    wl bss -C 0 down
    wl ssid -C 0 t1
    wl -i WiFi0 bss_maxassoc 5
    wl bss -C 1 down
    wl ssid -C 1 g1
    ifconfig wl0.1 up
    wl -i wl0.1 bss_maxassoc 5
    wl up
    wl bss -C 1 up
    wl bss -C 0 up

锐单商城拥有海量元器件数据手册IC替代型号,打造电子元器件IC百科大全!

相关文章