Murata Electronics North America 910M Manual Do Utilizador

Página de 47
WIT910 
5.  MODEM COMMANDS 
 
The WIT910 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 
?
 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. 
 
Command Description 
sd[?|02..FF] 
Set Data Rate Divisor 
 
Data Rate    Divisor (hex) 
 2400 
bps 
8F
 
 9600 
bps 
23
 
 14400 
bps 
17
 
 19200 
bps 
11
 
 28800 
bps 
B
 
 38400 
bps 
8
 
 57600 
bps 
5
 
 115200 
bps 
= 2 
 
 
sp[?|00..14] 
Set Protocol Mode 
 
00
  
=  point-to-point transparent mode 
 
01
  
=  basic command and data only 
 
02
  
=  command, data and connection notification 
 
03
 – 08   =  reserved for future use 
 
09
  
=  mode 01 during transmit, transparent receive 
 
0A
  
=  mode 02 during transmit, transparent receive 
 
0C
 – 10   =  reserved for future use 
 
11
  
=  transparent transmit, mode 01 during receive 
 
12
  
=  transparent transmit, mode 02 during receive 
 
Set Data Rate Divisor 
Sets the serial bit rate between the modem and the host.  This command takes effect 
immediately and will require adjusting the host serial rate to agree.  Nonstandard rates 
may be programmed by entering a data rate divisor computed with the following formula: 
© 2000- 2004 Cirronet Inc 
19 
M-0910-0000 Rev -