A microcontroller unit upgrade method, device, intelligent device and storage medium

By sending attribute information of the microcontroller unit to the server in the smart device, receiving and confirming the target upgrade notification, and obtaining and sending upgrade packages from the server, the problem of inefficient upgrade efficiency of microcontroller unit in the smart device is solved, and more efficient Upgrade process.

CN115396470BActive Publication Date: 2025-02-14TCL AIR CONDITIONER ZHONGSHAN CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210987433.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-17
Publication Date
2025-02-14
Estimated Expiration
2042-08-17

AI Technical Summary

Technical Problem

In smart devices, during the upgrade process of multiple microcontroller units, not all microcontroller units can directly establish communication links with the Internet of Things module, resulting in inefficient upgrade efficiency, especially in the impact of external environment, resulting in damage to the upgrade package. When , you need to download the upgrade package from the server multiple times.

Method used

By sending attribute information of multiple microcontroller units on the smart device to the server, receiving the target upgrade notification of the target microcontroller unit, and after confirming that the notification is qualified, the target upgrade packet is obtained and sent from the server to the target microcontroller unit for upgrading.

Benefits of technology

It improves the upgrade efficiency of the microcontroller unit, avoids the repeated download of unqualified upgrade packages by smart devices, reduces storage redundancy, and improves the efficiency of the overall upgrade process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115396470B_ABST
    Figure CN115396470B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a microcontroller unit upgrade method, device, smart device and storage medium. The smart device of the embodiment of the present application can send attribute information of multiple microcontroller units on the smart device to a server; receive a target upgrade notification of a target microcontroller unit returned by the server based on the attribute information of multiple microcontroller units; send the target upgrade notification to the target microcontroller unit through a mother microcontroller unit; when the candidate attribute information in the target upgrade notification matches the attribute information of the target microcontroller unit, send qualified information of the target upgrade notification to the mother microcontroller unit; obtain a target upgrade package from the server based on the received qualified information through the mother microcontroller unit, and send the target upgrade package to the target microcontroller unit to upgrade the target microcontroller unit. The problem of low efficiency in upgrading the microcontroller unit is solved, and the efficiency of upgrading the microcontroller unit is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software upgrade, and in particular to a microcontroller unit upgrade method, apparatus, intelligent device and storage medium. Background Art

[0002] The upgrade process of traditional household appliances generally allows the microcontroller unit (MCU) of smart devices to download upgrade packages from the server through communication with the Internet of Things module to achieve remote upgrade. However, complex smart devices usually contain multiple MCU processors to perform work together. When multiple MCUs have upgrade requests, not all MCUs can directly establish a communication link with the Internet of Things module to download the upgrade package from the server to perform the upgrade. Therefore, some need to establish a communication link between the mother MCU among multiple MCUs and the Internet of Things module to download the upgrade package from the server.

[0003] In the prior art, when upgrading a plurality of microcontrol units consisting of a mother microcontrol unit and a plurality of sub-microcontrol units, the mother microcontrol unit will obtain the upgrade packages of all the microcontrol units to be upgraded from the server, back them up in the mother microcontrol unit, and then transmit them one by one to the microcontrol units to be upgraded. In this way, when the upgrade package is damaged due to external environmental influences, it is necessary to download the upgrade package from the server again through the mother microcontrol unit for upgrading. When this is applied in a multi-layer communication network, if the upgrade package is damaged, it is necessary to repeatedly download and cache the upgrade package from the server. Such repeated downloading of the upgrade package will result in low upgrade efficiency of the microcontrol units in the smart device. Summary of the invention

[0004] The embodiments of the present application provide a micro control unit upgrade method, apparatus, smart device and storage medium, which can improve the upgrade efficiency of the micro control unit of the smart device.

[0005] To solve the above technical problems, the present application provides the following technical solutions:

[0006] The present application provides a method for upgrading a microcontroller unit, comprising:

[0007] Sending attribute information of multiple micro control units on the smart device to the server, wherein the multiple micro control units include a main micro control unit and at least one level of sub-micro control units;

[0008] Receiving a target upgrade notification of a target micro control unit returned by the server based on the attribute information of the plurality of micro control units, the target micro control unit being determined according to the attribute information of the plurality of micro control units and reference attribute information in the server;

[0009] Sending the target upgrade notification to the target micro control unit through the mother micro control unit;

[0010] When the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit, sending the qualified information of the target upgrade notification to the mother micro control unit;

[0011] The mother micro control unit obtains a target upgrade package from the server based on the received qualified information, and sends the target upgrade package to the target micro control unit to upgrade the target micro control unit.

[0012] In one embodiment, obtaining the target upgrade package from the server includes:

[0013] Sending a target upgrade package acquisition request of the target micro control unit to the server;

[0014] Receive the target upgrade package returned by the server based on the target upgrade package acquisition request.

[0015] In one embodiment, the attribute information of the target micro control unit includes a target software version, a target partition information, and a target hardware version, and the target upgrade notification includes candidate attribute information of the target micro control unit, and the candidate attribute information includes a candidate software version, a candidate partition information, and a candidate hardware version.

[0016] When the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit, before sending the qualified information of the target upgrade notification to the mother micro control unit, the method includes:

[0017] Acquire candidate software versions, candidate partition information, and candidate hardware versions in the candidate attribute information, and acquire target software version, target partition information, and target hardware version of the target micro control unit;

[0018] If the candidate software version is different from the target software, and the candidate partition information is the same as the target partition information, and the candidate hardware version is the same as the target hardware version, it is determined that the candidate attribute information matches the attribute information of the target micro control unit.

[0019] In one embodiment, the sending of the target upgrade notification to the target micro control unit by the mother micro control unit includes:

[0020] Acquire the partition information of the target micro control unit according to the target upgrade notification;

[0021] Determine the target position of the target micro control unit according to the partition information;

[0022] A target upgrade notification is sent to the target micro control unit according to the target position.

[0023] In one embodiment, sending a target upgrade notification to the target micro-control unit according to the target position includes:

[0024] Determine a communication link between the target micro-control unit and the mother micro-control unit according to the target position, wherein the communication link is a transmission route formed by at least one level of sub-micro-control units from the position corresponding to the mother micro-control unit to the target position;

[0025] The target upgrade notification is sent to the target micro control unit via the communication link.

[0026] In one embodiment, sending the target upgrade notification to the target micro control unit through the communication link includes:

[0027] Acquire at least one level of sub-micro control unit in the communication link;

[0028] Sending the target upgrade notification to the at least one level of sub-micro control unit;

[0029] Performing protocol conversion on the target upgrade notification by the at least one level of sub-micro control unit to obtain a target upgrade notification of a target protocol, wherein the target protocol is a protocol corresponding to the target micro control unit;

[0030] A target upgrade notification of the target protocol is sent to the target micro control unit.

[0031] In one embodiment, the method is applied to a server, comprising:

[0032] Receiving attribute information of multiple micro control units sent by the smart device;

[0033] Acquire a reference micro control unit upgrade package and reference attribute information corresponding to the reference micro control unit upgrade package;

[0034] Determining a target micro-control unit according to the reference attribute information and the attribute information of the plurality of micro-control units, wherein the target micro-control unit is a micro-control unit among the plurality of micro-control units whose attribute information matches the reference attribute information;

[0035] Generate a target upgrade notification of the target micro control unit according to the reference attribute information corresponding to the target micro control unit, and send the target upgrade notification to the smart device;

[0036] When receiving the target upgrade package acquisition request sent by the smart device based on the target upgrade notification, the target upgrade package corresponding to the target micro control unit is sent to the smart device, so that the smart device can upgrade the target micro control unit.

[0037] In one embodiment, the attribute information of the plurality of micro control units includes software versions, partition information, and hardware versions of the plurality of micro control units, the reference attribute information includes reference software version, reference partition information, and reference hardware version, the plurality of micro control units include a parent micro control unit and at least one level of child micro control units, and determining a target micro control unit according to the reference attribute information and the attribute information of the plurality of micro control units includes:

[0038] Acquire a reference software version, reference partition information, and reference hardware version in the reference attribute information, and a software version, partition information, and hardware version in the attribute information of the plurality of micro control units;

[0039] If the reference software version is different from the software version, and the reference partition information is the same as the partition information, and the reference hardware version is the same as the hardware version, then determining that the reference attribute information matches the attribute information;

[0040] A micro control unit whose attribute information matches the reference attribute information among the plurality of micro control units is set as a target micro control unit.

[0041] According to one aspect of the present application, a micro control unit upgrade device is also provided, comprising:

[0042] A first sending module, used to send attribute information of multiple micro control units on the smart device to the server, wherein the multiple micro control units include a main micro control unit and at least one level of sub micro control units;

[0043] A receiving module, configured to receive a target upgrade notification of a target micro-control unit returned by the server based on the attribute information of the plurality of micro-control units, wherein the target micro-control unit is determined according to the attribute information of the plurality of micro-control units and reference attribute information in the server;

[0044] A second sending module, used for sending the target upgrade notification to the target micro control unit through the mother micro control unit;

[0045] A third sending module, configured to send qualified information of the target upgrade notification to the mother micro control unit when the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit;

[0046] The upgrade module is used to obtain a target upgrade package from the server through the mother micro control unit based on the received qualified information, and send the target upgrade package to the target micro control unit to upgrade the target micro control unit.

[0047] According to one aspect of the present application, another micro control unit upgrading device is also provided, comprising:

[0048] A receiving module, used for receiving attribute information of multiple micro control units sent by a smart device;

[0049] An acquisition module, used to acquire a reference micro control unit upgrade package and reference attribute information corresponding to the reference micro control unit upgrade package;

[0050] a determination module, configured to determine a target micro-control unit according to the reference attribute information and the attribute information of the plurality of micro-control units, wherein the target micro-control unit is a micro-control unit among the plurality of micro-control units whose attribute information matches the reference attribute information;

[0051] A generating module, configured to generate a target upgrade notification of the target micro control unit according to the reference attribute information corresponding to the target micro control unit, and send the target upgrade notification to the smart device;

[0052] The sending module is used to send the target upgrade package corresponding to the target micro control unit to the smart device when receiving the target upgrade package acquisition request sent by the smart device based on the target upgrade notification, so that the smart device can upgrade the target micro control unit.

[0053] According to one aspect of the present application, there is also provided an intelligent device, including a processor and a memory, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, it executes any one of the micro control unit upgrade methods provided in the embodiments of the present application.

[0054] According to one aspect of the present application, a server is also provided, including a processor and a memory, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, any micro control unit upgrade method provided in the embodiments of the present application is executed.

[0055] According to one aspect of the present application, a storage medium is also provided, wherein the storage medium is used to store a computer program, and the computer program is loaded by a processor to execute any one of the micro control unit upgrade methods provided in the embodiments of the present application.

[0056] In an embodiment of the present application, the smart device sends attribute information of multiple microcontroller units on the smart device to the server, wherein the multiple microcontroller units include a mother microcontroller unit and at least one level of child microcontroller units. The server receives the attribute information of multiple microcontroller units sent by the smart device; obtains a reference microcontroller unit upgrade package and reference attribute information corresponding to the reference microcontroller unit upgrade package; determines a target microcontroller unit according to the reference attribute information and the attribute information of the multiple microcontroller units, wherein the target microcontroller unit is a microcontroller unit whose attribute information matches the reference attribute information among the multiple microcontroller units; generates a target upgrade notification of the target microcontroller unit according to the reference attribute information corresponding to the target microcontroller unit, and sends the target upgrade notification to the smart device. The smart device receives a target upgrade notification of a target micro-control unit returned by the server based on the attribute information of the multiple micro-control units, and the target micro-control unit is determined according to the attribute information of the multiple micro-control units and the reference attribute information in the server; and sends the target upgrade notification to the target micro-control unit through the mother micro-control unit; when the candidate attribute information in the target upgrade notification matches the attribute information of the target micro-control unit, the qualified information of the target upgrade notification is sent to the mother micro-control unit; and the mother micro-control unit obtains a target upgrade package from the server based on the received qualified information. When the server receives a target upgrade package acquisition request sent by the smart device based on the target upgrade notification, the server sends the target upgrade package corresponding to the target micro-control unit to the smart device, so that the smart device can upgrade the target micro-control unit. The smart device sends the target upgrade package to the target micro-control unit to upgrade the target micro-control unit.

[0057] In this way, when the smart device upgrades the target microcontroller unit that needs to be upgraded, it can first obtain the target upgrade notification corresponding to the target microcontroller unit, and after determining that the target upgrade notification is qualified, it can receive the target upgrade package of the target microcontroller unit. In this way, the mother microcontroller unit does not need to back up the target upgrade package of the target microcontroller unit, and only when there is no abnormality in the upgrade package, that is, when the target upgrade notification is qualified, will it obtain the target upgrade package to upgrade the target microcontroller unit, avoiding the problem of storage redundancy caused by the smart device repeatedly downloading unqualified upgrade packages, thereby improving the upgrade efficiency of the microcontroller unit. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0059] Figure 1 It is a flowchart of a micro control unit upgrade method provided in an embodiment of the present application;

[0060] Figure 2 is another flowchart of the micro control unit upgrade method provided in an embodiment of the present application;

[0061] Figure 3 It is a schematic diagram of data transmission between a server and an intelligent device in a micro control unit upgrade method provided in an embodiment of the present application;

[0062] Figure 4 is a schematic diagram of multiple micro control units in the micro control unit upgrade method provided in an embodiment of the present application;

[0063] Figure 5 is a schematic diagram of a reference microcontroller unit upgrade package stored in a server;

[0064] Figure 6 It is a protocol conversion diagram of the target upgrade package;

[0065] Figure 7 is a schematic diagram of a micro control unit upgrade device provided in an embodiment of the present application;

[0066] Figure 8 is a schematic diagram of a micro control unit upgrade device provided in an embodiment of the present application;

[0067] Fig. 9 It is a schematic diagram of the structure of the smart device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0069] The embodiments of the present application provide a method, device, intelligent device and storage medium (i.e., computer-readable storage medium) for upgrading a microcontroller unit. Among them, the method for upgrading a microcontroller unit can be applied to a microcontroller unit upgrading device, which can be specifically integrated in an intelligent device, which can be connected to a server or terminal for communication, and the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms, but is not limited to this. The server and the terminal can be directly or indirectly connected via wired or wireless communication, which is not limited to this in the present application. The terminal can be a mobile phone, a computer, a home appliance, or a wearable device.

[0070] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0071] In this embodiment, the description will be made from the perspective of a smart device. Figure 1 , Figure 1 : is a flowchart of a micro control unit upgrade method provided in an embodiment of the present application. The micro control unit upgrade method may include:

[0072] S101, sending attribute information of multiple micro control units on a smart device to a server, where the multiple micro control units include a main micro control unit and at least one level of sub-micro control units;

[0073] The smart device may be a household appliance, a computer, a mobile phone, a wearable device, etc. The multiple microcontroller units (MCU) may include a mother microcontroller unit and multiple levels of sub-microcontroller units corresponding to the mother microcontroller unit. The mother microcontroller unit may be connected to a server, and at least one level of sub-microcontroller unit may be connected to the server through the mother microcontroller unit. Figure 4 , Figure 4It is a schematic diagram of multiple micro control units, wherein the multiple micro control units include a primary mother micro control unit, a secondary sub micro control unit, a tertiary sub micro control unit, and a quaternary sub micro control unit, the micro control unit is connected to a communication module, the communication module may be a WiFi module, the mother micro control unit may be connected to a server through the WiFi module, and thus perform data transmission with the server. The attribute information may include software versions, partition information, hardware versions of multiple micro control units, and device information of smart devices, and the partition information may be identification information corresponding to the functional modules corresponding to the micro control units. The attribute information may be stored locally in the smart device.

[0074] For example, the smart device obtains the attribute information of multiple micro control units locally, reports the attribute information of at least one first-level sub-micro control unit to the mother micro control unit, and sends the attribute information of multiple micro control units in the smart device to the server through the micro control unit, so that the server can determine the target micro control unit that needs to be upgraded based on the attribute information.

[0075] Optionally, the mother micro control unit of the smart device can send the attribute information of multiple micro control units to the server through the communication module. For example, the smart device sends the attribute information of multiple micro control units to the communication module through the mother micro control unit, and the communication module sends the attribute information of the multiple micro control units to the server.

[0076] S102, receiving a target upgrade notification of a target micro control unit returned by the server based on the attribute information of the multiple micro control units, wherein the target micro control unit is determined according to the attribute information of the multiple micro control units and the reference attribute information in the server.

[0077] Among them, the target micro-control unit refers to the micro-control unit that needs to be upgraded among multiple micro-control units in the smart device, and the target micro-control unit can be a parent micro-control unit or a child micro-control unit. The attribute information corresponding to the target upgrade package matches the attribute information of the target micro-control unit. The target upgrade notification may include candidate attribute information corresponding to the target micro-control unit determined in the server, and the target upgrade notification can be used to notify the target micro-control unit that there is a target upgrade package corresponding to the latest version of the software corresponding to the target micro-control unit in the server, so that the smart device obtains the target upgrade package from the server, and the candidate attribute information may match or not match the attribute information of the target micro-control unit.

[0078] It should be noted that if the candidate attribute information matches the attribute information of the target micro-control unit, it can be indicated that the target upgrade notification sent by the server has the same partition information and hardware information as the target micro-control unit in the smart device, and only the software version is different, that is, it can be determined that the micro-control unit to which the target upgrade notification is sent is the correct target micro-control unit to be upgraded, or that the target upgrade notification is not damaged. If the candidate attribute information does not match the attribute information of the target micro-control unit, it can be indicated that the target upgrade notification sent by the server has different partition information or hardware information from the target micro-control unit in the smart device, and the software versions are the same or different, that is, it can be determined that the micro-control unit to which the target upgrade notification is sent is not the correct target micro-control unit to be upgraded, or that the target upgrade notification has been damaged.

[0079] For example, the server generates a target upgrade notification corresponding to the target micro control unit based on the attribute information of the multiple micro control units. The smart device receives the target upgrade notification of the target micro control unit returned by the server based on the attribute information of the multiple micro control units through the mother micro control unit.

[0080] S103, sending a target upgrade notification to the target micro control unit through the mother micro control unit.

[0081] Optionally, sending the target upgrade notification to the target micro control unit through the mother micro control unit includes:

[0082] S1. Obtaining the partition information of the target micro control unit according to the target upgrade notification;

[0083] The partition information may be identification information corresponding to a functional module of the target micro control unit.

[0084] It can be understood that the target upgrade notification includes the candidate software version, candidate partition information and candidate hardware version of the target micro control unit determined by the server, and the partition information of the target micro control unit is determined according to the candidate partition information.

[0085] For example, the smart device obtains identification information corresponding to the candidate partition information, and obtains target partition information corresponding to the identification information.

[0086] S2. Determine the target position of the target micro control unit according to the partition information.

[0087] The target position may refer to the position of the functional module corresponding to the target micro-control unit in the multiple micro-control units of the intelligent device. For example, the target position may be the third sub-micro-control unit in the three-level sub-micro-control unit. Figure 4 , which is where the functional module 7 is located.

[0088] S3. Send a target upgrade notification to the target micro control unit according to the target position.

[0089] For example, if the target position is the position of functional module 7, that is, the third-level sub-micro control unit corresponding to functional module 7 is the target micro control unit, the target upgrade notification is sent to the third-level sub-micro control unit corresponding to functional module 7 to notify the third-level sub-micro control unit that it needs to be upgraded.

[0090] Sending a target upgrade notification to the target microcontroller unit according to the target position includes:

[0091] (1) Determine the communication link between the target MCU and the mother MCU according to the target location.

[0092] The communication link is a transmission route formed by at least one level of sub-micro control units from the position corresponding to the mother micro control unit to the target position.

[0093] For example, if the target position is the location of functional module 7, the communication link between the mother micro control unit and the three-level sub-micro control unit corresponding to functional module 7 includes the first-level mother micro control unit, the second-level sub-micro control unit corresponding to functional module 4, and the third-level sub-micro control unit corresponding to functional module 7.

[0094] (2) Sending the target upgrade notification to the target micro control unit via the communication link.

[0095] For example, the smart device can send the target upgrade notification to the secondary sub-micro control unit corresponding to the functional module 4 through the primary micro control unit, and then send the target upgrade notification to the tertiary sub-micro control unit corresponding to the functional module 7 through the secondary sub-micro control unit corresponding to the functional module 4.

[0096] Sending a target upgrade notification to a target micro control unit via a communication link includes:

[0097] Acquire at least one level of sub-micro control unit in the communication link; send a target upgrade notification to at least one level of sub-micro control unit; perform protocol conversion on the target upgrade notification by at least one level of sub-micro control unit to obtain a target upgrade notification of a target protocol, where the target protocol is a protocol corresponding to the target micro control unit; send the target upgrade notification of the target protocol to the target micro control unit.

[0098] It is understandable that since the manufacturer or hardware of each microcontroller unit in the smart device may be different, the communication protocol of each microcontroller unit may be different. Therefore, in order to enable data communication between microcontroller units at different levels, the smart device needs to first obtain the protocols of each microcontroller unit corresponding to the communication link of the target upgrade notification to be received during the process of transmitting to the target microcontroller unit when transmitting the target upgrade notification to microcontroller units at different levels. For each level of microcontroller unit transmitted, the protocol of the target upgrade notification is converted into the protocol corresponding to the microcontroller unit receiving the target upgrade notification, until the target upgrade notification is sent to the target microcontroller unit, the protocol of the target upgrade notification is converted into the target protocol corresponding to the target microcontroller unit, the target upgrade notification of the target protocol is obtained, and the target upgrade notification of the target protocol is sent to the target microcontroller unit.

[0099] For example, if the communication link includes a first-level mother micro-control unit, a second-level sub-micro-control unit corresponding to functional module 4, and a third-level sub-micro-control unit corresponding to functional module 7, then the intelligent device can obtain the first protocol corresponding to the first-level mother micro-control unit, the second protocol corresponding to the second-level sub-micro-control unit corresponding to functional module 4, and the target protocol corresponding to the third-level sub-micro-control unit corresponding to functional module 7, perform protocol conversion on the target upgrade notification of the first protocol in the mother micro-control unit to obtain the target upgrade notification of the second protocol, send the target upgrade notification of the second protocol from the mother micro-control unit to the second-level sub-micro-control unit corresponding to functional module 4, then perform protocol conversion on the target upgrade notification of the second protocol again to obtain the target upgrade notification of the target protocol, and send the target upgrade notification of the target protocol to the target micro-control unit, that is, the third-level sub-micro-control unit corresponding to functional module 7.

[0100] Corresponding, refer to Figure 6 , Figure 6 The present invention is a schematic diagram of protocol conversion of a target upgrade package, wherein the target microcontroller unit may be a microcontroller unit corresponding to an external machine drive board. Thus, after the communication module receives the target upgrade package sent by the server, the target upgrade package is subjected to protocol conversion to obtain a first protocol target upgrade package corresponding to the display board, and the first protocol target upgrade package is transmitted to the microcontroller unit corresponding to the display board. The target upgrade package is then subjected to protocol conversion again to obtain a second protocol target upgrade package corresponding to the internal machine drive board, and the second protocol target upgrade package is transmitted to the microcontroller unit corresponding to the internal machine drive board. The second protocol target upgrade package is then subjected to protocol conversion again to obtain a target upgrade package of the target protocol, and the target upgrade package of the target protocol is transmitted to the target microcontroller unit, i.e., the microcontroller unit corresponding to the external machine drive board, to upgrade the software of the microcontroller unit corresponding to the external machine drive board.

[0101] S104: When the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit, the qualified information of the target upgrade notification is sent to the parent micro control unit.

[0102] The target microcontroller unit's attribute information includes the target software version, target partition information and target hardware version, and the target upgrade notification includes the target microcontroller unit's candidate attribute information, which includes the candidate software version, candidate partition information and candidate hardware version.

[0103] Optionally, when the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit, before sending the qualified information of the target upgrade notification to the parent micro control unit, the following may be included:

[0104] Obtain the candidate software version, candidate partition information and candidate hardware version in the candidate attribute information, and obtain the target software version, target partition information and target hardware version of the target microcontroller unit; if the candidate software version is different from the target software, and the candidate partition information is the same as the target partition information, and the candidate hardware version is the same as the target hardware version, then determine that the candidate attribute information matches the attribute information of the target microcontroller unit.

[0105] For example, if the candidate software version in the candidate attribute information is "xx software 5", the candidate partition information is "function module 7", and the candidate hardware version is "xx hardware 3", and the target software version of the target microcontroller unit is "xx software 4.6", the target partition information is "function module 7", and the target hardware version is "xx hardware 3", then the candidate software version is different from the target software, and the candidate partition information is the same as the target partition information, and the candidate hardware version is the same as the target hardware version, then it is determined that the candidate attribute information matches the attribute information of the target microcontroller unit, that is, the target upgrade notification can be determined to be a qualified target upgrade notification, qualified information of the target upgrade notification can be generated, and the qualified information can be sent to the mother microcontroller unit.

[0106] S105 , the mother micro control unit obtains a target upgrade package from the server based on the received qualified information, and sends the target upgrade package to the target micro control unit to upgrade the target micro control unit.

[0107] Obtain the target upgrade package from the server, which can include:

[0108] S1, sending a target upgrade package acquisition request of a target micro control unit to a server;

[0109] The target upgrade package acquisition request may include attribute information of the target micro control unit, so that the server sends the target upgrade package matching the attribute information to the smart device.

[0110] S2. Receive the target upgrade package returned by the server based on the target upgrade package acquisition request.

[0111] For example, the server may determine the target upgrade package according to the target upgrade package acquisition request received from the smart device, and send the target upgrade package to the smart device. The smart device receives the target upgrade package.

[0112] In this embodiment, the smart device can send attribute information of multiple microcontroller units on the smart device to the server through the communication module, and the multiple microcontroller units include a mother microcontroller unit and at least one level of child microcontroller units; receive a target upgrade notification of the target microcontroller unit returned by the server based on the attribute information of the multiple microcontroller units, and the target microcontroller unit is determined based on the attribute information of the multiple microcontroller units and the reference attribute information in the server; send the target upgrade notification to the target microcontroller unit through the mother microcontroller unit; when the candidate attribute information in the target upgrade notification matches the attribute information of the target microcontroller unit, send qualified information of the target upgrade notification to the mother microcontroller unit; obtain the target upgrade package from the server based on the received qualified information through the mother microcontroller unit, and send the target upgrade package to the target microcontroller unit to upgrade the target microcontroller unit. In this way, when the smart device upgrades the target microcontroller unit that needs to be upgraded, it can first obtain the target upgrade notification corresponding to the target microcontroller unit, and after determining that the target upgrade notification is qualified, it can receive the target upgrade package of the target microcontroller unit. In this way, the mother microcontroller unit does not need to back up the target upgrade package of the target microcontroller unit, and only when there is no abnormality in the upgrade package, that is, when the target upgrade notification is qualified, will it obtain the target upgrade package to upgrade the target microcontroller unit, avoiding the problem of storage redundancy caused by the smart device repeatedly downloading unqualified upgrade packages, thereby improving the upgrade efficiency of the microcontroller unit.

[0113] Based on the above embodiments, refer to Figure 2 , Figure 2 is another flow chart of the micro control unit upgrade method provided in an embodiment of the present application, wherein the micro control unit upgrade method is applied to a server, comprising:

[0114] S201. Receive attribute information of multiple micro control units sent by a smart device.

[0115] The server may be a cloud server. The plurality of microcontroller units (MCU) may include a mother microcontroller unit and a plurality of levels of sub-microcontroller units corresponding to the mother microcontroller unit. The mother microcontroller unit may be connected to the server, and at least one level of sub-microcontroller units may be connected to the server through the mother microcontroller unit. Figure 4 , Figure 4It is a schematic diagram of multiple micro control units, wherein the multiple micro control units include a primary mother micro control unit, a secondary sub micro control unit, a tertiary sub micro control unit, and a quaternary sub micro control unit, the micro control unit is connected to a communication module, the communication module may be a WiFi module, the mother micro control unit may be connected to a server through the WiFi module, and thus perform data transmission with the server. The attribute information may include software versions, partition information, hardware versions of multiple micro control units, and device information of smart devices, and the partition information may be identification information corresponding to a functional module corresponding to the micro control unit.

[0116] For example, the server receives software versions, partition information, and hardware versions of multiple micro control units sent by the smart device.

[0117] S202: Acquire a reference micro control unit upgrade package and reference attribute information corresponding to the reference micro control unit upgrade package.

[0118] Reference Figure 5 , Figure 5 Schematic diagram of a reference microcontroller unit upgrade package stored in a server. The reference microcontroller unit may include a microcontroller unit corresponding to a communication module, a microcontroller unit corresponding to a display panel, a microcontroller unit corresponding to an internal drive panel, and a microcontroller unit corresponding to an external drive panel. The header information of each reference microcontroller unit upgrade package may include reference attribute information of each reference microcontroller unit, and the reference attribute information may include a product ID, partition information, and software version of the microcontroller unit, and the product ID may be a hardware version. The reference microcontroller unit upgrade packages are stored independently of each other in the server. After receiving the attribute information of multiple microcontroller units sent by the smart device, the server may compare the attribute information with the reference attribute information one by one to determine the target microcontroller unit that needs to be upgraded.

[0119] S203, determining a target micro control unit according to the reference attribute information and the attribute information of the plurality of micro control units, wherein the target micro control unit is a micro control unit whose attribute information matches the reference attribute information among the plurality of micro control units.

[0120] Among them, the attribute information of multiple micro control units includes software versions, partition information and hardware versions of multiple micro control units, the reference attribute information includes reference software version, reference partition information and reference hardware version, and the multiple micro control units include a mother micro control unit and at least one level of child micro control unit.

[0121] Optionally, determining the target micro control unit according to the reference attribute information and the attribute information of the plurality of micro control units may include:

[0122] S1. Obtain the reference software version, reference partition information and reference hardware version in the reference attribute information and the software version, partition information and hardware version in the attribute information of multiple micro-control units; if the reference software version is different from the software version, and the reference partition information is the same as the partition information, and the reference hardware version is the same as the hardware version, then determine that the reference attribute information matches the attribute information; set the micro-control unit whose attribute information matches the reference attribute information among the multiple micro-control units as the target micro-control unit

[0123] S204: Generate a target upgrade notification of the target micro control unit according to the reference attribute information corresponding to the target micro control unit, and send the target upgrade notification to the smart device.

[0124] Among them, the target upgrade notification may include candidate attribute information corresponding to the target micro control unit determined in the server, and the target upgrade notification can be used to notify the target micro control unit that the server has a target upgrade package corresponding to the latest version of the software corresponding to the target micro control unit, so that the smart device can obtain the target upgrade package from the server.

[0125] For example, the server splices the reference attribute information into a target upgrade notification of the target micro control unit, and sends the target upgrade notification to the communication module connected to the smart device, so that the communication module sends the target upgrade notification to the target micro control unit in the smart device.

[0126] S205: upon receiving a target upgrade package acquisition request sent by the smart device based on the target upgrade notification, sending the target upgrade package corresponding to the target micro control unit to the smart device, so that the smart device can upgrade the target micro control unit.

[0127] The target upgrade package acquisition request may include attribute information of the target micro control unit, so that the server sends the target upgrade package matching the attribute information to the smart device.

[0128] For example, when the server receives a target upgrade package acquisition request, it obtains the attribute information of the target micro control unit in the target upgrade package acquisition request, thereby obtaining a target upgrade package whose reference attribute information matches the attribute information, and sends the target upgrade package to the smart device for the smart device to upgrade the target micro control unit.

[0129] In the technical solution provided in this embodiment, the server can receive attribute information of multiple micro control units sent by the smart device; obtain a reference micro control unit upgrade package and reference attribute information corresponding to the reference micro control unit upgrade package; determine the target micro control unit according to the reference attribute information and the attribute information of the multiple micro control units, wherein the target micro control unit is a micro control unit among the multiple micro control units whose attribute information matches the reference attribute information; generate a target upgrade notification for the target micro control unit according to the reference attribute information corresponding to the target micro control unit, and send the target upgrade notification to the smart device; upon receiving a target upgrade package acquisition request sent by the smart device based on the target upgrade notification, send the target upgrade package corresponding to the target micro control unit to the smart device, so that the smart device can upgrade the target micro control unit. In this way, when the server determines that there is a target microcontroller unit that needs to be upgraded in the smart device, it can first generate a target upgrade notification corresponding to the target microcontroller unit, and after determining that the target upgrade notification is qualified, send the target upgrade package of the target microcontroller unit to the smart device. In this way, the mother microcontroller unit in the smart device does not need to back up the target upgrade package of the target microcontroller unit, and only when there is no abnormality in the upgrade package, that is, the target upgrade notification is qualified, the server will send the target upgrade package to upgrade the target microcontroller unit, avoiding the problem of storage redundancy caused by the smart device repeatedly downloading unqualified upgrade packages, and improving the upgrade efficiency of the microcontroller unit.

[0130] In order to facilitate better implementation of the microcontroller upgrade method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above microcontroller upgrade method. The meanings of the terms are the same as those in the above microcontroller upgrade method, and the specific implementation details can refer to the description in the method embodiment.

[0131] Reference Figure 3 , Figure 3 A schematic diagram of data transmission between a server and an intelligent device in a micro control unit upgrade method provided in an embodiment of the present application. The intelligent device includes a mother micro control unit and a target micro control unit. The data transmission schematic diagram includes the following steps:

[0132] M1. The smart device sends attribute information of multiple micro control units on the smart device to a server, where the multiple micro control units include a main micro control unit and at least one level of sub-micro control units.

[0133] M2. The server receives attribute information of multiple micro control units sent by the smart device; obtains a reference micro control unit upgrade package and reference attribute information corresponding to the reference micro control unit upgrade package; determines a target micro control unit based on the reference attribute information and the attribute information of the multiple micro control units, wherein the target micro control unit is a micro control unit among the multiple micro control units whose attribute information matches the reference attribute information; generates a target upgrade notification for the target micro control unit based on the reference attribute information corresponding to the target micro control unit.

[0134] M3. Send the target upgrade notification to the smart device.

[0135] M4. The smart device receives a target upgrade notification of a target micro-control unit returned by the server based on the attribute information of the multiple micro-control units. The target micro-control unit is determined based on the attribute information of the multiple micro-control units and the reference attribute information in the server, and the target upgrade notification is sent to the target micro-control unit through the mother micro-control unit.

[0136] M5. When the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit, the qualified information of the target upgrade notification is sent to the mother micro control unit.

[0137] M6. Sending a target upgrade package acquisition request to a server through the mother micro control unit based on the received qualified information to acquire the target upgrade package from the server.

[0138] M7. When receiving the target upgrade package acquisition request sent by the smart device based on the target upgrade notification, the server sends the target upgrade package corresponding to the target micro control unit to the smart device, so that the smart device can upgrade the target micro control unit.

[0139] M8. The smart device sends the target upgrade package to the target micro control unit through the mother micro control unit to upgrade the target micro control unit.

[0140] In this way, when the smart device upgrades the target microcontroller unit that needs to be upgraded, it can first obtain the target upgrade notification corresponding to the target microcontroller unit, and after determining that the target upgrade notification is qualified, it can receive the target upgrade package of the target microcontroller unit. In this way, the mother microcontroller unit does not need to back up the target upgrade package of the target microcontroller unit, and only when there is no abnormality in the upgrade package, that is, when the target upgrade notification is qualified, will it obtain the target upgrade package to upgrade the target microcontroller unit, avoiding the problem of storage redundancy caused by the smart device repeatedly downloading unqualified upgrade packages, thereby improving the upgrade efficiency of the microcontroller unit.

[0141] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of a micro control unit upgrade device provided in an embodiment of the present application, wherein the micro control unit upgrade device 300 may include a first sending module 301, a receiving module 302, a second sending module 303, a third sending module 304, and an upgrade module 305, etc.

[0142] The first sending module 301 is used to send attribute information of multiple micro control units on the smart device to the server, where the multiple micro control units include a main micro control unit and at least one level of sub-micro control units;

[0143] A receiving module 302 is used to receive a target upgrade notification of a target micro control unit returned by the server based on the attribute information of the multiple micro control units, where the target micro control unit is determined based on the attribute information of the multiple micro control units and the reference attribute information in the server;

[0144] The second sending module 303 is used to send the target upgrade notification to the target micro control unit through the mother micro control unit;

[0145] The third sending module 304 is used to send qualified information of the target upgrade notification to the mother micro control unit when the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit;

[0146] The upgrade module 305 is used to obtain a target upgrade package from the server based on the received qualified information through the mother micro control unit, and send the target upgrade package to the target micro control unit to upgrade the target micro control unit.

[0147] Optionally, the micro control unit upgrading device 300 may further include:

[0148] A fourth sending module, used for sending a target upgrade package acquisition request of a target micro control unit to the server;

[0149] The first receiving module is used to receive the target upgrade package returned by the server based on the target upgrade package acquisition request.

[0150] A first acquisition module is used to acquire candidate software versions, candidate partition information, and candidate hardware versions in the candidate attribute information, and to acquire a target software version, target partition information, and target hardware version of a target microcontroller unit;

[0151] The first determination module is used to determine that the candidate attribute information matches the attribute information of the target micro control unit if the candidate software version is different from the target software, the candidate partition information is the same as the target partition information, and the candidate hardware version is the same as the target hardware version.

[0152] A second acquisition module, used for acquiring partition information of a target micro control unit according to a target upgrade notification;

[0153] A second determination module is used to determine a target position of a target micro control unit according to the partition information;

[0154] The fifth sending module is used to send a target upgrade notification to the target micro control unit according to the target position.

[0155] A third determination module is used to determine the communication link between the target micro control unit and the mother micro control unit according to the target position, where the communication link is a transmission route formed by at least one level of sub-micro control units from the position corresponding to the mother micro control unit to the target position;

[0156] The sixth sending module is used to send the target upgrade notification to the target micro control unit through the communication link.

[0157] A third acquisition module is used to acquire at least one level of sub-micro control unit in the communication link;

[0158] A seventh sending module, used to send a target upgrade notification to at least one level of sub-micro control unit;

[0159] A protocol conversion module, used to perform protocol conversion on the target upgrade notification through at least one level of sub-micro control unit to obtain a target upgrade notification of a target protocol, where the target protocol is a protocol corresponding to the target micro control unit;

[0160] An eighth sending module is used to send a target upgrade notification of a target protocol to a target micro control unit.

[0161] See also Figure 8 , Figure 8 This is a schematic diagram of the structure of a micro control unit upgrade device provided in an embodiment of the present application, wherein the micro control unit upgrade device 300 may include a receiving module 401, an acquisition module 402, a determination module 403, a generation module 404, and a sending module 405, etc.

[0162] The receiving module 401 is used to receive attribute information of multiple micro control units sent by the smart device;

[0163] An acquisition module 402 is used to acquire a reference micro control unit upgrade package and reference attribute information corresponding to the reference micro control unit upgrade package;

[0164] A determination module 403 is used to determine a target micro-control unit according to the reference attribute information and the attribute information of the plurality of micro-control units, wherein the target micro-control unit is a micro-control unit whose attribute information matches the reference attribute information among the plurality of micro-control units;

[0165] A generating module 404, configured to generate a target upgrade notification of the target micro control unit according to the reference attribute information corresponding to the target micro control unit, and send the target upgrade notification to the smart device;

[0166] The sending module 405 is used to send the target upgrade package corresponding to the target micro control unit to the smart device when receiving the target upgrade package acquisition request sent by the smart device based on the target upgrade notification, so that the smart device can upgrade the target micro control unit.

[0167] A fourth acquisition module, used to acquire a reference software version, reference partition information, and reference hardware version in the reference attribute information, and a software version, partition information, and hardware version in the attribute information of a plurality of micro control units;

[0168] a fourth determination module, configured to determine that the reference attribute information matches the attribute information if the reference software version is different from the software version, and the reference partition information is the same as the partition information, and the reference hardware version is the same as the hardware version;

[0169] The setting module is used to set the micro control unit whose attribute information matches the reference attribute information among the multiple micro control units as the target micro control unit.

[0170] The present application also provides a smart device, which can be a terminal such as a mobile phone. Fig. 9 As shown, it shows a schematic diagram of the structure of the smart device involved in the embodiment of the present application, specifically:

[0171] The smart device may include one or more processors 501 of processing cores, one or more computer-readable storage media memories 502, a power supply 503, an input unit 504 and other components. Those skilled in the art will appreciate that Fig. 9 The structure of the smart device shown in the figure does not constitute a limitation on the smart device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0172] The processor 501 is the control center of the smart device. It uses various interfaces and lines to connect various parts of the entire smart device. By running or executing software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, it executes various functions of the smart device and processes data, thereby monitoring the smart device as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.

[0173] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the smart device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0174] The smart device also includes a power supply 503 for supplying power to each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 503 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0175] The smart device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0176] Although not shown, the smart device may also include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 501 in the smart device will load the executable files corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 501 will run the application programs stored in the memory 502, thereby realizing various functions, as follows:

[0177] The smart device sends attribute information of multiple microcontroller units on the smart device to a server, wherein the multiple microcontroller units include a mother microcontroller unit and at least one level of child microcontroller units; a target upgrade notification of a target microcontroller unit returned by the server based on the attribute information of the multiple microcontroller units is received, and the target microcontroller unit is determined based on the attribute information of the multiple microcontroller units and the reference attribute information in the server; the target upgrade notification is sent to the target microcontroller unit through the mother microcontroller unit; when the candidate attribute information in the target upgrade notification matches the attribute information of the target microcontroller unit, qualified information of the target upgrade notification is sent to the mother microcontroller unit; based on the received qualified information, the mother microcontroller unit obtains a target upgrade package from the server, and sends the target upgrade package to the target microcontroller unit to upgrade the target microcontroller unit. In this way, when the smart device upgrades the target microcontroller unit that needs to be upgraded, it can first obtain the target upgrade notification corresponding to the target microcontroller unit, and after determining that the target upgrade notification is qualified, it can receive the target upgrade package of the target microcontroller unit. In this way, the mother microcontroller unit does not need to back up the target upgrade package of the target microcontroller unit, and only when there is no abnormality in the upgrade package, that is, when the target upgrade notification is qualified, will it obtain the target upgrade package to upgrade the target microcontroller unit, avoiding the problem of storage redundancy caused by the smart device repeatedly downloading unqualified upgrade packages, thereby improving the upgrade efficiency of the microcontroller unit.

[0178] In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, please refer to the detailed description of the micro control unit upgrade method above, which will not be repeated here.

[0179] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of an intelligent device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the intelligent device executes the methods provided in various optional implementations in the above embodiments.

[0180] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by computer instructions, or by controlling related hardware through computer instructions. The computer instructions can be stored in a storage medium and loaded and executed by a processor. The storage medium is a computer-readable storage medium. To this end, the present application embodiment provides a storage medium, which stores a computer program. The computer program may include computer instructions. The computer program can be loaded by the processor to execute any microcontroller unit upgrade method provided in the present application embodiment.

[0181] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0182] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0183] Since the computer instructions stored in the storage medium can execute any one of the micro control unit upgrade methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the micro control unit upgrade methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0184] The above is a detailed introduction to a microcontroller unit upgrade method, device, intelligent device and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for upgrading a micro control unit, characterized in that: The method comprises: Sending attribute information of multiple micro control units on the smart device to the server, wherein the multiple micro control units include a main micro control unit and at least one level of sub-micro control units; Receiving a target upgrade notification of a target micro control unit returned by the server based on the attribute information of the plurality of micro control units, the target micro control unit being determined according to the attribute information of the plurality of micro control units and reference attribute information in the server; Sending the target upgrade notification to the target micro control unit through the mother micro control unit; When the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit, sending the qualified information of the target upgrade notification to the mother micro control unit; The mother micro control unit obtains a target upgrade package from the server based on the received qualified information, and sends the target upgrade package to the target micro control unit to upgrade the target micro control unit.

2. The microcontroller unit upgrade method according to claim 1, characterized in that: The step of obtaining the target upgrade package from the server includes: Sending a target upgrade package acquisition request of the target micro control unit to the server; Receive the target upgrade package returned by the server based on the target upgrade package acquisition request.

3. The microcontroller unit upgrade method according to claim 1, characterized in that: The attribute information of the target micro control unit includes a target software version, a target partition information and a target hardware version, the target upgrade notification includes candidate attribute information of the target micro control unit, and the candidate attribute information includes a candidate software version, a candidate partition information and a candidate hardware version. When the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit, before sending the qualified information of the target upgrade notification to the mother micro control unit, the method includes: Acquire candidate software versions, candidate partition information, and candidate hardware versions in the candidate attribute information, and acquire target software version, target partition information, and target hardware version of the target micro control unit; If the candidate software version is different from the target software, and the candidate partition information is the same as the target partition information, and the candidate hardware version is the same as the target hardware version, it is determined that the candidate attribute information matches the attribute information of the target micro control unit.

4. The microcontroller unit upgrade method according to claim 1, characterized in that: The step of sending the target upgrade notification to the target micro control unit through the mother micro control unit includes: Acquire the partition information of the target micro control unit according to the target upgrade notification; Determine the target position of the target micro control unit according to the partition information; A target upgrade notification is sent to the target micro control unit according to the target position.

5. The microcontroller unit upgrade method according to claim 4, characterized in that: The sending a target upgrade notification to the target micro control unit according to the target position includes: Determine a communication link between the target micro-control unit and the mother micro-control unit according to the target position, wherein the communication link is a transmission route formed by at least one level of sub-micro-control units from the position corresponding to the mother micro-control unit to the target position; The target upgrade notification is sent to the target micro control unit via the communication link.

6. The microcontroller unit upgrade method according to claim 5, characterized in that: The step of sending the target upgrade notification to the target micro control unit via the communication link comprises: Acquire at least one level of sub-micro control unit in the communication link; Sending the target upgrade notification to the at least one level of sub-micro control unit; Performing protocol conversion on the target upgrade notification by the at least one level of sub-micro control unit to obtain a target upgrade notification of a target protocol, wherein the target protocol is a protocol corresponding to the target micro control unit; A target upgrade notification of the target protocol is sent to the target micro control unit.

7. A micro control unit upgrade method, applied to a server, characterized in that: The method comprises: Receiving attribute information of multiple micro control units sent by the smart device; Acquire a reference micro control unit upgrade package and reference attribute information corresponding to the reference micro control unit upgrade package; Determining a target micro-control unit according to the reference attribute information and the attribute information of the plurality of micro-control units, wherein the target micro-control unit is a micro-control unit among the plurality of micro-control units whose attribute information matches the reference attribute information; Generate a target upgrade notification of the target micro control unit according to the reference attribute information corresponding to the target micro control unit, and send the target upgrade notification to the smart device; Upon receiving a target upgrade package acquisition request sent by the smart device based on the target upgrade notification, sending the target upgrade package corresponding to the target micro control unit to the smart device, so that the smart device can upgrade the target micro control unit; The target upgrade package acquisition request is issued by the smart device after acquiring the qualified information of the target upgrade notification, and the qualified information of the target upgrade notification is generated when the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit.

8. The method for upgrading the micro control unit according to claim 7, characterized in that: The attribute information of the plurality of micro control units includes software versions, partition information and hardware versions of the plurality of micro control units, the reference attribute information includes reference software version, reference partition information and reference hardware version, the plurality of micro control units include a parent micro control unit and at least one level of child micro control units, and determining a target micro control unit according to the reference attribute information and the attribute information of the plurality of micro control units includes: Acquire a reference software version, reference partition information, and reference hardware version in the reference attribute information, and a software version, partition information, and hardware version in the attribute information of the plurality of micro control units; If the reference software version is different from the software version, and the reference partition information is the same as the partition information, and the reference hardware version is the same as the hardware version, then determining that the reference attribute information matches the attribute information; A micro control unit whose attribute information matches the reference attribute information among the plurality of micro control units is set as a target micro control unit.

9. A micro control unit upgrade device, characterized in that: include: A first sending module, used to send attribute information of multiple micro control units on the smart device to the server, wherein the multiple micro control units include a main micro control unit and at least one level of sub micro control units; A receiving module, configured to receive a target upgrade notification of a target micro-control unit returned by the server based on the attribute information of the plurality of micro-control units, wherein the target micro-control unit is determined according to the attribute information of the plurality of micro-control units and reference attribute information in the server; A second sending module, used for sending the target upgrade notification to the target micro control unit through the mother micro control unit; A third sending module, configured to send qualified information of the target upgrade notification to the mother micro control unit when the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit; The upgrade module is used to obtain a target upgrade package from the server through the mother micro control unit based on the received qualified information, and send the target upgrade package to the target micro control unit to upgrade the target micro control unit.

10. A micro control unit upgrade device, characterized in that: include: A receiving module, used for receiving attribute information of multiple micro control units sent by a smart device; An acquisition module, used to acquire a reference micro control unit upgrade package and reference attribute information corresponding to the reference micro control unit upgrade package; a determination module, configured to determine a target micro-control unit according to the reference attribute information and the attribute information of the plurality of micro-control units, wherein the target micro-control unit is a micro-control unit among the plurality of micro-control units whose attribute information matches the reference attribute information; A generating module, configured to generate a target upgrade notification of the target micro control unit according to the reference attribute information corresponding to the target micro control unit, and send the target upgrade notification to the smart device; a sending module, configured to send the target upgrade package corresponding to the target micro control unit to the smart device when receiving the target upgrade package acquisition request sent by the smart device based on the target upgrade notification, so that the smart device can upgrade the target micro control unit; The target upgrade package acquisition request is issued by the smart device after acquiring the qualified information of the target upgrade notification, and the qualified information of the target upgrade notification is generated when the candidate attribute information in the target upgrade notification matches the attribute information of the target micro control unit.

11. A smart device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, the method for upgrading the micro control unit as claimed in any one of claims 1 to 8 is executed.

12. A server, characterized in that: The method comprises a processor and a memory, wherein the memory stores a computer program, and when the processor calls the computer program in the memory, the method for upgrading the micro control unit as claimed in any one of claims 1 to 8 is executed.

13. A storage medium, characterized in that: The storage medium is used to store a computer program, and the computer program is loaded by a processor to execute the micro control unit upgrading method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method, device and equipment for wireless upgrading of intelligent home equipment

    CN112596763A