Documentation

Data exchange protocol, API and examples of monitoring system interaction

Looking for the user guide?

Registration, organization installers and device monitoring — step by step with screenshots.

Open guide →

TCM Client

Client release history

From the first monitoring client to the latest improvements. Newest versions first.

Latest · 1.2.4
  1. v1.2.4Latest release

    Daily client log rotation

    The client and its modules write daily files to the shared logs folder. Daily logs are retained for 30 days.

    • Log files. All modules use the shared logs folder and names such as client-2026-11-24.log.
    • Retention. When writing starts for a new day, daily logs older than 30 days are deleted. Configure retention with TCM_LOG_RETENTION_DAYS.
    • Windows services. Service logs are stored in logs and rotate daily.
    Compare before and after
    Log files
    BeforeFiles grew without a limit; some modules wrote to client/logs.
    AfterAll modules use the shared logs folder and names such as client-2026-11-24.log.
    Retention
    BeforeApplication logs were not removed automatically.
    AfterWhen writing starts for a new day, daily logs older than 30 days are deleted. Configure retention with TCM_LOG_RETENTION_DAYS.
    Windows services
    BeforeService stdout and stderr were stored in the installation root and rotated by size.
    AfterService logs are stored in logs and rotate daily.
  2. Local and production connection environments

    The installer receives the server address from the panel environment. Reinstallation updates the connection profile while preserving the device UID and token.

    • Server address. Local Docker and the production panel each provide their server address for downloaded clients.
    • Reinstallation. The connection profile is updated from the package while the UID and token are preserved.
    Compare before and after
    Server address
    BeforeAn organization’s saved address could point to the public server when using a local panel.
    AfterLocal Docker and the production panel each provide their server address for downloaded clients.
    Reinstallation
    BeforeThe previous server address was preserved along with device identity.
    AfterThe connection profile is updated from the package while the UID and token are preserved.
  3. Update package delivery

    The client receives files and ZIP packages from distribution lists, verifies integrity and acknowledges delivery.

    • File integrity. SHA-256 and SHA-512 are checked against the complete received file before extraction.
    • Delivery acknowledgements. Blocks are acknowledged after processing; file receipt and ZIP installation queueing return separate messages.
    • Windows scripts. The service runs scripts by their full path, supporting spaces in the installation directory.
    Compare before and after
    File integrity
    BeforeHash verification algorithms did not match the protocol.
    AfterSHA-256 and SHA-512 are checked against the complete received file before extraction.
    Delivery acknowledgements
    BeforeACK was sent before block processing; ordinary files could lack a final status.
    AfterBlocks are acknowledged after processing; file receipt and ZIP installation queueing return separate messages.
    Windows scripts
    BeforeExecution depended on finding a BAT file in the current directory.
    AfterThe service runs scripts by their full path, supporting spaces in the installation directory.
  4. Request logs by date or date range

    Operators select log types and dates in a form. The client collects files across the full date range, including both endpoints.

    • Log period. Single dates, inclusive date ranges and collection without a date limit are supported.
    • Log types. The panel offers XFS, general terminal, system, event, access, debug and application logs.
    • File selection. Selection uses the requested log prefix and the date in the filename or the file modification date.
    Compare before and after
    Log period
    BeforeRange requests used only the first day.
    AfterSingle dates, inclusive date ranges and collection without a date limit are supported.
    Log types
    BeforeRequest parameters were entered manually as JSON.
    AfterThe panel offers XFS, general terminal, system, event, access, debug and application logs.
    File selection
    BeforeFiles belonging to other log types could be collected from a shared folder.
    AfterSelection uses the requested log prefix and the date in the filename or the file modification date.
  5. Reliable XFS event and device status collection

    Events arrive promptly, survive connection loss and identify the specific terminal device.

    • Urgent events. Errors, disconnections and recoveries are sent as soon as a complete line is available.
    • Regular events. Only new data is read; regular events are batched every 20 seconds.
    • Device status. Known device states and observation times are sent every five minutes. Stale information is marked unknown.
    • Offline operation. The queue and position are saved; after reconnection, delivery continues until the server acknowledges storage.
    • Telemetry format. Typed protobuf event and status batches include terminal UID, device ID, time, errors and measurements.
    • Logs. A compressed archive is created for the completed day; the server verifies integrity and acknowledges receipt.
    • Restart and rotation. The monitor saves its position, handles renaming and truncation, and waits for partial lines to finish.
    Compare before and after
    Urgent events
    BeforeEvents were sent on file changes without dedicated priority.
    AfterErrors, disconnections and recoveries are sent as soon as a complete line is available.
    Regular events
    BeforeThe file was parsed again on every change.
    AfterOnly new data is read; regular events are batched every 20 seconds.
    Device status
    BeforeThere was no separate periodic XFS device report.
    AfterKnown device states and observation times are sent every five minutes. Stale information is marked unknown.
    Offline operation
    BeforeRead positions and the XFS event queue were not persisted.
    AfterThe queue and position are saved; after reconnection, delivery continues until the server acknowledges storage.
    Telemetry format
    BeforeIndividual events were sent without a populated device ID.
    AfterTyped protobuf event and status batches include terminal UID, device ID, time, errors and measurements.
    Logs
    BeforeThere was no automatic daily XFS log transfer.
    AfterA compressed archive is created for the completed day; the server verifies integrity and acknowledges receipt.
    Restart and rotation
    BeforeRestarting or changing files could resend previously read lines.
    AfterThe monitor saves its position, handles renaming and truncation, and waits for partial lines to finish.
  6. Release date not recorded

    Client versioning and service updates

    One version number across the client, panel and installers; updates run through a separate service.

    • Version number. The package.json version is sent on connection, appears in device cards and lists, and is available with --version.
    • Updates. A dedicated Windows or Linux service prepares and installs updates sequentially and records the result.
    • Installation. Installers include dependencies and both services; reinstallation preserves settings and device identity.
    Compare before and after
    Version number
    BeforeTelemetry version strings were maintained separately and could differ from the package version.
    AfterThe package.json version is sent on connection, appears in device cards and lists, and is available with --version.
    Updates
    BeforeThere was no separate update package execution service.
    AfterA dedicated Windows or Linux service prepares and installs updates sequentially and records the result.
    Installation
    BeforeThe base client used its own device settings.
    AfterInstallers include dependencies and both services; reinstallation preserves settings and device identity.
  7. Release date not recorded

    Initial monitoring client

    The original client capabilities recorded in the repository.

    • Connection. WebSocket connection to the server with automatic reconnection after connection loss.
    • Monitoring. System, disk and attached device information; XFS log parsing.
    • Management. Server command handling and chunked file transfer.