Contents
- Create an ssh connection
- Operation method: Linux Command
- Turn on testmode
- variable
- NHX6018 athtestcmd example
Create an ssh connection
https://dev.azure.com/lede/bitswrt-UserGuides/_wiki/wikis/UserGuides/1689/debug-ssh
Operation method: Linux Command
Turn on testmode
wifi downrmmod monitorrmmod wifi_3_0rmmod wifi_2_0rmmod qca_olinsmod qca_ol testmode=1insmod wifi_3_0insmod wifi_2_0
variable
--txfreq 2412 --txrate 23 --rateBw 4 --nss 1 --mode bw20 --txpwr 10 --txchain 1
- For variable definitions, see: qcatestcmd option
NHX6018 athtestcmd example
2.4GHz Sample Tx commands with explanation
freq 2412
- TX on
qcatestcmd -i wifi1 --tx tx99 --phyId 1 --txfreq 2412 --txrate 23 --rateBw 4 --nss 1 --mode bw20 --txpwr 10 --txchain 1
- TX on MIMO
qcatestcmd -i wifi1 --tx tx99 --phyId 1 --txfreq 2412 --txrate 23 --rateBw 4 --nss2 --mode bw20 --txpwr 10
root@NHX6018-0-NPN-256M32-D4:/# qcatestcmd -i wifi1 --tx tx99 --phyId 1 --txfreq 2412 --txrate 23 --rateBw 4 --nss2 --mode bw20 --txpwr 10channel=2412, opCode 1, flags 0x18TLV2p0copying 304, 0x5 0x0 0x0sending 304, 0x5 0x0 0x0TX Reponse: status 0TX Reponse: phyId 100 10 00 00 30 01 00 00 05 00 00 00 02 00 00 00 00 00 00 00 14 01 00 00 28 48 00 00 00 00 00 00 00 00 00 00 0E 00 00 00 2F 5B 05 2F 0F 00 00 00 35 00 00 00 EF 46 5A 14 03 00 00 00 A6 00 00 00 14 52 E6 44 01 00 00 00 36 00 00 00 50 3E BD 54 6C 09 00 00 E5 00 00 00 78 1C 7B 00 17 00 00 00 5F 01 00 00 97 31 28 1A 02 00 00 00 38 00 00 00 52 1C E2 02 02 00 00 00 E6 00 00 00 3B 48 8E 0E 0A 00 00 00 42 00 00 00 F8 7B B5 29 18 00 00 00 44 00 00 00 46 32 EC 3F DC 05 00 00 2C 00 00 00 D4 AA A7 05 04 00 00 00 5E 01 00 00 22 1E EF 45 02 00 00 00 5A 00 00 00 43 38 DF 14 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CA 00 00 00 FF 00 00 00 EF 00 00 00 5B 00 00 00 E2 1F C4 64 06 00 00 00 00sent 304root@NHX6018-0-NPN-256M32-D4:/#
- TX off
qcatestcmd -i wifi1 --tx off --phyId 1
freq 2437
- TX on
qcatestcmd -i wifi1 --tx tx99 --phyId 1 --txfreq 2437 --txrate 23 --rateBw 4 --nss 1 --mode bw20 --txpwr 10 --txchain 1
- TX off
qcatestcmd -i wifi1 --tx off --phyId 1
freq 2462
- TX on
qcatestcmd -i wifi1 --tx tx99 --phyId 1 --txfreq 2462 --txrate 23 --rateBw 4 --nss 1 --mode bw20 --txpwr 10 --txchain 1
- TX off
qcatestcmd -i wifi1 --tx off --phyId 1
2.4GHz Sample Rx commands with explanation
- The following shows the sample command to start reception in promiscuous mode in 2.4 GHz.
qcatestcmd -i wifi<x> --rx promis --phyId <x> --rxfreq 2412 --rateBw 4
- The following shows the sample command to start reception in filter mode in 2.4 GHz.
qcatestcmd -i wifi<x> --setbssid 01:00:00:C0:FF:EE --rx filter --phyId <x> --rxfreq 2412 --rateBw 4
- The following shows the sample command to stop receiving and collect the report in 2.4 GHz.
qcatestcmd -i wifi<x> --rx report --phyId <x>
5GHz Sample Tx commands with explanation
freq 5210
- TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5210 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
- TX on MIMO
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5210 --txrate 29 --rateBw 6 --nss2 --txpwr 10
root@NHX6018-0-NPN-256M32-D4:/# qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5210 --txrate 29 --rateBw 6 --nss2 --txpwr 10qcatestcmd: unrecognized option: nss2channel=5210, opCode 1, flags 0x18TLV2p0copying 280, 0x5 0x0 0x0sending 280, 0x5 0x0 0x000 10 00 00 18 01 00 00 05 00 00 00 02 00 00 00 00 00 00 00 FC 00 00 00 94 60 00 00 00 00 00 00 00 00 00 00 0E 00 00 00 2F 5B 05 2F 0D 00 00 00 35 00 00 00 EF 46 5A 14 03 00 00 00 A6 00 00 00 14 52 E6 44 00 00 00 00 36 00 00 00 50 3E BD 54 5A 14 00 00 E5 00 00 00 78 1C 7B 00 1D 00 00 00 E6 00 00 00 3B 48 8E 0E 0A 00 00 00 42 00 00 00 F8 7B B5 29 18 00 00 00 44 00 00 00 46 32 EC 3F DC 05 00 00 2C 00 00 00 D4 AA A7 05 06 00 00 00 5E 01 00 00 22 1E EF 45 02 00 00 00 5A 00 00 00 43 38 DF 14 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CA 00 00 00 FF 00 00 00 EE 00 00 00 5B 00 00 00 E2 1F C4 64 06 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 7F 00 00 00 03 00 00 00 40 00 00 00 33 00 00 00 5C 00 00 00 11 4B 43 05 06 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 7F 00 00 00 11 00 00 00 12 00 00 00 13 00 00 00 3E 00 00 00 9C 6D 0A 50 00 00 00 00sent 280root@NHX6018-0-NPN-256M32-D4:/#
- TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0
freq 5530
- TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5530 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
- TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0
freq 5610
- TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5610 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
- TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0
freq 5690
- TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5690 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
- TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0
freq 5775
- TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5775 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
- TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0
freq 5855
- TX on
qcatestcmd -i wifi0 --tx tx99 --phyId 0 --txfreq 5855 --txrate 29 --rateBw 6 --nss 1 --txpwr 10 --txchain 1
- TX off
tx off: qcatestcmd -i wifi0 --tx off --phyId 0
5 GHz Sample Rx commands with explanation
- The following shows the sample command to start reception in promiscuous mode in 5 GHz.
qcatestcmd -i wifi<x> --rx promis --phyId <x> --rxfreq 5180 --rateBw 4
- The following shows the sample command to start reception in filter mode in 5 GHz.
qcatestcmd -i wifi<x> --setbssid 01:00:00:C0:FF:EE --rx filter --phyId <x> --rxfreq 5180 --rateBw 4
- The following shows the sample command to stop receiving and collect the report in 5 GHz.
qcatestcmd -i wifi<x> --rx report --phyId <x>