# EMW3080 Series Module RF Test

This article is applicable to EMW3080, EMW3090, EMW3080V2, EMW3090V2, EMW5080, EMW5080V2 and other series of modules.

#1. System Introduction

During the product certification process, it is usually necessary to evaluate the RF transceiver performance of wireless modules to determine whether they comply with certification specifications and international standards. Due to the fact that the parameters and timing of the RF signal cannot be kept constant during normal communication of the module, the RF signal transmitted and received during normal communication of the module is generally not directly tested during authentication and testing. The module must enter a specific RF transmission and reception mode (hereinafter referred to as ATE working mode), and set the module to receive and receive specific test signals and messages through the mpTools software running on the PC for measurement by the testing equipment.

The connection diagram of the entire testing system is as follows:

PC running mpTool software connects to a module running in ATE mode through a serial port, and controls the module to send and receive various RF signals of parameters through UART commands. The testing instrument can receive signals from the module through the antenna, or it can be directly connected to the module antenna interface through RF cables to conduct comprehensive testing and evaluation of the module's RF performance.

When the module is started, it will detect the level of the Boot signal and EasyLink pin. If both pins are low, the module will enter ATE mode. The module receives control instructions transmitted on the PC through UART0. So the signal lines required for the module are as follows:

  • Boot: Maintain low level when the module is powered on
  • EasyLink: Maintain low level when the module is powered on
  • UART_LOG_TXD: Receive signal for UART communication with PC
  • UART_ LOG_RXD: Sending signal for UART communication with PC
  • VDD: Power supply for modules
  • GND: Grounding signal line of the module

Please refer to the data manual of the corresponding module for the positions of the above signals and power lines on different models of modules. For EMW3080, Pin19 (boot) and Pin23 (Elink) are grounded (pulled down), and Pin9 (MICO_UART0_TXD)&10 (MICO_UART0_RXD) are connected to the UART of the PC.

In the following example, we selected EMW3080 as the test module, and in order to facilitate the power supply and setting of the working mode of the module, we installed it on the MXKit development board. The MXKit's MXKit Base motherboard can convert UART signals into USB signals, so the PC is connected to the MXKit development board through a Micro USB cable. The EMW3080 module is welded to the core board MXKit Core 3080 and then plugged into the MXKit Base motherboard.

#2. Preparation for testing

#2.1. Connect PC and module

Install the driver for the UART to USB chip CP2105 on the MXKit Base motherboard on the PC.

Connect the PC to the MXKit development board through a Micro USB cable.

On the Windows Device Manager, you can see two virtual serial port devices and record the COM port numbers corresponding to Silicon Labs CP210x USB to UART Bridge: Enhanced COM Port. For example, in the figure below, the corresponding port number is COM4.

#2.2. Entering ATE working mode of the module

After grounding the Boot signal and EasyLink signal of the module, and powering on the module again, the module will automatically enter ATE working mode. The operation method on MXKit is:

1. Turn the 1st toggle switch of the dial switch on the MXKit Base board to ON.

2. Press and hold the ELINK button on the right with your hand, then press the RESET button on the left. Release the module after resetting.

#3. WiFi testing methods

#3.1. MPTool software startup

Download the mpTool software, decompress it, and run the UI_ MPtool.exe.

On the Main tab, in the Select COM drop-down menu, select the serial port number recorded in the "Connect PC and Module" step. In this example, it is COM4.

Click on the Initialize button to complete initialization. If initialization fails, the reason for the error will be displayed in the View Window on the right side of the software. After success, all other controls in the software will be opened

#3.2. Introduction to mpTool

The mpTool software is divided into four tags, namely Main, PSD, Efuse, and Reg. The Main window allows you to set the RF transceiver parameters and modes, and initiate transceiver testing. Other windows are used for module production, and users do not need to operate them. If users use the functions of these labels without authorization, it is very likely to damage the calibration parameters of the module produced in the factory, and cause permanent damage to the module that cannot be repaired.

The functions of each control in the Main tab window are as follows:

Select COM: Select the serial port number for communication between the PC and the module

  • Control: Contains various control functions

    • Initialize: Initialize the serial port and the module to be tested

    • Pwridx by Rate and Limit: When selected, the software reads the initial values of the parameters from the module's Efuse and limits the antenna transmission power to a certain extent, which is displayed in the TX Power Index and cannot be modified. If unchecked, users can adjust the values in the TX Power Index to increase or decrease transmission power

    • TX Power Tracking Start: Start the temperature compensation function, which is generally not turned on

    • MAC Address, Wlan Mode: Not required

    • Testing Item: Select a testing item, and the optional testing items are as follows:

      • Packet TX: used to test RF transmission performance, such as power, EVM, and frequency offset
      • Continuous TX: used for testing transmission power or maximum power consumption of test modules in FCC/CE/MCC/CTA certification
      • Single Tone TX: used for testing frequency offset
      • Carrier Suppression TX: only for 802.11b
      • Packet RX (All), Packet RX (Filtered): Receiving test, which can be used to test the receiving sensitivity and bit error rate of the module
    • Start/Stop: Start and stop the selected testing item in the "Testing Item"

  • TX Setting and RX Setting: Set RF parameters for receiving and sending

    • Ant TX and Ant RX: For this series of modules, fixed option A
    • Data Channel: Select the wireless frequency band for RF transmission and reception
    • Data Rate: Modulation method and data transmission rate
    • TX Power Index: Antenna transmission power (only A antenna can be set). The module cannot set a fixed power output RF signal and can only be adjusted based on the current transmission power. For each increase/decrease in the Power Index by 1, the transmission power will correspondingly increase/decrease by 0.5dBm. The initial value of TX Power Index is saved in Efuse and calibrated by MXCHIP during module production, meeting the parameters in the data manual, ensuring performance, and meeting the requirements of certification standards.
    • Preamble: Set the preamble mode of the message, optional Long_ GI and Short_ GI.
    • Bandwidth: The bandwidth of RF transceiver, 20MHz or 40MHz
    • Xtal.cap: The calibration value of the crystal oscillator, which can be used to adjust the frequency offset of the RF
  • TX Packet Setup: Set message sending parameters

    • Pattern: Set the type of TX message
    • Count: Contract quantity
    • Length: The length of each package
    • Interval: not adjustable
  • Packet counter: displays the number of error packets sent, received, and received

    • Reset: Restore the quantity to 0
  • View Window: Software Log output window

#3.3. WiFi Test Example

#3.3.1. Signaling Mode Transmitting Test

#3.3.1.1. Read factory default parameters

  1. Select Pwridx by Rate and Limit to read the factory parameters from Efuse.
  2. Select TX test project: Packet TX
  3. Select RF channel
  4. Select modulation mode and data rate
  5. Choose bandwidth

#3.3.1.2. Custom Sending Parameters

  1. Do not select Pwridx by Rate and Limit
  2. Select TX test project: Packet TX
  3. Select RF channel
  4. Select modulation mode and data rate
  5. Set the transmission power. Under different modulation modes and rates, the transmission power settings are shown in the table below. Increase or decrease on this basis.

802.11b

802.11g

802.11n

1M

11M

6M

54M

MCS0

MCS7

35

35

46

44

45

42

  1. Choose bandwidth
  2. Select frequency calibration parameters
  3. Start testing

#3.3.2. Single Tone Sending Test

#

  1. Select TX test project: Single Tone TX
  2. Select RF channel
  3. Set the transmission power parameter to 0
  4. Start testing

#3.3.3. Receiving Test

  1. Select RX testing project: Packet Rx (All)
  2. Select RF channel
  3. Start testing
  4. View the number of received packets

#4. Connection between module and RF testing instrument

There are two methods for detecting the RF signal emitted by the RF testing instrument module:

  • Wireless reception using a 2.4GHz antenna
  • Connect the transmission wire to the antenna interface of the module and receive it directly. If the module uses a PCB onboard antenna, it is necessary to disconnect the PCB antenna first. Follow the following testing steps:

a. Remove the 0 ohm resistor connecting the chip to the antenna on the module.

<span class="ne-text">     </span><img width="245" alt="" src="/img/en/1582878943267-bf5df111-cbe2-46dd-89a1-1e1970d08d6f.png"></img>

<span class="ne-text">b. Weld the transmission wire to the antenna test point on the back of the module, and connect the other end of the transmission wire to the testing instrument.</span>

<span class="ne-text">     </span><img width="383.9965515136719" alt="" src="/img/en/1582878392541-1cbc9ee0-0f69-4b81-92bb-4b6f7b310305.png"></img>

#5. Appendix: Wi Fi ATE Serial Port Instructions

The MPtool software interacts with the test module through serial port instructions. Developers can develop customized testing systems based on these instructions.

#5.1. Instruction list

#5.1.1. Start MP mode

  • After executing this command, the Wi Fi driver stops transmitting data and enters MP mode.

    • iwpriv mp_start

#5.1.2. Stop MP mode

  • After executing this command, the Wi Fi driver stops the transmission of messages initiated by other commands. But the system needs to be restarted before it can enter normal Wi Fi connection mode.

    • iwpriv mp_stop

#5.1.3. Set Tx rate

  • Set the data transmission rate for Tx messages.

    • iwpriv mp_rate rate

      • rate: Transfer rate,2 = 1M, 4 = 2M, 11 = 5.5M, …, 108 = 54M, 128 = MCS0, 129 = MCS1, …, 142 = MCS15

#5.1.4. Set operational channel

  • Set the working frequency band for sending and receiving messages.

    • iwpriv mp_channel channel

      • channel: Frequency band for sending and receiving messages

#5.1.5. Set operational bandwidth

  • Set the bandwidth for sending and receiving data packets, and set the guard interval for transmitting MCS messages. If no parameters are provided, the default setting is 20MHz bandwidth and long protection interval (long GI) is used for transmission.

    • iwpriv mp_bandwidth 40M=40m, shortGI=sgi

      • 40m: set bandwidth,1=40M,0=20M
      • sgi: set GI mode,1=Short GI,0=long GI

#5.1.6. Set Tx power

  • Set the transmission power of paths A and B. If no parameters are provided, use the preset parameters in Flash.

    • iwpriv mp_ Txpower path=x, path=y

      • X: Transmission power of path A.
      • Y: The transmission power of path B.

#5.1.7. Set antenna for Tx

  • Set the antenna used for sending

    • iwpriv mp_ant_tx ant

      • ant: a=antenna A, b=antenna B, ab=antenna A and B.

#5.1.8. Set antenna for Rx

  • Set the antenna used for receiving

    • iwpriv mp_ant_rx ant

      • ant: a=antenna A,b=antenna B,ab=antenna A and B.

#5.1.9. Start air Rx mode

  • This command is used for wireless reception testing. Use the Start command to start packet reception, use the Stop command to stop counting, and display statistical data for correct and error messages. Use the phy command to display the number of RF physical layer received packets, CRC errors, and failed alarms.

    • iwpriv mp_ Arx start/stop/phy

      • Start: Start receiving the package.
      • Stop: Stop counting and display statistical information.
      • Phy: Display the number of RF physical layer received packets, CRC errors, and failure alarms

#5.1.10. Start continuous Tx mode

  • This command is used for continuous contract testing. Use the time command to set the sending time, and the count command to set the number of packets sent. If both time and count are not set, the continuous sending mode will be activated. If the background mode is not set, any character input can stop sending. If the cs mode is set, the carrier suppression signal is sent. The stone command can be used to send a single tone signal for testing frequency. If stone is set, the signal sent will not be a recognizable message. By default, hardware is used to send short duty cycle signals, and if pkt is set, software is used to control the sending.

○ iwpriv mp_ Ctx count=n, background, stop, pkt, cs, stone

*   <span class="ne-text">t: Set the contracting time</span>
*   <span class="ne-text">n: Set the number of contracts to be issued</span>
*   <span class="ne-text">Background: Set the backend contracting mode</span>
*   <span class="ne-text">Stop: Stop backend contracting</span>
*   <span class="ne-text">Pkt: Send tx message</span>
*   <span class="ne-text">CS: Send carrier suppression signal</span>
*   <span class="ne-text">Stone: Send Single Tone signal</span>

#5.1.11. Query air Rx statistics

  • Used for wireless message counting. When transmitting data packets, use this command to obtain the number of packets that have already been transmitted. When received, this command can be used to obtain the statistical quantity of correct and CRC error messages.

    • iwpriv mp_query

#5.1.12. Reset air Tx/Rx statistics

  • This command can recharge the count of messages. When sending, this command can reset the number of sent messages, and when receiving, it can reset the number of correct and CRC incorrect messages.

    • iwpriv mp_reset_stats

#5.2. Example of instruction usage

#5.2.1. Continuous Transmitting Test

iwpriv mp_start //enter MP mode

iwpriv mp_channel 1 //set channel to 1 . 2, 3, 4~11 etc.

iwpriv mp_bandwidth 40M=0,shortGI=0 //set 20M mode and long GI

iwpriv mp_ant_tx a //select antenna A for operation

iwpriv mp_txpower patha=44,pathb=44 //set path A and path B Tx power level

iwpriv mp_rate 108 //set OFDM data rate to 54Mbps,ex: CCK 1M = 2, CCK

5.5M = 11, KK, OFDM54M = 108 N Mode: MCS0 = 128,

MCS1 = 129…..etc.

iwpriv mp_ctx background //start continuous Tx

iwpriv mp_ctx stop //stop continuous Tx

iwpriv mp_stop //exit MP mode

#5.2.2. Continuous Packet Transmitting Test

iwpriv mp_start //enter MP mode

iwpriv mp_channel 1 //set channel to 1 . 2, 3, 4~11 etc.

iwpriv mp_bandwidth 40M=0,shortGI=0 //set 20M mode and long GI

iwpriv mp_ant_tx a //select antenna A for operation

iwpriv mp_txpower patha=44,pathb=44 //set path A and path B Tx power level

iwpriv mp_rate 108 //set OFDM data rate to 54Mbps, ex: CCK 1M = 2, CCK

5.5M = 11, KK, OFDM54M = 108 N Mode: MCS0 = 128,

MCS1= 129….. etc.

iwpriv mp_ctx background,pkt //start packet continuous Tx

iwpriv mp_ctx stop //stop continuous Tx

#5.2.3. Carrier Suppression Test

iwpriv mp_start //enter MP mode

iwpriv mp_channel 1 //set channel to 1 . 2, 3, 4~11 etc.

iwpriv mp_bandwidth 40M=0,shortGI=0 //set 20M mode and long GI

iwpriv mp_ant_tx a //select antenna A for operation

iwpriv mp_txpower patha=44,pathb=44 //set path A and path B Tx power level

iwpriv mp_rate 108 //set OFDM data rate to 54Mbps,ex: CCK 1M = 2, CCK

5.5M = 11, KK, OFDM54M = 108 N Mode: MCS0 = 128,

MCS1 = 129…..etc.

iwpriv mp_ctx background,cs //start sending carrier suppression signal

iwpriv mp_ctx stop //stop continuous Tx iwpriv mp_stop

#5.2.4. Single Tone Signal transmitting test

iwpriv mp_start //enter MP mode

iwpriv mp_channel 1 //set channel to 1 . 2, 3, 4~11 etc.

iwpriv mp_bandwidth 40M=0,shortGI=0 //set 20M mode and long GI

iwpriv mp_ant_tx a //select antenna A for operation

iwpriv mp_txpower patha=44,pathb=44 //set path A and path B Tx power level

iwpriv mp_rate 108 //set OFDM data rate to 54Mbps,ex: CCK 1M = 2, CCK

5.5M = 11, KK, OFDM54M = 108 N Mode: MCS0 = 128,

MCS1 = 129…..etc.

iwpriv mp_ctx background,stone //start sending single tone signal

iwpriv mp_ctx stop //stop sending single tone signal

iwpriv mp_stop //exit MP mode

#5.2.5. Receiving Test

iwpriv mp_start //enter MP mode

iwpriv mp_bandwidth 40M=1,shortGI=0 //set 40M mode and long GI

iwpriv mp_channel 6 //set channel to 6

iwpriv mp_ant_rx ab //select all 2 antennas for operation

iwpriv mp_arx start //start air Rx

iwpriv mp_query //get the statistics

iwpriv mp_arx stop //stop air Rx and show the statistics

iwpriv mp_stop //exit MP mode

___________________________________________________________________________________________________________

End.

Last Updated: 11/29/2023, 1:52:34 PM