MCUXpresso_MIMXRT1052xxxxB/boards/evkbimxrt1050/wifi_examples/wifi_test_mode
Yilin Sun 6baf4427ce
Updated to v2.15.000
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-03-18 23:15:10 +08:00
..
armgcc Updated to v2.15.000 2024-03-18 23:15:10 +08:00
linkscripts Updated to v2.14.0 2023-11-30 20:55:00 +08:00
FreeRTOSConfig.h Updated to v2.12.1 2022-12-08 23:33:41 +08:00
app_config.h Updated to v2.15.000 2024-03-18 23:15:10 +08:00
board.c Updated to v2.15.000 2024-03-18 23:15:10 +08:00
board.h Updated to v2.15.000 2024-03-18 23:15:10 +08:00
clock_config.c Update SDK to v2.13.0 2023-01-26 09:35:56 +08:00
clock_config.h Update SDK to v2.13.0 2023-01-26 09:35:56 +08:00
dcd.c SDK v2.11.1 2022-04-08 22:46:35 +08:00
dcd.h SDK v2.11.1 2022-04-08 22:46:35 +08:00
lwipopts.h Updated to v2.15.000 2024-03-18 23:15:10 +08:00
lwippools.h SDK v2.11.1 2022-04-08 22:46:35 +08:00
main.c Updated to v2.15.000 2024-03-18 23:15:10 +08:00
pin_mux.c SDK v2.11.1 2022-04-08 22:46:35 +08:00
pin_mux.h SDK v2.11.1 2022-04-08 22:46:35 +08:00
readme.md Updated to v2.15.000 2024-03-18 23:15:10 +08:00
readme_modules.txt Updated to v2.15.000 2024-03-18 23:15:10 +08:00
sdmmc_config.c Updated to v2.12.0 2022-08-24 23:30:23 +08:00
sdmmc_config.h Updated to v2.14.0 2023-11-30 20:55:00 +08:00
wifi_bt_config.c SDK v2.11.1 2022-04-08 22:46:35 +08:00
wifi_bt_config.h SDK v2.11.1 2022-04-08 22:46:35 +08:00
wifi_config.h Updated to v2.15.000 2024-03-18 23:15:10 +08:00
wifi_test_mode_v3_14.xml Updated to v2.15.000 2024-03-18 23:15:10 +08:00

readme.md

Overview

This is the Wi-Fi Test mode example to demonstrate the test mode support usage.

Before building the example application select Wi-Fi module macro in the app_config.h. (see #define WIFI_BOARD). For more information about Wi-Fi module connection see: readme_modules.txt Getting started guide on supported modules configuration: https://www.nxp.com/document/guide/getting-started-with-nxp-wi-fi-modules-using-i-mx-rt-platform:GS-WIFI-MODULES-IMXRT-PLATFORM

SDK version

  • Version: 2.15.000

Toolchain supported

  • IAR embedded Workbench 9.40.1
  • Keil MDK 5.38.1
  • GCC ARM Embedded 12.2
  • MCUXpresso 11.8.0

Hardware requirements

  • Micro USB cable
  • evkbimxrt1050 board
  • Personal Computer

Board settings

Prepare the Demo

  1. Connect a micro USB cable between the PC host and the CMSIS DAP USB port on the board
  2. Open a serial terminal with the following settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  3. Connect the Wi-Fi module.
  4. Download the program to the target board.
  5. Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.

Running the demo

  1. Add CLI init API in applications main function.
  2. Add WLAN CLI init API once WLAN Connection Manager gets initialized correctly.
  3. When the demo starts, a welcome message would appear on the terminal, press enter for command prompt: Press tab or type help to list out all available CLI commands.

wifi test mode demo Initialize CLI Initialize WLAN Driver MAC Address: 00:13:43:91:8A:3D [net] Initialized TCP/IP networking stack app_cb: WLAN: received event 10 app_cb: WLAN initialized WLAN Test Mode CLIs are initialized CLIs Available:

help wlan-version wlan-mac wlan-set-rf-test-mode wlan-set-rf-channel wlan-get-rf-channel wlan-set-rf-band wlan-get-rf-band wlan-set-rf-bandwidth wlan-get-rf-bandwidth wlan-get-rf-per wlan-set-rf-tx-cont-mode <enable_tx> <cw_mode> <payload_pattern> <cs_mode> <act_sub_ch> <tx_rate> wlan-set-rf-tx-antenna wlan-get-rf-tx-antenna wlan-set-rf-rx-antenna wlan-get-rf-rx-antenna wlan-set-rf-tx-power <tx_power> <path_id> wlan-set-rf-tx-frame <data_rate> <frame_pattern> <frame_len> <adjust_burst_sifs> <burst_sifs_in_us> <short_preamble> <act_sub_ch> <short_gi> <adv_coding> <tx_bf> <gf_mode>

wlan-set-rf-test-mode

RF Test Mode configuration successful

wlan-set-rf-channel 6

Channel configuration successful

wlan-get-rf-channel

Configured channel is: 6

wlan-set-rf-band 0

RF Band configuration successful

wlan-get-rf-band

Configured RF Band is: 2.4G

wlan-set-rf-bandwidth 0

Bandwidth configuration successful

wlan-get-rf-bandwidth

Configured bandwidth is: 20MHz

wlan-get-and-reset-rf-per

PER is as below: Total Rx Packet Count : 3 Total Rx Multicast/Broadcast Packet Count: 3 Total Rx Packets with FCS error : 2

wlan-set-rf-tx-antenna 1

Tx Antenna configuration successful

wlan-get-rf-tx-antenna

Configured Tx Antenna is: Main

wlan-set-rf-rx-antenna 2

Rx Antenna configuration successful

wlan-get-rf-rx-antenna

Configured Rx Antenna is: Aux

wlan-set-rf-tx-power 8 1 1

Tx Power configuration successful Power : 8 dBm Modulation : OFDM Path ID : PathB

wlan-set-rf-tx-frame 1 7 2730 256 0 0 0 0 0 0 0 0 0 ad:ad:23:12:45:57

Tx Frame configuration successful Enable : enable Tx Data Rate : 7 Payload Pattern : 0x00000AAA Payload Length : 0x00000100 Adjust Burst SIFS3 Gap : disable Burst SIFS in us : 0 us Short Preamble : disable Active SubChannel : low Short GI : disable Adv Coding : disable Beamforming : disable GreenField Mode : disable STBC : disable BSSID : AD:AD:23:12:45:57