開發調試指令大全--(博通開發調試命令)

前言

本文主要介紹博通方案的常用的無線配置方法和以及開發調試過程中出現的一些常見問題及解決方案。

1、命令行基本語法

BCM基本命令行存在兩種方式:wlnvram
(1)、wl
Usage:

wl [-a|i <adapter>] [-h] [-d|u|x] <command> [arguments]

-h this message and command descriptions
-h [cmd] command description for cmd
-a, -i adapter name or number
-d output format signed integer
-u output format unsigned integer
-x output format hexdecimal
-i選項,用於指定具體的設備節點,如2.4G ssid1對應wl0, ssid2對應wl0.1,ssid3對應wl0.2,依此類推;
5G ssid1 則對應wl1,ssid2 對應wl1.1,依此類推

(2)、nvram
usage:

nvram [get name] [set name=value] [unset name] [show] [commit] [godefault] [save] [restore]

[set] : set name with value
[setflag] : set bit value
[unset] : remove nvram entry
[get] : get nvram value with name
[getflag] : get bit value
[show:dump:getall] : show all nvrams
[loadfile] : populate nvram value from files
[savefile] : save all nvram value to file
[commit] : save nvram [optional] to restart wlan when following restart
[restart] : restart wlan

1、bcm常見命令行

(1)查看軟件版本信息

命令行:wl -i wl0 ver
說明:查看2.4G的版本信息

(2)查看無線硬件版本信息

命令行:wl –i wl0/wl1 revinfo
說明:命令行顯示的無線硬件版本信息

(3)查看無線狀態

命令行:wl status
說明:默認查詢到的時2.4G主ssid的信息,如果需要查詢指定ssid的信息,使用【-i】選項

wl -i wl0 status
SSID: “ChinaNet-zyh111”
Mode: Managed RSSI: 0 dBm SNR: 0 dB noise: -89 dBm Channel: 1l
BSSID: 00:23:22:22:11:55 Capability: ESS ShortSlot
Supported Rates: [ 1(b) 2(b) 5.5(b) 6 9 11(b) 12 18 24 36 48 54 ]
HE Capable:
Chanspec: 2.4GHz channel 3 40MHz (0x1803)
Primary channel: 1
HT Capabilities: 40MHz SGI20 SGI40
Supported HT MCS : 0-23 32
Supported VHT MCS:
NSS1 Tx: 0-11 Rx: 0-11
NSS2 Tx: 0-11 Rx: 0-11
NSS3 Tx: 0-11 Rx: 0-11
Supported HE MCS:
20/40/80 MHz:
NSS1 Tx: 0-11 Rx: 0-11
NSS2 Tx: 0-11 Rx: 0-11
NSS3 Tx: 0-11 Rx: 0-11

VHT MCS:表示802.11n mcs
HE MCS:表示802.11ax,也即支持wifi6

(4)查看無線驅動統計信息

命令行:wl –i wl0/wl1 counters
說明:命令行顯示的無線驅動統計信息。

(5)無線驅動加載map文件信息

命令行:wl –i wl0/wl1 srdump
說明:命令行顯示的加載到驅動裏的map信息。
map文件儲存無線校準相關參數,所以在調試中有時會需要調高或調低發射功率;產測涉及更新map文件。相當於mtk中的iwpriv ra0 e2p

(6)查詢關聯sta信息

命令行:wl -i wl0 assoclist
說明:查詢指定接口下關聯的sta列表

(7)查詢指定sta詳細信息

命令行:wl -i wl0 sta_info F8:87:F1:6C:E3:30
說明:查詢已關聯指定sta的相關信息

(8)查看AP當前發射功率

命令行:wl –i wl0/wl1 curpower
說明:命令行輸出AP每根天線當前實時發射功率

(9)查看AP天線的RSSI

命令行:wl –i wl0/wl1 dump rssi
說明:命令行輸出AP天線實時的接收靈敏度

(10)查看AP鄰居信息

命令行:wl –i wl0/wl1 scan
命令行:wl –i wl0/wl1 scanresults
說明:這兩個命令行完成AP對周圍其他SSID信息的掃描及輸出

(11)查看AP實時物理速率

命令行:wl –i wl0/wl1 rate
說明:命令行顯示的無線AP實時協商物理速率。


後續更新

發佈了26 篇原創文章 · 獲贊 23 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章