Skip to content

CI230X RF Test Instructions and Methods

Test environment construction

测试环境搭建

Figure 1 Test environment setup

◆ The DUT to be tested is a module or development board based on CI230X chip.
◆ During the test, the PC sends the corresponding ATE test command, and the PC interacts with the DUT through UART to configure various test modes.
◆ The test instrument is IQ/Test Convergence Meter/CMW Comprehensive Tester/Spectrum Analyzer and other instruments that can test RF performance indicators

Test preparation

Before conducting this test, please first check ☞CI-E05GT02S_MB Development Board Kit Description. All our RF tests are based on CI-E05GT02S_ MB development board suite.

Hardware test preparation

◆ CI-E05GT02S_ MB development board kit 1 PCS

◆ CI-E0XGT02S module 1 PCS

◆ One USB Type-C data cable

◆ USB to serial port tool

◆ Several DuPont lines

Software test preparation

◆ Burning test firmware: basic RF test burning 《CI230X Fixed Frequency Test Firmware》.

◆ Installation of USB to serial tool drive: ensure that the serial port drive has been correctly followed. If the serial port cannot be identified, it is recommended to install the USB to serial tool chip by yourself

Description of conduction test hardware

传导硬件连接图

Fig. 2 Conduction Hardware Connection Diagram

◆ Cut the wire to disconnect the antenna from the matching circuit. After connecting the cable to the matching circuit, ensure that the cable is well grounded.
◆ If based on CI-E05GT02S_ The MB development board kit conducts the conduction test. The USB to serial port circuit has been loaded on the board. Just short circuit the jumper caps at PE2 and PE3, switch the serial port selection switch to “Wi Fi”, and connect the development board to the computer through the USB Type-C data cable.
◆ If conducting test is conducted separately based on CI-E0XGT02S module, connect USB serial port tool to PE2 and PE3 pins of the module, and connect 3.3V power supply and GND to the module.
◆ Open the serial port tool. It is recommended to use SSCOM or other serial port tools. Set the baud rate to 115200, select the corresponding COM port, and then configure the test command according to the subsequent commands in this article to test each mode.

CI230X AT production test command description

Command format

Commands and parameters are separated by spaces or”,”. Each command ends with \r n.

Mandatory parameters are identified with<>, and optional parameters are identified with [], such as:

Command A[optional parameter 2]

Example:

AT+PVTCMD=EVM,TX,N,7,1,1000\r\n

or

AT+PVTCMD=EVM TX N 7 1 1000\r\n

Wi-Fi RF TX/RX control command

Command function

By sending such commands, RF transmission and reception control are carried out.

Change the channel command

Command:AT+PVTCMD=set_rf_channel <Chan>\r\n

note:

Chan is a required parameter. The value range is1~14 .

Return success:+set_rf_channel OK ch:6

Return failure:+set_rf_channel FAIL

Command:AT+PVTCMD=EVM,TX,Mode,Rate,Channel,PackageLength\r\n

◆ Mode: BL/BS/G/N
◆ Rate:
11B 1,2,5.5,11
11G 6,9,12,18,24,36,48,54
11N 0,1,2,3,4,5,6,7
◆ Channel:1~14
◆ PackageLength:1000,1024

Return success:+evm OK
Return failure:+evm FAIL

Example:

11B 1M CH1: AT+PVTCMD=EVM,TX,B,1,1,1000\r\n

Command:AT+PVTCMD=EVM,RX,Channel\r\n

Return success:+evm OK
Return failure:+evm FAIL

Single RX test

◆ Step1:start-up RX test

Command:AT+PVTCMD=EVM,RXS,1,CH\r\n

Return success:+evm OK
Return failure:+evm FAIL

◆ Step2: Stop test

Command:AT+PVTCMD=EVM,RXS,0,CH\r\n

Return success:+evm OK
Return failure:+evm FAIL

◆ Step3:Read data

Command:AT+PVTCMD=EVM,RXS,INFO\r\n

Return success:+evm OK and display the number of packages received and PER
Return failure:+evm FAIL

Set evm tx transmission interval

Command:AT+PVTCMD=evm_tx_interval <interval>\r\n

Parameter: interval value of 100 is used for evm tx test when the duty cycle is close to full packet (>% 95) to analyze the emission current; The interval value of 10000 (program default) is the normal EVM index test.

Note: Restore the default value of 10,000 after each startup.

AT+PVTCMD=evm must be used first_ tx_ IntervalThe command sets the tx transmission interval, and then uses the EVM command to test.

Bluetooth RF TX/RX control command

Receive test instructions

–CMD(H_CMD_LE_RX_TEST),The last byte of the instruction represents Rx Frequency = 0x00 ,Examples are as follows

<UART>TX:[01 1D 20 01 00]

Note: The first four bytes are fixed, and the last byte represents the test frequency point(0x00~0x27).

The corresponding relationship is as follows:

0x00=ch37, 0x01=ch0, 0x02=ch1.....

蓝牙频道图

Figure 2 Bluetooth Channel Diagram

Receive the response of the test command. Note: pay attention to the last byte of the response, and the correct return must be 0.

<UART>RX:[04:0E:04:05:1D:20:00]

Parameter interpretation:

CMD_COMPLETE_EVT(H_CMD_LE_RX_TEST) :

Length = 0x04

Nb Hci Command Packets = 0x05

Command Opcode = 0x201D (cmd_le_rx_test)

Status = 0x00 (success)

Send test instructions

–CMD(H_CMD_LE_TX_TEST):It includes the following three parameters

Tx Frequency = 0x00 (0x00~0x27)(Here, the channel needs to be converted to hexadecimal, that is, 00 corresponds to CH0, 13 corresponds to CH19, and 27 corresponds to CH39)

Data Length = 0x25

Packet Payload = 0x00 (0:PRBS9)(0x01:11110000 Packet )(0x02:10101010 Packet Payload)

Examples are as follows

<UART>TX:[01 1E 20 03 00 25 00]

Note: The first four bytes are fixed, and the last three bytes represent the test frequency, packet length, and packet content

Send the response to the test command. Note: Pay attention to the last byte of the response, and the correct return must be 0.

<UART>RX:[04:0E:04:05:1E:20:00]

CMD_COMPLETE_EVT(H_CMD_LE_TX_TEST):

Parameter explanation:

Length = 0x04

Nb Hci Command Packets = 0x05

Command Opcode = 0x201E (cmd_le_tx_test)

Status = 0x00 (success)

Test end instruction

–CMD(H_CMD_LE_TEST_END) Note: Fixed command, no parameter

<UART>TX:[01 1F 20 00]

Response to test end command

<UART>RX:[04:0E:06:05:1F:20:00:00:00]

Parameter explanation:

CMD_COMPLETE_EVT(H_CMD_LE_TEST_END)

Length = 0x06

Nb Hci Command Packets = 0x05

Command Opcode = 0x201F (cmd_le_test_end)

Status = 0x00 (success)

Nb Packets = 0x0000 (d0)

Note: If TX was previously sent_ TEST_ CMD, the last two bytes of the response content are all 0; If RX was previously sent_ TEST_ CMD, the last two bytes of the response content represent the number of packets actually received.

Enhanced receive test instruction

–CMD(H_CMD_LE_ENH_RX_TEST) :includes the following three parameters

Rx Channel = 0x00 (0x00~0x27)

Phy = 0x01 (0x01:1 Mbps PHY)【0x02:2M、0x03:coded】

Modulation mode Modulation Index = 0x00 (0:Standard Modulation, 1:Stable Modulation)

Examples are as follows:

<UART>TX:[01 33 20 03 00 01 00]

Enhanced response to receive test instructions

<UART>RX:[04:0E:04:05:33:20:00]

CMD_COMPLETE_EVT(H_CMD_LE_ENH_RX_TEST) :

Length = 0x04

Nb Hci Command Packets = 0x05

Command Opcode = 0x2033 (cmd_le_enh_rx_test)

Status = 0x00 (success)

Enhanced send test instruction

–CMD(H_CMD_LE_ENH_TX_TEST) :include the following 4 parameters

Tx Channel = 0x00

Length = 0xFB

Payload = 0x00 (0x00:PRBS9)(0x01:11110000 Packet )(0x02:10101010 Packet Payload)

Phy = 0x01 (0x01:1Mbps PHY)【0x02:2M、0x03:coded】

Examples are as follows:

<UART>TX:[01 34 20 04 00 FB 00 01]

Enhanced test command sending response

<UART>RX:[04:0E:04:05:34:20:00]

CMD_COMPLETE_EVT(H_CMD_LE_ENH_TX_TEST):

Length = 0x04

Nb Hci Command Packets = 0x05

Command Opcode = 0x2034 (cmd_le_enh_tx_test)

Status = 0x00 (success)

Reset command

<UART>TX:[01 03 0C 00]

Command sending process

First send the reset command, then send the test command

When the sending/receiving test ends, you need to send the test end command

Namely:

Reset command -> Send/receive test commands -> Test end command

Common Commands

Table 1 Description of Common Commands

Command Effect
BLE_Receive 01 1D 20 01 00
BLE_Send 01 1E 20 03 00 25 00
BLE_End test 01 1F 20 00
BLE_Prepare to enter the sideband test 01 1E 20 03 40 00 00
BLE_Exit sideband test 01 1E 20 03 50 00 00

Crystal compensation capacitor

Command function

Offset value setting of crystal compensation capacitance of module production line, including positive and negative values. The boundary of offset value range is to be determined.
After the command parameters are set, the module frequency offset compensation will take effect immediately, but will not be saved to flash. The frequency offset change can be observed on the test instrument.

Command demonstration

AT+PVTCMD=XTAL_CAP,3\r\n

AT+PVTCMD=XTAL_CAP,-5\r\n

Return success:+xtal_cap OK offset:3

Return failure:+xtal_cap FAIL

note:+1 = -1ppm

The setting here is crystal offset, not difference

Wi-Fi transmit power compensation

Command function

The module production line RF transmission power fine-tuning offset value setting has positive and negative values. The boundary of the offset value range is to be determined.
After the command parameters are set, the TX power compensation of the module takes effect immediately, but is not saved to flash. The power change can be observed on the test instrument.

Command demonstration

AT+PVTCMD=TX_POWER,7\r\n

AT+PVTCMD=TX_POWER,-4\r\n

Return success:+tx_power OK offset:7

Return failure:+tx_power FAIL

note:+4=0.5db

The setting here is crystal offset, not difference

Wi-Fi production line test results

Command function

After the module production line test is completed, write the test results to the module, 1=success, 0=failure. The module calls relevant interfaces to write the test results (all test success/failure, crystal compensation, transmission power) to flash
Note: This command is the last command of the production line test. The return of the command “OK r n” indicates that the results have been written to flash. After receiving this command, the instrument should power down the module to enter the next station to ensure successful flash writing

Command demonstration

AT+ATE_OK=1\r\n

AT+ATE_OK=0\r\n

Return success:OK\r\n