IO Command — I/O Status Query
The IO command returns the current state of digital inputs, digital outputs (XP), ignition sensor (IGN), and system voltages.
What is it for?
🔌 Quick diagnostics — View all I/O status in one command
🚗 Ignition status — Check if vehicle is running
📥 Digital inputs — Query door sensors, panic button, etc.
📤 Digital outputs — Confirm relay and actuator status
🔋 Voltages — Monitor main and backup battery
Syntax
| Operation | Command | Description |
|---|---|---|
| Query | QIO | Read all I/O states |
Response
RIO;IGN{0|1};IN{bit6..bit0};XP{bit2..bit0};V{dV};VBU{cV}| Field | Description | Format |
|---|---|---|
IGN | Ignition state | 0=OFF, 1=ON |
IN | Digital inputs | 7-bit binary (MSB→LSB) |
XP | Digital outputs | 3-bit binary |
V | Main voltage | Tenths of volt |
VBU | Backup voltage | Hundredths of volt |
Examples
Vehicle with ignition on
>QIO<
>RIO;IGN1;IN1111110;XP010;V127;VBU420;ID=1234;*55<Decoding:
| Parameter | Value | Meaning |
|---|---|---|
| IGN | 1 | 🔑 Ignition ON |
| IN | 1111110 | IN0=GND ⚡, IN1-IN6=OPEN |
| XP | 010 | XP1=ON ✅, XP0/XP2=OFF |
| V | 127 | 🔋 12.7V (battery OK) |
| VBU | 420 | 🔋 4.20V (backup OK) |
Vehicle turned off
>QIO<
>RIO;IGN0;IN1111111;XP000;V125;VBU415;ID=1234;*3A<
// IGN OFF, all inputs open, outputs offInterpretation:
- IGN: OFF
- IN: All open
- XP: All off
- V: 12.5 V
- VBU: 4.15 VAlarm activated
>QIO<Response:
>RIO;IGN0;IN1111101;XP001;V126;VBU418...Interpretation:
- IN01=0 (door sensor activated)
- XP00=1 (siren activated)
IN Input Decoding
Inputs are reported in binary from MSB (bit 6) to LSB (bit 0):
| Bit | Input | State 1 | State 0 |
|---|---|---|---|
| 6 | IN6 | Open | Grounded |
| 5 | IN5 | Open | Grounded |
| 4 | IN4 | Open | Grounded |
| 3 | IN3 | Open | Grounded |
| 2 | IN2 | Open | Grounded |
| 1 | IN1 | Open | Grounded |
| 0 | IN0 | Open | Grounded |
Example: IN=1111110
- IN06-IN01: Open (1)
- IN00: Grounded (0)
XP Output Decoding
Outputs are reported in binary from MSB (bit 2) to LSB (bit 0):
| Bit | Output | State 1 | State 0 |
|---|---|---|---|
| 2 | XP2 | Activated | Deactivated |
| 1 | XP1 | Activated | Deactivated |
| 0 | XP0 | Activated | Deactivated |
Example: XP=010
- XP2: OFF (0)
- XP1: ON (1)
- XP0: OFF (0)
Voltage Values
Main Voltage (V)
Expressed in tenths of volt:
V127= 12.7 VV140= 14.0 V (charging)V115= 11.5 V (low battery)
Backup Voltage (VBU)
Expressed in hundredths of volt:
VBU420= 4.20 V (LiPo battery OK)VBU350= 3.50 V (low battery)
Typical LiPo battery backup voltage is 3.7-4.2V. Values below 3.5V indicate need for recharge.
Compatibility
💾Firmware v1.03.00
SPLegacy
ULLegacy
💾Firmware v1.00.00
SP-IOT
SM-IOT
ZE-IOT
See Also
- XP Command - Digital output control
- AIN Command - Analog inputs
- Event Engine - Input/output automation
- Trigger List - Available events
Last updated