Skip to content

Motor Register Communication Protocol

This page describes how to read, write, save, and query BXI motor configuration registers over CAN. Register maps differ between motor firmware versions, so check the motor software version, hardware/program model, and configuration version before operating on registers.

Unless otherwise noted, CAN IDs, register addresses, data bytes, and example values in this page are hexadecimal. Other bases are called out explicitly.

1. Check the Version First

Use bxi_tool to view the motor's boot information after power-on. Angle brackets mark placeholders for values reported by the device.

========== BOOT INFO ==========
STATE : 00 STARTUP
BUILD : <build_date> <build_time>
VER   : code=<software_version> config=<configuration_version_or_status>
CAN   : id=<node_id>(<id_source>)

---------- DEVICE CHECK ----------
HW    : <detected_hardware>
PRO   : <firmware_target>
CON   : <configuration_status>
Field Meaning
VER code Motor software program version.
VER config Configuration version or read status reported at startup. Current series 1.5 firmware reports the Flash value captured before fallback defaults; CAN 0x7C returns the current RAM configuration version.
CAN id Current motor node ID. Use this value as node_id in later CAN commands. The boot ID is used by default; the ID source can be changed through registers.
HW Motor hardware identification result.
PRO Current build target/program model.
CON Configuration-load and compatibility status, such as same, INCOMPATIBLE, or default (CRC invalid).

Note

Use the first two components of VER code to select a register map, then check its configuration version and standard motor or gripper module. 0x7C alone is insufficient.

Current series 1.5 firmware initializes RAM defaults after a configuration-load failure. If startup reports invalid CRC, the accompanying raw value is not a valid configuration version. Reading the expected 1.5 from CAN 0x7C does not establish that the original Flash configuration is valid. See section 5 for persistence and recovery.

2. CAN Command Format

Register commands use the high bits of the standard CAN ID for the command, and the low 4 bits for the motor node:

CAN ID = (cmd << 4) | node_id

For example, when the motor can_id = 1, the register read command REG_READ has cmd = 0x17, where 0x17 is hexadecimal. The transmit CAN ID is:

(0x17 << 4) | 0x01 = 0x171
Command cmd CAN ID when node_id=1 DLC Purpose
REG_READ 0x17 0x171 4 Read one register
REG_WRITE 0x18 0x181 8 Write one RAM register
REG_SAVE 0x19 0x191 0 Save RAM configuration to Flash
REG_INFO 0x1A 0x1A1 0 Query the number of public registers

Register commands respond only to requests addressed to the target node; they do not use the 0x7FF broadcast ID. Current series 1.5 firmware handles these four commands in both MIT and GDM modes. Replies use the request CAN ID rather than the MIT status reply's master_id. The minimum lengths for REG_READ and REG_WRITE are 4 and 8 bytes; shorter requests return status=4. Send the standard lengths in the table.

3. Read Sending and Parsing

Use REG_READ to read a register; cmd = 0x17.

3.1 Transmit Frame

Field Content
CAN ID 0x17 is the hexadecimal command value. Shift it left by 4 bits, then merge the motor node_id into the low 4 bits
DLC 4
data[0..3] address, the register address, sent as a 32-bit little-endian value. See the final "Little-Endian Parsing Notes" section. Addresses are normally written in hexadecimal

The CAN ID has two parts:

High bits: cmd << 4, where cmd is the hexadecimal command value
Low bits : node_id, the current motor CAN id; node_id occupies the low 4 bits
Final CAN ID: (cmd << 4) | node_id

For a read command, cmd is fixed to hexadecimal 0x17, so first calculate the command high bits:

0x17 << 4 = 0x170

Then merge the motor node ID into the low 4 bits. The calculations below are hexadecimal bitwise OR operations:

Motor node_id Hex node value Calculation Transmit CAN ID
1 0x01 0x170 bitwise OR 0x01 0x171
3 0x03 0x170 bitwise OR 0x03 0x173
8 0x08 0x170 bitwise OR 0x08 0x178

If the motor node is not 1, replace the low 4 bits of the CAN ID. For example, when node_id=3, the read command CAN ID is 0x173.

3.2 Reply Parsing

The motor replies with the same CAN ID and an 8-byte payload:

data[0..3] = status | (value_type << 8)
data[4..7] = value_raw

All multi-byte fields are little-endian. See the final "Little-Endian Parsing Notes" section.

Field Parsing
status data[0]; 0 means success.
value_type (data[1] & 0x07), the data type of value_raw.
value_raw data[4..7], parsed according to value_type.

status values:

status Meaning
0 OK
1 Invalid address, or non-zero reserved request header bits
2 Read-only, or writing is not allowed in the current state
3 Save failed
4 DLC too short
5 Write type mismatch
6 Invalid parameter value; current series 1.5 uses this for selected range or combined-value checks described in section 4.1

value_type values:

value_type Parsing
0 int32_t, little-endian signed integer. See the final "Little-Endian Parsing Notes" section
1 bool, 0=false, non-zero means true
2 float, IEEE754 single-precision floating-point value
3 uint32_t, little-endian unsigned integer. See the final "Little-Endian Parsing Notes" section
4 version, first read as uint32_t, then parse with major=(value>>8)&0xFF, minor=value&0xFF

3.3 Parsing Example

After reading 0x7C, if the reply is:

171#0004000004010000

Split it into bytes:

data[0..3] = 00 04 00 00
data[4..7] = 04 01 00 00

Parsing result:

Item Result
status 0x00, success
value_type 0x04, version
value_raw 0x00000104
Configuration version major=1, minor=4, so 1.4

After reading 0x60, if the reply is:

171#0000000001000000

value_type=0 means int32_t, and value_raw=0x00000001, so the current can_id = 1.

4. Write Sending and Parsing

Use REG_WRITE to write a register; cmd = 0x18. Writing normally changes only the configuration value in RAM. To keep the value after power-off, send REG_SAVE afterwards. See the matching register map for runtime parameters and automatic-save exceptions.

Automatic-save exceptions

On the current series 1.5 interface, a successful write to aging_test_status at 0x24 (type=3, uint32_t) schedules a save of the entire current configuration, including other unsaved RAM changes. The write reply arrives before the save result. MIT special switch commands report their save progress in a separate acknowledgment.

4.1 Transmit Frame

Field Content
CAN ID 0x18 is the hexadecimal command value. Shift it left by 4 bits, then merge the motor node_id into the low 4 bits
DLC 8
data[0..3] address bitwise OR value_type << 8, little-endian. See the final "Little-Endian Parsing Notes" section
data[4..7] value_raw, encoded according to the target register type, little-endian. See the final "Little-Endian Parsing Notes" section

The value_type in the write request must match the target register type. For bool, write 0 to disable and non-zero to enable; float uses IEEE754 single precision.

Access level 0 permits writes during operation; levels 1 and 2 permit writes only in menu or error state; level 3 is read-only. The current series 1.5 interface also checks the following parameters. Invalid values return status=6 and leave the previous value unchanged. These checks do not imply that every parameter has numeric validation.

Address Parameter Write condition
0x3D velocity_filter_cutoff_hz 0.1 ≤ value ≤ 1000 Hz; a successful write refreshes the velocity filter immediately
0x3E field_weaken_coefficient 0.1 ≤ value ≤ 0.95
0x3F field_weaken_d_limit -150 ≤ value ≤ -0.1 A
0x57, 0x58 Low and high board-temperature protection thresholds Combined with the other threshold's current value, must satisfy 0 ≤ low < high ≤ 150 °C

These ranges reject NaN and infinities. Each individual board-temperature threshold write must satisfy the combined low/high condition.

Register 0x6D, mit_aux_enable, is a runtime switch. Write 0/1 with type=1 to select temperature or AUX replies. AUX switching and queries

4.2 Reply Parsing

Both successful and failed writes return an 8-byte reply:

data[0..3] = status | (value_type << 8)
data[4..7] = value_raw

status=0 means the RAM write succeeded. For a valid address, the reply contains the register's actual value_type and current value_raw after processing; a failed type, permission, or value check returns the unchanged current value. Invalid-address and short-length replies use value_type=3 and value_raw=0. Check status before interpreting the value.

5. Save Sending and Parsing

Use REG_SAVE to save configuration; cmd = 0x19. It attempts the Flash write directly, unlike an asynchronous-save request.

On the current series 1.5 interface, mit_aux_enable, current_test_enable, backlash_test_enable, and runtime_state are written to Flash as 0, then restored to their runtime RAM values. Reloading the configuration resets them to zero. Saving also validates the parameter combinations listed in section 4.1; validation or Flash-write failures return status=3.

Configuration compatibility and recovery

Series 1.5 firmware checks the Flash CRC, then the configuration version. An invalid CRC initializes RAM defaults and leaves the original Flash contents unchanged. RAM defaults do not mean that the previous calibration and settings have been recovered.

If the CRC is valid but the configuration version differs, the firmware latches an incompatibility fault and rejects ordinary REG_SAVE and automatic saves. To deliberately rebuild the configuration, send character d (64) through the CAN menu ID 0x7E0 | can_id, then send y (79) within ten seconds. This discards the saved configuration and calibration. The background task writes defaults and verifies them by reading back; success triggers an automatic reboot, while failure leaves the motor disabled. Check the device's saved configuration and calibration records before confirming recovery.

5.1 Transmit Frame

Field Content
CAN ID 0x19 is the hexadecimal command value. Shift it left by 4 bits, then merge the motor node_id into the low 4 bits
DLC 0
Data Empty

5.2 Reply Parsing

The reply length is 8 bytes:

data[0..3] = status | (3 << 8)
data[4..7] = register_count

status=0 means save succeeded, and status=3 means save failed. data[4..7] is the number of public registers, parsed as little-endian uint32_t. See the final "Little-Endian Parsing Notes" section.

6. Info Query Sending and Parsing

Use REG_INFO to query the number of registers; cmd = 0x1A. Select a map by software series, then check the active interface using 0x7C, the firmware module, and REG_INFO. The configuration version or count alone does not uniquely identify register definitions.

6.1 Transmit Frame

Field Content
CAN ID 0x1A is the hexadecimal command value. Shift it left by 4 bits, then merge the motor node_id into the low 4 bits
DLC 0
Data Empty

6.2 Reply Parsing

The reply length is 8 bytes:

data[0..3] = status | (3 << 8)
data[4..7] = (writable_count << 16) | register_count

Here value_type=3, so value_raw is parsed as uint32_t. For example, value_raw = 0x00280036 means 0x0036 = 54 public registers and 0x0028 = 40 non-read-only registers; the latter is not the number writable in the current state. The current series 1.5 interface reports 0x0037003E for standard AC4754 motors (62/55) and 0x00300039 for grippers (57/48), where the decimal pairs are total/non-read-only counts.

7. Version Differences and Register Map Selection

This page describes register command transmission and decoding. Use the software series page and active interface for specific addresses, permissions, and defaults.

Recommended lookup flow:

  1. Read the software series, configuration-load status, and program model from the boot information.
  2. Select the software series and standard motor or gripper module in the register map index, then check the configuration version required by that map.
  3. Read CAN 0x7C for the current RAM configuration version and use REG_INFO to check the public register count for the selected module.
  4. If startup reports CRC or compatibility errors, use section 5 to check loading and recovery behavior. RAM defaults do not mean that the original Flash configuration has been recovered.

Warning

Select register definitions using the software series, configuration version, module, and active interface. Do not hard-code all parameters only by address or configuration version.

8. Little-Endian Parsing Notes

Little-endian is a byte order for multi-byte data: the low-order byte is placed at the low address, which means the low byte is sent first and the high byte is sent later. In this page, register addresses, status | (value_type << 8), and value_raw are all sent and parsed as little-endian values.

For 32-bit data 0x0000007C, the little-endian byte order is:

7C 00 00 00

Therefore, when reading register 0x7C, data[0..3] is:

data[0] = 0x7C
data[1] = 0x00
data[2] = 0x00
data[3] = 0x00

For another example, if reply value_raw in data[4..7] is:

04 01 00 00

It is restored to the 32-bit value:

value_raw = 0x00000104

If value_type=4, the field is a version value and is parsed as:

major = (value_raw >> 8) & 0xFF = 1
minor = value_raw & 0xFF = 4
configuration version = 1.4

The final interpretation depends on value_type: int32_t is parsed as a signed integer, uint32_t as an unsigned integer, float as an IEEE754 single-precision float, and version with the version rule above.