Robot Product Identification Codes: One Code per Robot — Technical Design and Implementation Guide
A practical overview of how to design and operate a unified product identification code system for robots — one unique code per device — as robot fleets scale across industrial, service, and specialty categories. The article explains how identification codes differ from serial numbers and digital identities; breaks down a four-segment encoding scheme (manufacturer, product description, serial number, and other/check code) and why segments are split by change frequency; and clarifies why check digits prevent misreads but not forgery. It then covers full-lifecycle management across six stages, an append-only state machine for auditability, and the engineering challenges of expanding to all robot categories, including configurable data models, legacy-device onboarding, offline ID assignment, and system integration. It also presents a four-layer platform architecture, tiered online verification, RBAC+ABAC access control, and a phased rollout roadmap with the key checks to validate before piloting.
Introduction: Why Robots Need an “Identity Card” at Scale
Robots are moving from labs and demonstration lines into commercial deployment at scale. Across industrial manufacturing, warehousing and logistics, healthcare and elder care, and urban management, the installed base of robots is growing quickly, and form factors are expanding from fixed-station robotic arms to wheeled, legged, and even humanoid structures. Once the installed base gets large, managing devices with only a vendor’s internal serial numbers no longer holds up, for three reasons:
- Slow fault localization: When accidents or faults occur across vendors and batches, there is no unified entry point to quickly identify the specific model and batch.
- Broken recall chains: Once a design defect appears, it becomes impossible to accurately scope the affected devices.
- Difficult liability attribution: In human-robot shared environments, attributing an accident requires a reliable product identity credential.
Product identification systems already have mature practices in industries such as automotive, telecom terminals, and medical devices. For example, the Vehicle Identification Number (VIN) consists of a World Manufacturer Identifier, a vehicle descriptor section, and an indicator section; in the medical device field, the Unique Device Identification (UDI) comprises a product identifier and a production identifier. These systems share a similar design philosophy, but their cores differ:
- The identifier itself is responsible only for “unique reference”;
- Semantic information such as category, specification, and batch must be carried by a structured data model;
- Supporting data-exchange rules are equally indispensable.
Against this backdrop, regulators have released a draft administrative measure on robot product identification codes for public comment. The measure calls for a unified product “identity card” system: every robot leaving the factory receives a unique product identity code composed of four parts — a manufacturer code, a product description code, a product serial number code, and other code — with assignment carried out under a dedicated robot product identification code standard.
It is worth noting the evolution: an earlier full-lifecycle management platform for humanoid robots has already been put online, using a 29-digit, four-segment encoding (country code, enterprise code, product code, serial code) that covers more than 28,000 humanoid robots from over 100 enterprises. The key change in the current draft is that the scope expands from humanoid robots to all categories — industrial robots, service robots, and specialty robots.
How you interpret the new rules determines how much technical investment follows:
- If it is seen only as a factory label, all you need is an added printing step on the production line.
- If it is seen as infrastructure for full-lifecycle governance, you must simultaneously rebuild the assignment, registration, change, and verification chains.
1. First, Clarify Three Concepts: Identification Code, Serial Number, and Digital Identity
| Dimension | Traditional serial number | Product identification code (ID card) | Robot digital identity |
|---|---|---|---|
| Design purpose | Count devices of the same model; internal traceability | Unified reference and governance across all categories and parties | Full-lifecycle data collection and coordination |
| Encoding rules | Vendor-defined | Unified standard, covering entity and product dimensions | Extends beyond the identifier with state, events, and credentials |
| Visibility | Within the enterprise | Shared across production, distribution, use, and regulatory parties | Tiered visibility by permission |
| Lifecycle | Retired when the product model is superseded | Long-lived once assigned at the factory | Extends from design finalization to scrapping/recycling |
The three are progressive rather than mutually substitutable. The identification code is the foundation of the digital identity; the digital identity is an extension of the identification code.
1. The identification code is an “index,” not a “credential”
The identification code only answers “who is being referenced,” and should avoid writing volatile information into it as much as possible:
- Software versions, firmware upgrades, component replacements, and ownership changes should never directly rewrite the identification code;
- The identification code should follow an “allocate once, never reissue” policy — even if a device is scrapped or idled, its number is never reassigned to another product, to prevent historical records from getting crossed.
Conversely, information such as usage state, maintenance records, and ownership relationships should be maintained through an independent data model and linked to the identification code as a foreign key. This “stable primary key + mutable attributes” design borrows from the common database practice of separating surrogate keys from natural keys. Its value lies in the fact that a change requires only inserting a new record — no need to migrate historical data, and no risk of breaking references from external systems.
2. The manufacturer is the assigning entity, with trusted qualifications as the premise
The draft specifies that the identification code targets robots “leaving the factory,” and the entity that performs assignment is the manufacturer. This means the segment-allocation body must establish a manufacturer admission and segment-management mechanism:
- Qualification review of the entity;
- Issuance and recovery of code segments;
- Change registration (e.g., company renaming, merger, deregistration).
Otherwise, the credibility of the identification code degrades into “self-assertion.”
3. Full-category coverage; the hard part is the “installed base”
Humanoid robots are mostly products manufactured in the last two years, with a light historical burden. Once the scope extends to industrial, service, and specialty robots, the platform faces:
- A large installed base;
- Existing serial number coding rules;
- Cross-border, cross-industry supply chains.
A unified identification system must design a smooth path between “onboarding the installed base” and “assigning codes to new units,” rather than starting over from scratch.
2. The Design Logic of the Four-Segment Encoding: What Does Each Segment Solve?
1. Segment division corresponds to different change frequencies
| Code segment | Question it answers | Change frequency | Design notes |
|---|---|---|---|
| Manufacturer code | Who manufactures it | Very low (unchanged for the life of the enterprise) | Issued centrally by the allocation authority; globally unique |
| Product description code | What type, model, and specification | Low (changes with model or specification) | Structured encoding of attributes such as category and spec, with reserved extension bits for new forms |
| Product serial number code | Which specific unit | Unique per unit; never reused | Length sized to enterprise capacity and product lifespan |
| Other code | Error detection, extension, and anti-counterfeiting | Depends on the rules | Carries a check digit or reserved fields; final details per the official standard |
Once divided by change frequency, each segment’s role in the system becomes clear: the manufacturer code and product description code form the “product dimension,” suitable for caching and statistical analysis; the product serial number code forms the “unit dimension,” serving as the primary key for verification and traceability.
2. Check digits prevent errors, not forgery
Following common checksum approaches such as ISO 7064:1983 MOD 11-2 (widely used in national identity number schemes), a check digit can be appended to the end of the identification code. This design provides strong detection of single-character errors in manual entry and scan recognition even without a network connection, at very low implementation cost.
But one thing must be clear: the identification code is a publicly visible identifier — anyone who scans the nameplate can obtain it. Once the full encoding rules are public, a forger can mass-“compute” numbers that pass the check. Therefore:
- Preventing misreads relies on the check digit;
- Preventing forgery relies on signatures, segment authorization, and online verification.
Neither can be dispensed with, and a passing check digit must never be taken as proof of a “trusted identity.”
The following code is for principle demonstration only; code lengths and algorithms follow the official national standard:
import datetime# Placeholder code segments for demonstration only; actual lengths and allocation rules follow the official national standardSEG_MFR, SEG_MODEL, SEG_SN = 4, 6, 9REPEAT, MOD = (3, 7), 10def _isbn_like_check(digits: str) -> str:"""Borrows the ISBN-10 weighted-modulus checksum idea, weighting 3, 7 alternately from right to left."""total = sum(int(ch) * REPEAT[i % len(REPEAT)] for i, ch in enumerate(reversed(digits)))return str((MOD - total % MOD) % MOD)def build_robot_id(mfr: str, model: str, serial: str) -> str:"""Illustration: four-segment ID = manufacturer code + product description code + serial number code + other code"""segments = [mfr, model, serial]for value, width in zip(segments, (SEG_MFR, SEG_MODEL, SEG_SN)):if not (value.isdigit() and len(value) == width):raise ValueError(f"Invalid segment format: {value}")body = "".join(segments)return body + _isbn_like_check(body) # Other code segment: check digit demonstrated heredef check_robot_id(robot_id: str) -> bool:body, check = robot_id[:-1], robot_id[-1]return robot_id.isdigit() and _isbn_like_check(body) == check# Single-device uniqueness is guaranteed by a database unique constraint, not by this functiondef allocate_serial(model_code: str, seq: int, width: int = SEG_SN) -> str:if not 0 <= seq < 10 ** width:raise ValueError("Serial number exceeds encoding capacity")return f"{seq:0{width}d}"def batch_print_ids(sn_list, print_fn):"""Batch ID assignment on the production line: validate locally first to avoid writing invalid codes to labels and records."""for sn in sn_list:robot_id = build_robot_id("A001", "123456", sn)if not check_robot_id(robot_id):continueprint_fn(robot_id) # Label printing interface is implemented by the production line systemdef is_valid_id_shape(robot_id: str) -> bool:"""Fast edge-side validation: checks only format and check digit, not authenticity."""return len(robot_id) == SEG_MFR + SEG_MODEL + SEG_SN + 1 and check_robot_id(robot_id)
Compared with national identity number formats, a product identification code has four segments, so this demonstration places the check digit in the “other code” segment and simplifies the handling. In a real implementation, the segment allocation order, checksum algorithm, and use of reserved fields must be aligned word-for-word with the standard text. Once a checksum rule goes live, any subtle deviation causes large-scale wrong codes — and such problems are often hard to trace back and fix.
3. Decouple the carrier from the symbology: one code, multiple carriers
The identification code is a logical identifier; labels, QR codes, RFID, and the like are merely physical carriers. Different scenarios call for different carriers:
| Scenario | Recommended carrier | Reason |
|---|---|---|
| Industrial robot body nameplate | Weather-resistant metal nameplate + laser-etched QR code + plain text | Withstands heat, oil, and vibration; still human-readable after wear |
| Service robot housing | QR code or NFC tag | Non-technical staff can scan to look up information |
| Specialty robots | RFID / passive electronic tags | In harsh environments such as high temperature, underwater, and explosion-proof; some support contactless batch reads |
| Logistics/warehouse robots | Dual carrier: QR code + RFID | Batch identification at in/out points; improves inventory efficiency |
Regarding symbologies (QR codes, 1D barcodes, RFID, and other symbol systems), two principles apply:
- The identification code encoding is independent of the specific symbology; the same code can map to multiple carriers at once;
- Carrier selection should be determined by the application environment and based on tag durability and readability test results, not by a one-size-fits-all rule.
4. Version evolution: accommodating the earlier four-segment scheme
For enterprises already connected to the earlier humanoid robot management platform that uses 29-digit, four-segment encoding (country code, enterprise code, product code, serial code), the core of migration is to build a “mapping” rather than “re-encoding”:
- Legacy devices: retain the original code, register it as an installed-base record, and establish a mapping;
- New factory units: directly follow the new standard;
- Data layer: use the unified identification code as the primary key, and the original code as an alias field;
- Interface layer: perform compatibility conversion on output to ensure a smooth transition for legacy systems.
3. Full-Lifecycle Management: Six Stages Threaded by the Identification Code
1. The full-lifecycle chain
Full-lifecycle management is not done merely by “sticking a code on the body” — the code acts as the main thread linking six stages:
| Stage | Trigger event | Key actions | Data accumulated |
|---|---|---|---|
| Design finalization | Model release | Product description code modeling | Category, specification, safety parameters |
| Production & ID assignment | Assembly complete, end-of-line inspection passed | Serial assignment, label binding, factory record | Manufacturer code, product description code, serial number, production date, key component batches |
| Distribution & delivery | Factory sale, leasing | Registration, ownership binding | Delivery time, using entity, usage scenario |
| Operation & maintenance | Start/stop, task execution, maintenance, software upgrades | Runtime logs, maintenance record aggregation | Cumulative runtime, fault alarms, maintenance vouchers, software version change records |
| Change & transfer | Refit, second-hand transfer, cross-party transfer | Change declaration and registration | Change type, before/after state, responsible party |
| Decommission & scrapping | Retirement, dismantling/recycling | Status deregistration, key component flow registration | Scrapping reason, disposal method |
Here, “full lifecycle” should be counted from design finalization to scrapping/recycling, not just the usage phase. The further forward and backward the identification system extends, the more complete the traceability chain becomes. For the product identification code, the “lifecycle” falls in the manufacturing and distribution stages; the “full-lifecycle management platform” emphasizes the complete closed loop from design finalization to scrapping/recycling.
2. State machine: replace direct field edits with “state + event”
Device states change frequently. If the state field in a record is directly overwritten, the change history is lost and there is nothing to audit afterward. A more robust approach is an append-only model of “current state + state-change event table”:
┌──────────────┐ Dismantle/scrap ┌──────────────┐│ Pending sale/│ ─────────────────▶ │ Scrapped/ ││ in stock │ │ deregistered │└──────┬───────┘ └──────────────┘│ Delivery│ registration▼┌──────────────┐ Repair/replace ┌──────────────┐│ In use/ │ ◀────────────── │ Under repair/││ running │ │ deactivated │└──────┬───────┘ ──────────────▶ └──────────────┘│ Refit ▲│ registration │ Repair complete▼ │┌──────────────┐ Second-hand/ ││ Refitted/ │ ownership change ││ modified │ ──────────────────────┘└──────────────┘
from dataclasses import dataclass, asdictfrom datetime import datetime, timezone# Only permitted state transitions, to prevent invalid states from being writtenTRANSITIONS = {("In stock", "Delivery"): "In use",("In use", "Deactivate"): "Deactivated",("Deactivated", "Delivery"): "In use", # Re-delivered after second-hand transfer("In use", "Scrap"): "Scrapped",("Deactivated", "Scrap"): "Scrapped",}@dataclassclass LifecycleEvent:robot_id: strevent_type: str # Delivery / Deactivation / Scrap / Refit / Repair completetimestamp: stroperator: str # Operating partysignature: str # Operator's signature over the event contentdetail: dictdef append_event(store, prev_state, event: LifecycleEvent) -> str:"""Append-only state change events; current state is derived from the event stream, history is never overwritten."""next_state = TRANSITIONS.get((prev_state, event.event_type))if next_state is None:raise ValueError(f"Illegal state transition: {prev_state} -> {event.event_type}")record = {**asdict(event),"prev_state": prev_state,"next_state": next_state,"created_at": datetime.now(timezone.utc).isoformat(),}store.append(record) # In practice, write to an append-only change log table or event storereturn next_state
There are three design considerations:
- Signature against repudiation: each event is signed by the operating party (a device-side private key or an enterprise service account), proving the record has not been tampered with and helping clarify liability in multi-party collaboration scenarios.
- Unified time baseline: timestamps uniformly use timezone-aware UTC time to avoid time ambiguity across regions and systems.
- No deletion, no modification: change records may only be appended, never deleted or modified — this is both an audit requirement and a technical constraint.
4. Five Engineering Challenges from Full-Category Expansion
1. The data model must be configurable and extensible
Categories differ enormously:
- Industrial robots: core parameters are payload, reach, repeatability, and protection rating;
- Service robots: focus more on battery endurance, navigation method, and task scenario;
- Specialty robots: must register explosion-proof rating, protection rating, operating environment, and other safety attributes.
If a separate table is created for each category, the model quickly balloons and becomes hard to maintain. A more suitable approach is a hybrid model of “common fields + category-specific extension attributes”:
- Common fields: identification code, manufacturer code, model, factory date, ownership status;
- Category extension attributes: stored as JSON structures with schema validation;
- Key fields: fields that need to be searched or aggregated, such as payload, precision, and protection rating, are extracted into separate columns or index fields.
2. Onboard the installed base and assign new codes in parallel
Installed-base devices may come from multiple manufacturers with different coding rules, or even have no publicly readable code. In practice, a three-tier strategy is usually adopted:
- Prioritize collecting existing codes: read information from nameplates, certificates of conformity, and factory labels;
- Back-fill based on nameplate information: for devices without a standard code, back-fill mapping relationships based on the model and serial information on the nameplate;
- On-site physical assignment: when necessary, add new identification carriers to devices.
Whatever tier is used, the installed-base mapping records must be auditable and traceable, with a clear correspondence to the original codes.
3. Continuity of assignment in offline scenarios
A production line is a typical weak- or no-network environment, especially common in newly built factories, overseas bases, or confidential production lines. The design should include:
- Pre-allocated segments: the platform issues signed segment files with validity periods and usable ranges to the factory in advance, so the factory can assign codes locally even when offline;
- Local assignment cache: the factory side maintains a lightweight assignment service and batches upload results once reconnected;
- Conflict detection: on upload, validate by “factory ID + segment range,” intercepting any out-of-range or duplicate values immediately.
Sample segment file format:
{"factory_id": "F0007","segment_id": "SEG-2026-0007-013","mfr_code": "A001","model_code": "123456","serial_range": [ 40000, 49999 ],"issued_at": "2026-10-01T08:00:00Z","expires_at": "2026-12-31T23:59:59Z","signature": "Signed by the segment allocation authority over the content"}
4. Integration with existing business systems
Assignment is not an isolated action; it must interface with at least four types of systems:
- Manufacturing Execution System (MES): obtain end-of-line inspection results and trigger assignment;
- Enterprise Resource Planning (ERP): sync bills of materials and factory information;
- After-sales and O&M systems: aggregate maintenance work orders and fault records;
- Robot body platform: collect runtime logs and software versions.
The identification service should provide standardized, idempotent interfaces rather than being deeply coupled to any single vendor’s system. Below is an illustrative interface contract:
openapi: 3.0.3info: { title: Robot Identification Registration Service (Illustrative), version: 0.1.0 }paths:/v1/robots:register:post:summary: Batch-register factory robots (idempotent per request)requestBody:content:application/json:schema:type: objectrequired: [request_id, items]properties:request_id: { type: string, description: Idempotency key; repeated submissions return the first result }items:type: arrayitems:type: objectrequired: [robot_id, manufacturer_code, model_code, produced_at]properties:robot_id: { type: string }manufacturer_code: { type: string }model_code: { type: string }produced_at: { type: string, format: date-time }attributes: { type: object, description: Category-specific extension attributes }responses:'200':description: Registration result (returns success or failure reason per item)
5. Platform-Side Technical Architecture: From “Labeling” to “Governable”
A complete identification management platform is typically divided into four layers:
┌──────────── Access layer ────────────┐│ Production-line ID terminal / Ops terminal / Regulatory & public lookup / Third-party systems │└───────────────┬──────────────────────┘│ HTTPS + signature┌───────────────▼──────────── Application layer ────────────────┐│ ID assignment │ Registration & change │ Online verification │ Query & stats │└───────┬───────────────────────────────┬───────────────────────┘│ │ Publishes domain events┌───────▼───────── Data layer ──────────▼───────────────────────┐│ Relational DB: code segments, product records, state-change events, mappings ││ Object storage: factory test reports, nameplate images, maintenance records ││ Message queue: event distribution, async tasks, data sync │└───────────────────────────────────────────────────────────────┘
1. Assignment service: hold the line with idempotency and unique constraints
Assignment is a typical “write-heavy, read-light, non-repeatable” scenario. The database unique index is the last line of defense against duplicate assignment, but that alone is not enough — the application layer must also do three things:
- Request idempotency: use a business idempotency key (e.g., work order number + robot body features) to identify duplicate requests, and return the first result for duplicates;
- Pre-validation: run format and check-digit checks before storage to reduce pointless failed writes;
- Failure compensation: set up automatic retries and a manual reconciliation channel for requests that fail due to network jitter.
Taking a relational database as an example:
-- Robot ID unique constraint: last line of defense against assigning the same code twiceALTER TABLE robot_registryADD CONSTRAINT uk_robot_id UNIQUE (robot_id);-- Alias table for legacy original codes: compatibility with the earlier coding schemeCREATE TABLE robot_code_alias (alias_code VARCHAR(64) PRIMARY KEY,robot_id VARCHAR(64) NOT NULL,alias_system VARCHAR(32) NOT NULL, -- The scheme the original code belongs tomapped_at TIMESTAMP NOT NULL,CONSTRAINT fk_alias_robot FOREIGN KEY (robot_id) REFERENCES robot_registry (robot_id));
2. Online verification service: tiered responses, avoid “convicting by code”
The verification service offers a “scan and check” capability externally, but the returned results must be tiered to prevent misuse:
| Verification result | Meaning | Suggested response |
|---|---|---|
| Legal and valid | Segment authorized, registration complete, device in use | Return basic product info and status |
| Legal but deregistered/scrapped | Device retired | Indicate status; do not show sensitive history |
| Format-valid but unregistered | Possibly counterfeit or not yet synced | Return “unregistered” and flag risk for manual review |
| Segment unauthorized | Code outside authorized range | Flag high risk; retain query trace |
At the same time, guard against two risks:
- Batch enumeration: apply rate limiting to querying parties and alert on suspected scraping behavior;
- Information leakage: public interfaces should return only the necessary fields. The manufacturer and model corresponding to the manufacturer code and product description code are inherently public, but sensitive information such as the using entity, location, and operating state behind the serial number should not be disclosed with the code.
3. The boundary between online verification and offline validation
QR code nameplates are often used for quick on-site verification, but one thing must be clear: local offline validation can only determine “whether the format is legal,” not “whether it truly exists.” Only by going online to access the registration database can you confirm whether a code has been authorized and registered. Therefore, for formal scenarios such as acceptance, law enforcement, and insurance claims, insist on online verification, or supplement it with signed offline credentials.
6. Data Security, Privacy, and Permission Governance
1. Data classification
| Level | Example data | Control requirement |
|---|---|---|
| Public | Product identification code, manufacturer, model | Queryable |
| Internal | Factory batch, maintenance records | Visible only within authorized parties |
| Sensitive | Using entity, deployment location, runtime logs, video | Minimal-necessary authorization; use after de-identification |
2. The minimal-necessary principle
- Public queries return only the product attributes and status corresponding to the identification code;
- Using-entity information is queried by authorized parties only in necessary scenarios such as ownership changes, recall notifications, and accident investigations;
- All queries are logged to support after-the-fact auditing.
3. Recommend a hybrid RBAC + ABAC permission model
- Roles (RBAC): manufacturers, operators, maintenance providers, regulators, etc.;
- Attributes (ABAC): data ownership, usage scenario, time window, etc.
For example, a maintenance provider can only view maintenance records of devices covered by a service contract signed with it; a regulator can access more detailed data within the scope of a case investigation, with every access recorded in an audit log.
7. Phased Implementation Roadmap
| Phase | Time | Key actions | Deliverables |
|---|---|---|---|
| Preparation | From public comment period to official standard release | Compare current coding rules, inventory segment needs, design the data model, build an ID service prototype | Code mapping table, interface contract, prototype environment |
| Pilot | 1–2 quarters after standard release | Trial run on 1–2 production lines; connect the full assignment → registration → verification chain; stress test and weak-network drills | Pilot report, issue list |
| Rollout | 3–6 months | Extend to multiple categories and factories; integrate upstream/downstream systems; onboard legacy devices | Full assignment coverage, legacy onboarding rate |
| Operation | Ongoing | Online verification operations, maintenance data accumulation, recall and statistical analysis | Operations dashboard, recall response time metric |
Four things to validate before piloting:
- Whether the product description code can cover all existing models;
- Whether the serial number capacity can meet the enterprise’s capacity plan for the coming years;
- Whether the assignment interface can meet the concurrency requirements of the production line takt time;
- Whether the assignment and upload mechanism is reliable in weak-network environments.
Once these problems surface in the rollout phase, the rework cost is far higher than fixing them during the pilot.
Conclusion
A robot “identity card” is not just a factory label, but governance infrastructure for full-category, full-lifecycle management. For enterprises, the value it delivers shows up in at least four areas:
- More efficient recalls and fault localization;
- Smoother cross-party collaboration;
- More traceable liability attribution;
- More complete data-asset accumulation.
For an enterprise’s technical team, the period before the rules are finalized is precisely the key window for architecture design. From stable primary keys, pre-allocated segments, idempotent assignment, and offline fallbacks, to state-machine management, data classification, and permission governance, every design decision will affect the evolution cost of the coming years. Completing the design, validation, and drills in advance is what allows a smooth connection when the standard is officially released, rather than a passive retrofit.
