A cloud type configuration package generation, delivery and vehicle end analysis method suitable for two-wheeled electric vehicles

By building a cloud-based vehicle configuration management platform and vehicle control unit, unified modeling and partitioning of configuration data for two-wheeled electric vehicles have been achieved, solving the problems of scattered configuration data and unstable transmission, and providing full lifecycle configuration management and security verification.

CN123185235APending Publication Date: 2026-11-27ZHIXING INFINITE TECHNOLOGY (WUXI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611346817.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-01
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

The existing configuration data for two-wheeled electric vehicles is scattered, and configuration files rely on manual splicing. Dependency and conflict errors cannot be detected before release. The configuration package lacks precise adaptation verification with the target vehicle hardware. Configuration downloads are easily interrupted in weak network environments. Modifications to local parameters require the entire package to be re-sent. Configuration anomalies lack automatic rollback, and cloud status closure is lacking.

Method used

A cloud-based vehicle configuration management platform is built to model, compile, partition, package, and sign configuration source data. The ECU is responsible for reliable downloading and caching, while the VCU is responsible for configuration package adaptation judgment, phased parsing, and exception rollback. Reliable transmission and parsing of configuration packages are ensured through target compatibility fingerprints, digital signatures, and layered security mechanisms.

Benefits of technology

It enables systematic verification of dependencies, conflicts, and hardware capabilities before release, supports partition-level parsing and incremental updates, reduces transmission traffic and Flash writes, ensures reliable transmission of configuration packages in weak network environments and vehicle safety, and provides full lifecycle configuration management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185235A_ABST
    Figure CN123185235A_ABST
Patent Text Reader

Abstract

The application particularly relates to a cloud vehicle model configuration method suitable for two-wheel electric vehicles. Candidate configurations are formed based on multi-dimensional models such as vehicle models, hardware, functions, strategies, diagnosis, OTA and regulations in the cloud, and after execution of dependency analysis, parameter verification, conflict detection and hardware matching, the candidate configurations are packaged into vehicle configuration packages containing Manifest, compatible fingerprints, multi-service partitions and digital signatures; the vehicle configuration packages are downloaded and verified by ECU fragmentation and then forwarded to VCU, the VCU analyzes and writes new configurations into the candidate configuration area, and sequentially performs signature, identity, hardware, software, dependency, conflict, regulation and safety condition verification, when the activation conditions are met, the effective configurations are switched through three-stage transactions of preparation, submission and confirmation, and if the verification fails, the configurations are automatically rolled back and reported to the cloud. The application upgrades the traditional parameter file into a vehicle configuration package which is compilable, verifiable, gray-scale publishable, transactionally activatable and rollbackable, and improves the multiplexing rate of multiple vehicle models, the reliability of the issued configurations and the safety of the vehicle end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the fields of intelligent control of two-wheeled electric vehicles, vehicle network configuration management and embedded software technology, and in particular relates to a cloud-based method for generating, distributing and parsing vehicle configuration packages for two-wheeled electric vehicles. Background Technology

[0002] In the process of developing new models, mass production configuration, and after-sales upgrades of existing two-wheeled electric vehicles, the parameters of modules such as motor controllers, instruments, BMS, and lights are usually scattered in different controller firmware or production line burning files. Every time the model, supplier, or sales region is changed, the embedded program needs to be reorganized or even modified, resulting in a low reuse rate of model configurations.

[0003] While existing cloud-based configuration solutions can issue parameters based on VINs, they essentially remain at the level of "parameter file transmission." The cloud lacks unified modeling and compilation verification of vehicle configuration source data, making it impossible to check hardware capabilities, service dependencies, parameter conflicts, and regional regulatory constraints before release. This results in errors only being exposed after production line or vehicle operation. Furthermore, the use of full-package overwrite updates makes configuration incomplete due to network interruptions, power outages, or parsing failures. Directly overwriting the running configuration can cause vehicles to fail to start or malfunction. Even minor changes require repeated full-package updates, wasting bandwidth and storage resources. In addition, the vehicle-side lacks a layered mechanism of "adaptation judgment followed by deep parsing," as well as candidate configuration area isolation and transactional activation mechanisms. If the configuration package is mismatched or hardware is incompatible, the vehicle is highly susceptible to unpredictable states. Differentiated configurations for the same vehicle model across various scenarios such as home use, sharing, food delivery, and export rely on manual copying of parameter tables, which is inefficient, prone to version drift, and makes it difficult to establish a traceable configuration baseline and a stable rollback path.

[0004] Therefore, there is an urgent need for a complete vehicle configuration package technology system for two-wheeled electric vehicles, which integrates cloud modeling, configuration compilation, conflict verification, partitioning and packaging, canary deployment, reliable transmission, layered parsing, transaction activation and fault rollback into a unified method, so that the configuration package can be upgraded from a simple parameter carrier to a verifiable, recoverable and traceable vehicle-side execution configuration object. Summary of the Invention

[0005] The technical problem this invention aims to solve is to overcome the shortcomings of existing two-wheeled electric vehicle model configuration data, such as scattered configuration files, reliance on manual splicing of configuration files, inability to detect dependencies and conflicts before configuration release, lack of precise adaptation verification between configuration packages and target vehicle hardware, easy interruption of configuration download in weak network environments, risk of failure due to direct overwriting of valid configurations on the vehicle side, need for repeated distribution of the entire package for local parameter modifications, and lack of automatic rollback and cloud status closure for configuration anomalies. This invention provides a cloud-based model configuration package generation, distribution, and vehicle-side parsing method suitable for two-wheeled electric vehicles.

[0006] The technical solution adopted by this invention to solve its technical problem is as follows: A full lifecycle management system for vehicle configuration packages is constructed, consisting of a cloud-based vehicle configuration management platform, an ECU (Electronic Control Unit), a VCU (Vehicle Control Unit), and a configuration storage area. The cloud is responsible for modeling, compiling, partitioning, packaging, signing, and publishing the vehicle configuration source data. The ECU is responsible for reliable downloading, caching, and transparent forwarding. The VCU is responsible for configuration package adaptation judgment, phased parsing, candidate configuration verification, transaction activation, and exception rollback. Based on vehicle configuration requirements, the cloud abstracts and models multi-dimensional configuration data such as basic information, hardware baselines, functional services, control strategies, diagnostic rules, OTA strategies, regulatory parameters, and operating parameters to form unified configuration metadata. Subsequently, a dependency graph between each configuration item is established, and data type checks, required field checks, parameter range checks, reference integrity checks, mutual exclusion checks, dependency checks, hardware capability verification, regulatory hard constraint verification, and baseline version compatibility checks are performed sequentially. If any key check fails, the packaging process is terminated. After verification, the configuration items are divided into multiple independent partitions according to business categories. Each partition is assigned an independent partition identifier, partition version, data length, dependency list, and adaptation parameters. Using conditions and region summaries, a configuration list is generated that includes package identifier, package version, baseline version, target compatibility fingerprint, number of partitions, partition index, dependent version, creation time, validity period, full package summary, and digital signature. The configuration list is combined with all business partitions to form a complete configuration package, and a summary is calculated for the entire package. The configuration list and the summaries of each partition are digitally signed, and a release serial number, timestamp, random number, and validity period information are attached. The target compatibility fingerprint is generated by one or more fields from the vehicle model number, hardware platform, VCU hardware version, ECU hardware version, key module capability bitmap, communication protocol main version, region, and baseline version according to preset rules, and is used for rapid prediction on the vehicle side.

[0007] The cloud-based vehicle configuration management platform includes at least a vehicle configuration model library, a hardware module model library, a functional service model library, a control strategy model library, a diagnostic rule model library, an OTA strategy model library, a regulatory parameter model library, a configuration compilation engine, a configuration package repository, and a release management module.

[0008] The configuration compilation engine converts the abstract configurations in each business model into vehicle-side resolvable configuration items. Before generating the vehicle configuration package, it establishes a configuration dependency graph and sequentially performs data type checks, required field checks, parameter range checks, reference integrity checks, mutual exclusion checks, dependency checks, hardware capability verification, regulatory hard constraint verification, and baseline version compatibility verification. Failure of any critical check will prevent the configuration package from entering the signing and release state.

[0009] The vehicle configuration package adopts a structure of "Manifest + multiple business partitions". The manifest is used to describe the identity and index information of the entire configuration package, including at least packageId, packageVersion, baseLineVersion, targetFingerprint, sectionCount, sectionIndex, dependencyVersion, createTime, validUntil, packageDigest, and signature; the main body of the configuration package includes at least the following partitions: basic information partition, hardware baseline partition, functional service partition, control policy partition, diagnostic rules partition, OTA policy partition, regulatory parameter partition, operating parameter partition, and version rollback partition.

[0010] Each business partition is configured with independent sectionId, sectionVersion, dataLength, dependencyList, targetCondition, and sectionDigest. The cloud can generate an independent digest for a single partition, enabling the VCU to verify the partition's integrity before performing business parsing. For modifications that do not involve changes to the dependencies of other partitions, incremental configuration packages can be distributed only to the partitions that have changed.

[0011] The target compatibility fingerprint is used to quickly determine whether the configuration package is applicable to the current vehicle before in-depth analysis on the vehicle side. The target compatibility fingerprint is generated by one or more fields from the vehicle model number, hardware platform, VCU hardware version, ECU hardware version, key module capability bitmap, communication protocol main version, region and baseline version according to preset rules.

[0012] After the configuration package is generated, the cloud calculates a summary for each business partition, calculates a summary for the entire package, and forms a digital signature for the configuration list, the summaries of each partition, and the summary of the entire package. The configuration package further carries a release sequence number, timestamp, random number, and validity period to prevent the configuration package from being tampered with, replayed, or illegally downgraded.

[0013] The cloud-based release management module creates a set of target vehicles based on the target vehicle model, production batch, sales region, hardware version, current configuration version, vehicle number range, or a specified vehicle whitelist. It can adopt a multi-stage release method, including vehicle verification, gray-scale batches, and full batches. If the previous batch does not reach the preset success rate or anomaly rate threshold, it will not proceed to the next batch.

[0014] After receiving the configuration task, the ECU performs fragment download based on the configuration packet length and fragment information, using a download bitmap to record the received fragments; in case of network interruption, it only requests the missing fragments. After all fragments are downloaded, the ECU performs fragment digest and full packet digest verification, stores the configuration packet in its local cache, and then forwards it to the VCU according to the ECU-VCU communication protocol.

[0015] After receiving the vehicle configuration package, the VCU uses a two-stage parsing process: the first stage only parses the configuration manifest, verifying the package version, validity period, release serial number, target compatibility fingerprint, partition index, whole package summary, and digital signature; only after the first stage is passed does the second stage begin, parsing the business partitions one by one according to the partition index.

[0016] The VCU sets up the current running configuration area, candidate configuration area, previous stable configuration area, and factory basic configuration area. The configuration obtained from the second stage of parsing is first written to the candidate configuration area, without directly overwriting the current running configuration. The VCU performs vehicle identity, hardware baseline, software version, module capabilities, dependencies, parameter ranges, mutual exclusion relationships, regulatory constraints, and security level verifications on the candidate configurations.

[0017] After the static verification passes, the VCU continues to check the vehicle's real-time status, including at least whether the vehicle is stationary, the ignition status, whether the drive controller is outputting power, whether the battery charge and voltage meet the requirements, whether there are any serious faults, and whether it is in a mutually exclusive state of maintenance or upgrade. Non-safety parameters that can be hot-loaded online can take effect immediately according to the configuration definition; for critical parameters that affect drive, braking, operating permissions, or regulatory restrictions, they are activated only after safety conditions are met.

[0018] VCU employs a transactional configuration activation mechanism. During the preparation phase, the currently valid configuration is copied or marked as the previous stable version, candidate configurations are preloaded, and transaction markers are created. During the commit phase, atomic pointer switching, dual-bank switching, or equivalent mechanisms are used to make the candidate configuration the current valid configuration. During the result confirmation phase, configuration self-checks, online module checks, and critical parameter readbacks are performed. If a power outage, reset, self-check failure, or critical module disconnection causes a transaction to be incomplete, VCU automatically restores the previous stable configuration during the current or next startup; if the previous stable configuration is unavailable, the factory default configuration is loaded.

[0019] After activation, the VCU outputs the configuration processing results to the ECU, including at least the packageId, packageVersion, parsing status of each partition, activation status, current valid version, failure error code, and rollback status. The ECU then uploads the results to the cloud. The cloud updates and releases the task based on the vehicle results and decides whether to continue releasing, pause, or rollback based on the gray-scale batch statistics.

[0020] Preferably, the vehicle configuration package is encoded in TLV, CBOR, Protocol Buffers, ASN.1, JSON, or a custom binary format. For VCUs with limited storage and memory resources, the target partition can be located directly by the offset and length in the configuration list, without requiring the entire package to be loaded into memory at once.

[0021] Preferably, the configuration dependency graph uses configuration partitions, function services or configuration items as nodes, and "must exist first", "must be enabled simultaneously", "mutually exclusive", "version dependency" and "hardware capability dependency" as edges. The configuration compilation engine detects loops and conflict paths and outputs locatable compilation errors.

[0022] Preferably, the security regulation items in the regulatory parameter model are set as hard constraints that cannot be relaxed by low-priority business parameters; when the business configuration conflicts with the hard regulatory constraints, the regulatory parameters shall prevail and the release of the conflicting configuration package shall be prevented.

[0023] Preferably, configuration package releases support both full packages and incremental packages; incremental packages must reference an explicit baseLineVersion, and VCU will only receive incremental updates if the current valid version is consistent with the incremental package baseline or meets the preset jump relationship.

[0024] Preferably, the candidate configuration area, the currently running configuration area, and the previous stable configuration area each store their own configuration fingerprints; after the VCU completes transaction activation, it recalculates the local configuration fingerprint and compares it with the expected fingerprint in the configuration list to achieve dual consistency confirmation of configuration content and version number.

[0025] Preferably, when a vehicle is activated for the first time on the production line, the cloud generates a target configuration task based on the production order, which is bound to the vehicle identification number, ECU identifier, VCU identifier, and hardware list. After the VCU is successfully activated, it returns a configuration proof record. The production line only allows the vehicle to leave the line when the configuration proof matches the order.

[0026] Preferably, when replacing VCU, ECU or key vehicle function modules after maintenance, the cloud regenerates the target compatible fingerprint or derived configuration package according to the maintenance task. After the vehicle completes the new hardware matching, the candidate configuration is parsed and the transaction is activated again to avoid configuration and hardware mismatch caused by maintenance and parts replacement.

[0027] Preferably, when a vehicle is offline for an extended period and then reconnects to the network, the cloud calculates the upgrade path based on the vehicle's current version and the latest stable version. When multiple baseline versions are involved and the intermediate incremental package dependencies are not met, a new full stable configuration package is directly issued to avoid excessively long continuous patch chains.

[0028] The beneficial effects of this invention are as follows: This invention automatically compiles and generates vehicle configuration packages through a cloud-based business model, completing systematic verification of dependencies, conflicts, hardware capabilities, and regulatory constraints before release. It also uses target compatibility fingerprints and multi-layered security mechanisms (digital signatures, serial numbers, and expiration dates) to prevent mismatches, tampering, and replays. The configuration package adopts a Manifest and independent business partition structure, supporting partition-level parsing verification and incremental updates, reducing transmission traffic and Flash writes. The ECU adapts to weak network environments through segmented downloads and breakpoint resume, while the VCU uses a two-stage parsing process to first write the new configuration to the candidate configuration area. After dual verification of static and dynamic security conditions, it is activated through a transactional approach of preparation, submission, and confirmation. In case of failure, it automatically rolls back to the previous stable configuration, avoiding switching of critical parameters while driving. The cloud supports gray-scale releases by vehicle type, region, batch, etc., and automatically decides the release scope based on success rate and rollback rate. At the same time, it establishes a complete version chain through configuration baselines, incremental packages, stable versions, and factory versions, covering the entire lifecycle of R&D, production line, operation, and after-sales service, realizing the safe, reliable, and traceable evolution of multiple vehicle types and multiple supplier hardware within a unified configuration system. Attached Figure Description

[0029] The accompanying drawings, which form part of this application, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.

[0030] See the attached diagram.

[0031] Figure 1 This is a schematic diagram of the overall architecture for cloud-based vehicle configuration package generation, distribution, and vehicle-side parsing in an embodiment of the present invention.

[0032] Figure 2 This is a schematic diagram of the cloud-based vehicle configuration management platform and configuration compilation engine structure according to an embodiment of the present invention.

[0033] Figure 3 This is a schematic diagram illustrating the process of compiling source data for vehicle configuration and generating configuration packages according to an embodiment of the present invention.

[0034] Figure 4 This is a schematic diagram of the vehicle configuration package Manifest and business partition structure in an embodiment of the present invention.

[0035] Figure 5 This is a schematic diagram of the target compatible fingerprint generation and vehicle-side rapid adaptation judgment process in an embodiment of the present invention.

[0036] Figure 6 This is a schematic diagram illustrating the process of gray-scale release, segmented download, and breakpoint resume of the vehicle configuration package in an embodiment of the present invention.

[0037] Figure 7This is a schematic diagram of the ECU receiving buffer and reliable transmission process to the VCU according to an embodiment of the present invention.

[0038] Figure 8 This is a schematic diagram of the VCU two-stage parsing and candidate configuration verification process according to an embodiment of the present invention.

[0039] Figure 9 This is a schematic diagram illustrating the VCU configuration transaction activation and abnormal rollback status in an embodiment of the present invention.

[0040] Figure 10 This is a schematic diagram illustrating the incremental configuration package generation, partition update, and stable version restoration in an embodiment of the present invention.

[0041] Figure 11 This is a schematic diagram illustrating the complete process of cloud-based vehicle configuration package generation, distribution, and vehicle-side parsing according to an embodiment of the present invention. Detailed Implementation

[0042] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0043] Example 1: Overall Architecture of Vehicle Configuration Package Throughout its Lifecycle

[0044] As attached Figure 1 As shown, this invention generally consists of a cloud-based vehicle configuration management platform, ECUs, VCUs, and vehicle functional modules. The cloud platform is responsible for converting the OEM's product definitions into structured configuration packages; the ECUs handle network-side configuration task reception, caching, and in-vehicle forwarding; and the VCUs handle configuration package parsing, adaptation verification, and activation control. The configuration lifecycle includes configuration modeling, compilation verification, package generation, signing, publishing, downloading, parsing, candidate verification, transaction activation, runtime verification, rollback, and result closure. Configuration tasks can be transmitted between the cloud and the ECU via HTTPS, MQTT, CoAP, or proprietary security protocols. Configuration data can be transmitted between the ECU and the VCU via CAN, UART, SPI, Ethernet, or other in-vehicle communication links. For low-cost vehicles, smaller fragments and sequential transmission can be used; for vehicles with higher resource requirements, multiple partitions can be cached in parallel before transmission.

[0045] The functions of each core component in this embodiment are detailed in Table 1.

[0046] Table 1. Function Comparison of Core Components in the Entire Lifecycle of Vehicle Configuration Packages

[0047] This embodiment forms a complete configuration chain of "cloud compilation - reliable delivery - vehicle-side candidate parsing - transaction activation - result closed loop", which enables the configuration object to have a unique identity, clear version and traceable status throughout the entire life cycle.

[0048] Example 2: Cloud-based vehicle configuration source data model

[0049] As attached Figure 2 As shown, the cloud-based vehicle configuration management platform maintains multiple business models. The vehicle configuration model describes the OEM, model number, model version, region, and purpose; the hardware module model describes the capabilities of components such as controllers, instrument clusters, BMS, and locking systems; the functional service model describes logical services such as start-up, speed limits, lighting, locking systems, and diagnostics; the control strategy model defines triggering conditions, actions, and priorities; the diagnostic rule model defines DTCs, thresholds, and recovery actions; the OTA strategy model defines software upgrade compatibility relationships; and the regulatory parameter model defines hard constraints such as regional speed limits, lighting, and displays.

[0050] Different models are referenced by unique object numbers, and model objects are managed using versioning. A vehicle model version does not simply copy all parameters, but references verified shared model objects, enabling multiple vehicle models to reuse the same hardware and service models.

[0051] The cloud source model and main fields of this embodiment are detailed in Table 2.

[0052] Table 2. Comparison of Fields and Usages in Cloud-based Vehicle Configuration Source Data Model

[0053] Example 3: Configuring the Compilation Engine

[0054] As attached Figure 3 As shown, after the vehicle manufacturer completes the vehicle configuration, it does not directly generate a deployable file. Instead, the configuration compilation engine compiles the configuration. The configuration compilation engine first expands the vehicle model references, converting hardware, service, policy, diagnostic, and regulatory objects into unified intermediate configuration objects; then it resolves all dependencies, forming a directed dependency graph.

[0055] During compilation, at least the following checks are performed: field type validation, required field validation, enumeration value validation, range validation, service dependency validation, service mutual exclusion validation, hardware capability validation, policy action executability validation, regulatory hard constraint validation, and baseline compatibility validation. Only after all critical checks pass can the candidate configuration enter the configuration package building phase.

[0056] The typical compilation check rules for this embodiment are detailed in Table 3.

[0057] Table 3. Configuration Compilation Check Rules Comparison Table

[0058] The role of the configuration compilation engine is to transform "human-configurable business models" into "configuration objects that are executable on the vehicle side and have passed static security checks", thus avoiding delaying the discovery of structural errors on the vehicle side.

[0059] Example 4: Vehicle Configuration Package Manifest and Business Partition Structure

[0060] As attached Figure 4 As shown, the vehicle configuration package consists of an outer Manifest and a main business partition. The Manifest is located at a fixed position or offset range within the configuration package, which allows the VCU to obtain the package identity, length, version, target applicable conditions, and partition index without loading all the data.

[0061] The Manifest records information such as packageId, packageVersion, baseLineVersion, releaseSequence, targetFingerprint, sectionCount, sectionIndex, dependencyVersion, createTime, validUntil, packageDigest, and signature. Each section has its own independent sectionId, sectionVersion, offset, length, dependencyList, and sectionDigest.

[0062] The main structure of the configuration package in this embodiment is detailed in Table 4.

[0063] Table 4 Comparison of Vehicle Configuration Package Manifest and Business Division Structure

[0064] With this structure, VCU can first verify the Manifest, and then locate key partitions such as the hardware baseline area or regulatory parameter area, which reduces memory usage and supports independent partition updates.

[0065] Example 5: Configuration Dependency Graph and Conflict Detection

[0066] As attached Figure 3As shown, the configuration compilation engine maps functional services, strategies, and key parameters to dependency graph nodes. It establishes "dependency edges" when a service depends on hardware capabilities, or a strategy depends on a functional service; "mutually exclusive edges" when two services are mutually exclusive; and "constraint edges" when there are numerical constraints between parameters. The engine performs searches for missing dependencies, loops, and mutual exclusion conflicts on the dependency graph, outputting the complete path from configuration items to conflicting objects for product personnel to locate errors. For example, the torque control service requires the drive controller to declare the `torque_limit` capability, the remote seat lock depends on the `seat_lock` hardware capability, shared order authorization and maintenance mode are mutually exclusive, and the regional maximum speed is constrained by the regulatory model's upper limit.

[0067] For details on the dependency types and processing rules in this embodiment, please refer to Table 5.

[0068] Table 5. Comparison of Configuration Dependency Types and Compilation Processing Rules

[0069] Example 6: Target-compatible fingerprint

[0070] As attached Figure 5 As shown, target compatibility fingerprints are used to reduce the probability of incorrect configuration packages entering deep parsing. The cloud generates a standardized target description based on the vehicle model number, hardware platform number, VCU hardware version range, ECU version range, key module capability bitmap, protocol major version, region, and baseline version. Then, the target description is hashed or encoded to obtain the targetFingerprint.

[0071] The VCU stores its own vehicle configuration identity and real-time hardware baseline information. When receiving a new packet, it first performs a quick judgment based on the target compatibility fingerprint in the Manifest. If the fixed fields do not match significantly, there is no need to continue parsing large-scale policies and diagnostic partitions; the TARGET_MISMATCH result is returned directly.

[0072] The fingerprint composition required for compatibility in this embodiment is detailed in Table 6.

[0073] Table 6. Comparison of Target Compatible Fingerprint Composition and Matching Applications

[0074] Example 7: Configuring Package Version, Baseline, and Unique Identity

[0075] Each released vehicle configuration package has a unique packageId. packageVersion indicates the logical version of the vehicle configuration, baseLineVersion indicates which stable configuration baseline the package is derived from, and releaseSequence is used to determine the release order.

[0076] The cloud does not allow modification of the content of a signed and published packageId; when content changes occur, a new packageId and version must be generated to ensure that the same packageId always corresponds to the same byte content in the audit log.

[0077] Configuration versions can be a combination of major, minor, and revision versions. Major versions are upgraded when there are changes involving partition structure or protocol incompatibility; minor versions are upgraded when adding compatible features; and revision versions are upgraded when parameters are adjusted.

[0078] For details on the version fields and uses of this embodiment, please refer to Table 7.

[0079] Table 7. Comparison of Configuration Package Version Fields and Purposes

[0080] Example 8: Secure signing and replay protection for configuration packages

[0081] The cloud generates CRC32, SHA-256, SM3, or other digests for each partition, and forms a complete packet digest from the Manifest and all partition digests; then, it signs the complete packet digest using RSA, ECDSA, SM2, or other digital signature algorithms. The VCU stores the trusted public key or certificate chain of the OEM or platform for verifying the source of the signature.

[0082] For configuration rollback tasks, the cloud can set special authorization flags and rollback target versions; ordinary configuration tasks must not accept old packages with serial numbers lower than the currently allowed serial numbers. VCU also checks timestamps, random numbers, expiration dates, and releaseSequences to identify replay and expired tasks.

[0083] For details of the security fields in this embodiment, please refer to Table 8.

[0084] Table 8. Comparison of Security Fields and Protective Functions in Configuration Packages

[0085] Example 9: Configuration Package Lifecycle Status Management

[0086] The cloud divides the configuration package lifecycle into states such as draft, pending compilation, compilation failure, compilation success, signed, pending release, canary release, full release, paused, rollback, and retired. Transitions between states can only be made according to a preset state machine, and signed packages cannot be re-edited.

[0087] When a canary release fails, the task status can be switched to paused, and new vehicles are prohibited from receiving the package. If the rollback trigger condition is met, a rollback task pointing to the previous stable baseline is created instead of directly modifying the original package.

[0088] The lifecycle status of this embodiment is detailed in Table 9.

[0089] Table 9. Configuration Package Lifecycle Status and Action Comparison Table

[0090] Example 10: Gray-scale release and target vehicle selection

[0091] As attached Figure 6 As shown, the cloud platform first filters eligible vehicles based on vehicle model and baseline version, then performs secondary filtering by region, production batch, hardware version, operator, or vehicle number. For newly released configurations, internal test vehicles can be selected first, followed by 1% to 10% of gray-scale vehicles, and finally expanded to all vehicles; the percentages mentioned are for illustrative purposes only and can be adjusted according to vehicle model and risk level.

[0092] After each batch is completed, the cloud system calculates the download success rate, Manifest verification success rate, partition resolution success rate, activation success rate, and rollback rate. Subsequent batches are automatically paused when any metric falls below a threshold or a specific critical error code exceeds a threshold.

[0093] The release judgment indicators for this embodiment are detailed in Table 10.

[0094] Table 10 Comparison Table of Gray-Scale Release Judgment Indicators

[0095] Example 11: ECU Segment Download, Resume Download, and Caching

[0096] As attached Figure 6 and Figure 7 As shown, after receiving the configuration task, the ECU first obtains the Manifest or downloads metadata, and then establishes a local download task and a fragment bitmap. The configuration package can be divided into multiple fragments ranging from 1KB to 64KB or other sizes, depending on network quality, ECU memory, and Flash resources.

[0097] Each fragment carries a fragment number and a checksum. After the ECU writes the fragment, it updates the download bitmap; if the network is disconnected and reconnected, it only requests incomplete fragments from the bitmap from the cloud. After all fragments are completed, a full packet digest check is performed. If the check fails, the failed fragments can be re-requested instead of all valid data being deleted immediately.

[0098] For details of the ECU download and caching parameters in this embodiment, please refer to Table 11.

[0099] Table 11 Comparison of ECU Fragment Download and Cache Parameters

[0100] Example 12: Reliable forwarding from ECU to VCU

[0101] The ECU remains transparent about the configuration package content, avoiding the creation of two sets of configuration parsing logic at the networking and control layers. The ECU establishes a configuration transmission session with the VCU, first sending the packet header and Manifest, and then sending the configuration fragments or partitions in sequence.

[0102] The VCU returns an acknowledgment status for each transmission block; the ECU only advances the transmission window after receiving acknowledgment. In case of a timeout, the transmission can be retransmitted a preset number of times; if the retry count is exceeded, the current transmission is terminated and a buffer is retained, waiting for the next vehicle wake-up or communication restoration before continuing.

[0103] Transport layer states include at least: task started, Manifest acknowledged, data transmission in progress, transmission paused, transmission completed, and transmission failed.

[0104] Example 13: VCU Analysis

[0105] After receiving the configuration package, the VCU does not directly write the new configuration to the current running configuration area. Instead, it adopts a two-stage mechanism: "manifest pre-verification followed by in-depth parsing of business partitions." The first stage only parses a fixed-length or fixed-position Manifest, checking the Magic identifier, format version, Manifest length, and field integrity in sequence. It then verifies packageVersion, baseLineVersion, validUntil, releaseSequence, and targetFingerprint. If the target compatibility fingerprint does not match, the digital signature is invalid, the configuration package is expired, or the release sequence number belongs to an illegal old version, the transmission of subsequent business partitions is immediately terminated. The system parses the data and sends the error results back to the cloud via the ECU. After all verifications in the first stage pass, the system proceeds to the second stage. The VCU reads each business partition one by one based on the offset, length, and sectionDigest in the sectionIndex. Partitions with higher security levels, such as the hardware baseline area, regulatory parameter area, and control policy area, are parsed first, while ordinary partitions, such as display class or log parameter area, can be parsed later. Each partition first verifies the length and digest before decoding the fields. After successful decoding, it is converted into a standard configuration object inside the VCU and written to the candidate configuration area. If a critical partition fails to parse, the entire configuration package cannot enter the activation process. If it is an optional partition and the configuration rules allow downgrading, the missing partition can be recorded and subsequent candidate configuration verification can continue.

[0106] Typical inspection items are detailed in Table 12.

[0107] Table 12 VCU Inspection Items Checklist

[0108] Example 14: Static Verification of Candidate Configurations

[0109] After the VCU forms a complete configuration view in the candidate configuration area, it performs a second round of static verification. Unlike cloud-based compilation verification, vehicle-side static verification uses the vehicle's actual hardware list, current software version, and actual module capabilities as input, which can identify adaptation issues caused by individual vehicle differences.

[0110] Verification items include ECU / VCU identity, hardware platform, online status of key modules, supplier and hardware version, module software version, capability bitmap, configuration dependencies, parameter range, mutual exclusion relationships, and regional regulations. If a key item fails, the candidate configuration status is marked as INVALID and activation is disabled.

[0111] The vehicle-side static verification rules for this embodiment are detailed in Table 13.

[0112] Table 13 Comparison of Static Verification Rules for Candidate Configurations on the Vehicle Side

[0113] Example 15: Dynamic Activation Condition Verification

[0114] As attached Figure 9 As shown, passing static validation does not mean the configuration takes effect immediately. The VCU determines whether a safety window is needed based on the type of configuration change. Normal log cycles and non-critical displayed text can be hot-loaded according to rules; however, when critical configurations such as drive speed limits, drive enable, braking linkage, vehicle locking policies, regional regulations, and safety thresholds are involved, the real-time vehicle status needs to be checked.

[0115] Typical safety activation conditions include vehicle speed of 0 or below the safety threshold, throttle return to zero, vehicle not in drive output mode, battery charge and voltage meeting requirements, absence of prohibited faults, and not being in an OTA upgrade or maintenance mutually exclusive state. If the conditions are not met temporarily, the VCU retains the candidate configuration and enters the PENDING_ACTIVATION state, and will be activated only when the conditions are met.

[0116] The activation conditions for this embodiment are detailed in Table 14.

[0117] Table 14 Comparison of Dynamic Activation Conditions and Processing Results

[0118] Example 16: Activation of Transactional Configuration

[0119] As attached Figure 9As shown, configuration activation employs three phases: PREPARE, COMMIT, and CONFIRM. The PREPARE phase backs up the current configuration to the previous stable version, verifies the integrity of candidate configurations, loads key parameters, and writes a transaction start marker. The COMMIT phase sets the candidate configuration as the current valid configuration through a dual-bank switch or atomic pointer switch, avoiding large-scale Flash copying to reduce the risk of half-write. The CONFIRM phase rereads the valid configuration, calculates the local fingerprint, performs self-checks on key modules such as the driver controller, BMS, and instruments, and clears the transaction marker after all checks pass, marking the new configuration as the stable version. If any phase fails, it enters the ROLLBACK state, restoring the previous stable configuration.

[0120] For details of the transaction status in this embodiment, please refer to Table 15.

[0121] Table 15 Transactional Configuration Activation Status Comparison Table

[0122] Example 17: Abnormal Rollback and Final Stable Configuration

[0123] The VCU should at least store the current running configuration, candidate configurations, the previous stable configuration, and the factory default configuration. The previous stable configuration is the configuration that was last configured and successfully verified during operation.

[0124] If a power outage occurs during activation, the vehicle will first check the transaction flags upon power-up. If the transaction is found to be in a PREPARE or COMMIT incomplete state, the uncertain configuration will not be used directly; instead, the previous stable configuration will be verified and restored. If the previous stable configuration is corrupted, the factory basic configuration will be loaded to ensure that the vehicle still has minimum safety control and maintenance communication capabilities.

[0125] The rollback trigger conditions for this embodiment are detailed in Table 16.

[0126] Table 16 Configuration Exception Rollback Trigger and Action Comparison Table

[0127] Example 18: Incremental Configuration Packages and Partition-Level Updates

[0128] As attached Figure 10 As shown, when the new configuration only modifies one or more independently updatable partitions, the cloud compares the partition summaries of the new candidate configuration with the stable package corresponding to baseLineVersion, and only adds the partitions whose summaries have changed to the incremental package, while also adding the new Manifest and dependency change information.

[0129] After receiving the incremental package, VCU first confirms that the current valid version meets the baseLineVersion requirement. Then, it references the unchanged partitions in the candidate full configuration view, replaces the changed partitions with the new content, and re-executes dependency and regulatory constraint checks on the full candidate view. Upon successful activation, a new local configuration fingerprint is generated.

[0130] This approach avoids the problem of covering only a single file without re-validating the overall dependencies.

[0131] For details of the incremental update types in this embodiment, please refer to Table 17.

[0132] Table 17 Comparison of Incremental Configuration Package Update Types and VCU Processing

[0133] Example 19: Initial Production Line Configuration and Offline Verification

[0134] After the vehicle's ECU, VCU, and functional modules are assembled on the OEM production line, the production line system sends the production order, VIN, ECU identifier, VCU identifier, target vehicle model, region, and hardware scan results to the cloud. The cloud then selects an approved stable configuration package based on the production order and generates a target configuration task for the vehicle.

[0135] After the VCU completes configuration package parsing and transaction activation, it generates a configuration proof record, recording the vehicle identification number (VIN), packageId, packageVersion, targetFingerprint, actual hardware fingerprint, activation time, and result. The production line reads the configuration proof and compares it with the order; only when they match are they allowed to enter the offline activation completion state.

[0136] For details of the production line verification items in this embodiment, please refer to Table 18.

[0137] Table 18. Comparison Table of Initial Configuration and Offline Verification Items for Production Line

[0138] Example 20: Hard constraints of overseas regional regulations

[0139] For export models, the cloud-based regulatory parameter model maintains parameters such as maximum speed, lighting operating rules, instrument language, unit system, and other applicable parameters for different models by region. Regulatory parameters are marked as hard constraints during the configuration and compilation phase, and their priority is higher than ordinary business parameters set by the operator.

[0140] For example, if the maximum permissible speed in a certain region is Vmax, even if a higher target speed is configured in the business strategy, the compilation engine will determine a conflict and prevent the release, rather than issuing the exceeding value and relying on the vehicle side for correction. The VCU vehicle side still performs a second regulatory parameter check, thus forming a two-layer defense line of cloud-based compilation checks and vehicle-side real-vehicle checks.

[0141] For examples of regional parameters in this embodiment, please refer to Table 19.

[0142] Table 19 Comparison of Overseas Regional Regulatory Parameters and Compilation Constraints

[0143] Example 21: Version path calculation for long-term offline vehicles

[0144] Vehicles may be offline for extended periods in scenarios such as warehousing, transportation, and underground parking. When a vehicle reconnects to the network, the cloud first reads the vehicle's current valid packageVersion and baseLineVersion, and then compares them with the latest stable version.

[0145] If only one compatible incremental version is missing, an incremental package can be issued. If the vehicle spans multiple major versions, the hardware baseline has changed, or the patch dependency chain is too long, a full stable package suitable for the current hardware baseline can be directly generated or selected. The cloud avoids requiring vehicles to install all historical incremental packages sequentially, thereby shortening the configuration synchronization time after recovery.

[0146] The offline version processing rules for this embodiment are detailed in Table 20.

[0147] Table 20 Comparison of Long-Term Offline Vehicle Version Path Processing

[0148] Example 22: Complete Configuration Method and Verification Process

[0149] As attached Figure 11 As shown, this embodiment discloses the complete method of the present invention:

[0150] S1. Select vehicle model, hardware, services, strategies, diagnostics, OTA and regulatory models in the cloud to form configuration source data;

[0151] S2, configure the compilation engine to expand references, build dependency graphs, and perform field, scope, dependency, conflict, hardware capability, regulatory and baseline verifications;

[0152] S3. After successful compilation, a Manifest and business partition are generated, along with a target compatibility fingerprint, partition digest, full package digest, and digital signature, forming an immutable configuration package.

[0153] S4: The cloud creates a set of target vehicles based on vehicle type, region, batch, hardware baseline, and current version, and creates a gray-scale or full release task.

[0154] S5, ECU receives the task and downloads it in segments, resumes interrupted transmission, caches and verifies the entire packet, and then reliably sends it to VCU;

[0155] S6 and VCU first parse the Manifest and perform target compatibility and security checks. After passing the checks, they parse the data by partition and write it to the candidate configuration area.

[0156] S7 and VCU perform static verification using the vehicle's actual hardware inventory and perform dynamic activation condition verification based on the vehicle's real-time status.

[0157] S8. Once the conditions are met, execute the transaction activation by PREPARE, COMMIT, and CONFIRM. If it fails, roll back the previous stable configuration.

[0158] S9 and VCU transmit the parsing, activation and rollback results back to the cloud via ECU, and the cloud updates the current effective configuration version of the vehicle.

[0159] S10: The cloud expands the release, pauses, or rolls back based on the grayscale results; subsequent changes generate full packages or incremental partition packages based on the stable baseline, and S4-S10 are executed in a loop.

[0160] OEMs can verify configuration compilation, error packet interception, weak network download, power failure recovery, candidate configuration isolation, transaction activation, incremental update, and rollback in cloud simulation environments, ECU / VCU benchtops, and real vehicle environments, respectively. Test results record the packageId, target vehicle, pre-configuration version, post-configuration version, error code, and final valid fingerprint to form a complete audit log.

[0161] The test items for this embodiment are detailed in Table 21.

[0162] Table 21 Comparison Table of Simulation Verification Test Items for Configuration Method

[0163] This embodiment relies on configuration compilation, target compatibility fingerprinting, Manifest priority parsing, candidate configuration isolation, and transaction activation mechanisms to transform cloud-based vehicle configuration from "parameter distribution" into a configuration lifecycle management process with clear compilation rules and execution status.

[0164] The above description, based on the preferred embodiments of the present invention, provides inspiration. Those skilled in the art can make various changes and modifications without departing from the inventive concept. The technical scope of this invention is not limited to the contents of the specification, but should be determined according to the claims.

Claims

1. A method for generating, distributing, and parsing cloud-based vehicle configuration packages for two-wheeled electric vehicles, characterized in that, Includes the following steps: S1. A multi-dimensional model is established in the cloud, including vehicle configuration, hardware modules, functional services, control strategies, diagnostic rules, OTA strategies and regulatory parameters. Model objects are selected based on the target vehicle model, sales region, vehicle purpose and hardware baseline to form vehicle configuration source data. S2. Configure the compilation engine to convert the source data into configuration items that can be parsed by the vehicle, build a directed dependency graph of reference relationships between models, perform static checks on required items, data types, parameter ranges, mutual exclusions, dependencies, hardware capabilities and regulatory constraints, and generate candidate configurations. S3. Generate a vehicle configuration package based on the candidate configurations, including a configuration manifest and a configuration package body; the manifest records the configuration package's unique identifier, version, baseline version, target compatibility fingerprint, configuration partition index, dependency version, generation time, validity period, partition summary, whole package summary, monotonically increasing release sequence number, timestamp, random number, and digital signature; the configuration package body consists of multiple independently verifiable business partitions; S4. The cloud constructs a set of target vehicles and sends configuration tasks to the vehicle network control unit (ECU). The ECU performs segmented download, breakpoint resume, caching, segmented verification and full packet verification. S5 and ECU transmit the verified configuration package to the vehicle control unit (VCU). The VCU uses a two-stage parsing mechanism: the first stage parses the Manifest, determines whether the configuration package belongs to the current vehicle based on the target compatibility fingerprint, and verifies the release serial number, validity period, and digital signature to reject old version replay, illegal downgrade, or tampering; after the first stage verification is passed, the second stage is entered, which parses the main body of the configuration package according to the configuration partition index and writes the new configuration to the candidate configuration area isolated from the currently running configuration. S6 and VCU perform static verification on candidate configurations, including signature, vehicle identity, hardware baseline, software version, partition summary, configuration dependencies, parameter range, configuration conflicts, and regulatory security constraints. S7. After the static verification is passed, the VCU performs dynamic activation condition verification based on vehicle speed, ignition status, drive status, battery status, fault level and operating mode. When the conditions are met, a configuration activation plan is generated. S8 and VCU perform configuration transaction activation in three phases: preparation, commit, and result confirmation. The preparation phase backs up the current valid configuration and preloads candidate configurations. During the commit phase, candidate configurations are converted to the currently valid configurations through atomic version pointer switching. During the result confirmation phase, configuration self-test and critical function check are performed; if any phase fails, the system will roll back to the previous stable configuration or factory configuration. S9 and VCU will transmit the parsing results, partition verification results, activation results, failure reasons, rollback results and current valid configuration version back to the cloud via ECU, and the cloud will update the vehicle configuration status. S10: The cloud determines the scope of release adjustment or rollback based on the configuration success rate, parsing error rate, rollback rate and abnormal operation data, and generates an incremental configuration package containing only the changed partitions based on the previous stable baseline.

2. The cloud-based method for generating, distributing, and parsing vehicle configuration packages for two-wheeled electric vehicles according to claim 1, characterized in that, The cloud-based vehicle configuration package, which consists of multiple independently verifiable business partitions, also includes a basic information partition, a hardware baseline partition, a functional service partition, a control strategy partition, a diagnostic rule partition, an OTA strategy partition, a regulatory parameter partition, an operating parameter partition, and a version rollback partition. Each partition is configured with a partition number, partition version, data length, list of dependent partitions, applicable hardware conditions, and partition summary, enabling VCU to independently parse, verify, update, and restore a single partition.

3. The cloud-based method for generating, distributing, and parsing vehicle configuration packages for two-wheeled electric vehicles according to claim 1, characterized in that... In step S2, when the configuration compilation engine performs static checks after constructing the directed dependency graph, if it detects missing dependencies, circular dependencies, simultaneous activation of mutually exclusive services, inverted upper and lower limits of control parameters, insufficient hardware capabilities, regulatory hard constraints being covered by business parameters, or incompatibility with the version baseline, it will prevent the cloud vehicle configuration package from entering the signing and release state and output the specific conflict path.

4. The cloud-based method for generating, distributing, and parsing vehicle configuration packages for two-wheeled electric vehicles according to claim 1, characterized in that... The target compatibility fingerprint in steps S1 and S3 is calculated based on one or more of the following data: vehicle model number, hardware platform number, VCU hardware version range, ECU hardware version range, key vehicle function module capability bitmap, communication protocol main version, sales region, and configuration baseline version. In step S3, the cloud generates a hash digest for each service partition and generates the digital signature based on the configuration list, all partition digests and the whole package digest; the VCU simultaneously verifies the currently accepted serial number and validity period to reject old version replay, illegal downgrade or tampered configuration packages.

5. The cloud-based method for generating, distributing, and parsing vehicle configuration packages for two-wheeled electric vehicles according to claim 1, characterized in that... In step S4, the ECU downloads the vehicle configuration package according to the configuration package length and fragment summary recorded in the configuration list, and maintains the download bitmap; After a network interruption, missing fragments are requested based on the downloaded bitmap. Once all fragments are received, a full packet digest verification is performed. The ECU does not modify the configuration packet service data, but only adds the task number, fragment sequence number, retry count, and transmission verification information at the transport layer before sending it to the VCU.

6. The cloud-based method for generating, distributing, and parsing vehicle configuration packages for two-wheeled electric vehicles according to claim 1, characterized in that, When the VCU in step S5 adopts the two-stage parsing mechanism: the first stage only parses the configuration manifest of fixed length or fixed position to obtain the package version, target compatibility fingerprint, partition index, digest and signature information; the second stage is only entered after the first stage verification is passed, and the configuration package body is parsed one by one according to the partition index. If the verification of any key partition fails, the configuration activation process is prohibited; the VCU shall at least set the current running configuration area, the candidate configuration area, the previous stable configuration area and the factory basic configuration area. After the new configuration is successfully parsed, it is only written to the candidate configuration area and will not overwrite the current running configuration until static verification and dynamic activation condition verification are completed.

7. The cloud-based method for generating, distributing, and parsing vehicle configuration packages for two-wheeled electric vehicles according to claim 1, characterized in that, In step S8, during the configuration transaction activation process, the VCU backs up the current valid configuration to the previous stable configuration area and preloads candidate configurations during the preparation phase; during the commit phase, it converts the configuration in the candidate configuration area to the valid configuration in the current running configuration area through atomic version pointer switching; if a power outage, watchdog reset, self-test failure, or critical module disconnection occurs during the activation process, the VCU automatically restores the configuration in the previous stable configuration area according to the transaction mark when it starts up again.

8. The cloud-based method for generating, distributing, and parsing vehicle configuration packages for two-wheeled electric vehicles according to claim 1, characterized in that, In step S10, the cloud classifies the configuration package release status into draft, compilation and verification, signed, pending release, gray release, full release, paused, rollback, and retired states. During gray release, target vehicles are selected according to vehicle ratio, vehicle number range, production batch, region, hardware version, or a specified whitelist, and the next release batch is automatically entered only when the previous release batch meets the preset success rate and failure rate thresholds. For configuration changes where partition dependencies meet the independent update conditions, the cloud generates an incremental configuration package based on the current valid configuration package. The incremental configuration package only contains the changed business partitions, dependency change information, and a new configuration list. After the VCU completes the incremental partition verification, it reconstructs a new complete configuration view and regenerates the local configuration index. The cloud-based vehicle configuration management platform is configured to perform the vehicle configuration source data modeling, configuration compilation, vehicle configuration package generation, signing, target vehicle selection, release, and result closure in the method described in any one of claims 1 to 7; the ECU is configured to perform the configuration package downloading, caching, verification, and forwarding in the method described in any one of claims 1 to 7; the VCU is configured to perform the configuration list parsing, business partition parsing, candidate configuration verification, transaction activation, rollback, and result feedback in the method described in any one of claims 1 to 7; the vehicle configuration package management system includes the vehicle networking control unit (ECU) and the vehicle control unit (VCU), and receives and activates the vehicle configuration package generated by the cloud in accordance with the method described in any one of claims 1 to 7.