CN112306511A - Multicast upgrading method and device - Google Patents

Multicast upgrading method and device Download PDF

Info

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
Application number
CN202011213691.5A
Other languages
Chinese (zh)
Inventor
王通源
李青松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Youhua Software Technology Co ltd
Original Assignee
Shenzhen Youhua Software Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Youhua Software Technology Co ltd filed Critical Shenzhen Youhua Software Technology Co ltd
Priority to CN202011213691.5A priority Critical patent/CN112306511A/en
Publication of CN112306511A publication Critical patent/CN112306511A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

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

Multicast upgrading method and device
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.
CN202011213691.5A 2020-11-04 2020-11-04 Multicast upgrading method and device Pending CN112306511A (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
Title
黑光;: "升级固件提升MP3功能", 电脑知识与技术(经验技巧), no. 03 *

Cited By (1)

* Cited by examiner, † Cited by third party
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
CN103346974B (en) Controlling method of service process and network device
US8484318B2 (en) Method, apparatus and system for upgrading through multicast
CN113300877B (en) Network slice management method and equipment
CN103843418A (en) Method of service agent, modem and terminal
CN112788128B (en) Business information pushing method and device, storage medium and electronic device
CN113141671B (en) Communication method and device of wifi device and computer readable storage medium
CN111510419A (en) Data compression method and base station
CN111212387A (en) Test method and system for wireless equipment, electronic equipment and test 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
CN109120680B (en) Control system, method and related equipment
CN112073488A (en) Method and device for processing request
CN110769460B (en) BSR transmission method, device, related equipment and storage medium
CN115022424B (en) Hydropower LCU controller network card virtual control method, system, equipment and medium thereof
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
CN114245317B (en) Data processing method, device and computer readable storage medium
CN114697210A (en) Network performance guarantee method and device
CN112953988B (en) Data docking method and device based on FTP
CN113934552A (en) Method and device for determining function code, storage medium and electronic device
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