One Device, One Code: How to Read China's Robot Identification Scheme and What Developers Should Do
As robots enter factories, hospitals, warehouses, and homes at an accelerating pace, regulators face a fundamental question: how to uniquely and credibly identify every device in service. This article explains China's draft robot identification rules, which extend a four-segment "one device, one code" scheme from humanoid robots to all robot categories. You will learn how to parse the identifier, what validation a production parser needs, and why the code should serve as the primary key connecting device data across the entire lifecycle—from manufacturing and circulation to operation and retirement.
1. What Problem Does the Identification Code Solve?
Robots are entering factories, hospitals, warehouses, and homes at an accelerating pace. The first question regulators face is how to uniquely and credibly identify every device in service. Without a unified identifier, there is no common basis for product traceability, recalls, accident liability determination, or industry statistics. The same device may carry different numbers in different systems, making data difficult to consolidate.
The industry has previously run identification management pilots in the humanoid robot sector, building a full-lifecycle management service platform based on a four-segment code. A recently published draft regulation, now open for public comment, plans to extend the scope from humanoid robots to industrial, service, and special-purpose robots—in other words, all categories. Identification management is thus moving from a single-category pilot to unified, industry-wide rules.
According to public information, the comment period closes in early December. For the exact dates and the official release schedule, refer to announcements from the competent authorities. This article does not cite unverified figures about the pilot’s scale.
2. How to Read the Four-Segment Code
The core of the draft regulation is “one device, one code”: every robot leaving the factory receives a unique product identity code. The identifier consists of four parts:
| Segment | Name | Purpose |
|---|---|---|
| 1 | Manufacturer code | Identifies the producer, establishing the device’s ownership relationship with its manufacturer |
| 2 | Product description code | Identifies the product category and model family, enabling category-level statistics |
| 3 | Product serial number | Unique within the same manufacturer and product category, distinguishing individual devices |
| 4 | Other code | Reserved for check digits and extension fields, supporting forward compatibility |
Field names are based on the draft regulation. Field lengths, character sets, and check rules are not fully specified in the draft and must be confirmed once the official standard is published.
Developers can understand the basic idea of positional parsing with a short piece of code. In the example below, the segment lengths are illustrative values and do not represent the official standard:
# Illustrative code: demonstrates positional parsing; segment lengths are# illustrative values and do not represent the official standardFIELDS = [("manufacturer", 6), # Manufacturer code("product_desc", 8), # Product description code("serial_no", 12), # Product serial number("reserved", 3), # Other code (check digit, extension fields)]def parse_robot_id(robot_id: str) -> dict:expected = sum(length for _, length in FIELDS)if len(robot_id) != expected:raise ValueError(f"Expected ID length {expected}, got {len(robot_id)}")result, offset = {}, 0for name, length in FIELDS:result[name] = robot_id[offset:offset + length]offset += lengthreturn resultprint(parse_robot_id("CN0001R02SRV2026000001234AB1"))
This code does only two things: check the total length, then split by position. A production environment must add the following checks:
- Character set validation: verify each character against the allowed set defined in the official standard.
- Check digit calculation: if the fourth segment contains a check digit, validate it using the standard algorithm; otherwise, data entry errors will go undetected.
- Version compatibility: the code rules may be upgraded. The parser should recognize a version number and refuse to process unknown versions.
- Field semantics verification: the extracted codes should be cross-checked against the manufacturer code table and product category table to confirm their validity.
3. How the Code Connects Full-Lifecycle Data
The value of the identification code goes beyond being a label on the device. It is the primary key for device data at every stage, with all records attached to the same number.
- Manufacturing: a record is created when the code is assigned; product information, safety certifications, and test reports are all bound to the identifier.
- Circulation: during sales, leasing, and second-hand transactions, both parties can verify a device’s origin through the code, reducing the flow of devices of unknown provenance into the market.
- In service: maintenance records, software versions, and firmware updates are all attached to the same identifier, facilitating remote operations and security patch management.
- Retirement: scrapping and recycling are also traceable, providing compliance evidence for environmentally sound disposal and data destruction.
For development teams, the data model should treat the unique identifier as a core field as early as possible. In a device management system, it is recommended to use the identification code as the primary key, with work orders and OTA records linked to it via foreign keys, rather than relying on internal temporary serial numbers. The DDL below is for illustration only, using MySQL syntax:
-- Illustrative DDL: shows table structure and relationships only.-- Field lengths and character sets are subject to the official standard;-- do not use this directly in a production database.CREATE TABLE device_registry (robot_id VARCHAR(40) PRIMARY KEY, -- Unified identifier; length is illustrativemanufacturer VARCHAR(6) NOT NULL, -- Manufacturer code; must match the corresponding segment of the ID before insertionproduct_type VARCHAR(8) NOT NULL, -- Product description code
