O Management; Digital Output Control; Digital Input State Query - red lion BT-6821-AT-AC User Manual

Gateway wireless modems
Table of Contents

Advertisement

9
I/O Management
BlueTree offers a complete set of AT commands to query or set its general purpose and dedicated input and output pins.
This section is only meant to offer a basic outline of how the user can interact with the modem's I/Os.
The actual modem I/O depends on the model. Please refer to 1Product Overview for details.
The modem's Event Reporting feature (explained in the
automation of queries and set the modem to report to a local or remote destination when an input value reaches a
certain threshold, or to take action and trigger a digital output.
9.1

Digital Output control

The modem's digital output(s) 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
Example of turning OFF digital output 1:
AT+BDOSET=DO1,0
9.2

Digital Input state query

The modem monitors its general purpose digital input(s) as well as ignition 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 (the actual output depends on the modem model):
+BDIGET: DI1,0
+BDIGET: DI2,1
+BDIGET: DI3,0
+BDIGET: DI4,0
+BDIGET: IGN,1
Event Reporting
section) covers I/Os as well. This can allow the

Advertisement

Table of Contents
loading

Table of Contents