Murata Electronics Corporation 18 6/2/2021
5. MODEM COMMANDS
The WIT2420 is configured and controlled through a series of commands. These commands
are sent to the modem directly when the modem is in Control Mode when the modem is in
Data Mode if the escape sequence is enabled. The command syntax is the same for either
method, a one- or two-letter command followed by one or more parameters. The modem
will respond with a two-byte message that indicates the new modem parameter value. The
commands are loosely grouped into five different categories: Serial commands, Network
commands, Protocol commands, Status commands and Memory commands. Each command
is described in detail below. In the descriptions, brackets ([,]) are used to denote a set of
optional arguments. Vertical slashes (|) separate selections. For example, given the string
wn[?|0..3f], some legal commands are wn?, wn0, wn3 and wna. Most commands which set
a parameter also have a ? option which causes the modem to respond with the current
parameter setting, e.g., wn? Each modem command must be followed by either a carriage
return or a line feed.
5.1. Serial Commands
These commands affect the serial interface between the modem and the host. The default
settings are 9600 bps and protocol mode 0.
Set Protocol Mode
00 = point-to-point transparent mode
01 = basic command and data only
02 = command, data and connection notification
04 = WIT2400 protocol mode
05 – 08 = reserved for future use
09 = mode 01 during transmit, transparent receive
0A = mode 02 during transmit, transparent receive
0C = mode 04 during transmit, transparent receive
0D – 10 = reserved for future use
11 = transparent transmit, mode 01 during receive
12 = transparent transmit, mode 02 during receive
14 = transparent transmit, mode 04 during receive