Communication Protocol

The communication protocol is defined by built-in Lua scripts on the mainboard. Data is transferred to designated registers via serial/network interfaces, then processed by the script to drive canvas object changes.

Section Navigation

SectionDescription
Frame Formats & RegistersSimple format, JSON format, special character compatible format
Remote CommandsPrint control, information query, template switching
Lua ScriptsScript purposes and use cases

Basic Concepts

  • Register: Data storage unit. Canvas objects (text/barcode etc.) can bind to registers; when data arrives, the object content updates accordingly.
  • End Frame: All data ends with \r\n, marking the end of one frame.
  • Script Enable: Before communication, the corresponding Lua script must be loaded and enabled on the mainboard.

Frame Formats & Registers

Data frame format specification — simple format, JSON format, special character compatible format

Remote Commands

Remote command control — print control, information query, template switching, flash settings

Lua Scripts

Communication-related Lua script purposes and use cases