4000/5000 Modems’ User Guide
Chapter 9:
IO Management
BlueTree offers a complete set of AT commands to query/set its general purpose and
dedicated input and output pins. These commands can be sent to the modem:
Locally via the serial, USB or Ethernet ports
Remotely over the air
Please refer to BlueTree’s AT Command Reference document for more details:
http://www.bluetreewireless.com/support/downloads/documents/
Digital Output Control
The three outputs on the modem an be used to turn ON or OFF peripheral equipment
such as light, a siren, a valve, lock/unlock a door, enable/disable a starter,…
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 as
follows:
AT+BDIGET?
+BDIGET: DI1,0
+BDIGET: DI2,0
+BDIGET: DI3,0
+BDIGET: DI4,0
+BDIGET: IGN,1
OK
Analog Input Value Query
The modem has an 10-bit ADC (analog to digital converter) allowing 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 as follows:
AT+BAIGET?
+BAIGET: PWR,13.553
+BAIGET: AI1,3.056
+BAIGET: AI2,1.987
+BAIGET: AI3,0.000
OK
Revision 1.0
Copyright © 2004-2006 BlueTree Wireless Data Inc.
Page 35 of 44