Section 8: I/O Management
BlueTree offers a complete set of AT commands to query/set its general purpose and dedicated
input and output pins. This section is only meant to offer a glimpse of how the user can
interact with the modem’s I/Os.
Refer to
Appendix B
for basic help on sending AT commands to the modem. For full details on
I/O management AT commands, read the
4000 & 5000 Series AT Command Reference
manual, a document available at
www.bluetreewireless.com
.
The modem’s
Event Reporting
feature (explained in
Section 10: Event Reporting
) covers I/Os
as well. This will allow the automation of some queries and set the modem to report to a local
or remote destination when an input value reaches a certain threshold.
Digital Output Control
The three outputs on the modem can be used to toggle peripheral equipment ON or OFF.
Peripherals such as lights, sirens, valves, door lock mechanisms, and/or ignitions can be
controlled through these I/Os.
Example of turning ON digital output 2:
AT+BDOSET=DO2,1
Digital Input State Query
The modem monitors all of its 4 general purpose digital inputs for a change in state, along
with the dedicated ignition input. The state of these inputs can be queried by sending the
following AT command:
AT+BDIGET?
Sample response from modem:
+BDIGET: DI1,0
+BDIGET: DI2,0
+BDIGET: DI3,0
+BDIGET: DI4,0
+BDIGET: IGN,1
Analog Input Value Query
The modem has a 10-bit Analog to Digital Converter (ADC) which allows it to monitor all of its
3 general purpose analog inputs for a change in state, along with the dedicated power input.
The value of these inputs can be queried by sending the following command:
AT+BAIGET?
Sample response from modem:
+BAIGET: PWR,13.553
+BAIGET: AI1,3.056
+BAIGET: AI2,1.987
+BAIGET: AI3,0.000