Skip to content

Contents

Create an ssh connection

https://dev.azure.com/lede/bitswrt-UserGuides/_wiki/wikis/UserGuides/1689/debug-ssh

Operation method: Linux Command

Turn on testmode

  • Connect the board to the computer with a serial cable
  • Power on the board
  • Read Hit any key to stop autoboot: 3 Immediately press the enter button at the serial port to enter uboot:
  • Enter the following commands in order
NHX53X2-V01-222-NPN-512M16-D4# setenv bootargs '$bootargs wifi_ftm_mode serverip#192.168.1.199#'
NHX53X2-V01-222-NPN-512M16-D4# saveenv
Saving Environment to SPI Flash...
Erasing SPI flash...Writing to SPI flash...done
NHX53X2-V01-222-NPN-512M16-D4#reset

Turn off testmode

  • Connect the board to the computer with a serial cable
  • Power on the board
  • Read Hit any key to stop autoboot: 3 Immediately press the enter button at the serial port to enter uboot:
  • Enter the following commands in order
NHX53X2-V01-222-NPN-512M16-D4# setenv bootargs 'console=ttyMSM0,115200n8'
NHX53X2-V01-222-NPN-512M16-D4# saveenv
Saving Environment to SPI Flash...
Erasing SPI flash...Writing to SPI flash...done
NHX53X2-V01-222-NPN-512M16-D4#reset

variable

For variable definitions, see:comand options

  • -J - TLV2
  • -i wifiX – wifi instance X
  • -I 0 (capital i) – phy identifier
  • -M 0 – Set the WLAN mode as none
  • —rateBw 0 - Set the Data rate bandwidth as CCK
  • -r 0 – Rate is 1 Mbps
  • –nss 1 - one spatial stream
  • -f 2412 – The central frequency is set to 2412 MHz (channel 1)
  • -p 15– Set fix Tx power as 15 dBm
  • -a 1 – Tx on chain0
  • -t 3 – Tx mode is CONT_TX_99: Continuous Modulated Tx 99% Duty Cycle
  • -Y 5C:B1:5F:71:00:00 - RX Station MAC Address:If this option is not used packets, will be sent in broadcast 20MHz.

Tx reference commands

Hardware Variables

  • 2.4G

    • -i wifi0
    • -I 0
  • 5G

    • -i wifi1
    • -I 0
  • 6G

    • -i wifi2
    • -I 1

Simple commands to verify Tx/Rx

  • To start/stop Tx, using following commands:
myftm -t 3 (Tx start)
myftm -t 0 (Tx stop)
  • To start/stop Rx, using following commands:
myftm -x 1 (Rx start)
myftm -x 0 (Rx stop)

CCK

Special tip: Execute the myftm -t 0 command first before executing other commands.

ModeSyntax
CCK_1Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 0 -M 0 —nss 1 -r 0 -p 4 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
CCK 2Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 0 -M 0 —nss 1 -r 1 -p 8 -a 2 -Y 5C:B1:5F:71:00:00 -t 3
CCK_5.5Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 0 -M 0 —nss 1 -r 2 -p 12 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
CCK_11Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 0 -M 0 —nss 1 -r 3 -p 16 -a 2 -Y 5C:B1:5F:71:00:00 -t 3

Legacy OFDM

Special tip: Execute the myftm -t 0 command first before executing other commands.

ModeSyntax
OFDM 6Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 1 —nss 1 -M 0 -r 10 -p 4 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
OFDM 9Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 1 —nss 1 -M 0 -r 11 -p 8 -a 2 -Y 5C:B1:5F:71:00:00 -t 3
OFDM 12Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 1 —nss 1 -M 0 -r 12 -p 12 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
OFDM 18Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 1 —nss 1 -M 0 -r 13 -p 16 -a 2 -Y 5C:B1:5F:71:00:00 -t 3
OFDM 24Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 1 —nss 1 -M 0 -r 14 -p 4 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
OFDM 36Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 1 —nss 1 -M 0 -r 15 -p 8 -a 2 -Y 5C:B1:5F:71:00:00 -t 3
OFDM 48Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 1 —nss 1 -M 0 -r 16 -p 12 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
OFDM 54Mbpsmyftm -J -i wifi0 -I 0 -f 2412 —rateBw 1 —nss 1 -M 0 -r 17 -p 16 -a 2 -Y 5C:B1:5F:71:00:00 -t 3
HT20 MCS0myftm -J -i wifi0 -I 0 -f 2412 —rateBw 2 —nss 1 -M 2 -r 20 -p 15 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
HT20 MCS7myftm -J -i wifi1 -I 0 -f 5745 —rateBw 2 —nss 1 -M 2 -r 27 -p 8 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
HT40 MCS0myftm -J -i wifi0 -I 0 -f 2422 —rateBw 3 —nss 1 -M 3 -r 20 -p 15 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
HT40 MCS7myftm -J -i wifi1 -I 0 -f 5510 —rateBw 3 —nss 1 -M 3 -r 27 -p 8 -a 1 -Y 5C:B1:5F:71:00:00 -t 3

11ac modes

Special tip: Execute the myftm -t 0 command first before executing other commands.

ModeSyntax
VHT20 MCS0myftm -J -i wifi0 -I 0 -f 2412 —rateBw 4 —nss 1 -M 2 -r 20 -p 15 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
VHT20 MCS7myftm -J -i wifi1 -I 0 -f 5785 —rateBw 4 —nss 1 -M 2 -r 27 -p 8 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
VHT40 MCS0myftm -J -i wifi0 -I 0 -f 2422 —rateBw 5 —nss 1 -M 3 -r 20 -p 15 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
VHT40 MCS7myftm -J -i wifi1 -I 0 -f 5670 —rateBw 5 —nss 1 -M 3 -r 27 -p 8 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
VHT80 MCS0myftm -J -i wifi1 -I 0 -f 5210 —rateBw 6 —nss 1 -M 7 -r 20 -p 15 -a 1 -Y 5C:B1:5F:71:00:00 -t 3
VHT80 MCS7myftm -J -i wifi1 -I 0 -f 5610 —rateBw 6 —nss 1 -M 7 -r 27 -p 8 -a 1 -Y 5C:B1:5F:71:00:00 -t 3

11ax modes

Special tip: Execute the myftm -t 0 command first before executing other commands.

ModeSyntax
HE20 MCS0myftm -J -i wifi0 -I 0 —rateBw 8 —nss 1 -M 2 -r 20 -p 10 -a 1 -f 2412 -Y 5C:B1:5F:71:00:00 -t 3
HE20 MCS7myftm -J -i wifi1 -I 0 —rateBw 8 —nss 1 -M 2 -r 27 -p 15 -a 2 -f 5180 -Y 5C:B1:5F:71:00:00 -t 3
HE40 MCS0myftm -J -i wifi0 -I 0 —rateBw 9 —nss 1 -M 3 -r 20 -p 10 -a 1 -f 2422 -Y 5C:B1:5F:71:00:00 -t 3
HE40 MCS7myftm -J -i wifi2 -I 1 —rateBw 9 —nss 1 -M 3 -r 27 -p 15 -a 2 -f 6125 -Y 5C:B1:5F:71:00:00 -t 3
HE80 MCS0myftm -J -i wifi2 -I 1 –rateBw 10 —nss 1 -M 7 -r 20 -p 10 -a 1 -f 6145 -Y 5C:B1:5F:71:00:00 -t 3
HE80 MCS7myftm -J -i wifi1 -I 0 —rateBw 10 —nss 1 -M 7 -r 27 -p 15 -a 2 -f 5210 -Y 5C:B1:5F:71:00:00 -t 3
HE160 MCS0myftm -J -i wifi1 -I 0 —rateBw 16 —nss 1 -M 13 -r 20 -p 10 -a 1 -f 5250 -Y 5C:B1:5F:71:00:00 -t 3
HE160 MCS7myftm -J -i wifi2 -I 1 —rateBw 16 —nss 1 -M 13 -r 27 -p 15 -a 2 -f 6185 -Y 5C:B1:5F:71:00:00 -t 3

11be modes

Special tip: Execute the myftm -t 0 command first before executing other commands.

ModeSyntax
EHT20 MCS0myftm -J -i wifi0 -I 0 —rateBw 30 —nss 1 -M 2 -r 20 -p 10 -a 1 -f 2412 -Y 5C:B1:5F:71:00:00 -t 3
EHT20 MCS7myftm -J -i wifi1 -I 0 —rateBw 30 —nss 1 -M 2 -r 27 -p 15 -a 2 -f 5180 -Y 5C:B1:5F:71:00:00 -t 3
EHT40 MCS0myftm -J -i wifi0 -I 0 —rateBw 31 —nss 1 -M 3 -r 20 -p 10 -a 1 -f 2422 -Y 5C:B1:5F:71:00:00 -t 3
EHT40 MCS7myftm -J -i wifi2 -I 1 —rateBw 31 —nss 1 -M 3 -r 27 -p 15 -a 2 -f 6125 -Y 5C:B1:5F:71:00:00 -t 3
EHT80 MCS0myftm -J -i wifi2 -I 1 —rateBw 32 —nss 1 -M 7 -r 20 -p 10 -a 1 -f 6145 -Y 5C:B1:5F:71:00:00 -t 3
EHT80 MCS7myftm -J -i wifi1 -I 0 —rateBw 32 —nss 1 -M 7 -r 27 -p 15 -a 2 -f 5210 -Y 5C:B1:5F:71:00:00 -t 3
EHT160 MCS0myftm -J -i wifi1 -I 0 —rateBw 33 —nss 1 -M 13 -r 20 -p 10 -a 1 -f 5250 -Y 5C:B1:5F:71:00:00 -t 3
EHT160 MCS7myftm -J -i wifi2 -I 1 —rateBw 33 —nss 1 -M 13 -r 27 -p 15 -a 2 -f 6185 -Y 5C:B1:5F:71:00:00 -t 3
EHT320 MCS0myftm -J -i wifi2 -I 1 —rateBw 34 —nss 1 -M 60 -r 20 -p 10 -a 1 -f 6265 -Y 5C:B1:5F:71:00:00 -t 3
EHT320 MCS7myftm -J -i wifi2 -I 1 —rateBw 34 —nss 1 -M 60 -r 27 -p 15 -a 2 -f 6265 -Y 5C:B1:5F:71:00:00 -t 3