Operating Modes

The RN1723 WiFly module has two modes of operation, Data mode and Command mode.

Data Mode (Default)

In Data mode, the module can accept incoming TCP/UDP connections or initiate outgoing TCP/UDP connections:

  • The WiFly module acts as a Universal Asynchronous Receiver Transmitter (UART)-to-Wi-Fi® data pipe.
  • TCP/UDP headers are stripped or added by the module (transparently) to UART application data.
  • Application data written to UART is sent out over Wi-Fi.
  • Application data received over Wi-Fi is read from UART.

Command Mode

To configure parameters and/or view the current configuration, you must put the module into Command mode (also called Configuration mode).

Entering Command Mode

By default, the module is in Data mode after power-up. Sending the escape sequence "$" causes the module to enter Command mode.

You must send "$" together quickly with no additional characters before or after. You must not send a carriage return (<CR>) or line feed after the "$" to enter Command mode.

The module replies with "CMD" to indicate it is in Command mode.

Once in Command mode, you can configure the WiFly device using simple ASCII commands. Each command ends with a carriage return <CR>. Most valid commands return "AOK"; invalid ones return an "ERR" description.

To exit Command mode, send "exit<CR>". The module responds with "EXIT", indicating that it has exited Command mode and re-entered Data mode.

RN1723 contains an additional operating feature whereby you can toggle an I/O pin to alter between Data and Command modes. This feature saves time, reducing power consumption for battery applications.

See the "WiFly Command Reference Manual" for details about this feature.

Command Syntax & Structure

The "Command Mode" page covers basic Command mode syntax and structure.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.