CN109002319A - A kind of patch upgrading methods, devices and systems based on LORA agreement - Google Patents
A kind of patch upgrading methods, devices and systems based on LORA agreement Download PDFInfo
- Publication number
- CN109002319A CN109002319A CN201810827029.5A CN201810827029A CN109002319A CN 109002319 A CN109002319 A CN 109002319A CN 201810827029 A CN201810827029 A CN 201810827029A CN 109002319 A CN109002319 A CN 109002319A
- Authority
- CN
- China
- Prior art keywords
- data
- node
- upgrading
- command
- server
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/656—Updates while running
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the present application discloses a kind of patch upgrading methods, devices and systems based on LORA agreement, it include: to send checking command to node, so that version number and key that the checking command, the node are stored according to itself are verified, it include version number to be verified and key to be verified in the checking command;After receiving the verification successful information that the node is sent, data command is issued to the node, so that the node is by the upgrading data write-in additional space in the data command and enables, to complete patch upgrading.Function upgrading or the problem reparation for allowing to remotely complete LORA product under the contract, greatly improve product reparation and function upgrading speed, and save cost.
Description
Technical field
This application involves field of computer technology more particularly to a kind of patch upgrading method, apparatus based on LORA agreement
And system.
Background technique
Due to having remote, low-power consumption, multinode and a characteristic of low cost, LORA technology using more and more extensive.
However, existing LORA product under the contract need to send maintenance personnel or engineering when function upgrading or problem are repaired
Teacher carries out field repair to product and either directly replaces product, cause product reparation and function upgrading speed very slow to scene,
And human cost is increased, if directly replacing product, it also will cause the waste in resource.
Summary of the invention
The embodiment of the present application provides a kind of patch upgrading methods, devices and systems based on LORA agreement, allows to
The long-range function upgrading for completing LORA product under the contract or problem reparation, greatly improve product reparation and function upgrading speed,
And save cost.
In view of this, the application first aspect provides a kind of patch upgrading method based on LORA agreement, it is applied to clothes
Business device, comprising:
Checking command is sent to node, so that the checking command, the node are according to the version number that itself stores and close
Key is verified, and includes version number to be verified and key to be verified in the checking command;
After receiving the verification successful information that the node is sent, data command is issued to the node, so that institute
Node is stated by the upgrading data write-in additional space in the data command and is enabled, to complete patch upgrading.
Preferably,
Data command is sent to the node so that the node by the upgrading data in the data command store to
Additional space simultaneously enables, and is specifically included with completing patch upgrading:
Batch of data order is repeated as many times and is sent to the node, so that the node is receiving batch of data every time
After order, the batch of data order received and itself already present data command are compared, and save itself and be not present
Data command, then after receive number reaches predetermined times in all data commands of preservation upgrading data be written phase
It answers space and enables, to complete patch upgrading.
Preferably,
After receiving the verification successful information that the node is sent, before data command is sent to the node, also
Include:
It sends agreement and decides through consultation that request is decided through consultation to the node to carry out agreement, and in the agreement for receiving the node transmission
After deciding through consultation successful information, channel being switched according to the content that agreement is decided through consultation, being carried out with will pass through the channel after switching and the node
It communicates next time.
The application second aspect provides a kind of patch upgrading device based on LORA agreement, is applied to server, comprising:
First verification unit, for sending checking command to node, so that the version number that the node is stored according to itself
It is verified with key, includes version number to be verified and key to be verified in the checking command;
Order issuance unit, for after receiving the verification successful information that the node is sent, data command to be issued
To the node, so that the node is by the upgrading data write-in additional space in the data command and enables, to complete to mend
Fourth upgrading.
Preferably,
The order issuance unit is sent to the node specifically for batch of data order to be repeated as many times, so that institute
Node is stated after receiving batch of data order every time, by the batch of data order received and itself already present data command
It is compared, and saves the data command itself being not present, then own after receive number reaches predetermined times to preservation
Upgrading data in data command are written additional space and enable, to complete patch upgrading.
Preferably,
The patch upgrading device based on LORA agreement, further includes:
First agreement decides through consultation unit, decides through consultation that request is decided through consultation to the node to carry out agreement for sending agreement, and connecing
It receives after the agreement that the node is sent decides through consultation successful information, channel is switched according to the content that agreement is decided through consultation, will pass through switching
Channel afterwards is communicated next time with the node.
The application third aspect provides a kind of patch upgrading method based on LORA agreement, is applied to node, comprising:
The checking command that server is sent is received, is then stored according to the checking command, the node according to itself
Version number and key are verified, and send verification successful information to the server, so that the service after verifying successfully
Device issues corresponding data command, includes version number to be verified and key to be verified in the checking command;
After receiving the data command that the server issues, the upgrading data in the data command are written
Additional space simultaneously enables, to complete patch upgrading.
Preferably,
If the server, which is repeated as many times, sends batch of data order, in the number for receiving the server and issuing
After order, by the upgrading data write-in additional space in the data command and enables, is specifically included with completing patch upgrading:
After receiving batch of data order every time, the batch of data order received and itself already present data are ordered
Order is compared, and saves the data command itself being not present, then to the institute of preservation after receive number reaches predetermined times
There is the upgrading data write-in additional space in data command and enable, to complete patch upgrading.
Preferably,
After sending verification successful information to the server, in the data command that the reception server issues
Before, further includes:
It receives the agreement that the server is sent and decides through consultation request, then send agreement and decide through consultation successful information to the service
Device, so that the content that the server after receiving the agreement that the node is sent and deciding through consultation successful information, is decided through consultation according to agreement
Switching channel, being communicated next time with will pass through the channel after switching with the server.
Preferably,
After receiving the data command that the server issues, write by the upgrading data in the data command
Before entering additional space and enabling, further includes:
The upgrading data in the data command are integrated according to the upgrading data sequence number in the data command, and
Upgrading loss of data is judged whether there is according to the upgrading data bulk in the data command;
If not upgrading loss of data, safety check is carried out to all upgrading data, so as to after safety check success
By the upgrading data write-in additional space in the data command and enable.
A kind of patch upgrading device based on LORA agreement of the application fourth aspect is applied to node, comprising:
Second verification unit, for receiving the checking command of server transmission, then according to the checking command, the section
Point is verified according to the version number and key of itself storage, and sends verification successful information to the service after verifying successfully
Device includes version number to be verified in the checking command and to be verified close so that the server issues corresponding data command
Key;
Upgrade unit will be in the data command for after receiving the data command that the server issues
The write-in of upgrading data additional space and enable, to complete patch upgrading.
Preferably,
If the server, which is repeated as many times, sends batch of data order, the upgrade unit is specifically used for:
After receiving batch of data order every time, the batch of data order received and itself already present data are ordered
Order is compared, and saves the data command itself being not present, then to the institute of preservation after receive number reaches predetermined times
There is the upgrading data write-in additional space in data command and enable, to complete patch upgrading.
Preferably,
The patch upgrading device based on LORA agreement, further includes:
Second protocol decides through consultation unit, decides through consultation request for receiving the agreement that the server is sent, then sends agreement quotient
Successful information is determined to the server, so that the server decides through consultation successful information in the agreement for receiving the node transmission
Afterwards, channel being switched according to the content that agreement is decided through consultation, is communicated next time with will pass through the channel after switching with the server.
Preferably,
The patch upgrading device based on LORA agreement, further includes:
Integral unit, according to the upgrading data sequence number in the data command to the upgrading data in the data command into
Row integration, and upgrading loss of data is judged whether there is according to the upgrading data bulk in the data command;
Safety check unit, for carrying out safety check to all upgrading data when not having to upgrade loss of data, so as to
Additional space is written into the upgrading data in the data command after safety check success and is enabled.
The 5th aspect of the application provides a kind of system, including server and node;
The server, for sending checking command to node, so that the checking command, the node are deposited according to itself
The version number of storage and key are verified, and include version number to be verified and key to be verified in the checking command;
After receiving the verification successful information that the node is sent, data command is issued to the node, so that institute
Node is stated by the upgrading data write-in additional space in the data command and is enabled, to complete patch upgrading;
The node, for receiving the checking command of server transmission, then according to the checking command, the node root
It is verified according to the version number and key of itself storage, and transmission verifies successful information to the server after verify successfully,
So that the server issues corresponding data command, it include version number to be verified and key to be verified in the checking command;
After receiving the data command that the server issues, the upgrading data in the data command are written
Additional space simultaneously enables, to complete patch upgrading.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
In the embodiment of the present application, a kind of patch upgrading methods, devices and systems based on LORA agreement, server are provided
Checking command is sent to node, then root section is verified according to the version number and key that checking command, node are stored according to itself,
And verification successful information is sent to server after verifying successfully, it include version number to be verified in checking command and to be verified close
Key;Data command is issued to node after the verification successful information for receiving node transmission by server, so that node is by data
Upgrading data in order are written additional space and enable, to complete patch upgrading, so the embodiment of the present application can be long-range complete
Function upgrading or problem reparation at LORA product under the contract do not need maintenance personnel or engineer to scene to LORA product under the contract
Function upgrading or problem reparation are carried out, product reparation and function upgrading speed is greatly improved, improves user experience,
It does not need to replace existing LORA product under the contract, saves cost.
Detailed description of the invention
Fig. 1 is the method flow of the first embodiment of the patch upgrading method based on LORA agreement in the embodiment of the present application
Figure;
Fig. 2 is the method flow of the second embodiment of the patch upgrading method based on LORA agreement in the embodiment of the present application
Figure;
Fig. 3 is a structural schematic diagram of the patch upgrading device based on LORA agreement in the embodiment of the present application;
Fig. 4 is the method flow of the 3rd embodiment of the patch upgrading method based on LORA agreement in the embodiment of the present application
Figure;
Fig. 5 is the method flow of the fourth embodiment of the patch upgrading method based on LORA agreement in the embodiment of the present application
Figure;
Fig. 6 is a structural schematic diagram of the patch upgrading device based on LORA agreement in the embodiment of the present application;
Fig. 7 is one embodiment schematic diagram of system in the embodiment of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this
Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
Understand for the ease of the technical solution to the embodiment of the present application, spy carries out following explanation:
In embodiment itself, the communication between server and node is all based on the progress of LORA agreement, and LORA is assisted
Product is discussed, is currently function upgrading and problem reparation to be carried out by artificial scene, and the embodiment of the present application can be completed remotely
The function upgrading of LORA product under the contract or problem reparation, greatly improve product reparation and function upgrading speed, and save
Cost.
Referring to Fig. 1, Fig. 1 is the first embodiment of the patch upgrading method based on LORA agreement in the embodiment of the present application
Method flow diagram.
The embodiment of the present application provides a kind of first embodiment of patch upgrading method based on LORA agreement, is applied to clothes
Business device, comprising:
Step 101, checking command is sent to node, so that checking command, node are according to the version number that itself stores and close
Key is verified, and includes version number to be verified and key to be verified in checking command.
In the embodiment of the present application, sending checking command to the purpose of node is request function upgrading or problem reparation;And
Verification in the embodiment of the present application includes checkout of version number and key verification two parts, it should be noted that the two were verified
Without limitation, and only after checkout of version number and key verification succeed, node can just allow server to the sequencing of journey
Send verification successful information.
In the embodiment of the present application, it is assumed that checkout of version number is first carried out, carries out key verification if verifying successfully, if
Verify unsuccessful, then the object for representing this patch upgrading is not LORA product under the contract in node.
Step 102, after the verification successful information for receiving node transmission, data command is issued to node, so that section
Point is by the upgrading data write-in additional space in data command and enables, to complete patch upgrading.
In the embodiment of the present application, the space of upgrading data write-in can be the space flash, and it is empty to be also possible to other storages
Between, it is to be understood that it also needs the code that will upgrade data to execute the information such as address write-in registration table, then makes again, so that
After original LORA product under the contract goes to reserved opening, program can automatically jump to code and execute address to execute ascending series
According to complete patch upgrading.
It, can also the version number that is locally stored of more new node in addition, for the ease of carrying out patch upgrading again.
It is understood that in the embodiment of the present application, in order to realize that the batch upgrade of product, server can also pass through
Corresponding gateway is sent to multiple nodes simultaneously to be instructed.
Referring to Fig. 2, Fig. 2 is the second embodiment of the patch upgrading method based on LORA agreement in the embodiment of the present application
Method flow diagram.
The embodiment of the present application provides a kind of first embodiment of patch upgrading method based on LORA agreement, is applied to clothes
Business device, comprising:
Step 201, checking command is sent to node, so that checking command, node are according to the version number that itself stores and close
Key is verified, and includes version number to be verified and key to be verified in checking command.
Step 201 is identical as the content of step 101 in the application first embodiment, and specific descriptions may refer to the first implementation
The content of example step 101, details are not described herein.
Step 202, it after the verification successful information for receiving node transmission, sends agreement and decides through consultation request to node to carry out
Agreement is decided through consultation, and after the agreement for receiving node transmission decides through consultation successful information, switches channel according to the content that agreement is decided through consultation, with
Channel after will pass through switching is communicated next time with node.
It should be noted that under normal circumstances, multiple product and service devices communication on node all shares a channel, it is
Patch upgrading is avoided to cause adverse effect, the embodiment of the present application number formulary under server to other products operation on the node
According to channel is had switched before order, so that server issues data command by the channel after switching.
It is understood that the content that agreement is decided through consultation includes the configuration parameter of agreement, the configuration of change agreement can be passed through
Parameter come achieve the purpose that replace channel.
Step 203, batch of data order is repeated as many times and is sent to node, so that node is receiving batch of data every time
After order, the batch of data order received and itself already present data command are compared, and save itself and be not present
Data command, then after receive number reaches predetermined times in all data commands of preservation upgrading data be written phase
It answers space and enables, to complete patch upgrading.
It should be noted that being wireless communication based on the communication that LORA agreement carries out, and wirelessly communicate in order to avoid packet loss
Influence to patch upgrading process, every batch of data instruction repeats to send repeatedly, after node receives batch of data order every time,
The data command itself being not present only need to be saved, already existing data command can be abandoned.
In addition, the number that batch of data order repeats to send can be specifically arranged according to the actual situation.
Referring to Fig. 3, Fig. 3 is a structural representation of the patch upgrading device based on LORA agreement in the embodiment of the present application
Figure.
The embodiment of the present application provides a kind of patch upgrading device based on LORA agreement, is applied to server, comprising:
First verification unit 100, for sending checking command to node so that node according to the version number itself stored and
Key is verified, and includes version number to be verified and key to be verified in checking command;
Order issuance unit 200, for after the verification successful information for receiving node transmission, data command to be issued to
Node, so that node is by the upgrading data write-in additional space in data command and enables, to complete patch upgrading.
Further, order issuance unit 200 can be specifically used for for batch of data order being repeated as many times being sent to section
Point, so that node is after receiving batch of data order every time, by the batch of data order received and itself already present number
It is compared according to order, and saves the data command itself being not present, then to preservation after receive number reaches predetermined times
All data commands in the write-in of upgrading data additional space and enable, to complete patch upgrading.
Further, based on the patch upgrading device of LORA agreement, can also include:
First agreement decides through consultation unit 300, decides through consultation that request is decided through consultation to node to carry out agreement for sending agreement, and receiving
After the agreement sent to node decides through consultation successful information, channel is switched according to the content that agreement is decided through consultation, will pass through the letter after switching
Road is communicated next time with node.
Referring to Fig. 4, Fig. 4 is the 3rd embodiment of the patch upgrading method based on LORA agreement in the embodiment of the present application
Method flow diagram.
The embodiment of the present application provides a kind of first embodiment of patch upgrading method based on LORA agreement, is applied to section
Point, comprising:
Step 301, the checking command that server is sent is received, is then stored according to checking command, node according to itself
Version number and key are verified, and send verification successful information to server, so that server issues phase after verifying successfully
The data command answered includes version number to be verified and key to be verified in checking command.
Step 301 is identical as the content of step 101 in the application first embodiment, and specific descriptions may refer to the first implementation
The content of example step 101, details are not described herein.
Step 302, after receiving the data command that server issues, the upgrading data in data command are written corresponding
Space simultaneously enables, to complete patch upgrading.
Step 302 is identical as the content of step 102 in the application first embodiment, and specific descriptions may refer to the first implementation
The content of example step 102, details are not described herein.
Referring to Fig. 5, Fig. 5 is the fourth embodiment of the patch upgrading method based on LORA agreement in the embodiment of the present application
Method flow diagram.
The embodiment of the present application provides a kind of second embodiment of patch upgrading method based on LORA agreement, is applied to section
Point, comprising:
Step 401, the checking command that server is sent is received, is then stored according to checking command, node according to itself
Version number and key are verified, and send verification successful information to server, so that server issues phase after verifying successfully
The data command answered includes version number to be verified and key to be verified in checking command.
Step 401 is identical as the content of step 201 in the application second embodiment, and specific descriptions may refer to the second implementation
The content of example step 201, details are not described herein.
Step 402, it receives the agreement that server is sent and decides through consultation request, then send agreement and decide through consultation successful information to service
Device, so that server switches channel after the agreement for receiving node transmission decides through consultation successful information, according to the content that agreement is decided through consultation,
It is communicated next time with will pass through the channel after switching with server.
Step 402 is identical as the content of step 202 in the application second embodiment, and specific descriptions may refer to the second implementation
The content of example step 202, details are not described herein.
Step 403, after receiving batch of data order every time, the batch of data order received is existing with itself
Data command be compared, and save the data command itself being not present.
It should be noted that the execution of step 403 is suggestion before server is repeated as many times and sends batch of data order
It puts.
Step 404, after receive number reaches predetermined times, data are ordered according to the upgrading data sequence number in data command
Upgrading data in order are integrated, and judge whether there is upgrading loss of data according to the upgrading data bulk in data command.
Step 405, if not upgrading loss of data, safety check is carried out to all upgrading data, so as in safety school
It tests and additional space successfully is written into the upgrading data in data command afterwards and is enabled.
If upgrading loss of data, all data commands having been received can be directly deleted, and wait benefit next time
Fourth upgrading, to will not influence the normal operation of existing LORA product under the contract on node.
The purpose of safety check is the integrality for all data that verifying receives, can also be straight if safety check fails
All data commands deleted and had been received are connect, and wait patch upgrading next time, are had to will not influence on node
LORA product under the contract normal operation.
Step 406, additional space is written to the upgrading data in all data commands of preservation and enabled, to complete patch
Upgrading.
Step 406 is identical as the content of step 203 in the application second embodiment, and specific descriptions may refer to the second implementation
The content of example step 203, details are not described herein.
Referring to Fig. 6, a structural schematic diagram of the patch upgrading device in the embodiment of the present application based on LORA agreement.
A kind of patch upgrading device based on LORA agreement of the application fourth aspect is applied to node, comprising:
Second verification unit 400, for receiving the checking command of server transmission, then according to checking command, node root
It is verified according to the version number and key of itself storage, and transmission verifies successful information to server after verify successfully, so that
Server issues corresponding data command, includes version number to be verified and key to be verified in checking command.
Upgrade unit 500, for after receiving the data command that server issues, by the upgrading data in data command
Write-in additional space simultaneously enables, to complete patch upgrading.
Further, if server, which is repeated as many times, sends batch of data order, upgrade unit 500 can be specifically used for:
After receiving batch of data order every time, the batch of data order received and itself already present data are ordered
Order is compared, and saves the data command itself being not present, then to the institute of preservation after receive number reaches predetermined times
There is the upgrading data write-in additional space in data command and enable, to complete patch upgrading.
Further, based on the patch upgrading device of LORA agreement, can also include:
Second protocol decides through consultation unit 600, and the agreement for receiving server transmission decides through consultation request, then sends agreement and decides through consultation
Successful information is to server, so that server is decided through consultation after the agreement for receiving node transmission decides through consultation successful information according to agreement
Content switch channel, with will pass through switching after channel communicated next time with server.
Further, based on the patch upgrading device of LORA agreement, can also include:
Integral unit 700 carries out the upgrading data in data command according to the upgrading data sequence number in data command whole
It closes, and upgrading loss of data is judged whether there is according to the upgrading data bulk in data command.
Safety check unit 800, for carrying out safety check to all upgrading data when not having to upgrade loss of data,
So that additional space is written in the upgrading data in data command after safety check success and is enabled.
Referring to Fig. 7, Fig. 7 is one embodiment schematic diagram of system in the embodiment of the present application.
The embodiment of the present application also provides a kind of systems, including server 10 and node 20;
Server 10, for sending checking command to node, so that the version number that checking command, node are stored according to itself
It is verified with key, includes version number to be verified and key to be verified in checking command;
After the verification successful information for receiving node transmission, data command is issued to node, so that node is by data
Upgrading data in order are written additional space and enable, to complete patch upgrading;
Then node 20 is stored according to checking command, node according to itself for receiving the checking command of server transmission
Version number and key verified, and verify successfully after send verification successful information to server so that server issues
Corresponding data command includes version number to be verified and key to be verified in checking command;
After receiving the data command that server issues, by the upgrading data write-in additional space in data command and make
Can, to complete patch upgrading.
The embodiment of the present application can remotely complete function upgrading or the problem reparation of LORA product under the contract, not need maintenance people
Member or engineer, to LORA product under the contract progress function upgrading or problem reparation, greatly improve product reparation and function to scene
Energy updating speed, improves user experience, does not also need to replace existing LORA product under the contract, save cost.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
The description of the present application and term " first " in above-mentioned attached drawing, " second ", " third ", " the 4th " etc. are (if deposited
) it is to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that use in this way
Data are interchangeable under appropriate circumstances, so that embodiments herein described herein for example can be in addition to illustrating herein
Or the sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
It should be appreciated that in this application, " at least one (item) " refers to one or more, and " multiple " refer to two or two
More than a."and/or" indicates may exist three kinds of relationships, for example, " A and/or B " for describing the incidence relation of affiliated partner
It can indicate: only exist A, only exist B and exist simultaneously tri- kinds of situations of A and B, wherein A, B can be odd number or plural number.Word
Symbol "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or"." at least one of following (a) " or its similar expression, refers to
Any combination in these, any combination including individual event (a) or complex item (a).At least one of for example, in a, b or c
(a) can indicate: a, b, c, " a and b ", " a and c ", " b and c ", or " a and b and c ", and wherein a, b, c can be individually, can also
To be multiple.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, 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, each functional unit in each embodiment of the application can integrate in 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 application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (full name in English: Read-Only
Memory, english abbreviation: ROM), random access memory (full name in English: Random Access Memory, english abbreviation:
RAM), the various media that can store program code such as magnetic or disk.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before
Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of patch upgrading method based on LORA agreement, which is characterized in that be applied to server, comprising:
Checking command is sent to node so that the checking command, the node according to the version number and key itself stored into
Row verifies, and includes version number to be verified and key to be verified in the checking command;
After receiving the verification successful information that the node is sent, data command is issued to the node, so that the section
Point is by the upgrading data write-in additional space in the data command and enables, to complete patch upgrading.
2. the patch upgrading method according to claim 1 based on LORA agreement, which is characterized in that send data command
To the node, so that the upgrading data in the data command are stored to additional space and are enabled by the node, to complete
Patch upgrading specifically includes:
Batch of data order is repeated as many times and is sent to the node, so that the node is receiving batch of data order every time
Afterwards, the batch of data order received and itself already present data command are compared, and save the number itself being not present
It is then corresponding empty to the upgrading data write-in in all data commands of preservation after receive number reaches predetermined times according to order
Between and enable, to complete patch upgrading.
3. the patch upgrading method according to claim 1 based on LORA agreement, which is characterized in that receiving the node
After the verification successful information of transmission, before data command is sent to the node, further includes:
It sends agreement and decides through consultation that request is decided through consultation to the node to carry out agreement, and decided through consultation receiving the agreement that the node is sent
After successful information, channel is switched according to the content that agreement is decided through consultation, it is next will pass through the channel after switching and node progress
Secondary communication.
4. a kind of patch upgrading device based on LORA agreement, which is characterized in that be applied to server, comprising:
First verification unit, for sending checking command to node, so that the node is according to the version number that itself stores and close
Key is verified, and includes version number to be verified and key to be verified in the checking command;
Order issuance unit, for after receiving the verification successful information that the node is sent, data command to be issued to institute
Node is stated, so that the node is by the upgrading data write-in additional space in the data command and enables, to complete patch liter
Grade.
5. a kind of patch upgrading method based on LORA agreement, which is characterized in that be applied to node, comprising:
Receive the checking command that server is sent, the version then stored according to the checking command, the node according to itself
Number and key verified, and verify successfully after transmission verify successful information to the server so that under the server
It sends out data command corresponding, includes version number to be verified and key to be verified in the checking command;
After receiving the data command that the server issues, the upgrading data in the data command are written corresponding
Space simultaneously enables, to complete patch upgrading.
6. the patch upgrading method according to claim 5 based on LORA agreement, which is characterized in that if the service is thought highly of
Multiple repeatedly transmission batch of data order orders the data then after receiving the data command that the server issues
Upgrading data in order are written additional space and enable, and are specifically included with completing patch upgrading:
After receiving batch of data order every time, by the batch of data order received and itself already present data command into
Row compares, and saves the data command itself being not present, then to all numbers of preservation after receive number reaches predetermined times
It according to the upgrading data write-in additional space in order and enables, to complete patch upgrading.
7. the patch upgrading method according to claim 5 based on LORA agreement, which is characterized in that verified successfully sending
After information to the server, before receiving the data command that the server issues, further includes:
It receives the agreement that the server is sent and decides through consultation request, then send agreement and decide through consultation that successful information to the server, makes
The server is obtained after receiving the agreement that the node is sent and deciding through consultation successful information, the content switching letter decided through consultation according to agreement
Road is communicated with will pass through the channel after switching with the server next time.
8. the patch upgrading method according to claim 5 based on LORA agreement, which is characterized in that receiving the clothes
After the data command that business device issues, before additional space is written in the upgrading data in the data command and is enabled,
Further include:
The upgrading data in the data command are integrated according to the upgrading data sequence number in the data command, and according to
Upgrading data bulk in the data command judges whether there is upgrading loss of data;
If not upgrading loss of data, safety check is carried out to all upgrading data, so as to after safety check success by institute
It states the upgrading data write-in additional space in data command and enables.
9. a kind of patch upgrading device based on LORA agreement, which is characterized in that be applied to node, comprising:
Second verification unit, for receiving the checking command of server transmission, then according to the checking command, the node root
It is verified according to the version number and key of itself storage, and transmission verifies successful information to the server after verify successfully,
So that the server issues corresponding data command, it include version number to be verified and key to be verified in the checking command;
Upgrade unit, for after receiving the data command that the server issues, by the liter in the data command
Grade data write-in additional space simultaneously enables, to complete patch upgrading.
10. a kind of system, which is characterized in that including server and node;
The server, for sending checking command to node, so that the checking command, the node are stored according to itself
Version number and key are verified, and include version number to be verified and key to be verified in the checking command;
After receiving the verification successful information that the node is sent, data command is issued to the node, so that the section
Point is by the upgrading data write-in additional space in the data command and enables, to complete patch upgrading;
The node, for receiving the checking command of server transmission, then according to the checking command, the node according to certainly
The version number of body storage and key are verified, and transmission verifies successful information to the server after verify successfully, so that
The server issues corresponding data command, includes version number to be verified and key to be verified in the checking command;
After receiving the data command that the server issues, the upgrading data in the data command are written corresponding
Space simultaneously enables, to complete patch upgrading.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810827029.5A CN109002319B (en) | 2018-07-25 | 2018-07-25 | LORA protocol-based patch upgrading method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810827029.5A CN109002319B (en) | 2018-07-25 | 2018-07-25 | LORA protocol-based patch upgrading method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109002319A true CN109002319A (en) | 2018-12-14 |
CN109002319B CN109002319B (en) | 2022-07-08 |
Family
ID=64597149
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810827029.5A Active CN109002319B (en) | 2018-07-25 | 2018-07-25 | LORA protocol-based patch upgrading method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109002319B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109769237A (en) * | 2019-01-28 | 2019-05-17 | 三维通信股份有限公司 | A kind of method and system upgraded based on bluetooth and Lora double mode |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104125276A (en) * | 2014-07-21 | 2014-10-29 | 中兴通讯股份有限公司 | Upgrading method and device |
CN106411619A (en) * | 2016-12-02 | 2017-02-15 | 北京博大光通物联科技股份有限公司 | Wireless equipment upgrading method based on low-power-consumption wide area network |
CN107251531A (en) * | 2015-02-17 | 2017-10-13 | 罗伯特·博世有限公司 | For carrying out the method that wireless firmware updates in the wide area network |
CN107247604A (en) * | 2017-05-17 | 2017-10-13 | 杭州魔猫科技有限公司 | A kind of charger baby software firmware update system and its update method |
CN107835088A (en) * | 2017-09-26 | 2018-03-23 | 深圳市亿兆互联技术有限公司 | A kind of LoRa terminal devices over-the-air upgrade method and system |
-
2018
- 2018-07-25 CN CN201810827029.5A patent/CN109002319B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104125276A (en) * | 2014-07-21 | 2014-10-29 | 中兴通讯股份有限公司 | Upgrading method and device |
CN107251531A (en) * | 2015-02-17 | 2017-10-13 | 罗伯特·博世有限公司 | For carrying out the method that wireless firmware updates in the wide area network |
CN106411619A (en) * | 2016-12-02 | 2017-02-15 | 北京博大光通物联科技股份有限公司 | Wireless equipment upgrading method based on low-power-consumption wide area network |
CN107247604A (en) * | 2017-05-17 | 2017-10-13 | 杭州魔猫科技有限公司 | A kind of charger baby software firmware update system and its update method |
CN107835088A (en) * | 2017-09-26 | 2018-03-23 | 深圳市亿兆互联技术有限公司 | A kind of LoRa terminal devices over-the-air upgrade method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109769237A (en) * | 2019-01-28 | 2019-05-17 | 三维通信股份有限公司 | A kind of method and system upgraded based on bluetooth and Lora double mode |
Also Published As
Publication number | Publication date |
---|---|
CN109002319B (en) | 2022-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104917586B (en) | Transmit method of calibration, the apparatus and system of data | |
CN104967497B (en) | A kind of reliable data transmission method and upgrade method based on network communication protocol | |
CN109391649A (en) | The methods, devices and systems of page load | |
CN110166455A (en) | A kind of multi-operator platform data adaptation method and relevant device | |
CN109582335A (en) | It is a kind of without interrupt storage cluster node online upgrading method, device and equipment | |
CN110032393A (en) | A kind of micro services dissemination method, device, equipment and medium | |
CN109842523A (en) | A kind of firmware upgrade method, device, equipment and storage medium | |
CN100403263C (en) | Method for loading equipment software according to allocation | |
CN110120970A (en) | Data processing method, device and gateway system based on car networking | |
CN109558273A (en) | A kind of disk array backup method, electronic equipment and disk array | |
CN110297608A (en) | Processing method, device and the storage medium of data | |
CN107564175A (en) | One kind moves back chucking method, moves back card terminal, mobile network operating side and reimbursement terminal | |
CN109582331A (en) | Upgrade method, the device and system of vehicle-carrying communication module | |
CN107066411A (en) | Data transmission method, device and computer-readable recording medium | |
CN104951256B (en) | A kind of Method of printing, printer and server | |
CN109753295A (en) | A kind of online updating method for trackside security platform | |
CN109002319A (en) | A kind of patch upgrading methods, devices and systems based on LORA agreement | |
CN112559373B (en) | Software compatibility management method and system | |
CN110111188A (en) | Business handling method and apparatus | |
CN110045980A (en) | Remote upgrade method, equipment and the system of a kind of pair of NB-IOT equipment | |
CN107315592A (en) | A kind of method for upgrading software and device | |
CN109224451A (en) | Development of games method, equipment and storage medium based on block chain subchain | |
CN106204031A (en) | card application processing method and device | |
CN104657240B (en) | The Failure Control method and device of more kernel operating systems | |
CN106487858B (en) | Information method for uploading and 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 |