Справочник Пользователя для Murata Electronics North America 2410P

Скачать
Страница из 59
WIT2410P 
© 2000- 2008 Cirronet™ Inc 
22 
M-2410P-0000 Rev G2 
5.  MODEM COMMANDS 
 
The WIT2410 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[?|00..FF] 
Set Data Rate Divisor 
 
Data Rate    Divisor (hex) 
 
1200 bps  = 
BF
 
 
2400 bps  = 
5F
 
 
9600 bps  = 
17
 
 
14400 bps  = 
0F
 
 
19200 bps  = 
0B
 
 
28800 bps  = 
07
 
 
38400 bps  = 
05
 
 
57600 bps  = 
03
 
 
115200 bps  = 
01 
 
230400 bps  = 
00
 
sp[?|00..14] 
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