CN103634398A - MOST network-based software upgrading method - Google Patents

MOST network-based software upgrading method Download PDF

Info

Publication number
CN103634398A
CN103634398A CN201310629433.9A CN201310629433A CN103634398A CN 103634398 A CN103634398 A CN 103634398A CN 201310629433 A CN201310629433 A CN 201310629433A CN 103634398 A CN103634398 A CN 103634398A
Authority
CN
China
Prior art keywords
software
terminal
upgrading
storage area
upgrade
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
CN201310629433.9A
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201310629433.9A priority Critical patent/CN103634398A/en
Publication of CN103634398A publication Critical patent/CN103634398A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an MOST network-based software upgrading method. The method comprises the following steps of judging whether software running on at least one terminal needs to be upgraded or not; downloading terminal upgrading software from a remote server by a server through a wireless communication network if the software running on the at least one terminal needs to be upgraded; grouping the terminal upgrading software and packaging into a software upgrading message by the server, sending a broadcasting instruction through an MOST network, and broadcasting the software upgrading message to the at least one terminal; judging whether a terminal needs to be upgraded after each terminal receives the software upgrading message; processing the software upgrading message to form upgrading software if the terminal needs to be upgraded, and writing the upgrading software into a storing device of the terminal. The method has the beneficial effects that software upgrading can be performed on the terminal in a parallel manner, the upgrading efficiency is high, the reliability is good, and even the software upgrading fails, the terminal can still be normally started.

Description

A kind of method for upgrading software based on MOST network
Technical field
The present invention relates to method for upgrading software field, be specifically related to a kind of method for upgrading software based on MOST network.
Background technology
MOST(Media Oriented System Transport) system utilizes optical fiber as Information Conduction medium, carries out the transmission of digital signal.As shown in Figure 1, MOST network adopts the connection topology of ring-type (Ring) conventionally, and various device is as the node in MOST network, and data flow to fixing direction in MOST network.
When node device needs upgrade software, conventionally according to node device characteristic, adopt mmc(multimedia card)/sdcard, usb, serial ports, spi(Serial Peripheral Interface (SPI)) etc. mode, each node device of manually upgrading successively.
The defect that artificial upgrade method exists is:
When MOST network has n node device (n>=2), the total time that upgrading needs is: each node device update time of n*, and to count n larger for MOST apparatus for network node, and the required time of upgrading is longer.If adopt many people mode parallel upgrade, although can reduce upgrading total time, can increase the human cost of upgrading; The probability that artificial upgrading makes a mistake is larger, as omitted, some MOST apparatus for network node is carried out to software upgrading, or the wrong software version of having upgraded, thereby causes the upgrade job of repetition; And when software upgrading makes a mistake, may cause normally operating software of terminal.
Therefore, existing artificial upgrade method efficiency is low, and the probability that makes a mistake is larger, and reliability is not high.
Summary of the invention
The invention provides a kind of method for upgrading software based on MOST network, solved with parallel mode to terminal carry out software automatic updating, upgrading efficiency is high, even good reliability software upgrading failure, the technical problem that terminal still can normally start.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is:
The invention provides a kind of method for upgrading software based on MOST network, described MOST network settings have plural node device, and described plural node device comprises server and at least one terminal, it is characterized in that, comprises the following steps:
Whether the software moving in described at least one terminal of judgement needs upgrading;
If the software moving in described at least one terminal need upgrading, described server by cordless communication network from remote server download terminal upgrade software;
Described server is encapsulated as software upgrading message by described terminal staging software package, by MOST network, sends broadcasting instructions, by described software upgrading message broadcasting, gives described at least one terminal;
Each terminal receives after described software upgrading message, judges whether this terminal needs upgrading; If this terminal needs upgrading, described software upgrading message is processed and formed upgrade software, described upgrade software is write to the memory device of described terminal.
Further, the memory device of described terminal is provided with two fixed storage regions: acquiescence starts software storage area and upgrade software storage area;
Described acquiescence starts software storage area and is set to when starting up of terminal, and the acquiescence of moving in this storage area starts software;
Described upgrade software is write after described upgrade software storage area, and described upgrade software storage area is set to, when starting up of terminal, move the upgrade software in this storage area;
As abnormal in terminal staging, be set to when starting up of terminal, still move described acquiescence and start the acquiescence startup software in software storage area.
Further, by fixed storage zone marker is set, determine when the starting up of terminal, operation acquiescence starts software or upgrade software;
In initial setting up, described acquiescence starts software storage area and is marked as very, and described upgrade software storage area is marked as vacation, and when starting up of terminal, operation acquiescence starts software;
In the normal escalation process of terminal, described upgrade software writes described upgrade software storage area, and described upgrade software storage area is marked as very, and described acquiescence starts software storage area and is marked as vacation, when starting up of terminal, and operation upgrade software;
As abnormal in terminal staging, storage area mark is not changed setting, and described acquiescence starts software storage area and is still marked as very, and described upgrade software storage area is still marked as vacation, and when starting up of terminal, operation acquiescence starts software.
Further, step: whether the software moving in described at least one terminal of judgement needs upgrading; If the software moving in described at least one terminal needs upgrading, described server, by cordless communication network from remote server download terminal upgrade software, comprising:
By cordless communication network, obtain the start context of the terminal staging software on remote server;
Whether identically with described updating software release numbering detect the software version number that each terminal moving;
As the software version number that as described in detecting, at least one terminal is being moved with as described in updating software release numbering not identical, and described server not tool for mounting have the terminal staging software of described start context, or the described terminal staging software of installing is imperfect, described server is downloaded described terminal staging software by cordless communication network from remote server.
Further, in step: described server by cordless communication network from remote server download terminal upgrade software, afterwards, also comprise: whether the file format that judges described terminal staging software is MPEG2-TS form, if not, the file format of described terminal staging software is converted to MPEG2-TS form.
Further, step: each terminal receives after described software upgrading message, judges whether this terminal needs upgrading; If this terminal needs upgrading, described software upgrading message is processed and formed upgrade software, comprising:
Each terminal receives after described software upgrading message, the software version number that each terminal contrast is moving and the software version number in broadcasting packet, if different, the upgrade software of processing formation MPEG2-TS form be verified, preserves, be assembled to described terminal need to the upgrading message receiving.
The mode that the present invention realizes walking abreast by MOST network is carried out software automatic updating to terminal, than using manual artificial upgrading terminals, more can save time and manpower, upgrading efficiency is high, and whole flow process is without artificial extra interference, can guarantee standard and carry out exactly terminal staging, good reliability, even cause software upgrading failure because of abnormal terminals, terminal still can normally start, and can again upgrade.
Accompanying drawing explanation
Fig. 1 is the structural representation of MOST network;
Fig. 2 is the communication connection schematic diagram of MOST network of the present invention and remote server;
Fig. 3 is the software upgrading schematic flow sheet based on MOST network of the embodiment of the present invention;
Fig. 4 is the concrete implementing procedure figure of the software upgrading based on MOST network of the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, specifically illustrate embodiments of the present invention, accompanying drawing is only for reference and use is described, does not form the restriction to scope of patent protection of the present invention.
Embodiments of the invention provide a kind of method for upgrading software based on MOST network, as shown in Figure 1, described MOST network settings have plural node device, in the present embodiment, are node device A-H, described plural node device comprises server and at least one terminal, in the present embodiment, node device A is server, and node device B-H is terminal, as shown in Figure 3, the described method for upgrading software based on MOST network comprises the following steps:
Whether the software moving in described at least one terminal of judgement needs upgrading;
If the software moving in described at least one terminal need upgrading, described server by cordless communication network from remote server download terminal upgrade software;
Described server is encapsulated as software upgrading message by described terminal staging software package, by MOST network, sends broadcasting instructions, by described software upgrading message broadcasting, gives described at least one terminal;
Each terminal receives after described software upgrading message, judges whether this terminal needs upgrading; If this terminal needs upgrading, described software upgrading message is processed and formed upgrade software, described upgrade software is write to the memory device of described terminal.
In an embodiment of the present invention, as shown in Figure 2, remote server is being deposited the upgrade software of terminal, and upgrade software comprises that (common form is apk for operating system (as conventional Linux, Android, IOS, WINCE etc.) and application program, exe, ipa etc.) etc.;
Described server is MOST apparatus for network node A, and integrated wireless communication hardware module, communicates by 2G/3G/4G mode and remote server, and the MOST terminal staging software of remote server is downloaded in this locality;
Described terminal is apparatus for network node B-H, integrated display screen and touch-screen, and user can carry out with it interactive operation.
In the present embodiment, server is connected with wireless base station in 2G/3G/4G mode by integrated wireless communication hardware module, and wireless base station and remote server are by ieee802.x procotol link communication.Server is connected by Optical Fiber Physical looped network with terminal, follows MOST procotol transmission data.
In the present embodiment, step: whether the software moving in described at least one terminal of judgement needs upgrading; If the software moving in described at least one terminal needs upgrading, described server, by cordless communication network from remote server download terminal upgrade software, comprising:
By cordless communication network, obtain the start context of the terminal staging software on remote server;
Whether identically with described updating software release numbering detect the software version number that each terminal moving;
As the software version number that as described in detecting, at least one terminal is being moved with as described in updating software release numbering not identical, and described server not tool for mounting have the terminal staging software of described start context, or the described terminal staging software of installing is imperfect, described server is downloaded described terminal staging software by cordless communication network from remote server.
In the present embodiment, supporting document breakpoint transmission function between remote server and server.Terminal staging software is in transmitting procedure, and when wireless network connection recovers again normal after occurring extremely, server can continue to download remaining terminal staging software content, until download complete terminal staging software.
In the present embodiment, after downloading complete terminal staging software at described server from remote server by cordless communication network, whether the file format that judges described terminal staging software is MPEG2-TS form, if not, the file format of described terminal staging software is converted to MPEG2-TS form.
In the present embodiment, step: each terminal receives after described software upgrading message, judges whether this terminal needs upgrading; If this terminal needs upgrading, described software upgrading message is processed and formed upgrade software, described upgrade software is write to the memory device of described terminal, comprising:
Each terminal receives after described software upgrading message, the software version number that each terminal contrast is moving and the software version number in broadcasting packet, if different, the upgrade software of processing formation MPEG2-TS form be verified, preserves, be assembled to described terminal need to the upgrading message receiving;
Terminal is converted into the upgrading format software of terminal hardware support by this software and writes in the fixing region of terminal storage equipment (NANDFLASH/EMMC/SDCARD etc.).Each terminal is all these flow processs of processing that walk abreast.
In an embodiment of the present invention, the memory device of described terminal is provided with two fixed storage regions: acquiescence starts software storage area and upgrade software storage area;
Described acquiescence starts software storage area and is set to when starting up of terminal, and the acquiescence of moving in this storage area starts software;
Described upgrade software is write after described upgrade software storage area, and described upgrade software storage area is set to, when starting up of terminal, move the upgrade software in this storage area;
As abnormal in terminal staging, be set to when starting up of terminal, still move described acquiescence and start the acquiescence startup software in software storage area.
In the concrete execution mode of the embodiment of the present invention, by being set, fixed storage zone marker determines when the starting up of terminal, operation acquiescence starts software or upgrade software;
In initial setting up, described acquiescence starts software storage area and is marked as very, and described upgrade software storage area is marked as vacation, and when starting up of terminal, operation acquiescence starts software;
In the normal escalation process of terminal, described upgrade software writes described upgrade software storage area, and described upgrade software storage area is marked as very, and described acquiescence starts software storage area and is marked as vacation, when starting up of terminal, and operation upgrade software;
As abnormal in terminal staging, storage area mark is not changed setting, and described acquiescence starts software storage area and is still marked as very, and described upgrade software storage area is still marked as vacation, and when starting up of terminal, operation acquiescence starts software.
As shown in Figure 4, the concrete implementing procedure of the method for upgrading software based on MOST network provided by the invention is:
Server and remote server adopt 2G/3G/4G wireless communication;
Judge that whether server and the work of remote server communication link is normal, as abnormal in communication link, proceed network service; As normal in communication link,
Server determines whether needs upgrade software, and if do not needed upgrading, MOST upgrade software flow process finishes; As needs upgrading, server is downloaded the upgrade software file of node device;
Judge that whether server and the work of remote server communication link is normal, as abnormal in communication link, proceed network service; As normal in communication link,
Server is downloaded complete node device upgrade software;
Judge whether upgrade software is MPEG2-TS form, if so, server is by the upgrade software of the MPEG2-TS form of MOST optical-fiber network broadcast terminal; If not, server becomes terminal staging Software package after MPEG2-TS form, then passes through the upgrade software of the MPEG2-TS form of MOST optical-fiber network broadcast terminal;
Judge whether terminal needs upgrade software, if do not needed upgrade software, keep SOT state of termination; As needs upgrade software, storage upgrade software;
Judge that whether terminal staging software is abnormal, if terminal staging software is normal, terminal software is normally upgraded, and MOST upgrade software flow process finishes; If terminal staging software anomaly, terminal staging failure, terminal will start with backup software, and backup software namely described acquiescence starts software, and MOST upgrade software flow process finishes.
Above disclosed is only preferred embodiment of the present invention, can not limit the scope of the present invention with this, and the equivalent variations of therefore doing according to the present patent application the scope of the claims, still belongs to the scope that the present invention is contained.

Claims (6)

1. the method for upgrading software based on MOST network, described MOST network settings have plural node device, and described plural node device comprises server and at least one terminal, it is characterized in that, comprises the following steps:
Whether the software moving in described at least one terminal of judgement needs upgrading;
If the software moving in described at least one terminal need upgrading, described server by cordless communication network from remote server download terminal upgrade software;
Described server is encapsulated as software upgrading message by described terminal staging software package, by MOST network, sends broadcasting instructions, by described software upgrading message broadcasting, gives described at least one terminal;
Each terminal receives after described software upgrading message, judges whether this terminal needs upgrading; If this terminal needs upgrading, described software upgrading message is processed and formed upgrade software, described upgrade software is write to the memory device of described terminal.
2. the method for upgrading software based on MOST network according to claim 1, is characterized in that:
The memory device of described terminal is provided with two fixed storage regions: acquiescence starts software storage area and upgrade software storage area;
Described acquiescence starts software storage area and is set to when starting up of terminal, and the acquiescence of moving in this storage area starts software;
Described upgrade software is write after described upgrade software storage area, and described upgrade software storage area is set to, when starting up of terminal, move the upgrade software in this storage area;
As abnormal in terminal staging, be set to when starting up of terminal, still move described acquiescence and start the acquiescence startup software in software storage area.
3. the method for upgrading software based on MOST network according to claim 2, is characterized in that:
By fixed storage zone marker is set, determine when the starting up of terminal, operation acquiescence starts software or upgrade software;
In initial setting up, described acquiescence starts software storage area and is marked as very, and described upgrade software storage area is marked as vacation, and when starting up of terminal, operation acquiescence starts software;
In the normal escalation process of terminal, described upgrade software writes described upgrade software storage area, and described upgrade software storage area is marked as very, and described acquiescence starts software storage area and is marked as vacation, when starting up of terminal, and operation upgrade software;
As abnormal in terminal staging, storage area mark is not changed setting, and described acquiescence starts software storage area and is still marked as very, and described upgrade software storage area is still marked as vacation, and when starting up of terminal, operation acquiescence starts software.
4. the method for upgrading software based on MOST network according to claim 1, is characterized in that:
Step: whether the software moving in described at least one terminal of judgement needs upgrading; If the software moving in described at least one terminal needs upgrading, described server, by cordless communication network from remote server download terminal upgrade software, comprising:
By cordless communication network, obtain the start context of the terminal staging software on remote server;
Whether identically with described updating software release numbering detect the software version number that each terminal moving;
As the software version number that as described in detecting, at least one terminal is being moved with as described in updating software release numbering not identical, and described server not tool for mounting have the terminal staging software of described start context, or the described terminal staging software of installing is imperfect, described server is downloaded described terminal staging software by cordless communication network from remote server.
5. the method for upgrading software based on MOST network according to claim 1, is characterized in that:
In step: described server, afterwards, also comprises from remote server download terminal upgrade software by cordless communication network:
Whether the file format that judges described terminal staging software is MPEG2-TS form, if not, the file format of described terminal staging software is converted to MPEG2-TS form.
6. the method for upgrading software based on MOST network according to claim 1, is characterized in that: step: each terminal receives after described software upgrading message, judges whether this terminal needs upgrading; If this terminal needs upgrading, described software upgrading message is processed and formed upgrade software, comprising:
Each terminal receives after described software upgrading message, the software version number that each terminal contrast is moving and the software version number in broadcasting packet, if different, described terminal need to be verified, preserves, assemble to process to the upgrading message receiving and be formed upgrade software.
CN201310629433.9A 2013-11-29 2013-11-29 MOST network-based software upgrading method Pending CN103634398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310629433.9A CN103634398A (en) 2013-11-29 2013-11-29 MOST network-based software upgrading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310629433.9A CN103634398A (en) 2013-11-29 2013-11-29 MOST network-based software upgrading method

Publications (1)

Publication Number Publication Date
CN103634398A true CN103634398A (en) 2014-03-12

Family

ID=50215014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310629433.9A Pending CN103634398A (en) 2013-11-29 2013-11-29 MOST network-based software upgrading method

Country Status (1)

Country Link
CN (1) CN103634398A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740391A (en) * 2016-01-28 2016-07-06 叶少甘 Vehicle-mounted MOST multi-ring network based advertisement pushing system and method
CN107770279A (en) * 2017-10-31 2018-03-06 深圳市银河风云网络系统股份有限公司 Remote upgrade method and system
CN114036080A (en) * 2021-11-09 2022-02-11 许昌许继软件技术有限公司 Method and device for upgrading program by using communication serial port of display terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070243900A1 (en) * 2006-04-18 2007-10-18 Spec Tralink Method and apparatus for broadcasting software update information to mobile phones over a wireless communications network
CN101060427A (en) * 2006-04-19 2007-10-24 华为技术有限公司 A system and method for realizing the remote software updating
CN102064955A (en) * 2009-11-17 2011-05-18 中兴通讯股份有限公司 Method and system for remotely upgrading optical network unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070243900A1 (en) * 2006-04-18 2007-10-18 Spec Tralink Method and apparatus for broadcasting software update information to mobile phones over a wireless communications network
CN101060427A (en) * 2006-04-19 2007-10-24 华为技术有限公司 A system and method for realizing the remote software updating
CN102064955A (en) * 2009-11-17 2011-05-18 中兴通讯股份有限公司 Method and system for remotely upgrading optical network unit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740391A (en) * 2016-01-28 2016-07-06 叶少甘 Vehicle-mounted MOST multi-ring network based advertisement pushing system and method
CN107770279A (en) * 2017-10-31 2018-03-06 深圳市银河风云网络系统股份有限公司 Remote upgrade method and system
CN107770279B (en) * 2017-10-31 2020-12-29 深圳市银河风云网络系统股份有限公司 Remote upgrading method and system
CN114036080A (en) * 2021-11-09 2022-02-11 许昌许继软件技术有限公司 Method and device for upgrading program by using communication serial port of display terminal

Similar Documents

Publication Publication Date Title
CN102830984B (en) Method, chip and the communication terminal that firmware updates
CN109101261A (en) A kind of the remote online upgrade method and system of data acquisition transmission instrument terminal
US9471300B2 (en) Wireless firmware upgrades to an alarm security panel
CN101593119B (en) Method and device for firmware over-the-air of exclusive flash memory combined equipment
CN104750515A (en) Firmware version upgrading method and system
CN103685487A (en) Child node updating method in wireless communication network
US20120117557A1 (en) Method and system for upgrading wireless data card
CN102693139A (en) Method and system for wirelessly upgrading mobile phone software
CN104090796A (en) Embedded device program updating method and system
CN105912340A (en) Primary device, remote control and overhead upgrading method of remote control
CN103530146A (en) Low-power-consumption embedded device remote wireless updating method
CN102946600B (en) A kind of mobile terminal parameter firmware upgrade method and system
CN102711095B (en) A kind of method of the node in wireless sensor network being carried out to radio upgrade
CN105743948A (en) Network version upgrading method and apparatus
CN102646043A (en) Method and device for upgrading mobile terminal software and mobile terminal
CN102346673A (en) Method and device for upgrading mobile phone system
CN103685489A (en) File transmitting method in wireless network
CN102541604A (en) Remote upgrading method, remote upgrading terminal equipment and remote upgrading system
CN102541595A (en) Method and device for upgrading intelligent device and intelligent device
TW201621647A (en) Operating system updating method
CN110262820A (en) Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
CN102333240A (en) Set-top box and online upgrade method thereof
CN101355434A (en) Method and apparatus for upgrading software of multimedia remote terminal
CN103442272A (en) System upgrading method
WO2022257927A1 (en) Key burning method and apparatus, electronic device board card, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140312