0% found this document useful (0 votes)
519 views4 pages

STA Iwpriv ATE Usage

This document provides instructions for using ATE commands to test hardware features of a station driver, including setting frame headers and transmission parameters, starting transmission modes, accessing hardware registers, and checking ASIC status. Key commands include setting frame addresses, transmission power, channel, length, and rate, and starting modes like continuous transmission, carrier test, and receiving frames. Hardware can be damaged if default values are modified without understanding.

Uploaded by

lizzard_ryan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
519 views4 pages

STA Iwpriv ATE Usage

This document provides instructions for using ATE commands to test hardware features of a station driver, including setting frame headers and transmission parameters, starting transmission modes, accessing hardware registers, and checking ASIC status. Key commands include setting frame addresses, transmission power, channel, length, and rate, and starting modes like continuous transmission, carrier test, and receiving frames. Hardware can be damaged if default values are modified without understanding.

Uploaded by

lizzard_ryan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

================================================================================

===================
ATE Test Command Format for station driver
****** IMPORTANT ******
If you are not familiar with hardware, it is recommanded not to modify hardware
default value.
It may damage hardware.

Usage:
iwpriv ra0 [act] [parameters]=[val]

where
[act] [parameters] [val] constraints explaination
----- ------------- ----------------- --------------------------------
set ATEDA xx:xx:xx:xx:xx:xx set ATE frame he
ader addr1
ATESA xx:xx:xx:xx:xx:xx set ATE frame he
ader addr2
ATEBSSID xx:xx:xx:xx:xx:xx set ATE frame he
ader addr3
ATETXPOW 0 ~ 31
set ATE Tx power
ATECHANNEL 1 ~ 14
set ATE Channel
ATETXFREQOFFSET 1 ~ 14 set ATE
RF frequency offset
ATETXLEN 24 ~ 1500 set ATE
frame length
ATETXCNT 1 ~
set ATE frame Tx count
ATETXRATE 0 ~ 11
set ATE frame Tx rate (rate_1 ~ rate_54)
------- set ATE actions -------
ATE STASTOP
stop STA & ATE function
ATE STASTART start STA functi
on
ATE TXCONT start ST
A continuous TX
ATE TXCARR start ST
A carrier test
ATE TXFRAME transmit
frame
ATE RXFRAME continuo
us RX
-------------------------------
ResetCounter 0
reset statistic counter
bbp 0 ~ xx
read/write BBP register
mac 0 ~ xxxxxxxx
read/write MAC register
e2p 0 ~ xxxx
read/write E2PROM

For example:
============
1. Check EVM & Power
iwpriv ra0 set ATE=STASTOP ; Stop STA worki
ng
iwpriv ra0 set ATEDA=00:11:22:33:44:55
iwpriv ra0 set ATESA=00:aa:bb:cc:dd:ee
iwpriv ra0 set ATEBSSID=00:11:22:33:44:55
iwpriv ra0 set ATETXRATE=11 ; Set Tx Rate 0~
11
iwpriv ra0 set ATECHANNEL=1 ; Set Ate channe
l
iwpriv ra0 set ATETXLEN=1024 ; Tx frame length(no inc
lude 802.11 header)
iwpriv ra0 set ATETXPOW=18 ; Tx power(decmi
al)
iwpriv ra0 set ATETXCNT=100000 ; Tx frame count(decmial
, this value must
; larger than meausurement period)
iwpriv ra0 set ATE=TXFRAME ; Start Tx Frame
...
; Measure EVM and Power with instrument
iwpriv ra0 set ATETXPOW=19 ; dynamic adjust
Tx Power in decmial
...
iwpriv ra0 set ATETXPOW=20
...
iwpriv ra0 set ATE=STASTOP ; Stop

2. Check Carrier
iwpriv ra0 set ATE=STASTOP
iwpriv ra0 set ATETXRATE=11 ; Set Tx Rate 0~
11
iwpriv ra0 set ATETXCNT=50 ; Tx frame count
(decmial)
iwpriv ra0 set ATE=TXFRAME ; Start Tx Frame
(inform BBP to change
; modulation mode)
iwpriv ra0 set ATE=TXCARR ; Start Tx carri
er
...
; Measure carrier with instrument
iwpriv ra0 set ATE=STASTOP

3. Check specturm mask


iwpriv ra0 set ATE=STASTOP
iwpriv ra0 set ATETXRATE=11 ; Set Tx Rate 0~
11
iwpriv ra0 set ATETXCNT=50 ; Tx frame count
(decmial)
iwpriv ra0 set ATE=TXCONT ; Start continuo
us TX
... ; Measure specturm mask
with instrument
iwpriv ra0 set ATE=STASTOP

4. Frequency offset tuning


iwpriv ra0 set ATE=STASTOP
iwpriv ra0 set ATETXRATE=11 ; Set Tx Rate 0~
11
iwpriv ra0 set ATETXCNT=50 ; Tx frame count
(decmial)
iwpriv ra0 set ATE=TXFRAME ; Start Tx Frame
iwpriv ra0 set ATETXFREQOFFSET=0 ; Set frequency offset 0
(decimal)
iwpriv ra0 set ATE=TXCARR ; Start Tx carri
er
...
; Measure carrier frequency with instrument
iwpriv ra0 set ATETXFREQOFFSET=10 ; Dynamic turning freque
ncy offset
; 10(decimal)
...
iwpriv ra0 set ATETXFREQOFFSET=20 ; Dynamic turning freque
ncy offset
; 20(decimal)
...
iwpriv ra0 set ATE=STASTOP ; Stop
; Store the tuning result to EEPROM

5. Rx
iwpriv ra0 set ATE=STASTOP
iwpriv ra0 set ResetCounter=0 ; Reset statistic counte
r
iwpriv ra0 set ATETXRATE=11 ; Set Tx Rate 0~
11
iwpriv ra0 set ATE=RXFRAME ; Start Rx
...
; Transmit test packets
iwpriv ra0 set ATE=STASTOP ; Stop
iwpriv ra0 stat
6. Hardware access
iwpriv ra0 bbp 0 ; read B
BP register 0
iwpriv ra0 bbp 0=12 ; write
BBP register 0 as 0x12
iwpriv ra0 mac 0 ; read M
AC register 0
iwpriv ra0 mac 0=1234abcd ; write MAC regi
ster 0 as 0x1234abcd
iwpriv ra0 e2p 0 ; read E
2PROM 0
iwpriv ra0 e2p c=12ab ; write E2PROM 0
xc as 0x12ab
7. ASIC model check status
iwpriv ra0 chk_asic_ver
{status = 0} ; The re
sult mismatched between EEPROM and ASIC hard code.
{status = 1} ; The re
sult matched between EEPROM and ASIC hard code.

Suggestion:
============
1. To turn on ATE functionality, you have to add compile flag "DBG" and
"RALINK_ATE" to Makefile
2. Before doing ATE testing, please stop STA function (iwpriv ra0 set AT
E=STASTOP)
3. If you want to test another ATE action, prefer to stop STA & ATE func
tion (iwpriv ra0 set ATE=STASTOP)
4. All ATE function settings will lose efficacy after reboot.
5. Before hardware register access, please reference hardware spec.
*Note.
======
1. In ATE mode, the channel must set via "ATECHANNEL"

You might also like