CN110601911A - Implementation method and system of internet of things cloud gateway based on python - Google Patents
Implementation method and system of internet of things cloud gateway based on python Download PDFInfo
- Publication number
- CN110601911A CN110601911A CN201911109628.4A CN201911109628A CN110601911A CN 110601911 A CN110601911 A CN 110601911A CN 201911109628 A CN201911109628 A CN 201911109628A CN 110601911 A CN110601911 A CN 110601911A
- Authority
- CN
- China
- Prior art keywords
- cloud gateway
- internet
- things
- cloud
- python
- 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
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000013515 script Methods 0.000 claims abstract description 39
- 230000000977 initiatory effect Effects 0.000 claims abstract description 3
- 238000004891 communication Methods 0.000 claims description 5
- 230000006855 networking Effects 0.000 claims description 4
- 238000012423 maintenance Methods 0.000 abstract description 17
- 230000008901 benefit Effects 0.000 abstract description 4
- 230000008569 process Effects 0.000 description 7
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 239000000654 additive Substances 0.000 description 1
- 230000000996 additive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 210000001503 joint Anatomy 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- 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/10—Protocols in which an application is distributed across nodes in the network
-
- 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)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a realization method of an Internet of things cloud gateway based on python, which comprises the steps of configuring a cloud gateway server; adding a cloud gateway server to a cloud platform; initiating a request for adding a cloud gateway at a client; the cloud platform starts a python script to run an Internet of things cloud gateway program of the cloud gateway server; and feeding back the result to the client. The invention also provides an internet of things cloud gateway system which comprises a cloud platform and the cloud gateway server, wherein the cloud platform deploys or upgrades the cloud gateway server. By adopting the method and the system for the Internet of things cloud gateway, operation and maintenance personnel can carry out server configuration operation through the cloud platform, and when a user sends out operation of adding the cloud gateway at a client, the cloud platform can operate an Internet of things cloud gateway program on a corresponding server, so that the Internet of things cloud gateway is realized. The method has the advantages of efficient configuration and unified management.
Description
Technical Field
The invention relates to the field of Internet of things, in particular to a realization method and a system of an Internet of things cloud gateway based on python.
Background
The Internet of things is an important component of a new generation of information technology and is also an important development stage of the 'informatization' era. Its english name is: "Internet of things (IoT)", as the name implies, the Internet of things is the Internet to which things are connected. There are various information sensing devices and systems in the internet of things, and the sensors are various, and different sensors may use different transmission protocols, such as MODBUS, OPC-UA, Zigbee, and the like. Communication between sensors and between the sensors and the platform end of the internet of things needs to be rapidly converted, so that the purpose of transmitting data across protocols is achieved. The internet of things gateway is a code program for processing protocol conversion and reporting. In the current technical solution, often in the implementation process, the implementation personnel needs to deploy the internet of things gateway on site by using a hardware box, a server or a PC. This process requires the implementation personnel to be too hard of a skill, fully understand the hardware requirements, deploy the process, etc. The expandability is poor when the gateway program is deployed on site, and configuration files are complex and easy to make mistakes when the gateway program is upgraded; different system operation, installation and deployment operations are different, and requirements on deployment personnel are high; the same set of installation and deployment process is repeatedly operated, wastes time and the like, and is not beneficial to unified management.
Disclosure of Invention
In order to solve the existing technical problems, the invention provides a realization method and a system of an internet of things cloud gateway based on python, which can improve the deployment efficiency of operation and maintenance personnel, reduce the deployment requirement and facilitate unified management.
The invention specifically comprises the following contents: an implementation method of an internet of things cloud gateway based on python comprises the steps of
Configuring a cloud gateway server;
adding a cloud gateway server to a cloud platform;
initiating a request for adding a cloud gateway at a client;
the cloud platform triggers a python script to operate an Internet of things cloud gateway program of the cloud gateway server;
and feeding back the result to the client.
Further, configuring the cloud gateway server comprises configuring an internet of things cloud gateway operating environment, a python script execution environment and an open ssh remote access right.
Further, the cloud gateway server is added to the cloud platform, and an IP, a user name, a password or a private key of the cloud gateway server needs to be provided.
Further, the cloud platform receives a request for adding a cloud gateway sent by the client, and then packages and sends the program package and the script to the cloud gateway server through ssh remote connection.
Further, the python script includes a startup python script, a delete python script, and an upgrade python script.
Furthermore, the python script is arranged on the cloud platform and the server, and the cloud platform starts the python script to run the Internet of things cloud gateway program through remote triggering.
Further, when the internet of things cloud gateway program is upgraded, the method comprises
Uploading the upgraded program package of the Internet of things cloud gateway to a cloud platform;
uploading and sending the upgraded program package of the cloud gateway of the Internet of things to a server;
executing an upgrade python script;
and the upgraded program package of the cloud gateway of the Internet of things covers the original program package.
Further, when the cloud gateway of the Internet of things is deleted, the method comprises the following steps
A user initiates a request for deleting the cloud gateway of the internet of things at a client,
the cloud platform remotely calls the delete python script of the corresponding server,
and deleting the corresponding Internet of things cloud gateway on the server.
Further, the networked cloud gateway can be repeatedly added within the allowable range of server resources.
The invention also provides an internet of things cloud gateway system, which comprises a cloud platform and at least one cloud gateway server, wherein,
the at least one cloud gateway server is in communication connection with the cloud platform;
the cloud platform can deploy or upgrade the cloud gateway server through the python script.
By adopting the method and the system for the Internet of things cloud gateway, operation and maintenance personnel can carry out server configuration operation through the cloud platform, and when a user sends out operation of adding the cloud gateway at a client, the cloud platform can operate an Internet of things cloud gateway program on a corresponding server, so that the Internet of things cloud gateway is realized. The method has the advantages of efficient configuration and unified management.
Drawings
The following further explains embodiments of the present invention with reference to the drawings.
FIG. 1 is a schematic diagram of an implementation method of a python-based Internet of things cloud gateway;
fig. 2 is a schematic diagram of the internet of things cloud gateway system of the present invention.
Detailed Description
With reference to fig. 1, in the implementation method of the internet of things cloud gateway based on python, scripts such as startup, upgrade, and deletion are made in python language, and are sent to corresponding cloud gateway servers through deployment of the cloud platform according to a request for adding a cloud gateway, which is sent by a user at a client, so that the user can create the cloud gateway by himself and operation and maintenance staff can manage the cloud gateway in a unified manner.
When the operation and maintenance personnel work, the cloud gateway server needing to be used is configured, and the content needing to be configured is the running environment of the gateway program of the Internet of things, such as java, the execution environment of the used python script and the open ssh remote access permission for the cloud platform to access the cloud gateway server.
The operation and maintenance personnel operate the cloud platform through the web page of the cloud platform, the python script uploaded by the operation and maintenance personnel is arranged on the cloud platform and comprises the steps of starting the python script, deleting the python script and upgrading the python script, the operation and maintenance personnel add the cloud gateway server into the cloud platform, and the IP, the user name, the password or the private key of the cloud gateway server are needed in the adding process so as to guarantee data safety.
When a user needs to create a cloud gateway, the operation is carried out on a web page of a client, the client is connected with a cloud platform in a butt joint mode, the web page of the client displays a cloud gateway server added by operation and maintenance personnel, and the client can carry out the addition operation of the cloud gateway of the Internet of things according to the selection of the cloud gateway server.
After a user initiates a request for adding the Internet of things cloud gateway, the cloud platform processes the request. The cloud platform detects whether a program package and a script of the Internet of things cloud gateway exist on the corresponding cloud gateway server, and if not, the program package and a series of scripts of the Internet of things cloud gateway are packed and sent to the corresponding cloud gateway server through ssh remote connection. The cloud platform remotely triggers a python script started by the cloud gateway server to operate an Internet of things cloud gateway program on the cloud platform. And after the completion, the cloud platform feeds the result back to the client user, and the operation of adding the cloud gateway by the client user is completed.
In the allowable range of server resources, the internet-of-things cloud gateway can be repeatedly added, and the internet-of-things cloud gateway comprises requests of the same user or different users for adding the internet-of-things cloud gateway to the same server. The same user can also make a request of the additive networking cloud gateway to different servers.
Operation and maintenance personnel carry out unified management on the cloud gateway of the Internet of things, and besides the configuration of the cloud gateway server and the uploading of the program package, upgrading operation of the cloud gateway of the Internet of things is also carried out. Specifically, operation and maintenance personnel upload the updated program package of the internet of things cloud gateway to the cloud platform and trigger upgrading operation. And the cloud platform sends the upgraded Internet of things cloud gateway data packet to each server again, and executes the upgrade python script to upgrade the Internet of things cloud gateways in all the servers. Therefore, when the internet of things cloud gateway is upgraded, all upgrading operations can be given to the cloud platform to be completed in a unified mode through the python scripts only by uploading the upgrading package to the cloud platform by operation and maintenance personnel.
When the internet of things cloud gateway needs to be deleted, a user initiates a request for deleting the internet of things cloud gateway at a client, the cloud platform remotely calls a delete python script of the corresponding server, and the corresponding internet of things cloud gateway on the server is deleted.
By the implementation method of the internet of things cloud gateway based on python, operation and maintenance for deploying the internet of things cloud gateway can be completed by the cloud platform, and compared with the existing scheme in which operation and maintenance personnel manually deploy internet of things cloud gateway programs on corresponding servers ceaselessly according to business needs, the method has higher efficiency and accuracy. In the existing scheme, if the expansion needs to be carried out, implementation personnel are required to carry out on-site implementation, the expandability is poor, and the cloud gateway of the Internet of things can be more conveniently expanded according to the service requirements of users by adopting a cloud platform method. When the Internet of things cloud gateway is upgraded, compared with the existing field deployment, the method can uniformly manage the upgrading program and has the advantages of high efficiency and convenience. In addition, since no implementers need to use a hardware box, a server or a PC to deploy a gateway on site, the hardware cost is saved, and the operation and maintenance cost is reduced in the subsequent operation and maintenance process, so that the method has a good application prospect.
With reference to fig. 2, the embodiment further discloses an internet of things cloud gateway system, which includes a cloud platform 1 and at least one cloud gateway server 2, where the cloud gateway server 2 is in communication connection with the cloud platform 1, and the cloud platform 1 can deploy or upgrade the cloud gateway server. Operation and maintenance personnel guarantee the communication connection of cloud platform 1 and cloud gateway server 2 through configuration of various information, upload the program package of thing networking cloud gateway on cloud platform 1, corresponding cloud gateway server 2 is deployed according to the request that receives to cloud platform 1, when upgrading thing networking cloud gateway, will upload the upgrading program package of cloud platform 1 and send each cloud gateway server 2 in and start the python script of upgrading can, consequently have the advantage of the high efficiency management of being convenient for, have good application prospect.
In the previous description, numerous specific details were set forth in order to provide a thorough understanding of the present invention. The foregoing description is only a preferred embodiment of the invention, which can be embodied in many different forms than described herein, and therefore the invention is not limited to the specific embodiments disclosed above. And that those skilled in the art may, using the methods and techniques disclosed above, make numerous possible variations and modifications to the disclosed embodiments, or modify equivalents thereof, without departing from the scope of the claimed embodiments. Any simple modification, equivalent change and modification of the above embodiments according to the technical essence of the present invention are within the scope of the technical solution of the present invention.
Claims (10)
1. A realization method of an Internet of things cloud gateway based on python is characterized by comprising the following steps: comprises that
Configuring a cloud gateway server;
adding a cloud gateway server to a cloud platform;
initiating a request for adding a cloud gateway at a client;
the cloud platform triggers a python script to operate an Internet of things cloud gateway program of the cloud gateway server;
and feeding back the result to the client.
2. The implementation method of the python-based internet of things cloud gateway according to claim 1, wherein the implementation method comprises the following steps: configuring the cloud gateway server comprises configuring an Internet of things cloud gateway operating environment, a python script execution environment and an open ssh remote access right.
3. The implementation method of the python-based internet of things cloud gateway according to claim 1, wherein the implementation method comprises the following steps: the cloud gateway server is added to the cloud platform, and an IP, a user name, a password or a private key of the cloud gateway server needs to be provided.
4. The implementation method of the python-based internet of things cloud gateway according to claim 1, wherein the implementation method comprises the following steps: and after receiving a request for adding a cloud gateway sent by a client, the cloud platform packs the program package and the script through ssh remote connection and sends the program package and the script to a cloud gateway server.
5. The implementation method of the python-based internet of things cloud gateway according to claim 1, wherein the implementation method comprises the following steps: the python script includes a startup python script, a delete python script, and an upgrade python script.
6. The implementation method of the python-based Internet of things cloud gateway as claimed in claim 5, wherein: the python script is arranged on the cloud platform and the server, and the cloud platform starts the python script to run the Internet of things cloud gateway program through remote triggering.
7. The implementation method of the python-based Internet of things cloud gateway as claimed in claim 5, wherein: when the Internet of things cloud gateway program is upgraded, the method comprises
Uploading the upgraded program package of the Internet of things cloud gateway to a cloud platform;
uploading and sending the upgraded program package of the cloud gateway of the Internet of things to a server;
executing an upgrade python script;
and the upgraded program package of the cloud gateway of the Internet of things covers the original program package.
8. The implementation method of the python-based Internet of things cloud gateway as claimed in claim 5, wherein: when the cloud gateway of the Internet of things is deleted, the method comprises
A user initiates a request for deleting the cloud gateway of the internet of things at a client,
the cloud platform remotely calls the delete python script of the corresponding server,
and deleting the corresponding Internet of things cloud gateway on the server.
9. The implementation method of the python-based Internet of things cloud gateway as claimed in claim 5, wherein: and repeatedly adding the networked cloud gateway within the allowable range of the server resources.
10. The utility model provides a thing networking cloud gateway system which characterized in that: comprises a cloud platform and at least one cloud gateway server, wherein,
the at least one cloud gateway server is in communication connection with the cloud platform;
the cloud platform can deploy or upgrade the cloud gateway server through the python script.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911109628.4A CN110601911A (en) | 2019-11-14 | 2019-11-14 | Implementation method and system of internet of things cloud gateway based on python |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911109628.4A CN110601911A (en) | 2019-11-14 | 2019-11-14 | Implementation method and system of internet of things cloud gateway based on python |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110601911A true CN110601911A (en) | 2019-12-20 |
Family
ID=68852372
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911109628.4A Pending CN110601911A (en) | 2019-11-14 | 2019-11-14 | Implementation method and system of internet of things cloud gateway based on python |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110601911A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8335851B1 (en) * | 2012-03-12 | 2012-12-18 | Ringcentral, Inc. | Network resource deployment for cloud-based services |
CN103916466A (en) * | 2014-03-24 | 2014-07-09 | 复旦大学无锡研究院 | Application service monitoring platform for agriculture Internet of Things |
WO2016109277A1 (en) * | 2015-01-02 | 2016-07-07 | Systech Corporation | Control infrastructure |
CN107391665A (en) * | 2017-07-20 | 2017-11-24 | 郑州云海信息技术有限公司 | The creation method and device of a kind of database instance |
CN107656814A (en) * | 2017-09-30 | 2018-02-02 | 郑州云海信息技术有限公司 | A kind of middleware services implementation method and device |
-
2019
- 2019-11-14 CN CN201911109628.4A patent/CN110601911A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8335851B1 (en) * | 2012-03-12 | 2012-12-18 | Ringcentral, Inc. | Network resource deployment for cloud-based services |
CN103916466A (en) * | 2014-03-24 | 2014-07-09 | 复旦大学无锡研究院 | Application service monitoring platform for agriculture Internet of Things |
WO2016109277A1 (en) * | 2015-01-02 | 2016-07-07 | Systech Corporation | Control infrastructure |
CN107391665A (en) * | 2017-07-20 | 2017-11-24 | 郑州云海信息技术有限公司 | The creation method and device of a kind of database instance |
CN107656814A (en) * | 2017-09-30 | 2018-02-02 | 郑州云海信息技术有限公司 | A kind of middleware services implementation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110752947B (en) | K8s cluster deployment method and device, and deployment platform | |
CN109525624B (en) | Container login method and device and storage medium | |
KR100421624B1 (en) | Platform Independent Software Automatic Searching/Distribution/Install Apparatus and The method of Searching and Distribution for that apparatus | |
CN108632375B (en) | An online upgrade method for distributed deployment service software program | |
CN114024951B (en) | Cloud edge collaboration-based power edge heterogeneous deployment method | |
US12143392B2 (en) | System and method to securely execute datacenter management operations remotely | |
WO2018161799A1 (en) | Cloud application deployment method and system | |
CN111666099B (en) | Application service release system | |
CN103984573A (en) | Installation method and device of application program | |
CN102006332A (en) | Method and system for software upgrading | |
CN109495433A (en) | Data download method and device, storage medium and electronic device | |
EP3035644A2 (en) | Determined configuration update for edge components | |
CN110166547B (en) | Terminal remote access control method | |
CN109391673A (en) | A kind of method, system and the terminal device of management update file | |
CN114089711B (en) | Industrial equipment control management method, electronic equipment and storage medium | |
CN103297275A (en) | Dynamic discovery and loading system and method for Web network management client module | |
CN103678007B (en) | A kind of batch dispositions method of software and system | |
CN115718606A (en) | A method and system for server automation continuous integration and deployment | |
CN110990025B (en) | Instance deployment method and system | |
CN112685102B (en) | Gateway plug-in hot loading method, device, equipment and medium | |
CN102385514B (en) | Method, equipment and system for conducting management operation on software in centralized way | |
CN110601911A (en) | Implementation method and system of internet of things cloud gateway based on python | |
CN106533716B (en) | A kind of management method and system of northbound interface | |
CN113297158B (en) | Cloud security product management method, device, equipment and storage medium | |
CN116466964A (en) | Heterogeneous hybrid deployment method, device, equipment and medium for big data platform |
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: 20191220 |
|
RJ01 | Rejection of invention patent application after publication |