CN109002305A - A kind of update method and its system of device program - Google Patents

A kind of update method and its system of device program Download PDF

Info

Publication number
CN109002305A
CN109002305A CN201710414731.4A CN201710414731A CN109002305A CN 109002305 A CN109002305 A CN 109002305A CN 201710414731 A CN201710414731 A CN 201710414731A CN 109002305 A CN109002305 A CN 109002305A
Authority
CN
China
Prior art keywords
program
updated
equipment
update
new
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
CN201710414731.4A
Other languages
Chinese (zh)
Other versions
CN109002305B (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.)
Oceans King Lighting Science and Technology Co Ltd
Oceans King Dongguan Lighting Technology Co Ltd
Shenzhen Oceans King Lighting Engineering Co Ltd
Original Assignee
Oceans King Lighting Science and Technology Co Ltd
Oceans King Dongguan Lighting Technology Co Ltd
Shenzhen Oceans King Lighting Engineering 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 Oceans King Lighting Science and Technology Co Ltd, Oceans King Dongguan Lighting Technology Co Ltd, Shenzhen Oceans King Lighting Engineering Co Ltd filed Critical Oceans King Lighting Science and Technology Co Ltd
Priority to CN201710414731.4A priority Critical patent/CN109002305B/en
Publication of CN109002305A publication Critical patent/CN109002305A/en
Application granted granted Critical
Publication of CN109002305B publication Critical patent/CN109002305B/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

Abstract

The present invention is suitable for equipment update method field, provides the update method and its system of a kind of device program, and method includes: that gateway receives the device program more new data that client is sent;According to the device program more new data, program more new logo is set;The equipment to be updated reads the described program more new logo of the gateway at predetermined intervals;If it is determined that described program more new logo corresponds to state to be updated, then executes preset program and update operation.The embodiment of the present invention solves existing device program update method, needs manually to update, and human cost is larger, and can not remotely be updated to equipment, also increases the difficulty of program update and reduces the problem of updating efficiency.

Description

A kind of update method and its system of device program
Technical field
The invention belongs to equipment update method field more particularly to the update methods and its system of a kind of device program.
Background technique
With the fast development of technology, in order to meet the diversification of user and the demand of personalization, device manufacturer is usually It needs to be updated device program, updating operation, thus, it could be seen that the renewal frequency of existing equipment program is also more and more frequent, One of an important factor for how easily being upgraded also by more equipment development and is promoted for device program.However existing equipment journey The update method of sequence mainly obtains program by the user of maintenance personnel or equipment manually and updates file, and voluntarily to equipment Middle program is updated, thus, it could be seen that existing device program update method, needs manually to update, human cost is larger, And equipment can not remotely be updated, also increase the difficulty of program update and reduce update efficiency.
Summary of the invention
The update method and its system for being designed to provide a kind of device program of the embodiment of the present invention, it is intended to solve existing Device program update method, need manually to update, human cost is larger, and can not remotely be updated to equipment, It also increases the difficulty of program update and reduces the problem of updating efficiency.
In a first aspect, the embodiment of the present invention provides a kind of update method of device program, the update side of the device program Method includes:
The gateway receives the device program more new data that client is sent;
Program more new logo is arranged according to the device program more new data in the gateway;
The equipment to be updated reads the described program more new logo of the gateway at predetermined intervals;
If the equipment to be updated determines that described program more new logo corresponds to state to be updated, preset program is executed more New operation.
Second aspect, the embodiment of the present invention provide a kind of more new system of device program, the update system of the device program System includes: gateway and at least one equipment to be updated;
The gateway, for receiving the device program more new data of client transmission;
The gateway, for program more new logo to be arranged according to the device program more new data;
The equipment to be updated, the described program for reading the gateway at predetermined intervals update mark Know;
The equipment to be updated is used to then execute preset if it is determined that described program more new logo corresponds to state to be updated Program updates operation.
The update and its system for implementing a kind of device program provided in an embodiment of the present invention have the advantages that
In the embodiment of the present invention when gateway receive client transmission device program more new data after, will be arranged Program more new logo, for informing that equipment to be updated needs to be implemented update operation, equipment to be updated is examined at predetermined intervals The program more new logo in gateway is surveyed, and is executed according to the program more new logo and updates operation, to realize equipment journey The automation of sequence updates, without being manually operated manually.Also, affiliated gateway active of the client to equipment to be updated Device program more new data is stored in local by sending device program more new data, gateway, so as to equipment to be updated progress It obtains, realizes the long-range purpose for updating device program, reduce the difficulty of program update, improve the efficiency of program update.
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 any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of interaction diagrams of the update method for device program that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides a kind of device program update method S104 specific implementation flow Figure;
Fig. 3 be another embodiment of the present invention provides a kind of device program update method S202 specific implementation flow Figure;
Fig. 4 a be another embodiment of the present invention provides a kind of device program update method S303 specific implementation flow Figure;
Fig. 4 b is a kind of division block diagram for equipment storage region to be updated that one embodiment of the invention provides;
Fig. 5 be another embodiment of the present invention provides a kind of device program update method interaction diagrams;
Fig. 6 is a kind of structural schematic diagram of the more new system for device program that one embodiment of the invention provides.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The embodiment of the present invention is updated by client to the affiliated gateway active transmission device program of equipment to be updated Device program more new data is stored in local by data, gateway, when gateway is receiving the device program more new data Afterwards, will be arranged program more new logo, for inform equipment to be updated need to be implemented update operation, equipment to be updated with it is preset when Between program more new logo in interval detection gateway, and preset updates is executed according to the program more new logo and is operated, solved It has determined existing device program update method, has needed manually to update, human cost is larger, and can not carry out to equipment remote Cheng Gengxin also increases the difficulty of program update and reduces the problem of updating efficiency.
In embodiments of the present invention, the update method of the device program is applied to the system of device program, the execution of process Main body mainly includes gateway and at least one equipment to be updated.Wherein, in the present embodiment, the equipment to be updated is specific Are as follows: the smart machine with communication function, illustratively, equipment to be updated can be smart phone, laptop, plate electricity The mobile terminals such as brain, or the intelligent appliances such as Intelligent lamp, smart television, intelligent refrigerator no longer limit one by one herein.? In the present embodiment, which has store function, can be used for storing the device program more new data of client transmission.It needs Illustrate, in the present embodiment, communication connection can be established between gateway and equipment to be updated, gateway can be with One equipment to be updated is communicatively coupled, and equipment to be updated that can also be two or more simultaneously is attached, and is realized to more A equipment to be updated carries out program upgrading.Fig. 1 shows the interaction of the update method of device program provided in an embodiment of the present invention Flow chart, details are as follows:
In S101, the gateway receives the device program more new data that client is sent.
In the present embodiment, the maintenance personnel of equipment to device program optimize or patching bugs after, generate it is corresponding Device program more new data, device program more new data are used to update the operation program of existing equipment.At this point, the maintenance people of equipment Member will be uploaded to the device program more new data above-mentioned client, and client is receiving equipment transmitted by maintenance personnel After program more new data, the relevant operation of S101 will be executed, then equipment corresponding to the device program more new data is carried out Program updates.
In the present embodiment, client will at least be connected with a gateway, and have recorded the logical of each gateway Believe address.The device program more new data is sent to each gateway by wireline communication network or cordless communication network by client Equipment.It should be noted that if client receives the multiple equipment program more new data and multiple equipment of maintenance personnel's transmission Program more new data corresponds to the same gateway, then the device program more new data of multiple equipment to be updated can be encapsulated as one A data information is sent, and updates efficiency to reduce the number for sending operation and improve.
Optionally, in the present embodiment, the corresponding relationship list for having equipment and gateway to be updated is recorded in client. Client will determine that the device program more new data is corresponding after the device program more new data for receiving maintenance personnel's transmission Equipment, and the corresponding relationship list is inquired, the gateway sent needed for then determining, and execute the relevant operation of S101.
Optionally, in the present embodiment, before S101 further include: gateway is at predetermined intervals to client Sending device connects list.Since gateway can be interconnected with multiple equipment to be updated, which is subordinate to equipment will likely Can change, in order to allow client to determine equipment associated by each gateway, in order to by corresponding device program more New data is sent, it is therefore desirable to which gateway timing reports associated equipment to client and connects list.
Optionally, in the present embodiment, being updated to client sending device using user for equipment to be updated is requested, visitor Family end will obtain newest corresponding to the equipment to be updated after the equipment for getting user's transmission updates request from database Device program more new data, and execute the relevant operation of S101.
In S102, program more new logo is arranged according to the device program more new data in the gateway.
In the present embodiment, gateway, will be according to this after the device program more new data for receiving client transmission Program more new logo is arranged in device program more new data, and program more new logo is for informing that equipment to be updated needs to carry out program more Newly.It should be noted that gateway can be connected with multiple client, receives the device program that different clients are sent and update number According to.Since the equipment to be updated that gateway may be manufactured with multiple and different equipment development quotient is connected, and each equipment development Quotient will have corresponding client, and therefore, thus for the ease of the equipment progress program upgrading to different vendor, therefore the gateway is set The device program more new data that standby acceptable different clients are sent.
Optionally, gateway will distribute a program more new logo, gateway for equipment to be updated connected to it After receiving device program more new data, will determine its corresponding equipment to be updated, then gateway will be arranged with it is to be updated The corresponding program of equipment more new logo.Illustratively, program more new logo can indicate whether equipment to be updated needs by 1 or 0 It updates.Equipment to be updated updates behaviour by reading the value in its corresponding program more new logo, to determine whether to execute program Make.
Optionally, gateway only has a program more new logo, and the program more new logo is by least one equipment Mark composition.Whether equipment to be updated is judged in the program more new logo by reading the program more new logo comprising itself Device identification, may then determine whether to need to be implemented update operation.
Optionally, in the present embodiment, if client will be packaged in comprising multiple device programs more new data in S101 It being sent in one data information, gateway will carry out decapsulation operation after obtaining the device program more new data, and The corresponding program more new logo of each device program more new data is set.
In S103, the described program that the equipment to be updated reads the gateway at predetermined intervals updates Mark.
In the present embodiment, since client is not that device program more new data is directly transmitted directly to be updated set It is standby, but the gateway of bridge joint effect has been sent it to, therefore equipment to be updated is in order to know whether to need to be implemented program Operation is updated, then can read the program more new logo at gateway current time at predetermined intervals.
In the present embodiment, equipment to be updated can be directly connected with gateway by communication interface, read its memory In include program more new logo;Equipment to be updated can also be sent by wireless network or cable network to the gateway Program more new logo reads instruction, and gateway is instructed according to the program at current time more new logo according to the reading, returned One is read as a result, then equipment to be updated will acquire the program more new logo to current time.
Optionally, in the present embodiment, the preset time interval of the equipment to be updated can carry out according to the demand of user Setting, can also be configured according to the default value of system.Preferably, the use of the preset time interval and equipment to be updated Frequency dependence.Due to equipment higher for frequency of use, i.e. user is higher to its desirability, therefore whether the equipment is most It works under new program higher to the influence degree of user, therefore, the demand degree that program updates is also higher, to pass through Equipment to be updated higher to frequency of use, corresponding to the preset time interval will be shorter.
It should be noted that equipment to be updated only in the case where unlatching, can just read net at predetermined intervals Close the program more new logo of equipment.Optionally, when equipment to be updated restarts, it will execute the relevant operation of S103.
In S104, if the equipment to be updated determines that described program more new logo corresponds to state to be updated, execute pre- If program update operation.
In the present embodiment, equipment to be updated will determine the need for executing preset program according to the program more new logo Operation is updated, if equipment to be updated executes preset program and update operation according to the corresponding more new state of the program more new logo; If equipment to be updated returns to the step of executing S103, continues to monitor according to the not corresponding more new state of the program more new logo Whether need to carry out program update.
Optionally, in the present embodiment, equipment to be updated is after S104 further include: if equipment to be updated is according to the program More new logo, which determines, needs to be implemented preset update operation, then equipment to be updated sends the resetting of program more new logo to gateway Instruction.Since equipment to be updated has read completion, in order to avoid repeating to determine, equipment to be updated will return after the completion of reading One program more new logo reset indication avoids equipment to be updated so that gateway is adjusted the program more new logo Determine to need to be implemented update operation again.Illustratively, when the program update be identified as 1 when, indicate equipment to be updated need into Line program updates operation;When program update is identified as 0, indicate that equipment to be updated updates operation without executing program.And work as The program update of preceding moment gateway is identified as 1, after the completion of equipment to be updated is read, and will send the resetting of program more new logo and refers to It enables, the program more new logo is adjusted to 0 by gateway.
Above as can be seen that a kind of update method of device program provided in an embodiment of the present invention when gateway by existing After the device program more new data for receiving client transmission, will program more new logo be set, for informing that equipment to be updated needs Update operation is executed, equipment to be updated detects the program more new logo in gateway at predetermined intervals, and according to The program more new logo, which executes, updates operation, so that the automation for realizing device program updates, without manually being grasped manually Make.Also, client will be set to the affiliated gateway active transmission device program more new data of equipment to be updated, gateway Standby program more new data is stored in local, so that equipment to be updated is obtained, realizes the long-range purpose for updating device program, The difficulty for reducing program update improves the efficiency of program update.
On the other hand, in embodiments of the present invention, due to client be send gateway for equipment more new procedures, and Gateway can be interconnected with multiple equipment to be updated, therefore, if client needs simultaneously to be updated multiple equipment to be updated, Then the device program more new data of each equipment to be updated can be uniformly sent to gateway, by gateway to each Equipment to be updated is updated, to improve the efficiency of update, client no longer needs to carry out with each equipment to be updated respectively Communication connection, then sent respectively.Illustratively, if in some family including the identical Intelligent lamp of three models, and on It states three Intelligent lamps to be connected with the same gateway, preset journey is executed according to the program of the gateway more new logo Sequence updates operation.If client gets the device program more new data of the Intelligent lamp of the model, can be by the device program More new data is sent to the corresponding gateway of above three Intelligent lamp, and above three Intelligent lamp can be set by the gateway Standby to carry out program update, transmission operation of the client without executing device program more new data three times reduces the industry of client Business pressure, also improves update efficiency.
Referring to Figure 2 together, Fig. 2 shows another embodiment of the present invention provides a kind of device program update method The specific implementation flow chart of S104.Relative to a upper embodiment, a kind of update method of device program provided in this embodiment S104 also includes following multiple steps, and details are as follows:
Further, as another embodiment of the present invention, described program more new logo includes device identification.The S104 is also Including S201 and S202.
In S201, the equipment to be updated to be updated sets device identification that described program more new logo includes with described Standby device identification is matched.
In the present embodiment, gateway, should by extracting after the device program more new data for getting client transmission The device identification of device program more new data, and program more new logo is arranged according to the device identification, wherein the program updates mark Knowing includes device identification.Therefore, after equipment to be updated reads the program more new logo of gateway, it can determine that the program updates mark Know whether the equipment to be updated referred to is itself.
In the present embodiment, equipment to be updated will extract the device identification for including in the program more new logo acquired, And the device identification is matched with the device identification of itself, if the device identification for including in program more new logo and itself Device identification successful match then executes the relevant operation of S202;Conversely, if the two it fails to match, then it represents that gateway is not Its corresponding device program more new data is received, operation is updated without executing program, then returns to the relevant operation for executing S103.
Optionally, in the present embodiment, if identifying in program more new logo comprising multiple equipment, equipment to be updated will lead to Cross preset device identification partitioning algorithm, the device identification for including in the program more new logo split, respectively with it is each Whether device identification is matched, determine in the program more new logo comprising corresponding more new logo.
In the present embodiment, the device identification includes but is not limited to: the physical address of equipment to be updated, is set network address Standby model, device numbering or device id etc. are used to indicate the mark of equipment identities.
It is described to be updated to set if the device identification successful match of the device identification and equipment to be updated in S202 It is standby to execute the preset program update operation.
Optionally, in the present embodiment, program more new logo also includes program version mark.Equipment to be updated is determining journey After device identification in sequence more new logo is matched with the mark of equipment to be updated, school further will be carried out to program version mark It tests.The verification operation specifically: the journey that equipment to be updated will include in itself program version mark and program more new logo Sequence version identifier is compared, if the version information in program more new logo is newer, is executed preset program and is updated operation;Instead It, then return to the relevant operation for executing S103.
In embodiments of the present invention, since gateway may be connected with multiple equipment to be updated, equipment to be updated Need by the device identification for including in program more new logo with itself carry out match, successful match is just updated operation, from And improve the accuracy rate for updating operation.
Also referring to Fig. 3, Fig. 3 show another embodiment of the present invention provides a kind of device program update method The specific implementation flow chart of S202.The present embodiment and embodiment illustrated in fig. 2 the difference is that, one kind provided in this embodiment The update method S202 of device program comprises the steps of that details are as follows:
Further, as another embodiment of the present invention, the S202 specifically includes S301~S303:
In S301, the equipment to be updated obtains the device program more new data from the gateway, and sets It sets update and executes mark.
In the present embodiment, equipment to be updated will be obtained from gateway and be set after determining that needing to be implemented update operates Standby program more new data.Optionally, equipment to be updated can be sent to gateway updates data acquisition instruction, and gateway is connecing After receiving the instruction, the corresponding device program more new data of the equipment to be updated is returned into equipment to be updated.
Optionally, in the present embodiment, gateway, will after detecting the equipment reading program more new data to be updated The program more new data is directly transmitted to equipment to be updated, the data then reduced between equipment and gateway to be updated are handed over Mutual number, to improve the efficiency of update.
In the present embodiment, equipment to be updated, will the local update of setting after obtaining completion device program more new data Mark is executed, prepares operation for indicating that equipment is completed program and updates, can start to carry out program update.Optionally, it is receiving Before updating program data to equipment, update execution is identified as 0, then it represents that without being updated operation;And work as the more new equipment After finishing receiving equipment update program data, which is executed into mark and is set as 1, program will be carried out more by being used to indicate equipment Newly.
In S302, the equipment to be updated executes reboot operation;
In the present embodiment, since equipment still works under original program, in order to avoid carrying out program update During when being operated to change, replacement or deletion of original program etc. so that equipment be in delay machine state, cause to update operation Can not normally execute, thus when equipment to be updated be provided with update execute mark after, restart equipment, then equipment still In the case where non-loading equipemtn program, carries out program and update operation.
In S303, if the equipment to be updated determines that the update executes the corresponding update execution state of mark, basis The device program more new data is updated program data.
In the present embodiment, after equipment to be updated executes reboot operation, identification is updated and executes mark, and judges the update Execution identifies whether corresponding update execution state, if so, being carried out by program data of the device program more new data to script It updates.Specifically, update execution state includes but is not limited to: function addition updates execution state, program bug reparation executes State and global procedures update execution state.If the device program more new data is the data of program function addition, should Device program more new data is added in the program data of script;If the device program more new data is the number of program bug reparation According to loophole data portion corresponding in the program data of the script is then replaced with device program more new data;If the equipment journey Sequence more new data is the data being updated to global procedures, then deletes the program data of script, which is updated Data copy to the region of the program data storage of script.Therefore, equipment to be updated is obtaining completion device program more new data Afterwards, the updating type that will identify the device program more new data executes mark according to the corresponding update of updating type setting, after And equipment to be updated can execute mark according to the update, execute corresponding program and update operation.
In embodiments of the present invention, equipment to be updated can by gateway obtain device program more new data, without to Client is obtained, and reduces the business load of client, and gateway and equipment to be updated are typically in same office In the net of domain, therefore message transmission rate between the two is very fast, to improve the efficiency of update.Equipment to be updated passes through setting It updates and executes mark and restarting equipment, ensure that the stability of program renewal process.
A referring to Figure 4 together, Fig. 4 a show another embodiment of the present invention provides a kind of device program update method The specific implementation flow chart of S303.The present embodiment and embodiment illustrated in fig. 3 the difference is that, one kind provided in this embodiment The specific implementation flow chart of the update method S303 of device program specifically includes S401~S403:
In S401, the equipment to be updated reads the update and executes mark.
In the present embodiment, equipment to be updated is in each restarting, it will reads update and executes mark, then determines This time belongs to normally-open process when starting, or updates operating process.
In S402, if the update executes mark and meets preset update trigger condition, the equipment to be updated is mentioned Take the device program more new data.
In the present embodiment, mark will be executed in equipment to be updated according to the update to carry out with preset update trigger condition Matching determines whether the secondary starting is to update operating process.Meet preset update trigger condition if updating and executing mark, holds The relevant operation of row S402;Conversely, being unsatisfactory for preset update trigger condition if updating and executing mark, the program of script is read Data are worked based on the program data.
In the present embodiment, equipment to be updated will enter renewal model, such as factory after determining that needing to be implemented update operates Mode or BootLoader mode etc..Since equipment to be updated needs to be updated its program, in the normal mode will It can be capable of calling program data, to can not normally update.It should be noted that the renewal model specifically: set for guiding The standby mode for carrying out program update, and and never call the program data of equipment script.
In the present embodiment, equipment to be updated searches its storage region, and device program more new data is mentioned It takes.Optionally, the device program more new data is stored in preset regional location, equipment to be updated after entering renewal model, Data pointer directly will be directed toward the preset storage region, then, equipment to be updated will extract the data for including in the region As device program more new data.
In S403, the device program more new data is set described program data by the equipment to be updated.
In the present embodiment, equipment to be updated replaces the program data of script after getting device program more new data It is changed to device program more new data, i.e., device program is updated into data cover in the program data pair of equipment to be updated operation originally In the storage region answered.
In the present embodiment, equipment to be updated after the setup, it is corresponding can directly to run the device program more new data Program, to be worked by updated program;Equipment can also be restarted, so that equipment to be updated is in normal work The corresponding program of the device program more new data is run under operation mode.
Optionally, b, Fig. 4 b show a kind of equipment storage region to be updated provided in an embodiment of the present invention referring to fig. 4 Block diagram is divided, for ease of description, Fig. 4 b merely illustrates storage region relevant to embodiment of the present invention part, and not representing should The only following part of storage region forms, but the storage region includes following part.
In embodiments of the present invention, the storage region 40 of equipment to be updated includes and updates to execute identification memory domain 41, more New procedures storage region 42 and operation program storage area 43.Equipment to be updated on startup, can read update and execute mark Know the content of storage region 41, it is determined whether need to be implemented update operation.If equipment to be updated, which is determined, updates operation without executing, Reading data pointer is then directed toward operation program storage area 43, and executes corresponding program in operation program storage area 43. If equipment to be updated, which determines, needs to be implemented update operation, reading data pointer is directed toward and updates program storage area 42, extracted The data for including in program storage area 42 are updated, and the data are stored in operation program storage area 43, in order to cover The program data of script, after the completion of covering, reading data pointer will execute and run program storage area 43, and execute operation journey Corresponding program in sequence storage region 43, so that equipment to be updated, which can be directly based upon updated program data, carries out work Make.Optionally, equipment to be updated will be clear that the content for updating and storing in program storage area 42.
In embodiments of the present invention, equipment to be updated reads update on startup and executes mark, and executes mark according to updating Knowledge determines whether to be updated mode, and sets the program data of update to the program data of script, realizes and automatically updates The purpose of program is updated manually without user, reduces cost of labor, improves update efficiency.
Please refer to fig. 5, Fig. 5 show another embodiment of the present invention provides a kind of device program update method Interaction diagrams.A kind of update method of device program provided in this embodiment comprises the steps of that details are as follows:
In S501, the gateway receives the device program more new data that client is sent.
Since S501 is identical with the specific implementation process of S101, it is specifically described the associated description that please be detailed in S101, This is repeated no more.
Further, the equipment journey sent as another embodiment of the present invention, the client to the gateway After sequence more new data further include:
In S502, the gateway verifies the device program more new data.
In the present embodiment, in order to improve the accuracy rate for updating operation, therefore gateway is receiving device program more After new data, it will be verified by preset update data check algorithm, and determine whether the program data will be errorless.
In the present embodiment, gateway will check whether device program more new data complete and data content whether just Really.It illustratively, will include check bit in device program more new data, and with agreement pair between client and gateway The checking algorithm answered, i.e., above-mentioned update data check algorithm.Gateway, will after getting the device program more new data The check bit for including in the data is extracted, and is verified by the default data check algorithm that updates.If check results are verification Success, then execute the relevant operation of S503;If check results are verification failure, returned data false command is to client.Visitor It family end, will be again to gateway sending device program more new data after receiving error in data instruction.
Optionally, in the present embodiment, gateway will be stored in and be believed with the version of received device program more new data Breath.After gateway receives the device program more new data that client is newly sent, the version information in the data will be extracted, And verify the version information and stored version information, determine whether the version information is existing, that is, has received this Device program more new data.If the version information is existing, the device program more new data is abandoned;Conversely, can then continue school Test its correctness and integrality.
In S503, when passed the verification, the gateway is executed according to the device program more new data, journey is set Sequence more new logo.
In embodiments of the present invention, the more new system of device program carries out device program more new data by gateway Verification avoids equipment to be updated from being updated the more new data of mistake, causes to set to improve the correctness of more new data It is standby to can not work normally.
Since S504~S506 is identical with the specific implementation process of S102~S104, be specifically described please be detailed in S102~ The associated description of S104, details are not described herein.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Fig. 6 shows a kind of structural schematic diagram of the more new system of device program provided in an embodiment of the present invention, referring to Fig. 6 Shown, the more new system 60 of the device program includes:, gateway 61 and at least one equipment 62 to be updated;
The gateway 61, for receiving the device program more new data of client transmission;
The gateway 61, for program more new logo to be arranged according to the device program more new data;
The equipment to be updated 62, the described program for reading the gateway at predetermined intervals update mark Know;
The equipment to be updated 62 is used for if it is determined that described program more new logo corresponds to state to be updated, then execution is default Program update operation.
Optionally, described program more new logo includes device identification;
The equipment to be updated 62 is used for if it is determined that described program more new logo corresponds to state to be updated, then execution is default Program update operation specifically include:
The equipment to be updated 62, device identification and the equipment to be updated for including by described program more new logo Device identification matched;
The equipment to be updated 62, if the device identification successful match for the device identification and equipment to be updated, It executes the preset program and updates operation.
Optionally, the equipment to be updated 62 is specifically included for executing the preset program update operation:
The equipment to be updated 62 for obtaining the device program more new data from the gateway, and is arranged Update executes mark;
The equipment to be updated 62, for executing reboot operation;
The equipment to be updated 62 is used for if it is determined that the update executes the corresponding update execution state of mark, then according to institute Device program more new data is stated to be updated program data.
Optionally, the equipment to be updated 62 is used for if it is determined that the update executes the corresponding update execution state of mark, then Program data is updated according to the device program more new data and is specifically included:
The equipment to be updated 62 executes mark for reading the update;
The equipment to be updated 62 is extracted if executing mark for the update meets preset update trigger condition The device program more new data;
The equipment to be updated 62, for setting described program data for the device program more new data.
Optionally, the gateway 61 is also used to:
The gateway 61, for being verified to the device program more new data;
The gateway 61, for when passed the verification, executing the gateway and being updated according to the device program Program more new logo is arranged in data.
Therefore, the more new system of device program provided in an embodiment of the present invention again may be by receiving when gateway After the device program more new data sent to client, will program more new logo be set, for informing that equipment needs to be updated are held Row updates operation, and equipment to be updated detects the program more new logo in gateway at predetermined intervals, and according to the journey Sequence more new logo, which executes, updates operation, so that the automation for realizing device program updates, without being manually operated manually.And And client is to the affiliated gateway active transmission device program more new data of equipment to be updated, gateway is by equipment journey Sequence more new data is stored in local, so that equipment to be updated is obtained, realizes the long-range purpose for updating device program, reduces The difficulty that program updates improves the efficiency of program update.On the other hand, in embodiments of the present invention, since client is Gateway is sent by equipment more new procedures, and gateway can be interconnected with multiple equipment to be updated, therefore, if client needs Multiple equipment to be updated are updated simultaneously, then it can be by the unified hair of the device program more new data of each equipment to be updated Gateway is given, each equipment to be updated is updated by gateway, to improve the efficiency of update, client It no longer needs to be communicatively coupled with each equipment to be updated respectively, then is sent respectively.
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.
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 and method can pass through others Mode is realized.For example, system embodiment described above is only schematical, for example, the division of the module or unit, Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling or direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or Communication connection 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 unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the embodiment of the present invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with software product in other words Form embody, which is stored in a storage medium, including some instructions use so that one Computer equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute this hair The all or part of the steps of bright each embodiment the method for embodiment.And storage medium above-mentioned include: USB flash disk, mobile hard disk, Read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic The various media that can store program code such as dish or CD.
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 update method of device program characterized by comprising
The gateway receives the device program more new data that client is sent;
Program more new logo is arranged according to the device program more new data in the gateway;
The equipment to be updated reads the described program more new logo of the gateway at predetermined intervals;
If the equipment to be updated determines that described program more new logo corresponds to state to be updated, executes preset program and update behaviour Make.
2. update method according to claim 1, which is characterized in that described program more new logo includes device identification;
If the equipment to be updated determines that described program more new logo corresponds to state to be updated, preset program is executed more New operation specifically includes:
The device identification of device identification and the equipment to be updated that described program more new logo is included by the equipment to be updated It is matched;
If the device identification successful match of the device identification and equipment to be updated, the equipment to be updated executes described default Program update operation.
3. update method according to claim 2, which is characterized in that the equipment to be updated executes the preset program Operation is updated to specifically include:
The equipment to be updated obtains the device program more new data from the gateway, and update is arranged and executes mark Know;
The equipment to be updated executes reboot operation;
If the equipment to be updated determines that the update executes the corresponding update execution state of mark, more according to the device program New data is updated program data.
4. update method according to claim 3, which is characterized in that if the equipment to be updated determines the update The corresponding update execution state of mark is executed, then specific packet is updated to program data according to the device program more new data It includes:
The equipment to be updated reads the update and executes mark;
If the update, which executes mark, meets preset update trigger condition, the equipment to be updated extracts the device program More new data;
The device program more new data is set described program data by the equipment to be updated.
5. update method according to claim 1-4, which is characterized in that the server is to the gateway After the device program of transmission more new data further include:
The gateway verifies the device program more new data;
When passed the verification, the gateway is executed according to the device program more new data, and program more new logo is set.
6. a kind of more new system of device program, which is characterized in that the more new system of the device program include: gateway with And at least one equipment to be updated;
The gateway, for receiving the device program more new data of client transmission;
The gateway, for program more new logo to be arranged according to the device program more new data;
The equipment to be updated, for reading the described program more new logo of the gateway at predetermined intervals;
The equipment to be updated is used to then execute preset program if it is determined that described program more new logo corresponds to state to be updated Update operation.
7. more new system according to claim 6, which is characterized in that described program more new logo includes device identification;
The equipment to be updated is used to then execute preset program if it is determined that described program more new logo corresponds to state to be updated Operation is updated to specifically include:
The equipment to be updated, the equipment of device identification and the equipment to be updated for including by described program more new logo Mark is matched;
The equipment to be updated, if the device identification successful match for the device identification and equipment to be updated, executes institute It states preset program and updates operation.
8. more new system according to claim 7, which is characterized in that the equipment to be updated, it is described default for executing Program update operation specifically include:
The equipment to be updated for obtaining the device program more new data from the gateway, and is arranged update and holds Line identifier;
The equipment to be updated, for executing reboot operation;
The equipment to be updated is used for if it is determined that the update executes the corresponding update execution state of mark, then according to the equipment Program more new data is updated program data.
9. more new system according to claim 8, which is characterized in that the equipment to be updated, be used for if it is determined that it is described more It is new to execute the corresponding update execution state of mark, then specific packet is updated to program data according to the device program more new data It includes:
The equipment to be updated executes mark for reading the update;
The equipment to be updated is set described in extraction if executing mark for the update meets preset update trigger condition Standby program more new data;
The equipment to be updated, for setting described program data for the device program more new data.
10. according to the described in any item more new systems of claim 6-9, which is characterized in that the gateway is also used to:
The gateway, for being verified to the device program more new data;
The gateway, for when passed the verification, executing the gateway according to the device program more new data, if Set program more new logo.
CN201710414731.4A 2017-06-05 2017-06-05 Method and system for updating equipment program Active CN109002305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710414731.4A CN109002305B (en) 2017-06-05 2017-06-05 Method and system for updating equipment program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710414731.4A CN109002305B (en) 2017-06-05 2017-06-05 Method and system for updating equipment program

Publications (2)

Publication Number Publication Date
CN109002305A true CN109002305A (en) 2018-12-14
CN109002305B CN109002305B (en) 2022-09-09

Family

ID=64572666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710414731.4A Active CN109002305B (en) 2017-06-05 2017-06-05 Method and system for updating equipment program

Country Status (1)

Country Link
CN (1) CN109002305B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035139A (en) * 2020-08-21 2020-12-04 深圳Tcl新技术有限公司 Data updating method, device, system and storage medium for intelligent household equipment
CN112905216A (en) * 2021-04-01 2021-06-04 惠州市天宝创能科技有限公司 Remote fixed-point program updating method and system
CN113504933A (en) * 2021-05-28 2021-10-15 曲阜师范大学 Workshop machine updating method and system
CN115178397A (en) * 2022-07-07 2022-10-14 阿维塔科技(重庆)有限公司 Spraying program debugging method, device and equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6553490B1 (en) * 1997-06-30 2003-04-22 Sun Microsystems, Inc. Computer system including local computer with capability to automatically update operating system or application program from network server
CN102739484A (en) * 2012-06-08 2012-10-17 陈梓平 Method for updating driving program of equipment
CN103546576A (en) * 2013-10-31 2014-01-29 中安消技术有限公司 Remote automatic updating method and system of embedded equipment
CN106250192A (en) * 2016-08-04 2016-12-21 芯讯通无线科技(上海)有限公司 The method for upgrading software of host computer and system
JP2017059211A (en) * 2015-09-14 2017-03-23 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Gateway device, vehicle-mounted network system, and firmware update method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6553490B1 (en) * 1997-06-30 2003-04-22 Sun Microsystems, Inc. Computer system including local computer with capability to automatically update operating system or application program from network server
CN102739484A (en) * 2012-06-08 2012-10-17 陈梓平 Method for updating driving program of equipment
CN103546576A (en) * 2013-10-31 2014-01-29 中安消技术有限公司 Remote automatic updating method and system of embedded equipment
JP2017059211A (en) * 2015-09-14 2017-03-23 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Gateway device, vehicle-mounted network system, and firmware update method
CN106250192A (en) * 2016-08-04 2016-12-21 芯讯通无线科技(上海)有限公司 The method for upgrading software of host computer and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
方兵兵,闻路红: "《基于TFTP与AES的嵌入式设备远程固件升级》", 《数据通信》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035139A (en) * 2020-08-21 2020-12-04 深圳Tcl新技术有限公司 Data updating method, device, system and storage medium for intelligent household equipment
CN112905216A (en) * 2021-04-01 2021-06-04 惠州市天宝创能科技有限公司 Remote fixed-point program updating method and system
CN113504933A (en) * 2021-05-28 2021-10-15 曲阜师范大学 Workshop machine updating method and system
CN115178397A (en) * 2022-07-07 2022-10-14 阿维塔科技(重庆)有限公司 Spraying program debugging method, device and equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109002305B (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN105302716B (en) Test method, device under the development mode of interflow
CN106681766B (en) Remote firmware upgrade control method and system
KR101007739B1 (en) Method and system for providing fota service
CN109002305A (en) A kind of update method and its system of device program
CN101268620B (en) Device management system and method for managing device management object
CN109656597A (en) Firmware upgrade method, device and computer readable storage medium
CN102087615A (en) Automated merger of logically associated messages in a message queue
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
CN106648781B (en) Method and system for upgrading remote firmware of communication equipment
CN105468393B (en) Module release upgrade method and terminal installation
CN107643898A (en) Terminal staging method and device
CN105765533A (en) Method and apparatus for firmware virtualization
CN110119280A (en) The method and device of more firmware upgrades
CN113672441B (en) Method and device for testing intelligent equipment
CN109688427A (en) A kind of smart television and its system repair
CN107181606B (en) Method and apparatus for controlling network nodes
CN108111343B (en) Method and equipment for realizing terminal monitoring based on cloud platform and computer storage medium
CN109491909A (en) A kind of CPLD refreshes verification method, device, terminal and storage medium
CN113626276A (en) Method, system, terminal and storage medium for identifying HBA card model of server
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN111984287A (en) Equipment upgrading method and system
CN107515757A (en) Software program upgrade method and system, terminal
CN111400166A (en) Real-time communication service testing method, device and system and electronic equipment
CN103970648B (en) The method of testing of installation kit and system
CN204302961U (en) Embedded device and the diagnostic card for embedded device

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