PR0001 JxServo Studio USB Communication Protocol
| Item | Details |
|---|---|
| Document Number | PR0001 |
| Revision | Rev. 1.0 |
| Applicable Products | JxServo Studio / JxServo Servo Devices |
| Language | English |
| Last Updated | 2026-05-11 |
JxServo Studio provides an open USB communication interface designed for servo device commissioning, system integration, and secondary development. Based on this protocol, developers can connect custom test software, automated test benches, data acquisition systems, or upper-level business applications to perform device identification, parameter management, command triggering, log reception, and real-time operating data acquisition without relying on the JxServo Studio GUI.
This protocol adopts a unified frame format and a dynamic capability discovery mechanism. Parameter lists, command lists, and device information are all returned directly from the device side, eliminating the need for host applications to hardcode a fixed feature set and allowing automatic adaptation across different product models and firmware versions. JxServo Studio itself communicates with devices over this exact interface, so this document also serves as the public reference for integrating third-party tools with JxServo devices.
Open Interface Capabilities
| Capability | Open Functionality |
|---|---|
| Device Identification | Read the device address, version numbers, and device name for automatic recognition of connected targets |
| Parameter Management | Dynamically read parameter count, data type, name, description, and value to support viewing and configuration in host applications |
| Command Discovery | Dynamically read the set of commands currently exposed by the device without maintaining a hardcoded command table |
| Command Execution | Assemble execution frames based on device-returned command descriptors for automated commissioning and application integration |
| Log Reception | Receive status, error, and prompt messages from the device so integrated software can present clear feedback |
| Real-Time Telemetry | Acquire operating data such as position, velocity, current, voltage, temperature, control-loop states, and raw bus frames |
This document focuses on the public USB interface ready for direct integration. Parameter sets, available commands, and telemetry activation policies may vary across product models; host applications should construct their UI and business logic dynamically from the queried device metadata.
Protocol Fundamentals
The USB link carries protocol frames over a CDC byte stream. Every frame contains a source address, destination address, function ID, payload length, data payload, and a two-byte checksum, enabling the host application to reliably recover frame boundaries from a continuous byte stream and verify data integrity.
All frames follow the format below:
0xAB | S_ADDR | D_ADDR | ID | LEN_L | LEN_H | DATA... | SUM_CHECK | ADD_CHECK
| Field | Length (Bytes) | Description |
|---|---|---|
0xAB | 1 | Fixed frame header |
S_ADDR | 1 | Source address |
D_ADDR | 1 | Destination address |
ID | 1 | Frame function ID |
LEN | 2 | Byte length of DATA, Little-Endian |
DATA | N | Payload data |
SUM_CHECK | 1 | Sum checksum |
ADD_CHECK | 1 | Additional (cumulative) checksum |
Public addresses are defined as follows:
| Address | Meaning |
|---|---|
0x01 | Default servo device address |
0xFE | JxServo Studio |
0xFF | Broadcast address |
Multi-byte integers and float values are transmitted in Little-Endian byte order. float follows IEEE 754 binary32. For frames received by the device, the single-frame DATA length must be less than 128 bytes; when parsing frames sent from the device, host applications are advised to size the payload buffer for DATA <= 120 bytes.
The checksum is calculated from the frame header (0xAB) through the last byte of DATA:
uint8_t sum = 0;
uint8_t add = 0;
for (uint16_t i = 0; i < 6 + len; ++i) {
sum = (uint8_t)(sum + frame[i]);
add = (uint8_t)(add + sum);
}
frame[6 + len] = sum;
frame[7 + len] = add;
Example frame for reading device information:
AB FE 01 E0 01 00 00 8B 2B
Interface Frame Overview
The public USB interface consists of a compact set of foundational frames. Typically, a host application first reads device information, then dynamically queries the parameter list and command list, and finally reads/writes parameters, executes commands, or enables telemetry according to operational needs.
| ID | Direction | Name | Description |
|---|---|---|---|
0x00 | Device -> Studio | ACK Check | Returns processing acknowledgment for frames requiring confirmation (such as parameter writes and command execution) |
0xA0 | Device -> Studio | Log String | Outputs status, error, and prompt text messages |
0xC0 | Studio -> Device | Command Execution | Executes a command obtained via the command discovery workflow |
0xC1 | Bidirectional | Command Count / Read Command Info | Studio queries the total command count or a specific command descriptor |
0xC2 | Device -> Studio | Command Info | Returns the command descriptor, argument types, name, and description |
0xE0 | Bidirectional | Parameter Command | Reads device info, parameter count, parameter value, or parameter metadata |
0xE1 | Bidirectional | Parameter Value | Studio writes a parameter value, or the device returns a parameter value |
0xE2 | Device -> Studio | Parameter Info | Returns parameter data type, name, and description |
0xE3 | Device -> Studio | Device Info | Returns device address, version numbers, and device name |
0xF1 - 0xF8 | Device -> Studio | Telemetry Data | Real-time waveforms and operating data |
Acknowledgment Check 0x00
Write or execution operations requiring confirmation receive a 0x00 ACK frame. Host applications should use this frame to verify that the device has received and processed the corresponding request.
DATA has a fixed length of 3 bytes:
| Offset | Type | Name | Description |
|---|---|---|---|
| 0 | uint8 | ID_GET | ID of the acknowledged frame |
| 1 | uint8 | SC_GET | SUM_CHECK of the acknowledged frame |
| 2 | uint8 | AC_GET | ADD_CHECK of the acknowledged frame |
The host application should match ID_GET, SC_GET, and AC_GET simultaneously to confirm that the ACK corresponds to the transmitted frame. For parameter write frames, receiving an ACK indicates that the device has processed the frame; if the device simultaneously outputs an error log, the host should combine the log message and a read-back check to determine whether the parameter value actually took effect.
Log String 0xA0
The device can send status updates, warnings (WARN), and operation results to the host application via log frames. Integrated software can map the color codes to normal info, error alerts, success prompts, or debug messages.
DATA format:
| Offset | Type | Name | Description |
|---|---|---|---|
| 0 | uint8 | COLOR | 0: Default, 1: Red, 2: Green, 3: Blue |
| 1..N | bytes | TEXT | Text bytes, without a trailing 0x00 null terminator |
A single log message from the device is handled up to a maximum length of 100 bytes.
Parameter Read and Write
The parameter interface is used to build device configuration pages, commissioning panels, or automated setup workflows. Host applications do not need a preloaded parameter table; instead, they should dynamically query parameter metadata via 0xE0 and 0xE2, and then read or write parameter values according to their reported types.
Parameter data type codes:
| Code | Type | Length (Bytes) |
|---|---|---|
0 | uint8 | 1 |
1 | int8 | 1 |
2 | uint16 | 2 |
3 | int16 | 2 |
4 | uint32 | 4 |
5 | int32 | 4 |
8 | float | 4 |
Parameter Command 0xE0
Parameter commands are used to read device information, parameter count, parameter values, and parameter descriptions. After connecting to a device, the host application is advised to read the device information and parameter count first, and then sequentially read parameter metadata by parameter ID.
Sent by Studio:
| Offset | Type | Name | Description |
|---|---|---|---|
| 0 | uint8 | CMD | Parameter sub-command |
| 1..2 | uint16 | VAL | Command argument; omit or fill with 0 for commands without arguments |
CMD | VAL | Response ID | Description |
|---|---|---|---|
0x00 | None | 0xE3 | Read device info |
0x01 | None | 0xE0 | Read parameter count |
0x02 | Parameter ID | 0xE1 | Read parameter value |
0x03 | Parameter ID | 0xE2 | Read parameter info |
When the device returns the parameter count, DATA is structured as:
| Offset | Type | Name | Description |
|---|---|---|---|
| 0 | uint8 | CMD | Fixed to 0x01 |
| 1..2 | uint16 | COUNT | Current total number of parameters |
Parameter IDs start at 0, and the maximum valid ID is COUNT - 1.
Parameter Value 0xE1
The parameter value frame is used both by Studio to write a parameter and by the device to return a parameter's current value. Before writing, the host application should validate user input against the data type and valid range specified in the parameter metadata.
Studio writes parameter value:
| Offset | Type | Name | Description |
|---|---|---|---|
| 0..1 | uint16 | PAR_ID | Parameter ID |
| 2..N | Per parameter type | PAR_VAL | Parameter value |
Upon receipt, the device returns a 0x00 ACK frame. Each write undergoes ID validity, read/write permission, length, and range checks; if validation fails, the device outputs the failure reason via 0xA0.
Device returns parameter value:
| Offset | Type | Name | Description |
|---|---|---|---|
| 0..1 | uint16 | PAR_ID | Parameter ID |
| 2..N | Per parameter type | PAR_VAL | Current parameter value |
Parameter Info 0xE2
Parameter metadata is maintained by the device and includes the parameter ID, data type, name, and description. Integrated software should rely on this metadata for UI rendering and data parsing.
| Offset | Type | Name | Description |
|---|---|---|---|
| 0..1 | uint16 | PAR_ID | Parameter ID |
| 2 | uint8 | PAR_TYPE | Parameter data type code |
| 3..22 | bytes[20] | PAR_NAME | Parameter name, padded with 0x00 if shorter than 20 bytes |
| 23..N | bytes | PAR_INFO | Parameter description text |
Device Info 0xE3
Device information identifies the connected target and its version details. Host applications can use it for device selection, compatibility prompts, and diagnostic logging.
| Offset | Type | Name | Description |
|---|---|---|---|
| 0 | uint8 | DEV_ID | Device address |
| 1..2 | uint16 | HW_VER | Hardware version |
| 3..4 | uint16 | SW_VER | Software (firmware) version |
| 5..6 | uint16 | BL_VER | Bootloader version |
| 7..8 | uint16 | PT_VER | Protocol version |
| 9..N | bytes | DEV_NAME | Device name, up to 20 bytes |
Command Discovery and Execution
The command interface uses dynamic discovery, making it well-suited for open integration and custom application development. The device reports identifiers, argument types, command names, and descriptions for all currently available commands, from which the host application can generate action buttons, input forms, or automated routines.
Recommended workflow:
- Studio sends
0xC1withCMD=0to read the command count. - The device responds with
0xC1, reporting the current command count. - Studio sends
0xC1withCMD=1for each command index to query every command's metadata. - The device responds with
0xC2, containing the 3-byte command identifier, argument types, name, and description. - Studio constructs and sends a
0xC0execution frame according to the0xC2descriptor.
Read Command 0xC1
The command read frame queries either the total command count or the metadata of a specified command index. Host applications should use the device-reported command count to retrieve all command descriptors one by one.
Sent by Studio:
| Offset | Type | Name | Description |
|---|---|---|---|
| 0 | uint8 | CMD | 0: Read command count, 1: Read command info |
| 1..2 | uint16 | VAL | Command index when CMD=1 |
Device returns command count:
| Offset | Type | Name | Description |
|---|---|---|---|
| 0 | uint8 | CMD | Fixed to 0 |
| 1..2 | uint16 | COUNT | Current total number of commands |
Command Info 0xC2
A command info frame describes a single executable command. The host application should pack input arguments in the exact order of VAL0..VAL7 data types and serialize them in Little-Endian format into the execution frame.
| Offset | Type | Name | Description |
|---|---|---|---|
| 0..1 | uint16 | CMD_ID | Command index |
| 2 | uint8 | CMD0 | Command module identifier |
| 3 | uint8 | CMD1 | Command action identifier |
| 4 | uint8 | CMD2 | Command function identifier |
| 5..12 | uint8[8] | VAL0..VAL7 | Command argument type codes |
| 13..32 | bytes[20] | CMD_NAME | Command name, padded with 0x00 if shorter than 20 bytes |
| 33..N | bytes | CMD_INFO | Command description text |
Command argument type codes:
| Code | Type | Length (Bytes) |
|---|---|---|
0x00 | No argument | 0 |
0x01 | uint8 | 1 |
0x02 | int8 | 1 |
0x03 | uint16 | 2 |
0x04 | int16 | 2 |
0x05 | uint32 | 4 |
0x06 | int32 | 4 |
0x09 | float | 4 |
Command Execution 0xC0
The command execution frame triggers an exposed operation on the device side. Command semantics are defined by the metadata returned via 0xC2, so host applications do not need to maintain a predefined static command table.
Sent by Studio:
| Offset | Type | Name | Description |
|---|---|---|---|
| 0 | uint8 | CMD0 | From 0xC2 |
| 1 | uint8 | CMD1 | From 0xC2 |
| 2 | uint8 | CMD2 | From 0xC2 |
| 3..N | Per VAL0..VAL7 | ARGS | Command arguments, tightly packed in order |
Once the device matches the command, it returns a 0x00 ACK frame and executes the corresponding operation. If any command argument is invalid, the device outputs the error reason via 0xA0.
Telemetry Data
The telemetry interface provides real-time visibility into device operating states and can feed waveform plotters, data loggers, performance analyzers, or custom monitoring systems. Frames 0xF1 through 0xF8 can be started, stopped, or decimated (rate-adjusted) via the command interface; telemetry frames require no ACK response from the host application.
0xF1 Position, Velocity, and Current
DATA length is 40 bytes, all encoded as float:
| Index | Signal Name | Unit |
|---|---|---|
| 1 | Target position | deg |
| 2 | Feedback position | deg |
| 3 | Position error | deg |
| 4 | Target velocity | rpm |
| 5 | Feedback velocity | rpm |
| 6 | Velocity error | rpm |
| 7 | Iq target | A |
| 8 | Iq feedback | A |
| 9 | Id target | A |
| 10 | Id feedback | A |
0xF2 DC Bus, Joint, and Temperature
DATA length is 32 bytes, all encoded as float:
| Index | Signal Name | Unit |
|---|---|---|
| 1 | Bus current | A |
| 2 | Bus voltage | V |
| 3 | Joint velocity | rpm |
| 4 | Joint angle | deg |
| 5 | Motor velocity | rpm |
| 6 | Iq feedback | A |
| 7 | Power stage (MOS) temperature | degC |
| 8 | Motor temperature | degC |
0xF3 Sampling and Raw Encoder Counts
DATA length is 24 bytes:
| Offset | Type | Signal Name | Unit |
|---|---|---|---|
| 0 | float | Phase U current | A |
| 4 | float | Phase V current | A |
| 8 | uint32 | Motor-side commutation count | counts |
| 12 | uint32 | Joint-side commutation count | counts |
| 16 | uint32 | Raw motor encoder value | counts |
| 20 | uint32 | Latest FOC execution cycle count | cycles |
0xF4 Velocity Loop and Torque Status
DATA length is 44 bytes:
| Offset | Type | Signal Name | Unit |
|---|---|---|---|
| 0 | float | Velocity target | rad/s |
| 4 | float | Velocity feedback | rad/s |
| 8 | float | Velocity loop proportional term | Nm |
| 12 | float | Velocity loop integral term | Nm |
| 16 | float | Controller torque command | Nm |
| 20 | float | Disturbance estimate | Nm |
| 24 | float | Disturbance compensation | Nm |
| 28 | float | Torque feedforward | Nm |
| 32 | float | Output torque command | Nm |
| 36 | float | Filtered torque command | Nm |
| 40 | uint8 | Torque limit flag | 0/1 |
| 41 | uint8 | Voltage limit flag | 0/1 |
| 42 | uint8[2] | Reserved | Zero-padded |
0xF5 Position Loop Status
DATA length is 64 bytes:
| Offset | Type | Signal Name | Unit |
|---|---|---|---|
| 0 | float | Target position | deg |
| 4 | float | Feedback position | deg |
| 8 | float | Feedback velocity | rad/s |
| 12 | float | Position error | rad |
| 16 | float | Brake PWM duty ratio | pu |
| 20 | float | Position loop proportional term | - |
| 24 | float | Position loop integral term | - |
| 28 | float | Position loop derivative term | - |
| 32 | float | Integral accumulator | - |
| 36 | float | Reserved | Fixed 0 |
| 40 | float | Pre-limit output | - |
| 44 | float | Post-limit output | - |
| 48 | float | Velocity feedforward | rad/s |
| 52 | float | Velocity command | rad/s |
| 56 | float | Reserved | Fixed 0 |
| 60 | uint8 | Vibration suppression filter enable | 0/1 |
| 61 | uint8 | Output saturation flag | 0/1 |
| 62 | uint8 | Integral clamping flag | 0/1 |
| 63 | uint8 | In-position flag | 0/1 |
0xF6 Trajectory Generator Status
DATA length is 40 bytes:
| Offset | Type | Signal Name | Unit |
|---|---|---|---|
| 0 | float | Target position | deg |
| 4 | float | Feedback position | deg |
| 8 | float | Position error | deg |
| 12 | float | Velocity command | rpm |
| 16 | float | Motor velocity | rpm |
| 20 | float | Target position | rad |
| 24 | float | Trajectory reference position | rad |
| 28 | float | Velocity command | rad/s |
| 32 | float | Reserved | Fixed 0 |
| 36 | uint8 | In-position flag | 0/1 |
| 37 | uint8 | Trajectory result | 4: Not ready, 5: Completed |
| 38 | uint8 | Trajectory completed flag | 0/1 |
| 39 | uint8 | Reserved | Fixed 0 |
0xF7 Reserved Telemetry
DATA length is 4 bytes, currently fixed to float 0.0.
0xF8 Raw CAN FIFO0 Frame Passthrough
DATA length is 4 + N, where 1 <= N <= 64:
| Offset | Type | Name | Description |
|---|---|---|---|
| 0..1 | uint16 | CAN_ID | Lower 16 bits of the CAN identifier |
| 2 | uint8 | BUS_FORMAT | Bus frame format |
| 3 | uint8 | PAYLOAD_LEN | Length N of the following raw payload |
| 4..N | bytes | PAYLOAD | Raw CAN frame payload |
Integration Recommendations
To ensure strong cross-version compatibility and field reliability in integrated host software, follow these implementation practices:
- Implement a byte-stream state machine on the receiver side: scan for
0xAB, readLEN, and wait for the full payload plus the two checksum bytes before parsing. - Discard frames with invalid checksums immediately without attempting to parse
DATA. - Configure timeouts and retries for parameter and command transactions; when retrying, match the checksum fields in the
0x00ACK frame to correlate responses accurately. - Dynamically read device info, parameter count, and command count at connection time rather than hardcoding static parameter or command tables in host software.
- Telemetry payloads may be extended in future product series or firmware releases; design the host parser to tolerate unknown or extended trailing fields gracefully.