Vehicle configuration word management system and method based on multi-terminal cooperation

Through the multi-end collaborative vehicle configuration word management system, efficient and accurate configuration word updates are achieved in the case of network instability, solving the problem of inefficient update efficiency caused by unstable network connections in the prior art, and ensuring the normal operation of the vehicle controller and data consistency.

CN120371336APending Publication Date: 2025-07-25SINO TRUK JINAN POWER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510359167.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In the prior art, when the network connection is unstable, the real-time and accuracy of the brushing of vehicle configuration words are difficult to ensure, especially when the vehicle is modified frequently, resulting in inefficient update efficiency.

Method used

The vehicle configuration word management system based on multi-end collaboration is adopted. The model configuration set is generated through the PC and uploaded to the vehicle and computer terminal and the cloud. The vehicle and computer terminal choose local or remote writing according to the network conditions. The cloud provides unified management and storage to ensure the accuracy and efficiency of configuration word updates.

Benefits of technology

Configuration word updates can still be performed in the event of network abnormalities, which improves the efficiency and reliability of vehicle configuration word management and ensures the normal operation of the vehicle controller and data consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371336A_ABST
    Figure CN120371336A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicle software upgrading, in particular to a vehicle configuration word management system and method based on multi-terminal collaboration.The method comprises the steps that when a vehicle is offline in production, a PC terminal generates a vehicle type configuration set according to vehicle controller information and vehicle type parameters and stores the vehicle type configuration set to a vehicle machine terminal, after receiving the configuration word update triggering information, the uploading cloud vehicle machine end judges whether the communication with the cloud network is normal or not; if yes, the vehicle terminal generates a configuration word change instruction and forwards the configuration word change instruction to the cloud terminal; the cloud locks the controller of which the configuration word needs to be changed based on the instruction, and downloads a corresponding controller configuration set from the vehicle type configuration set to perform remote flashing on the locked controller; and if not, the vehicle terminal obtains the vehicle type parameters to calculate the unique identifier of the vehicle type configuration word, and when the unique identifier is consistent with the locally stored vehicle type configuration set, the corresponding controller configuration set is obtained based on the configuration word change instruction to perform local flashing. Dependence on network connection is avoided, and the efficiency of vehicle configuration word management is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of vehicle software upgrade, and specifically relates to a vehicle configuration word management system and method based on multi-terminal collaboration. Background Art

[0002] Vehicle configuration words are detailed data used to describe and control various vehicle functions. They not only help automate vehicle configuration during the production process but also enable flexible adjustment of vehicle function configurations during later maintenance and upgrades. Therefore, vehicles with different configurations can use the same controller without the need to design new hardware or software for each configuration separately, ensuring efficient management and compatibility of vehicle function configurations.

[0003] Current vehicle configurations are very rich. In addition to traditional basic functions, more and more intelligent and personalized configurations are integrated into automobiles. Users can choose different power systems, driving assistance systems, entertainment systems, interior configurations, etc. according to their needs. At the same time, in order to meet the personalized needs of different consumers, the vehicle manufacturer continuously develops new models, resulting in an increasing number of corresponding controllers and replacement frequencies. Therefore, higher requirements are put forward for the real-time performance and accuracy of vehicle configuration word writing.

[0004] Existing technologies often set up a "vehicle configuration word module" on the in-vehicle device. When writing, the data to be written is matched with the data stored in this module itself to ensure the accuracy of writing. At the same time, in order to be able to change the configuration words in a timely manner, the configuration word data is often stored in the cloud in advance. When the vehicle is written, users can download from the cloud for writing to ensure real-time performance. However, under harsh conditions, sometimes a network connection cannot be obtained, so users cannot obtain data from the cloud, thereby reducing the real-time performance of writing. Secondly, when developing new models, for vehicles with frequent changes, such as experimental vehicles and modified vehicles, the replacement of controllers is extremely frequent. At this time, the number of times of inputting new configuration word data into the "vehicle configuration word module" increases more rapidly, and the accuracy will also decrease. Summary of the Invention

[0005] Aiming at the problem that in the case of an unstable network connection in the existing method, users cannot obtain data from the cloud, affecting the real-time performance of the writing process, the present invention provides a vehicle configuration word management system and method based on multi-terminal collaboration.

[0006] In the first aspect, the technical solution of the present invention provides a vehicle configuration word management system based on multi-terminal collaboration, including a PC terminal, an in-vehicle device terminal, and a cloud; the PC terminal is respectively communicatively connected to the in-vehicle device terminal and the cloud, and the in-vehicle device terminal is communicatively connected to the cloud; When the vehicle is produced and off the line, the PC terminal generates a controller configuration set for each controller according to the vehicle controller information, calculates the unique identifier of the vehicle configuration word based on the vehicle model parameters, combines the unique identifier of the vehicle configuration word and all the controller configuration sets to form a vehicle model configuration set, stores it in the in-vehicle unit, and uploads it to the cloud at the same time; After the in-vehicle unit receives the configuration word update trigger information, it judges whether the network communication with the cloud is normal; If so, the in-vehicle unit generates a configuration word change instruction and forwards the configuration word change instruction to the cloud; The cloud locks the controller that needs to change the configuration word based on the instruction, downloads the corresponding controller configuration set from the vehicle model configuration set, and remotely rewrites the locked controller; If not, the in-vehicle unit obtains the vehicle model parameters to calculate the unique identifier of the vehicle configuration word, compares the calculation result with the vehicle model configuration set stored locally, and if they are consistent, obtains the corresponding controller configuration set based on the configuration word change instruction for local rewriting.

[0007] As an optimization of the technical solution of the present invention, when the vehicle is produced and off the line, the PC terminal combines the vehicle model parameters into a string in a preset order, performs a hash calculation on the string to obtain a hash value, and the hash value is the unique identifier of the vehicle configuration word; The PC terminal generates a controller configuration set for the corresponding controller by the part number, network configuration word and function configuration word of each controller.

[0008] Obtaining the unique identifier of the vehicle configuration word through hash calculation ensures that each vehicle model configuration set has a unique identifier, avoids confusion between different vehicle model configuration sets, and improves the accuracy and uniqueness of data management. Combining the part number, network configuration word and function configuration word of the controller into a controller configuration set completely records the key information of the controller. This enables the corresponding controller to be accurately found and its configuration updated during the configuration word update, ensuring the normal operation of the vehicle controller.

[0009] As an optimization of the technical solution of the present invention, when the vehicle needs to update the configuration word, the user inputs the information of the controller to be updated on the in-vehicle unit and triggers the configuration update button. After the in-vehicle unit receives the configuration word update trigger information and judges that the network communication with the cloud is normal, it combines the unique identifier of the vehicle configuration word with the information input by the user to generate a configuration word change instruction and sends it to the cloud.

[0010] Allowing users to directly input information of the controller to be updated on the in-vehicle device and trigger the update provides an intuitive and convenient operation method, facilitating users to update the vehicle configuration words according to actual needs. Combining the unique identifier of the vehicle model configuration word with the information input by the user to generate an instruction ensures that the instruction contains accurate vehicle model information and update requirements. In this way, after receiving the instruction, the cloud can accurately locate the corresponding vehicle model configuration set and the controller to be updated, improving the accuracy and efficiency of the update operation.

[0011] As an optimization of the technical solution of the present invention, the cloud parses the obtained instruction to obtain the unique identifier of the vehicle model configuration word and the part number of the controller to be updated, searches for the corresponding vehicle model configuration set by the unique identifier of the vehicle model configuration word, matches the controller configuration set according to the part number in the vehicle model configuration set, and remotely flashes the controller to be updated based on the matched controller configuration set.

[0012] By parsing the instruction and using the unique identifier of the vehicle model configuration word and the part number for searching and matching, the cloud can accurately locate the controller to be updated and the corresponding configuration set, avoiding the occurrence of incorrect updates to other controllers and improving the accuracy of the update operation. The cloud centrally stores the configuration sets of all vehicle models and can uniformly process and update them after receiving the update instruction. This centralized management method facilitates the unified maintenance and management of vehicle configuration words, improving management efficiency and data consistency.

[0013] As an optimization of the technical solution of the present invention, when the in-vehicle device receives the configuration word update trigger information and determines that the network communication with the cloud is abnormal, it obtains the part number of the controller according to the controller name input by the user; compares the obtained part number with the part number stored locally; When the comparison is consistent, it matches the controller configuration set according to the part number in the vehicle model configuration set stored locally on the in-vehicle device and locally flashes the corresponding controller; When the comparison is inconsistent, it determines that the controller has been replaced, generates a new controller configuration set with the part number, network configuration word, and function configuration word of the replaced controller, and locally flashes the replaced controller based on the new controller configuration set.

[0014] In the case of abnormal network communication, the in-vehicle device can make independent judgments and update operations based on the information stored locally. By comparing the part numbers, it distinguishes whether the controller has been replaced and takes corresponding processing methods, ensuring that the vehicle can still update the controller configuration word when the network is abnormal, improving the reliability and availability of the system. When it is detected that the controller has been replaced, the in-vehicle device can promptly generate a new controller configuration set and perform local flashing to ensure that the replaced controller can work properly, adapting to the actual situation where the vehicle controller may be replaced, and improving the flexibility and adaptability of the system.

[0015] Preferably, when the in-vehicle unit locally refreshes the controller, the controller configuration set used to update the controller and the change record are redundantly backed up. After the communication between the in-vehicle unit and the cloud network resumes normal, the redundant backup is uploaded to the cloud. The cloud compares whether the controller configuration set in the redundant backup is consistent with the controller configuration set stored in the cloud according to the change record. If they are consistent, the cloud automatically saves this redundant backup. If they are inconsistent, the controller configuration set stored in the cloud is sent to the in-vehicle unit to re-perform the flashing of the corresponding controller.

[0016] Through the redundant backup and cloud comparison mechanism, the consistency of the controller configuration set data between the in-vehicle unit and the cloud is ensured. Even if the in-vehicle unit performs local flashing during network anomalies, it can be synchronized and verified with the cloud after the network resumes, avoiding vehicle control problems caused by inconsistent local flashing and cloud storage. When the cloud comparison finds that the redundant backup of the in-vehicle unit is inconsistent with its own storage, it will promptly send the correct controller configuration set to require the in-vehicle unit to re-perform the flashing. This error correction mechanism can promptly detect and correct possible errors during the local flashing process, improving the stability and reliability of the system.

[0017] In a second aspect, the technical solution of the present invention further provides a vehicle configuration word management method based on multi-terminal collaboration, including the following steps: After the in-vehicle unit receives the configuration word update trigger information, it determines whether the communication with the cloud network is normal. If so, the in-vehicle unit generates a configuration word change instruction and forwards the configuration word change instruction to the cloud. The cloud locks the controller that needs to change the configuration word based on the instruction, and downloads the corresponding controller configuration set from the vehicle type configuration set to remotely flash the locked controller. If not, the in-vehicle unit obtains the unique identifier of the vehicle type configuration word by calculating the vehicle type parameters, compares the calculation result with the vehicle type configuration set stored locally. If they are consistent, the corresponding controller configuration set is obtained based on the configuration word change instruction for local flashing.

[0018] Preferably, this method further includes: When the vehicle rolls off the production line, the PC terminal generates the controller configuration set of each controller according to the vehicle controller information; calculates the unique identifier of the vehicle type configuration word based on the vehicle type parameters, and generates and combines the unique identifier of the vehicle type configuration word and all controller configuration sets to form a vehicle type configuration set, which is stored in the in-vehicle unit and uploaded to the cloud at the same time.

[0019] Preferably, as a technical solution of the present invention, the method further includes: when the vehicle rolls off the production line, the PC side combines the vehicle model parameters into a string in a preset order, calculates a hash value for the string, and the hash value is the unique identifier of the vehicle model configuration word; The PC side generates a controller configuration set for each controller with the part number, network configuration word, and function configuration word of the controller. Using the hash value as the unique identifier of the vehicle information can ensure the uniqueness of the configuration word data and greatly improve the accuracy of the configuration word flashing.

[0020] Preferably, as a technical solution of the present invention, the method further includes: when the vehicle needs to update the configuration word, the user inputs the information of the controller to be updated on the in-vehicle device and triggers the configuration update button. After the in-vehicle device receives the configuration word update trigger information and determines that the network communication with the cloud is normal, it generates a configuration word change instruction by combining the unique identifier of the vehicle model configuration word with the information input by the user and sends it to the cloud.

[0021] Preferably, as a technical solution of the present invention, the method further includes: the cloud parses the obtained instruction to obtain the unique identifier of the vehicle model configuration word and the part number of the controller to be updated, searches for the corresponding vehicle model configuration set according to the unique identifier of the vehicle model configuration word, matches the controller configuration set according to the part number in the vehicle model configuration set, and remotely flashes the controller to be updated based on the matched controller configuration set.

[0022] Preferably, as a technical solution of the present invention, the method further includes: after the in-vehicle device receives the configuration word update trigger information and determines that the network communication with the cloud is abnormal, it obtains the part number of the controller according to the controller name input by the user; compares the obtained part number with the part number stored locally; When the comparison is consistent, the controller configuration set is matched according to the part number in the vehicle model configuration set stored locally on the in-vehicle device, and the corresponding controller is locally flashed; When the comparison is inconsistent, it is determined that the controller has been replaced, and a new controller configuration set is generated with the part number, network configuration word, and function configuration word of the replaced controller, and the replaced controller is locally flashed based on the new controller configuration set.

[0023] Preferably, as a technical solution of the present invention, the method further includes: when the in-vehicle device locally refreshes the controller, it makes a redundant backup of the controller configuration set used to update the controller and the change record; After the network communication between the in-vehicle device and the cloud returns to normal, the redundant backup is uploaded to the cloud; The cloud compares whether the controller configuration set in the redundant backup is consistent with the controller configuration set stored in the cloud according to the change record. If they are consistent, the cloud automatically saves this redundant backup. If not, it sends the controller configuration set stored in the cloud to the in-vehicle unit and rewrites the corresponding controller again.

[0024] As can be seen from the above technical solutions, the present application has the following advantages: Through the collaborative work of the PC side, the in-vehicle unit side, and the cloud side, the centralized management and distributed operation of vehicle configuration words are realized. The PC side is responsible for generating and uploading the initial configuration set. The in-vehicle unit side can flexibly select the update method according to the network status. The cloud side provides unified storage and management, and the configuration word update can be performed regardless of whether the network connection status is normal, avoiding the dependence on the network connection and greatly improving the efficiency and flexibility of vehicle configuration word management.

[0025] When the network is abnormal, the in-vehicle unit side can still update the configuration word according to the information stored locally, ensuring the continuity and reliability of vehicle configuration word update and avoiding the situation that the vehicle cannot update the configuration in time due to network problems. When the network is normal, the configuration word is rewritten through the cloud, which not only reduces the delay, but also the cloud will interact with the local synchronization system to ensure that the configuration and function data of the vehicle are consistent with the hardware of the vehicle itself. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions of the present application, the drawings required for description will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0027] Figure 1 It is a flowchart of the method provided by the embodiment of the present invention.

[0028] Figure 2 It is a schematic diagram of the working process of the PC side in the embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0029] In order to make the application purpose, features, and advantages of the present application more obvious and understandable, the technical solutions protected by the present application will be clearly and completely described below by using specific embodiments and the accompanying drawings. Obviously, the embodiments described below are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in this patent, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this patent.

[0030] The technical solution of the present invention provides a vehicle configuration word management system based on multi-terminal collaboration, including a PC terminal, a vehicle-mounted terminal, and a cloud; the PC terminal is respectively communicatively connected to the vehicle-mounted terminal and the cloud, and the vehicle-mounted terminal is communicatively connected to the cloud; When the vehicle is produced and off the production line, the PC terminal generates a controller configuration set for each controller according to the vehicle controller information, calculates the unique identifier of the vehicle model configuration word based on the vehicle model parameters, combines the unique identifier of the vehicle model configuration word and all controller configuration sets to form a vehicle model configuration set, stores it in the vehicle-mounted terminal, and uploads it to the cloud at the same time; After the vehicle-mounted terminal receives the configuration word update trigger information, it judges whether the network communication with the cloud is normal; If so, the vehicle-mounted terminal generates a configuration word change instruction and forwards the configuration word change instruction to the cloud; The cloud locks the controller whose configuration word needs to be changed based on the instruction, and downloads the corresponding controller configuration set from the vehicle model configuration set to remotely flash the locked controller; If not, the vehicle-mounted terminal obtains the vehicle model parameters to calculate the unique identifier of the vehicle model configuration word, compares the calculation result with the vehicle model configuration set stored locally, and if they are consistent, obtains the corresponding controller configuration set based on the configuration word change instruction for local flashing.

[0031] In the embodiment of the present invention, a vehicle configuration word management system based on multi-terminal collaboration is constructed, including a PC terminal, a vehicle-mounted terminal, and a cloud. The PC terminal respectively establishes communication connections with the vehicle-mounted terminal and the cloud, and the vehicle-mounted terminal also establishes a communication connection with the cloud to realize data interaction between each terminal. At the time node when the vehicle is produced and off the production line, the PC terminal, first, generates a controller configuration set corresponding to each controller according to the specific information of the vehicle controller (such as controller type, function, etc.); second, calculates the unique identifier of the vehicle model configuration word based on the parameters of the vehicle model (such as vehicle model, engine type, etc.). Subsequently, the PC terminal combines the unique identifier of the vehicle model configuration word and all controller configuration sets to form a complete vehicle model configuration set. This vehicle model configuration set is stored in the vehicle-mounted terminal on the one hand for the vehicle-mounted terminal to use in subsequent local operations; on the other hand, it is uploaded to the cloud for the cloud to perform unified management and storage.

[0032] When the vehicle-mounted terminal receives the configuration word update trigger information (which may be manually triggered by the user or automatically detected by the system that an update is needed. In the embodiment of the present invention, it is manually triggered by the user), it first judges whether the network communication between itself and the cloud is normal. This is a crucial judgment step because subsequent configuration word update operations will adopt different processing methods according to the network status.

[0033] If the network communication is normal, the in-vehicle unit will generate a configuration word change instruction. This instruction contains the relevant information for changing the configuration word, and then forwards the instruction to the cloud. After receiving the instruction, the cloud will lock the specific controller whose configuration word needs to be changed according to the information in the instruction, then download the corresponding controller configuration set from the stored vehicle model configuration set, and finally perform a remote flashing operation on the locked controller to complete the update of the configuration word.

[0034] If the network communication is abnormal, the in-vehicle unit will obtain the vehicle model parameters and recalculate the unique identifier of the vehicle model configuration word. Compare the calculated result with the unique identifier of the vehicle model configuration word in the locally stored vehicle model configuration set. If the comparison result is consistent, it indicates that the locally stored vehicle model configuration set is valid. The in-vehicle unit will obtain the corresponding controller configuration set from the local storage based on the configuration word change instruction and perform a local flash on the controller to complete the update of the configuration word.

[0035] The means for the in-vehicle unit to determine whether its network communication with the cloud is normal are as follows: In one implementation, the in-vehicle unit uses its own network module to detect the network connection status. When the in-vehicle unit receives the configuration word update trigger information, it immediately calls the network detection interface. For the cellular network (4G / 5G), query the signal strength information returned by the network module. If the 4G / 5G signal strength is greater than or equal to 2 bars, it is generally considered that the network connection basically meets the conditions; for the Wi-Fi network, check whether it has successfully connected to an authenticated dedicated hotspot and the obtained network IP address and other parameters are correct. If these conditions are met, it indicates that the network connection is initially normal. Through these methods, it can be preliminarily determined whether the physical network link has been established.

[0036] In another implementation, the in-vehicle unit sends heartbeat packets in a specific format to the cloud at fixed time intervals (such as every 10 seconds). The heartbeat packets contain the basic information of the in-vehicle unit and the timestamp, etc. If the in-vehicle unit does not receive the confirmation response from the cloud for the heartbeat packets within the set time (such as after continuously sending 3 heartbeat packets, with a total waiting time of 30 seconds), it is determined that the network communication is abnormal; if it can normally receive the confirmation information returned by the cloud, it indicates that the network communication is normal and the two-way data transmission function between the in-vehicle unit and the cloud is normal.

[0037] In some embodiments, as Figure 2 shown, when the vehicle rolls off the production line, the working process of the PC side is as follows: S01: The PC side combines the vehicle model parameters into a string in a preset order; S02: Perform a hash calculation on the string to obtain a hash value, and this hash value is the unique identifier of the vehicle model configuration word; S03: The PC generates a controller configuration set for each controller based on the part number, network configuration word, and function configuration word of the controller. S04: Combine the vehicle model configuration word unique identifier and all controller configuration sets and store the resulting vehicle model configuration set in the in-vehicle unit.

[0038] It should be noted that when the vehicle rolls off the production line, the PC combines the various parameters of the vehicle model into a string in a pre-set order. For example, the vehicle model parameters may include the vehicle brand, model, production date, etc. These parameters are arranged and combined in a certain order to form a string. Then, a hash calculation is performed on this string using common hash algorithms (such as MD5, SHA-1, etc.) to obtain a hash value. This hash value is unique and can be used as the unique identifier of the vehicle model configuration word for subsequent quick search and identification of the vehicle model configuration set. The PC collects information such as the part number, network configuration word, and function configuration word for each controller. The part number is used to uniquely identify the controller, the network configuration word determines the communication parameters of the controller in the vehicle network, and the function configuration word defines the specific functions of the controller. Combine this information to generate a controller configuration set for the corresponding controller.

[0039] When the vehicle rolls off the production line, the PC communicates with each controller of the vehicle to obtain detailed information about each controller. This can be achieved through communication protocols such as CAN (Controller Area Network) bus. For example, the PC can send specific query instructions to the bus, and each controller will return information such as its part number, network configuration word, and function configuration word after receiving the instruction.

[0040] After the PC receives this information, it integrates the part number, network configuration word, and function configuration word of each controller to generate a controller configuration set for the corresponding controller. These information can be stored as files in formats such as JSON and XML for convenient subsequent processing and storage.

[0041] The PC side collects various parameters of the vehicle models, such as the brand, model, production batch, engine type, etc. of the vehicle. These parameters can be obtained from the vehicle production database. The vehicle model parameters are combined into a string in a preset order. For example, if the preset order is brand - model - production batch - engine type, then the combined string may be "XX brand - XX model - batch 202503 - XX engine type". Use a hashing algorithm (such as MD5, SHA-256, etc.) to perform a hash calculation on the combined string to obtain a hash value of a fixed length. This hash value is the unique identifier of the vehicle model configuration word. For example, use the hashlib library in Python to perform MD5 hash calculation.

[0042] The PC side combines the calculated unique identifier of the vehicle model configuration word with all controller configuration sets. The unique identifier of the vehicle model configuration word can be added as a separate field to a list or dictionary containing all controller configuration sets to form a complete vehicle model configuration set. The PC side transmits the vehicle model configuration set to the in-vehicle unit through a USB interface, CAN bus or other data transmission methods. After receiving the data, the in-vehicle unit stores it in a local storage device (such as a hard disk, flash memory, etc.) to form an information library on the in-vehicle unit. The PC side uploads the vehicle model configuration set to the cloud server through a network (such as Ethernet, Wi-Fi, etc.). After receiving the data, the cloud server stores it in a database for subsequent query and management.

[0043] In some embodiments, when the vehicle needs to update the configuration word, the user inputs the information of the controller to be updated on the in-vehicle unit and triggers the configuration update button. After receiving the configuration word update trigger information, when the in-vehicle unit determines that the network communication with the cloud is normal, it combines the unique identifier of the vehicle model configuration word with the information input by the user to generate a configuration word change instruction and sends it to the cloud.

[0044] It should be noted that when the vehicle needs to update the configuration word, the user inputs the relevant information of the controller to be updated (such as the controller name, expected configuration changes, etc.) on the operation interface of the in-vehicle unit, and then triggers the configuration update button. This operation sends a configuration word update trigger information to the in-vehicle unit. After receiving the configuration word update trigger information, the in-vehicle unit first determines whether the network communication with the cloud is normal. If the network is normal, the in-vehicle unit combines the previously stored unique identifier of the vehicle model configuration word with the information of the controller to be updated input by the user. The combination method can be to splice or combine the two in a certain format to generate a configuration word change instruction containing the update information. After generating the configuration word change instruction, the in-vehicle unit sends the instruction to the cloud so that the cloud can perform subsequent configuration word update operations according to the instruction.

[0045] When the network communication is normal, the in-vehicle device combines the unique identifier of the vehicle model configuration word stored locally with the information of the controller to be updated input by the user. For example, the unique identifier of the vehicle model configuration word and the information such as the part number of the controller to be updated and the expected configuration change are spliced according to a preset format to generate a configuration word change instruction. The JSON format can be used to represent the instruction.

[0046] In some embodiments, the cloud parses the obtained instruction to obtain the unique identifier of the vehicle model configuration word and the part number of the controller to be updated, looks up the corresponding vehicle model configuration set by the unique identifier of the vehicle model configuration word, matches the controller configuration set according to the part number in the vehicle model configuration set, and remotely flashes the controller to be updated based on the matched controller configuration set.

[0047] In the embodiments of the present invention, after the cloud receives the configuration word change instruction sent by the in-vehicle device, it parses the instruction. Through a specific parsing algorithm, two key pieces of information, namely the unique identifier of the vehicle model configuration word and the part number of the controller to be updated, are extracted from the instruction. Using the extracted unique identifier of the vehicle model configuration word, a search is conducted among the numerous vehicle model configuration sets stored in the cloud to locate the vehicle model configuration set corresponding to the vehicle model. After finding the corresponding vehicle model configuration set, according to the part number of the controller to be updated, the corresponding controller configuration set is matched in the vehicle model configuration set. Each controller configuration set corresponds to a unique part number, and the controller configuration to be updated can be accurately found through the part number. After matching the corresponding controller configuration set, the cloud downloads the configuration set and remotely flashes the locked controller to complete the update of the controller configuration word.

[0048] In some embodiments, after the in-vehicle device receives the configuration word update trigger information and determines that the network communication with the cloud is abnormal, it obtains the part number of the controller according to the controller name input by the user; compares the obtained part number with the part number stored locally; When the comparison is consistent, the controller configuration set is matched according to the part number in the vehicle model configuration set stored locally in the in-vehicle device, and the corresponding controller is locally flashed; When the comparison is inconsistent, it is determined that the controller has been replaced, and a new controller configuration set is generated with the part number, network configuration word, and function configuration word of the replaced controller, and the replaced controller is locally flashed based on the new controller configuration set.

[0049] Here, it should be noted that after the in-vehicle device receives the configuration word update trigger information, it determines that the network communication with the cloud is abnormal. At this time, the in-vehicle device obtains the part number of the controller by querying the controller information database stored locally according to the controller name input by the user. The obtained controller part number is compared with the part number stored locally. If the comparison result is consistent, it means that the controller has not been replaced, and its configuration information can be found in the vehicle model configuration set stored locally. When the part numbers are compared and consistent, the in-vehicle device matches the corresponding controller configuration set according to the part number in the vehicle model configuration set stored locally. Then, the corresponding controller is locally flashed using the matched controller configuration set to complete the update of the configuration word. If the part number comparison is inconsistent, the in-vehicle device determines that the controller has been replaced. At this time, the in-vehicle device will collect information such as the part number, network configuration word, and function configuration word of the replaced controller, and combine these information to generate a new controller configuration set. Finally, the replaced controller is locally flashed based on the new controller configuration set to complete the update of the configuration word.

[0050] In some embodiments, when the in-vehicle device performs local refreshing on the controller, it makes redundant backups of the controller configuration set used to update the controller and the change records. When the network communication between the in-vehicle device and the cloud returns to normal, the redundant backup is uploaded to the cloud. The cloud compares whether the controller configuration set in the redundant backup is consistent with the controller configuration set stored in the cloud according to the change records. If they are consistent, the cloud automatically saves this redundant backup. If they are inconsistent, the cloud issues the controller configuration set stored in the cloud to the in-vehicle device to re-perform the flashing of the corresponding controller.

[0051] In the embodiments of the present invention, when the in-vehicle device performs a local flashing operation on the controller, it makes redundant backups of the controller configuration set used to update the controller and the relevant change records (such as update time, update reason, etc.). These backup information will be stored in the secure storage area of the in-vehicle device for subsequent synchronization and verification with the cloud. When the network communication between the in-vehicle device and the cloud returns to normal, the in-vehicle device will automatically upload the previously stored redundant backup to the cloud. After receiving the redundant backup uploaded by the in-vehicle device, the cloud compares the controller configuration set in the redundant backup with the controller configuration set stored in the cloud itself according to the change records in the backup. If the two are consistent, it means that the local flashing operation is consistent with the information stored in the cloud, and the cloud will automatically save this redundant backup. If the two are inconsistent, it means that the local flashing operation may have deviated or the configuration set in the cloud has been updated. The cloud will issue the controller configuration set stored in itself to the in-vehicle device and require the in-vehicle device to re-perform the flashing operation of the corresponding controller to ensure that the configuration information of the in-vehicle device and the cloud is consistent.

[0052] In the embodiments of the present invention, the PC side calculates the hash value as the original input. By calculating the hash value of the vehicle configuration word, a unique identifier of the vehicle configuration is generated, ensuring the uniqueness of the configuration data. When there is a change request, only the corresponding controller configuration set needs to be transmitted, without changing the entire vehicle, reducing the computational pressure. The in-vehicle unit processes the vehicle configuration-related data through edge computing, can respond to configuration changes in real time, and avoids relying on the cloud. When establishing local synchronization on the in-vehicle unit without relying on an external network, the vehicle configuration data can be updated in a timely manner and the latest configuration information can be saved in the in-vehicle computer; when there is no network access, a redundant backup is generated by the in-vehicle unit to save the detailed information of each updated configuration word, ensuring that the vehicle configuration data and change records will not be lost in any environment. When there is network access, the cloud performs the verification of the redundant backup, ensuring the consistency of the data between the cloud and the in-vehicle unit, and the vehicle configuration data can be verified and updated in a timely manner; the two-way data synchronization between the cloud and the in-vehicle unit enhances the adaptive ability of the vehicle, enabling the vehicle configuration data to perform configuration updates regardless of whether the network is accessed or not.

[0053] As Figure 1 shown, the embodiments of the present invention further provide a method for managing vehicle configuration words based on multi-terminal collaboration, including the following steps: S1: The in-vehicle unit receives the trigger information for updating the configuration word; S2: Determine whether the network communication with the cloud is normal; If yes, execute step S3; if no, execute step S5; S3: The in-vehicle unit generates a configuration word change instruction and forwards the configuration word change instruction to the cloud; S4: The cloud locks the controller that needs to change the configuration word based on the instruction, and downloads the corresponding controller configuration set from the vehicle type configuration set to perform remote flashing on the locked controller; S5: The in-vehicle unit obtains the vehicle type parameters to calculate the unique identifier of the vehicle type configuration word, compares the calculation result with the locally stored vehicle type configuration set. If they are consistent, the in-vehicle unit obtains the corresponding controller configuration set based on the configuration word change instruction for local flashing.

[0054] After the in-vehicle unit receives the information entered by the user on the in-vehicle unit for the controller to be updated and triggers the configuration update button, it immediately judges the network communication status. For the cellular network (4G / 5G), the in-vehicle unit can obtain the signal strength by querying the status information of the network module. If the signal strength is greater than or equal to 2 bars, it is considered that the network connection is basically normal; for the Wi-Fi network, the in-vehicle unit checks whether it has successfully connected to the authenticated dedicated hotspot and obtained a valid IP address.

[0055] The in-vehicle unit can also send a simple test data packet, such as a heartbeat packet, to the cloud and wait for the cloud's response. If a response is received within a specified time (e.g., 10 seconds), it is considered that the network communication is normal; otherwise, it is determined that the network communication is abnormal.

[0056] In some embodiments, the method further includes: S0: When the vehicle rolls off the production line, the PC terminal generates a controller configuration set for each controller according to the vehicle controller information; calculates the unique identifier of the vehicle configuration word based on the vehicle model parameters, and combines the unique identifier of the vehicle configuration word and all controller configuration sets to form a vehicle configuration set, which is stored in the in-vehicle unit and uploaded to the cloud at the same time. The specific working process is as Figure 2 shown.

[0057] In some embodiments, when the vehicle rolls off the production line, the PC terminal combines the vehicle model parameters into a string in a preset order, calculates a hash value for the string, and the hash value is the unique identifier of the vehicle configuration word; The PC terminal generates a controller configuration set for each controller by using the part number, network configuration word, and function configuration word of each controller.

[0058] In some embodiments, when the vehicle needs to update the configuration word, the user inputs the information of the controller to be updated on the in-vehicle unit and triggers the configuration update button. After the in-vehicle unit receives the configuration word update trigger information and determines that the network communication with the cloud is normal, it generates a configuration word change instruction by combining the unique identifier of the vehicle configuration word and the information input by the user, and sends it to the cloud.

[0059] The cloud parses the obtained instruction to obtain the unique identifier of the vehicle configuration word and the part number of the controller to be updated, looks up the corresponding vehicle configuration set based on the unique identifier of the vehicle configuration word, matches the controller configuration set according to the part number in the vehicle configuration set, and remotely writes the controller to be updated based on the matched controller configuration set.

[0060] After the in-vehicle unit receives the configuration word update trigger information and determines that the network communication with the cloud is abnormal, it obtains the part number of the controller according to the controller name input by the user; compares the obtained part number with the part number stored locally; When the comparison is consistent, it matches the controller configuration set according to the part number in the vehicle configuration set stored locally in the in-vehicle unit, and locally writes the corresponding controller; When the comparison is inconsistent, it is determined that the controller has been replaced, and a new controller configuration set is generated by using the part number, network configuration word, and function configuration word of the replaced controller, and the replaced controller is locally written based on the new controller configuration set.

[0061] In some embodiments, when the in-vehicle unit performs local refreshing on the controller, it makes redundant backups of the controller configuration set used to update the controller and the change records. After the network communication between the in-vehicle unit and the cloud resumes normal, the redundant backup is uploaded to the cloud. The cloud compares the controller configuration set in the redundant backup with the controller configuration set stored in the cloud according to the change records. If they are consistent, the cloud automatically saves this redundant backup. If they are inconsistent, the cloud issues the controller configuration set stored in the cloud to the in-vehicle unit to perform rewriting of the corresponding controller again.

[0062] In the embodiments of the present invention, the processing when the network communication is abnormal: The in-vehicle unit obtains the part number of the controller by querying the controller information database stored locally according to the controller name input by the user. Then, the obtained part number is compared with the part number stored locally.

[0063] Local rewriting when the part numbers are compared and are consistent: If the part numbers are compared and are consistent, the in-vehicle unit matches the corresponding controller configuration set according to the part number in the vehicle model configuration set stored locally. Then, through communication methods such as the CAN bus, the matched controller configuration set is sent to the corresponding controller to perform local rewriting on the controller.

[0064] Processing when the part numbers are compared and are inconsistent: If the part numbers are compared and are inconsistent, the in-vehicle unit determines that the controller has been replaced. The in-vehicle unit communicates with the new controller to obtain information such as its part number, network configuration word, and function configuration word, and generates a new controller configuration set. Then, the replaced controller is locally rewritten using the new controller configuration set.

[0065] After receiving the configuration word change instruction sent by the in-vehicle unit, the cloud server parses the instruction. The unique identifier of the vehicle model configuration word and the part number of the controller to be updated and other information in the instruction can be extracted using a JSON parsing library. The cloud server searches for the corresponding vehicle model configuration set in the database according to the extracted unique identifier of the vehicle model configuration word. Then, in this vehicle model configuration set, the corresponding controller configuration set is matched according to the part number of the controller to be updated. The cloud server communicates with the controller of the vehicle through the network, and sends the matched controller configuration set to the controller that needs to change the configuration word to perform remote rewriting on it.

[0066] When the in-vehicle unit performs local rewriting on the controller, it makes redundant backups of the controller configuration set used to update the controller and the relevant change records (such as update time, update reason, information input by the user, etc.). These information can be stored as a file and stored in the local storage device of the in-vehicle unit.

[0067] Uploading and comparison after network recovery: When the network communication between the in-vehicle unit and the cloud is restored to normal, the in-vehicle unit automatically uploads the redundant backup to the cloud server. The cloud server compares the controller configuration set in the redundant backup with the controller configuration set stored in itself according to the change record. If the two are consistent, the cloud server automatically saves this redundant backup and updates the relevant information in the database. If the two are inconsistent, the cloud server sends the controller configuration set stored in itself to the in-vehicle unit, and the in-vehicle unit re-flashes the corresponding controller after receiving it.

[0068] After flashing, make a redundant backup of the controller configuration unit and change record used in this update. The change record includes but is not limited to information such as vehicle model parameters, replaced controller names, and change dates. Upload to the cloud when the network establishes communication. The in-vehicle unit performs edge computing and updates, enabling the redundant backup to be generated in real time and kept up-to-date, thus ensuring the security and stability of the system.

Claims

1. A vehicle configuration word management system based on multi-terminal collaboration, characterized in that It includes a PC side, a vehicle head unit side, and a cloud side; the PC side is respectively communicatively connected to the vehicle head unit side and the cloud side, and the vehicle head unit side is communicatively connected to the cloud side; When the vehicle rolls off the production line, the PC side generates a controller configuration set for each controller according to the vehicle controller information, calculates the unique identifier of the vehicle configuration word based on the vehicle model parameters, combines the unique identifier of the vehicle configuration word and all the controller configuration sets to form a vehicle configuration set and stores it in the vehicle head unit side, and simultaneously uploads it to the cloud side; After the vehicle head unit side receives the configuration word update trigger information, it determines whether the network communication with the cloud side is normal; If so, the vehicle head unit side generates a configuration word change instruction and forwards the configuration word change instruction to the cloud side; The cloud side locks the controller whose configuration word needs to be changed based on the instruction, downloads the corresponding controller configuration set from the vehicle configuration set, and remotely rewrites the locked controller; If not, the vehicle head unit side obtains the vehicle model parameters to calculate the unique identifier of the vehicle configuration word, compares the calculation result with the vehicle configuration set stored locally, and if they match, obtains the corresponding controller configuration set based on the configuration word change instruction for local rewriting.

2. The vehicle configuration word management system based on multi-terminal collaboration according to claim 1, wherein When the vehicle rolls off the production line, the PC side combines the vehicle model parameters into a string in a preset order, performs a hash calculation on the string to obtain a hash value, and the hash value is the unique identifier of the vehicle configuration word; The PC side generates a controller configuration set for each controller based on the part number, network configuration word, and function configuration word of each controller.

3. The vehicle configuration word management system based on multi-terminal collaboration according to claim 2, characterized in that, When the vehicle needs to update the configuration word, the user inputs the information of the controller to be updated on the vehicle head unit side and triggers the configuration update button. After the vehicle head unit side receives the configuration word update trigger information and determines that the network communication with the cloud side is normal, it combines the unique identifier of the vehicle configuration word with the information input by the user to generate a configuration word change instruction and sends it to the cloud side.

4. The vehicle configuration word management system based on multi-terminal collaboration according to claim 3, wherein, The cloud side parses the obtained instruction to obtain the unique identifier of the vehicle configuration word and the part number of the controller to be updated, searches for the corresponding vehicle configuration set based on the unique identifier of the vehicle configuration word, matches the controller configuration set according to the part number in the vehicle configuration set, and remotely rewrites the controller to be updated based on the matched controller configuration set.

5. The vehicle configuration word management system based on multi-terminal collaboration according to claim 4, characterized in that After the vehicle head unit side receives the configuration word update trigger information and determines that the network communication with the cloud side is abnormal, it obtains the part number of the controller according to the controller name input by the user; compares the obtained part number with the part number stored locally; When they match, it matches the controller configuration set according to the part number in the vehicle configuration set stored locally in the vehicle head unit side, and locally rewrites the corresponding controller; When they do not match, it determines that the controller has been replaced, generates a new controller configuration set based on the part number, network configuration word, and function configuration word of the replaced controller, and locally rewrites the replaced controller based on the new controller configuration set.

6. The vehicle configuration word management system based on multi-terminal collaboration according to claim 5, wherein When the vehicle head unit side locally refreshes the controller, it makes a redundant backup of the controller configuration set used to update the controller and the change record; After the network communication between the vehicle head unit side and the cloud side resumes normal, it uploads the redundant backup to the cloud side; The cloud compares whether the controller configuration set in the redundant backup is consistent with the controller configuration set stored in the cloud according to the change record. If they are consistent, the cloud automatically saves this redundant backup. If not, it sends the controller configuration set stored in the cloud to the in-vehicle unit to reflash the corresponding controller.

7. A vehicle configuration word management method based on multi-terminal collaboration, characterized in that, It includes the following steps: After the in-vehicle unit receives the configuration word update trigger information, it determines whether the network communication with the cloud is normal; If so, the in-vehicle unit generates a configuration word change instruction and forwards the configuration word change instruction to the cloud; The cloud locks the controller that needs to change the configuration word based on the instruction, and downloads the corresponding controller configuration set in the vehicle type configuration set to remotely flash the locked controller; If not, the in-vehicle unit obtains the unique identifier of the vehicle type configuration word by calculating the vehicle type parameters, compares the calculation result with the vehicle type configuration set stored locally. If they are consistent, it obtains the corresponding controller configuration set based on the configuration word change instruction for local flashing.

8. The vehicle configuration word management method based on multi-terminal collaboration according to claim 7, characterized in that, This method further includes: When the vehicle rolls off the production line, the PC generates a controller configuration set for each controller according to the vehicle controller information; calculates the unique identifier of the vehicle type configuration word based on the vehicle type parameters, and combines the unique identifier of the vehicle type configuration word and all controller configuration sets to form a vehicle type configuration set, which is stored in the in-vehicle unit and uploaded to the cloud at the same time.

9. The vehicle configuration word management method based on multi-terminal collaboration according to claim 8, characterized in that, This method further includes: When the vehicle needs to update the configuration word, the user inputs the information of the controller to be updated at the in-vehicle unit and triggers the configuration update button. After the in-vehicle unit receives the configuration word update trigger information and determines that the network communication with the cloud is normal, it generates a configuration word change instruction by combining the unique identifier of the vehicle type configuration word and the information input by the user, and sends it to the cloud.

10. The vehicle configuration word management method based on multi-terminal collaboration according to claim 9, wherein, This method further includes: After the in-vehicle unit receives the configuration word update trigger information and determines that the network communication with the cloud is abnormal, it obtains the part number of the controller according to the controller name input by the user; compares the obtained part number with the part number stored locally; When they are consistent, it matches the controller configuration set according to the part number in the vehicle type configuration set stored locally at the in-vehicle unit, and locally flashes the corresponding controller; When they are not consistent, it determines that the controller has been replaced, generates a new controller configuration set with the part number, network configuration word and function configuration word of the replaced controller, and locally flashes the replaced controller based on the new controller configuration set.