Command Manual
W55RP20-S2E AT Command Overview
W55RP20-S2E provides various commands for the product’s setting and control. Each command is composed of a 2 byte alphabet character strings and all capital letters. By using these commands users can add script to the serial device or main MCU for product settings, and also can create a program for controlling the W55RP20-S2E module via network.
Each command can operate read/write depending on the parameter, and there is also a read only command.
Entering the command and switching the command mode of the serial port device is done using the data UART port. The debug UART port is not supported for command entering or operation.
Identical 2-byte character strings is used for setting the product with commands via serial and Ethernet network, but there will a distinction of the sending frame form. Thus this document will cover explanations of all commands and guides for each sending methods and its form of frames.
The different command modes are as following.
-
The Configuration tool provided by WIZnet uses the identical command set to control W55RP20-S2E.
-
For example, when the MC command for checking the MAC address and the VR command for checking the firmware are identical.
Abbreviations
Abbreviation | Description |
---|---|
CR | Carriage Return, moves the cursor to the far left(starting) position ('\r', 0x0D) |
LF | Line Feed, moves the cursor to the new line below ('\n', 0x0A) |
N | Number of commands |
RW | Read / Write |
RO | Read only |
WO | Write only |
Usage of Command Set
Control Device Using Serial Command Mode
You can use either of the two methods below to enter serial command mode.
1. Enter command mode using hardware trigger pin
- Use the HW_TRIG pin of the W55RP20-S2E to enter command mode.
- Upon turning the power on, check the pin to enter command mode. Use the trigger pin to re-enter the command mode when rebooting.
- The trigger pin should be pull-up, and operates as low active.
- This method is used when users wish to change settings while the product operation is initiated.
- Set the hardware HW_TRIG pin to Low.
- Power on the W55RP20-S2E.
· When operating in serial command mode, users can check the following message via Debug UART port.
· <code>> SEG:AT Mode </code>
- Enter the Command and Parameter that needs setting via serial port((Data UART port)).
- Switch to data transmission mode(GW mode) using [[#ex|EX]] command.
· If the switch to data transmission mode is successful, users can check the following message via Debug UART port.
· <code>> SEG:GW Mode </code>
2. Enter command mode using command mode switch code
- Users can enter command mode using the command mode switch code provided by W55RP20-S2E.
- The command mode switch codes can be used only if it is enabled in the configuration tool. (default: Enabled)
- The command mode switch code is composed of 3-byte Hex codes, and can be changed to a different value if needed. The code only accepts Hex value. (default: Hex [2B][2B][2B])
- Check if 'Serial command mode switch code' is enabled at the configuration tool and the 3-bytes 'command mode switch code'.
- Enter the ‘command mode switch code’ via data UART port to change modes.
· Read below what you need to be cautious about when switching to command mode.
· When operating in serial command mode, users can check the following message via Debug UART port.
· <code>> SEG:AT Mode </code>
- Enter the Command and Parameter that needs setting via serial port.
- Use [[#ex|EX]] command to switch to data transmission mode.
· When operating in data transmission mode, users can check the following message via Debug UART port.
· <code>> SEG:GW Mode </code>
-
Command mode switch trigger code via Data UART port
-
Char '+++'
Please be cautious when using the trigger code to switch command mode.
- There has to be a time gap of **at least 500ms** at the start and end of the ‘command mode switch code’ in order it to be read as switch code.
- The entering time in between each byte of the ‘3-byte command mode switch code’ has to be **below 500ms**.
- Do not add CR or LF at the end of the command mode switch code((Conversely, the serial command after mode switch must end with CR or LF.)).
- The default values of 1 and 2 above are **500ms**; these values change to the timer value if the timer value of the serial data packing option is set to a certain value.
Serial Command Frame Format
You must include CR and LF at the end of each command. CR and LF must be included at the end of each commands when multiple commands are entered simultaneously.
Get Request
[2-bytes Command Code] [CR] [LF]
- Enter command without parameter.
- The response relevant to the command will return.