Table of Contents

Advertisement

Quick Links

UM11799
NXP Wi-Fi and Bluetooth Demo Applications for RW61x
Rev. 10.0 — 24 March 2025
Document information
Information
Keywords
Abstract
Content
Wireless MCU RW610/RW612, RW61x EVK board, MCUXpresso SDK, RTOS image
Provides step-by-step guidance to configure, compile, debug, flash and run the Wi-Fi
and Bluetooth sample applications available in the MCUXpresso SDK. It also covers IDE
configurations and the required tool set-up.
User manual

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UM11799 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for NXP Semiconductors UM11799

  • Page 1 UM11799 NXP Wi-Fi and Bluetooth Demo Applications for RW61x Rev. 10.0 — 24 March 2025 User manual Document information Information Content Keywords Wireless MCU RW610/RW612, RW61x EVK board, MCUXpresso SDK, RTOS image Abstract Provides step-by-step guidance to configure, compile, debug, flash and run the Wi-Fi and Bluetooth sample applications available in the MCUXpresso SDK.
  • Page 2: About This Document

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 1 About this document 1.1 Purpose and scope This document provides the steps to configure, compile, debug, flash, and run the Wi-Fi and Bluetooth sample applications available in the MCUXpresso SDK. It also covers IDE configurations and required tool setup.
  • Page 3: Tool Setup

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 2 Tool setup 2.1 Serial console tool setup The serial console tool is used to read out the demo application logs on the computer connected to RW61x EVK board.
  • Page 4: Tab. 1. Iperf Commands For Windows Remote Host

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 2.3 IPerf remote host setup Remote host setup for OS-Windows: To complete the setup: • Download IPerf version 2.1.9 [9]. To run the iPerf: • Use the command prompt and type the path where IPerf is downloaded >...
  • Page 5: Tab. 3. Iperf Commands For Cell Phone Remote Host

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Remote host setup for cell phones To run iPerf: • Download the iPerf application like Magic iPerf, or HE.NET Network Tools • Open the application and select iperf2. • Run the appropriate command from Table 2 Table 3. iPerf commands for cell phone remote host...
  • Page 6: Ipv4 And Ipv6 Tool Setup

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 2.4 IPv4 and IPv6 tool setup The IPv4 or IPv6s tool is used to send or receive data via TCP or UDP connection to interact with wifi_ipv4_ipv6_echo sample application (Section 4.5).
  • Page 7: Running A Demo

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3 Running a demo This section shows how to run a demo for Wi-Fi or Bluetooth LE using MCUXpresso IDE, Arm GCC, IAR IDE, or Keil IDE. Note: The following examples are used to run a Wi-Fi demo. The same steps apply to run a Bluetooth LE demo.
  • Page 8: Fig. 2. Confirm The Sdk Installation

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Click OK on the pop-up window (Figure Figure 2. Confirm the SDK installation UM11799 All information provided in this document is subject to legal disclaimers. © 2025 NXP B.V. All rights reserved.
  • Page 9: Fig. 3. Import An Example

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 2 - Import an example • Go to the Quickstart panel and select the option Import SDK examples (Figure Figure 3. Import an example UM11799 All information provided in this document is subject to legal disclaimers.
  • Page 10: Fig. 4. Select The Evaluation Board

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 3 - Select the EVK board • Select the evaluation board (Figure Figure 4. Select the evaluation board UM11799 All information provided in this document is subject to legal disclaimers.
  • Page 11: Fig. 5. Import Wifi_Cli Example

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 4 - Select a Wi-Fi or Bluetooth example and verify the default project options • For example, select wifi_examples > wifi_cli and click the Finish button to import the selected example into...
  • Page 12: Build The Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.1.2 Build the application To build the application: • Go to the Quickstart panel and select Build, or select the Build icon in the main toolbar • Verify the build result (success or fail) on the console window Figure 6. Select Build on Quickstart panel or in the toolbar...
  • Page 13: Run The Application In Debug Mode

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.1.3 Run the application in Debug mode To run the application in Debug mode: • Initiate the application debug using the debug icon in the toolbar or got the Quickstart panel and select Debug •...
  • Page 14 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Upon selecting the probe, the application is downloaded on the board and the program execution starts with the program counter set at the main() function (Figure Figure 8. Application download start of program execution UM11799 All information provided in this document is subject to legal disclaimers.
  • Page 15: Fig. 9. Run And Debug The Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Click Resume to start the application • To debug the application, use the step into, step over and step return buttons (Figure • To end the debugging session, use the Terminate button (Figure Figure 9. Run and debug the application...
  • Page 16: Fig. 10. Using The Gui Flash Tool For The Pre-Built Binary Or Locally Compiled Binary

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.1.4 Run the application program (no debugging) Use the following steps to flash the application program. • To flash the required binaries, select the GUI Flash Tool icon in the toolbar (Figure The GUI Flash Tool can be used to flash the pre-built binary or the locally compiled binary with *.axf or *.bin...
  • Page 17: Run A Demo Using Arm Gcc

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.2 Run a demo using Arm ® This section describes the steps to configure the command-line Arm ® GCC tools to build and run demo applications. The wifi_cli application is used as an example. The same steps apply to any other example application available with the MCUXpresso SDK.
  • Page 18: Build The Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.2.2 Build the application This section provides the steps to build the application using the Arm GCC toolchain: • Go to the armgcc directory of the application $ cd <SDK-top-dir>/boards/rdrw610/wifi_examples/wifi_cli/armgcc/ •...
  • Page 19: Fig. 11. Open The Project In Iar

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.3 Run a demo with IAR IDE This section provides the steps to open, configure, build, debug, and run the demo example using IAR Embedded Workbench IDE. The instructions and illustrations refer to IAR version 9.10.2.
  • Page 20: Fig. 12. Wi-Fi Board Selection In Iar

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.3.2 Project settings By default, the project is configured to use the WIFI_BOARD_AW_RW610 in app_config.h from the source code directory. Figure 12. Wi-Fi board selection in IAR UM11799 All information provided in this document is subject to legal disclaimers.
  • Page 21: Fig. 13. Application Build In Iar

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.3.3 Build the application To build the wifi_cli application: • Press the Make icon as illustrated below. Figure 13. Application build in IAR The details of the Build procedure are displayed in the Messages window of the Build tab.
  • Page 22: Fig. 15. Debugger Selection In Iar

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.3.4 Run the application in Debug mode The following steps describe how to run the application in Debug mode. The default debugger is CMSIS-DAP. However, if CMSIS-DAP is not selected, use the drop-down list to select it and press OK.
  • Page 23: Fig. 17. Application Debugging In Iar

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x The Download and Debug button is used to download the application to the target and set the program counter to the main( ) function of the application. • Press Go to start the application.
  • Page 24: Fig. 18. Binary Flashing In Iar

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.3.5 Flash the application program (no debugging) To flash the application program: • Go to Project > Download to flash the binary file. The Download menu provides the commands to flash the pre-built binary file and to erase the memory.
  • Page 25: Fig. 19. Pack Installer In Keil

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.4 Run a demo using Keil MDK/μVision This section details the steps to open, configure, build, debug, and run a demo example using Keil IDE. The Keil version used in this document is v5.38.
  • Page 26: Fig. 20. Open The Project In Keil

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.4.2 Open the project workspace To open the wifi_cli project, double-click the project workspace file wifi_cli.uvprojx located at: <install_dir>\boards\rdrw61x\wifi_examples\wifi_cli\mdk\wifi_cli.uvprojx Note: For a multi-project, use wifi_cli.uvmpw instead of wifi_cli.uvprojx. Figure 20. Open the project in Keil UM11799 All information provided in this document is subject to legal disclaimers.
  • Page 27: Fig. 21. Wi-Fi Board Selection In Keil

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.4.3 Project settings By default, the project is configured to use the WIFI_BOARD_RW610 in app_config.h from the source code directory. Figure 21. Wi-Fi board selection in Keil UM11799 All information provided in this document is subject to legal disclaimers.
  • Page 28: Fig. 22. Build And Rebuild Icons In Keil

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.4.4 Build the application To build the application: • Click the Build or Rebuild icons Figure 22. Build and Rebuild icons in Keil • Verify the build progress in the Build Output window.
  • Page 29: Fig. 24. Select The Debugger In Keil

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.4.5 Run the application in debug mode The default debugger is CMSIS-DAP. If CMSIS-DAP is not selected: use the Options icon in the toolbar, open the Debug tab, select the debugger in the drop-down list, and press OK.
  • Page 30: Fig. 27. Set The Program Counter In Keil

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Click the Start/Stop Debug Session icon to set the program counter to the main() function of the application Figure 27. Set the program counter in Keil • Press Run to start the application. Use Step, Step Over, Step Out, and Run to Cursor Line icons in the toolbar to debug the application.
  • Page 31: Fig. 29. Flashing A Binary File In Keil

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 3.4.6 Flash the application program (no debugging) To flash the application program: • Click the Download icon in the toolbar to flash the required binary file • Refer to Section 4.1.2.1...
  • Page 32: Fig. 30. Wifi_Cli Sample Application Components

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4 Wi-Fi sample applications This section describes the Wi-Fi example applications that are available in the SDK, and the steps to configure, compile, debug, flash, and execute these examples.
  • Page 33: Tab. 4. Sample Application Features

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Wi-Fi and iPerf features: Table 4. Sample application features Features Details Wi-Fi Mobile AP mode Wi-Fi Station mode Wi-Fi Scan Wi-Fi Roaming Wi-Fi TX Power Limit Wi-Fi Wi-Fi Regulatory Domain/Operating Class/Country...
  • Page 34: Fig. 31. Rw61X Flexspi Flash Layout

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.1 Flash the Wi-Fi firmware RW61x application and Wi-Fi firmware binary are stored in different partitions of FlexSPI NOR flash. The application reads Wi-Fi firmware during initialization and downloads it to RW61x internal Wi-Fi MCU to run. This section describes the steps to flash Wi-Fi firmware with SEGGER J-Link tool.
  • Page 35: Wifi_Cli Application Execution

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2 wifi_cli application execution 4.1.2.1 Start-up logs The following logs show on the console once RW61x EVK board is up and running and the console shows that Wi-Fi is ready for the operations. This section describes the available Wi-Fi commands. Press Enter for the command prompt.
  • Page 36 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x wlan-set-uap-hidden-ssid <0/1/2> wlan-eu-crypto-rc4 <EncDec> wlan-eu-crypto-aes-wrap <EncDec> wlan-eu-crypto-aes-ecb <EncDec> wlan-eu-crypto-ccmp-128 <EncDec> wlan-eu-crypto-ccmp-256 <EncDec> wlan-eu-crypto-gcmp-128 <EncDec> wlan-eu-crypto-gcmp-256 <EncDec> wlan-mem-access <memory_address> [<value>] wlan-eu-validation <value> wlan-set-antcfg <ant_mode> <evaluate_time> <evaluate_mode> wlan-get-antcfg wlan-scan-channel-gap <channel_gap_value> wlan-wmm-stat <bss_type>...
  • Page 37 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x wlan-set-toltime <value> wlan-set-rutxpwrlimit wlan-11ax-cfg <11ax_cfg> wlan-11ax-bcast-twt <bcast_twt_cfg> wlan-11ax-twt-setup <twt_cfg> wlan-11ax-twt-teardown <twt_cfg> wlan-11ax-twt-report <twt_report_get> wlan-get-tsfinfo <format-type> wlan-set-clocksync <mode> <role> <gpio_pin> <gpio_level> <pulse width> wlan-suspend <power mode> ping [-s <packet_size>] [-c <packet_count>] [-W <timeout in sec>] <ipv4/ipv6 address>...
  • Page 38: Help Command

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.2 Help command The help command is used to get the list of commands available in the wifi_cli sample application. # help help clear wlan-version wlan-mac wlan-thread-info wlan-net-stats wlan-set-mac <MAC_Address>...
  • Page 39 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x wlan-subscribe-event <action> <type> <value> <freq> wlan-reg-access <type> <offset> [value] wlan-uapsd-enable <uapsd_enable> wlan-uapsd-qosinfo <qos_info> wlan-uapsd-sleep-period <sleep_period> wlan-tx-ampdu-prot-mode <mode> wlan-rssi-low-threshold <threshold_value> wlan-rx-abort-cfg wlan-set-rx-abort-cfg-ext enable <enable> margin <margin> ceil <ceil_thresh> floor <floor_thresh>...
  • Page 40: Scan Command

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.3 Scan command The scan command is used to scan the visible access points. # wlan-scan Scan scheduled... # 1 network found: 38:E6:0A:C6:1A:EC "nxp" Infra channel: 11 rssi: -57 dBm...
  • Page 41: Station Mode (Connect To Ap)

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x For Micro-AP interface wlan-add <profile_name> ssid <ssid> ip:<ip_addr>,<gateway_ip>,<netmask> role uap [bssid <bssid>] [channel <channelnumber>] [wpa2 <psk/psk-sha256> <secret>]/[wpa3 sae <secret> [pwe <0/1/2>] [tr <0/1>]] [mfpc <0/1>] [mfpr <0/1>] If setting dtim: •...
  • Page 42 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x WPA3 security Use the following command to add the network profile to configure the device in station mode. Provide any profile name as well as use your AP SSID and passphrase in the argument as shown below: # wlan-add nxp_test_1 ssid WPA3_AP wpa3 sae 12345678 mfpc 1 mfpr 1 Added “nxp_test_1”...
  • Page 43: Wpa2 Station Disconnection (From Ap)

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.6 Wpa2 station disconnection (from AP) Disconnect from the AP network profile: # wlan-disconnect ======================================== app_cb: WLAN: received event 9 ======================================== app_cb: disconnected Remove the saved network profile: # wlan-remove abc Removed "abc"...
  • Page 44: Start The Mobile Ap

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.8 Start the mobile AP Use the following command to add the network profile to configure the device in AP mode. Use your AP SSID, IP details, role, channel, and security (passphrase if applicable) in the argument as shown below.
  • Page 45: Stop The Mobile Ap

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.9 Stop the mobile AP # wlan-stop-network ======================================== app_cb: WLAN: received event 19 ======================================== app_cb: WLAN: UAP Stopped ======================================== mobile AP "NXPAP" stopped successfully ======================================== DHCP Server stopped successfully ======================================== 4.1.2.10 STA filter for mobile AP...
  • Page 46: Iperf Server/Client

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.11 iPerf server/client The sample application implements the protocol used by iPerf performance measurement tool. The performance is measured between RW61x EVK board and a computer running the iPerf tool. The instructions in this guide use an RW61x EVK board.
  • Page 47 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Note: Refer to Section 2.3 for iperf remote host setup. The following commands are used for IPerf initialization: IPerf usage: # iperf Incorrect usage Usage: iperf [-s|-c <host>|-a] [options]...
  • Page 48 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x iPerf TCP Start IPerf server: # iperf -s # IPERF initialization successful New TCP client (settings flags 0x0) ------------------------------------------------- TCP_DONE_SERVER (RX) Local address : 192.168.10.1 Port 5001 Remote address : 192.168.10.2...
  • Page 49 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Start iPerf Client (TX and RX individual): # iperf -c 192.168.10.2 -r # IPERF initialization successful ------------------------------------------------- TCP_DONE_CLIENT (TX) Local address : 192.168.10.1 Port 49155 Remote address : 192.168.10.2...
  • Page 50 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x iPerf UDP For UDP tests, specify the local interface IP address using -B option. • Start iPerf server # iperf -s -u -B 192.168.10.1 # IPERF initialization successful New UDP client (settings flags 0x0) Sending report back to client (0x80).
  • Page 51: Wi-Fi Power Save

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.12 Wi-Fi power save The following commands are used to save Wi-Fi power in different power save modes. IEEE power save For IEEEPS mode Wi-Fi station should be connected with AP.
  • Page 52 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x WNM power save • WNM power save usage # wlan-wnm-ps Usage: wlan-wnm-ps <0/1> Error: Specify 0 to Disable or 1 to Enable If enable, please specify sleep_interval Example: wlan-wnm-ps 1 5 •...
  • Page 53: Host Sleep

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.13 Host sleep The following command is used to configure host sleep parameters and put host MCU into Sleep mode PM2. • wlan-auto-host-sleep command usage # wlan-auto-host-sleep Usage: wlan-auto-host-sleep <enable> <mode> <rtc_timeout> <periodic>...
  • Page 54: Suspend

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x RTC timer timeout value is 10 seconds, and the host enters low power periodically: # wlan-auto-host-sleep 1 pm 10 1 Power Manager is selected for host sleep Host will enter low power periodically...
  • Page 55: Wake-Up Conditions

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.15 Wake-up conditions The wlan-wakeup-condition command is used to configure Wi-Fi wake-up conditions. Set up an STA connection or start the uAP accordingly before using the command. • Command usage:...
  • Page 56 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Ping MEF entry: # wlan-multi-mef ping 3 Add ping MEF entry successful • Delete all MEF entries: # wlan-multi-mef del delete all MEF entries Successful UM11799 All information provided in this document is subject to legal disclaimers.
  • Page 57: Wi-Fi Reset

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.17 Wi-Fi reset The following command is used to enable, disable, and reset Wi-Fi. # wlan-reset Usage: wlan-reset <options> 0 to Disable WiFi 1 to Enable WiFi 2 to Reset WiFi...
  • Page 58: D Commands

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.19 802.11d commands The following command is used to enable 802.11d. • Enable 802.11d # wlan-11d-enable Usage: wlan-11d-enable <sta/uap> <0/1>, 0: disable, 1: enable This command is only used to enable/disable 11D Please use wlan-set-regioncode command to set region 4.1.2.20 Roaming commands...
  • Page 59: Csi Commands

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.21 CSI commands Refer to [1]. UM11799 All information provided in this document is subject to legal disclaimers. © 2025 NXP B.V. All rights reserved. User manual Rev. 10.0 — 24 March 2025...
  • Page 60: Net Monitor Commands

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.22 Net monitor commands The following commands are used to configure net monitor. • Configure net monitor parameters # wlan-set-monitor-param Usage : wlan-set-monitor-param <action> <monitor_activity> <filter_flags> <radio_type> <chan_number> action...
  • Page 61: Ecsa Command

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.23 ECSA command The following command is used to configure mobile AP ECSA. # wlan-uap-set-ecsa-cfg Usage : wlan-uap-set-ecsa-cfg <block_tx> <oper_class> <new_channel> <switch_count> <bandwidth> block_tx : 0 -- no need to block traffic, 1 -- need block traffic oper_class : Operating class according to IEEE std802.11 spec...
  • Page 62: Eu Crypto Commands

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.24 EU crypto commands The following commands are used to encrypt and decrypt preset sample data using AES-WRAP algorithm. • Command usage # wlan-eu-crypto Usage: Algorithm AES-WRAP encryption and decryption verification wlan-eu-crypto <EncDec>...
  • Page 63: Set/Get The Antenna Configuration

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.25 Set/get the antenna configuration Commands to set or get the antenna configurations: # wlan-set-antcfg Usage: wlan-set-antcfg <ant_mode> <evaluate_time> <evaluate_mode> <ant_mode>: Bit 0 -- Fixed to Tx/Rx antenna 1...
  • Page 64: Other Useful Cli Commands

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.2.26 Other useful CLI commands Use the other commands to get the Wi-Fi information, driver version, firmware version, list of the networks and other information. • Get the Wi-Fi information...
  • Page 65 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Get the Wi-Fi MAC address # wlan-mac MAC address STA MAC Address: C0:95:DA:00:D5:0F UAP MAC Address: C0:95:DA:00:D5:0F • Get the list of Wi-Fi networks # wlan-list 2 networks: "abc"...
  • Page 66 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Get the mobile AP channel # wlan-get-uap-channel uAP channel: 6 • Set the maximum station count for the mobile AP # wlan-set-max-clients-count Usage: wlan-set-max-clients-count max_clients_count • Ping the IP address...
  • Page 67 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Get the Wi-Fi STA and mobile AP log # wlan-get-log Usage: wlan-get-log <sta/uap> <ext> # wlan-get-log sta dot11GroupTransmittedFrameCount dot11FailedCount dot11RetryCount dot11MultipleRetryCount dot11FrameDuplicateCount dot11RTSSuccessCount dot11RTSFailureCount dot11ACKFailureCount dot11ReceivedFragmentCount dot11GroupReceivedFrameCount dot11FCSErrorCount...
  • Page 68 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Get WMM TX statistics # wlan-wmm-stat 1641493: [wifi] Warn: Dump priv[0] ac_queue[0] 1641497: [wifi] Warn: Dump priv[0] ac_queue[1] 1641501: [wifi] Warn: Dump priv[0] ac_queue[2] 1641505: [wifi] Warn: Dump priv[0] ac_queue[3]...
  • Page 69: Add Commands To The Wifi_Cli Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.1.3 Add commands to the wifi_cli sample application User-definable commands can be called using CLI wrappers with the appropriate arguments. The new CLI command can be added in the existing demo application by using the existing structure that defines the list of commands.
  • Page 70: Wifi_Webconfig Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.2 wifi_webconfig sample application This section describes wifi_webconfig sample application and its configuration along with the application execution. The wifi_webconfig sample application uses the uAP feature with an HTTP server to configure the Client mode and connect to an AP.
  • Page 71 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Figure 34. wifi_webconfig flow diagram UM11799 All information provided in this document is subject to legal disclaimers. © 2025 NXP B.V. All rights reserved. User manual Rev. 10.0 — 24 March 2025...
  • Page 72: Wifi_Webconfig Sample Application Features

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x The wifi_webconfig application features are summarized in the table below. Table 5. wifi_webconfig sample application features Features Details Wi-Fi Mobile AP mode Wi-Fi Station mode Wi-Fi Security (WPA2 by default for Mobile AP)
  • Page 73: Wifi_Webconfig Application Execution

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.2.2 wifi_webconfig application execution Refer to Section 3.2 Section 3.3 for instructions to: • Import a project • Build an application • Run an application in Debug mode • flash an application program The instructions are given for a few IDEs.
  • Page 74: Connect The Device To The Ap

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Figure 35. wifi_webconfig website in AP mode 4.2.2.4 Connect the device to the AP Click the desired SSID on the webpage. If the AP uses Wi-Fi security, a dialog box opens and asks to enter a password.
  • Page 75 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Figure 36. Connection attempt to AP using wifi_webconfig application Note: When the device has received by the configurations, the mobile AP goes down and the device switches to Client mode. To reconnect to the website, switch to the AP network and use the device (Client mode) IP (printed on the console) to open the website.
  • Page 76: Device Reboot With The Configurations Stored In Mflash

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x For example, Figure 37 shows the attempt to reconnect to website. The current Wi-Fi mode client is highlighted on the webpage shown in Figure Figure 37. wifi_webconfig website in client mode 4.2.2.5 Device reboot with the configurations stored in mflash...
  • Page 77: Clear The Settings On The Website

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.2.2.6 Clear the settings on the website To clear the configurations saved in mflash, click the Clear Board settings button available on the web page. [i] mflash_save_file success Starting Access Point: SSID: nxp_configuration_access_point, Chnl: 1 144614: [wlcm] Warn: NOTE: uAP will automatically switch to the channel that station is Now join that network on your device and connect to this IP: 192.168.1.1...
  • Page 78 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Figure 39. Clear configurations saved in mflash using the website Figure 40. Clear configuration success message in wifi_webconfig application UM11799 All information provided in this document is subject to legal disclaimers.
  • Page 79: Wifi_Cert Application Features

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.3 wifi_cert sample application This section describes the wifi_cert application to demonstrate the CLI support to handle and enable Wi-Fi configuration for different features. This sample application includes commands related to the Wi-Fi certification process.
  • Page 80 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x WLAN CLIs are initialized ======================================== ENHANCED WLAN CLIs are initialized ======================================== CLIs Available: ======================================== help mem_rd <addr> [length] mem_wr <addr> <value> wlan-version wlan-mac wlan-set-mac MAC_Address wlan-set-tx_buf_size buf_size <buf_size> bss_type <bss_type>...
  • Page 81: Set/Get The Region Code

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.3.1.2 Set/get the region code The following commands are used to set and get the region code. Command usage: # wlan-set-regioncode Usage: wlan-set-regioncode <region-code> where, region code = 0x00 : World Wide Safe Mode...
  • Page 82: Set/Get The Active/Passive Channel List

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.3.1.3 Set/get the active/passive channel list The following commands are used to set and get active and/or passive channel list. Set the channel list: #wlan-set-chanlist ------------------------------------------------- Number of channels configured: 15...
  • Page 83: Set/Get Tx Rate Configuration

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.3.1.4 Set/get TX rate configuration The following commands are used to set and get TX rate. Command to set TX rate configuration: # wlan-set-txratecfg Invalid arguments Command usage: wlan-set-txratecfg <sta/uap> <format> <index> <nss> <rate_setting>...
  • Page 84 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x MCS7 MCS8 MCS9 MCS10 MCS11 <nss> - This parameter specifies the NSS. It is valid only for HE If <format> is 3 (HE), NSS1 NSS2 <rate_setting> - This parameter can only specifies the GI types now.
  • Page 85: Get The Management Frame Protection Capability

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.3.1.5 Get the management frame protection capability Command to get the management frame protection (MFP) capability: # wlan-get-pmfcfg Management Frame Protection Capability: No 4.3.1.6 Set/get antenna diversity configuration The following commands are used to get and set antenna diversity configuration.
  • Page 86: Tab. 8. Ed Mac Parameters

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.3.1.7 Set/get energy detection (ED) MAC feature This feature enables the European Union (EU) adaptivity test as per the compliance requirements in the ETSI standard. Depending on the device and front-end loss, the ED threshold offset (ed_ctrl_2g.offset and ed_ctrl_5g.offset) must be adjusted.
  • Page 87: Tab. 9. Ed Mac 2.4 Ghz Command Operations

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x For 2.4 GHz band: In this example, the 2.4 GHz ED-MAC threshold is lowered by 1 dB. Table 9. ED MAC 2.4 GHz command operations Step Operation Command Get ED-MAC status #wlan-get-ed-mac-mode EU adaptivity for 2.4 GHz band: Enabled...
  • Page 88: Uart_Wifi_Bridge Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.4 uart_wifi_bridge sample application The uart_wifi_bridge application servers as a bridge between Windows NXP Labtool and RW61x Wi-Fi/ Bluetooth LE/802.15.4 radios for wireless calibration and RF test. The application: •...
  • Page 89: Run The Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.4.3.1 Run the application This application runs automatically in Bridge mode and does not require any user interaction. Note: The UART for serial console is used as communication port between NXP Labtool and RW61x MFG firmware.
  • Page 90: Wifi_Ipv4_Ipv6_Echo Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.5 wifi_ipv4_ipv6_echo sample application The wifi_ipv4_ipv6_echo application demonstrates a TCP and UDP echo on the lwIP TCP/IP stack with FreeRTOS. The demo can use both TCP or UDP protocol over IPv4 or IPv6 and acts as an echo server. The application sends back the packets received from the PC, which can be used to test whether a TCP or UDP connection is available.
  • Page 91: Help Command

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.5.1.2 Help command SHELL>> help "help": List all the registered commands "exit": Exit program "echo_tcp_client ip_addr port": Connects to specified server and sends back every received data. Usage: ip_addr:...
  • Page 92: Connect To Found Access Point

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.5.1.4 Connect to found access point Connect to the network using one of the following commands. wlan_connect <(b)ssid> wlan_connect_with_password <(b)ssid> <password> Note: SSID is the name of the network and BSSID is the MAC address of the interface.
  • Page 93: Tcp Client Echo

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.5.1.6 TCP client echo Run ncat on the remote host computer. C:\Users\nxp>ncat -v -l -p 10001 Ncat: Version 7.92 ( https://nmap.org/ncat ) Ncat: Listening on :::10001 Ncat: Listening on 0.0.0.0:10001 IPv4 Run the command echo_tcp_client <Remote host PC IPv4 addr>...
  • Page 94 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x IPv6 Run the command echo_tcp_client <Remote host PC IPv6 addr FE80::***%<zone ID>> 10001 in the demo shell. SHELL>> echo_tcp_client fe80::5178:81e4:639:89ca%6 10001 Creating new socket. Connecting... Connected. Echoing data. Use end command to return...
  • Page 95: Tcp Server Echo

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.5.1.7 TCP server echo Run the command echo_tcp_server 10001 in the demo shell. SHELL>> echo_tcp_server 10001 Creating new socket. Waiting for incoming connection. Use end command to return... IPv4 To connect with the TCP server, run the command ncat -v <Demo IPv4 addr>...
  • Page 96 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x IPv6 To connect with the TCP server, run the command ncat -v <Demo IPv6 addr FE80::***%<zone ID>> 10001 on the remote Host PC. C:\Users\nxp>ncat -v FE80::2E9:3AFF:FEB9:E035%6 10001 Ncat: Version 7.92 ( https://nmap.org/ncat ) Ncat: Connected to fe80::2e9:3aff:feb9:e035:10001.
  • Page 97: Udp Echo

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.5.1.8 UDP echo Run the command echo_udp 10001 in the demo shell. SHELL>> echo_udp 10001 Creating new socket. Waiting for datagrams Use end command to return... IPv4 To connect with UDP server, run the command ncat -v -u <Demo IPv4 addr> 10001 on the remote host C:\Users\nxp>ncat -v -u 10.10.0.203 10001...
  • Page 98: Tab. 11. Wifi_Cli_Prov Sample Application Features

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.6 wifi_cli_prov sample application The wifi_cli_prov application is another sample application used to demonstrate the CLI support to handle and enable Wi-Fi configurations. The application includes most of the commands of wifi_cli application and additional provisioning related commands like WPS and DPP.
  • Page 99: Wifi_Cli_Prov Application Execution

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.6.1 wifi_cli_prov application execution Refer to Section 3.1 Section 3.4 for instructions on importing a project, building an application, running an application in debug mode, and flashing an application program for a few IDEs.
  • Page 100 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x wlan-net-monitor-cfg wlan-set-monitor-filter <opt> <macaddr> wlan-set-monitor-param <action> <monitor_activity> <filter_flags> <radio_type> <chan_number> wlan-wmm-stat <bss_type> wlan-generate-wps-pin wlan-start-wps-pbc wlan-start-wps-pin <8 digit pin> wlan-scan-channel-gap <channel_gap_value> wlan-start-dpp <channel> wlan-stop-dpp wlan-get-signal wlan-set-tx-omi <value> wlan-set-toltime <value> wlan-get-txpwrlimit <subband>...
  • Page 101: Wps Commands

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.6.1.2 WPS commands The following commands are used to set up Wi-Fi connections with WPS PIN and PBC methods. The commands apply to both STA and micro AP modes.
  • Page 102: Set/Get Rtc Time

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.6.1.4 Set/get RTC time The following commands are used to set and get the RTC time. Command usage: # wlan-set-rtc-time Error: invalid number of arguments Usage: wlan-set-rtc-time <year> <month> <day> <hour> <minute> <second>...
  • Page 103 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 72 61 31 17 30 15 06 03 55 04 0a 0c 0e 57 69 2d 46 69 20 41 6c 6c 69 61 6e 63 65 31 1d 30 1b 06...
  • Page 104 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x d9 98 12 01 75 56 04 29 89 5b 4c 9a c7 c2 ba f3 69 11 88 79 41 d5 a2 79 22 6f 2b 4c 49 2d 66 53...
  • Page 105 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x db df 4b 23 4b 4d f9 02 1e 33 02 81 81 00 ea c5 06 01 3d 51 31 27 7d 01 c8 87 ba 72 88 cd 43 02...
  • Page 106: Tab. 12. Wifi_Httpsrv Sample Application Features

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.7 wifi_httpsrv sample application The wifi_httpsrv application demonstrates an HTTP server on the lwIP TCP/IP stack with FreeRTOS. The application acts as an HTTP server and sends a web page back to the PC which uses an Internet browser to send a request for HTTP connection.
  • Page 107: Wifi_Httpsrv Application Execution

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.7.2 wifi_httpsrv application execution Refer to Section 3.1 Section 3.4 for instructions on importing a project, building an application, running an application in debug mode, and flashing an application program for a few IDEs.
  • Page 108: Open The Website In The Pc Browser

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.7.2.3 Open the website in the PC browser Use the board IP-192.168.0.10 to open the website in the browser of the PC in the same AP network. The web page opens.
  • Page 109: Cgi Example

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.7.2.4 CGI example The CGI example shows how to send an HTTP post/get request to the server through CGI functionality. The input text is sent to the HTTP server and stored in memory by sending an HTTP post request. An HTTP get request to the server retrieves the stored text.
  • Page 110 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Figure 45. Using HTTP get Figure 46. HTTP get response UM11799 All information provided in this document is subject to legal disclaimers. © 2025 NXP B.V. All rights reserved. User manual Rev.
  • Page 111: Polling Example

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.7.2.5 Polling example The polling example reads and displays the RTC time from the HTTP server every second. Figure 47. Polling example page UM11799 All information provided in this document is subject to legal disclaimers.
  • Page 112: Authorization Example

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.7.2.6 Authorization example The example of HTTP authorization uses the pre-set username and password “admin”. static const HTTPSRV_AUTH_USER_STRUCT users[] = { {"admin", "admin"}, {NULL, NULL} /* Array terminator */ Figure 48. Sign in pop-up on the authorization example page...
  • Page 113 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Figure 49. Capturing the username and password to sign in Figure 50. Authorization example page once signed in UM11799 All information provided in this document is subject to legal disclaimers. © 2025 NXP B.V. All rights reserved.
  • Page 114: Websocket Example

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.7.2.7 WebSocket example The WebSocket example uses HTML5. The WebSocket connection is set up by sending a request from the browser on the PC. The WebSocket echo application runs on the board and sends back the messages sent to the server.
  • Page 115 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Figure 52. Sending a message on Websocket example page UM11799 All information provided in this document is subject to legal disclaimers. © 2025 NXP B.V. All rights reserved. User manual Rev.
  • Page 116: Modify The Static Web Page

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.7.2.8 Modify the static web page To modify the contents of the static web page of wifi_httpsrv sample application: • Modify, add or delete files in the directory boards\<board_name>\wifi_examples\wifi_httpsrv\webpage •...
  • Page 117: Wifi_Mqtt Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.8 wifi_mqtt sample application The wifi_mqtt application demonstrates an MQTT client on the lwIP TCP/IP stack with FreeRTOS. The wifi_mqtt application features are summarized in Table Table 14. wifi_httpsrv sample application features...
  • Page 118: Connect To Mqtt Broker And Send Messages

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.8.1.3 Connect to MQTT broker and send messages When the board is connected to Wi-Fi, it connects to HiveMQ MQTT broker to subscribe and publish messages, and to receive distributions from MQTT broker.
  • Page 119: Wifi_Test_Mode Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.9 wifi_test_mode sample application The wifi_test_mode application demonstrates the CLI support for various RF and regulatory compliance tests. The application enables RF testing for the Wi-Fi module, and the measurement of RF parameters such as transmit power (2.4 GHz and 5GHz), RF packet counts, RF antenna configuration, and transmit standard 802.11...
  • Page 120: Prerequisite Commands

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.9.1.2 Prerequisite commands This section includes the commands to start Wi-Fi RF test. Enable Wi-Fi RF mode Command to set Wi-Fi mode to RF test mode: # wlan-set-rf-test-mode RF Test Mode configuration successful...
  • Page 121 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Set/get Wi-Fi RF bandwidth Command usage: # wlan-set-rf-bandwidth Usage: wlan-set-bandwidth <bandwidth> <bandwidth>: 0: 20MHz 1: 40MHz Command to set RF bandwidth: # wlan-set-rf-bandwidth 0 Bandwidth configuration successful Command to get RF bandwidth:...
  • Page 122: Display And Clear The Received Wi-Fi Packet Count

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.9.1.3 Display and clear the received Wi-Fi packet count Command to clear the received packet count and display the received multi-cast and error packet counts. # wlan-get-and-reset-rf-per PER is as below:...
  • Page 123: Wi-Fi Tx Power Configuration

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.9.1.5 Wi-Fi Tx power configuration The following command is used to set the transmitter output power at the antenna using the stored calibration data. The power level is in dBm.
  • Page 124: Set Wi-Fi Transmitter In Continuous Wave (Cw) Mode

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.9.1.6 Set Wi-Fi transmitter in continuous wave (CW) mode The following command is used to set Wi-Fi transmitter in CW mode. Command usage: # wlan-set-rf-tx-cont-mode Usage: wlan-set-rf-tx-cont-mode <enable_tx> <cw_mode> <payload_pattern> <cs_mode> <act_sub_ch>...
  • Page 125 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Table 15. 802.11n/a/g/b data rate index Data rate index Data rate 1Mbits/sec 2Mbits/sec 5.5Mbits/sec 11Mbits/sec Reserved 6Mbits/sec 9Mbits/sec 12Mbits/sec 18Mbits/sec 24Mbits/sec 36Mbits/sec 48Mbits/sec 54Mbits/sec Reserved HT_MCS 0 HT_MCS 1 HT_MCS 2...
  • Page 126 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Table 16. 802.11ac/802.11ax data rate index Rate number format : (XYRR) X: 1 – 11ac VHT MCS rates, 2 – 11ax HE MCS rates Y: Number of streams. 1 – SS1...
  • Page 127: Transmit Standard 802.11 Packets

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.9.1.7 Transmit standard 802.11 packets The following command is used to continuously transmit packets, with an adjustable time gap of 0 to 255 microseconds between packets. Command usage: # wlan-set-rf-tx-frame Usage: wlan-set-rf-tx-frame <start>...
  • Page 128: Transmit Ofdma Packets

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Command to disable Tx frame: # wlan-set-rf-tx-frame 0 Tx Frame configuration successful Enable : disable Tx Data Rate Payload Pattern : 0x00000000 Payload Length : 0x00000001 Adjust Burst SIFS3 Gap...
  • Page 129 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Set/get trigger frame The following commands are used to transmit OFDMA packets and get the OFDMA configurations. Command to set trigger frame: # wlan-set-rf-trigger-frame Set rf trigger frame successful...
  • Page 130: Set/Get Otp Mac Address

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Figure 53. RU index values for 20 MHz Command to set trigger frame parameters: # wlan-set-trigger-frame-parameters 23 61 Set_trigger_frame_parameters: trig_user_info_field_ru_alloc = 61 Command to get trigger frame parameters: # wlan-get-trigger-frame-parameters 23...
  • Page 131: Set/Get Otp Calibration Data

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.9.1.10 Set/get OTP calibration data Commands to set/get OTP calibration data: Set OTP calibration data • Replace the OTP calibration data in wifi/wlcmgr/wlan_test_mode_tests.c file. const uint8_t otp_cal_data[] = {...
  • Page 132: Get The Wi-Fi Driver And Firmware Versions

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.9.1.11 Get the Wi-Fi driver and firmware versions Command to get the Wi-Fi driver and firmware version: # wlan-version WLAN Driver Version : v1.3.r34.p46 WLAN Firmware Version : rw610w-V1, RF878X, FP91, 18.91.2.p8, PVE_FIX 1 4.9.1.12 Get the Wi-Fi MAC address...
  • Page 133: Example Of Command Sequence To Adjust Tx Power In 2.4 Ghz

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.9.1.13 Example of command sequence to adjust Tx power in 2.4 GHz The radio is configured as: • 2.4 GHz band • Channel 6 • 20 MHz bandwidth • 6 Mbps legacy data rate •...
  • Page 134 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Table 17. Tx command sequences for 2.4 GHz ...continued Step Operation Command Set output power to +15 dBm # wlan-set-rf-tx-power 15 1 0 Tx Power configuration successful Power : 15 dBm...
  • Page 135: Example Of Command Sequence To Adjust Tx Power In 5 Ghz

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.9.1.14 Example of command sequence to adjust Tx power in 5 GHz The radio is configured as: • 5 GHz band • Channel 36 • 20 MHz bandwidth • MCS0 HT data rate •...
  • Page 136 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Table 18. Tx command sequence for 5 GHz ...continued Step Operation Command Restart transmission # wlan-set-rf-tx-cont-mode 1 0 0xBBBAAA 0 3 14 Tx continuous configuration successful Enable : enable Continuous Wave Mode : disable...
  • Page 137: Wifi_Wpa_Supplicant Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.10 wifi_wpa_supplicant sample application The wifi_wpa_supplicant application demonstrates the CLI support usage using wpa supplicant (host-based). The application includes similar commands as wifi_cli application, and new commands for host-based supplicant.
  • Page 138: Start-Up Logs

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.10.1.1 Start-up logs A welcome message pops up on the terminal when the demo application starts. This section describes the available Wi-Fi commands. Press Enter for the command prompt. Press tab or type help to list out all available CLI commands.
  • Page 139 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x wlan-mbo-set-cell-capa <cell capa: 1/2/3(default)> wlan-mbo-set-oce <oce: 1(default)/2> wlan-set-okc <okc: 0(default)/1> wlan-pmksa-list wlan-pmksa-flush wlan-set-scan-interval <scan_int: in seconds> wlan-sta-filter <filter mode> [<mac address list>] wlan-get-log <sta/uap> <ext> wlan-tx-pert <0/1> <STA/UAP> <p> <r> <n>...
  • Page 140 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x wlan-set-tsp-cfg <enable> <backoff> <highThreshold> <lowThreshold> <dutycycstep> <dutycycmin> <highthrtemp> <lowthrtemp> wlan-get-tsp-cfg wlan-get-signal wlan-set-ips <option> wlan-set-debug-htc <count> <vht> <he> <rxNss> <channelWidth> <ulMuDisable> <txNSTS> <erSuDisable> <erSuDisable> <erSuDisable> wlan-enable-disable-htc <option> wlan-set-su <0/1> wlan-set-forceRTS <0/1>...
  • Page 141: Add A Network Profile

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.10.1.2 Add a network profile Before adding a network profile for station (STA) and mobile AP (uAP) modes, check the command usage for different EAP methods. # wlan-add Usage:...
  • Page 142: Station Mode (Connect To Ap)

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.10.1.3 Station mode (connect to AP) This section demonstrates how to connect to External AP with Enterprise security. Note: A second RW61x is used as an External AP on which the radius certificates are configured. To configure...
  • Page 143 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x WPA3 enterprise security To use WPA3 Suite B or Suite B 192 bit enterprise security: • Add wpa3-sb or wpa3-sb-192 before EAP security type (applies to all EAP securities).
  • Page 144 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Other security options # wlan-add oweNet ssid oweNet_AP owe_only mfpc 1 mfpr 1 EAP_SIM_WPA2 # wlan-add abc ssid EAP eap-sim id 1232010000000000 pass \ 90dca4eda45b53cf0f12d7c9c3bc6a89:cb9cccc4b9258e6dca4760379fb82581:000000000123 EAP_SIM_WPA3 # wlan-add abc ssid EAP wpa3-sb-192 eap-sim id 1232010000000000 pass \...
  • Page 145: Mobile Ap Mode

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.10.1.4 Mobile AP mode Use the following commands to add the network profile to configure the device in Enterprise AP mode. Use the SSID, IP details, role, channel, security, user id and password of your AP in the argument.
  • Page 146 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Get the associated clients list: # wlan-get-uap-sta-list Number of STA = 1 STA 1 information: ===================== MAC Address: C0:95:DA:01:1B:6C Power mfg status: power save Rssi : -43 dBm •...
  • Page 147 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Other security options # wlan-add oweNet ssid oweNet_AP ip:192.168.10.1,192.168.10.1,255.255.255.0 role uap owe_only mfpc 1 mfpr 1 EAP_SIM_WPA2 # wlan-add abc ssid EAP ip:192.168.10.1,192.168.10.1,255.255.255.0 role uap channel 36 eap-sim id 1232010000000000 pass \...
  • Page 148 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x FT_Enterprise_WPA3 # wlan-add abc ssid FTEAP ip:192.168.10.1,192.168.10.1,255.255.255.0 role uap channel 36 wpa3-sb-192 eap-tls-ft-sha384 id client1 key_passwd whatever mfpc 1 mfpr 1 UM11799 All information provided in this document is subject to legal disclaimers.
  • Page 149: Certificates And Key Configurations For Enterprise Security

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.10.1.5 Certificates and key configurations for enterprise security For enterprise security, radius server (hostapd radius server) and server/client certificates are mandatory. This section describes how to configure CA certificate, client/server certificate, and client/server private key for WPA2/WPA3 enterprise.
  • Page 150 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Change the array name and size in client-key.h file: const unsigned char client_key_der[] unsigned int client_key_der_len Server-cert xxd -i server-cert.der server-cert.h • Change the array name and size in server-cert.h file:...
  • Page 151: Wps

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.10.1.6 WPS This section describes WPS related configurations. Two primary approaches are available for network setup within Wi-Fi Protected Setup: push-button and PIN entry. WPS-PBC • Start WPS PBC on the station:...
  • Page 152 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x WPS-PIN • Generate the WPS PIN: # wlan-generate-wps-pin WPS PIN is: 27170991 • Start WPS PIN on the station: # wlan-start-wps-pin 27170991 ml1: WPS-PIN-ACTIVE Started WPS PIN session with pin as: 27170991...
  • Page 153 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Start WPS PIN on the mobile AP: # wlan-start-ap-wps-pin 27170991 Started AP WPS PIN session with pin as: 27170991 ua2: STA c0:95:da:01:1f:c2 IEEE 802.11: associated (aid 1) : CTRL-EVENT-EAP-STARTED c0:95:da:01:1f:c2...
  • Page 154: Wi-Fi Easy Connect (Dpp)

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.10.1.7 Wi-Fi easy connect (DPP) The Wi-Fi easy connect feature provides a simple and secure method to provision and connect Wi-Fi devices to a network without entering a password.
  • Page 155 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x • Get the QR code URI: # wlan-dpp-bootstrap-get-uri 1 Bootstrapping QR Code URI: DPP:C:81/11;M:c095da0120c2;V:3;K:MDkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDIgADhQ2oZmGPEq3pAv8zBZgbYFk1UK \ 54C0OjyikiQoUapO4=;; Note: The generated QR code is used on Device1 with the command wlan-dpp-qr-code.
  • Page 156 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Output on Device2: : DPP-RX src=c0:95:da:01:1b:6c freq=2462 type=0 : DPP-TX dst=c0:95:da:01:1b:6c freq=2462 type=1 : DPP-TX-STATUS dst=c0:95:da:01:1b:6c result=SUCCESS : DPP-RX src=c0:95:da:01:1b:6c freq=2462 type=2 : DPP-AUTH-SUCCESS init=0 : GAS-QUERY-START addr=c0:95:da:01:1b:6c dialog_token=0 freq=2462...
  • Page 157 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 7 - Authenticate DUT (STA) and Device1 (STA) • Add the QR code: # wlan-dpp-qr-code DPP:C:81/11;M:c095da011b6c;V:3;K:MDkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDIgACZ2k+yc2zLlHad Bnnr5HvJcMzd6lNRJtHM+r7olKbzJY=;; DPP qr code id = 1 Note: Wthe QR code addition is successful, the bootstrapping info id is returned and used as input in for DPP_AUTH_INIT command.
  • Page 158 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Console output on Device1: ml1: DPP-RX src=c0:95:da:01:2b:dc freq=2462 type=0 ml1: DPP-TX dst=c0:95:da:01:2b:dc freq=2462 type=1 ml1: DPP-TX-STATUS dst=c0:95:da:01:2b:dc freq=2462 result=SUCCESS ml1: DPP-RX src=c0:95:da:01:2b:dc freq=2462 type=2 ml1: DPP-AUTH-SUCCESS init=0 ml1: DPP-CONF-REQ-RX src=c0:95:da:01:2b:dc...
  • Page 159: Cloud Keep Alive

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 4.10.1.8 Cloud keep alive The cloud keep alive feature provides a method to send keep-alive packets from Wi-Fi to the cloud server periodically in host suspend state. The host can set keep-alive parameters like TCP/IP header info to the firmware when it goes to suspend.
  • Page 160 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 4 - Start cloud keep alive on RW61x. # wlan-cloud-keep-alive start id <id> dst_mac <dst_mac> dst_ip <dst_ip> dst_port <dst_port> Table 20. Cloud keep alive command parameters Command parameters Description <id>...
  • Page 161 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 8 - Set the host in suspend state. # wlan-auto-host-sleep 1 manual Manual mode is selected for host sleep # wlan-suspend 2 Enter low power mode PM2 Once RW61x enters sleep state, packets show on the sniffer (Figure 55 Figure 55. Packets on sniffer...
  • Page 162: Useful Wi-Fi Apis

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 5 Useful Wi-Fi APIs This section describes a few Wi-Fi driver APIs with their usage. These driver APIs can be called from the user application directly with the appropriate arguments to implement the required changes in the driver/firmware.
  • Page 163: Usage And Output

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 5.1.3 Usage and output This section includes the output console logs and code snippets for reference. Use this section to add the feature-related commands in your user application. To add new CLI command in the existing wifi_cli sample application, refer to Section 4.1.3.
  • Page 164 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Set ED MAC mode using the structure parameter in driver (set) API: static void wlan_ed_mac_mode_set(int argc, char *argv[]) int ret; wlan_ed_mac_ctrl_t wlan_ed_mac_ctrl; #ifdef CONFIG_5GHz_SUPPORT if (argc != 5) #else...
  • Page 165 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Get ED MAC mode values filled address of wlan_ed_mac_ctrl structure passed as a parameter to the driver (get) API: static void wlan_ed_mac_mode_get(int argc, char *argv[]) int ret; wlan_ed_mac_ctrl_t wlan_ed_mac_ctrl;...
  • Page 166: Bluetooth Low Energy Applications

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6 Bluetooth Low Energy applications This section describes the Bluetooth Low Energy example applications that are available in the SDK. It also provides the instructions to configure, compile, debug, flash, and execute these examples.
  • Page 167: Peripheral_Hps Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.1 peripheral_hps sample application This application demonstrates the Bluetooth LE peripheral role. More specifically, the application exposes the HTTP Proxy GATT Service. 6.1.1 Flash Bluetooth LE firmware RW61x application and Bluetooth firmware binary are stored in different partitions of FlexSPI NOR flash. The application reads the Bluetooth firmware during initialization and downloads it to RW61x internal Bluetooth MCU to run.
  • Page 168: Peripheral_Hps Application Execution

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.1.2 peripheral_hps application execution Refer to Section 3.2 Section 3.3 for instructions to: • Import a project • Build an application • Run an application in Debug mode • flash an application program The instructions are given for a few IDEs.
  • Page 169: Central_Hpc Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.2 central_hpc sample application This application demonstrates very basic Bluetooth LE central role functionality on RW61x EVK board. It scans for other Bluetooth LE devices and establishes a connection to the first Bluetooth LE device with a strong enough signal.
  • Page 170: Run The Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.2.1.1 Run the application To run the demo application downloaded on the board, reset the power supply of RW61x EVK board. When the demo starts, the following message about the demo shows on the console.
  • Page 171: Peripheral_Pxr Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.3 peripheral_pxr sample application This application demonstrates the Bluetooth LE Peripheral role on RW61x EVK board. More specifically, this application exposes the Proximity Reporter (including LLS, IAS, and TPS) GATT Service.
  • Page 172: Central_Pxm Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.4 central_pxm sample application This application demonstrates very basic Bluetooth LE Central role functionality on RW61x EVK board by scanning for other Bluetooth LE devices and establishing a connection to the first one with a strong enough signal.
  • Page 173: Run The Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.4.1.1 Run the application To run the demo application downloaded on the board, reset the power supply of RW61x EVK board. When the demo starts, the following message about the demo shows on the console.
  • Page 174: Peripheral_Ht Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.5 peripheral_ht sample application This application demonstrates the Bluetooth LE Peripheral role on RW61x EVK board. More specifically, this application exposes the HT (Health Thermometer) GATT Service. When a Bluetooth device connects, it generates dummy temperature values.
  • Page 175: Central_Ht Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.6 central_ht sample application This application demonstrates very basic Bluetooth LE Central role functionality on RW61x EVK board. It scans for other Bluetooth LE devices and establishes a connection to the first Bluetooth LE device with a strong enough signal.
  • Page 176: Peripheral_Ipsp Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.7 peripheral_ipsp sample application This application demonstrates the Bluetooth LE Peripheral role on RW61x EVK board. More specifically, this application exposes the Internet Protocol Support GATT Service. 6.7.1 peripheral_ipsp application execution Refer to Section 3.2...
  • Page 177: Central_Ipsp Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.8 central_ipsp sample application This application demonstrates Bluetooth LE Central role functionality. It scans for other Bluetooth LE devices and establishes a connection to the first device with a strong enough signal.
  • Page 178: Peripheral_Beacon Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.9 peripheral_beacon sample application This application demonstrates the Bluetooth LE Peripheral role on RW61x EVK. More specifically, this application exposes three type of beacon types. • General beacon: Describes Bluetooth LE Broadcaster role functionality by advertising –...
  • Page 179: Wireless Uart Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.10 Wireless UART sample application The application implements a custom GATT-based Wireless UART Profile that emulates UART over Bluetooth LE. The central and peripheral roles can be switched with the user button (SW4). To test the service/profile, you can use the "IoT Toolbox"...
  • Page 180 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x The example works in central role. It automatically starts scanning and connects to any discovered wireless_uart example. The application in central mode can connect up to eight devices. Each time you apply a short press on SW4 button, if a new device is found, the example scans and connects to the wireless UART service.
  • Page 181: Shell Sample Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.11 Shell sample application The sample application demonstrates the interactive shell mode of Bluetooth commands and APIs. It provides full control over the Bluetooth interface and basic Bluetooth operations such as advertising/scanning, device discovery, connection and pairing.
  • Page 182 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x +---"clear": clear <remote: addr, all> +---"security": security <security level BR/EDR: 0 - 3, LE: 1 - 4> [force-pair] +---"bondable": bondable <bondable: on, off> +---"bonds": bonds [none] +---"connections": connections [none] +---"auth": auth <method: all, input, display, yesno, confirm, oob, status, none>...
  • Page 183 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Example of Bluetooth LE scanning devices The Bluetooth LE host must be initialized before executing the scan command: @bt> bt.init @bt> Bluetooth initialized Settings Loaded @bt> bt.scan on Bluetooth active scan enabled @bt>...
  • Page 184 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x GATT central role side Initialize the host @bt> bt.init Scan for advertising packets @bt> bt.scan on Stop the scanning after a few seconds @bt> bt.scan off Select the target board and create a new connection. If the target is not listed, repeat scan on and scan off then enter bt.connect <remote address: XX:XX:XX:XX:XX:XX>...
  • Page 185: Bluetooth Le Rf Test Mode Operations

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 6.11.1.2 Bluetooth LE RF test mode operations This section includes the commands for Bluetooth LE RF test. Note: command complete event can be found in HCI log. The U-DISK should be connected to USB port to get HCI log captured.
  • Page 186: Load External Calibration Data

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 7 Load external calibration data This section shows how to load external Wi-Fi or Bluetooth calibration data. 7.1 Wi-Fi calibration data The Wi-Fi calibration data is used to attain tighter RF performance tolerance for the Wi-Fi radio. The calibration data can be stored in the on-chip OTP memory or in as external configuration file.
  • Page 187 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 4 – Define test_get_cal_data in /wifi/wlcmgr/wlan_enhanced_tests.c. Step 5 – Define the function wlan-get-cal-data in /wifi/wlcmgr/wlan_enhanced_tests.c. The command is used to read back the calibration data. Step 6 – Build and flash the Wi-Fi example application onto RW61x.
  • Page 188: Bluetooth Calibration Data

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 7.2 Bluetooth calibration data Bluetooth calibration data is used to configure Bluetooth parameters such as the TX power class, crystal frequency, and front-end configuration. The calibration data can be stored in the on-chip OTP memory or externally in an application.
  • Page 189 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 2 – Verify that PLATFORM_VendorSpecificInit() is called in /framework/Platform/fwk_platform_ble.c. Note: By default, Bluetooth initialization (bt.init) calls this function to load the external Bluetooth calibration with the correct timings to load.
  • Page 190 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 3 – Comment out or delete all but the first 4 bytes of the existing annex 55 parameters hci_cal_data_params in /framework/Platform/fwk_platform_ble.c.. The first four parameters do not change.
  • Page 191 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 4 – Create BtCalData_ext.conf file using Labtool command 53 [4]. Open the file. Figure 59. First 28 bytes of BtCalData_ext.conf file Step 5 – Starting from “37”, convert 28 bytes of BtCalData_ext.conf to unsigned 4-byte aligned little-endian format.
  • Page 192 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 6 – Comment out or delete all the existing annex 100 parameters hci_cal_data_annex100_params / framework/Platform/fwk_platform_ble.c. Figure 61. hci_cal_data_annex100_params with default values commented out Step 7 – Refer back to the BtCalData_ext.conf file.
  • Page 193 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 8 – Starting from “64”, convert 16 bytes of BtCalData_ext.conf to unsigned 4 byte aligned little endian format and define hci_cal_data_params in /framework/Platform/fwk_platform_ble.c Figure 63. Updated hci_cal_data_annex100_params array with custom calibration data Step 9 –...
  • Page 194: Coexistence Application

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 8 Coexistence application The coexistence application allows both Wi-Fi and Bluetooth LE to exist simultaneously. The standard SDK release (2.16.000 and above) includes the coexistence source and configuration files in the /middleware/ wireless/coex directory.
  • Page 195 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 3 – Flash the coexistence application by dragging and dropping the coexistence application binary into Segger J-Link tool. Example of command: loadbin ${SDK-top-dir}/middleware/wireless/coex/build_rw612/../coex_wpa_supplicant.bin, 0x08000000 Example of command output:...
  • Page 196 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Step 6 – Flash the Bluetooth LE firmware by dragging and dropping the Bluetooth LE firmware binary into Seggger J-Link tool. Example of command: loadbin ${SDK-top-dir}/components/conn_fwloader/fw_bin/rw61x_sb_ble_a2.bin,0x08540000 Example of command output: 'loadbin': Performing implicit reset &...
  • Page 197: Abbreviations

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 9 Abbreviations Table 23. Abbreviations Abbreviation Definition Auto channel selection Advanced encryption standard Access point Application program interface Amazon web services Bluetooth LE Bluetooth Low Energy Basic service set Common gateway interface Command line interface ®...
  • Page 198 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Table 23. Abbreviations ...continued Abbreviation Definition Network address translation OFDMA Orthogonal frequency division multiple access OFDMA Orthogonal frequency division multiple access One time programmable Push button configuration Personal identification number...
  • Page 199: References

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 10 References Application note – AN14281: Channel State Information on FreeRTOS (link) Application note – AN14463: Antenna Diversity User manual – UM11798: Getting Started with Wireless on RW61x Evaluation board Running RTOS User manual –...
  • Page 200: Note About The Source Code In The Document

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x 11 Note about the source code in the document The example code shown in this document has the following copyright and BSD-3-Clause license: Copyright 2022-2025 NXP Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1.
  • Page 201: Revision History

    NXP Wi-Fi and Bluetooth Demo Applications for RW61x 12 Revision history Table 24. Revision history Document ID Release date Description UM11799 v.10.0 24 March 2025 • Changed the document access to public. • No changes in the content. • UM11799 v.9.0 8 January 2025 Section 3 "Running a...
  • Page 202 NXP Wi-Fi and Bluetooth Demo Applications for RW61x Table 24. Revision history ...continued Document ID Release date Description UM11799 v.6.0 9 October 2023 • Section 4.1.1 "Flash the Wi-Fi firmware": updated the firmware name • Section 3.2.3 "Flash the application program (no debugging)": updated the...
  • Page 203 NXP Wi-Fi and Bluetooth Demo Applications for RW61x Table 24. Revision history ...continued Document ID Release date Description UM11799 v.3.0 16 January 2023 • Section 3.2.3 "Flash the application program (no debugging)": corrected the start address of the application image UM11799 v.2.0 10 August 2022 •...
  • Page 204: Legal Information

    NXP Semiconductors. In the event that customer uses the product for design-in and use in In no event shall NXP Semiconductors be liable for any indirect, incidental, automotive applications to automotive specifications and standards, punitive, special or consequential damages (including - without limitation - customer (a) shall use the product without NXP Semiconductors’...
  • Page 205 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Amazon Web Services, AWS, the Powered by AWS logo, and FreeRTOS Apple — is a registered trademark of Apple Inc. — are trademarks of Amazon.com, Inc. or its affiliates.
  • Page 206: Table Of Contents

    UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Tables Tab. 1. iPerf commands for Windows Remote Host ..4 Tab. 13. Wi-Fi configurations of wifi_httpsrv Tab. 2. iPerf commands for Linux remote host ....4 application ............. 106 Tab.
  • Page 207 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Fig. 59. First 28 bytes of BtCalData_ext.conf file ..191 Fig. 62. Last 16 bytes of BtCalData_ext.conf file ..192 Fig. 60. Updated hci_cal_data_params array with Fig. 63. Updated hci_cal_data_annex100_params custom calibration data .........
  • Page 208 UM11799 NXP Semiconductors NXP Wi-Fi and Bluetooth Demo Applications for RW61x Contents About this document ........2 4.1.2.17 Wi-Fi reset ............57 Purpose and scope ........... 2 4.1.2.18 802.11k commands ..........57 Considerations ........... 2 4.1.2.19 802.11d commands ......... 58 Tool setup ............3 4.1.2.20 Roaming commands ........58...
  • Page 209 Please be aware that important notices concerning this document and the product(s) described herein, have been included in section 'Legal information'. © 2025 NXP B.V. All rights reserved. For more information, please visit: https://www.nxp.com Document feedback Date of release: 24 March 2025 Document identifier: UM11799...

Table of Contents