CN110417828A - A kind of upgrade method and device of internet-of-things terminal - Google Patents
A kind of upgrade method and device of internet-of-things terminal Download PDFInfo
- Publication number
- CN110417828A CN110417828A CN201810387308.4A CN201810387308A CN110417828A CN 110417828 A CN110417828 A CN 110417828A CN 201810387308 A CN201810387308 A CN 201810387308A CN 110417828 A CN110417828 A CN 110417828A
- Authority
- CN
- China
- Prior art keywords
- internet
- memory
- upgrade
- things
- upgrade package
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the invention provides a kind of upgrade method of internet-of-things terminal and devices, and mutually independent Internet of Things communications module and memory are configured in internet-of-things terminal, this method comprises: Internet of Things communications module detects upgrade information;Internet of Things communications module downloads the corresponding upgrade package of the upgrade information, and in the memory by upgrade package storage;Internet of Things communications module confirms download progress to the upgrade package of storage in the memory;If the download progress is to complete downloading, Internet of Things communications module obtains the upgrade package from the memory;Internet of Things communications module executes updating operation according to the upgrade package.In the internet-of-things terminals such as intelligent refrigerator, intelligent air condition, memory usually more abundant with memory space, Internet of Things communications module temporarily borrows memory storage upgrade package, to reduce the memory space requirement to Internet of Things communications module, reduces hardware cost.
Description
Technical field
The present invention relates to the technical fields of Internet of Things, more particularly to the upgrade method and device of a kind of internet-of-things terminal.
Background technique
As the development of Internet of Things is universal, internet-of-things terminal is widely available, such as intelligent refrigerator, intelligent air condition, intelligent electric meter
Etc..
Internet of Things communications module is configured in internet-of-things terminal, Internet of Things communications module has a single function, and size of code is smaller,
Simultaneously in order to reduce cost, Internet of Things communications module often configure small volume RAM (random access memory, with
Machine accesses memory) and Flash flash memory.
When Internet of Things communications module is upgraded, generally require upgrade package passing through network transmission, Internet of Things Netcom
Letter mould group receives after the data of upgrade package the combined and spliced upgrade package completed at one in RAM or Flash flash memory, finally exists
Locally upgraded.
This upgrading mode, it is desirable that reserved in RAM the or Flash flash memory of Internet of Things communications module and store upgrade package enough
Space upgrades more demanding for the Internet of Things communications module that memory is had too many difficulties to cope with.
Summary of the invention
The embodiment of the present invention proposes the upgrade method and device of a kind of internet-of-things terminal, to solve Internet of Things communications module
RAM or Flash flash memory in reserve enough storage upgrade package space cause to upgrade demanding problem.
According to one aspect of the present invention, a kind of upgrade method of internet-of-things terminal is provided, is matched in internet-of-things terminal
Set mutually independent Internet of Things communications module and memory, comprising:
Internet of Things communications module detects upgrade information;
Internet of Things communications module downloads the corresponding upgrade package of the upgrade information, and the upgrade package is stored in described deposit
In reservoir;
Internet of Things communications module confirms download progress to the upgrade package of storage in the memory;
If the download progress is to complete downloading, Internet of Things communications module obtains the upgrading from the memory
Packet;
Internet of Things communications module executes updating operation according to the upgrade package.
Optionally, after the Internet of Things communications module detects upgrade information, further includes:
Internet of Things communications module searches the memory for meeting and storing the corresponding upgrade package of the upgrade information;
If finding, execute the Internet of Things communications module and download the corresponding upgrade package of the upgrade information, and by institute
State upgrade package storage in the memory.
Optionally, the Internet of Things communications module searches the storage for meeting and storing the corresponding upgrade package of the upgrade information
Device, comprising:
The volume information of upgrade package is extracted from the upgrade information;
The volume information is sent to the internet-of-things terminal;
Being ready to complete of receiving that the internet-of-things terminal sends when finding the memory for meeting the volume information is logical
Know;
Based on it is described be ready to complete notice and determine to find can store the memory of the corresponding upgrade package of the upgrade information.
Optionally, the Internet of Things communications module downloads the corresponding upgrade package of the upgrade information, and by the upgrade package
Storage is in the memory, comprising:
Multiple data packets that upgrade server is sent are received, the multiple data packet belongs to the corresponding liter of the upgrade information
Grade packet;
The multiple data packet is sent to the terminal, to be stored in the memory.
Optionally, the Internet of Things communications module is downloaded into the upgrade package confirmation of storage in the memory
Degree, comprising:
End of identification and packet quantity are read from the data packet;
The packet quantity is sent to the internet-of-things terminal according to the end of identification;
Receive internet-of-things terminal transmission when the data packet group for having received the packet quantity is combined into the upgrade package
Downloading completion notice;
The download progress is determined based on the downloading completion notice to complete downloading.
According to another aspect of the present invention, a kind of update device of internet-of-things terminal is provided, is matched in internet-of-things terminal
Mutually independent Internet of Things communications module and memory are set, described device is located in the Internet of Things communications module, comprising:
Upgrade information detection module, for detecting upgrade information;
Upgrade package unloading module is stored in for downloading the corresponding upgrade package of the upgrade information, and by the upgrade package
In the memory;
Download progress confirmation module, for confirming download progress to the upgrade package of storage in the memory;
Upgrade package acquisition module, if being to complete downloading for the download progress, from the memory described in acquisition
Upgrade package;
Upgraded module, for executing updating operation according to the upgrade package.
Optionally, further includes:
Memory look-up module meets the memory for storing the corresponding upgrade package of the upgrade information for searching;
If finding, the upgrade package unloading module is called.
Optionally, the memory look-up module includes:
Volume information extracting sub-module, for extracting the volume information of upgrade package from the upgrade information;
Volume information sending submodule, for the volume information to be sent to the internet-of-things terminal;
It is ready to complete notice receiving submodule, meets the volume information finding for receiving the internet-of-things terminal
Memory when send be ready to complete notice;
Memory determines submodule, can store the upgrade information for being ready to complete determining find of notice based on described in
The memory of corresponding upgrade package.
Optionally, the upgrade package unloading module includes:
Data packet receiving submodule, for receiving multiple data packets of upgrade server transmission, the multiple data packet category
In the corresponding upgrade package of the upgrade information;
Data packet sending submodule, for the multiple data packet to be sent to the terminal, in the memory
It is stored.
Optionally, the download progress confirmation module includes:
Bag data reading submodule, for reading end of identification and packet quantity from the data packet;
Packet quantity sending submodule, it is whole for the packet quantity to be sent to the Internet of Things according to the end of identification
End;
Completion notice receiving submodule is downloaded, the number of the packet quantity will received for receiving the internet-of-things terminal
The downloading completion notice sent when being combined into the upgrade package according to package;
It completes to download and determines submodule, under determining the download progress to complete based on the downloading completion notice
It carries.
The embodiment of the present invention includes following advantages:
In embodiments of the present invention, Internet of Things communications module and memory, Internet of Things Network Communication are configured in internet-of-things terminal
Mould group and memory are mutually indepedent, and Internet of Things communications module detects upgrade information, download the corresponding upgrade package of upgrade information, and will
Upgrade package stores in memory, confirms download progress to upgrade package stored in memory, if download progress is under completing
It carries, then obtains upgrade package from memory, thereby executing updating operation, in the internet-of-things terminals such as intelligent refrigerator, intelligent air condition,
Memory usually more abundant with memory space, Internet of Things communications module temporarily borrow memory storage upgrade package, from
And the memory space requirement to Internet of Things communications module is reduced, hardware cost is reduced, also, for internet-of-things terminal,
The frequency of Internet of Things communications module upgrading is lower, the time needed for upgrading is shorter, small volume of upgrade package, is occupying memory
When being upgraded, the influence for internet-of-things terminal is smaller, it is ensured that the normal operation of internet-of-things terminal.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of internet-of-things terminal of one embodiment of the invention;
Fig. 2 is a kind of step flow chart of the upgrade method of internet-of-things terminal of one embodiment of the invention;
Fig. 3 is the step flow chart of the upgrade method of another internet-of-things terminal of one embodiment of the invention;
Fig. 4 is a kind of structural block diagram of the update device of internet-of-things terminal of one embodiment of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
Referring to Fig. 1, a kind of structural schematic diagram of internet-of-things terminal of one embodiment of the invention is shown.
As shown in Figure 1, configuration processor 110, Internet of Things communications module 120 and memory in internet-of-things terminal 100
130。
Wherein, processor 110 may include CPU (Central Processing Unit, central processing unit), MCU (micro-
Control unit, Microcontroller Unit), etc., be the control centre of internet-of-things terminal 100, using various interfaces and
The various pieces of the entire internet-of-things terminal 100 of connection, by running or executing the software program being stored in memory 130
And/or module, and the data being stored in memory 130 are called, execute the various functions and processing number of internet-of-things terminal 100
According to carry out integral monitoring to internet-of-things terminal 100.
Memory 130 accesses processor 110, can be used for storing the software program and various data of internet-of-things terminal 100,
May include high-speed random access memory, can also include nonvolatile memory, a for example, at least disk memory,
Flush memory device or other volatile solid-state parts.
It should be noted that and other memories can also be configured in Internet of Things communications module 120, can be used for storing Internet of Things
The software program and various data of Network Communication mould group 110, may include high-speed random access memory, can also include non-easy
This is not added in the property lost memory, for example, at least a flush memory device or other volatile solid-state parts, the embodiment of the present invention
With limitation.
Internet of Things communications module 120 accesses processor 110, can be used for carrying out the communication of Internet of Things with platform of internet of things, makes
It obtains internet-of-things terminal 100 and accesses platform of internet of things, obtain the Internet of Things service that platform of internet of things provides.
Furthermore, Internet of Things communications module 120 and memory 130 are mutually indepedent, so-called mutually indepedent, can refer to object
Connected network communication mould group 120 respectively can independently be run with memory 130, and memory 130 is not rely on Internet of Things Network Communication
Mould group 120 is run.
Referring to Fig. 2, a kind of step flow chart of the upgrade method of internet-of-things terminal of one embodiment of the invention is shown,
This method is applied in Internet of Things communications module, can specifically include following steps:
Step 201, Internet of Things communications module detects upgrade information.
In the concrete realization, Internet of Things communications module after start-up, is needed for having to upgrade in Internet of Things communications module
The software program and/or module asked can detecte whether it is upgraded.
Upgraded if necessary, then obtains its relevant upgrade information.
In one embodiment of the invention, step 201 may include following sub-step:
Sub-step S11 detects the first version information of the Internet of Things communications module in the internet-of-things terminal.
Sub-step S12 inquires the second edition information of the Internet of Things communications module from upgrade server.
The first version information is compared by sub-step S13 with the second edition information.
Sub-step S14, if the first version information is lower than the second edition information, by the second edition information
It is set as the upgrade information of the Internet of Things communications module.
In embodiments of the present invention, the software in Internet of Things communications module with upgrade requirement is safeguarded in upgrade server
The latest edition of program and/or module is responsible for externally issuing the latest edition, is downloaded, upgrades for Internet of Things communications module.
On the one hand, Internet of Things communications module checks itself software program and/or module with upgrade requirement in Internet of Things
The first edition version information of terminal local.
On the other hand, the API (Application that Internet of Things communications module calls upgrade server to provide
Programming Interface, application programming interface) interface, send for upgrade requirement software program and/
Or the version checking of module is instructed to the upgrade server, which instructs according to the version querying, inquires the Internet of Things
The latest edition of software program and/or module in Network Communication mould group with upgrade requirement, returns to as second edition information
Internet of Things communications module.
Internet of Things communications module compares first version information and second edition information.
If first version information is lower than second edition information, upgrade tip information can be generated, be sent to Internet of Things end
The processor at end, the screen after processing in internet-of-things terminal shown, can be by the if user agrees to upgrade
Two version informations are set as upgrade information.
Step 202, Internet of Things communications module downloads the corresponding upgrade package of the upgrade information, and the upgrade package is stored
In the memory.
In the concrete realization, the upgrading mode of different types of Internet of Things communications module is different, such as OTA (Over
The Air, over the air) upgrading etc., so that the type of upgrade package is also different, it can be Internet of Things communications module
In with upgrade requirement software program and/or module entire installation file, be also possible to have in Internet of Things communications module
The software program of upgrade requirement and/or the partial replacement file of module, the embodiments of the present invention are not limited thereto.
Internet of Things communications module downloads upgrade package according to upgrade information, such as downloads the corresponding upgrade package of second edition information,
Meanwhile the upgrade package is transferred to the memory independently of Internet of Things communications module.
In one embodiment of the invention, step 202 may include following sub-step:
Sub-step S21 receives multiple data packets that upgrade server is sent.
The multiple data packet is sent to the terminal, to be stored in the memory by sub-step S22.
In embodiments of the present invention, the volume (size) of upgrade package is from several K to several M etc., upgrading biggish for volume
The upgrade package cutting can be multiple data packets by packet, upgrade server.
The api interface that Internet of Things communications module calls upgrade server to provide, according to upgrade information, (such as the second edition is believed
Breath) to upgrade server transmission download instruction, upgrade server returns according to the download instruction to Internet of Things communications module multiple
Data packet, multiple data packet belong to the corresponding upgrade package of upgrade information.
After Internet of Things communications module receives multiple data packets, the processor of internet-of-things terminal, Internet of Things are sent it to
The processor of network termination stores multiple data packets into memory.
Step 203, Internet of Things communications module confirms download progress to the upgrade package of storage in the memory.
Since upgrade package is stored in the memory independently of Internet of Things communications module, Internet of Things communications module is rising
Before grade, the download progress of upgrade package stored in memory is confirmed, to determine whether to complete downloading.
In one embodiment of the invention, step 203 may include following sub-step:
Sub-step S31 reads end of identification and packet quantity from the data packet.
The packet quantity is sent to the internet-of-things terminal according to the end of identification by sub-step S32.
Sub-step S33 receives the internet-of-things terminal and the data packet group for having received the packet quantity is being combined into the liter
The downloading completion notice sent when grade packet.
Sub-step S34 determines the download progress based on the downloading completion notice to complete downloading.
In embodiments of the present invention, upgrade server by upgrade package cutting be multiple data packets when, each data packet is pressed
Coding is assigned according to sequence, and has recorded the packet quantity of data packet, when sending the last one data packet to Internet of Things communications module,
It is subsidiary to indicate to send the end of identification and packet quantity terminated.
If Internet of Things communications module is resolved to end of identification from some data packet, then it represents that upgrade server completes data
Packet quantity is sent to the processor of internet-of-things terminal by the transmission of packet.
Furthermore, Internet of Things communications module generally passes through UDP (User Datagram Protocol, user data
Datagram protocol) agreement sends data packets to the processor of terminal, and udp protocol is a kind of connectionless transport layer protocol, is first passed
Defeated data packet may after receive, the data packet transmitted afterwards may be received first.
Therefore, the processor of internet-of-things terminal detects whether to have received in memory after receiving packet quantity
Quantity is the data packet of the packet quantity, if so, reconfiguring the data packet having received according to the coded sequence of data packet
For upgrade package.
At this point, downloading completion notice can be generated in the processor of internet-of-things terminal, and the downloading completion notice is sent to
Internet of Things communications module.
Internet of Things communications module confirms the downloading of upgrade package stored in memory when receiving downloading completion notice
Progress is to complete downloading, i.e., 100%.
Certainly, the mode of above-mentioned confirmation download progress is intended only as example, in implementing the embodiments of the present invention, can basis
The mode of other confirmation download progresses is arranged in actual conditions, for example, Internet of Things communications module is sending all data packets to end
After the processing at end, it is spaced the preset period, it may be considered that download progress is to complete downloading, etc., the embodiment of the present invention
It is without restriction to this.In addition, those skilled in the art can also be according to reality other than the mode of above-mentioned confirmation download progress
It needs by the way of other confirmation download progresses, the embodiment of the present invention is also without restriction to this.
Step 204, if the download progress is to complete downloading, Internet of Things communications module obtains institute from the memory
State upgrade package.
If upgrade package is completed to download in memory, Internet of Things communications module can be from the storage independently of itself
Complete upgrade package is obtained in device.
Furthermore, Internet of Things communications module can send acquisition request, Internet of Things to the processor of internet-of-things terminal
The processor of terminal reads upgrade package according to the acquisition request from the memory, and is sent to Internet of Things communications module.
Step 205, Internet of Things communications module executes updating operation according to the upgrade package.
Internet of Things communications module can then carry out after obtaining complete upgrade package in the memory independently of itself
Updating operation updates software program and/or module.
In the concrete realization, upgrade package can be saved into the ROM of Internet of Things communications module itself, by the liter in ROM
In the Flash flash memory of grade packet write-in Internet of Things communications module itself, Internet of Things communications module is restarted.
In embodiments of the present invention, Internet of Things communications module and memory, Internet of Things Network Communication are configured in internet-of-things terminal
Mould group and memory are mutually indepedent, and Internet of Things communications module detects upgrade information, download the corresponding upgrade package of upgrade information, and will
Upgrade package stores in memory, confirms download progress to upgrade package stored in memory, if download progress is under completing
It carries, then obtains upgrade package from memory, thereby executing updating operation, in the internet-of-things terminals such as intelligent refrigerator, intelligent air condition,
Memory usually more abundant with memory space, Internet of Things communications module temporarily borrow memory storage upgrade package, from
And the memory space requirement to Internet of Things communications module is reduced, hardware cost is reduced, also, for internet-of-things terminal,
The frequency of Internet of Things communications module upgrading is lower, the time needed for upgrading is shorter, small volume of upgrade package, is occupying memory
When being upgraded, the influence for internet-of-things terminal is smaller, it is ensured that the normal operation of internet-of-things terminal.
Referring to Fig. 3, the step process of the upgrade method of another Internet of Things chip of one embodiment of the invention is shown
Figure, this method are applied in Internet of Things communications module, can specifically include following steps:
Step 301, Internet of Things communications module detects upgrade information.
Step 302, Internet of Things communications module searches the memory for meeting and storing the corresponding upgrade package of the upgrade information.
There may be multiple memories in internet-of-things terminal, it is generally not special that these memories, which have corresponding function,
The upgrade package of door storage Internet of Things communications module, therefore, for Internet of Things communications module after determining upgrade information, can search can
Store the memory of the corresponding upgrade package of upgrade information.
In one embodiment of the invention, step 302 may include following sub-step:
Sub-step S41 extracts the volume information of upgrade package from the upgrade information.
The volume information is sent to the internet-of-things terminal by sub-step S42.
Sub-step S43 receives what the internet-of-things terminal was sent when finding the memory for meeting the volume information
It is ready to complete notice.
Sub-step S44 notifies determining find that can store the corresponding upgrading of the upgrade information based on described be ready to complete
The memory of packet.
In embodiments of the present invention, with the volume information of upgrade package, from several K to several M etc., then Internet of Things in upgrade information
Network Communication mould group extracts the volume information of upgrade package from the upgrade information, and is sent to the processor of internet-of-things terminal.
The processor of internet-of-things terminal traverses each memory, searches the memory that remaining space meets the volume information.
It, then can be from read or write speed, Information Security, load letter if there is multiple memories for meeting the volume information
The different situations such as breath therefrom select a suitable memory, for storing the upgrade package of Internet of Things communications module.
For the processor of internet-of-things terminal when memory has been determined, generation is ready to complete notice, and is sent to Internet of Things Netcom
Believe mould group, at this point, the segment space at least meeting the volume information of the memory is locked, waits storage Internet of Things Network Communication mould
The upgrade package of group.
And Internet of Things communications module is received and is ready to complete after notice, then can determine and find in internet-of-things terminal
The memory of the corresponding upgrade package of the upgrade information can be stored.
Certainly, other than volume information, there is likely to be the requirement that other limit storage upgrade package, examples in upgrade information
It such as, is FAT (File Allocation Table, file configuration table) or NTFS (New Technology to memory requirement
File System), etc., the embodiments of the present invention are not limited thereto.
Step 303, if finding, Internet of Things communications module downloads the corresponding upgrade package of the upgrade information, and by institute
State upgrade package storage in the memory.
If being found in internet-of-things terminal independently of Internet of Things communications module and the corresponding liter of upgrade information can be stored
The memory of grade packet can then download the corresponding upgrade package of upgrade information from upgrade server, meanwhile, upgrade package is transferred to and is deposited
In reservoir.
Certainly, if not found in internet-of-things terminal independently of Internet of Things communications module and meeting storage upgrading letter
The memory of corresponding upgrade package is ceased, then terminates this upgrading.
In embodiments of the present invention, before downloading upgrade package, notice internet-of-things terminal prepares full Internet of Things communications module
The memory of the foot upgrade package memory requirement, can be to avoid because the problem of staging error, reducing the waste of resource caused by memory.
Step 304, Internet of Things communications module confirms download progress to the upgrade package of storage in the memory.
Step 305, if the download progress is to complete downloading, Internet of Things communications module obtains institute from the memory
State upgrade package.
Step 306, Internet of Things communications module carries out completeness check to the upgrade package;If passing through the integrality school
It tests, thens follow the steps 307, if not thening follow the steps 303 by the completeness check.
In embodiments of the present invention, upgrade server can pass through Hash (hash algorithm), SHA1 (Secure Hash
Algorithm, Secure Hash Algorithm) etc. modes, check code generated to upgrade package, it is subsidiary in the packet, such as last number
According to packet, and it is sent to Internet of Things communications module.
Internet of Things communications module is after the memory acquisition upgrade package independently of itself, from the corresponding positions in upgrade package
It sets (such as last region) and extracts the check code that upgrade server provides, also, by the identical mode such as Hash, SHA1, it is right
The upgrade package generates another check code, and the check code provided with upgrade server is compared, if the two is identical, confirms liter
Grade packet confirms that upgrade package does not pass through completeness check if the two is not identical by completeness check.
Step 307, Internet of Things communications module executes updating operation according to the upgrade package.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 4, a kind of structural block diagram of the update device of internet-of-things terminal of one embodiment of the invention, In are shown
Mutually independent Internet of Things communications module and memory are configured in internet-of-things terminal, described device is located at the Internet of Things Network Communication mould
In group, following module can specifically include:
Upgrade information detection module 401, for detecting upgrade information;
Upgrade package unloading module 402 is stored for downloading the corresponding upgrade package of the upgrade information, and by the upgrade package
In the memory;
Download progress confirmation module 403, for confirming download progress to the upgrade package of storage in the memory;
Upgrade package obtains module 404, if being to complete downloading for the download progress, institute is obtained from the memory
State upgrade package;
Upgraded module 405, for executing updating operation according to the upgrade package.
In one embodiment of the invention, further includes:
Completeness check module, for carrying out completeness check to the upgrade package;
If calling the upgraded module 405 by the completeness check;If not passing through the completeness check,
Call the upgrade package unloading module 402.
In one embodiment of the invention, further includes:
Memory look-up module meets the memory for storing the corresponding upgrade package of the upgrade information for searching;
If finding, the upgrade package unloading module 402 is called.
In one embodiment of the invention, the memory look-up module includes:
Volume information extracting sub-module, for extracting the volume information of upgrade package from the upgrade information;
Volume information sending submodule, for the volume information to be sent to the internet-of-things terminal;
It is ready to complete notice receiving submodule, meets the volume information finding for receiving the internet-of-things terminal
Memory when send be ready to complete notice;
Memory determines submodule, can store the upgrade information for being ready to complete determining find of notice based on described in
The memory of corresponding upgrade package.
In one embodiment of the invention, the upgrade information detection module 401 includes:
First version infomation detection submodule, for detecting the of the Internet of Things communications module in the internet-of-things terminal
One version information;
Second edition information inquires submodule, for inquiring the second of the Internet of Things communications module from upgrade server
Version information;
Version information Comparative sub-module, for the first version information to be compared with the second edition information;
Submodule is arranged in upgrade information, if being lower than the second edition information for the first version information, by institute
State the upgrade information that second edition information is set as the Internet of Things communications module.
In one embodiment of the invention, the upgrade package unloading module 402 includes:
Data packet receiving submodule, for receiving multiple data packets of upgrade server transmission, the multiple data packet category
In the corresponding upgrade package of the upgrade information;
Data packet sending submodule, for the multiple data packet to be sent to the terminal, in the memory
It is stored.
In one embodiment of the invention, the download progress confirmation module 403 includes:
Bag data reading submodule, for reading end of identification and packet quantity from the data packet;
Packet quantity sending submodule states end for the packet quantity to be sent to institute's Internet of Things according to the end of identification
End;
Completion notice receiving submodule is downloaded, the number of the packet quantity will received for receiving the internet-of-things terminal
The downloading completion notice sent when being combined into the upgrade package according to package;
It completes to download and determines submodule, under determining the download progress to complete based on the downloading completion notice
It carries.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
In embodiments of the present invention, Internet of Things communications module and memory, Internet of Things Network Communication are configured in internet-of-things terminal
Mould group and memory are mutually indepedent, and Internet of Things communications module detects upgrade information, download the corresponding upgrade package of upgrade information, and will
Upgrade package stores in memory, confirms download progress to upgrade package stored in memory, if download progress is under completing
It carries, then obtains upgrade package from memory, thereby executing updating operation, in the internet-of-things terminals such as intelligent refrigerator, intelligent air condition,
Memory usually more abundant with memory space, Internet of Things communications module temporarily borrow memory storage upgrade package, from
And the memory space requirement to Internet of Things communications module is reduced, hardware cost is reduced, also, for internet-of-things terminal,
The frequency of Internet of Things communications module upgrading is lower, the time needed for upgrading is shorter, small volume of upgrade package, is occupying memory
When being upgraded, the influence for internet-of-things terminal is smaller, it is ensured that the normal operation of internet-of-things terminal.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
The upgrading of the upgrade method to a kind of internet-of-things terminal provided by the present invention and a kind of internet-of-things terminal fills above
It sets, is described in detail, used herein a specific example illustrates the principle and implementation of the invention, above
The explanation of embodiment is merely used to help understand method and its core concept of the invention;Meanwhile for the general skill of this field
Art personnel, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this
Description should not be construed as limiting the invention.
Claims (10)
1. a kind of upgrade method of internet-of-things terminal, which is characterized in that configure mutually independent Internet of Things in internet-of-things terminal
Communications module and memory, comprising:
Internet of Things communications module detects upgrade information;
Internet of Things communications module downloads the corresponding upgrade package of the upgrade information, and the upgrade package is stored in the memory
In;
Internet of Things communications module confirms download progress to the upgrade package of storage in the memory;
If the download progress is to complete downloading, Internet of Things communications module obtains the upgrade package from the memory;
Internet of Things communications module executes updating operation according to the upgrade package.
2. the method according to claim 1, wherein the Internet of Things communications module detection upgrade information it
Afterwards, further includes:
Internet of Things communications module searches the memory for meeting and storing the corresponding upgrade package of the upgrade information;
If finding, execute the Internet of Things communications module and download the corresponding upgrade package of the upgrade information, and by the liter
The storage of grade packet is in the memory.
3. according to the method described in claim 2, it is characterized in that, the Internet of Things communications module, which searches to meet, stores the liter
The memory of the corresponding upgrade package of grade information, comprising:
The volume information of upgrade package is extracted from the upgrade information;
The volume information is sent to the internet-of-things terminal;
Receive that the internet-of-things terminal sends when finding the memory for meeting the volume information is ready to complete notice;
Based on it is described be ready to complete notice and determine to find can store the memory of the corresponding upgrade package of the upgrade information.
4. method according to claim 1-3, which is characterized in that the Internet of Things communications module downloads the liter
The corresponding upgrade package of grade information, and in the memory by upgrade package storage, comprising:
Multiple data packets that upgrade server is sent are received, the multiple data packet belongs to the corresponding upgrading of the upgrade information
Packet;
The multiple data packet is sent to the terminal, to be stored in the memory.
5. according to the method described in claim 4, it is characterized in that, the Internet of Things communications module is to being stored in the memory
In the upgrade package confirm download progress, comprising:
End of identification and packet quantity are read from the data packet;
The packet quantity is sent to the internet-of-things terminal according to the end of identification;
It receives under the internet-of-things terminal sends when the data packet group for having received the packet quantity is combined into the upgrade package
Carry completion notice;
The download progress is determined based on the downloading completion notice to complete downloading.
6. a kind of update device of internet-of-things terminal, which is characterized in that configure mutually independent Internet of Things in internet-of-things terminal
Communications module and memory, described device are located in the Internet of Things communications module, comprising:
Upgrade information detection module, for detecting upgrade information;
Upgrade package unloading module for downloading the corresponding upgrade package of the upgrade information, and the upgrade package is stored in described
In memory;
Download progress confirmation module, for confirming download progress to the upgrade package of storage in the memory;
Upgrade package obtains module, if being to complete downloading for the download progress, the upgrading is obtained from the memory
Packet;
Upgraded module, for executing updating operation according to the upgrade package.
7. device according to claim 6, which is characterized in that further include:
Memory look-up module meets the memory for storing the corresponding upgrade package of the upgrade information for searching;
If finding, the upgrade package unloading module is called.
8. device according to claim 7, which is characterized in that the memory look-up module includes:
Volume information extracting sub-module, for extracting the volume information of upgrade package from the upgrade information;
Volume information sending submodule, for the volume information to be sent to the internet-of-things terminal;
It is ready to complete notice receiving submodule, meets depositing for the volume information finding for receiving the internet-of-things terminal
What is sent when reservoir is ready to complete notice;
Memory determines submodule, notifies determination is found can store the upgrade information correspondence for being ready to complete based on described in
Upgrade package memory.
9. according to the described in any item devices of claim 6-8, which is characterized in that the upgrade package unloading module includes:
Data packet receiving submodule, for receiving multiple data packets of upgrade server transmission, the multiple data packet belongs to institute
State the corresponding upgrade package of upgrade information;
Data packet sending submodule, for the multiple data packet to be sent to the terminal, to carry out in the memory
Storage.
10. device according to claim 9, which is characterized in that the download progress confirmation module includes:
Bag data reading submodule, for reading end of identification and packet quantity from the data packet;
Packet quantity sending submodule, for the packet quantity to be sent to the internet-of-things terminal according to the end of identification;
Completion notice receiving submodule is downloaded, the data packet of the packet quantity will received for receiving the internet-of-things terminal
Group is combined into the downloading completion notice sent when the upgrade package;
It completes to download and determines submodule, complete downloading for determining the download progress based on the downloading completion notice.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810387308.4A CN110417828A (en) | 2018-04-26 | 2018-04-26 | A kind of upgrade method and device of internet-of-things terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810387308.4A CN110417828A (en) | 2018-04-26 | 2018-04-26 | A kind of upgrade method and device of internet-of-things terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110417828A true CN110417828A (en) | 2019-11-05 |
Family
ID=68345905
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810387308.4A Pending CN110417828A (en) | 2018-04-26 | 2018-04-26 | A kind of upgrade method and device of internet-of-things terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110417828A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111314133A (en) * | 2020-02-14 | 2020-06-19 | 宁波三星智能电气有限公司 | Ammeter communication module upgrading method, ammeter control module and ammeter communication module |
CN112152846A (en) * | 2020-09-18 | 2020-12-29 | 重庆神缘智能科技有限公司 | Metering instrument remote upgrading method based on Internet of things |
CN112181465A (en) * | 2020-12-01 | 2021-01-05 | 深圳杰睿联科技有限公司 | Management method and device for third-party application in communication module of Internet of things |
CN112416408A (en) * | 2020-12-08 | 2021-02-26 | 金卡智能集团股份有限公司 | Firmware upgrading method, device, equipment and computer readable storage medium |
CN112506705A (en) * | 2020-12-05 | 2021-03-16 | 广州技象科技有限公司 | Distributed storage configuration information backup method and device |
CN113553077A (en) * | 2021-05-31 | 2021-10-26 | 宁波三星医疗电气股份有限公司 | Intelligent ammeter firmware upgrading method and intelligent ammeter |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040153637A1 (en) * | 2003-01-31 | 2004-08-05 | International Business Machines Corporation | Using a cache and data transfer methodology to control real-time process data in a pxe pre-boot manufacturing environment |
CN101383847A (en) * | 2008-08-25 | 2009-03-11 | 中兴通讯股份有限公司 | Firmware upgrading method and device for wireless data terminal |
CN104636163A (en) * | 2014-12-31 | 2015-05-20 | 青岛海尔科技有限公司 | Firmware upgrading method and related device and system |
CN105591824A (en) * | 2016-01-14 | 2016-05-18 | 杭州赫智电子科技有限公司 | Method and system for firmware upgrade |
CN105610966A (en) * | 2016-01-20 | 2016-05-25 | 深圳市中兴物联科技股份有限公司 | Terminal of Internet of things and upgrading method thereof |
-
2018
- 2018-04-26 CN CN201810387308.4A patent/CN110417828A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040153637A1 (en) * | 2003-01-31 | 2004-08-05 | International Business Machines Corporation | Using a cache and data transfer methodology to control real-time process data in a pxe pre-boot manufacturing environment |
CN101383847A (en) * | 2008-08-25 | 2009-03-11 | 中兴通讯股份有限公司 | Firmware upgrading method and device for wireless data terminal |
CN104636163A (en) * | 2014-12-31 | 2015-05-20 | 青岛海尔科技有限公司 | Firmware upgrading method and related device and system |
CN105591824A (en) * | 2016-01-14 | 2016-05-18 | 杭州赫智电子科技有限公司 | Method and system for firmware upgrade |
CN105610966A (en) * | 2016-01-20 | 2016-05-25 | 深圳市中兴物联科技股份有限公司 | Terminal of Internet of things and upgrading method thereof |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111314133A (en) * | 2020-02-14 | 2020-06-19 | 宁波三星智能电气有限公司 | Ammeter communication module upgrading method, ammeter control module and ammeter communication module |
CN112152846A (en) * | 2020-09-18 | 2020-12-29 | 重庆神缘智能科技有限公司 | Metering instrument remote upgrading method based on Internet of things |
CN112181465A (en) * | 2020-12-01 | 2021-01-05 | 深圳杰睿联科技有限公司 | Management method and device for third-party application in communication module of Internet of things |
CN112506705A (en) * | 2020-12-05 | 2021-03-16 | 广州技象科技有限公司 | Distributed storage configuration information backup method and device |
CN112416408A (en) * | 2020-12-08 | 2021-02-26 | 金卡智能集团股份有限公司 | Firmware upgrading method, device, equipment and computer readable storage medium |
CN113553077A (en) * | 2021-05-31 | 2021-10-26 | 宁波三星医疗电气股份有限公司 | Intelligent ammeter firmware upgrading method and intelligent ammeter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110417828A (en) | A kind of upgrade method and device of internet-of-things terminal | |
US10255102B2 (en) | Transaction control arrangement for device management system | |
CN112000355B (en) | Method and device for firmware upgrading and household appliance | |
CN111831297B (en) | Zero-difference upgrading method and device | |
CN109391673A (en) | A kind of method, system and the terminal device of management update file | |
CN110855746A (en) | Middleware management method, electronic device and storage medium | |
CN108934033A (en) | A kind of upgrading of base station, backing method and device | |
CN112995806A (en) | Method, device, system and storage medium for upgrading optical network unit | |
CN110602234B (en) | Block chain network node management method, device, equipment and storage medium | |
CN112235422B (en) | Data processing method and device, computer readable storage medium and electronic device | |
CN104104701A (en) | Online service configuration updating method and system | |
CN113094064A (en) | Gateway software module upgrading method, device, equipment and storage medium | |
CN103677933A (en) | Patching method and system for smart card | |
CN115098297B (en) | Consistent snapshot generation method and system for cloud primary storage data volume | |
CN106254440B (en) | AP upgrading method and device | |
CN117616389A (en) | Substitution of executable load files in secure elements | |
CN111355716B (en) | Method, system, equipment and medium for determining unique identifier of virtual machine | |
CN115033551A (en) | Database migration method and device, electronic equipment and storage medium | |
CN113950035A (en) | Method and terminal for dynamically updating NFC (near field communication) capability and UICC (Universal Integrated Circuit card) | |
CN112748932B (en) | Data processing method and server based on intelligent contract | |
CN117270902B (en) | OTA upgrade package generation method and device, OTA upgrade method and device | |
CN117850841A (en) | Plug-in upgrading method and related device | |
CN109542588B (en) | Method and device for managing virtual equipment in cloud environment | |
CN117492787A (en) | Software upgrading method, terminal equipment and network equipment | |
CN116541038A (en) | Method and device for judging success of upgrading of multiple files based on single chip microcomputer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191105 |
|
RJ01 | Rejection of invention patent application after publication |