Digi International Inc XBEEPRO2 Manual Do Utilizador

Página de 155
XBee®/XBee‐PRO® ZB RF Modules 
© 2011 Digi International, Inc.
     134
I/O Commands
I/O Commands
AT
Command
Name and Description
Node 
Type
1
Parameter Range
Default
IR
IO Sample Rate. Set/Read the IO sample rate to enable periodic sampling. For periodic 
sampling to be enabled, IR must be set to a non-zero value, and at least one module pin 
must have analog or digital IO functionality enabled (see D0-D8, P0-P2 commands). The 
sample rate is measured in milliseconds.
CRE
0, 0x32:0xFFFF (ms)
0
IC
IO Digital Change Detection. Set/Read the digital IO pins to monitor for changes in the 
IO state. IC works with the individual pin configuration commands (D0-D8, P0-P2). If a 
pin is enabled as a digital input/output, the IC command can be used to force an 
immediate IO sample transmission when the DIO state changes. IC is a bitmask that can 
be used to enable or disable edge detection on individual channels.  Unused bits should 
be set to 0.
Bit (IO pin):    0 (DIO0)4 (DIO4)8 (DIO8)
1 (DIO1) 5 (DIO5) 9 (DIO9)
2 (DIO2) 6 (DIO6) 10 (DIO10)
3 (DIO3) 7 (DIO7) 11 (DIO11)
CRE
:  0 - 0xFFFF
0
P0
PWM0 Configuration. Select/Read function for PWM0.
CRE
0 = Disabled
1 = RSSI PWM
3 - Digital input, 
monitored
4 - Digital output, default 
low
5 - Digital output, default 
high
1
P1
DIO11 Configuration. Configure options for the DIO11 line of the RF module.
CRE
0 - Unmonitored digital 
input
3- Digital input, 
monitored
4- Digital output, default 
low
5- Digital output, default 
high
0
P2
DIO12 Configuration. Configure options for the DIO12 line of the RF module.
CRE
0 - Unmonitored digital 
input
3- Digital input, 
monitored
4- Digital output, default 
low
5- Digital output, default 
high
0
P3
DIO13 Configuration.  Set/Read function for DIO13.  This command is not yet 
supported.
CRE
0, 3-5
0 – Disabled
3 – Digital input
4 – Digital output, low
5 – Digital output, high
D0
AD0/DIO0 Configuration. Select/Read function for AD0/DIO0.
CRE
1 - Commissioning button 
enabled
2 - Analog input, single 
ended
3 - Digital input
4 - Digital output, low
5 - Digital output, high
1
D1
AD1/DIO1 Configuration. Select/Read function for AD1/DIO1.
CRE
 0, 2-5
0 – Disabled
 2 - Analog input, single 
ended
 3 – Digital input
4 – Digital output, low
5 – Digital output, high
0
D2
AD2/DIO2 Configuration. Select/Read function for AD2/DIO2.
CRE
0, 2-5
0 – Disabled
2 - Analog input, single 
ended
 3 – Digital input
4 – Digital output, low
5 – Digital output, high
0