Battery Monitoring
Automatic alert configuration based on vehicle voltage levels.
Features
| Feature | Value |
|---|---|
| Analog input | AN06 (Internal battery) |
| Low threshold | 5.50V - 10.50V |
| OK threshold | 11.00V - 99.99V |
| Disconnection threshold | 0.00V - 5.00V |
| Debounce | 5 seconds |
State diagram
| State | Voltage range | Event |
|---|---|---|
| Battery OK | 11.00V - 99.99V | CQ14 |
| Low Battery | 5.50V - 10.50V | CQ03 |
| Disconnected | 0.00V - 5.00V | CQ04 |
Complete configuration
This configuration uses analog input AN06 which corresponds to the device’s internal battery. Thresholds are designed for 12V vehicles.
// =============================================================================
// BATTERY MONITORING - RINHO DEVICES
// =============================================================================
// Configures automatic alerts based on vehicle voltage levels.
// =============================================================================
// --- VOLTAGE THRESHOLDS (AR Command) ---
// Syntax: SARaabb+mmmm+MMMMddd (aa=index, bb=06=battery, mmmm=min, MMMM=max, ddd=debounce)
>SAR0006+0550+1050050< // AR00: Low Battery (5.50V - 10.50V) - 5s debounce
>SAR0106+1100+9999050< // AR01: Battery OK (11.00V - 99.99V) - 5s debounce
>SAR0206+0000+0500050< // AR02: Disconnection (0.00V - 5.00V) - 5s debounce
// --- EVENT RULES (RL Command) ---
// Syntax: SRLnnE;TRG=ARxx+;ACC={GCQyyH} (nn=rule, xx=threshold, yy=event, H=high priority)
>SRL08E;TRG=AR00+;ACC={GCQ03H}< // Low Battery → CQ report event 03
>SRL09E;TRG=AR01+;ACC={GCQ14H}< // Battery OK → CQ report event 14
>SRL10E;TRG=AR02+;ACC={GCQ04H}< // Disconnection → CQ report event 04Command reference
| Command | Description | Documentation |
|---|---|---|
SAR | Analog threshold configuration | AR Command |
SRL | Event engine rules | RL Command |
GCQ | CQ report generation | CQ Report |
Last updated