One Robot, One ID: An Engineering Guide to Robot Product Identification Systems
As robots move from labs and closed production lines into open, human-shared environments, regulators and manufacturers are pushing for a unified product identification system — effectively a "national ID" for every unit. This guide walks through how to design a robot identification code: a layered structure that separates model-level product IDs from unit-level individual IDs, the four-segment layout (manufacturer code, product description code, product sequence code, and other codes), character-set and length choices for human-readable fixed-length codes, check-code validation, system-enforced uniqueness (unified number allocation, database unique indexes, idempotent coding), and anti-counterfeiting via HMAC signing, digital signatures, and hardware-fingerprint binding. It also covers full-lifecycle data management, state machines and traceability loops, security and privacy, a four-phase rollout roadmap, and five common pitfalls — everything you need to build robot identification as durable infrastructure.
As robots move out of labs and closed production lines into open environments, questions such as who built a unit, what model it is, what its serial number is, and what repairs and upgrades it has gone through are becoming a hard requirement for safety governance and user trust.
Regulatory momentum is building. China’s Ministry of Industry and Information Technology, for example, has released a draft measure on the interim administration of robot product identification codes for public comment, with the comment period subject to the official announcement. The draft proposes a unified robot product “identity card” system: each factory-produced robot is assigned a unique product identity code to support industry-wide safety governance and full-lifecycle management. The identification code consists of four parts — a manufacturer code, a product description code, a product sequence code, and other codes — and the draft references or applies the relevant national standards for robot product identification codes.
Earlier public information indicates that some platforms and pilots have already adopted a similar multi-segment approach — “country code + company code + product code + serial code” — and have coded some products, with the specifics subject to official releases. This draft would extend the scope from humanoid robots to all categories, including industrial robots, service robots, and special-purpose robots. The two approaches may define their segments differently, but the design goal is identical: every robot must have a unique, stable, and parseable identity.
This article explains how the encoding structure, validation, and anti-counterfeiting work, and what to watch for in practice. It answers common questions such as how to design the robot ID structure, how to validate it, how to make it counterfeit-resistant, and what to pay attention to when rolling it out.
1. Why Robots Especially Need an “Identity Card”
1.1 Risk Spillover: When Something Goes Wrong, Trace It to “This Specific Unit”
Traditional industrial products mostly run at fixed workstations. When a quality problem occurs, batch information is usually enough to locate the issue. Robots — especially humanoid and service robots — move and operate autonomously in physical spaces shared with people. If a collision, fall, or misoperation happens, accountability has to be precise down to “this specific unit”:
- The manufacturer and product model;
- The production date and version;
- The operating environment and task mode;
- Any prior repair and modification records.
Without a stable per-unit identifier, this information is hard to bring together into a complete chain of evidence.
1.2 Dual-Track Evolution: Hardware and Software Move at Different Speeds
A robot is a composite of “mechanical hardware + electronic hardware + software/model.” The physical structure often stays the same for years, while motion-control policies, perception algorithms, and even large models may iterate every few weeks. After an OTA upgrade, two robots of the same model may run on different versions, and their risk profiles change accordingly. The per-unit identifier is the main thread that ties these dimensions together:
- Material and configuration baseline: core component batches, replacement parts, later modifications;
- Software and model versions: rollout time, scope, and rollback records for each version;
- Operations events: faults, repairs, collisions, remote takeovers;
- Usage and environment: scenario type, workload intensity, operating area.
1.3 Category-Wide Unification: “Same Rules,” yet “Distinguishable”
Industrial robots are mostly robotic arms, service robots come in many forms, and special-purpose robots face underwater, high-altitude, and flammable or explosive environments. The categories differ widely, yet there is a shared need for unified management. A scalable identification system should satisfy three points at once:
- Unified rules: consistent rules within the same category, making regulatory comparison and recall statistics easier;
- Distinguishable forms: the product description code can differentiate categories and specifications;
- Backward compatibility: devices that already carry codes can be brought in smoothly, without starting over.
2. Design Principles: Six Standards for a Good ID System
- Uniqueness: the same identifier never points to two different devices.
- Stability: once assigned, the identifier never changes for life — no change on repair, shell replacement, or resale.
- Parseability: the manufacturer, model, serial number, and other key information can be reconstructed from the code itself or from a resolution service.
- Carryability: the code can be read and written by people on a nameplate, scanned quickly by devices, and printed on structural parts that are hard to replace.
- Anti-forgery and anti-tampering: the code cannot be easily counterfeited, and the history data behind it cannot be rewritten at will.
- Interoperability: different systems can parse and exchange identifiers under the same rules, without one-to-one custom integration.
Every design choice below can be checked against these six standards.
3. Encoding Structure Design: Give Every Character a Job
3.1 Layering Product ID and Individual ID
It is recommended to split the identifier into two layers:
| Layer | Question it answers | Typical carrier | Order of magnitude | Example (illustrative) |
|---|---|---|---|---|
| Product ID (model-level) | Who made it, what model, what spec | Manufacturer code, product description code | Same order as the number of models | Company code A3F9 + product code SC2601R1 |
| Individual ID (unit-level) | Which specific unit | Sequence code + check digit | Same order as production volume | Sequence 0000012345 + check code 7 |
Once layered, recall statistics aggregate by product ID while accident accountability drills down by individual ID — each need is served. Key modules beyond the main body (main controller, battery, joint modules, etc.) can also be given sub-codes carrying the parent identifier. This way, when a part is replaced during repair, “which module on which device was replaced” can be traced.
3.2 Segment Responsibilities: Write the Information “Into” the Code
Using the draft’s four-segment structure as an example, the responsibilities of each segment are:
- Manufacturer code: identifies the responsible party and is the starting point for recall and accountability. Each party gets its own dedicated segment, which makes cross-comparison easy. Reserve enough capacity in the segment to avoid being forced to expand it when new companies join later.
- Product description code: identifies the model, category, and key specifications. The encoding can hook into existing product-model naming rules and incorporate key information such as “teaching-type/autonomous-type,” “payload class,” and “protection rating.”
- Product sequence code: the core of uniqueness, usually implemented as a monotonically increasing production-line sequence or a centrally allocated number range. Whether it includes a check digit and whether it may contain the production date must both be agreed alongside the uniqueness rules.
- Other codes: carry the check digit, version, and reserved expansion slots. The check code automatically catches input and reading errors, while the expansion slots handle future rule changes.
3.3 Character Set and Length: Prefer a “Human-Readable” Code
Robots are repeatedly read in factories, warehouses, repair stations, and user sites, so the character set should not use the full range of uppercase and lowercase letters and digits. The following rules are recommended:
- Use digits 0-9 and uppercase letters;
- Exclude easily confused characters such as I, L, O, and U;
- Keep digits 0 and 1, but never let them substitute for letters O and I;
- Use an easy-to-read font for marking, and use the check code to catch transcription errors;
- Fix the length with no optional segments, so parsing is always fixed-length.
On sizing, with a 32-character alphabet, a 20-character code has a capacity of about 32²⁰ ≈ 1.1×10³⁰, more than enough to cover robot production for the foreseeable future. A fixed-length code has an extra benefit: the QR code stays a constant size, so production-line marking parameters and the user scanning experience are both more stable.
4. Uniqueness, Validation, and Anti-Counterfeiting: Don’t Trust “Looks Like No Duplicates”
4.1 Check Codes: Catch Most Low-Level Errors
During circulation, codes run into smudging, a one-digit transcription error by hand, and misreads by scanners. Appending a weighted modulo check code in the last position catches the vast majority of single-character errors and also detects common errors such as swapping two adjacent characters fairly well. In addition, a failed check can reject the entry directly, preventing a “wrong code” from becoming a “real code.”
4.2 Uniqueness Must Be Guaranteed by the System
The following illustrative code (Python) shows how to build an individual identifier from a company code, product code, and serial number, and append a check code:
ALPHABET = "0123456789ABCDEFGHJKMNPQRSTVWXYZ" # 32 characters, excluding I, L, O, UBASE = len(ALPHABET)SERIAL_WIDTH = 10 # Serial number width per modeldef _check_code(body: str) -> str:"""Weighted modulo check: weight alternately by 1 and 3 from right to left, sum, then take modulo for the check code"""total = sum(ALPHABET.index(ch) * (1 if i % 2 == 0 else 3)for i, ch in enumerate(reversed(body)))return ALPHABET[(BASE - total % BASE) % BASE]def make_robot_id(company: str, product: str, seq: int) -> str:"""Build an individual ID (with check code) from company code, product code, and serial number"""assert len(company) == 4 and len(product) == 8assert 0 <= seq < BASE ** SERIAL_WIDTHdigits = ""for _ in range(SERIAL_WIDTH):seq, rem = divmod(seq, BASE)digits = ALPHABET[rem] + digitsbody = company + product + digitsreturn body + _check_code(body)def is_valid(robot_id: str) -> bool:"""Fixed-length parsing: validate the character set first, then the trailing check code; return False for illegal characters"""if len(robot_id) != 23:return Falseif any(ch not in ALPHABET for ch in robot_id):return Falsereturn robot_id[-1] == _check_code(robot_id[:-1])
This code only guarantees that “a generated code is structurally valid” — it cannot guarantee “global uniqueness.” There are three reasons:
- Multiple production lines may generate the same serial number;
- Serial numbers may be assigned twice under concurrent writes;
- In the system, duplicate allocation of form numbers and order numbers, or duplicate imports that turn one row of data into two devices, can directly cause “one code for multiple machines.”
Eliminating these risks requires three lines of defense:
- Unified number-range allocation: have the identification service allocate numbers centrally per model. Each time, draw a continuous range of serial numbers and draw again once it is used up, avoiding each line acting on its own.
- Database unique index as a backstop: even if the upper-layer logic has a concurrency defect, the database rejects duplicate writes.
-- Example: use a database unique index as the last line of defense for uniquenessCREATE TABLE robot_registry (robot_id VARCHAR(23) PRIMARY KEY, -- Global individual ID (with check code)company_code CHAR(4) NOT NULL, -- Company codeproduct_code CHAR(8) NOT NULL, -- Product codeseq_no CHAR(10) NOT NULL, -- Serial numberassign_batch VARCHAR(32) NOT NULL, -- Number-range batch, for tracing the allocation sourcestatus VARCHAR(16) NOT NULL DEFAULT 'FACTORY',created_at TIMESTAMP NOT NULL);
- Idempotent coding: when the same work order is resubmitted, check first and then write. Concurrency conflicts are covered by the unique index and retried automatically, so the “same device generating two codes” problem is eliminated.
4.3 Anti-Counterfeiting: An Identifier Is Not a Credential
The biggest characteristic of a serial-number code is that it is predictable. An attacker only needs to know a company’s number range to assemble a format-valid identifier. So the code can only answer “who you are,” not “whether you are genuine.” Factory records and critical state changes should have a message authentication code (HMAC) computed on the manufacturer side with a secret key, and the cloud should verify the signature using the key alone:
import hashlib, hmacdef sign(robot_id: str, event: dict, secret: bytes) -> str:"""Compute an authentication code over the ID and event content; illustrative digest only, production should output the full value"""raw = robot_id + "|" + "|".join(f"{k}={event[k]}" for k in sorted(event))return hmac.new(secret, raw.encode(), hashlib.sha256).hexdigest()[:32]# Example: factory recordrecord = {"factory": "F01", "line": "L03", "ship_date": "2026-11-07"}mac = sign("A3F9SC2601R10000012345", record, b"<manufacturer-secret>")
Specific protection measures can be tiered by the required tamper-resistance:
- Basic anti-counterfeiting: HMAC signature verification, which prevents ordinary forgery;
- Strong anti-counterfeiting: asymmetric digital signatures combined with a secure chip, where the private key never leaves the chip;
- Whole-machine binding: some models generate unique hardware identifiers (such as the main board and controller) at the factory or on first activation. It is recommended to store the “identifier-to-hardware-fingerprint” binding in the factory record; once bound, a mismatch with the reported hardware fingerprint triggers an alert, used to detect identifier transfer and counterfeiting.
At the same time, key management must be designed in tandem: tiered key storage, least-privilege access, periodic rotation, audit of signing operations, and a revocation, re-signing, and incident-response process in case of leakage.
5. From Code to Data: The Full-Lifecycle Management Chain
The code is the index; the data is where the value lies. Full-lifecycle management can be broken into six stages, and each must define what to collect, who collects it, and where it is stored.
| Stage | Key data | Data source | Main use |
|---|---|---|---|
| Design & finalization | Model, BOM, software baseline | R&D and product management systems | Establish the model baseline as the reference for traceability |
| Procurement & incoming materials | Core component batches, suppliers | Supply chain and quality management systems | Trace quality issues back by batch |
| Manufacturing & coding | Code, station, test reports | Identification service, production line systems | Create the factory record; the code maps one-to-one with test records |
| Shipping & distribution | Shipment, channel, activation | Order and activation services | Understand the real installed base |
| Operation & service | OTA versions, faults, repairs and part swaps, leasing and resale | Device reporting, ticketing systems | Precise recall, predictive maintenance, liability determination |
| Decommissioning & recycling | Scrap reason, battery disposal, data wiping | Recycling and disposal systems | Resource recovery and safety compliance |
Across the whole chain, the code is the only unchanging primary key, and each stage’s data accumulates around it, gradually forming a “one file per unit.” Two design suggestions:
- Don’t backfill after the fact. Coding should sit as close as possible to the actual production pace — code and file the record when final assembly or whole-machine testing is complete — to avoid the ledger and the physical device drifting into “two separate pictures.”
- Don’t just write, never update. Changes such as part swaps during repair and software upgrades should be recorded as appended events, noting the values before and after the change. Only by keeping the complete change history can you answer “what state is this machine actually in now.”
In addition, define data retention periods, a list of fields to desensitize, and a privacy impact assessment mechanism in advance. Sensitive data such as user identity, precise location, and audio/video should be desensitized or collected minimally by default, so that full-lifecycle data does not grow heavier and riskier the more it is used and managed.
6. State Machine and Traceability Loop: Make Data Usable, Queryable, and Provable
6.1 State Machine: Prevent “One Machine, Multiple States”
If states such as “in use,” “scrapped,” and “under maintenance” are each maintained in separate business systems, it is easy for one device to be marked “in use” by two systems at the same time. It is recommended to centralize state transitions in the identification service and validate them with unified rules:
STATE_MACHINE = {"FACTORY": {"SHIPPED"}, # Coded, awaiting shipment"SHIPPED": {"ACTIVE", "SCRAPPED"}, # Damaged in transit can be scrapped directly"ACTIVE": {"MAINTENANCE", "SCRAPPED"},"MAINTENANCE": {"ACTIVE", "SCRAPPED"},"SCRAPPED": set(), # Terminal state}def transition(current: str, target: str) -> str:"""Allow only the transitions defined above; reject illegal transitions and trigger an alert"""if target not in STATE_MACHINE[current]:raise ValueError(f"Illegal state transition: {current} -> {target}")return target
Before entry, also normalize synonymous states such as ACTIVE, Active, active, SHIPPED, and “shipped” into a single enumeration, to avoid the same state appearing in multiple spellings.
6.2 Traceability Loop: From “Reverse Recall” to “Forward Prevention”
With a complete file, traceability extends from “after something happens” to “before it happens”:
- Reverse traceability: if a batch of joint modules is found to have a hidden risk, you can use the BOM to look back at all whole machines fitted with that batch and precisely generate a recall list.
- Forward tracking: if a machine shows abnormal wear, you can follow its file to review its working scenario, repair records, software version, and part-replacement history to pinpoint the root cause.
- Version traceability: if a version of the control algorithm shows anomalies after release, you can quickly identify the scope of upgraded devices and decide whether to pause the rollout or perform a gradual rollback.
Taking robot joints, batteries, and perception modules as examples, common failure modes include abnormal reducer wear, battery thermal runaway, and visual calibration drift. Through failure-mode analysis and fault-tree analysis, you can break “why it broke” down to the component, software version, working condition, and maintenance record; and every failure ultimately has to land on a specific per-unit record, so that a complete chain forms: “find the problem — locate the unit — verify the mechanism — close the loop with improvements.”
Manufacturing has long emphasized “technical closure” and “management closure” — locating the problem accurately, clarifying the mechanism, reproducing the issue, and applying effective measures; and ensuring the process is clear, responsibility is defined, measures are implemented, handling is thorough, procedures are complete, and everything is documented. A robot identification system is precisely the data carrier for these requirements.
6.3 Security and Privacy: Security and Efficiency Are Not in Conflict
- Transmission and storage: device reporting typically uses encrypted transmission such as TLS, and sensitive fields (such as user identity and precise location) should be stored encrypted or de-identified.
- Access control: the resolution service performs fine-grained authorization based on the caller’s identity. For example, after-sales staff can only view the fields required for service, while public external queries return only minimal results such as “whether it is registered and whether it is within recall scope.”
- Audit trail: all state changes and file modifications must record the operator, time, and before/after values, so they are auditable and accountable.
- Continuous verification: periodically sample-check the physical device against the ledger, drawing on common stocktaking approaches: first-in-first-out (FIFO), cycle counting, dynamic counting, and priority counting. For high-value models, priority counting is more appropriate.
7. Implementation Roadmap and Common Pitfalls
7.1 Four-Phase Rollout
- Assessment and design: review categories, production volume, existing coding rules, and information systems; decide the code structure and state machine; and assess the list of systems that need modification.
- Pilot validation: code a small batch on 1–2 production lines, focusing on quantitative acceptance items: per-unit coding cycle time, the QR code read rate in oily and worn environments, offline catch-up upload success rate, duplicate-code rate, and file completeness rate. It is recommended to set explicit thresholds — for example, a duplicate-code rate of 0, a file completeness rate of at least 99% for key models, and a 100% offline catch-up upload success rate.
Scale-up: build a unified number-range allocation service and connect manufacturing, after-sales, and recycling. The volume of identification data grows with the installed base, and general cloud services such as object storage, message queues, container platforms, log services, and monitoring and alerting can carry the load:
- Use a message queue to smooth reporting peaks;
- Use object storage to centrally manage unstructured material such as test reports and repair photos;
- Use a log service to retain a complete audit trail of operations;
- Use monitoring and alerting to set thresholds for coding failure rate and reporting latency.
Cloud platform selection usually requires a comprehensive evaluation of compliance credentials, data residency, and security capabilities, with resource specifications continuously adjusted alongside cost optimization.
- Operational closure: establish monthly quality retrospectives and an identification-data quality report, covering metrics such as duplicate-code rate, read-failure rate, and file completeness rate, to drive process improvement with data.
7.2 Five Common Pitfalls
- Coding without filing: the code is printed on, but the data behind it relies on after-the-fact backfill, ending up as “two separate pictures.”
- Generating codes locally: each line generates its own codes, planting the seeds of later duplicate codes and recall difficulty.
- Treating the identifier as a credential: using only format validation instead of signature verification, so a counterfeit code sails through.
- Changing the code arbitrarily: re-coding after repair or resale breaks the chain of history. The correct approach is to keep the code unchanged for life and record changes as events.
- Ignoring the installed base: if the pilot-period coding rules are incompatible with the official rules, you need to build an old-to-new code mapping table to ensure a smooth transition for existing devices.
Conclusion
On the surface, “one robot, one ID” is just adding a string of characters to a robot; in substance, it is building a trust chain that runs through manufacturing, distribution, use, and decommissioning. Technically, three gates must be held at once:
- The encoding structure must balance uniqueness and parseability;
- The coding process must be backstopped by a unique index, unified number allocation, and anti-counterfeiting mechanisms;
- Full-lifecycle data must continuously accumulate around the code as its primary key.
Starting from the pilot stage, design systems around the idea of “code on assignment, file at the same time,” and you will avoid costly rework later. As identification management moves toward full-category coverage, the identification system has the potential to become the foundation of safety governance for the robot industry. For enterprises and developers, the earlier you treat identification as infrastructure, the more comfortably you can respond when scale arrives.
