Skip to Content

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 caseDescription
📊 Custom telemetryCombine GPS data, sensors and states in a single report
🔗 Server integrationSpecific format for tracking platforms
📝 Multi-sensor reportsConcatenate analog, digital and CAN readings
🏷️ Cargo identificationInclude client/order codes from XB buffers
📋 JSON/CSV formatStructure data for APIs or processing

Commands

OperationSyntaxDescription
ConfigureSUCnn structureDefine structure of report nn
DeleteSUCnn*Remove configuration of report nn
QueryQUCnnRead configured structure

Parameters

ParameterDescriptionValues
nnReport index00 to 0F (16 reports)
structureField definitionFields separated by |

Response

RUCnn field1|field2|...|fieldN

Field Syntax

Command extraction

COMMAND,start,length
ElementDescription
COMMANDCommand to execute (e.g: QPQ, QIO, QCQ)
startFirst position to include (base 0)
lengthNumber of characters to extract

Example: QPQ,5,64 → Extract 64 characters from position 5 of QPQ response


Special ASCII Characters

Use hexadecimal codes to insert special characters in the report.

CodeCharacterDescription
\00NULLTerminator
\09TABTabulation
\0DCRCarriage return
\0ALFLine feed
\20SPACESpace
\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

TokenDescription
'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

FunctionDescription
'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:

OperatorEqualsExample
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

Simple report with position

>SUC00 $POS| QPQ,5,64<
  • $POS → Literal text “POS”
  • QPQ,5,64 → QPQ response from position 5, 64 characters

Report with event identifier

>SUC03 $EVT| #| $\3B| QPQ,5,30<

The # is replaced by the triggering event number.


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

ParameterValue
📦 Available UC reports16 (00-0F)
📏 Maximum text length239 bytes
🔢 Fields per report~20 (depending on length)
🔢 EVAL inline tokens20 maximum
🚫 Nestable commandsNo (UC cannot contain UC)

Compatibility

💾Firmware:v1.00.00
C5Legacy
SP-IOT
SM-IOT
ZE-IOT

See Also

Last updated