CN112306511A - Multicast upgrading method and device - Google Patents
Multicast upgrading method and device Download PDFInfo
- Publication number
- CN112306511A CN112306511A CN202011213691.5A CN202011213691A CN112306511A CN 112306511 A CN112306511 A CN 112306511A CN 202011213691 A CN202011213691 A CN 202011213691A CN 112306511 A CN112306511 A CN 112306511A
- Authority
- CN
- China
- Prior art keywords
- upgrading
- upgrade package
- upgrade
- multicast
- package
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 230000005540 biological transmission Effects 0.000 claims description 7
- 230000008569 process Effects 0.000 claims description 7
- 230000008676 import Effects 0.000 claims description 4
- 238000007405 data analysis Methods 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to a multicast upgrading method and a device, which are used for upgrading a plurality of devices with different chip types in a multicast group in a unified software version, and the method comprises the following steps: importing a mirror image package containing image files of different devices; splitting the mirror image package to generate a plurality of image files corresponding to each device; assembling the required image files according to the chip types selected by the user to form an upgrade package meeting the upgrade requirement; sending the upgrade package to a multicast group in a local area network; and after receiving the upgrade package, writing the upgrade package into equipment and finishing upgrading. The invention can adapt to different types of chips and simultaneously carry out multicast upgrading on equipment carrying different chips.
Description
Technical Field
The present invention relates to the field of software upgrading technology of devices, and in particular, to a multicast upgrading method and apparatus.
Background
The multicast protocol (multicast protocol) can copy data sent by a host to a plurality of devices joining the multicast group through a network switch or a routing device, and is a one-to-many communication mode, and the advantage of transmitting data in a multicast mode is very obvious, and includes: system resources and bandwidth of a host sending data can be saved; multicast is selectively replicated to a requesting device; multicast can be widely spread across public networks, while broadcast can only be spread within local area networks or special broadcast networks; multicasting can save bandwidth of the network backbone.
However, the traditional multicast upgrade scheme only supports the chips of the respective suppliers of the chips, and different types of chips are usually mounted on the devices with various solutions, and under the condition, the devices can be generally upgraded one by one, and cannot be processed in parallel and one-to-many upgrade cannot be realized. It takes several minutes to complete the whole software upgrading process of one data communication terminal according to the above normal operation flow. However, when the fault is actually processed, the number of the related terminals is often thousands of terminals, the efficiency is low by adopting the traditional upgrading method, and a large amount of manpower and material resource cost is consumed.
Disclosure of Invention
Therefore, there is a need to provide a multicast upgrading method and apparatus, which can adapt to different types of chips and simultaneously perform multicast upgrading on devices carrying different chips.
In order to achieve the above purpose, the invention adopts the following technical scheme.
The invention provides a multicast upgrading method, which is used for upgrading a plurality of devices with different chip types in a multicast group in a unified software version, and comprises the following steps:
importing a mirror image package containing image files of different devices;
splitting the mirror image package to generate a plurality of image files corresponding to each device;
assembling the required image files according to the chip types selected by the user to form an upgrade package meeting the upgrade requirement;
sending the upgrade package to a multicast group in a local area network;
and after receiving the upgrade package, writing the upgrade package into equipment and finishing upgrading.
In the above multicast upgrading method, after receiving the upgrade package, before writing the upgrade package into the device and completing the upgrading step, the method further includes the steps of:
analyzing whether the upgrade package is valid;
if the upgrade package is valid, entering the next step, otherwise, discarding the upgrade package.
In the multicast upgrade method, the step of sending the upgrade package to the multicast group in the lan specifically includes:
setting the length and time interval of each data packet transmission;
and circularly sending the upgrade package to the multicast group.
In the multicast upgrading method, after receiving the upgrade package, the step of writing the upgrade package into the device and completing the upgrading specifically includes:
powering on and starting the equipment;
and writing the upgrade package into a flash memory of the equipment before the starting process is completed.
In the multicast upgrading method, the image file is an uboot file, a kernel file, a rootfs file and/or an intelligent frame file.
The invention also provides a multicast upgrading device, which is used for upgrading the software versions of a plurality of devices with different chip types in a multicast group uniformly, and comprises the following steps:
the import module is used for importing the mirror image package containing the image files of different devices;
the data splitting module is used for splitting the mirror image package to generate a plurality of image files corresponding to each device;
the data assembly module is used for assembling the required image file according to the chip type selected by the user to form an upgrade package meeting the upgrade requirement;
the data sending module is used for sending the upgrade package to a multicast group in a local area network;
and the upgrading module is used for writing the upgrading packet into equipment and finishing upgrading after receiving the upgrading packet.
In the foregoing multicast upgrading apparatus, the method further includes:
and the data analysis module is used for analyzing whether the upgrade package is effective or not, if so, transmitting the upgrade package to the upgrade module, and otherwise, discarding the upgrade package.
In the multicast upgrading apparatus, the data sending module is specifically configured to:
setting the length and time interval of each data packet transmission;
and circularly sending the upgrade package to the multicast group.
In the multicast upgrading device, the upgrading module is specifically configured to:
powering on and starting the equipment;
and writing the upgrade package into a flash memory of the equipment before the starting process is completed.
In the multicast upgrading device, the image file is an uboot file, a kernel file, a rootfs file and/or an intelligent frame file.
By adopting the multicast upgrading scheme, the mirror image packets matched with all chip types can be introduced into the upgrading platform at one time, and different image files corresponding to different chip types are sent to corresponding equipment through the steps of data splitting, data assembling, sending and the like, so that the equipment can be upgraded simultaneously in batches, the problem of matching of the equipment with different chips is solved, the multicast upgrading time can be effectively reduced, the multicast upgrading efficiency is improved, the production cost is reduced, and the product competitiveness is improved.
Drawings
Fig. 1 is a schematic flowchart of a multicast upgrading method in this embodiment;
fig. 2 is a block diagram of the multicast upgrade apparatus in this embodiment.
The implementation of the objects of the present invention and their functions and principles will be further explained in the detailed description with reference to the attached drawings.
Detailed Description
The following further description is made with reference to the drawings and specific embodiments.
As shown in fig. 1, this embodiment provides a multicast upgrading method for performing unified software version upgrading on multiple devices of different chip types in a multicast group, where the method mainly includes the following steps:
s10: importing a mirror image package containing image files of different devices;
s20: splitting the mirror image package to generate a plurality of image files corresponding to each device;
s30: assembling the required image files according to the chip types selected by the user to form an upgrade package meeting the upgrade requirement;
s40: sending the upgrade package to a multicast group in a local area network;
s50: and after receiving the upgrade package, writing the upgrade package into equipment and finishing upgrading.
The embodiment is matched with a unified multicast upgrading platform, after a multicast environment is established, a user selects a mirror image package to be upgraded, the mirror image package is a unified version upgrading package and contains image files of different devices, the image files are uboot files, kernel files, rootfs files and/or intelligent frames and the like, and the embedded chip BOOT software and the windows/linux UI application software are involved.
Wherein, step 20 specifically includes:
and splitting the mirror image package according to the types of the chips, for example, different types of chips have different lengths of the corresponding image files, and further generate a plurality of image files corresponding to each device.
Step 30 specifically comprises:
and assembling the image files according to the chip type selected by the user to form an upgrade package meeting the upgrade requirement. For example, the user selects to upgrade the equipment of the MTK chip, and at this time, the system assembles the image files corresponding to the MTK chip in sequence to form an upgrade package meeting the upgrade requirement of the equipment containing the MTK chip.
Step 40 specifically comprises:
s41: setting the length and time interval of each data packet transmission;
s42: and circularly sending the upgrade package to the multicast group.
As described above, the length of each transmission packet differs depending on the chip type of the device, and the shorter the interval of transmitting packets, the shorter the upgrade time, but the worse the stability, whereas the longer the interval, the longer the upgrade time, but the more the stability increases.
After the device receives the upgrade package, writing the upgrade package into the device and completing the upgrade, specifically comprising:
powering on and starting the equipment;
and writing the upgrade package into a flash memory of the equipment before the starting process is completed.
After the equipment receives the upgrade package, the equipment is triggered to be powered on and started, and meanwhile, the upgrade package is written into a flash memory of the equipment, so that the upgrade is completed.
In this embodiment, before step S50, the following steps are added:
s45: analyzing whether the upgrade package is valid; if yes, go to step S50; otherwise, go to step S46;
s46: and discarding the upgrade package.
And invalid upgrade packages which do not meet the upgrade requirements are discarded, so that the equipment upgrade failure is avoided. After being discarded, the upgrade package can continue to be received in the next cycle until the upgrade package is effective.
Therefore, the multicast upgrading method of the embodiment can be adapted to different types of chips, and can be used for simultaneously carrying out multicast upgrading on devices carrying different chips.
As shown in fig. 2, this embodiment further provides a multicast upgrading apparatus 100, configured to perform unified software version upgrading on multiple devices of different chip types in a multicast group, where the apparatus includes:
an import module 10, configured to import a mirror package containing image files of different devices;
the data splitting module 20 is configured to split the mirror image package to generate a plurality of image files corresponding to each device;
the data assembly module 30 is used for assembling the required image files according to the chip types selected by the user to form an upgrade package meeting the upgrade requirement;
a data sending module 40, configured to send the upgrade package to a multicast group in a local area network;
and the upgrading module 50 is used for writing the upgrading packet into equipment and finishing upgrading after receiving the upgrading packet.
Specifically, the multicast upgrading apparatus 100 further includes:
and a data analysis module 60, configured to analyze whether the upgrade package is valid, and if so, transmit the upgrade package to the upgrade module 50, otherwise, discard the upgrade package.
And invalid upgrade packages which do not meet the upgrade requirements are discarded, so that the equipment upgrade failure is avoided.
The data sending module 40 is specifically configured to:
setting the length and time interval of each data packet transmission;
and circularly sending the upgrade package to the multicast group.
The upgrade module 50 is specifically configured to:
powering on and starting the equipment;
and writing the upgrade package into a flash memory of the equipment before the starting process is completed.
The functions and principles of the modules of this embodiment can be described with reference to the embodiment shown in fig. 1, and are not described herein again.
In summary, by adopting the multicast upgrading scheme of the present invention, the image packets adapted to all chip types can be introduced into the upgrading platform at one time, and then different image files corresponding to different chip types are sent to corresponding devices through the steps of data splitting, data assembling, sending, and the like, so that the devices can be upgraded simultaneously and in batches, thereby not only solving the problem of adapting devices of different chips, but also effectively reducing the multicast upgrading time and improving the multicast upgrading efficiency, thereby reducing the production cost and improving the product competitiveness.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention.
Claims (10)
1. A multicast upgrading method is used for upgrading the software version of a plurality of devices with different chip types in a multicast group, and is characterized by comprising the following steps:
importing a mirror image package containing image files of different devices;
splitting the mirror image package to generate a plurality of image files corresponding to each device;
assembling the required image files according to the chip types selected by the user to form an upgrade package meeting the upgrade requirement;
sending the upgrade package to a multicast group in a local area network;
and after receiving the upgrade package, writing the upgrade package into equipment and finishing upgrading.
2. The multicast upgrade method according to claim 1, wherein, after receiving the upgrade package, before the step of writing the upgrade package to a device and completing the upgrade, further comprising the steps of:
analyzing whether the upgrade package is valid;
if the upgrade package is valid, entering the next step, otherwise, discarding the upgrade package.
3. The multicast upgrading method according to claim 1, wherein the step of sending the upgrade package to the multicast group in the local area network specifically includes:
setting the length and time interval of each data packet transmission;
and circularly sending the upgrade package to the multicast group.
4. The multicast upgrading method according to claim 3, wherein the step of writing the upgrade package into the device and completing upgrading after receiving the upgrade package specifically comprises:
powering on and starting the equipment;
and writing the upgrade package into a flash memory of the equipment before the starting process is completed.
5. The multicast upgrading method as claimed in any one of claims 1 to 4, wherein the image file is an uboot file, a kernel file, a rootfs file and/or an intelligent frame file.
6. A multicast upgrading device is used for upgrading a plurality of devices with different chip types in a multicast group in a unified software version, and is characterized by comprising the following steps:
the import module is used for importing the mirror image package containing the image files of different devices;
the data splitting module is used for splitting the mirror image package to generate a plurality of image files corresponding to each device;
the data assembly module is used for assembling the required image file according to the chip type selected by the user to form an upgrade package meeting the upgrade requirement;
the data sending module is used for sending the upgrade package to a multicast group in a local area network;
and the upgrading module is used for writing the upgrading packet into equipment and finishing upgrading after receiving the upgrading packet.
7. The multicast upgrade apparatus according to claim 6, further comprising:
and the data analysis module is used for analyzing whether the upgrade package is effective or not, if so, transmitting the upgrade package to the upgrade module, and otherwise, discarding the upgrade package.
8. The multicast upgrading apparatus according to claim 6, wherein the data sending module is specifically configured to:
setting the length and time interval of each data packet transmission;
and circularly sending the upgrade package to the multicast group.
9. The multicast upgrading apparatus according to claim 8, wherein the upgrading module is specifically configured to:
powering on and starting the equipment;
and writing the upgrade package into a flash memory of the equipment before the starting process is completed.
10. The multicast upgrading apparatus according to any one of claims 6 to 9, wherein the image file is an uboot file, a kernel file, a rootfs file, and/or an intelligent frame file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011213691.5A CN112306511A (en) | 2020-11-04 | 2020-11-04 | Multicast upgrading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011213691.5A CN112306511A (en) | 2020-11-04 | 2020-11-04 | Multicast upgrading method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112306511A true CN112306511A (en) | 2021-02-02 |
Family
ID=74324788
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011213691.5A Pending CN112306511A (en) | 2020-11-04 | 2020-11-04 | Multicast upgrading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112306511A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115051915A (en) * | 2022-05-11 | 2022-09-13 | 常州移远通信技术有限公司 | Module upgrading method, apparatus, medium, device and program product |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20000059426A (en) * | 1999-03-03 | 2000-10-05 | 서평원 | Multicasting software upgrade system in network and multicasting software upgrade method using the same |
CN102495744A (en) * | 2011-11-29 | 2012-06-13 | 湖南南车时代电动汽车股份有限公司 | Control software upgrading method of electronic control devices of electric automobile based on controller area network (CAN) bus |
CN103984581A (en) * | 2014-05-30 | 2014-08-13 | 乐视致新电子科技(天津)有限公司 | Firmware upgrading method and device of chip |
CN105763350A (en) * | 2014-12-16 | 2016-07-13 | 中兴通讯股份有限公司 | Method of using multicast mode to upgrade version and apparatus thereof |
CN108920159A (en) * | 2018-06-29 | 2018-11-30 | 广州视源电子科技股份有限公司 | A kind of security upgrading method, device and electronic equipment |
CN109375934A (en) * | 2018-09-30 | 2019-02-22 | 天津天地伟业电子工业制造有限公司 | A kind of upgrade method of network cluster device systems |
CN109597639A (en) * | 2018-12-04 | 2019-04-09 | 深圳市创维软件有限公司 | A kind of method for upgrading software, device, equipment and medium |
CN110045972A (en) * | 2019-03-25 | 2019-07-23 | 深圳市友华通信技术有限公司 | ONU online upgrading method and system |
CN111726235A (en) * | 2020-06-16 | 2020-09-29 | 四川九州电子科技股份有限公司 | Automatic batch upgrading method and system for data communication terminal based on multicast protocol |
-
2020
- 2020-11-04 CN CN202011213691.5A patent/CN112306511A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20000059426A (en) * | 1999-03-03 | 2000-10-05 | 서평원 | Multicasting software upgrade system in network and multicasting software upgrade method using the same |
CN102495744A (en) * | 2011-11-29 | 2012-06-13 | 湖南南车时代电动汽车股份有限公司 | Control software upgrading method of electronic control devices of electric automobile based on controller area network (CAN) bus |
CN103984581A (en) * | 2014-05-30 | 2014-08-13 | 乐视致新电子科技(天津)有限公司 | Firmware upgrading method and device of chip |
CN105763350A (en) * | 2014-12-16 | 2016-07-13 | 中兴通讯股份有限公司 | Method of using multicast mode to upgrade version and apparatus thereof |
CN108920159A (en) * | 2018-06-29 | 2018-11-30 | 广州视源电子科技股份有限公司 | A kind of security upgrading method, device and electronic equipment |
CN109375934A (en) * | 2018-09-30 | 2019-02-22 | 天津天地伟业电子工业制造有限公司 | A kind of upgrade method of network cluster device systems |
CN109597639A (en) * | 2018-12-04 | 2019-04-09 | 深圳市创维软件有限公司 | A kind of method for upgrading software, device, equipment and medium |
CN110045972A (en) * | 2019-03-25 | 2019-07-23 | 深圳市友华通信技术有限公司 | ONU online upgrading method and system |
CN111726235A (en) * | 2020-06-16 | 2020-09-29 | 四川九州电子科技股份有限公司 | Automatic batch upgrading method and system for data communication terminal based on multicast protocol |
Non-Patent Citations (1)
Title |
---|
黑光;: "升级固件提升MP3功能", 电脑知识与技术(经验技巧), no. 03 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115051915A (en) * | 2022-05-11 | 2022-09-13 | 常州移远通信技术有限公司 | Module upgrading method, apparatus, medium, device and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8484318B2 (en) | Method, apparatus and system for upgrading through multicast | |
CN112788128B (en) | Business information pushing method and device, storage medium and electronic device | |
WO2012012983A1 (en) | Processing method and device for fota update | |
CN111212387A (en) | Test method and system for wireless equipment, electronic equipment and test device | |
CN111510419A (en) | Data compression method and base station | |
CN113596832A (en) | Network connection establishing method and device, storage medium and electronic device | |
CN112306511A (en) | Multicast upgrading method and device | |
CN111224903A (en) | Data transmission method, data transmission equipment and computer readable storage medium | |
CN113194494B (en) | Air interface resource control method, device, network side equipment and terminal | |
CN112637221B (en) | Equipment control method and device | |
CN109818901B (en) | Method, device and system for determining message header compression mechanism | |
CN112073488A (en) | Method and device for processing request | |
CN109120680B (en) | Control system, method and related equipment | |
CN110769460B (en) | BSR transmission method, device, related equipment and storage medium | |
CN111200519A (en) | Data processing method and device, BBU, access network equipment and storage medium | |
CN103491557A (en) | Processing method and device for base station upgrading data | |
CN113572698B (en) | Multicast group capacity testing method and device, storage medium and electronic device | |
CN115514712B (en) | Data processing method, device, terminal and network side equipment | |
CN111200578A (en) | Communication method, client device and server device | |
CN114245317B (en) | Data processing method, device and computer readable storage medium | |
CN112953988B (en) | Data docking method and device based on FTP | |
CN113934591A (en) | Data monitoring method and device, storage medium and electronic device | |
CN112148501A (en) | Communication method and device for multiple sub-applications, electronic device and storage medium | |
CN112445659B (en) | Multi-protocol high-speed serdes test implementation method and system | |
CN111294949B (en) | Method and device for receiving and sending policy information, terminal and base station |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |