One Code per Robot: Designing and Deploying Identification Systems for All Robot Categories

    This article explains why robots need a unique identification code for each unit and how a proposed four-part code structure would work. It covers the migration from the existing 29-digit code, carrier options, registration and idempotent write logic, role-based resolution services, data models, and the upgrade of legacy devices. It also notes that the relevant standard is still in draft form.

    1. Why Robots Need One Code per Unit

    The robot industry is moving from individual smart machines toward large-scale collaboration. As product types expand from humanoid robots to industrial, service, and special-purpose robots, product identity management is no longer only a serial number issue for manufacturers. It affects safety governance, quality traceability, and full lifecycle management.

    A draft set of interim measures, released for public comment by a government agency, proposes assigning every robot leaving the factory a unique product identity code. The goal is a unified product “ID card” system. According to the original text, the public comment period closes on December 5. Readers should check the issuing agency, the full document title, and the year in the official announcement. This article does not replace the original document. The proposal suggests that robot identification is shifting from company-defined numbering to a unified industry-wide coding system.

    An identification code binds a physical device to its digital records. For developers, the code serves as the primary key for linking data across systems. It can connect factory information, software versions, sales channels, usage records, maintenance history, fault recalls, and decommissioning and recycling. When an accident or quality issue occurs, regulators and manufacturers can use the code to quickly identify the product batch, the responsible party, and the software configuration. When different systems use the same identifier, data exchange becomes smoother, and the problems of duplicate data entry and broken traceability chains decrease.

    Earlier, industry practice for humanoid robots adopted a 29-digit code with four segments: a national code, an enterprise code, a product code, and a serial code. Public reports state that more than a hundred companies and tens of thousands of humanoid robots have been assigned codes, but the exact figures should be verified against the original source. The draft extends the scope to all robot categories. The identification system must therefore account for differences among categories in structure, purpose, operating environment, and regulatory requirements. Developers should build an extensible encoding adaptation layer, so that the same registration, resolution, and traceability capabilities can serve many types of robots.

    2. Code Structure and Encoding Principles

    The draft proposes that an identification code consist of four parts. The table below describes the role of each part and the design considerations.

    Component Purpose Design considerations
    Manufacturer code Identifies the responsible party Must map to the manufacturer master data. Any suspension or change must be recorded.
    Product description code Describes the product category, model, or key attributes Do not write variable business attributes into this segment.
    Product serial number code Guarantees uniqueness for each unit under the same manufacturer and product description Generated by the production system, not by manual registration.
    Other codes Reserved space for batch, production date, or extended information Keep optional so that the stability of the primary code is not affected.

    The encoding design should follow five principles.

    First, uniqueness. Each robot maps to exactly one primary identifier throughout its lifecycle. Repairs, software upgrades, or changes of ownership should not trigger a new code.

    Second, stability. Once an identification code is registered and published, it does not change. Changes to business attributes are recorded by updating the linked profile, not by modifying the primary code.

    Third, resolvability. The registration center or resolution service must recognize the identification code and map it to the product profile.

    Fourth, extensibility. The code structure must leave room for expansion across all robot categories and for future regulatory fields, so that adding new attributes does not force a redesign of the entire system.

    Fifth, minimal disclosure. The identification code itself should carry as little sensitive information as possible. Sensitive data should be retrieved through a resolution service with access controls.

    Migrating from the 29-digit, four-segment code to the four-part structure requires handling compatibility between the old and new codes. Developers should not assume that the two code formats can be truncated or concatenated. The correct approach is to keep the existing code as a historical identifier, generate a new identification code under the new standard in the new registration process, and maintain the link between the two through an alias table.

    1. // Illustrative structure. Field lengths, character sets, and validation rules follow the formal standard.
    2. type RobotIdentity = {
    3. manufacturerCode: string; // Manufacturer code
    4. productSpecCode: string; // Product description code
    5. serialCode: string; // Product serial number code
    6. extensionCode?: string; // Other codes, extended per the standard and use case
    7. };

    Code should not hardcode assumptions about the number of digits. Encoding rules should live in configuration. Once the standard is formally published, only the configuration needs updating to adapt the system.

    3. Standard Status and Verification

    The draft specifies that encoding and code assignment should follow GB/T 48541-2026, Robot Product Identification Code. The original text also notes that the drafting plan for this standard was issued in January 2026. Both points indicate that the standard is still in progress. This article cannot confirm its current publication status, its formal standard number, or its effective date.

    Before the standard is formally published, developers should keep the following points in mind.

    1. Do not treat the standard number as proof that the standard is in force. Compliance documents should label it as “draft for public comment” or “planned.”
    2. Check the designated administering body against the official announcement. This article does not name a specific organization.
    3. Fix field lengths, character sets, and check digits only after the formal text is published. Until then, implement these rules as configurable settings.
    4. Enterprises can first build the master data, registration center, and resolution service. These components are less affected by changes in the standard’s details.

    4. Carrier Selection and Re-coding Principles

    The identification code must be written onto a carrier. Common carriers include QR codes, RFID tags, and laser engraving. Selection should depend on the product category, operating environment, and maintenance requirements.

    Carrier Suitable environment Maintainability Reading conditions How to re-apply the code
    QR code label Indoor and service settings Easy to replace, but prone to wear Requires line of sight and adequate lighting Reprint and reattach with the same content
    RFID tag Industrial sites and scenarios that require batch reading Can be embedded in structural parts; replacement requires disassembly Requires a reader; reading is affected near metal and liquids Rewrite the same identification code
    Laser engraving High-temperature, dusty, high-wear environments Cannot be replaced; requires reprocessing Requires vision equipment; sensitive to lighting Engrave a new mark separately and record the relationship between the old and new carriers

    Regardless of the carrier, one principle applies: the primary identifier stays the same, and the carrier can be replaced. If a carrier is damaged, write the same identification code onto a new carrier. Do not generate a new code. Each re-coding operation must record the operator, the time, the reason, and the condition of the old carrier.

    5. Registration and Code Assignment Workflow

    Identification code management is an end-to-end process, not a one-time printing task. The recommended workflow includes: preparing master data, maintaining manufacturer codes, filing product description codes, generating serial numbers, checking for duplicates at registration, writing the carrier, publishing status, and launching the resolution service.

    The production execution system should generate candidate serial numbers according to the rules before the product leaves the factory. The registration center then verifies that each number is unique. Code assignment should happen before shipment, so that every product has a resolvable identity before it enters circulation.

    The registration process must be idempotent. If the same production task is submitted more than once, it should not create multiple identity records. If different tasks conflict, the system should return a clear error code and route the case to manual review.

    1. type RegisterRequest = {
    2. idempotencyKey: string; // Composed of the production task ID, the identification code, and a digest of the request content
    3. identity: RobotIdentity;
    4. operator: string; // Operator or system account
    5. requestedAt: string; // ISO 8601 timestamp
    6. };
    7. type RegisterOutcome =
    8. | { status: "CREATED"; identityId: string }
    9. | { status: "REPLAYED"; identityId: string } // Same request resubmitted; returns the original record
    10. | {
    11. status: "REJECTED";
    12. errorCode:
    13. | "E_FORMAT_INVALID" // Format does not match the configured standard
    14. | "E_MANUFACTURER_UNKNOWN" // Manufacturer code is invalid
    15. | "E_SPEC_UNKNOWN" // Product description code is not filed
    16. | "E_SERIAL_CONFLICT"; // Same code maps to different content; requires manual review
    17. };
    18. function registerRobotIdentity(req: RegisterRequest): RegisterOutcome {
    19. const formatError = validateByConfig(req.identity); // Validate character set and length against configuration
    20. if (formatError) return { status: "REJECTED", errorCode: formatError };
    21. if (!manufacturerExists(req.identity.manufacturerCode)) {
    22. return { status: "REJECTED", errorCode: "E_MANUFACTURER_UNKNOWN" };
    23. }
    24. if (!specRegistered(req.identity.productSpecCode)) {
    25. return { status: "REJECTED", errorCode: "E_SPEC_UNKNOWN" };
    26. }
    27. const existing = findByIdempotencyKey(req.idempotencyKey);
    28. if (existing) {
    29. return existing.payloadHash === hash(req.identity)
    30. ? { status: "REPLAYED", identityId: existing.id }
    31. : { status: "REJECTED", errorCode: "E_SERIAL_CONFLICT" };
    32. }
    33. const created = persistWithAudit(req); // Write the registration record and audit log in the same transaction
    34. publishIdentityEvent(created.id); // Publish an event for the resolution and traceability systems
    35. return { status: "CREATED", identityId: created.id };
    36. }

    The registration center should record audit fields, including the operator, request time, production batch, request digest, result status, and error code. These fields support retrospective traceability and help investigate duplicate code assignment.

    6. Resolution Service and Role-Based Access

    Identity resolution should not become a public query endpoint for sensitive data. The resolution service should return different fields depending on the caller’s role and log every access.

    Role Visible content Restrictions Audit requirements
    Regulators Identification code, manufacturer, product category, status, recall and incident records Operational data requires authorization before access Record the queried object, time, and reason
    Manufacturers All profile fields for their own products Cannot view data from other manufacturers Record exports and bulk queries
    After-sales service providers Maintenance records, fault codes, and product information within their authorization scope Limited to devices covered by their service contracts Record each query linked to a repair work order
    End users Basic product information, usage instructions, and after-sales channels Masked display; internal batch and serial details are hidden Record access frequency; trigger rate limiting for abnormal access

    Key profiles should undergo integrity checks. When the carrier is written, the system can attach a digital signature or a check field. The resolution service then verifies the profile’s integrity before returning it.

    7. Data Model and Auditing

    At the database level, serial numbers must be unique within the same manufacturer and product description. The constraint below is illustrative. The actual fields will follow the formal standard.

    1. -- Illustrative constraint: serial number is unique within a manufacturer and product description
    2. UNIQUE (manufacturer_code, product_spec_code, serial_code)

    Beyond the unique constraint, the registration table should include these fields: idempotency_key (unique index), payload_hash (request content digest), status (state machine field), created_by, created_at, and updated_at. Write the audit log in the same transaction as the registration record. This prevents cases where a record exists without a log, or a log exists without a record.

    Lifecycle states should use one shared set: generated, registered, code assigned, shipped from factory, in use, under repair, and decommissioned. Production, sales, after-sales, and quality systems should all use this same set, so that the systems do not produce conflicting status definitions.

    8. Upgrading Existing Devices

    Upgrading devices already in service is the hardest part of implementation. The recommended approach is phased:

    • Assign codes to new products under the new standard as they leave the factory.
    • For devices already in service, first create historical profiles and a mapping between old and new codes. Then rewrite carriers during maintenance or inspection visits.
    • For special devices that cannot be assigned a code directly, record them with a controlled alternative identifier scheme. Document the reason and validity period.

    The mapping table is the central tool for this migration. Each entry should contain the old code, the new code, mapping status, effective date, and notes. Keep every version of a mapping change. Do not overwrite existing records.

    Differences across categories mainly reflect operating environments and regulatory priorities. The encoding rules can be unified, while carrier selection, data collection frequency, and access models should be configured by scenario. Industrial settings usually emphasize wear resistance and reading efficiency. Service settings focus more on user interaction. Special-purpose settings must consider protection ratings and mounting methods.

    9. Common Errors Checklist

    During implementation, the following problems occur most often. Check each one during testing:

    • Digit counts are hardcoded in the code, so every change to the standard requires a code change.
    • One physical robot maps to multiple profiles, causing “one code, multiple records.”
    • An identification code exists without a corresponding profile, causing “code without record.”
    • The resolution interface lacks access checks, allowing unauthorized reads of sensitive operational data.
    • A damaged carrier is replaced with a newly generated code, breaking the historical record chain.
    • Repeated submissions are not handled idempotently, creating duplicate identity records.
    • Old and new codes are truncated or concatenated directly, instead of being linked through an alias table.
    • The audit log and the registration record are written in separate transactions, causing data inconsistency.

    10. Implementation Checklist

    Step Main actions Deliverables Acceptance metrics Owning system
    1 Inventory existing products and legacy codes Inventory list, legacy-to-new code mapping table Mapping coverage rate Master data system
    2 Build a configurable encoding adaptation layer Validation rule configuration Rule changes require no business code changes Registration center
    3 Build the registration center Idempotent registration, conflict handling, auditing Registration conflict rate, duplicate submission interception rate Registration center
    4 Select carriers and define the re-coding process Carrier selection table, re-coding procedure Time to complete re-coding Production system, after-sales system
    5 Design the resolution service Role permission table, masking rules Zero unauthorized access Resolution service
    6 Integrate with production, after-sales, and quality systems Unified state machine Number of status inconsistencies Business systems
    7 Run phased rollout and conflict testing Test report All tests pass for serial uniqueness conflicts, offline code assignment, and damaged carrier scenarios Test environment
    8 Set up monitoring Monitoring dashboard Code assignment success rate, resolution latency, audit anomaly rate Monitoring system

    Enterprises should set threshold values for these acceptance metrics based on their own conditions. This article does not provide general numerical targets.