CN110083375A - A kind of equipment room interaction carries out the method and device of OTA upgrading - Google Patents

A kind of equipment room interaction carries out the method and device of OTA upgrading Download PDF

Info

Publication number
CN110083375A
CN110083375A CN201910239789.9A CN201910239789A CN110083375A CN 110083375 A CN110083375 A CN 110083375A CN 201910239789 A CN201910239789 A CN 201910239789A CN 110083375 A CN110083375 A CN 110083375A
Authority
CN
China
Prior art keywords
equipment
upgrading
ota
ota upgrading
master
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
CN201910239789.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.)
Allwinner Technology Co Ltd
Original Assignee
Allwinner 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 Allwinner Technology Co Ltd filed Critical Allwinner Technology Co Ltd
Priority to CN201910239789.9A priority Critical patent/CN110083375A/en
Publication of CN110083375A publication Critical patent/CN110083375A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

Technical solution of the present invention includes a kind of method and device of equipment room interaction progress OTA upgrading, which is characterized in that this method comprises: S10, is that the first equipment and the second equipment establish communication connection;S20 is coordinated and is determined to the master-slave relationship of the first equipment and the second equipment;S30 uses main equipment to carry out OTA upgrading from equipment after determining master-slave relationship, exchange master-slave relationship and progress OTA upgrading again after the completion of upgrading.The invention has the benefit that making the equipment of only single system, OTA upgrading also can be safely carried out;Under the premise of guaranteeing OTA power down safety, the standby system on individual equipment is saved, cost is advantageously reduced.

Description

A kind of equipment room interaction carries out the method and device of OTA upgrading
Technical field
The present invention relates to the method and devices that a kind of interaction of equipment room carries out OTA upgrading, belong to computer field.
Background technique
More and more smart machines need to possess OTA upgrading ability, with upgrade function, repair loophole.It supports to upgrade If, then it needs to save standby system in a device, dual system is such as supported, or support a recovery system, to rise When grade main system after the power down of midway, if main system is destroyed, moreover it is possible to start to standby system and continue to complete upgrading.But it supports Standby system is then intended to more spaces flash, increases cost.
Prior art discloses a kind of upgrade method of equipment, device and household appliance (application numbers CN201810160487.8), it discloses more similar technical solutions, i.e., be all assisted by an equipment another equipment into Row upgrading, but the equipment that documents disclose that help cannot directly network is upgraded, but device looses power when Wait the unstable factor that exists and can not upgrade.
Summary of the invention
The present invention provides the method and devices that a kind of interaction of equipment room carries out OTA upgrading, so that only single system is set It is standby, it also can safely carry out OTA upgrading.
Technical solution of the present invention includes a kind of method for carrying out OTA upgrading between equipment mutually, which is characterized in that the party Method includes: S10, is that the first equipment and the second equipment establish communication connection;S20 closes the principal and subordinate of the first equipment and the second equipment System is coordinated and is determined;S30 uses main equipment after determining master-slave relationship to carry out OTA upgrading, tune after the completion of upgrading from equipment It changes master-slave relationship and carries out OTA upgrading again.
According to the method for carrying out OTA upgrading between the equipment mutually, wherein this method further include:
If corresponding to start and initializing from equipment when in the step S30 in the slave device looses power that OTA upgrades When not activation system, and connect automatically into OTA upgrade status and monitoring in real time with main equipment, continue if successful connection OTA upgrading.
According to the method for carrying out OTA upgrading between the equipment mutually, wherein step S10 is specifically included: using including But the mode for being not limited to universal serial bus or serial ports is that the first equipment and the second equipment establish connection, wherein the first equipment and the The interactive interface and agreement of two equipment include but is not limited to any communication interface and custom protocol.
According to the method for carrying out OTA upgrading between the equipment mutually, wherein step S20 is specifically included: S21, and first After equipment and the second equipment establish connection, the equipment for needing to carry out OTA upgrading is determined according to interactive information;S22, if first sets It is standby to be required to upgrade with the second equipment, then randomly select one of equipment as main equipment, another equipment is used as from setting It is standby;If first equipment needs to upgrade with one of equipment in the second equipment, the equipment that upgrades will be needed as from equipment, The equipment of upgrading is not needed as main equipment.
According to the method for carrying out OTA upgrading between the equipment mutually, wherein this method further include: based on being set The correspondence equipment of equipment sets unique identification, for the power down when carrying out OTA upgrading from equipment and is again coupled to matched foundation.
According to the method for carrying out OTA upgrading between the equipment mutually, wherein step S30 is specifically included: S31, by Main equipment in one equipment and the second equipment carries out system starting, enters OTA upgrade status from equipment, main equipment downloading, which updates, to be referred to Order and data are simultaneously updated to from equipment;S32, by the master-slave relationship of the first equipment and the second equipment in the step S31 into Row is exchanged, and executes step S31 again, completes the interaction upgrading of the first equipment and the second equipment.
According to the method for carrying out OTA upgrading between the equipment mutually, wherein step S30 further include: from equipment OTA liter Main equipment is restarted and releases unique identification after the completion of grade.
Technical solution of the present invention further includes the device for carrying out OTA upgrading between a kind of equipment mutually, which is characterized in that should Device includes: attachment device, for establishing communication connection for the first equipment and the second equipment;Conditioning unit, for being set to first Standby and the second equipment master-slave relationship is coordinated and is determined;Interaction update device is set after master-slave relationship for determining using master Standby is that OTA upgrading is carried out from equipment, and master-slave relationship and progress OTA upgrading again are exchanged after the completion of upgrading.
The invention has the benefit that making the equipment of only single system, OTA upgrading also can be safely carried out;Guaranteeing Under the premise of OTA power down safety, the standby system on individual equipment is saved, cost is advantageously reduced.
Detailed description of the invention
Fig. 1 show the overview flow chart of embodiment according to the present invention;
Fig. 2 show the device block diagram of embodiment according to the present invention;
Fig. 3 show the detail flowchart of embodiment according to the present invention;
Fig. 4 show a kind of embodiment flow chart based on technical solution of the present invention.
Specific embodiment
It is carried out below with reference to technical effect of the embodiment and attached drawing to design of the invention, specific structure and generation clear Chu, complete description, to be completely understood by the purpose of the present invention, scheme and effect.
It should be noted that unless otherwise specified, when a certain feature referred to as " fixation ", " connection " are in another feature, It can directly fix, be connected to another feature, and can also fix, be connected to another feature indirectly.In addition, this The descriptions such as the upper and lower, left and right used in open are only the mutual alignment pass relative to each component part of the disclosure in attached drawing For system.The "an" of used singular, " described " and "the" are also intended to including most forms in the disclosure, are removed Non- context clearly expresses other meaning.In addition, unless otherwise defined, all technical and scientific terms used herein It is identical as the normally understood meaning of those skilled in the art.Term used in the description is intended merely to describe herein Specific embodiment is not intended to be limiting of the invention.Term as used herein "and/or" includes one or more relevant The arbitrary combination of listed item.
It will be appreciated that though various elements, but this may be described using term first, second, third, etc. in the disclosure A little elements should not necessarily be limited by these terms.These terms are only used to for same type of element being distinguished from each other out.For example, not departing from In the case where disclosure range, first element can also be referred to as second element, and similarly, second element can also be referred to as One element.The use of provided in this article any and all example or exemplary language (" such as ", " such as ") is intended merely to more Illustrate the embodiment of the present invention well, and unless the context requires otherwise, otherwise the scope of the present invention will not be applied and be limited.
Fig. 1 show the overview flow chart of embodiment according to the present invention.The process includes: S10, is the first equipment and the Two equipment establish communication connection;S20 is coordinated and is determined to the master-slave relationship of the first equipment and the second equipment;S30 is determined Master-slave relationship and again progress OTA liter are exchanged after the completion of upgrading to carry out OTA upgrading from equipment using main equipment after master-slave relationship Grade.Specifically, if in the step S30 in OTA upgrading slave device looses power, it is corresponding from equipment starting and it is initial Not activation system when change, and being connect automatically into OTA upgrade status and monitoring in real time with main equipment, continue if successful connection into Row OTA upgrading;Connection is established for the first equipment and the second equipment by way of universal serial bus or serial ports, the present invention is unlimited Specific interactive interface and agreement are made, can be used any communication interface and standard or customized agreement;First equipment with After second equipment establishes connection, the equipment for needing to carry out OTA upgrading is determined according to interactive information;If first equipment is set with second It is standby to be required to upgrade, then one of equipment is randomly selected as main equipment, another equipment is used as from equipment;If first Equipment needs to upgrade with one of equipment in the second equipment, then the equipment upgraded will be needed as from equipment, do not need to upgrade Equipment as main equipment;Main equipment in first equipment and the second equipment carries out system starting, enters OTA upgrading shape from equipment State, main equipment downloading update instruction and data and are updated to from equipment;By the first equipment and the master-slave relationship of the second equipment It is exchanged, and executes upgrade step again, complete the interaction upgrading of the first equipment and the second equipment;Upgrade from equipment OTA Restarted at rear main equipment and releases unique identification.
Fig. 2 show the device block diagram of embodiment according to the present invention.First equipment and the second equipment pass through attachment device It is attached, the first equipment and the second equipment are provided with conditioning unit and interaction update device, wherein conditioning unit is used for the The master-slave relationship of one equipment and the second equipment is coordinated and is determined;Interaction update device is for using master after determining master-slave relationship Equipment is that OTA upgrading is carried out from equipment, and master-slave relationship is exchanged after the completion of upgrading and carries out OTA upgrading again.It is logical when interaction upgrading It crosses long-range be wirelessly connected from remote server and downloads corresponding data and instruction.
Fig. 3 show the detail flowchart of embodiment according to the present invention.It is specifically summarized as: two equipment being allowed to pass through certain Kind communication interface interconnects, such as USB or serial ports.After connection, the OTA program of two equipment will do it negotiation, determine principal and subordinate Relationship has such as determined that A is equipment at this time, has then first carried out OTA upgrading by equipment A for equipment B.Etc. equipment B upgrading complete again into After entering system, then master-slave relationship is exchanged, is that A system carries out OTA upgrading by B system.
If midway unexpected power down occurs from equipment, it is likely to be at distress condition from the system of equipment, after restarting, Its bootloader will not activation system, but be again introduced into OTA state automatically, main equipment waited to be again coupled to and continue to complete OTA.And if power down occurs for main equipment, since the system of main equipment is not carrying out OTA, then it can still be normally entered after restarting and be System, and connect from equipment, continue to complete OTA.
Fig. 4 show a kind of embodiment flow chart based on technical solution of the present invention.It is specific to summarize are as follows:
(1) fastboot (fast brushing machine mode) agreement that equipment end is realized in uboot (System guides), can support The uboot stage enters fastboot state, receives external update and asks summed data, completes system update.
(2) fastboot host ending tool is supported, in Linux system to support that updating another by fastboot sets Standby system.
(3) two equipment reboot into the fastboot mode in uboot in turn, are updated
It should be appreciated that the embodiment of the present invention can be by computer hardware, the combination of hardware and software or by depositing The computer instruction in non-transitory computer-readable memory is stored up to be effected or carried out.Standard volume can be used in the method Journey technology-includes that the non-transitory computer-readable storage media configured with computer program is realized in computer program, In configured in this way storage medium computer is operated in a manner of specific and is predefined --- according in a particular embodiment The method and attached drawing of description.Each program can with the programming language of level process or object-oriented come realize with department of computer science System communication.However, if desired, the program can be realized with compilation or machine language.Under any circumstance, which can be volume The language translated or explained.In addition, the program can be run on the specific integrated circuit of programming for this purpose.
In addition, the operation of process described herein can be performed in any suitable order, unless herein in addition instruction or Otherwise significantly with contradicted by context.Process described herein (or modification and/or combination thereof) can be held being configured with It executes, and is can be used as jointly on the one or more processors under the control of one or more computer systems of row instruction The code (for example, executable instruction, one or more computer program or one or more application) of execution, by hardware or its group It closes to realize.The computer program includes the multiple instruction that can be performed by one or more processors.
Further, the method can be realized in being operably coupled to suitable any kind of computing platform, wrap Include but be not limited to PC, mini-computer, main frame, work station, network or distributed computing environment, individual or integrated Computer platform or communicated with charged particle tool or other imaging devices etc..Each aspect of the present invention can be to deposit The machine readable code on non-transitory storage medium or equipment is stored up to realize no matter be moveable or be integrated to calculating Platform, such as hard disk, optical reading and/or write-in storage medium, RAM, ROM, so that it can be read by programmable calculator, when Storage medium or equipment can be used for configuration and operation computer to execute process described herein when being read by computer.This Outside, machine readable code, or part thereof can be transmitted by wired or wireless network.When such media include combining microprocessor Or other data processors realize steps described above instruction or program when, invention as described herein including these and other not The non-transitory computer-readable storage media of same type.When methods and techniques according to the present invention programming, the present invention It further include computer itself.
Computer program can be applied to input data to execute function as described herein, to convert input data with life At storing to the output data of nonvolatile memory.Output information can also be applied to one or more output equipments as shown Device.In the preferred embodiment of the invention, the data of conversion indicate physics and tangible object, including the object generated on display Reason and the particular visual of physical objects are described.
The above, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as It reaches technical effect of the invention with identical means, all within the spirits and principles of the present invention, any modification for being made, Equivalent replacement, improvement etc., should be included within the scope of the present invention.Its technical solution within the scope of the present invention And/or embodiment can have a variety of different modifications and variations.

Claims (8)

1. the method for OTA upgrading is carried out between a kind of equipment mutually, which is characterized in that this method comprises:
S10 is that the first equipment and the second equipment establish communication connection;
S20 is coordinated and is determined to the master-slave relationship of the first equipment and the second equipment;
S30 determines after master-slave relationship using main equipment to be to carry out OTA upgrading from equipment, exchanges master-slave relationship simultaneously after the completion of upgrading OTA upgrading is carried out again.
2. the method for OTA upgrading is carried out between equipment according to claim 1 mutually, which is characterized in that this method is also wrapped It includes:
If when slave device looses power in OTA upgrading in the step S30, it is corresponding from equipment starting and when initializing not Activation system, and connect automatically into OTA upgrade status and monitoring in real time with main equipment, continue OTA if successful connection Upgrading.
3. the method for OTA upgrading is carried out between equipment according to claim 1 mutually, which is characterized in that the step S10 It specifically includes:
Connection is established for the first equipment and the second equipment using the mode of including but not limited to universal serial bus or serial ports, wherein The interactive interface and agreement of first equipment and the second equipment include but is not limited to any communication interface and custom protocol.
4. the method for OTA upgrading is carried out between equipment according to claim 1 mutually, which is characterized in that the step S20 It specifically includes:
After S21, the first equipment and the second equipment establish connection, the equipment for needing to carry out OTA upgrading is determined according to interactive information;
S22 randomly selects one of equipment as main equipment, separately if first equipment is required to upgrade with the second equipment An outer equipment is used as from equipment;If first equipment needs to upgrade with one of equipment in the second equipment, will need to rise The equipment of grade is used as the equipment for not needing upgrading from equipment as main equipment.
5. the method for OTA upgrading is carried out between equipment according to claim 4 mutually, which is characterized in that this method is also wrapped It includes:
Upper unique identification is set to be arranged to the correspondence equipment of main equipment, for the power down when carrying out OTA upgrading from equipment and again The foundation of secondary matching connection.
6. the method for OTA upgrading is carried out between equipment according to claim 1 mutually, which is characterized in that the step S30 It specifically includes:
Main equipment in first equipment and the second equipment is carried out system starting by S31, enters OTA upgrade status from equipment, master sets Standby downloading updates instruction and data and is updated to from equipment;
The master-slave relationship of first equipment and the second equipment in the step S31 is exchanged, and executes step again by S32 S31 completes the interaction upgrading of the first equipment and the second equipment.
7. the method for OTA upgrading is carried out between equipment according to claim 6 mutually, which is characterized in that the step S30 Further include: restarted from main equipment after the completion of equipment OTA upgrading and releases unique identification.
8. carrying out the device of OTA upgrading between a kind of equipment for executing any claim of the 1-7 mutually, feature exists In the device includes:
Attachment device, for establishing communication connection for the first equipment and the second equipment;
Conditioning unit is coordinated and is determined for the master-slave relationship to the first equipment and the second equipment;
Interactive update device upgrades tune after the completion for using main equipment after determining master-slave relationship to carry out OTA upgrading from equipment It changes master-slave relationship and carries out OTA upgrading again.
CN201910239789.9A 2019-03-27 2019-03-27 A kind of equipment room interaction carries out the method and device of OTA upgrading Pending CN110083375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910239789.9A CN110083375A (en) 2019-03-27 2019-03-27 A kind of equipment room interaction carries out the method and device of OTA upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910239789.9A CN110083375A (en) 2019-03-27 2019-03-27 A kind of equipment room interaction carries out the method and device of OTA upgrading

Publications (1)

Publication Number Publication Date
CN110083375A true CN110083375A (en) 2019-08-02

Family

ID=67413682

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910239789.9A Pending CN110083375A (en) 2019-03-27 2019-03-27 A kind of equipment room interaction carries out the method and device of OTA upgrading

Country Status (1)

Country Link
CN (1) CN110083375A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908818A (en) * 2019-11-29 2020-03-24 上海联影医疗科技有限公司 Verification method, device, equipment and storage medium
CN111124451A (en) * 2019-12-24 2020-05-08 山东有人信息技术有限公司 Distributed backup upgrading method
CN112003936A (en) * 2020-08-21 2020-11-27 北京字节跳动网络技术有限公司 Method, device and system for upgrading equipment in cluster system
CN113760336A (en) * 2021-06-30 2021-12-07 惠州Tcl移动通信有限公司 Software upgrading method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694622A (en) * 2009-09-29 2010-04-14 中兴通讯股份有限公司 Remote firmware upgrading method of multi-device combination equipment and system thereof
CN104301395A (en) * 2014-09-25 2015-01-21 深圳市同洲电子股份有限公司 Method, electronic equipment and system for upgrading devices automatically
CN105760203A (en) * 2016-03-14 2016-07-13 广东欧珀移动通信有限公司 Software upgrading method and terminal equipment
CN106612192A (en) * 2015-10-22 2017-05-03 阿里巴巴集团控股有限公司 An equipment upgrading method, apparatus and system
CN107453931A (en) * 2017-09-28 2017-12-08 美的智慧家居科技有限公司 Lan device upgrade method, device and its equipment
CN107580071A (en) * 2017-09-28 2018-01-12 美的智慧家居科技有限公司 Master-slave equipment upgrade method, device and its equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101694622A (en) * 2009-09-29 2010-04-14 中兴通讯股份有限公司 Remote firmware upgrading method of multi-device combination equipment and system thereof
CN104301395A (en) * 2014-09-25 2015-01-21 深圳市同洲电子股份有限公司 Method, electronic equipment and system for upgrading devices automatically
CN106612192A (en) * 2015-10-22 2017-05-03 阿里巴巴集团控股有限公司 An equipment upgrading method, apparatus and system
CN105760203A (en) * 2016-03-14 2016-07-13 广东欧珀移动通信有限公司 Software upgrading method and terminal equipment
CN107453931A (en) * 2017-09-28 2017-12-08 美的智慧家居科技有限公司 Lan device upgrade method, device and its equipment
CN107580071A (en) * 2017-09-28 2018-01-12 美的智慧家居科技有限公司 Master-slave equipment upgrade method, device and its equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908818A (en) * 2019-11-29 2020-03-24 上海联影医疗科技有限公司 Verification method, device, equipment and storage medium
CN110908818B (en) * 2019-11-29 2024-06-07 上海联影医疗科技股份有限公司 Verification method, device, equipment and storage medium
CN111124451A (en) * 2019-12-24 2020-05-08 山东有人信息技术有限公司 Distributed backup upgrading method
CN112003936A (en) * 2020-08-21 2020-11-27 北京字节跳动网络技术有限公司 Method, device and system for upgrading equipment in cluster system
CN112003936B (en) * 2020-08-21 2023-04-18 抖音视界有限公司 Method, device and system for upgrading equipment in cluster system
CN113760336A (en) * 2021-06-30 2021-12-07 惠州Tcl移动通信有限公司 Software upgrading method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110083375A (en) A kind of equipment room interaction carries out the method and device of OTA upgrading
CN103176824B (en) A kind of method and device of system upgrade
CN102662697B (en) Software upgrading method and device
CN103823664B (en) A kind of design method of binary system unification Boot programs and kernel program
US20140337829A1 (en) Information processing apparatus, electronic control unit, information processing method, and program
CN102279756A (en) CPLD (Complex Programmable Logic Device) firmware updating method
CN108023765A (en) Equipment firmware upgrading method and device and storage medium
KR102358470B1 (en) Boot loader update firmware, method for updating boot loader
CN104199706A (en) Firmware upgrade method and device for eMMC
CN110875850B (en) Firmware upgrading method and system, readable storage medium and terminal equipment
EP3742288A1 (en) Apparatus, communication module, application module, and method
CN101673202A (en) Program writing method and system, pre-writing device and writing device
CN107832065A (en) Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
CN105589699A (en) Serial number information update method, device and terminal
CN103838591A (en) Upgrading method and device of multiple single-chip microcomputers based on serial buses
CN103019755A (en) Wireless program downloading method of plurality of central processing units (CPUs) in embedded system
CN107078806A (en) Optical transceiver apparatus and method
CN109388413A (en) A kind of FPGA method for updating program and system
CN103164232A (en) Method and system of updating intelligent terminal operating system and computer
CN109471651B (en) Firmware upgrading method, gateway equipment and firmware upgrading system
CN108199877B (en) Electronic equipment and authentication method and firmware upgrading method thereof
CN106919423B (en) Firmware upgrading method and device
CN104790128A (en) Sewing-device upgrading device
CN115344292B (en) Firmware automatic upgrading method and device, electronic equipment and readable storage medium
CN103677941B (en) A kind of method and device for realizing smart card operating system module upgrade

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190802