XGRIDSDocs
  • 简体中文
  • English
  • 繁體中文
  • 日本語
  • Deutsch
  • Español
  • Italiano
  • Français
  • Русский
  • Polski
  • Nederlands
  • 简体中文
  • English
  • 繁體中文
  • 日本語
  • Deutsch
  • Español
  • Italiano
  • Français
  • Русский
  • Polski
  • Nederlands
  • Lixel PortalCam Series

    • PortalCam P1

      • Product Overview
      • Basic Operation
      • Using the LCC Scan App
      • Maintenance and Care
      • FAQ
  • Lixel K Series

    • Lixel K1

      • Product Overview
      • Basic Operation
      • Device Activation and Connection
      • Scanning Workflow
      • Acquire Point Cloud Data with Absolute Coordinate
      • Map Fusion
      • Route Planning Suggestions for Typical Scenes
      • Precautions
      • FAQ
    • Lixel K2

      • Product Overview
      • Basic Operation
      • Device Activation and Connection
      • Scanning Workflow
      • Acquire Point Cloud Data with Absolute Coordinate
      • Map Fusion
      • Route Planning Suggestions for Typical Scenes
      • Precautions
      • FAQ
  • Lixel L Series

    • Lixel L2 Pro

      • Product Overview
      • Basic Operation
      • Device Activation and Connection
      • Scanning Workflow
      • Acquire Point Cloud Data with Absolute Coordinate
      • Measure Point
      • Appendix
      • FAQ
    • Lixel L3

      • Product Overview
      • Basic Device Functions
      • Device Activation and Connection
      • Data Capture
      • Capturing Absolute Coordinates
      • Appendix
      • FAQ
  • Robotics

    • Lixel OpenAPI

      • Overview
      • Connection & Authentication
      • Message Model & Codec
      • Interface Catalog
      • Real-time Data
      • Project File Access
      • Error Codes
      • Python

        • Quick Start
        • Client Wrapper & Tools
        • FAQ
      • C++

        • Quick Start
        • Client & Examples
        • FAQ
      • OpenAPI-XPanel
  • Accessories

    • Stick Light

      • Installation Guide
      • Basic Operation
      • FAQ
  • Lixel Studio

    • Version and Copyright
    • Installation and Activation
    • Software Interface
    • File Operations
    • Project Processing
    • Tools
    • 2D Drawing
    • Applications
    • Settings
    • Device Connection
    • FAQ
    • Usage Tips

      • Data Flow Overview
      • Software Licensing Guide
      • Understanding Scanner Accuracy Specifications
      • Point Cloud Registration Guide
  • Lixel CyberColor

    • LCC Studio

      • Getting Started
      • Version and Updates
      • Download and Installation
      • Interface Overview and Navigation
      • Before Reconstruction
      • Model Reconstruction
      • Single Model Reconstruction
      • Map Fusion
      • Aerial-Ground Fusion
      • Aerial Reconstruction
      • My Models
      • Other Features
      • Settings and Account
      • Converter
      • Publish to Third-Party Platforms
      • Video Reconstruction
      • FAQ
    • LCC Scene Editor

      • Version & Updates
      • Account & Login
      • Product Overview & Home
      • Editor Interface
      • Scene Navigation Modes
      • File
      • Settings
      • Edit Operations
      • Window
      • Global Toolbar
      • Assets & Properties
      • Left Toolbar
      • Viewpoints
      • Portal
      • Skybox
      • Annotations
      • Measurement
      • Flythrough
      • Scene Report
      • 3D Layout
      • Mini-Map
      • Preview Mode (Viewer)
      • Help
      • FAQ
      • Spawn Point
    • LCC Model Editor

      • Version and Updates
      • User Guide
      • Overview and Interface
      • File Operations
      • Selectors
      • Editing Operations
      • Measurement
      • Color Grading
      • Asset Management
      • Settings and Help
      • FAQ
    • Capture Guide

      • Overview
      • Capture Devices Overview
      • General Capture Principles
      • Indoor Scene Capture
      • Outdoor Scene Capture
      • Large-Scale Capture (Map Fusion)
      • Aerial-Ground Map Fusion Capture
      • Object Capture
      • People Capture
      • Video Reconstruction Capture
      • HD Enhancement
      • Control Points (Lixel P1)
      • FAQ and Troubleshooting
    • LCC Studio Linux

      • Product Overview
      • Architecture Guide
      • Installation and Deployment Guide
      • Container Startup Parameters Guide
      • CodeMeter Offline Licensing Deployment Guide
      • API Reference
      • Appendix - Developer Data Guide
      • Appendix - Error Code List
      • Single-Machine Multi-GPU Cluster Deployment QuickStart
    • Best Practices

      • Merging Multiple Large 3DGS Models
      • Aerial-Ground Map Fusion Workflow
      • Data Flow Overview
      • Software Licensing Guide
    • Version History
  • Plugin & SDK

    • Unreal

      • What's New
      • Introduction
      • Quick Start - Windows
      • Quick Start - Linux
      • Quick Start - Quest3
      • URL Data Loading (Pro)
      • Editions and Licensing
      • Rendering
      • Tiled Rasterization (Pro)
      • Visual Settings
      • Normals and Lighting
      • Scene Editing
      • Performance Parameters
      • Performance Guide
      • Third-party and Engine Plugin Integration
      • Proxy Mesh
      • Loading Animation
      • Collision
      • Navigation System Support
      • Single Layer Water Support
      • Localization
      • FAQ
      • Troubleshooting
      • Logging and Diagnostics
      • Contact Us
      • Best Practices

        • Relighting 3DGS with a LixelStudio Mesh
        • Per-camera Independent Rendering
      • API Reference

        • ALCCActorBase
        • ULCCComponentBase
        • ULCCComponent
        • ULCC2Component
        • SOG / SPZ / PLY Actors
        • ALCC2ProxyMesh
        • ALCCClippingVolume
        • ALCCSectionPlane
        • ALCCLoadVolume
        • ULCCUtilLibrary
        • Enums
        • Structs
      • Changelog

        • v3.6.0
        • v3.5.0
        • v3.4.0
        • v3.3.1
        • v3.0.0
        • v2.2.1
        • v1.0.0
        • v0.9.0
        • v0.8.0
        • v0.7.1
        • v0.6.1
        • v0.5.2
        • v0.4.1
        • v0.4.0
        • v0.3.0
        • v0.0.5
        • v0.0.4
        • v0.0.3
        • v0.0.2
        • v0.0.1
    • Unity

      • Unity SDK Introduction
      • Technical Features
      • Development Environment Requirements
      • PC Quick Start Guide
      • Project Settings Optimization Guide
      • Pico 4 Ultra Development Guide
      • Pico 4 Ultra PC Streaming Guide
      • Quest 3 Development Guide
      • Quest 3 PC Streaming Guide
      • Pico Space Pro Development Guide
      • Pico Space Pro Business Streaming Guide
      • OpenXR Development Guide
      • Pico 4 Ultra Business Streaming Guide
      • Glossary
      • FAQ
      • Contact Us
      • Feature Development Guide

        • Multi-Scene Mixed Rendering Development Guide
        • Shadow Receiving Development Guide
        • Real-Time Lighting Development Guide
        • Multi-Camera Rendering Development Guide
        • High-Resolution Image Rendering Development Guide
        • LCC and LCC2 Data Format Compatibility Development Guide
        • Loading Effect Development Guide
        • Mip Rendering Mode Switching Development Guide
        • Edge and Corner Snapping Development Guide
        • Projected Decal Development Guide
        • Video Projected Decal Development Guide
        • Highlight Development Guide
        • Real-Time Clipping Development Guide
        • Color Adjustment Development Guide
        • Getting Scene Mesh Data Development Guide
        • Editor Mode Development Guide
        • Render Performance Parameter Configuration Guide
        • Application and Data Co-packaging Development Guide
        • Collision System Development Guide
        • macOS Development Permission Issue Guide
        • iOS Device Compilation and Packaging Development Guide
      • API Reference

        • LCCManager
        • Renderer
        • Data Types
      • Changelog

        • v2.4.0
        • v2.3.0
        • v2.2.10
        • v2.2.0
        • v2.1.19
        • v2.0.14
    • Web

      • Introduction
      • Rendering Performance Optimization Guide
      • Graphics Configuration
      • WebGPU Development Guide
      • FAQ
      • API Reference

        • LCCObject::checkRenderNextFrame
        • LCCObject::clearRenderNextFrame
        • LCCObject::ecef2Prj
        • LCCObject::getBounds
        • LCCObject::getEnvInstancedMesh
        • LCCObject::getInstancedMesh
        • LCCObject::getLodInfos
        • LCCObject::getOriginPosition
        • LCCObject::getProjectionCoordinateSystemInfos
        • LCCObject::hasCollision
        • LCCObject::hasEnvironment
        • LCCObject::hasShcoef
        • LCCObject::intersectsCapsule
        • LCCObject::intersectsRayExt
        • LCCObject::intersectsRayFromOriginExt
        • LCCObject::intersectsSphere
        • LCCObject::lowerToBottom
        • LCCObject::prj2Ecef
        • LCCObject::raiseToTop
        • LCCObject::raycast
        • LCCObject::raycastFromOrigin
        • LCCObject::setAlpha
        • LCCObject::setClipBox
        • LCCObject::setClipPlane
        • LCCObject::setClipPrism
        • LCCObject::setEndLod
        • LCCObject::setLodAutoLevelUp
        • LCCObject::setMaxDistance
        • LCCObject::setMaxNodeSplats
        • LCCObject::setMaxSplats
        • LCCObject::setMinSplatSize
        • LCCObject::setMipFilter
        • LCCObject::setOriginPosition
        • LCCObject::setPointsColor
        • LCCObject::setRenderState
        • LCCObject::setRotation
        • LCCObject::setScale
        • LCCObject::setSemantic
        • LCCObject::setSemanticColor
        • LCCObject::setSmooth
        • LCCObject::setStartLod
        • LCCObject::setTranslation
        • LCCObject::setVisible
        • LCCObject::togglePointsDisplayMode
        • LCCObject::useEnvironment
        • LCCObject::useShcoef
        • LCCRender::clearIndexDB
        • LCCRender::dispose
        • LCCRender::load
        • LCCRender::setCamera
        • LCCRender::unload
        • LCCRender::update
      • Changelog

        • v0.6.6
        • v0.6.4
        • v0.6.3
        • v0.6.2
        • v0.6.1
        • v0.6.0
        • v0.5.5
        • v0.5.4
        • v0.5.3
        • v0.5.2
        • v0.5.1
        • v0.5.0
        • v0.4.1
        • v0.4.0
        • v0.3.1
        • v0.3.0
        • v0.2.0
  • API

    • Structured Spatial Modeling

      • Access Guide
      • Modeling Workflow
      • API Reference
      • Temporary Upload Credentials
      • Error Codes

Overview

The Lixel series is a line of handheld 3D scanners. Lixel OpenAPI is the set of open communication interfaces exposed by the device software. Through them you can remotely control a Lixel device, receive its data in real time, and build applications integrated with the device.

This page gives you the big picture. To get started right away, choose your development language: Python Quick Start or C++ Quick Start.

Get the example project

  • Release 2.0.0: https://github.com/xgrids/Lixel_OpenAPI/releases/tag/2.0.0
  • Repository: https://github.com/xgrids/Lixel_OpenAPI

What the OpenAPI can do

  • Control the device: start/stop scanning, configure parameters, reboot or power off, format storage, enable file sharing.
  • Receive data in real time: subscribe to the real-time point cloud, real-time pose, device status, and system errors; get camera frames over the video stream.
  • Manage data: manage the project list, control points and measure points, and unpack recorded data.
  • Configure positioning: set RTK / Ntrip parameters and read the satellite positioning status.

Protocol architecture

The device and client communicate through an MQTT broker running on the device. All business messages are serialized with Protobuf and carried as the MQTT payload (the heartbeat is the exception, carried as JSON text). The real-time camera video stream is carried over the device's built-in RTSP service.

┌────────────┐   publish request    ┌──────────────┐
│            │ ───────────────────► │              │
│  Client    │                      │ Lixel device │
│ (your app) │ ◄─────────────────── │ (MQTT Broker)│
│            │   response / report  │ (RTSP Server)│
└────────────┘                      └──────────────┘

Topics use a three-segment naming scheme:

lixel/<domain>/<type>/<name>
  • domain: business domain, mainly application.
  • type: message direction.
    • request: client → device (request)
    • response: device → client (reply to a request)
    • report: device → client (active push)
  • name: specific feature, e.g. device_info, modeling.

There are two typical interaction patterns:

  • Request-response: the client publishes to .../request/xxx and subscribes to .../response/xxx to await the reply.
  • Subscribe-report: the client subscribes to .../report/xxx and passively receives data pushed by the device.

Key conventions

ConventionDescription
TransportMQTT / MQTTS, depending on the device model
PayloadProtobuf binary (JSON text for the heartbeat)
Proto packageopenapi.aiot_msgs
AuthenticationA device with an OpenAPI authorization needs no key; other devices need the OpenAPI Key provided by XGRIDS in the request header
Video streamRTSP, pushed after scanning starts
DevelopmentPython or C++; both share the same MQTT topics and proto definition
VersionThe documentation version v2.0.0 corresponds to the example project Lixel_OpenAPI release 2.0.0. The device protocol version is separate: the ProtocolVersion in the device heartbeat stays 3.0.0 and cannot tell whether a device supports OpenAPI authorization

Changes from 1.1.0

  • The OpenAPI Key is now optional. A device that holds an active OpenAPI authorization (state active) accepts requests without a key; leave openapi_key empty. A device that is not authorized, one whose authorization is used up, and one still on the earlier key-based scheme need a valid key as before. See Connection & Authentication · OpenAPI authorization and key.
  • Three new heartbeat fields: Features, OpenapiLicenseState, and OpenapiLicenseText, which tell which scheme a device uses and the state of its authorization. See Interface Catalog · Status monitoring.
  • A new error description, openapi license exhausted, returned when the recording minutes of the authorization are used up.
  • A new authorization query, openapi_license: needs no key and returns the authorization state, the authorization code, and the remaining recording minutes. See Interface Catalog · Query the OpenAPI authorization.
  • Examples: --key is optional in the Python scripts and the C++ examples.
  • Linux only, and the GUI moved. From 2.0.0 the Python client library and the graphical control panel OpenAPI-XPanel support Linux only; the Windows build scripts are removed. OpenAPI-XPanel moved out of python/ into its own xpanel/ directory and uses PySide6 only. The Python client library is installed from a checkout with pip install -e python. See Python and OpenAPI-XPanel.
  • The C++ client can check the device certificate by CA only. New TransportOptions::verify_hostname (example option --no-verify-hostname), and the example project now ships the CA certificate of the MQTTS devices, certs/lixel_mqtts_ca.crt. Connect to a K2 or L3 with --ca-file certs/lixel_mqtts_ca.crt --no-verify-hostname. See C++ · TLS certificate checks.
  • The wire format is unchanged: Header.openapi_key is still field 6. Programs written for 1.x need no change; a request with a valid key is handled exactly as in 1.x.

Note: the interface catalog and message fields follow the public proto (proto/openapi/aiot_msgs.proto in the example project). The device's internal proto defines more than the public one; the extra parts are out of scope here.

Documentation map

The protocol itself is language-independent; the following shared chapters apply to both Python and C++:

Shared chapterContent
Connection & AuthenticationUSB / Wi-Fi / Bluetooth provisioning, MQTT/MQTTS parameters, OpenAPI authorization and key
Message Model & CodecTopic rules, proto compilation, JSON ↔ Protobuf
Interface CatalogStatus monitoring, device management, scan mapping, points, projects, RTK/Ntrip, data processing
Real-time DataReal-time point cloud decompression, real-time pose, RTSP video stream
Project File AccessAccess project files over file sharing
Error CodesError code categories and meanings

Choose an entry by development language, or the graphical control panel:

EntryContent
Python19 example scripts and a reusable client library (Linux)
OpenAPI-XPanelGraphical control panel for publishing requests and subscribing to reports (Ubuntu 20.04 / 22.04 / 24.04, x86_64)
C++Client library and 19 command line examples (Linux only)