CN107783773A - Firmware burning method and system - Google Patents

Firmware burning method and system Download PDF

Info

Publication number
CN107783773A
CN107783773A CN201711170447.3A CN201711170447A CN107783773A CN 107783773 A CN107783773 A CN 107783773A CN 201711170447 A CN201711170447 A CN 201711170447A CN 107783773 A CN107783773 A CN 107783773A
Authority
CN
China
Prior art keywords
terminal
intelligent hardware
burning
facility information
information
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.)
Granted
Application number
CN201711170447.3A
Other languages
Chinese (zh)
Other versions
CN107783773B (en
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.)
Guangdong Transtek Medical Electronics Co Ltd
Original Assignee
Guangdong Transtek Medical Electronics 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 Guangdong Transtek Medical Electronics Co Ltd filed Critical Guangdong Transtek Medical Electronics Co Ltd
Priority to CN201711170447.3A priority Critical patent/CN107783773B/en
Publication of CN107783773A publication Critical patent/CN107783773A/en
Application granted granted Critical
Publication of CN107783773B publication Critical patent/CN107783773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

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)
  • Telephonic Communication Services (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a firmware burning method and a firmware burning system, and the method is applied to the system. The system comprises a first terminal and a second terminal which are communicated with each other, wherein the second terminal can be in communication connection with intelligent hardware. The method comprises the following steps: the method comprises the steps that a first terminal obtains the type of each second terminal operating system which is connected currently, and the number of intelligent hardware which can be connected with each second terminal is determined according to the obtained type; the first terminal distributes the configured device information of the intelligent hardware to be burned to each second terminal, so that the quantity of the device information received by each second terminal does not exceed the quantity of the intelligent hardware which can be connected with the second terminal; and each second terminal establishes connection with the corresponding intelligent hardware to be burned according to the identification information in the equipment information aiming at each piece of received equipment information, and writes the target firmware code in the equipment information into the corresponding intelligent hardware to be burned so as to enable the corresponding intelligent hardware to be burned to perform firmware burning.

Description

Firmware burning method and system
Technical field
The present invention relates to Intelligent hardware technical field, in particular to a kind of firmware burning method and system.
Background technology
Intelligent hardware (e.g., motion bracelet, intelligent air condition etc.) is changed by way of software and hardware combining to legacy equipment Make, and then allow it to possess intelligentized function.After intellectuality, hardware possesses the ability of connection, can realize adding for internet Carry.
Existing Intelligent hardware can only be by the APP (Application, application program) of mobile terminal to specified intelligence Hardware carries out firmware burning, that is, new firmware code is burnt in the device chip of Intelligent hardware.When needing firmware burning Intelligent hardware quantity it is more when, be still required for operating personnel by APP to specifying Intelligent hardware to carry out man-to-man burning behaviour Make, it is very cumbersome, it is less efficient.
The content of the invention
In view of this, it is an object of the invention to provide a kind of firmware burning method and system, to improve above mentioned problem.
In order to achieve the above object, the embodiment of the present invention provides a kind of firmware burning method, applied to firmware burning system, The system, which includes the first terminal being in communication with each other and second terminal, the second terminal, to be communicated to connect with Intelligent hardware;Institute The method of stating includes:
The first terminal obtains the type of each second terminal operating system currently connected, and true according to the type The quantity for the Intelligent hardware that fixed each second terminal can connect, wherein, it is configured with different type in the first terminal The quantity of Intelligent hardware that can connect of operating system;
The facility information for treating burning Intelligent hardware of configuration is distributed to each second terminal by the first terminal, is made The quantity for the facility information that each second terminal receives is no more than the quantity for the Intelligent hardware that can each connect, its In, the facility information includes described treating the identification information of burning Intelligent hardware and needs are burnt to and described treat burning Intelligent hardware Target firmware code;
Each second terminal is directed to each facility information received, the identification information in the facility information with It is corresponding treat burning Intelligent hardware establish connection, and by the target firmware code in the facility information be written to it is described corresponding to treat In burning Intelligent hardware, so as to treat that burning Intelligent hardware carries out firmware burning corresponding to described.
The embodiment of the present invention also provides a kind of firmware burning system, including the first terminal and second terminal being in communication with each other, The second terminal can communicate to connect with Intelligent hardware;
The first terminal, for obtaining the type of each second terminal operating system currently connected, and according to described Type determines the quantity for the Intelligent hardware that each second terminal can connect, wherein, it is configured with not in the first terminal The quantity for the Intelligent hardware that the operating system of same type can connect;
The first terminal, it is additionally operable to the facility information for treating burning Intelligent hardware of configuration being distributed to each described second Terminal, the quantity for the facility information that each second terminal receives is set to be no more than the number for the Intelligent hardware that can each connect Amount, wherein, the facility information includes described treating the identification information of burning Intelligent hardware and needs are burnt to and described treat burning intelligence The target firmware code of energy hardware;
Each second terminal, for each facility information for receiving, according to the mark in the facility information Information treats that burning Intelligent hardware is established and connects with corresponding, and the target firmware code in the facility information is written to it is described right That answers treats in burning Intelligent hardware, so as to treat that burning Intelligent hardware carries out firmware burning corresponding to described.
In terms of existing technologies, the invention has the advantages that:
A kind of firmware burning method and system provided by the invention, currently connect each second is obtained by first terminal The type of terminal operating system, and determine according to the type of acquisition the quantity for the Intelligent hardware that each second terminal can connect. The facility information for treating burning Intelligent hardware of configuration is distributed to by each second terminal by first terminal, makes each second terminal The quantity of the facility information received is no more than the quantity for the Intelligent hardware that can each connect.Each second terminal is for receiving The each facility information arrived, the identification information in the facility information treat that burning Intelligent hardware establishes connection with corresponding, and By the target firmware code in the facility information write this it is corresponding treat in burning Intelligent hardware so that this corresponding treats burning intelligence Can hardware progress firmware burning.In this way, firmware burning can be carried out to multiple Intelligent hardwares simultaneously, efficiency is improved.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the interaction schematic diagram of firmware burning system provided in an embodiment of the present invention;
Fig. 2 is the block diagram of first terminal provided in an embodiment of the present invention;
Fig. 3 is the schematic flow sheet of firmware burning method provided in an embodiment of the present invention;
Fig. 4 is the sub-step schematic diagram of step S120 shown in Fig. 3;
Fig. 5 is the sub-step schematic diagram of step S130 shown in Fig. 4.
Icon:10- firmware burning systems;100- first terminals;110- memories;120- processors;130- communication units; 200- second terminals;300- Intelligent hardwares.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.The present invention implementation being generally described and illustrated herein in the accompanying drawings The component of example can be configured to arrange and design with a variety of.
Therefore, below the detailed description of the embodiments of the invention to providing in the accompanying drawings be not intended to limit it is claimed The scope of the present invention, but be merely representative of the present invention selected embodiment.It is common based on the embodiment in the present invention, this area The every other embodiment that technical staff is obtained under the premise of creative work is not made, belong to the model that the present invention protects Enclose.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.
Study and find through inventor, the APP that existing Intelligent hardware is typically only possible by mobile terminal carries out firmware burning. Thus, the manufacturer of Intelligent hardware can only carry out man-to-man firmware burning by the APP of mobile terminal to specified Intelligent hardware Operation, efficiency are very low.In addition, when the firmware of the Intelligent hardware of production goes wrong or needs upgrading, it is also necessary in repetition Man-to-man firmware burning operating process is stated, is operated very cumbersome, it is very inconvenient.
To solve the above problems, inventor, which designs, uses a kind of firmware burning method and system, it is possible to achieve to batch Intelligent hardware carries out firmware burning.
Referring to Fig. 1, be the connection block diagram of firmware burning system 10 provided in an embodiment of the present invention, the firmware burning system System 10 includes first terminal 100 and second terminal 200, and the first terminal 100 communicates to connect with the second terminal 200, institute Stating second terminal 200 can communicate to connect with Intelligent hardware 300.
In the present embodiment, the firmware burning system 10 can include one, two or more second terminals 200.
The first terminal 100 can be that personal computer (Personal Computer, PC), server etc. arbitrarily have There is the data processing equipment of communication function.The second terminal 200 can be that mobile terminal etc. can arbitrarily install APP and pass through The equipment that the APP establishes connection with Intelligent hardware 300.
Referring to Fig. 2, being a kind of block diagram of first terminal 100 provided in an embodiment of the present invention, described first eventually End 100 includes memory 110, processor 120 and communication unit 130.
The memory 110, processor 120 and 130 each element of communication unit directly or indirectly electrically connect between each other Connect, to realize the transmission of data or interaction.For example, these elements can pass through one or more communication bus or signal between each other Line, which is realized, to be electrically connected with.Functional module corresponding with the firmware burning method or computer are stored with the memory 110 Program, the processor 120 are used to call the functional module or computer in the memory 120 when receiving execute instruction Program.
Wherein, the memory 110 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
The processor 120 can be a kind of IC chip, have the disposal ability of signal.Above-mentioned processor can To be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;Can also be digital signal processor (DSP)), application specific integrated circuit (ASIC), field programmable gate Array (FPGA) either other PLDs, discrete gate or transistor logic, discrete hardware components.Can be real Now or perform the embodiment of the present invention in disclosed each method, step and logic diagram.General processor can be microprocessor Device or the processor can also be any conventional processors etc..
The communication unit 130 is used to establish between the first terminal 100 and external equipment (e.g., second terminal 200) Communication connection, to realize data interaction.Alternatively, in the present embodiment, the communication unit 130 can be based on Socket The communication unit of (socket), the first terminal 100 can pass through the communication unit 130 and the second terminal 200 of access Communication, in this way, the second terminal 200 of the access constitutes the Socket clients of the first terminal 100.
It should be appreciated that the structure shown in Fig. 2 is only to illustrate.The first terminal 100 can also have more more than shown in Fig. 2 Either less component or there is the configuration different from shown in Fig. 2.What deserves to be explained is each component shown in Fig. 2 can be with soft Part, hardware or its be implemented in combination with.
The annexation between component and each component included by the second terminal 200, with the institute of first terminal 100 Including component and each component between annexation it is similar, will not be repeated here.
Wherein, the communication unit of the second terminal 200 can be the Bluetooth communications element of low-power consumption, the second terminal 200 can establish communication connection by the Bluetooth communications element with Intelligent hardware 300.
Fig. 3 is refer to, Fig. 3 is a kind of schematic flow sheet of firmware burning method provided in an embodiment of the present invention, described solid Part method for burn-recording is applied to the firmware burning system 10 shown in Fig. 1.The step shown in Fig. 3 and idiographic flow are done below and explained in detail State.
Step S110, the first terminal 100 obtain the type of the operating system of each second terminal 200 currently connected, And the quantity of each Intelligent hardware 300 that the second terminal 200 can connect is determined according to the type.
Wherein, the Intelligent hardware 300 that different types of operating system can connect is configured with the first terminal 100 Quantity.For example, the operating system same time of Android 4.3 and version higher than Android 4.3 is merely able to connect 6 bluetooths 4.0 Intelligent hardware 300300;And for example, the operating system same time of iOS8 and version higher than iOS8 is merely able to connect 8 indigo plants The Intelligent hardware 300300 of tooth 4.0.
The facility information for treating burning Intelligent hardware 300 of configuration is distributed to each by step S120, the first terminal 100 The second terminal 200, being no more than the quantity for the facility information that each second terminal 200 receives can each connect Intelligent hardware 300 quantity.
In the present embodiment, corresponding operating personnel can configure in the first terminal 100 and treat burning Intelligent hardware 300 facility information.
Wherein, it is described to treat that burning Intelligent hardware 300 refers to need the Intelligent hardware 300 for carrying out firmware burning, for example, first Carry out the Intelligent hardware 300 of firmware burning;And for example, firmware burning before goes wrong, it is necessary to re-start firmware burning Intelligent hardware 300;And for example, the firmware version of burning before is no longer applicable, it is necessary to re-start firmware burning to carry out firmware liter The Intelligent hardware 300 of level.
The facility information includes described treating the identification information of burning Intelligent hardware 300 and needs are burnt to and described treat burning The target firmware code of Intelligent hardware 300.
In the present embodiment, the quantity for treating burning Intelligent hardware 300 can have one, it is two or more, specifically by The quantity for being actually needed the Intelligent hardware 300 for carrying out firmware burning determines.For example, when the intelligence for being actually needed progress firmware burning When the quantity of hardware 300 is a, the quantity for treating burning Intelligent hardware 300 is also a.
In the present embodiment, it is configured with when described when burning Intelligent hardware 300 is multiple in the first terminal 100 Each facility information for treating burning Intelligent hardware 300.Further, multiple equipment for treating burning Intelligent hardware 300 Information can form a facility information list and show in the first terminal 100, in this way, the people that conveniently can work accordingly Member is checked and operated.
During implementation, the facility information for treating burning Intelligent hardware 300 is distributed to each described by the first terminal 100 Second terminal 200 so that each second terminal 200 according to the facility information received to intelligence corresponding to the facility information Hardware 300 carries out firmware burning.Wherein, the quantity for the facility information that each second terminal 200 receives is less than each self energy The quantity of the Intelligent hardware 300 enough connected.
The first terminal 100 is given below to the distributing equipment information of second terminal 200 currently connected one is specific Example:
Assuming that being configured with multiple equipment information in the first terminal 100, the first terminal 100 currently connects a certain The quantity for the Intelligent hardware 300 that second terminal B can be connected is 8, then the first terminal 100 can be transmitted no more than disposably 8 facility informations give the second terminal B.
Under normal circumstances, the first terminal 100 can directly transmit 8 facility informations to the second terminal B, so that Maximumlly utilize the ability of the second terminal B.
Alternatively, as shown in figure 4, in the present embodiment, in the step S120, the first terminal 100 is by configuration Treat the step of facility information of burning Intelligent hardware 300 is distributed to each second terminal 200, can include step S121, Step S122, tetra- steps of step 123 and step S124.
Step S121, the first terminal 100 are and each described according to the quantity of the second terminal 200 currently connected The quantity for the Intelligent hardware 300 that second terminal 200 can connect, the Intelligent hardware 300 that calculates the system while can connect Quantity.
For example, it is assumed that the first terminal 100 is currently connected with 5 second terminals 200,3 in 5 mobile terminals Individual to connect 8 Intelligent hardwares 300, remaining 2 can connect 6 Intelligent hardwares 300.That is, the firmware burning system The quantity for the Intelligent hardware 300 that 10 same times can connect is 3*8+2*6=36.
Step S122, the quantity of Intelligent hardware 300 that the first terminal 100 can connect simultaneously according to the system with And the quantity of burning Intelligent hardware 300 is treated, calculate and treated described in the system completion needed for the firmware burning of burning Intelligent hardware 300 Batch.
Still illustrated with the example in step S121, it is assumed that it is 1000 to treat burning Intelligent hardware 300, then needs point 28 progress firmware burnings, each batch need the firmware of 36 Intelligent hardwares 300 of burning.
Step S123, the first terminal 100 is according to the batch to the facility information for treating burning Intelligent hardware 300 Divided, make to be equal to the system while the quantity for the Intelligent hardware 300 that can be connected per a batch of facility information.
Step S124, the first terminal 100 are directed to per a batch of facility information for treating burning Intelligent hardware 300, will The facility information of the batch is distributed to each second terminal 200.
In this way, can be to largely treating that burning Intelligent hardware 300 carries out burning in batches, and by the information of each batch in institute State first terminal 100 to show, so that corresponding operating personnel are controlled.
Step S130, the second terminal 200 is directed to each facility information received, according to the mark in the facility information Know information and treat that burning Intelligent hardware 300 establishes connection with corresponding, and the target firmware code in the facility information is written to Treated corresponding to described in burning Intelligent hardware 300, so as to treat that burning Intelligent hardware 300 carries out firmware burning corresponding to described.
In the present embodiment, equivalent to one firmware burning of each facility information that the second terminal 200 receives is appointed Business, that is, the second terminal 200 often receives a facility information, it is necessary to Intelligent hardware corresponding to the facility information 300 carry out firmware burning.
Alternatively, in the present embodiment, the identification information in the facility information can be corresponding to the facility information Treat the MAC Address and unit type of burning Intelligent hardware 300.By the MAC Address, the second terminal 200 can be with institute State and treat that burning Intelligent hardware 300 establishes connection corresponding to facility information.By the unit type, the second terminal 200 can With determine whether it is described corresponding to treat whether burning Intelligent hardware 300 is the Intelligent hardware 300 that needs burning.
In the present embodiment, for each facility information received, burning intelligence is treated corresponding with the facility information Hardware 300 is established after connection, and the target firmware code in the facility information is written to the correspondence by the second terminal 200 Treat in burning Intelligent hardware 300, in this way, it is described corresponding to treat that burning Intelligent hardware 300 can be according to the target firmware of write-in Code carries out firmware burning.
Alternatively, as shown in figure 5, in the present embodiment, in the step S130, the second terminal 200 is set according to this Identification information in standby information treats that burning Intelligent hardware 300 establishes connection with corresponding, and the target in the facility information is consolidated Part code be written to it is described corresponding to treat step in burning Intelligent hardware 300, can include step S131, step S132 and The sub-steps of step S133 tri-.
Step S131, the identification information in the facility information treat that burning Intelligent hardware 300 establishes connection with corresponding, And obtain the corresponding current version of firmware for treating burning Intelligent hardware 300.
Step S132, judge the current version of firmware that gets and the current version of firmware in the facility information whether phase Together.
Wherein, the current version of firmware for treating burning Intelligent hardware 300 can also be included in the facility information.It is optional Ground, when described when burning has firmware in burning Intelligent hardware 300, the current version of firmware refers to described treat burning intelligence The version of the firmware of current burning in energy hardware 300;When it is described when not yet burning firmware in burning Intelligent hardware 300 when, it is described Current version of firmware can be sky.
Step S133, if it is different, then by the target firmware code in the facility information be written to it is described corresponding to treat burning In Intelligent hardware 300.
Due to when configuration is when the facility information of burning Intelligent hardware 300, in fact it could happen that mistake, thus, set by above-mentioned Meter, it can avoid repeating burning.
In actual applications, the actual performance of the second terminal 200 may change, so as to cause its same time The quantity that the Intelligent hardware 300 of firmware burning can be carried out is reduced.
Thus, alternatively, in the present embodiment, the firmware burning method can also comprise the following steps:
The Intelligent hardware 300 corresponding to each facility information for receiving, the record of second terminal 200 and the intelligence Programming parameters information corresponding to hardware 300, and exceed in advance in the burning of Intelligent hardware 300 success, burning failure or recordable time If the programming parameters information of record is sent to the first terminal 100 during recordable time.
In the present embodiment, the default recordable time can be determined according to corresponding test data.
During implementation, for each facility information received, in the second terminal 200 to intelligence corresponding to the facility information Can hardware 300 send and establish connection request and start, until complete the firmware burning of Intelligent hardware 300 corresponding to the facility information, Intelligent hardware 300 corresponding to the firmware burning failure of Intelligent hardware 300 corresponding to the facility information or the facility information is solid This process untill part burning time-out, the second terminal 200 can record it is described during programming parameters information.
Wherein, the programming parameters information includes the second terminal 200 company used with the Intelligent hardware 300 foundation connection Connect number during the burning of the Intelligent hardware 300 with the connection failure of Intelligent hardware 300 of time, the second terminal 200, Disconnection times that the second terminal 200 disconnects during the burning of the Intelligent hardware 300 with the Intelligent hardware 300, should Intelligent hardware 300 complete firmware burning used in recordable time and the second terminal 200 the Intelligent hardware 300 burning System reset number in journey.
In this way, staff can collect determines that firmware burning process whether there is mistake according to the programming parameters information Or the irrational place of design, it is more beneficial for collecting 100 various operating systems of first terminal, the test report of system version, So as to help staff's (e.g., software engineer etc.) orientation problem and solve problem.
In this situation, alternatively, configuration can be treated burning intelligence by the first terminal 100 as follows The facility information of hardware 300 is distributed to each second terminal 200:
The first terminal 100 judges the operating system of corresponding second terminal 200 according to the programming parameters information received Stability, the stability includes stable, unstable and unavailable three kinds of states;
When the operating system of the corresponding second terminal 200 is stable, by the equipment for treating burning Intelligent hardware 300 of configuration Information is distributed to each second terminal 200, is equal to the quantity of the accordingly facility information that second terminal 200 is assigned to The quantity for the Intelligent hardware 300 that the corresponding second terminal 200 can connect;
It is the phase according to the programming parameters information when the operating system of the corresponding second terminal 200 is unstable The distributing equipment information of second terminal 200 is answered, makes the quantity of the accordingly facility information that second terminal 200 is assigned to less than described The quantity for the Intelligent hardware 300 that corresponding second terminal 200 can connect;
When the operating system of the corresponding second terminal 200 is unavailable, do not set for the corresponding distribution of second terminal 200 Standby information, and control the corresponding second terminal 200 to restart or reset.
Further, in the present embodiment, it is described solid when the operating system of the corresponding second terminal 200 is unstable Part method for burn-recording can also comprise the following steps:
Facility information for having transmitted to the corresponding second terminal 200, sends and the portion in the facility information Instruction is deleted corresponding to subset information to the corresponding second terminal 200, the corresponding second terminal 200 is deleted the portion Subset information.
In implementation process, when the operating system of the corresponding second terminal 200 is unstable, it can delete described corresponding A part in the facility information that second terminal 200 has been dispensed into, that is, the corresponding second terminal 200 can be cancelled A part for the allocated firmware burning task arrived.
Further, in the present embodiment, it is described solid when the operating system of the corresponding second terminal 200 is unavailable Part method for burn-recording can also comprise the following steps:
Facility information for having transmitted to the corresponding second terminal 200, sends corresponding with the facility information Instruction is deleted to the corresponding second terminal 200, the corresponding second terminal 200 is deleted the facility information.
During implementation, if the operating system of the corresponding second terminal 200 is unavailable, the corresponding second terminal can be deleted The 200 all devices information having been dispensed into, that is, can cancel the corresponding second terminal 200 have been dispensed into it is all Firmware burning task.
Alternatively, in the present embodiment, the first terminal 100 judges corresponding according to the programming parameters information received The step of stability of the operating system of two terminals 200, can be realized by following sub-step:
First, when the connection failure number of the corresponding second terminal 200 is less than the first preset times, disconnection times are less than When second preset times, system reset number are less than the 3rd preset times and recordable time within a preset range, the phase is determined Answer the operating system of second terminal 200 stable.
Wherein, first preset times, the second preset times and the 3rd preset times can be according to the numbers of actual test According to being determined, for example, first preset times can be 3, second preset times can be 5, and the described 3rd is default Number can be 1.The preset range can pass according to the file size of the target firmware code and the data of current network Defeated speed determines.
Second, when the corresponding connection failure number of the second terminal 200 in preset duration is more than the 4th preset times, And Connection Time when being 0, determine that the operating system of the corresponding second terminal 200 is unavailable.
Wherein, the preset duration can be -10 minutes 5 minutes, and the 4th preset times can be 10-20 times.
3rd, when the corresponding second terminal 200 had both been unsatisfactory for the stable condition of operating system, also it is unsatisfactory for operating system During disabled condition, determine that the operating system of the corresponding second terminal 200 is unstable.
Wherein, the stable condition of the operating system is the condition in the above-mentioned first step, and the operating system is unavailable Condition be condition in above-mentioned second step.
In summary, a kind of firmware burning method and system provided by the invention, are obtained by first terminal 100 and currently connected The type of the operating system of each second terminal 200 connect, and determine that each second terminal 200 can connect according to the type of acquisition Intelligent hardware 300 quantity.The facility information for treating burning Intelligent hardware 300 of configuration is distributed to by first terminal 100 Each second terminal 200, the quantity for the facility information that each second terminal 200 receives is set to be no more than the intelligence that can each connect The quantity of energy hardware 300.Each second terminal 200 is directed to each facility information received, according to the mark in the facility information Know information and treat that burning Intelligent hardware 300 establishes connection with corresponding, and should by the target firmware code write-in in the facility information It is corresponding to treat in burning Intelligent hardware 300 so that this it is corresponding treat burning Intelligent hardware 300 carry out firmware burning.In this way, can be with Firmware burning is carried out to multiple Intelligent hardwares 300 simultaneously, improves efficiency.
In embodiment provided herein, it should be understood that disclosed apparatus and method, can also be by other Mode realize.Device embodiment described above is only schematical, for example, the flow chart and block diagram in accompanying drawing are shown According to the device, the architectural framework in the cards of method and computer program product, function of multiple embodiments of the present invention And operation.At this point, each square frame in flow chart or block diagram can represent one of a module, program segment or code Point, a part for the module, program segment or code includes one or more and is used to realize the executable of defined logic function Instruction.It should also be noted that at some as in the implementation replaced, the function of being marked in square frame can also be with different from attached The order marked in figure occurs.For example, two continuous square frames can essentially perform substantially in parallel, they also may be used sometimes To perform in the opposite order, this is depending on involved function.It is it is also noted that each in block diagram and/or flow chart The combination of square frame and the square frame in block diagram and/or flow chart, can use function or action as defined in performing it is special based on The system of hardware is realized, or can be realized with the combination of specialized hardware and computer instruction.
In addition, each functional module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.
If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (10)

  1. A kind of 1. firmware burning method, it is characterised in that applied to firmware burning system, the system includes the be in communication with each other One terminal and second terminal, the second terminal can communicate to connect with Intelligent hardware;Methods described includes:
    The first terminal obtains the type of each second terminal operating system currently connected, and is determined often according to the type The quantity for the Intelligent hardware that the individual second terminal can connect, wherein, different types of behaviour is configured with the first terminal Make the quantity for the Intelligent hardware that system can connect;
    The facility information for treating burning Intelligent hardware of configuration is distributed to each second terminal by the first terminal, is made each The quantity for the facility information that the second terminal receives is no more than the quantity for the Intelligent hardware that can each connect, wherein, institute State facility information and treat that the identification information of burning Intelligent hardware and needs are burnt to the mesh for treating burning Intelligent hardware including described Mark firmware code;
    The second terminal is directed to each facility information received, and the identification information in the facility information is treated with corresponding Burning Intelligent hardware establish connection, and by the target firmware code in the facility information be written to it is described corresponding to treat burning intelligence In hardware, so as to treat that burning Intelligent hardware carries out firmware burning corresponding to described.
  2. 2. according to the method for claim 1, it is characterised in that the facility information also treats burning Intelligent hardware including described Current version of firmware;
    Identification information of the second terminal in the facility information treats that burning Intelligent hardware establishes connection with corresponding, and will Target firmware code in the facility information be written to it is described corresponding to treat in burning Intelligent hardware, including:
    Identification information in the facility information treats that burning Intelligent hardware establishes connection with corresponding, and obtains described corresponding Treat the current version of firmware of burning Intelligent hardware;
    Whether the current version of firmware and the current version of firmware in the facility information that judgement is got are identical;
    If it is different, then by the target firmware code in the facility information be written to it is described corresponding to treat in burning Intelligent hardware.
  3. 3. method according to claim 1 or 2, it is characterised in that methods described also includes:
    The Intelligent hardware corresponding to each facility information for receiving, the second terminal record are corresponding with the Intelligent hardware Programming parameters information, and will note when Intelligent hardware burning success, burning failure or recordable time exceed default recordable time The programming parameters information of record is sent to the first terminal;
    Wherein, the programming parameters information is established the connection Connection Time used with the Intelligent hardware including the second terminal, is somebody's turn to do Number of the second terminal during the burning of the Intelligent hardware with the Intelligent hardware connection failure, the second terminal are in the intelligence The disconnection times that are disconnected during the burning of hardware with the Intelligent hardware, the Intelligent hardware complete the burning used in firmware burning Record the system reset number of time and the second terminal during the burning of the Intelligent hardware.
  4. 4. according to the method for claim 3, it is characterised in that the first terminal treats burning Intelligent hardware by configuration Facility information is distributed to each second terminal, including:
    The first terminal judges the stability of the operating system of corresponding second terminal, institute according to the programming parameters information received Stating stability includes stable, unstable and unavailable three kinds of states;
    When the operating system of the corresponding second terminal is stable, the facility information for treating burning Intelligent hardware of configuration is distributed to Each second terminal, the quantity of the accordingly facility information that second terminal is assigned to is set to be equal to the corresponding second terminal The quantity for the Intelligent hardware that can be connected;
    It is whole for described corresponding second according to the programming parameters information when the operating system of the corresponding second terminal is unstable Distributing equipment information is held, enables the quantity of the accordingly facility information that second terminal is assigned to less than the corresponding second terminal The quantity of the Intelligent hardware enough connected;
    It is not the corresponding second terminal distributing equipment information when the operating system of the corresponding second terminal is unavailable, and The corresponding second terminal is controlled to restart or reset.
  5. 5. according to the method for claim 4, it is characterised in that when the operating system of the corresponding second terminal is unstable When, methods described also includes:
    Facility information for having transmitted to the corresponding second terminal, sends and believes with the equipment component in the facility information Instruction is deleted corresponding to breath to the corresponding second terminal, the corresponding second terminal is deleted the equipment component information;
    When the operating system of the corresponding second terminal is unavailable, methods described also includes:
    Facility information for having transmitted to the corresponding second terminal, sends delete corresponding with the facility information and instructs To the corresponding second terminal, the corresponding second terminal is set to delete the facility information.
  6. 6. according to the method for claim 4, it is characterised in that the first terminal is according to the programming parameters information received Judge the stability of the operating system of corresponding second terminal, including:
    When the connection failure number of the corresponding second terminal is less than the first preset times, disconnection times are less than second default time When number, system reset number are less than the 3rd preset times and recordable time within a preset range, the corresponding second terminal is determined Operating system it is stable;
    When the corresponding connection failure number of the second terminal in preset duration is more than the 4th preset times, and Connection Time When 0, determine that the operating system of the corresponding second terminal is unavailable;
    When the corresponding second terminal had both been unsatisfactory for the stable condition of operating system, the disabled condition of operating system is also unsatisfactory for When, determine that the operating system of the corresponding second terminal is unstable.
  7. 7. method according to claim 1 or 2, it is characterised in that the first terminal treats that burning is intelligently hard by configuration The facility information of part is distributed to each second terminal, including:
    The first terminal is according to the quantity of the second terminal currently connected, and the intelligence that each second terminal can connect The quantity of energy hardware, calculates the system while the quantity for the Intelligent hardware that can be connected;
    The quantity of Intelligent hardware and treat burning Intelligent hardware that the first terminal can connect simultaneously according to the system Quantity, calculate the batch treated described in the system completion needed for the firmware burning of burning Intelligent hardware;
    The first terminal divides according to the batch to the facility information for treating burning Intelligent hardware, makes each batch Facility information be equal to the quantity of Intelligent hardware that the system can connect simultaneously;
    The first terminal is directed to per a batch of facility information for treating burning Intelligent hardware, and the facility information of the batch is distributed To each second terminal.
  8. 8. a kind of firmware burning system, it is characterised in that including the first terminal being in communication with each other and second terminal, described second eventually End can communicate to connect with Intelligent hardware;
    The first terminal, for obtaining the type of each second terminal operating system currently connected, and according to the type It is determined that the quantity for the Intelligent hardware that each second terminal can connect, wherein, it is configured with inhomogeneity in the first terminal The quantity for the Intelligent hardware that the operating system of type can connect;
    The first terminal, it is additionally operable to the facility information for treating burning Intelligent hardware of configuration being distributed to each described second eventually End, the quantity for the facility information that each second terminal receives is set to be no more than the number for the Intelligent hardware that can each connect Amount, wherein, the facility information includes described treating the identification information of burning Intelligent hardware and needs are burnt to and described treat burning intelligence The target firmware code of energy hardware;
    Each second terminal, for each facility information for receiving, according to the identification information in the facility information With it is corresponding treat burning Intelligent hardware establish connect, and by the target firmware code in the facility information be written to it is described corresponding to Treat in burning Intelligent hardware, so as to treat that burning Intelligent hardware carries out firmware burning corresponding to described.
  9. 9. system according to claim 8, it is characterised in that each second terminal, be additionally operable to
    The Intelligent hardware corresponding to each facility information for receiving, each second terminal record and the Intelligent hardware pair The programming parameters information answered, and when Intelligent hardware burning success, burning failure or recordable time exceed default recordable time The programming parameters information of record is sent to the first terminal;
    Wherein, the programming parameters information is established the connection Connection Time used with the Intelligent hardware including the second terminal, is somebody's turn to do Number of the second terminal during the burning of the Intelligent hardware with the Intelligent hardware connection failure, the second terminal are in the intelligence The disconnection times that are disconnected during the burning of hardware with the Intelligent hardware, the Intelligent hardware complete the burning used in firmware burning Record the system reset number of time and the second terminal during the burning of the Intelligent hardware.
  10. 10. system according to claim 9, it is characterised in that the first terminal in the following manner treats configuration The facility information of burning Intelligent hardware is distributed to each second terminal:
    The first terminal judges the stability of the operating system of corresponding second terminal, institute according to the programming parameters information received Stating stability includes stable, unstable and unavailable three kinds of states;
    When the operating system of the corresponding second terminal is stable, the facility information for treating burning Intelligent hardware of configuration is distributed to Each second terminal, the quantity of the accordingly facility information that second terminal is assigned to is set to be equal to the corresponding second terminal The quantity for the Intelligent hardware that can be connected;
    It is whole for described corresponding second according to the programming parameters information when the operating system of the corresponding second terminal is unstable Distributing equipment information is held, enables the quantity of the accordingly facility information that second terminal is assigned to less than the corresponding second terminal The quantity of the Intelligent hardware enough connected;
    It is not the corresponding second terminal distributing equipment information when the operating system of the corresponding second terminal is unavailable, and The corresponding second terminal is controlled to restart or reset.
CN201711170447.3A 2017-11-22 2017-11-22 Firmware burning method and system Active CN107783773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711170447.3A CN107783773B (en) 2017-11-22 2017-11-22 Firmware burning method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711170447.3A CN107783773B (en) 2017-11-22 2017-11-22 Firmware burning method and system

Publications (2)

Publication Number Publication Date
CN107783773A true CN107783773A (en) 2018-03-09
CN107783773B CN107783773B (en) 2021-01-12

Family

ID=61430847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711170447.3A Active CN107783773B (en) 2017-11-22 2017-11-22 Firmware burning method and system

Country Status (1)

Country Link
CN (1) CN107783773B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515633A (en) * 2019-08-30 2019-11-29 深圳市汇顶科技股份有限公司 Burning device and system
CN110515632A (en) * 2019-08-29 2019-11-29 合肥惠科金扬科技有限公司 The method, apparatus and terminal device of product serial code burning
CN110908673A (en) * 2018-10-31 2020-03-24 研祥智能科技股份有限公司 Digital power supply chip burning method
CN111610427A (en) * 2020-04-15 2020-09-01 广东乐心医疗电子股份有限公司 Finished product testing method, circuit board testing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073812A (en) * 2010-12-22 2011-05-25 Tcl通力电子(惠州)有限公司 System and method for burning sequence code
US8233306B1 (en) * 2010-03-31 2012-07-31 Volterra Semiconductor Corporation Memory program circuit
CN102750155A (en) * 2011-04-19 2012-10-24 鸿富锦精密工业(深圳)有限公司 Control board for updating firmware as well as firmware updating system and method
CN103294496A (en) * 2012-02-29 2013-09-11 新唐科技股份有限公司 Burning system
CN105491159A (en) * 2016-01-15 2016-04-13 青岛海尔智能家电科技有限公司 Firmware upgrade pack transmitting method, firmware upgrade pack acquiring method, firmware upgrade pack transmitting device and firmware upgrade pack acquiring device
CN105847067A (en) * 2016-05-25 2016-08-10 北京小米移动软件有限公司 Method and device for upgrading Zigbee equipment
CN107003876A (en) * 2014-11-10 2017-08-01 哈廷电子有限公司及两合公司 Firmware updates

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8233306B1 (en) * 2010-03-31 2012-07-31 Volterra Semiconductor Corporation Memory program circuit
CN102073812A (en) * 2010-12-22 2011-05-25 Tcl通力电子(惠州)有限公司 System and method for burning sequence code
CN102750155A (en) * 2011-04-19 2012-10-24 鸿富锦精密工业(深圳)有限公司 Control board for updating firmware as well as firmware updating system and method
CN103294496A (en) * 2012-02-29 2013-09-11 新唐科技股份有限公司 Burning system
CN107003876A (en) * 2014-11-10 2017-08-01 哈廷电子有限公司及两合公司 Firmware updates
CN105491159A (en) * 2016-01-15 2016-04-13 青岛海尔智能家电科技有限公司 Firmware upgrade pack transmitting method, firmware upgrade pack acquiring method, firmware upgrade pack transmitting device and firmware upgrade pack acquiring device
CN105847067A (en) * 2016-05-25 2016-08-10 北京小米移动软件有限公司 Method and device for upgrading Zigbee equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110908673A (en) * 2018-10-31 2020-03-24 研祥智能科技股份有限公司 Digital power supply chip burning method
CN110908673B (en) * 2018-10-31 2022-05-20 研祥智能科技股份有限公司 Digital power supply chip burning method
CN110515632A (en) * 2019-08-29 2019-11-29 合肥惠科金扬科技有限公司 The method, apparatus and terminal device of product serial code burning
CN110515632B (en) * 2019-08-29 2023-03-07 重庆惠科金扬科技有限公司 Method and device for burning product serial code and terminal equipment
CN110515633A (en) * 2019-08-30 2019-11-29 深圳市汇顶科技股份有限公司 Burning device and system
CN111610427A (en) * 2020-04-15 2020-09-01 广东乐心医疗电子股份有限公司 Finished product testing method, circuit board testing method and device

Also Published As

Publication number Publication date
CN107783773B (en) 2021-01-12

Similar Documents

Publication Publication Date Title
CN107783773A (en) Firmware burning method and system
CN103313216B (en) Message prompt method, system and device for communication account
CN104732329B (en) A kind of equipment tracking method and system
CN110474812A (en) Sample rate self-adapting regulation method and device
CN111258897A (en) Service platform testing method, device and system
CN107153603A (en) Analog detection method, the apparatus and system of game
CN104834602A (en) Program issuing method, device and system
CN106993043A (en) Data communication system and method based on agency
CN111934956B (en) Equipment configuration method and device, storage medium and electronic device
CN108123961A (en) Information processing method, apparatus and system
CN103201690A (en) Local control network processor (LCNP) emulator for multi-generation control systems
CN111026994A (en) Task evaluation information pushing method, system, equipment and storage medium
CN106056436A (en) Data fallback method, device and system
CN105792025A (en) Device information obtaining method and terminal
CN104181415A (en) Managing and monitoring system for direct current of transformer neutral point
CN110334896A (en) State affairs management method, device, equipment and computer storage medium
CN110198522A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN108551453A (en) Status information of equipment adapting method and device
CN115442228A (en) Business logic processing method, device, electronic device, storage medium and system
CN205647584U (en) Elevator safety verification system , elevator safety control system based on SMS platform
CN108508943A (en) One kind educating colored system and method automatically
CN108494951A (en) Data capture method, device, equipment and storage medium are not read
CN108021639A (en) Information-pushing method, device, server and storage medium
CN108964989B (en) Method and device for connecting with service platform and computer readable storage medium
CN112292715A (en) Unmanned aerial vehicle monitoring method and device 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
GR01 Patent grant
GR01 Patent grant