CN109697080A - A kind of Internet of Things operating system online upgrading method - Google Patents
A kind of Internet of Things operating system online upgrading method Download PDFInfo
- Publication number
- CN109697080A CN109697080A CN201811585100.XA CN201811585100A CN109697080A CN 109697080 A CN109697080 A CN 109697080A CN 201811585100 A CN201811585100 A CN 201811585100A CN 109697080 A CN109697080 A CN 109697080A
- Authority
- CN
- China
- Prior art keywords
- upgrade
- internet
- packet
- things equipment
- 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.)
- 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
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)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of Internet of Things operating system online upgrading method, step S1, the updating client for running on internet of things equipment sends system upgrade request to upgrade server;Step S2, upgrade server provide the table listings of system upgrade packet to updating client according to the upgrade request received;Step S3, updating client download corresponding system upgrade packet according to internet of things equipment table listings from upgrade server;Step S4, upgrade package tools, which are converted to the format of system upgrade packet, directly to be executed the format of installation for internet of things equipment and forms upgrade installation package;Step S5, internet of things equipment executes the upgrade installation package that installation steps S4 is formed, complete system update, the present invention can be based on internet of things equipment itself upgrading authority, the system upgrade packet that downloading needs is upgraded, the flexibility of Internet of Things operating system update is improved, the upgrading burden of Internet of Things operating system is reduced, improves the stability of system operation.
Description
Technical field
The present invention relates to internet of things field more particularly to a kind of Internet of Things operating system online upgrading methods.
Background technique
At present the operating system update method of mainstream substantially there are two types of: one is in desktop system commonly with single independent
Software package is the upgrade method of basic unit, for can be with unrestricted choice some to be updated independent software packages.Desktop system
Using single independent software package as basic unit method for upgrading system upgrade flexibility ratio it is higher, user can be according to actual needs
The software package that selection needs is upgraded, and without checking for unwanted upgrading software package, reduces the operating system of user
Use cost.But if user installs a certain independent software package to conflict with operating system version by force, operation may result in
The dependence of the software of all installations and operating system itself ruptures in system, or will affect the stability of operating system, very
To may cause system crash.
Another existing upgrade method is whole upgrade method, and in the method, software is divided into application by operating system
Software and system component, application software supports user's standalone upgrade, but system component must be using the method integrally upgraded.Due to
This method needs the system component installation kit of disposable downloading large capacity, and may deposit in the system component installation kit downloaded
The system component of upgrading is not needed in the operating system, not only wastes the memory space of operating system, but also extend system
Update time.If above two method for upgrading system is applied to Internet of Things operating system, Internet of Things net operation system will affect
The operation stability and system upgrade of system are born.
Summary of the invention
In view of above-mentioned technical problem, the purpose of the present invention is to provide a kind of Internet of Things operating system online upgradings
Method, to solve the above technical problems.
The present invention solves its technical problem and adopts the technical scheme that, provides a kind of Internet of Things operating system online upgrading side
Method realizes, the online upgrade system includes: by an online upgrade system
One runs on the updating client of internet of things equipment, the updating client be used to send to a upgrade server or
System upgrade request is received, and is used for from download system upgrade package from the upgrade server and exports;
One runs on the upgrade package tools of the internet of things equipment, communicates to connect the updating client, for turning
It changes the format of the received system upgrade packet at the updating client and remakes to form new upgrade package;
One upgrade server communicates to connect the updating client, for providing the system for the updating client
Upgrade package;
The online upgrading method includes the following steps:
Step S1, the updating client send system upgrade request to the upgrade server;
Step S2, the upgrade server is according to the upgrade request received to described in updating client offer
The table listings of system upgrade packet;
Step S3, the updating client are downloaded from the upgrade server according to the internet of things equipment table listings
The corresponding system upgrade packet;
The format of the system upgrade packet is converted to and is set for the Internet of Things by step S4, the upgrade package tools
The standby format for directly executing installation simultaneously forms upgrade installation package;
Step S5, the internet of things equipment, which executes, installs the upgrade installation package that the step S4 is formed, and completes system
It updates.
As a preferred solution of the present invention, it is specifically included in the step S2:
Step S21, the upgrade server receive the upgrade request;
Step S22, the upgrade server judge whether there is institute to be updated according to the upgrade request received
System upgrade packet is stated, then provide the table listings of the system upgrade packet to the updating client if it exists and is transferred to step
S3 then sends the not standby signal of upgrading to the updating client and exits process if it does not exist.
As a preferred solution of the present invention, in the step S4, the upgrade package tools convert the system
Before upgrade package, first judge whether the system upgrade packet for the internet of things equipment directly executes installation,
If so, the internet of things equipment is mounted directly the system upgrade packet, and exit process;
If it is not, the format of the system upgrade packet to be then converted to the lattice for directly executing installation for the internet of things equipment
Formula simultaneously forms the upgrade installation package.
As a preferred solution of the present invention, the upgrade server is WEB server.
As a preferred solution of the present invention, content includes that the system upgrade packet is believed substantially in the system upgrade packet
It ceases, the upgrade file and authority of the system upgrade packet, records the Internet of Things for allowing to upgrade in the authority
The corresponding network address list of equipment.
As a preferred solution of the present invention, in the step S3, the updating client downloads the system
First judge whether the internet of things equipment has upgrading authority before upgrade package, such as internet of things equipment does not have the upgrading
Permission then exits process.
As a preferred solution of the present invention, it is described to judge whether the internet of things equipment has for the updating client
The method of upgrading authority is,
The authority is extracted in the system upgrade packet, the network address list in the authority
Middle lookup compares the corresponding network address of the internet of things equipment;
If comparing successfully, the internet of things equipment has the upgrading authority, and otherwise the internet of things equipment does not have
The upgrading authority.
As a preferred solution of the present invention, the updating client includes the first data extracting unit, for extracting
The authority in the system upgrade packet.
As a preferred solution of the present invention, include: inside the upgrade package tools
Second data extracting unit, for extracting the system upgrade packet essential information in the system upgrade packet and defeated
Out;
Format conversion unit supports the internet of things equipment to execute peace for being converted to the format of the system upgrade packet
The formatted file of dress and output;
Compression unit connects the format conversion unit, for carrying out compression processing to the formatted file;
Encapsulation unit connects the compression unit, for Reseal forming the upgrading to the formatted file
Installation kit includes checking information in the upgrade installation package;
Verification unit is separately connected the encapsulation unit and second data extracting unit, for comparing the upgrading
Whether the checking information content in installation kit is basic with the system upgrade packet of second data extracting unit extraction
The information content is consistent;
If consistent, the upgrade installation package that production is formed is supplied to the object by the upgrade installation package tools
Networked devices are updated upgrading;
If inconsistent, the internet of things equipment does not execute updating operation.
As a preferred solution of the present invention, the system upgrade packet basic information content in the system upgrade packet
Include:
First field, for indicating address information of the system upgrade packet on the upgrade server;
Second field, for indicating the updating type of the system upgrade packet;
Third field, for indicating the Schema information of the internet of things equipment that the system upgrade packet is directed to;
4th field, for indicating the issue date of the system upgrade packet;
5th field, for describing the more new content of the system upgrade packet;
6th field updates the particular problem solved after the system upgrade packet for indicating;
7th field, for indicating after updating the system upgrade packet, whether the internet of things equipment, which needs, restarts.
Compared with prior art, the invention has the advantages that Internet of Things operating system online upgrading provided by the invention
Method, the system upgrade packet that needs based on the upgrading authority of internet of things equipment itself, can be downloaded from upgrade server are risen
Grade, improves the flexibility of Internet of Things operating system update, reduces the upgrading burden of Internet of Things operating system, improves system
The stability of operation.
Detailed description of the invention
Fig. 1 is Internet of Things operating system online upgrading method flow diagram provided in an embodiment of the present invention;
Fig. 2 is the realization of the step S2 in Internet of Things operating system online upgrading method provided in an embodiment of the present invention
Flow chart;
Fig. 3 is for realizing the online upgrading system of Internet of Things operating system online upgrading method provided in an embodiment of the present invention
The structural schematic diagram of system;
Fig. 4 is for realizing the online upgrading system of Internet of Things operating system online upgrading method provided in an embodiment of the present invention
The internal structure chart of the updating client in system;
Fig. 5 is for realizing the online upgrading system of Internet of Things operating system online upgrading method provided in an embodiment of the present invention
The internal structure chart of the upgrade package tools in system.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without creative labor it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The present invention will be further explained below with reference to the attached drawings and specific examples, but not as the limitation of the invention.
Internet of Things operating system online upgrading method provided in an embodiment of the present invention, by an online upgrade system realize,
Referring to figure 3., online upgrade system 100 includes:
One runs on the updating client 1 of internet of things equipment, updating client 1 be used to send to a upgrade server 3 or
System upgrade request is received, and is used for from download system upgrade package from upgrade server 3 and exports;
One runs on the upgrade package tools 2 of internet of things equipment, communicates to connect updating client 1, rises for being transformed in
Grade client 1 at received system upgrade packet format and remake to form new upgrade package;
One upgrade server 3 communicates to connect updating client 1, for providing system upgrade packet for updating client 1;
Fig. 1 is please referred to, online upgrading method includes the following steps:
Step S1, updating client 1 send system upgrade request to upgrade server 3;
Step S2, upgrade server 3 according to the upgrade request received to updating client mention 1 for system upgrade packet column
Table inventory;
Step S3, updating client 1 are downloaded from upgrade server 3 according to the table listings of Internet of Things operating system equipment
Corresponding system upgrade packet;
The format of system upgrade packet is converted to and is directly executed for internet of things equipment by step S3, upgrade package tools 2
The format of installation simultaneously forms upgrade installation package;
Step S5, internet of things equipment execute the upgrade installation package that installation steps S4 is formed, and complete system update.
Referring to figure 2., it is specifically included in step S2:
Step S21, upgrade server 3 receive upgrade request;
Step S22, upgrade server 3 judge whether there is system upgrade to be updated according to the upgrade request received
Packet then provides the table listings of system upgrade packet to updating client 1 if it exists and is transferred to step S3, if it does not exist, then Xiang Sheng
Grade client 1 sends the not standby signal of upgrading and exits process.
In step S4, before 2 converting system upgrade package of upgrade package tools, first judge system upgrade packet whether for object
Networked devices directly execute installation,
If so, internet of things equipment is mounted directly system upgrade packet, and exit process;
If it is not, the format of system upgrade packet to be then converted to format and the formation for directly executing installation for internet of things equipment
Upgrade installation package.
In a kind of preferred embodiment of the present embodiment, upgrade server 3 is WEB server, and WEB server is preferably Ah pa
Odd (apache).
Content includes system upgrade packet essential information, the upgrade file of system upgrade packet and permission text in system upgrade packet
Part records the corresponding network address list of internet of things equipment for allowing to upgrade in authority.
In step S3, first judge whether internet of things equipment has upgrading power before 1 download system upgrade package of updating client
Limit, exits process if internet of things equipment does not have upgrading authority.
Updating client 1 judges whether internet of things equipment has the method for upgrading authority and be,
Authority is extracted in system upgrade packet, is searched in the network address list in authority and compares Internet of Things
The corresponding network address of equipment;
If comparing successfully, internet of things equipment has upgrading authority, and otherwise internet of things equipment does not have upgrading authority.
System upgrade packet basic information content specifically includes:
First field, for indicating address information of the system upgrade packet on upgrade server 3;
Second field, for indicating the updating type of system upgrade packet;
Third field, for indicating the Schema information of internet of things equipment that system upgrade packet is directed to;
4th field, for indicating the issue date of system upgrade packet;
5th field, for describing the more new content of system upgrade packet;
6th field updates the particular problem solved after system upgrade packet for indicating;
7th field, for indicating after updating system upgrade packet, whether internet of things equipment, which needs, restarts.
Referring to figure 4., updating client 1 includes the first data extracting unit 11, for the power in extraction system upgrade package
Limit file.
Referring to figure 5., include: inside upgrade package tools 2
Second data extracting unit 21 for the system upgrade packet essential information in extraction system upgrade package and exports;
Format conversion unit 22 supports internet of things equipment directly to execute installation for being converted to the format of system upgrade packet
Formatted file and output;
Compression unit 23, linking format converting unit 22, for carrying out compression processing to formatted file;The side of compression processing
Method is preferably Lzma compression method, and Lzma compression method is the prior art, is not elaborated herein;
Encapsulation unit 24 connects compression unit 23, for Reseal forming upgrade installation package to formatted file, rises
It include checking information in grade installation kit;
Verification unit 25 is separately connected encapsulation unit 24 and the second data extracting unit 21, for comparing upgrade installation package
In checking information content whether with the second data extracting unit 21 extract system upgrade packet basic information content it is consistent;
If consistent, the upgrade installation package that production is formed is supplied to internet of things equipment and carried out more by upgrade package tools 2
New upgrading;
If inconsistent, internet of things equipment does not execute updating operation.
In conclusion Internet of Things operating system online upgrading method provided by the invention, can be based on internet of things equipment itself
Upgrading authority, the system upgrade packet that needs are downloaded from upgrade server 3 upgraded, and Internet of Things operating system liter is improved
The flexibility of grade reduces the upgrading burden of Internet of Things operating system, improves the stability of system operation.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection model
It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.
Claims (10)
1. a kind of Internet of Things operating system online upgrading method, which is characterized in that by an online upgrade system realize, it is described
Line upgrade-system includes:
One runs on the updating client of internet of things equipment, and the updating client to a upgrade server for sending or receiving
System upgrade request, and be used for from download system upgrade package from the upgrade server and export;
One runs on the upgrade package tools of the internet of things equipment, the updating client is communicated to connect, for being transformed in
It the format of the received system upgrade packet and remakes to form new upgrade package at the updating client;
One upgrade server communicates to connect the updating client, for providing the system upgrade for the updating client
Packet;
The online upgrading method includes the following steps:
Step S1, the updating client send system upgrade request to the upgrade server;
Step S2, the upgrade server provide the system to the updating client according to the upgrade request received
The table listings of upgrade package;
Step S3, the updating client are downloaded from the upgrade server accordingly according to the internet of things equipment table listings
The system upgrade packet;
Step S4, the upgrade package tools are converted to the format of the system upgrade packet straight for the internet of things equipment
It connects the format for executing installation and forms upgrade installation package;
Step S5, the internet of things equipment, which executes, installs the upgrade installation package that the step S4 is formed, and completes system update.
2. online upgrading method as described in claim 1, which is characterized in that specifically included in the step S2:
Step S21, the upgrade server receive the upgrade request;
Step S22, the upgrade server judge whether there is the system to be updated according to the upgrade request received
System upgrade package, then provides the table listings of the system upgrade packet to the updating client if it exists and is transferred to step S3, if
It is not present, then sends the not standby signal of upgrading to the updating client and exits process.
3. online upgrading method as described in claim 1, which is characterized in that in the step S4, the upgrade package makes work
Before tool converts the system upgrade packet, first judge whether the system upgrade packet for the internet of things equipment directly executes peace
Dress,
If so, the internet of things equipment is mounted directly the system upgrade packet, and exit process;
The format of installation is directly executed simultaneously if it is not, being then converted to the format of the system upgrade packet for the internet of things equipment
Form the upgrade installation package.
4. online upgrading method as described in claim 1, which is characterized in that the upgrade server is WEB server.
5. online upgrading method as described in claim 1, which is characterized in that content includes the system in the system upgrade packet
Unite upgrade package essential information, the system upgrade packet upgrade file and authority, record in the authority fair
Perhaps the corresponding network address list of the internet of things equipment upgraded.
6. online upgrading method as claimed in claim 5, which is characterized in that in the step S3, under the updating client
First judge whether the internet of things equipment has upgrading authority before carrying the system upgrade packet, such as the internet of things equipment
Do not have the upgrading authority and then exits process.
7. online upgrading method as claimed in claim 6, which is characterized in that the updating client judges that the Internet of Things is set
The standby method for whether having the upgrading authority is,
The authority is extracted in the system upgrade packet, is looked into the network address list in the authority
It looks for and compares the corresponding network address of the internet of things equipment;
If comparing successfully, the internet of things equipment has the upgrading authority, and otherwise the internet of things equipment does not have described
Upgrading authority.
8. online upgrading method as claimed in claim 5, which is characterized in that the updating client is extracted including the first data
Unit, for extracting the authority in the system upgrade packet.
9. online upgrading method as claimed in claim 5, which is characterized in that include: inside the upgrade package tools
Second data extracting unit, for extracting the system upgrade packet essential information in the system upgrade packet and exporting;
Format conversion unit supports the internet of things equipment to execute installation for being converted to the format of the system upgrade packet
Formatted file simultaneously exports;
Compression unit connects the format conversion unit, for carrying out compression processing to the formatted file;
Encapsulation unit connects the compression unit, for Reseal forming the update to the formatted file
It wraps, includes checking information in the upgrade installation package;
Verification unit is separately connected the encapsulation unit and second data extracting unit, for comparing the update
The system upgrade packet essential information whether the checking information content in packet is extracted with second data extracting unit
Content is consistent;
If consistent, the upgrade installation package that production is formed is supplied to the Internet of Things by the upgrade installation package tools
Equipment is updated upgrading;
If inconsistent, the internet of things equipment does not execute updating operation.
10. the online upgrading method as described in claim 5 or 9, which is characterized in that the system in the system upgrade packet
Upgrade package basic information content includes:
First field, for indicating address information of the system upgrade packet on the upgrade server;
Second field, for indicating the updating type of the system upgrade packet;
Third field, for indicating the Schema information of the internet of things equipment that the system upgrade packet is directed to;
4th field, for indicating the issue date of the system upgrade packet;
5th field, for describing the more new content of the system upgrade packet;
6th field updates the particular problem solved after the system upgrade packet for indicating;
7th field, for indicating after updating the system upgrade packet, whether the internet of things equipment, which needs, restarts.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811585100.XA CN109697080B (en) | 2018-12-24 | 2018-12-24 | Online upgrading method for operating system of Internet of things |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811585100.XA CN109697080B (en) | 2018-12-24 | 2018-12-24 | Online upgrading method for operating system of Internet of things |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109697080A true CN109697080A (en) | 2019-04-30 |
CN109697080B CN109697080B (en) | 2023-05-02 |
Family
ID=66232774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811585100.XA Active CN109697080B (en) | 2018-12-24 | 2018-12-24 | Online upgrading method for operating system of Internet of things |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109697080B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110113207A (en) * | 2019-05-08 | 2019-08-09 | 广州创想云科技有限公司 | A kind of method for updating protocol based on Internet of Things, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012025011A1 (en) * | 2010-08-27 | 2012-03-01 | 腾讯科技(深圳)有限公司 | Software update system, method and computer storage medium |
CN105635277A (en) * | 2015-12-30 | 2016-06-01 | 北京京东尚科信息技术有限公司 | Upgrade packet providing method and device and client side upgrade method and device |
CN106789236A (en) * | 2016-12-20 | 2017-05-31 | 深圳盈达信息科技有限公司 | A kind of method of the FOTA remote onlines upgrading of fusion WiFiP2P |
-
2018
- 2018-12-24 CN CN201811585100.XA patent/CN109697080B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012025011A1 (en) * | 2010-08-27 | 2012-03-01 | 腾讯科技(深圳)有限公司 | Software update system, method and computer storage medium |
CN105635277A (en) * | 2015-12-30 | 2016-06-01 | 北京京东尚科信息技术有限公司 | Upgrade packet providing method and device and client side upgrade method and device |
CN106789236A (en) * | 2016-12-20 | 2017-05-31 | 深圳盈达信息科技有限公司 | A kind of method of the FOTA remote onlines upgrading of fusion WiFiP2P |
Non-Patent Citations (1)
Title |
---|
魏民;王艺;: "物联网云平台终端远程更新技术研究与应用" * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110113207A (en) * | 2019-05-08 | 2019-08-09 | 广州创想云科技有限公司 | A kind of method for updating protocol based on Internet of Things, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109697080B (en) | 2023-05-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10212563B2 (en) | Updating web resources | |
CN108037961A (en) | A kind of application program collocation method, device, server and storage medium | |
CN104252342B (en) | Embedded application implementation method and device capable of configuring parameters | |
CN100421072C (en) | Method for realizing software updating | |
CN104572672A (en) | Heterogeneous database synchronization method and application system | |
CN104572221A (en) | Vehicle-mounted ECU (electronic control unit) online updating system and method | |
CN102981501A (en) | Automobile ECU (Electronic Control Unit) fault diagnosis information matching method based on XML (Extensive Makeup Language) | |
CN103810011A (en) | Method for realizing OTA (over the air) upgrading through file server | |
CN104123149B (en) | Method for upgrading software, device, client and system | |
CN103853585A (en) | Method for implementing centralized management of versions through cloud | |
CN108319463A (en) | A kind of application upgrade method, apparatus | |
CN102291437A (en) | System and method for realizing application of cross-platform internet | |
CN105743680A (en) | Cluster disposition method and disposition device | |
CN101098248A (en) | Method and system for implementing universal network management based on configuration describing document | |
CN106201577B (en) | A kind of method and device updating Lua file | |
CN109495433A (en) | Data download method and device, storage medium and electronic device | |
CN107908521A (en) | A kind of monitoring method of container performance on the server performance and node being applied under cloud environment | |
CN105224344A (en) | A kind of software upgrading file configuration method realized based on XML | |
CN1996878A (en) | A method for information conversion of the simple object access protocol service management interface | |
CN102622550B (en) | Safe online patch check system facing terminal computers | |
CN105760272A (en) | Monitoring background service customization method based on plug-in and system based on method | |
CN109508211A (en) | A kind of multilingual configuration method, device, system and electronic equipment | |
CN109635028A (en) | Data query method and device, server and computer readable storage medium | |
CN103812946B (en) | Method and system for online cloud updating of AR application program | |
CN109697080A (en) | A kind of Internet of Things operating system online upgrading method |
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 |