Operating Modes
rn1723-operating-modes.png

The RN1723 WiFly module has two modes of operation:

  • Data mode
  • 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 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

This page covers basic command mode syntax and structure.

20th Annual
Microchip MASTERs Conference 2016
Register now - Deadline: July 29

JW Marriott Desert Ridge Resort-Phoenix, AZ

© 2016 Microchip Technology, Inc.
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.