Method for upgrading master and slave MCUs (micro control units)

A master-slave and upgraded technology, which is applied in the direction of program loading/starting, program control devices, etc., can solve the problems of consuming the working time of operators, high cost of upgrading time, waste of hardware resources, etc., to save working time and reduce time cost, effect of hardware cost reduction

Active Publication Date: 2014-08-06
GUANGZHOU HUAXIN ELECTRONICS TECH
4 Cites 11 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0004] However, the above-mentioned method requires each MCU to reserve at least one upgrade interface, which causes waste of hardware resources and in...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Method used

In the present embodiment, only need the 1st level MCU (master MCU) to reserve the upgrade interface to obtain the upgrade file, just can make all MCUs (main MCU or slave MCU) that need to upgrade through the mode of communication link transmission ) to obtain the upgrade file, so as to obtain the corresponding upgrade program for upgrade, it is not necessary to reserve at least one upgrade interface for each MCU, which avoids waste of hardware resources and reduces hardware costs; at the same time, the operator only needs to Level 1 MCUs provide upgrade files, so that all MCUs that need to be upgraded can be upgraded by themselves, without the need to upgrade each MCU individually, which is convenient for maintenance and upgrades, saves the workin...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Abstract

The embodiment of the invention discloses a method for upgrading master and slave MCUs, and aims at avoiding the waste of hardware resources and reducing hardware cost; meanwhile, each MCU does not need to be upgraded independently, so that the working time of an operator is saved, and the upgrading time cost is lowered. The method disclosed by the invention comprises the steps that a first-stage MCU acquires an upgrading file through an upgrading interface of the first-stage MCU, wherein the upgrading file comprises an upgrading program of an MCU to be upgraded; the nth-stage MCU acquires the upgrading file from the (n-1)th-stage MCU through a communication link, wherein n is greater than or equal to 2; the (n-1)th-stage MCU is cascaded with the nth-stage MCU; the upgrading program corresponds to the MCU; the MCU is upgraded according to the acquired corresponding upgrading program.

Application Domain

Technology Topic

Image

  • Method for upgrading master and slave MCUs (micro control units)
  • Method for upgrading master and slave MCUs (micro control units)
  • Method for upgrading master and slave MCUs (micro control units)

Examples

  • Experimental program(1)

Example Embodiment

[0039] The embodiment of the present invention provides a master-slave MCU upgrade method, which is used to avoid waste of hardware resources and reduce hardware costs; at the same time, there is no need to upgrade each MCU separately, which saves the working time of the operator and reduces the time cost of the upgrade.
[0040] In order to make the objectives, features, and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the following The described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
[0041] See figure 1 In the embodiment of the present invention, an embodiment of the master-slave MCU upgrade method includes:
[0042] 101. The level 1 MCU obtains the upgrade file through the upgrade interface of the level 1 MCU;
[0043] When it is necessary to upgrade the MCU in the master and slave MCUs, the level 1 MCU can obtain the upgrade file through the upgrade interface of the level 1 MCU, and the upgrade file contains the upgrade program of the MCU that needs to be upgraded.
[0044] 102. The nth level MCU obtains the upgrade file from the n-1th level MCU through the communication link;
[0045] After the level 1 MCU obtains the upgrade file through the upgrade interface of the level 1 MCU, the n level MCU can obtain the upgrade file from the n-1 level MCU through the communication link, and n is greater than or equal to 2.
[0046] It should be noted that the n-1th level MCU is cascaded with the nth level MCU; there is a corresponding relationship between the upgrade program and the MCU.
[0047] 103. The MCU is upgraded according to the obtained corresponding upgrade program.
[0048] Whenever the MCU that needs to be upgraded obtains the corresponding upgrade program, the MCU can be upgraded according to the obtained corresponding upgrade program.
[0049] In this embodiment, the steps of the above-mentioned master-slave MCU upgrade method are: the first-level MCU obtains the upgrade file through the upgrade interface of the first-level MCU, and the upgrade file contains the upgrade program of the MCU that needs to be upgraded; The n-level MCU obtains the upgrade file from the n-1th level MCU through the communication link, and n is greater than or equal to 2; the n-1th level MCU is cascaded with the nth level MCU; the upgrade program has a corresponding relationship with the MCU ; At the same time, the MCU is upgraded according to the corresponding upgrade program obtained. In this embodiment, only the level 1 MCU (main MCU) needs to reserve the upgrade interface to obtain the upgrade file, and all the MCUs (main MCU or slave MCU) that need to be upgraded can be obtained through communication link transmission. Upgrade files, so as to obtain the corresponding upgrade program for upgrade, it is not necessary for each MCU to reserve at least one upgrade interface, avoiding the waste of hardware resources and reducing the hardware cost; at the same time, the operator only needs to provide the first level MCU By providing the upgrade file, all MCUs that need to be upgraded can be upgraded by themselves, without the need to upgrade each MCU individually, which saves the working time of the operator and reduces the time cost of the upgrade.
[0050] For ease of understanding, the following describes the master-slave MCU method in the embodiment of the present invention in detail, please refer to figure 2 Another embodiment of the master-slave MCU method in the embodiment of the present invention includes:
[0051] 201. The level 1 MCU obtains the upgrade file through the upgrade interface of the level 1 MCU;
[0052] When it is necessary to upgrade the MCU in the master and slave MCUs, the level 1 MCU can obtain the upgrade file through the upgrade interface of the level 1 MCU, and the upgrade file contains the upgrade program of the MCU that needs to be upgraded.
[0053] It is understandable that the level 1 MCU is the master MCU among the master and slave MCUs, and the level 1 MCU needs to reserve at least one upgrade interface for upgrading.
[0054] It should be noted that there is a corresponding relationship between the upgrade program and the MCU.
[0055] 202. The nth level MCU applies to the n-1th level MCU for the upgrade file through the communication link;
[0056] After the level 1 MCU obtains the upgrade file through the upgrade interface of the level 1 MCU, the n level MCU can apply for the upgrade file to the n-1 level MCU through the communication link.
[0057] It should be noted that for the nth level MCU, there may be several MCUs of the same level, or there may be only one MCU; similarly, for the n-1 level MCU, there may be several MCUs of the same level. , There may be only one MCU. Of course, there is only one level 1 MCU, that is, the main MCU. Therefore, it can be understood that the n-1th level MCU can carry several nth level MCUs.
[0058] It should be noted that the n-1th level MCU is cascaded with the nth level MCU.
[0059] 203. The n-1th level MCU obtains the upgrade mark;
[0060] After the nth level MCU applies for the upgrade file to the n-1th level MCU through the communication link, the n-1th level MCU obtains the upgrade mark, which is marked as the nth level MCU and the nth level MCU cascaded All the MCUs that need to be upgraded are marked.
[0061] It should be noted that the n-1th level MCU can have several nth level MCUs, and an nth level MCU can also have several n+1th level MCUs, and so on. Therefore, when the nth level MCU applies to the n-1 level MCU for the upgrade file, the n-1 level MCU first needs to confirm which upgrade procedures the nth level MCU needs. Because the nth level MCU not only needs to obtain the upgrade procedures required by its n+1th level MCUs, but also obtains the upgrades required by several n+2 level MCUs under several n+1th level MCUs The program, and so on, is the upgrade program for all MCUs that need to be upgraded under the nth-level MCU cascade. At this time, the n-1th level MCU is informed by obtaining the upgrade flag.
[0062] 204. The n-1th level MCU obtains the corresponding upgrade program according to the upgrade mark;
[0063] After the n-1 level MCU obtains the upgrade mark, the n-1 level MCU can obtain the corresponding upgrade program according to the upgrade mark. It is understandable that since any MCU of any level that needs to be upgraded can have a corresponding relationship with a certain upgrade program, the corresponding upgrade program can be easily obtained through the upgrade mark.
[0064] 205. The n-1 level MCU packages the corresponding upgrade program into a new upgrade file;
[0065] After the n-1 level MCU obtains the corresponding upgrade program according to the upgrade mark, the n-1 level MCU may package the corresponding upgrade program as a new upgrade file. It is understandable that after packaging these corresponding upgrade programs into new upgrade files, it is more convenient to transfer, use and manage.
[0066] 206. The nth level MCU obtains the upgrade file from the n-1th level MCU through the communication link;
[0067] The nth level MCU can obtain the upgrade file from the n-1th level MCU through the communication link, where n is greater than or equal to 2. It is understandable that since in step 205, the n-1th level MCU packages the corresponding upgrade program as a new upgrade file, so the upgrade file obtained by the nth level MCU may be a new upgrade file, that is, the The upgrade file contains the corresponding upgrade files required by the nth level MCU and the MCUs cascaded below it.
[0068] 207. The nth level MCU obtains the upgrade program in the upgrade file;
[0069] After the nth level MCU obtains the upgrade file from the n-1 level MCU through the communication link, the nth level MCU can obtain the upgrade program in the upgrade file.
[0070] 208. The MCU is upgraded according to the obtained corresponding upgrade program;
[0071] After each MCU that needs to be upgraded obtains the corresponding upgrade program, each MCU that needs to be upgraded can be upgraded according to the obtained corresponding upgrade program.
[0072] 209. After all the MCUs corresponding to the upgrade program are upgraded, the MCU deletes the upgrade program.
[0073] Through step 206, it can be known that the nth level MCU obtains the upgrade file from the n-1th level MCU through the communication link. According to the different value of n, we can conclude that the whole master and slave MCUs that need to be upgraded can be obtained. To the corresponding upgrade procedure, therefore, finally all MCUs that need to be upgraded can be upgraded. But for the MCU, the upgrade program can also be a burden and needs to be cleaned up in time. Therefore, when all MCUs corresponding to the upgrade program are upgraded, the MCU deletes the upgrade program.
[0074] In this embodiment, only the level 1 MCU (main MCU) needs to reserve the upgrade interface to obtain the upgrade file, and all the MCUs (main MCU or slave MCU) that need to be upgraded can be obtained through communication link transmission. Upgrade files, so as to obtain the corresponding upgrade program for upgrade, it is not necessary for each MCU to reserve at least one upgrade interface, avoiding the waste of hardware resources and reducing the hardware cost; at the same time, the operator only needs to provide the first level MCU By providing the upgrade files, all MCUs that need to be upgraded can be upgraded by themselves, without the need to upgrade each MCU individually, which is convenient for maintenance and upgrade, and saves the working time of the operator and reduces the time cost of the upgrade. Further, the n-1th level MCU obtains the upgrade mark, and then obtains the corresponding upgrade program according to the upgrade mark and packs it into a new upgrade file, which can reduce the data transmitted from the n-1th level MCU to the nth level MCU It is not necessary to transmit all the upgrade programs to the nth-level MCU, just transmit the necessary upgrade programs, which is beneficial to improve data utilization and transmission efficiency. Furthermore, when all the MCUs corresponding to the upgrade program have been upgraded, the MCU deletes the upgrade program, which can save storage resources to a large extent and avoid the burden of these upgraded upgrade programs on the MCU.
[0075] For ease of understanding, according to figure 2 In the described embodiment, the following describes the master-slave MCU upgrade method in the embodiment of the present invention with an actual application scenario:
[0076] 1. After the computer packs all the upgrade programs into upgrade files, write the upgrade files through the upgrade interface of the first-level MCU (main MCU).
[0077] 2. The level 2 MCU will apply to the level 1 MCU for the required upgrade files.
[0078] 3. The level 1 MCU obtains the upgrade marks of the level 2 MCU and all the MCUs that need to be upgraded under the cascade.
[0079] 4. The level 1 MCU extracts the required corresponding upgrade program according to the upgrade mark and repackages it into an upgrade file.
[0080] 5. The second-level MCU obtains the repackaged upgrade file. It should be noted here that the second-level MCU here may be one MCU or several MCUs. The following third-level, fourth-level,...n-th level are similar.
[0081] 6. Then, the level 3 MCU applies to the level 2 MCU for the required upgrade files.
[0082] 7. The level 2 MCU obtains the upgrade marks of the level 3 MCU and all the MCUs that need to be upgraded under the cascade.
[0083] 8. The level 2 MCU extracts the corresponding upgrade program needed according to the upgrade mark and repackages it into an upgrade file.
[0084] 9. The level 3 MCU gets the repackaged upgrade file. Then, the 4th level MCU applies to the 2nd level MCU for the required upgrade files...and so on, until all nth level MCUs that need to be upgraded have obtained the corresponding upgrade programs.
[0085] 10. In the above steps 1 to 9, when the MCU obtains the corresponding upgrade program, it can be upgraded immediately, or it can be upgraded together after all the MCUs have obtained the corresponding upgrade program, or the corresponding upgrade program of the MCU is preset The upgrade time is not limited here.
[0086] The above mainly describes the master-slave MCU upgrade method using the packaging method to upgrade. The following will give a detailed description of another master-slave MCU upgrade method with transparent transmission, please refer to image 3 An example of a method for upgrading a master-slave MCU in the embodiment of the present invention is:
[0087] 301. When a level 1 MCU needs to be upgraded, upgrade the level 1 MCU through the upgrade interface of the level 1 MCU according to the corresponding upgrade procedure;
[0088] When the level 1 MCU needs to be upgraded, the level 1 MCU can be upgraded through the upgrade interface of the level 1 MCU according to the corresponding upgrade procedure. It is understandable that the upgrade process for level 1 is similar to the upgrade process for an MCU alone.
[0089] 302. According to the corresponding upgrade program, upgrade the nth level MCU that needs to be upgraded through the transparent transmission channel and the upgrade interface of the first level MCU;
[0090] When an nth-level MCU needs to be upgraded, the nth-level MCU that needs to be upgraded can be upgraded through the transparent transmission channel and the upgrade interface of the first-level MCU according to the corresponding upgrade procedure. The transparent transmission channel is the first-level MCU For the communication transmission channel between the nth-level MCU, n is greater than or equal to 2. It is understandable that the transparent transmission channel may be a link used to transmit data or signaling when communicating between the 1st level MCU and the nth level MCU. The word “transparent transmission” means that when the first-level MCU communicates with the nth-level MCU, the MCU between the two is transparent to the first-level MCU and the nth-level MCU, and the MCU between the two is only used for forwarding The role of.
[0091] It should be noted that when n is 2, the communication transmission channel is the communication link between the first-level MCU and the second-level MCU; when n is 3, the communication transmission channel is the first-level MCU The communication link with the second-level MCU and the communication link between the second-level MCU and the third-level MCU; when n is 4, the communication transmission channel is the first-level MCU and the third-level MCU. The communication link between the level 2 MCU, the communication link between the level 2 MCU and the level 3 MCU, the communication link between the level 3 MCU and the level 4 MCU, and so on.
[0092] It should be noted that the n-1th level MCU is cascaded with the nth level MCU.
[0093] 303. After all the MCUs that need to be upgraded are upgraded, feedback the upgrade completion information.
[0094] It can be known from step 302 that it is not enough to upgrade only a certain nth level MCU that needs to be upgraded, and it is necessary to upgrade all the MCUs that need to be upgraded in the entire master and slave MCUs. When all the MCUs that need to be upgraded have been upgraded, the upgrade completion information will be fed back.
[0095] In this embodiment, first, when the level 1 MCU needs to be upgraded, the level 1 MCU is upgraded through the upgrade interface of the level 1 MCU according to the corresponding upgrade procedure; then, according to the corresponding upgrade procedure, through transparent transmission The upgrade interface of the channel and the first-level MCU upgrades the nth-level MCU that needs to be upgraded; finally, when all the MCUs that need to be upgraded are upgraded, the upgrade completion information is fed back. In this embodiment, only the level 1 MCU (main MCU) needs to reserve the upgrade interface as the access port for upgrading, and then use the communication connection between the n-1 level MCU and the n level MCU to establish a transparent connection. The transmission channel is used to upgrade any MCU that needs to be upgraded under the master and slave MCUs. It is not necessary for each MCU to reserve at least one upgrade interface, which avoids waste of hardware resources and reduces hardware costs.
[0096] For ease of understanding, according to image 3 In the described embodiment, the following describes the master-slave MCU upgrade method in the embodiment of the present invention with an actual application scenario:
[0097] 1. All the upgrade programs that need to be used are prepared in the computer. If the level 1 MCU (main MCU) needs to be upgraded, upgrade the level 1 MCU through the upgrade interface of the level 1 MCU according to the corresponding upgrade program.
[0098] 2. Then, the computer connects to the 1st level MCU through the upgrade interface, and then connects to the nth level MCU through the transparent transmission channel between the 1st level MCU and the nth level MCU, so as to realize the computer and the nth level MCU Communication, so that the computer upgrades the nth-level MCU. For example, when the level 2 MCU needs to be upgraded, the corresponding transparent transmission channel is: computer-level 1 MCU-level 2 MCU; when the level 4 MCU needs to be upgraded, the corresponding transparent transmission channel is: computer-first Level MCU-Level 2 MCU-Level 3 MCU-Level 4 MCU; When the nth level MCU needs to be upgraded, the corresponding transparent transmission channel is: Computer-Level 1 MCU-Level 2 MCU-……-- N-1th level MCU-nth level MCU (where n is greater than 2).
[0099] 3. The computer communicates with all the MCUs that need to be upgraded in the master and slave MCUs, and then upgrades. When all the MCUs that need to be upgraded are upgraded, it will feedback the upgrade completion information. For example, the computer monitor can display "Upgrade Complete" or ring a bell.
[0100] Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
[0101] In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
[0102] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
[0103] In addition, the functional units in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be realized in the form of hardware or software functional unit.
[0104] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks and other media that can store program codes.
[0105] As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Anti-myostatin antibodies

InactiveUS20100166764A1Avoid wastingMuscular disorderImmunoglobulins against growth factorsMyostatinAntibody
Owner:ELI LILLY & CO

Device and method for monitoring water purifier

ActiveCN104941305AReal Water Production EfficacyAvoid wastingReverse osmosisFiltration separationResidual chlorineTerminal unit
Owner:BEIJING DIWINET TECH CO LTD

Classification and recommendation of technical efficacy words

  • Reduce hardware costs
  • Avoid wasting

System for monitoring plant equipment

ActiveUS20110184547A1Improve sensed data analysisReduce hardware costsRotary drum furnacesRoads maintainenceCement manufacturingSoftware
Owner:HOLCIM US

Multi-robot mapping guidance system based on cloud server and mapping guidance method

PendingCN107544515ALow hardware configuration requirementsReduce hardware costsPosition/course control in two dimensionsGuidance systemNetwork construction
Owner:苏州中德睿博智能科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products