UC Command — Custom User Reports
Allows creating custom reports by concatenating responses from multiple commands, plain text and calculated fields. Ideal for integrating specific data in tailored formats.
🎯 16 available reports (indices 00-0F), each fully configurable and independent.
What is it for?
| Use case | Description |
|---|---|
| 📊 Custom telemetry | Combine GPS data, sensors and states in a single report |
| 🔗 Server integration | Specific format for tracking platforms |
| 📝 Multi-sensor reports | Concatenate analog, digital and CAN readings |
| 🏷️ Cargo identification | Include client/order codes from XB buffers |
| 📋 JSON/CSV format | Structure data for APIs or processing |
Commands
| Operation | Syntax | Description |
|---|---|---|
| Configure | SUCnn structure | Define structure of report nn |
| Delete | SUCnn* | Remove configuration of report nn |
| Query | QUCnn | Read configured structure |
Parameters
| Parameter | Description | Values |
|---|---|---|
nn | Report index | 00 to 0F (16 reports) |
structure | Field definition | Fields separated by | |
Response
RUCnn field1|field2|...|fieldNField Syntax
Special ASCII Characters
Use hexadecimal codes to insert special characters in the report.
| Code | Character | Description |
|---|---|---|
\00 | NULL | Terminator |
\09 | TAB | Tabulation |
\0D | CR | Carriage return |
\0A | LF | Line feed |
\20 | SPACE | Space |
\2C | , | Comma |
\3A | : | Colon |
\3B | ; | Semicolon |
\5C | \ | Backslash |
\7C | | | Pipe |
Inline EVAL Evaluation
Available since v1.9.18 — Report limit increased to 239 bytes.
Allows inserting EVAL expressions directly in the report using single quotes. Expressions are dynamically evaluated at send time.
Syntax
'expression'
'expression:format'
'expression:format:error_value'Available Tokens
| Token | Description |
|---|---|
'CHN' | Communication channel name (WIFI, GPRS, etc.) |
'CHC' | Channel code |
'CSQ' | Cellular signal quality |
'VEL' | GPS speed |
'LAT' | Latitude |
'LON' | Longitude |
'V' | Main voltage |
'TICK' | System tick |
Functions
| Function | Description |
|---|---|
'IN(x)' | Digital input x |
'XP(x)' | Digital output x |
'AIN(x)' | Analog input x |
'TD(x)' | Timer/Distance x |
'MBS(x,y)' | BLE sensor (x=index, y=type) |
'MOD(a,b)' | Modulo (remainder of a/b) |
Text Operators
For comparisons within quotes, use text operators:
| Operator | Equals | Example |
|---|---|---|
gt | > | CSQ gt 15 |
ge | >= | V ge 120 |
lt | < | VEL lt 80 |
le | <= | AIN(0) le 500 |
eq | == | IN(0) eq 1 |
ne | != | XP(0) ne 0 |
EVAL Inline Examples
// Report with channel, signal and speed formatted
>SUC00 $ID chanel:'CHN' signal:'CSQ:%02d' vel:'VEL:%d';#8002;ID=865413053386354;*61<
>RUC00 $ID chanel:'CHN' signal:'CSQ:%02d' vel:'VEL:%d';#8002;ID=865413053386354;*60<
>QU0;#8003;ID=865413053386354;*37<
>ID chanel:TRM signal:99 vel:0;#8003;ID=865413053386354;*03<
Maximum 20 EVAL tokens per report. Expressions are evaluated at send time, not at configuration.
Examples
UC Report Invocation
Manual query
>QU0<Query the content of UC00 report.
Automatic generation with events
>SRL50E;TRG=IGN+;ACC={GU0}<Generate UC00 report when ignition turns on.
To send the report to the server use GUn (Generator). QUn only queries locally.
Limitations
| Parameter | Value |
|---|---|
| 📦 Available UC reports | 16 (00-0F) |
| 📏 Maximum text length | 239 bytes |
| 🔢 Fields per report | ~20 (depending on length) |
| 🔢 EVAL inline tokens | 20 maximum |
| 🚫 Nestable commands | No (UC cannot contain UC) |
Compatibility
See Also
- Ux Report - Query and generation of UC reports
- XB Command - Text buffers
- EVAL Command - Calculated expressions
- Event Engine - Automatic generation