CN110515637A - A kind of programme upgrade method, system and terminal device - Google Patents
A kind of programme upgrade method, system and terminal device Download PDFInfo
- Publication number
- CN110515637A CN110515637A CN201910630290.0A CN201910630290A CN110515637A CN 110515637 A CN110515637 A CN 110515637A CN 201910630290 A CN201910630290 A CN 201910630290A CN 110515637 A CN110515637 A CN 110515637A
- Authority
- CN
- China
- Prior art keywords
- upgrade
- slave
- updating result
- version number
- cloud platform
- 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
Classifications
-
- 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
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
The present invention provides programme upgrade method, system and terminal devices, this method comprises: obtaining the upgrade command that cloud platform is sent;Wherein, the upgrade command includes upgraded version number;The program version number of associated slave is obtained according to the upgrade command;If the upgraded version number is higher than described program version number, upgrade package and upgrade parameter are obtained from the cloud platform;The upgrade parameter includes preset update time and power threshold;In the update time, the information about power of the slave is obtained, if the information about power is higher than the power threshold, the upgrade package is sent to the slave, so that the slave carries out program upgrading and generates updating result;The updating result is received, if the corresponding slave of the updating result upgrades successfully, the updating result is sent to cloud platform.The present invention solves the problems, such as to cannot achieve full dose or certain a collection of slave devices is specified independently to upgrade online.
Description
Technical field
The present invention relates to network communication technology field more particularly to a kind of programme upgrade methods, system and terminal device.
Background technique
Under teaching equipment application scenarios, teaching equipment is according to class and the function of student realized using the division of individual
It can also be not quite similar.Usually there is master control system in a device and function realizes system, wherein there are master control system (host) is right
It should connect and control the case where one or more functions realize system (slave).Host can pass through mobile network and cloud platform communication link
It connects, and slave can only be connect with host short haul connection.By the function of multiple slaves, it is using object different and connected
Host is also not necessarily identical, causes to carry out the cumbersome of system program upgrading to multiple slaves.
Can only the slave of short haul connection when needing edition upgrading, there are two types of current existing upgrading modes: 1, passing through brush
Machine tool carries out hand brush machine upgrading to slave devices one by one;2, staff configures upgrade package at the scene, in communication context
Interior manual setting slave upgrading;Both the above upgrades mode process complexity, and low efficiency, maintenance cost is high, and logical according to short distance
There are data packets to send packet loss for the upgrading of news means, connects the other factors such as unstable and causes the problems such as upgrading failure.It cannot be real
Existing full dose specifies certain a collection of slave devices independently to upgrade online.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of programme upgrade method, system and terminal device, it can not with solution
The problem of realizing full dose or certain a collection of slave devices specified independently to upgrade online.
The first aspect of the embodiment of the present invention provides a kind of programme upgrade method, comprising:
Obtain the upgrade command that cloud platform is sent;Wherein, the upgrade command includes upgraded version number;
The program version number of associated slave is obtained according to the upgrade command;
If the upgraded version number is higher than described program version number, upgrade package and upgrade parameter are obtained from the cloud platform;
The upgrade parameter includes preset update time and power threshold;
In the update time, the information about power of the slave is obtained, if the information about power is higher than the electricity threshold
Value, is sent to the slave for the upgrade package, so that the slave carries out program upgrading and generates updating result;
The updating result is received, if the corresponding slave of the updating result upgrades successfully, the updating result is sent
To cloud platform.
In an implementation example, the upgrade command further includes property parameters;
The program version number that associated slave is obtained according to the upgrade command, comprising:
The program version number of associated slave is obtained by the corresponding host of the property parameters.
In an implementation example, after receiving the updating result, further includes:
If the corresponding slave upgrading failure of the updating result, is sent to the updating result pair for the upgrade package again
The slave answered.
In an implementation example, the updating result is being received, if the corresponding slave of the updating result upgrades successfully,
After the updating result is sent to cloud platform, further includes:
Remove local upgrade data.
In an implementation example, if being higher than described program version number in the upgraded version number, obtained from the cloud platform
After taking upgrade package and upgrade parameter, further includes:
In the update time, the information about power of the slave is obtained, if the information about power is lower than the electricity threshold
Value triggers charge reminder.
In an implementation example, if in the corresponding slave upgrading failure of the updating result, again by the upgrade package
After being sent to the corresponding slave of the updating result, further includes:
Record retransmits the upgrade package to the sending times of the corresponding slave of the updating result.
In an implementation example, if the corresponding slave upgrading failure of the updating result, again by the upgrading
Packet is sent to the corresponding slave of the updating result, comprising:
If the corresponding slave upgrading failure of the updating result, judges whether the sending times exceed preset times;
If so, stopping retransmitting the upgrade package to the corresponding slave of the updating result;
If it is not, the upgrade package is sent to the corresponding slave of the updating result again.
The second aspect of the embodiment of the present invention provides a kind of terminal device, comprising:
Upgrade command obtains module, for obtaining the upgrade command of cloud platform transmission;Wherein, the upgrade command includes rising
Grade version number;
First version number obtains module, for obtaining the program version number of associated slave according to the upgrade command;
Upgrade package obtains module, if being higher than described program version number for the upgraded version number, obtains from the cloud platform
Take upgrade package and upgrade parameter;The upgrade parameter includes preset update time and power threshold;
Upgrade package sending module, for the information about power of the slave being obtained, if the electricity in the update time
Information is higher than the power threshold, and the upgrade package is sent to the slave, so that the slave carries out program upgrading and life
At updating result;
Updating result uploading module, for receiving the updating result, if the upgrading of the updating result corresponding slave at
The updating result is sent to cloud platform by function.
In an implementation example, terminal device further include:
The second edition number obtains module, for obtaining the journey of associated slave by the corresponding host of the property parameters
Sequence version number.
In an implementation example, terminal device further include:
Upgrade packet retransmission module, if for the corresponding slave upgrading failure of the updating result, it again will be described
Upgrade package is sent to the corresponding slave of the updating result.
The third aspect of the embodiment of the present invention provides a kind of terminal device, comprising: memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
The step of realizing first aspect the method.
The fourth aspect of the embodiment of the present invention provides a kind of program upgrade system, comprising: cloud platform, host and it is several from
Machine;The host and the cloud platform communicate to connect;The host and several slaves communicate to connect;The host executes the
Described in one side the step of programme upgrade method.
A kind of programme upgrade method, system and terminal device provided in an embodiment of the present invention are sent by obtaining cloud platform
Upgrade command;Wherein, the upgrade command includes upgraded version number;Associated slave is obtained according to the upgrade command
Program version number;If the upgraded version number is higher than described program version number, upgrade package and upgrading ginseng are obtained from the cloud platform
Number;The upgrade parameter includes preset update time and power threshold;In the update time, the electricity of the slave is obtained
Information is measured, if the information about power is higher than the power threshold, the upgrade package is sent to the slave, so that the slave
It carries out program upgrading and generates updating result;The updating result is received, if the corresponding slave of the updating result upgrades successfully,
The updating result is sent to cloud platform.Cloud platform can be realized by update time and upgrade command to slave program liter
The control of grade time and upgraded version, slave program upgrading failure caused by avoiding the problem that because of equipment not enough power supply.It is flat by cloud
Platform disposes upgrade procedure and host and sends upgrade package to slave, realizes the online autonomous upgrading of slave devices.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these
Figure obtains other attached drawings.
Fig. 1 is the flow diagram for the programme upgrade method that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram of programme upgrade method provided by Embodiment 2 of the present invention;
Fig. 3 is the structural schematic diagram for the terminal device that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram for the terminal device that the embodiment of the present invention four provides;
Fig. 5 is the structural schematic diagram for the program upgrade system that the embodiment of the present invention five provides.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical solution in the embodiment of the present invention are explicitly described, it is clear that described embodiment is the present invention one
The embodiment divided, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, should fall within the scope of the present invention.
Description and claims of this specification and term " includes " and their any deformations in above-mentioned attached drawing, meaning
Figure, which is to cover, non-exclusive includes.Such as process, method or system comprising a series of steps or units, product or equipment do not have
It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap
Include the other step or units intrinsic for these process, methods, product or equipment.In addition, term " first ", " second " and
" third " etc. is for distinguishing different objects, not for description particular order.
Embodiment one
As shown in Figure 1, being the flow diagram for the programme upgrade method that the embodiment of the present invention one provides.The present embodiment can fit
It is correspondingly connected with for several master control systems (host) and controls the program upgrading scene that one or more functions realize system (slave), it should
Method can be executed by master control system (host), in embodiments of the present invention using the master control system that is communicated to connect with cloud platform as
Executing subject is illustrated, and this method specifically comprises the following steps:
S110, the upgrade command that cloud platform is sent is obtained;Wherein, the upgrade command includes upgraded version number;
Under teaching equipment application scenarios, teaching equipment is according to class and the function of student realized using the division of individual
It can also be not quite similar.Usually there is master control system in a device and function realizes system, wherein master control system (host) is corresponding connects
It connects and controls the case where one or more functions realize system (slave).Wherein, host has remote wireless communication module can be with cloud
Platform communication connection is intelligent operating system;Slave is the operating system of single-chip microcomputer with short haul connection, passes through short haul connection
It is connected with corresponding main-machine communication;And slave can not carry out data interaction with cloud platform.Optionally, can by host and with its phase
Associated one or more slaves are integrated in a terminal device.
System program upgrading is carried out to multiple slaves to realize, need to first upgrade the upgrading journey of slave by cloud platform unified plan
Sequence.After cloud platform completes the upgrade procedure deployment of slave, upgrade command is generated;It include when time upgrade procedure in the upgrade command
Upgraded version number.Optionally, the upgrade command of generation can be handed down to automatically by cloud platform each with cloud platform communication connection
A host;Or each host timing obtains upgrade command from cloud platform.
S120, the program version number that associated slave is obtained according to the upgrade command;
After host gets the upgrade command of cloud platform transmission, each host obtains associated with it according to upgrade command
Slave current system program version number.
If S130, the upgraded version number are higher than described program version number, upgrade package and upgrading are obtained from the cloud platform
Parameter;The upgrade parameter includes preset update time and power threshold;
After host collects the program version number of each slave associated with the host, the upgrading in upgrade command is judged
Whether version number is higher than the program version number of slave;There is the program version number of slave lower than upgraded version number i.e. upgrade version if it exists
This number is higher than program version number, illustrates that the lower promotion condition of being in order of the current system program version of the slave, host will be led
It is dynamic to download the corresponding upgrade package of upgrade command and upgrade parameter from cloud platform.It wherein, include artificially presetting in upgrade parameter
Update time and power threshold;The default update time is the period restriction that slave carries out program upgrading;The power threshold
For host by upgrade package be sent to need upgrade slave when itself needed for minimum electricity.
S140, in the update time, obtain the information about power of the slave, if the information about power be higher than the electricity
Threshold value is measured, the upgrade package is sent to the slave, so that the slave carries out program upgrading and generates updating result;
When slave associated with host is in order promotion condition, host gets upgrade package and upgrading ginseng from cloud platform
After number, according to the restriction of the update time in upgrade parameter, host only starts upgrade package transmission flow in the update time, real
Now to the control of slave program update time.In preset update time, host-initiated upgrade package transmission flow obtains first
The information about power of the slave simultaneously judges whether the information about power of slave is higher than the power threshold in upgrade parameter.If information about power
Higher than power threshold, upgrade package is just sent to the slave for promotion condition of being in order by host, so that the slave can pass through liter
Grade packet carries out program upgrading and simultaneously generates updating result, to avoid that not enough power supply leads to slave in program escalation process because of slave
The problem of program upgrading failure.Optionally, it can also be integrated in an equipment due to host with associated slave;Work as electricity
When information is higher than power threshold, upgrade package is just sent to the slave for promotion condition of being in order by host, also can be avoided because of master
The problem of machine not enough power supply causes the interruption of upgrade package transmission process to cause the upgrading of slave program that can not carry out.
In an implementation example, host is connected with associated slave by serial ports, in update time, described in acquisition
The information about power of slave, if the information about power is higher than the power threshold, host passes through UART (universal asynchronous receiving-transmitting transmission
Device) upgrade package is sent to the slave by asynchronous serial communication agreement, so that the slave passes through the upgrade package received
It carries out program upgrading and generates updating result.
In an implementation example, in preset update time, host-initiated upgrade package transmission flow, first acquisition institute
It states the information about power of slave and judges whether the information about power of slave is higher than the power threshold in upgrade parameter.If information about power is low
In power threshold, charge reminder is triggered.Specifically, which includes generating charge prompting sound and playing or generate charging to mention
Show that information is shown in slave institute on the screen of the device, to remind user to carry out charging operations to the slave.
S150, the updating result is received, if the corresponding slave of the updating result upgrades successfully, by the updating result
It is sent to cloud platform.
Updating result is generated after receiving the slave progress program upgrading of upgrade package, and will by asynchronous serial communication agreement
Updating result informs host.After host receives the updating result of slave feedback, which is known according to updating result
Whether the slave answered upgrades successfully;If the corresponding slave of updating result upgrades successfully, updating result is sent to cloud platform by host,
Cloud platform is enabled to record the upgrade status of slave according to the updating result of slave.And slave after program upgrades successfully from
It is dynamic to remove local upgrade data (such as upgrade package).
In an implementation example, since host can also be integrated in an equipment with associated slave, if upgrading
As a result corresponding slave upgrades successfully, and updating result is sent to cloud platform and removes local upgrade data (such as upgrade package).
A kind of programme upgrade method provided in an embodiment of the present invention, the upgrade command sent by obtaining cloud platform;Wherein,
The upgrade command includes upgraded version number;The program version number of associated slave is obtained according to the upgrade command;If institute
Upgraded version number is stated higher than described program version number, obtains upgrade package and upgrade parameter from the cloud platform;The upgrade parameter
Including preset update time and power threshold;In the update time, the information about power of the slave is obtained, if the electricity
It measures information and is higher than the power threshold, the upgrade package is sent to the slave, so that the slave carries out program upgrading simultaneously
Generate updating result;The updating result is received, if the corresponding slave of the updating result upgrades successfully, by the updating result
It is sent to cloud platform.Cloud platform can be realized by update time and upgrade command to slave program update time and upgrade version
This control, slave program upgrading failure caused by avoiding the problem that because of equipment not enough power supply.Upgrade procedure is disposed by cloud platform
And host sends upgrade package to slave, realizes the online autonomous upgrading of slave devices.
Embodiment two
As shown in Fig. 2, being the flow diagram of programme upgrade method provided by Embodiment 2 of the present invention.In embodiment one
On the basis of, the present embodiment additionally provides the process for carrying out program upgrading to slave according to the attribute of host, to realize that basis is set
Standby attribute orientation carries out program upgrading to slave.This method specifically includes:
S210, the upgrade command that cloud platform is sent is obtained;Wherein, the upgrade command includes upgraded version number and attribute ginseng
Number;
Before the upgrade command that host obtains that cloud platform is sent, when host carries out apparatus bound in user's use process
Corresponding attribute (such as the information such as school, age, class) can be preset, then also have host corresponding with the associated slave of host
Attribute.
System program upgrading is carried out to multiple slaves to realize, need to first upgrade the upgrading journey of slave by cloud platform unified plan
Sequence.After cloud platform completes the upgrade procedure deployment of slave, upgrade command is generated;It include when time upgrade procedure in the upgrade command
Upgraded version number and property parameters.The property parameters, which limit, only has the corresponding several slaves of the property parameters to be able to carry out program
Upgrading is realized and carries out program upgrading to slave according to device attribute orientation.
S220, the program version number that associated slave is obtained by the corresponding host of the property parameters;
Property parameters define the attribute for the slave that can upgrade in the upgrade command got due to host, can only pass through
The corresponding host of property parameters obtains the program version number of associated slave in upgrade command, and it is other with belong in upgrade command
The host that property parameter does not match that then waits the acquisition of next upgrade command.And following slave program upgrading process step by
The corresponding host of property parameters is executed as executing subject in upgrade command.
If S230, the upgraded version number are higher than described program version number, upgrade package and upgrading are obtained from the cloud platform
Parameter;The upgrade parameter includes preset update time and power threshold;
S240, in the update time, obtain the information about power of the slave, if the information about power be higher than the electricity
Threshold value is measured, the upgrade package is sent to the slave, so that the slave carries out program upgrading and generates updating result;
S250, the updating result is received, if the corresponding slave of the updating result upgrades successfully, by the updating result
It is sent to cloud platform;If the corresponding slave upgrading failure of the updating result, is sent to the upgrading for the upgrade package again
As a result corresponding slave.
Updating result is generated after receiving the slave progress program upgrading of upgrade package, and will by asynchronous serial communication agreement
Updating result informs host.After host receives the updating result of slave feedback, which is known according to updating result
Whether the slave answered upgrades successfully;If upgrade package is sent to upgrading again by the corresponding slave upgrading failure of updating result, host
As a result corresponding slave.
In an implementation example, if the corresponding slave upgrading failure of updating result that host receives, host again will
Upgrade package is sent to the corresponding slave of updating result, and records the repeating transmission time for retransmitting upgrade package to the corresponding slave of updating result
Number.When the corresponding slave upgrading failure information of the updating result that host receives again, it is pre- to judge whether sending times exceed
If number.If judging, sending times beyond preset times, illustrate that the corresponding slave of updating result is likely to occur failure, host stops
Upgrade package only is retransmitted to the corresponding slave of updating result, to avoid the wasting of resources.
Embodiment three
Fig. 3 is a kind of structural schematic diagram for terminal device that the embodiment of the present invention three provides.In embodiment one or embodiment
On the basis of two, the embodiment of the invention also provides a kind of terminal device, which includes:
Upgrade command obtains module 301, for obtaining the upgrade command of cloud platform transmission;Wherein, the upgrade command packet
Include upgraded version number;
First version number obtains module 302, for obtaining the program version of associated slave according to the upgrade command
Number;
In an implementation example, the upgrade command further includes property parameters, terminal device further include:
The second edition number obtains module, for obtaining the journey of associated slave by the corresponding host of the property parameters
Sequence version number.
Upgrade package obtains module 303, if being higher than described program version number for the upgraded version number, from the cloud platform
Obtain upgrade package and upgrade parameter;The upgrade parameter includes preset update time and power threshold;
Upgrade package sending module 304, for the information about power of the slave being obtained, if described in the update time
Information about power is higher than the power threshold, and the upgrade package is sent to the slave, so that the slave carries out program upgrading
And generate updating result;
In an implementation example, terminal device further include:
Charge reminder module, for obtaining the information about power of the slave in the update time, if the electricity is believed
Breath is lower than the power threshold, triggers charge reminder.
In an implementation example, upgrade package sending module 304 is in the update time, if self electric quantity is higher than described
The upgrade package is sent to the slave by power threshold, when so that the slave carrying out program upgrading and generates updating result,
Include:
Upgrade package transmission unit, for the information about power of the slave being obtained, if the electricity in the update time
Information is higher than the power threshold, the upgrade package is sent to the slave by asynchronous serial communication agreement, so that described
Slave carries out program upgrading and generates updating result.
In an implementation example, terminal device further include:
Sending times logging modle, if in the corresponding slave upgrading failure of the updating result, again by the liter
After grade packet is sent to the corresponding slave of the updating result, record retransmits the upgrade package to the corresponding slave of the updating result
Sending times.
In an implementation example, upgrade package sending module 304 is in the update time, if self electric quantity is higher than described
The upgrade package is sent to the slave by power threshold, when so that the slave carrying out program upgrading and generates updating result,
Further include:
Judging unit, if judging whether the sending times surpass for the corresponding slave upgrading failure of the updating result
Preset times out;
Stop unit is retransmitted, if exceeding preset times for the sending times, is stopped corresponding to the updating result
Slave retransmits the upgrade package;
Upgrade package retransmission unit, if again sending the upgrade package without departing from preset times for the sending times
To the corresponding slave of the updating result.
Updating result uploading module 305, for receiving the updating result, if the corresponding slave upgrading of the updating result
Success, is sent to cloud platform for the updating result.
In an implementation example, terminal device further include:
Upgrade packet retransmission module, if for the corresponding slave upgrading failure of the updating result, again by the upgrade package
It is sent to the corresponding slave of the updating result.
A kind of terminal device provided in an embodiment of the present invention, the upgrade command sent by obtaining cloud platform;Wherein, described
Upgrade command includes upgraded version number;The program version number of associated slave is obtained according to the upgrade command;If the liter
Grade version number is higher than described program version number, obtains upgrade package and upgrade parameter from the cloud platform;The upgrade parameter includes
Preset update time and power threshold;In the update time, the information about power of the slave is obtained, if the electricity is believed
Breath is higher than the power threshold, and the upgrade package is sent to the slave, so that the slave carries out program upgrading and generates
Updating result;The updating result is received, if the corresponding slave of the updating result upgrades successfully, the updating result is sent
To cloud platform.Cloud platform can be realized by update time and upgrade command to slave program update time and upgraded version
Control, slave program upgrading failure caused by avoiding the problem that because of equipment not enough power supply.By cloud platform dispose upgrade procedure and
Host sends upgrade package to slave, realizes the online autonomous upgrading of slave devices.
Example IV
Fig. 4 is a kind of schematic diagram for terminal device that the embodiment of the present invention four provides.The terminal device 4 of the embodiment wraps
It includes: processor 40, memory 41 and being stored in the computer that can be run in the memory 41 and on the processor 40
Program 42, such as the program of programme upgrade method.The processor 40 realizes above procedure when executing the computer program 42
Step in upgrade method embodiment, such as step S110 to S150 shown in FIG. 1 or step S210 to S250 shown in Fig. 2.
Illustratively, the computer program 42 can be divided into one or more modules, one or more of
Module is stored in the memory 41, and is executed by the processor 40, to complete the application.One or more of moulds
Block can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey
Implementation procedure of the sequence 42 in the terminal device 4.For example, the computer program 42 can be divided into upgrade command acquisition
Module, first version number obtain module, upgrade package obtains module, upgrade package sending module and updating result uploading module, each mould
Block concrete function is as follows:
Upgrade command obtains module, for obtaining the upgrade command of cloud platform transmission;Wherein, the upgrade command includes rising
Grade version number;
First version number obtains module, for obtaining the program version number of associated slave according to the upgrade command;
Upgrade package obtains module, if being higher than described program version number for the upgraded version number, obtains from the cloud platform
Take upgrade package and upgrade parameter;The upgrade parameter includes preset update time and power threshold;
Upgrade package sending module, for the information about power of the slave being obtained, if the electricity in the update time
Information is higher than the power threshold, and the upgrade package is sent to the slave, so that the slave carries out program upgrading and life
At updating result;
Updating result uploading module, for receiving the updating result, if the upgrading of the updating result corresponding slave at
The updating result is sent to cloud platform by function.
The terminal device 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device may include, but be not limited only to, and processor 40, memory 41 and be stored in the memory 41.Ability
Field technique personnel are appreciated that Fig. 4 is only the example of terminal device 4, do not constitute the restriction to terminal device 4, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different components, such as the control device may be used also
To include input-output equipment, network access equipment, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device, such as the hard disk or interior of terminal device 4
It deposits.It is hard that the memory 41 is also possible to the plug-in type being equipped on the External memory equipment of terminal device 4, such as terminal device 4
Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card
(Flash Card) etc..Further, the memory 41 can also both including terminal device 4 internal storage unit and also including
External memory equipment.The memory 41 is for storing other program sum numbers needed for the computer program and terminal device
According to.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Embodiment five
Fig. 5 is the schematic diagram for the program upgrade system that the embodiment of the present invention four provides.The system includes: cloud platform 51, master
Machine 52 and several slaves 53;The host 52 is communicated to connect with the cloud platform 51;The host 52 and several slaves 53
Communication connection;
The host 52 executes the step of programme upgrade method in embodiment one or two.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of programme upgrade method characterized by comprising
Obtain the upgrade command that cloud platform is sent;Wherein, the upgrade command includes upgraded version number;
The program version number of associated slave is obtained according to the upgrade command;
If the upgraded version number is higher than described program version number, upgrade package and upgrade parameter are obtained from the cloud platform;It is described
Upgrade parameter includes preset update time and power threshold;
In the update time, the information about power of the slave is obtained, it, will if the information about power is higher than the power threshold
The upgrade package is sent to the slave, so that the slave carries out program upgrading and generates updating result;
The updating result is received, if the corresponding slave of the updating result upgrades successfully, the updating result is sent to cloud
Platform.
2. programme upgrade method as described in claim 1, which is characterized in that the upgrade command further includes property parameters;
The program version number that associated slave is obtained according to the upgrade command, comprising:
The program version number of associated slave is obtained by the corresponding host of the property parameters.
3. programme upgrade method as claimed in claim 1 or 2, which is characterized in that after receiving the updating result, also wrap
It includes:
If the corresponding slave upgrading failure of the updating result, it is corresponding to be sent to the updating result for the upgrade package again
Slave.
4. programme upgrade method as claimed in claim 1 or 3, which is characterized in that the updating result is being received, if the liter
The corresponding slave of grade result upgrades successfully, after the updating result is sent to cloud platform, further includes:
Remove local upgrade data.
5. programme upgrade method as claimed in claim 4, which is characterized in that if being higher than described program in the upgraded version number
Version number, after cloud platform acquisition upgrade package and upgrade parameter, further includes:
In the update time, the information about power of the slave is obtained, if the information about power is lower than the power threshold, touching
Send out charge reminder.
6. programme upgrade method as claimed in claim 3, which is characterized in that if in the corresponding slave upgrading of the updating result
Failure, after the upgrade package is sent to the corresponding slave of the updating result again, further includes:
Record retransmits the upgrade package to the sending times of the corresponding slave of the updating result.
7. programme upgrade method as claimed in claim 6, which is characterized in that if the corresponding slave liter of the updating result
Grade failure, is sent to the corresponding slave of the updating result for the upgrade package again, comprising:
If the corresponding slave upgrading failure of the updating result, judges whether the sending times exceed preset times;
If so, stopping retransmitting the upgrade package to the corresponding slave of the updating result;
If it is not, the upgrade package is sent to the corresponding slave of the updating result again.
8. a kind of terminal device characterized by comprising
Upgrade command obtains module, for obtaining the upgrade command of cloud platform transmission;Wherein, the upgrade command includes upgrade version
This number;
First version number obtains module, for obtaining the program version number of associated slave according to the upgrade command;
Upgrade package obtains module, if being higher than described program version number for the upgraded version number, obtains and rises from the cloud platform
Grade packet and upgrade parameter;The upgrade parameter includes preset update time and power threshold;
Upgrade package sending module, for the information about power of the slave being obtained, if the information about power in the update time
Higher than the power threshold, the upgrade package is sent to the slave, so that the slave carries out program upgrading and generates liter
Grade result;
Updating result uploading module, will if the corresponding slave of the updating result upgrades successfully for receiving the updating result
The updating result is sent to cloud platform.
9. a kind of terminal device, which is characterized in that in the memory and can be in institute including memory, processor and storage
State the computer program run on processor, which is characterized in that the processor is realized when executing the computer program as weighed
Benefit requires the step of any one of 1 to 7 described program upgrade method.
10. a kind of program upgrade system characterized by comprising cloud platform, host and several slaves;The host with it is described
Cloud platform communication connection;The host and several slaves communicate to connect;
The host perform claim requires the step of any one of 1 to 7 described program upgrade method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910630290.0A CN110515637A (en) | 2019-07-12 | 2019-07-12 | A kind of programme upgrade method, system and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910630290.0A CN110515637A (en) | 2019-07-12 | 2019-07-12 | A kind of programme upgrade method, system and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110515637A true CN110515637A (en) | 2019-11-29 |
Family
ID=68622562
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910630290.0A Pending CN110515637A (en) | 2019-07-12 | 2019-07-12 | A kind of programme upgrade method, system and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110515637A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111736866A (en) * | 2020-05-29 | 2020-10-02 | 科华恒盛股份有限公司 | One-to-one and one-to-many compatible online upgrading method and terminal equipment |
CN111857770A (en) * | 2020-06-29 | 2020-10-30 | 科华恒盛股份有限公司 | Synchronous upgrading method of parallel operation system |
CN112286561A (en) * | 2020-10-22 | 2021-01-29 | 广州华欣电子科技有限公司 | Firmware upgrading method and device for touch equipment |
WO2021174830A1 (en) * | 2020-03-04 | 2021-09-10 | 平安科技(深圳)有限公司 | Management method and apparatus for code versions of multi-module system, and computer device |
CN116541047A (en) * | 2023-07-05 | 2023-08-04 | 广州疆海科技有限公司 | Firmware upgrading method, device, computer equipment and computer readable storage medium |
CN116541046A (en) * | 2023-07-05 | 2023-08-04 | 广州疆海科技有限公司 | Energy storage system upgrading method and device, computer equipment and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102811136A (en) * | 2011-06-01 | 2012-12-05 | 南京中兴新软件有限责任公司 | Software upgrading system and method |
CN103713925A (en) * | 2013-12-26 | 2014-04-09 | 北海创新科存储技术有限公司 | Method and device for avoiding service interruption of storage array in upgrading process |
US20140282457A1 (en) * | 2013-03-13 | 2014-09-18 | Alex C. Chow | Systems And Methods For Embedded Shared Libraries In An Executable Image |
CN107608701A (en) * | 2017-10-20 | 2018-01-19 | 深圳市道通科技股份有限公司 | A kind of method and apparatus of firmware updating |
CN207611373U (en) * | 2017-03-24 | 2018-07-13 | 北京光年无限科技有限公司 | A kind of control system based on master/slave structure |
CN108897560A (en) * | 2018-06-27 | 2018-11-27 | 北京小米移动软件有限公司 | Firmware upgrade method, device and the storage medium of smart machine |
CN109933354A (en) * | 2019-03-07 | 2019-06-25 | 广东汇泰龙科技有限公司 | Fingerprint head online upgrading method, system and the cloud lock of a kind of intelligent cloud lock |
-
2019
- 2019-07-12 CN CN201910630290.0A patent/CN110515637A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102811136A (en) * | 2011-06-01 | 2012-12-05 | 南京中兴新软件有限责任公司 | Software upgrading system and method |
US20140282457A1 (en) * | 2013-03-13 | 2014-09-18 | Alex C. Chow | Systems And Methods For Embedded Shared Libraries In An Executable Image |
CN103713925A (en) * | 2013-12-26 | 2014-04-09 | 北海创新科存储技术有限公司 | Method and device for avoiding service interruption of storage array in upgrading process |
CN207611373U (en) * | 2017-03-24 | 2018-07-13 | 北京光年无限科技有限公司 | A kind of control system based on master/slave structure |
CN107608701A (en) * | 2017-10-20 | 2018-01-19 | 深圳市道通科技股份有限公司 | A kind of method and apparatus of firmware updating |
CN108897560A (en) * | 2018-06-27 | 2018-11-27 | 北京小米移动软件有限公司 | Firmware upgrade method, device and the storage medium of smart machine |
CN109933354A (en) * | 2019-03-07 | 2019-06-25 | 广东汇泰龙科技有限公司 | Fingerprint head online upgrading method, system and the cloud lock of a kind of intelligent cloud lock |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021174830A1 (en) * | 2020-03-04 | 2021-09-10 | 平安科技(深圳)有限公司 | Management method and apparatus for code versions of multi-module system, and computer device |
CN111736866A (en) * | 2020-05-29 | 2020-10-02 | 科华恒盛股份有限公司 | One-to-one and one-to-many compatible online upgrading method and terminal equipment |
CN111857770A (en) * | 2020-06-29 | 2020-10-30 | 科华恒盛股份有限公司 | Synchronous upgrading method of parallel operation system |
CN112286561A (en) * | 2020-10-22 | 2021-01-29 | 广州华欣电子科技有限公司 | Firmware upgrading method and device for touch equipment |
CN116541047A (en) * | 2023-07-05 | 2023-08-04 | 广州疆海科技有限公司 | Firmware upgrading method, device, computer equipment and computer readable storage medium |
CN116541046A (en) * | 2023-07-05 | 2023-08-04 | 广州疆海科技有限公司 | Energy storage system upgrading method and device, computer equipment and readable storage medium |
CN116541046B (en) * | 2023-07-05 | 2023-12-12 | 广州疆海科技有限公司 | Energy storage system upgrading method and device, computer equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110515637A (en) | A kind of programme upgrade method, system and terminal device | |
CN110032382A (en) | A kind of vehicle electronic control unit upgrade method, system and terminal device | |
CN110012002A (en) | Message parsing method, device and server, computer readable storage medium | |
CN110351378A (en) | A kind of control method and system of internet of things equipment | |
CN107783857A (en) | A kind of abnormal restorative procedure and device, computer installation, readable storage medium storing program for executing | |
CN110488617A (en) | Intelligent home control system, method and terminal device | |
CN109656587A (en) | A kind of upgrade method and device of equipment firmware | |
CN107438833A (en) | A kind of data-updating method, device, system and server | |
CN110413487A (en) | A kind of indicator light management method, system and the baseboard management controller of server | |
CN108762792A (en) | Upgrading network equipment method, upgrade server, terminal device and storage medium | |
CN109348434A (en) | A kind of sending method of scene information, sending device and terminal device | |
CN109636415A (en) | A kind of work order method for early warning, device, computer equipment and storage medium | |
CN106017514A (en) | Air conditioning charging system | |
CN108399136A (en) | A kind of control method of serial line interface, device and host | |
CN110392096A (en) | A kind of method, apparatus of file distributing, master controller and storage medium | |
CN104063350B (en) | Satellite-borne CAN (controller area network) bus plug and play method | |
CN109862445A (en) | A kind of communication system and its communication means of distributed charging pile | |
CN109614186A (en) | Application program color switching method, system and terminal device | |
CN111682965A (en) | FOTA controller | |
CN108806071A (en) | Self-service dispenser management method, self-service dispenser managing device and electronic equipment | |
CN108551395A (en) | Upgrade method for communication device, communication equipment and computer storage media | |
CN107093069A (en) | Intelligent electric meter data handling system and method | |
CN109714369A (en) | Communication means, charging pile and the interconnection device of distributed charging pile communication system | |
CN104657240B (en) | The Failure Control method and device of more kernel operating systems | |
CN112615835B (en) | Charging pile multi-communication protocol support method and storage medium |
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 |
Application publication date: 20191129 |
|
RJ01 | Rejection of invention patent application after publication |