This hands-on application example outlines basic command mode operation for the RN1723.
You will learn:
- How to setup basic communications between your PC and the RN-1723-EK
- How to enter command mode
- Commands that review the current configuration settings of the module
- Commands that reset the module
|Tool|| About|| Purchase|
This lab requires the following software tools:
In order to communicate with the board, you will need to download and install FTDI USB Drivers on your PC.
The following procedure is performed on a Windows 7 computer, using Tera Term terminal emulator software.
You will be using Tera Term (or CoolTerm) to emulate a microcontroller that sends/receives text messages from the UART interface of the module.
After associating with an AP and obtaining an IP address from the router, the module creates a TCP/UDP socket connection with a server, then exchanges data with the server. The TCP/UDP operation is transparent to the UART interface (i.e. the MCU only sees the application data bytes on the UART interface).
This is depicted in the following diagram:
Connect Module to PC
After installing the FTDI USB Drivers on your PC, connect the RN-1723-EK to your computer using the supplied USB cable.
By default, the module powers up in data mode. This is indicated by the GREEN LED flashing slowly, and the RED LED flashing quickly.
Launch Tera Term, Open Assigned COM Port, Enter Command Mode
Start Tera Term, and open the assigned COM port number with the following settings:
- 9600 baud, 8-bits, No Parity, 1-stop bit
Since the module is currently in data mode, you will need to enter a special key sequence to switch to command mode.
Type the following key sequence in the terminal (note these keys are not echoed):
If proper communication has been established, the module should reply with:
You are now in command mode. Yay!
Query Current Module Configuration Settings
The first action command we will learn is how to query the module settings.
The following query retrieves all current settings in all categories:
Alternatively, each category's settings may be queried individually:
get wlan get ip get comm etc...
Here is a useful command to obtain the current firmware version of the module:
Change Specific Module Configuration Settings, Save to NVM
Typically, you will want to modify one or more settings in your application.
The following command sequence scans available access points, then updates several "wlan" configuration settings, enabling the module to automatically scan and associate with a specific WLAN access point every time it is restarted.
Note that to make the changes persistent across module restart, the "save" command must be issued.
scan set wlan join 1 set wlan ssid TCP0401_3 set wlan pass Microchip save
Exit Command Mode
At this point, you may exit command mode by typing the following command in the terminal:
The module should reply with:
Alternatively (and preferably if you've just "saved" a bunch of configuration updates), you can simply "reboot" the module (thereby applying those configuration changes) by typing:
You will see some status messages on reboot, followed by *READY*, indicating the module is in data mode
RN-1723-EK is a cost-effective tool that may be used to learn the ASCII command set for the RN1723 module, before embedding the module into your design.
To learn more about the RN-1723-EK or RN1723 command set, please view the following: