Upgrading method based on domain control platform, domain control platform and storage medium

By using thread pool management and dynamic configuration for upgrades, the problem of uniformity in domain controller upgrade schemes is solved, enabling an efficient and automated upgrade process that adapts to diverse needs, reduces the risk of human error, and improves system flexibility and resource utilization efficiency.

CN119271240APending Publication Date: 2025-01-07HUIZHOU DESAY SV AUTOMOTIVE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411307068.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-19
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

Existing domain controller upgrade solutions lack uniformity and cannot adapt to the diverse upgrade needs of different customers, resulting in an inability to achieve an efficient and automated upgrade process, and there is a possibility of human error.

Method used

Upgrade tasks are managed using a thread pool. By obtaining upgrade configuration information and configuring the thread pool, combined with a pre-generated customized upgrade configuration table, peripheral drivers and caches are initialized, upgrade tasks are dynamically created, and the status of concurrent tasks is monitored in real time to ensure the flexibility and efficiency of the upgrade process.

Benefits of technology

It improves upgrade efficiency, reduces the possibility of human error, achieves high portability and reusability on different domain control platforms, adapts to diverse upgrade needs, optimizes resource utilization, and reduces the risk of system instability and upgrade failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271240A_ABST
    Figure CN119271240A_ABST
Patent Text Reader

Abstract

The invention provides an upgrading method based on a domain control platform, the domain control platform and a storage medium. The upgrading method comprises the steps of obtaining an upgrading thread pool based on a target peripheral and obtained upgrading configuration information of a target domain controller; then obtaining an upgrade data packet, and creating an upgrade task according to the upgrade data packet; and finally, operating the upgrading task in the upgrading thread pool to finish the upgrading work of the target domain controller. Multiple tasks can be concurrently processed through the thread pool, and the overall upgrading efficiency is improved; by obtaining the upgrading configuration information and configuring the thread pool, the method can adapt to different system environments and peripheral configurations, and the flexibility and adaptability of the upgrading process are improved; the upgrading method is automatically completed, so that the possibility of human errors is reduced; besides, the upgrading method has high portability and high reusability on different domain control platforms, the development efficiency and the integration efficiency are improved, and upgrading requirements of different clients can be met under the same upgrading process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of upgrade technology, and in particular to an upgrade method based on a domain control platform, a domain control platform and a storage medium. Background Art

[0002] With the continuous evolution and advancement of intelligent driving technology, more and more chip suppliers are beginning to compete in the domain controller SOC market.

[0003] The domain controller upgrade solutions provided by these suppliers vary. Some require the use of a specific upgrade SDK, while others only provide protocols and sample codes, leaving it up to the integrator to develop the upgrade program on their own.

[0004] At the same time, as the number of peripherals integrated in domain controllers increases, the upgrade requirements and standards of different customers on the same platform for peripherals are also becoming more diverse.

[0005] For example, different car manufacturers may have different requirements for upgrading switch devices, such as upgrading a single switch alone, upgrading two switches at the same time, or upgrading the SOC and MCU in sequence or at the same time. In addition, it is also possible to upgrade a single partition according to version changes.

[0006] Therefore, upgrade services must be customized according to the specific needs of each customer, which makes it impossible to achieve a unified upgrade design solution. Summary of the invention

[0007] In order to solve the above technical problems, the present application provides an upgrade method, a domain control platform and a storage medium based on a domain control platform that are highly portable and reusable and can simultaneously meet different upgrade requirements.

[0008] Specifically, the present application provides an upgrade method based on a domain control platform, comprising the following steps: The upgrade configuration information of the target domain controller is obtained to obtain an upgrade thread pool based on the target peripheral device and the upgrade configuration information.

[0009] An upgrade data package is obtained, and an upgrade task is created according to the upgrade data package.

[0010] And, the upgrade task is placed in the upgrade thread pool to run, so as to complete the upgrade work of the target domain controller.

[0011] In the above technical solution, a thread pool is used to manage upgrade tasks, which can process multiple tasks concurrently, reduce the time required for upgrade tasks, and improve the overall upgrade efficiency; by obtaining upgrade configuration information and configuring the thread pool, it can adapt to different system environments and peripheral configurations, and improve the flexibility and adaptability of the upgrade process; the above upgrade method is completed automatically, reducing the need for manual intervention and the possibility of human error.

[0012] In addition, the upgrade method is highly portable and reusable on different domain control platforms, which improves development efficiency and integration efficiency, and can meet the upgrade requirements of different customers under the same upgrade process.

[0013] Furthermore, before obtaining the upgrade configuration information of the target domain controller, the following steps are included: Customized information is acquired in advance, and an upgrade configuration table is generated according to the customized information.

[0014] In the above technical solution, pre-generating and applying a customized upgrade configuration table helps to more efficiently process tasks and resources during the upgrade process, shorten the upgrade time and reduce unnecessary configuration adjustments.

[0015] Furthermore, the obtaining of the upgrade thread pool specifically includes: The upgrade configuration information of the target domain controller is acquired based on the upgrade configuration table; wherein the upgrade configuration information at least includes peripheral configuration information and upgrade requirements.

[0016] Initialize the corresponding peripheral driver according to the configuration information of each peripheral.

[0017] And obtain the upgrade thread pool corresponding to each peripheral driver according to the upgrade requirement.

[0018] In the above technical solution, the upgrade configuration information of the target domain controller is obtained based on a customized upgrade configuration table, ensuring that the configuration information required during the upgrade process is accurate and targeted at specific needs, effectively reducing problems caused by configuration errors; initializing the corresponding peripheral drivers according to the peripheral configuration information ensures that all hardware devices can work normally during the upgrade process, thus avoiding upgrade failures or system instability caused by driver problems; obtaining the corresponding upgrade thread pool according to the specific needs of each peripheral driver can reasonably allocate resources according to the upgrade needs of different devices, thereby improving the processing efficiency and concurrency of upgrade tasks.

[0019] Furthermore, after the upgrade thread pool is acquired, the method further includes: configuring a cache area corresponding to each upgrade thread pool according to the peripheral configuration information.

[0020] In the above technical solution, configuring the cache area can effectively reduce the frequent read and write operations during the upgrade process, thereby improving the processing performance and response speed of the upgrade task, especially when processing large amounts of data; by configuring a dedicated cache area for each upgrade thread pool, the delay caused by data transmission and processing can be reduced, ensuring that the upgrade process is smoother and more efficient; the cache area configured according to the peripheral configuration information can better match the needs of each peripheral driver, thereby optimizing the use of system resources and avoiding resource bottlenecks or waste; configuring a dedicated cache area can support concurrent processing of more upgrade tasks, avoid competition and conflicts caused by shared cache areas, and improve the overall processing capability of the system.

[0021] In addition, independent cache areas make the system easier to debug and maintain, because the status and performance of each cache area can be monitored and managed separately, making it easier to troubleshoot and solve problems. The cache area configured according to peripheral configuration information can be dynamically adjusted according to actual needs to adapt to different load conditions and upgrade tasks, thereby improving the system's adaptability.

[0022] Furthermore, the creating the upgrade task specifically includes: in response to the upgrade request, obtaining an upgrade data packet, and obtaining a corresponding peripheral driver and an upgrade model according to the upgrade data packet, so as to create the upgrade task based on the peripheral driver and the upgrade model.

[0023] In the above technical solution, the appropriate peripheral driver and upgrade model are selected according to the specific upgrade data packet obtained by the upgrade request, so that the system can dynamically create tasks according to different peripherals and upgrade requirements, thereby improving the adaptability and flexibility of the system; creating tasks according to the peripheral driver and upgrade model can more effectively allocate system resources, avoid resource waste or uneven resource usage due to task mismatch.

[0024] Furthermore, in the process of placing the upgrade task in the upgrade thread pool for execution, it also includes: monitoring the upgrade task at preset intervals to obtain task information, upgrade progress and upgrade status of the upgrade task and synchronously update them to the cache area.

[0025] In the above technical solution, regular monitoring of upgrade tasks can obtain the latest status and progress of the tasks in real time, ensuring that the system can timely understand various indicators in the upgrade process, which helps to discover and solve problems early; the status and progress information of the upgrade tasks are synchronously updated to the cache area, so that the system or administrator can obtain accurate feedback in time, which helps to make quick response and adjustments to the upgrade process.

[0026] Furthermore, the monitoring of the upgrade task also includes: when it is monitored that the upgrade progress is a preset progress threshold, closing the upgrade thread pool and determining that the target domain controller has completed the upgrade work; and when it is monitored that the upgrade status is an abnormal state, reporting the task information and upgrade status to the upgrade request end.

[0027] In the above technical solution, when the upgrade progress reaches a preset threshold, the upgrade thread pool is automatically closed and the upgrade is determined to be completed, which helps to ensure that the completion of the upgrade task is accurately confirmed, avoiding misjudgment caused by the thread pool still running, and at the same time can release system resources in time to avoid waste of resources; when an abnormal state is detected, the task information and upgrade status are reported to the upgrade request end, which helps to notify relevant personnel or systems in time so that corrective measures or troubleshooting can be taken quickly.

[0028] Based on the same concept, the present application also provides a domain control platform, which at least includes: The acquisition module is used to acquire the upgrade configuration information of the target domain controller, so as to acquire the upgrade thread pool based on the target peripheral device and the upgrade configuration information.

[0029] The creation module is used to obtain an upgrade data package and create an upgrade task according to the upgrade data package.

[0030] And an upgrade module, which is used to place the upgrade task in the upgrade thread pool to run, so as to complete the upgrade work of the target domain controller.

[0031] In the above technical solution, multiple upgrade tasks can be processed concurrently, and the thread pool settings can be optimized according to different upgrade configuration information to reasonably allocate system resources and avoid resource waste. At the same time, the entire upgrade process is completed automatically, reducing the risk of errors caused by manual intervention.

[0032] Furthermore, the domain control platform also includes: A monitoring module is used to monitor the upgrade task at preset time intervals to obtain the task information, upgrade progress and upgrade status of the upgrade task; it is also used to close the upgrade thread pool and determine that the target domain controller has completed the upgrade work when the upgrade progress is monitored to be a preset progress threshold; and it is also used to report the task information and upgrade status to the upgrade request end when the upgrade status is monitored to be an abnormal state.

[0033] In the above technical solution, through real-time monitoring and corresponding processing based on the monitoring results, system resources can be released in time, or error information can be reported to further optimize the domain control platform.

[0034] Based on the same concept, the present application also provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the domain control platform-based upgrade method when running.

[0035] Compared with the prior art, the beneficial effects of this application are: This application first obtains the upgrade configuration information of the target domain controller to obtain the upgrade thread pool based on the target peripheral and the upgrade configuration information; then obtains the upgrade data packet and creates an upgrade task according to the upgrade data packet; finally, the upgrade task is placed in the upgrade thread pool to run to complete the upgrade of the target domain controller.

[0036] This application uses a thread pool to manage upgrade tasks, which can process multiple tasks concurrently and improve the overall upgrade efficiency; by obtaining upgrade configuration information and configuring the thread pool, it can adapt to different system environments and peripheral configurations, and improve the flexibility and adaptability of the upgrade process; the above upgrade method is completed automatically, reducing the possibility of human error; in addition, the upgrade method is highly portable and reusable on different domain control platforms, which improves development efficiency and integration efficiency, and can achieve the upgrade needs of different customers under the same upgrade process. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flow chart of the upgrade method based on the domain control platform described in this application.

[0038] Figure 2 This is a framework diagram of the domain control platform described in this application. DETAILED DESCRIPTION

[0039] The following is a further detailed description of an upgrade method based on a domain control platform, a domain control platform and a storage medium of the present application in conjunction with specific embodiments and drawings.

[0040] See also Figure 1 The present application embodiment provides an upgrade method based on a domain control platform, comprising the following steps: The upgrade configuration information of the target domain controller is obtained to obtain an upgrade thread pool based on the target peripheral device and the upgrade configuration information.

[0041] Furthermore, before obtaining the upgrade configuration information of the target domain controller, the following steps are included: Customized information is acquired in advance, and an upgrade configuration table is generated according to the customized information.

[0042] In some embodiments, different customers on the same platform have diverse upgrade requirements and standards for peripherals, and different customers have different upgrade requirements; in order to simplify the upgrade process and ensure accurate configuration according to the needs of each customer, customized information can be managed through a JSON configuration file to achieve dynamic loading and automated upgrade configuration.

[0043] Optionally, necessary customization information, such as the IP address, port number, chip model, peripheral driver, and upgrade requirements of each target peripheral, is integrated into an upgrade configuration table, and then the upgrade configuration table is stored in the domain control platform in JSON format, thereby generating a JSON configuration file.

[0044] Among them, JSON (JavaScript Object Notation) is a lightweight data exchange format that is easy for humans to read and write, and easy for machines to parse and generate. It has the advantages of being structured and extensible.

[0045] In other embodiments, the upgrade configuration table may also be stored in XML format or other file formats. Those skilled in the art may select a suitable data storage format according to actual application requirements, which is not limited herein.

[0046] In addition, it should be noted that the upgrade configuration table is updated in real time according to the update of customized information, thereby meeting the real-time changing upgrade requirements and improving the flexibility and responsiveness of the system.

[0047] In the above technical solution, pre-generating and applying a customized upgrade configuration table helps to more efficiently process tasks and resources during the upgrade process, shorten the upgrade time and reduce unnecessary configuration adjustments.

[0048] Furthermore, the obtaining of the upgrade thread pool specifically includes: The upgrade configuration information of the target domain controller is acquired based on the upgrade configuration table; wherein the upgrade configuration information at least includes peripheral configuration information and upgrade requirements.

[0049] Initialize the corresponding peripheral driver according to the configuration information of each peripheral.

[0050] And obtain the upgrade thread pool corresponding to each peripheral driver according to the upgrade requirement.

[0051] In some embodiments, the peripheral configuration information includes at least an IP address, a port number, a chip model, and a peripheral driver, and the upgrade requirements include peripherals that need to be upgraded, upgrade priorities, and a required time window.

[0052] Optionally, after obtaining the above peripheral configuration information and upgrade requirements through the JSON configuration file, the peripherals that need to be upgraded are determined as target peripherals, and the corresponding peripheral drivers are loaded for each target peripheral; then the upgrade requirements of the target domain controller are obtained to confirm how many target peripherals can be upgraded in parallel at the same time, and then an upgrade thread pool of corresponding size is created.

[0053] Optionally, the peripheral driver is a software package, an installation package, or a driver that comes with the system, etc.

[0054] In addition, in the above configuration, the upgrade thread pool will usually make corresponding configuration adjustments based on the update of the upgrade configuration table, such as adding a new thread pool to handle newly added peripherals, or rearranging the existing thread pool to adapt to the new upgrade priority.

[0055] It should be noted that the upgrade thread pool is a resource pool for managing and reusing threads, which can be considered as a container that maintains a group of threads. These threads are reused in the pool to execute tasks, such as the upgrade tasks described later. New threads are not created every time a task is executed.

[0056] In the above technical solution, the upgrade configuration information of the target domain controller is obtained based on a customized upgrade configuration table, ensuring that the configuration information required during the upgrade process is accurate and targeted at specific needs, effectively reducing problems caused by configuration errors; initializing the corresponding peripheral drivers according to the peripheral configuration information ensures that all hardware devices can work normally during the upgrade process, thus avoiding upgrade failures or system instability caused by driver problems; obtaining the corresponding upgrade thread pool according to the specific needs of each peripheral driver can reasonably allocate resources according to the upgrade needs of different devices, thereby improving the processing efficiency and concurrency of upgrade tasks.

[0057] Furthermore, after the upgrade thread pool is acquired, the method further includes: configuring a cache area corresponding to each upgrade thread pool according to the peripheral configuration information.

[0058] In some embodiments, peripheral configuration information is obtained from the upgrade configuration table, which includes the chip model, peripheral driver, etc. of each peripheral; for each type of peripheral or each peripheral, the system needs to configure a corresponding upgrade thread pool, and each upgrade thread pool requires an independent cache area to store intermediate data, upgrade status, etc. during the processing process.

[0059] Furthermore, the size, type and management strategy of the buffer area of ​​each upgrade thread pool are determined according to the peripheral device. For example, a peripheral device that processes a large amount of data requires a larger buffer area.

[0060] The cache management strategy, such as cache cleanup strategy, cache expiration time, data elimination mechanism, etc., helps the system to effectively utilize cache resources and avoid resource waste.

[0061] In the above technical solution, configuring the cache area can effectively reduce the frequent read and write operations during the upgrade process, thereby improving the processing performance and response speed of the upgrade task, especially when processing large amounts of data; by configuring a dedicated cache area for each upgrade thread pool, the delay caused by data transmission and processing can be reduced, ensuring that the upgrade process is smoother and more efficient; the cache area configured according to the peripheral configuration information can better match the needs of each peripheral driver, thereby optimizing the use of system resources and avoiding resource bottlenecks or waste; configuring a dedicated cache area can support concurrent processing of more upgrade tasks, avoid competition and conflicts caused by shared cache areas, and improve the overall processing capability of the system.

[0062] In addition, independent cache areas make the system easier to debug and maintain, because the status and performance of each cache area can be monitored and managed separately, making it easier to troubleshoot and solve problems. The cache area configured according to peripheral configuration information can be dynamically adjusted according to actual needs to adapt to different load conditions and upgrade tasks, thereby improving the system's adaptability.

[0063] Furthermore, it should be noted that all the above steps are pre-initialization processes for the upgrade service process of the domain control platform.

[0064] After obtaining the corresponding upgrade thread pool, you can proceed to create the upgrade task. Specifically: An upgrade data package is obtained, and an upgrade task is created according to the upgrade data package.

[0065] Furthermore, the creating the upgrade task specifically includes: in response to the upgrade request, obtaining an upgrade data packet, and obtaining a corresponding peripheral driver and an upgrade model according to the upgrade data packet, so as to create the upgrade task based on the peripheral driver and the upgrade model.

[0066] In some embodiments, the upgrade service process of the domain control platform receives an upgrade request from an upper-layer application, and receives an upgrade data packet sent by the upper-layer application.

[0067] The upgrade request may come from a user or an automatically triggered upgrade event, and the upgrade event is sent to the upgrade service process through an upper layer application; the upgrade request at least includes peripheral information, priority, time requirement, etc.

[0068] Optionally, the upgrade data package at least includes an upgrade data package path and an upgrade type, etc.

[0069] Furthermore, the peripheral device driver and the upgrade model to be adopted are determined according to the upgrade data packet, and the upgrade model defines how to apply the peripheral device driver for updating, including upgrade steps, parameters and conditions.

[0070] Further, one or more upgrade tasks are created based on the extracted peripheral driver and upgrade model, and these tasks are assigned to the thread pool.

[0071] In the above technical solution, the appropriate peripheral driver and upgrade model are selected according to the specific upgrade data packet obtained by the upgrade request, so that the system can dynamically create tasks according to different peripherals and upgrade requirements, thereby improving the adaptability and flexibility of the system; creating tasks according to the peripheral driver and upgrade model can more effectively allocate system resources, avoid resource waste or uneven resource usage due to task mismatch.

[0072] After creating the upgrade task, you can proceed to run the upgrade task. Specifically: The upgrade task is placed in the upgrade thread pool to run to complete the upgrade of the target domain controller.

[0073] In some embodiments, the created upgrade tasks are submitted to the upgrade thread pool, and the thread pool arranges threads to concurrently execute these tasks according to the priorities and resource requirements of the upgrade tasks.

[0074] Furthermore, in the process of placing the upgrade task in the upgrade thread pool for execution, it also includes: monitoring the upgrade task at preset intervals to obtain task information, upgrade progress and upgrade status of the upgrade task and synchronously update them to the cache area.

[0075] In some embodiments, the preset time is, for example, 1 second, and those skilled in the art may set it according to actual application requirements and is not limited thereto.

[0076] Optionally, the task information includes at least a task ID, a peripheral type, etc.; the upgrade progress may be expressed as a percentage, such as 50% indicating that half of the upgrade task has been completed; the upgrade status may be in progress, completed, or abnormal, etc.

[0077] In the above technical solution, regular monitoring of upgrade tasks can obtain the latest status and progress of the tasks in real time, ensuring that the system can timely understand various indicators in the upgrade process, which helps to discover and solve problems early; the status and progress information of the upgrade tasks are synchronously updated to the cache area, so that the system or administrator can obtain accurate feedback in time, which helps to make quick response and adjustments to the upgrade process.

[0078] Furthermore, the monitoring of the upgrade task also includes: when it is monitored that the upgrade progress is a preset progress threshold, closing the upgrade thread pool and determining that the target domain controller has completed the upgrade work; and when it is monitored that the upgrade status is an abnormal state, reporting the task information and upgrade status to the upgrade request end.

[0079] In some embodiments, a preset progress threshold is set, such as 100%. When the progress of the upgrade task reaches or exceeds the preset progress threshold, the upgrade thread pool can be closed to stop all processes in the upgrade thread pool, release related resources, and mark the upgrade task as completed. At the same time, the completed upgrade status can also be fed back to the upgrade request end to inform the user.

[0080] In other embodiments, if the upgrade status is found to be abnormal, it is fed back to the upgrade request end through the network or other communication methods to further process and diagnose the abnormal problem.

[0081] For example, when an abnormal state is obtained, the current task information is collected and reported to the upgrade request end, such as the upper-layer application, through an API request or email.

[0082] In the above technical solution, when the upgrade progress reaches a preset threshold, the upgrade thread pool is automatically closed and the upgrade is determined to be completed, which helps to ensure that the completion of the upgrade task is accurately confirmed, avoiding misjudgment caused by the thread pool still running, and at the same time can release system resources in time to avoid waste of resources; when an abnormal state is detected, the task information and upgrade status are reported to the upgrade request end, which helps to notify relevant personnel or systems in time so that corrective measures or troubleshooting can be taken quickly.

[0083] For further information, see Figure 2 The present application also provides a domain control platform, which at least includes: The acquisition module is used to acquire the upgrade configuration information of the target domain controller, so as to acquire the upgrade thread pool based on the target peripheral device and the upgrade configuration information.

[0084] In some embodiments, the acquisition module first acquires customized information, then generates an upgrade configuration table based on the customized information, and further acquires upgrade configuration information of the target domain controller based on the upgrade configuration table; wherein the upgrade configuration information includes at least peripheral configuration information and upgrade requirements.

[0085] Furthermore, the corresponding peripheral device driver is initialized according to the configuration information of each peripheral device, and the upgrade thread pool corresponding to each peripheral device driver is obtained according to the upgrade requirement.

[0086] At the same time, it is also necessary to configure the cache area corresponding to each upgrade thread pool according to the peripheral configuration information.

[0087] The creation module is used to obtain an upgrade data package and create an upgrade task according to the upgrade data package.

[0088] In some embodiments, the creation module obtains an upgrade data packet in response to the upgrade request, and obtains a corresponding peripheral driver and an upgrade model according to the upgrade data packet to create an upgrade task based on the peripheral driver and the upgrade model.

[0089] And an upgrade module, which is used to place the upgrade task in the upgrade thread pool to run, so as to complete the upgrade work of the target domain controller.

[0090] In the above technical solution, multiple upgrade tasks can be processed concurrently, and the thread pool settings can be optimized according to different upgrade configuration information to reasonably allocate system resources and avoid resource waste. At the same time, the entire upgrade process is completed automatically, reducing the risk of errors caused by manual intervention.

[0091] Furthermore, the domain control platform also includes: A monitoring module is used to monitor the upgrade task at preset time intervals to obtain the task information, upgrade progress and upgrade status of the upgrade task; it is also used to close the upgrade thread pool and determine that the target domain controller has completed the upgrade work when the upgrade progress is monitored to be a preset progress threshold; and it is also used to report the task information and upgrade status to the upgrade request end when the upgrade status is monitored to be an abnormal state.

[0092] In the above technical solution, through real-time monitoring and corresponding processing based on the monitoring results, system resources can be released in time, or error information can be reported to further optimize the domain control platform.

[0093] Furthermore, the present application also provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the domain control platform-based upgrade method when running.

[0094] In some embodiments, the storage medium stores several computer programs for enabling the domain control platform to execute all or part of the steps of the methods described in various embodiments of the present application.

[0095] The storage medium may include a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and other media that can store program codes.

[0096] In summary, the present application provides an upgrade method, a domain control platform and a storage medium based on a domain control platform; first, the upgrade configuration information of the target domain control is obtained to obtain an upgrade thread pool based on the target peripherals and the upgrade configuration information; then the upgrade data packet is obtained, and an upgrade task is created according to the upgrade data packet; finally, the upgrade task is placed in the upgrade thread pool to run to complete the upgrade of the target domain control. The present application uses a thread pool to manage upgrade tasks, which can process multiple tasks concurrently and improve the overall upgrade efficiency; by obtaining upgrade configuration information and configuring the thread pool, it can adapt to different system environments and peripheral configurations, and improve the flexibility and adaptability of the upgrade process; the above upgrade method is completed automatically, reducing the possibility of human error; in addition, the upgrade method has high portability and high reusability on different domain control platforms, which improves development efficiency and integration efficiency, and can achieve the upgrade needs of different customers under the same upgrade process.

[0097] Although example embodiments have been described herein with reference to the accompanying drawings, it should be understood that the above example embodiments are merely exemplary and are not intended to limit the scope of the present application to this. Those of ordinary skill in the art may make various changes and modifications therein without departing from the scope and spirit of the present application. All these changes and modifications are intended to be included within the scope of the present application as required by the appended claims.

[0098] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0099] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0100] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some modules according to the embodiments of the present application. The application can also be implemented as a device program (e.g., computer program and computer program product) for executing a part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0101] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0102] Although the description of the present application is carried out in conjunction with the above specific embodiments, it is obvious that those skilled in the art can make many substitutions, modifications and changes based on the above content. Therefore, all such substitutions, improvements and changes are included in the spirit and scope of the appended claims.

Claims

1. An upgrade method based on a domain control platform, characterized in that: The following steps are involved: Obtain upgrade configuration information of the target domain controller to obtain an upgrade thread pool based on the target peripheral device and the upgrade configuration information; Obtain an upgrade data package, and create an upgrade task according to the upgrade data package; as well as The upgrade task is placed in the upgrade thread pool to run to complete the upgrade of the target domain controller.

2. The upgrade method based on the domain control platform according to claim 1, characterized in that: Before obtaining the upgrade configuration information of the target domain controller, include: Customized information is acquired in advance, and an upgrade configuration table is generated according to the customized information.

3. The upgrade method based on the domain control platform according to claim 2 is characterized in that: The obtaining and upgrading thread pool specifically includes: Acquire upgrade configuration information of the target domain controller based on the upgrade configuration table; wherein the upgrade configuration information at least includes peripheral configuration information and upgrade requirements; Initialize the corresponding peripheral driver according to each peripheral configuration information; and According to the upgrade requirements, an upgrade thread pool corresponding to each peripheral driver is obtained.

4. The upgrade method based on the domain control platform according to claim 3 is characterized in that: After obtaining the upgrade thread pool, it also includes: The cache area corresponding to each upgrade thread pool is configured according to the peripheral configuration information.

5. The upgrade method based on the domain control platform according to claim 4 is characterized in that: The creation of the upgrade task specifically includes: In response to the upgrade request, an upgrade data packet is acquired, and a corresponding peripheral device driver and an upgrade model are acquired according to the upgrade data packet, so as to create an upgrade task based on the peripheral device driver and the upgrade model.

6. The upgrade method based on the domain control platform according to claim 5, characterized in that: The process of placing the upgrade task in the upgrade thread pool for execution also includes: The upgrade task is monitored at preset intervals to obtain task information, upgrade progress and upgrade status of the upgrade task and update them to the cache area synchronously.

7. The upgrade method based on the domain control platform according to claim 6, characterized in that: The monitoring of the upgrade task further includes: When the upgrade progress is detected to be a preset progress threshold, the upgrade thread pool is closed, and it is determined that the target domain controller has completed the upgrade work; And when it is detected that the upgrade status is abnormal, the task information and the upgrade status are reported to the upgrade request end.

8. A domain control platform using the domain control platform-based upgrade method according to any one of claims 1 to 7, characterized in that: The domain control platform at least includes: An acquisition module, used to acquire upgrade configuration information of a target domain controller, so as to acquire an upgrade thread pool based on a target peripheral and the upgrade configuration information; a creation module, used to obtain an upgrade data package and create an upgrade task according to the upgrade data package; and The upgrade module is used to place the upgrade task in the upgrade thread pool to run, so as to complete the upgrade work of the target domain controller.

9. The domain control platform according to claim 8, characterized in that: The domain control platform also includes: A monitoring module, used to monitor the upgrade task at preset intervals to obtain task information, upgrade progress and upgrade status of the upgrade task; It is also used to close the upgrade thread pool and determine that the target domain controller has completed the upgrade work when the upgrade progress is monitored to be a preset progress threshold; And it is also used to report the task information and the upgrade status to the upgrade request end when it is monitored that the upgrade status is an abnormal state.

10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the domain control platform-based upgrade method according to any one of claims 1 to 7 when running.