Skip to main content

PR0001 JxServo Studio USB Communication Protocol

ItemDetails
Document NumberPR0001
RevisionRev. 1.0
Applicable ProductsJxServo Studio / JxServo Servo Devices
LanguageEnglish
Last Updated2026-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​

CapabilityOpen Functionality
Device IdentificationRead the device address, version numbers, and device name for automatic recognition of connected targets
Parameter ManagementDynamically read parameter count, data type, name, description, and value to support viewing and configuration in host applications
Command DiscoveryDynamically read the set of commands currently exposed by the device without maintaining a hardcoded command table
Command ExecutionAssemble execution frames based on device-returned command descriptors for automated commissioning and application integration
Log ReceptionReceive status, error, and prompt messages from the device so integrated software can present clear feedback
Real-Time TelemetryAcquire 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
FieldLength (Bytes)Description
0xAB1Fixed frame header
S_ADDR1Source address
D_ADDR1Destination address
ID1Frame function ID
LEN2Byte length of DATA, Little-Endian
DATANPayload data
SUM_CHECK1Sum checksum
ADD_CHECK1Additional (cumulative) checksum

Public addresses are defined as follows:

AddressMeaning
0x01Default servo device address
0xFEJxServo Studio
0xFFBroadcast 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.

IDDirectionNameDescription
0x00Device -> StudioACK CheckReturns processing acknowledgment for frames requiring confirmation (such as parameter writes and command execution)
0xA0Device -> StudioLog StringOutputs status, error, and prompt text messages
0xC0Studio -> DeviceCommand ExecutionExecutes a command obtained via the command discovery workflow
0xC1BidirectionalCommand Count / Read Command InfoStudio queries the total command count or a specific command descriptor
0xC2Device -> StudioCommand InfoReturns the command descriptor, argument types, name, and description
0xE0BidirectionalParameter CommandReads device info, parameter count, parameter value, or parameter metadata
0xE1BidirectionalParameter ValueStudio writes a parameter value, or the device returns a parameter value
0xE2Device -> StudioParameter InfoReturns parameter data type, name, and description
0xE3Device -> StudioDevice InfoReturns device address, version numbers, and device name
0xF1 - 0xF8Device -> StudioTelemetry DataReal-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:

OffsetTypeNameDescription
0uint8ID_GETID of the acknowledged frame
1uint8SC_GETSUM_CHECK of the acknowledged frame
2uint8AC_GETADD_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:

OffsetTypeNameDescription
0uint8COLOR0: Default, 1: Red, 2: Green, 3: Blue
1..NbytesTEXTText 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:

CodeTypeLength (Bytes)
0uint81
1int81
2uint162
3int162
4uint324
5int324
8float4

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:

OffsetTypeNameDescription
0uint8CMDParameter sub-command
1..2uint16VALCommand argument; omit or fill with 0 for commands without arguments
CMDVALResponse IDDescription
0x00None0xE3Read device info
0x01None0xE0Read parameter count
0x02Parameter ID0xE1Read parameter value
0x03Parameter ID0xE2Read parameter info

When the device returns the parameter count, DATA is structured as:

OffsetTypeNameDescription
0uint8CMDFixed to 0x01
1..2uint16COUNTCurrent 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:

OffsetTypeNameDescription
0..1uint16PAR_IDParameter ID
2..NPer parameter typePAR_VALParameter 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:

OffsetTypeNameDescription
0..1uint16PAR_IDParameter ID
2..NPer parameter typePAR_VALCurrent 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.

OffsetTypeNameDescription
0..1uint16PAR_IDParameter ID
2uint8PAR_TYPEParameter data type code
3..22bytes[20]PAR_NAMEParameter name, padded with 0x00 if shorter than 20 bytes
23..NbytesPAR_INFOParameter 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.

OffsetTypeNameDescription
0uint8DEV_IDDevice address
1..2uint16HW_VERHardware version
3..4uint16SW_VERSoftware (firmware) version
5..6uint16BL_VERBootloader version
7..8uint16PT_VERProtocol version
9..NbytesDEV_NAMEDevice 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:

  1. Studio sends 0xC1 with CMD=0 to read the command count.
  2. The device responds with 0xC1, reporting the current command count.
  3. Studio sends 0xC1 with CMD=1 for each command index to query every command's metadata.
  4. The device responds with 0xC2, containing the 3-byte command identifier, argument types, name, and description.
  5. Studio constructs and sends a 0xC0 execution frame according to the 0xC2 descriptor.

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:

OffsetTypeNameDescription
0uint8CMD0: Read command count, 1: Read command info
1..2uint16VALCommand index when CMD=1

Device returns command count:

OffsetTypeNameDescription
0uint8CMDFixed to 0
1..2uint16COUNTCurrent 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.

OffsetTypeNameDescription
0..1uint16CMD_IDCommand index
2uint8CMD0Command module identifier
3uint8CMD1Command action identifier
4uint8CMD2Command function identifier
5..12uint8[8]VAL0..VAL7Command argument type codes
13..32bytes[20]CMD_NAMECommand name, padded with 0x00 if shorter than 20 bytes
33..NbytesCMD_INFOCommand description text

Command argument type codes:

CodeTypeLength (Bytes)
0x00No argument0
0x01uint81
0x02int81
0x03uint162
0x04int162
0x05uint324
0x06int324
0x09float4

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:

OffsetTypeNameDescription
0uint8CMD0From 0xC2
1uint8CMD1From 0xC2
2uint8CMD2From 0xC2
3..NPer VAL0..VAL7ARGSCommand 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:

IndexSignal NameUnit
1Target positiondeg
2Feedback positiondeg
3Position errordeg
4Target velocityrpm
5Feedback velocityrpm
6Velocity errorrpm
7Iq targetA
8Iq feedbackA
9Id targetA
10Id feedbackA

0xF2 DC Bus, Joint, and Temperature​

DATA length is 32 bytes, all encoded as float:

IndexSignal NameUnit
1Bus currentA
2Bus voltageV
3Joint velocityrpm
4Joint angledeg
5Motor velocityrpm
6Iq feedbackA
7Power stage (MOS) temperaturedegC
8Motor temperaturedegC

0xF3 Sampling and Raw Encoder Counts​

DATA length is 24 bytes:

OffsetTypeSignal NameUnit
0floatPhase U currentA
4floatPhase V currentA
8uint32Motor-side commutation countcounts
12uint32Joint-side commutation countcounts
16uint32Raw motor encoder valuecounts
20uint32Latest FOC execution cycle countcycles

0xF4 Velocity Loop and Torque Status​

DATA length is 44 bytes:

OffsetTypeSignal NameUnit
0floatVelocity targetrad/s
4floatVelocity feedbackrad/s
8floatVelocity loop proportional termNm
12floatVelocity loop integral termNm
16floatController torque commandNm
20floatDisturbance estimateNm
24floatDisturbance compensationNm
28floatTorque feedforwardNm
32floatOutput torque commandNm
36floatFiltered torque commandNm
40uint8Torque limit flag0/1
41uint8Voltage limit flag0/1
42uint8[2]ReservedZero-padded

0xF5 Position Loop Status​

DATA length is 64 bytes:

OffsetTypeSignal NameUnit
0floatTarget positiondeg
4floatFeedback positiondeg
8floatFeedback velocityrad/s
12floatPosition errorrad
16floatBrake PWM duty ratiopu
20floatPosition loop proportional term-
24floatPosition loop integral term-
28floatPosition loop derivative term-
32floatIntegral accumulator-
36floatReservedFixed 0
40floatPre-limit output-
44floatPost-limit output-
48floatVelocity feedforwardrad/s
52floatVelocity commandrad/s
56floatReservedFixed 0
60uint8Vibration suppression filter enable0/1
61uint8Output saturation flag0/1
62uint8Integral clamping flag0/1
63uint8In-position flag0/1

0xF6 Trajectory Generator Status​

DATA length is 40 bytes:

OffsetTypeSignal NameUnit
0floatTarget positiondeg
4floatFeedback positiondeg
8floatPosition errordeg
12floatVelocity commandrpm
16floatMotor velocityrpm
20floatTarget positionrad
24floatTrajectory reference positionrad
28floatVelocity commandrad/s
32floatReservedFixed 0
36uint8In-position flag0/1
37uint8Trajectory result4: Not ready, 5: Completed
38uint8Trajectory completed flag0/1
39uint8ReservedFixed 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:

OffsetTypeNameDescription
0..1uint16CAN_IDLower 16 bits of the CAN identifier
2uint8BUS_FORMATBus frame format
3uint8PAYLOAD_LENLength N of the following raw payload
4..NbytesPAYLOADRaw 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, read LEN, 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 0x00 ACK 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.