CN109639790A - A kind of distributed Internet of Things software architecture - Google Patents
A kind of distributed Internet of Things software architecture Download PDFInfo
- Publication number
- CN109639790A CN109639790A CN201811484385.8A CN201811484385A CN109639790A CN 109639790 A CN109639790 A CN 109639790A CN 201811484385 A CN201811484385 A CN 201811484385A CN 109639790 A CN109639790 A CN 109639790A
- Authority
- CN
- China
- Prior art keywords
- layer
- data
- things
- internet
- basic service
- 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
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- 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/50—Network services
- H04L67/56—Provisioning of proxy services
-
- 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/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of distributed Internet of Things software architectures, including terminal device, platform of internet of things and data display device, the platform of internet of things includes equipment access layer, basic service layer, data storage layer and data presentation layer, the terminal device accesses the equipment access layer in platform of internet of things by MQTT agreement, the basic service layer connection equipment access layer, data storage layer and data presentation layer, the data presentation layer and basic service layer are connect by Internet of Things with data display device.The present invention solves the resource problem of internet of things equipment access bulk device, while the proxy server mode used solves the problems, such as that the mono- instance server capacity of MQTT is limited;The concurrent capability and timeliness of database are improved, while basic service layer improves the safety of data by ORM interface access data by way of data isolation;Basic service layer uses auth2.0 authentication, controls access authority, improves the safety of access.
Description
Technical field
The present invention relates to internet of things field, specially a kind of distributed Internet of Things software architecture.
Background technique
Internet of Things is as the technology with current hot topic, and equipment will reach 10,000,000,000 grades in scale;Storage is above to magnanimity
Information is needed using distributed database;It is seen in agreement and needs to focus on safety, privacy concern.Based on traditional software architecture
It is the index request for being unable to satisfy Internet of Things.And distributed software construction is with respect to conventional software architectural, it can by several
It is formed with the program independently executed, can be deployed on different physical/virtual machines and run.It provide distributivity, validity,
Robustness perfection agrees with the demand of Internet of things system.
Existing technology of Internet of things relies on conventional internet technology, in cloud platform deployment services: background program, front end
All in a program, terminal device is directly interacted with server communication WEB by network.The end PC directly accesses server to rear
Platform accesses.And existing Internet of Things server program is because foreground, backstage are all in a program, if there is a certain
A module is abnormal, will lead to whole system delay machine.Server disposition is in a machine simultaneously, when physical machine is by can not support
Anti- factor, also results in system failure.In addition terminal and server directly carry out communication interaction, when terminal device is more than a fixed number
After amount, the network connection of server will receive limitation, have a greatly reduced quality to the interactive experience of system entirety.
Summary of the invention
The technical problem to be solved by the present invention is to overcome the existing defects, provides a kind of distributed Internet of Things software frame
Structure can effectively solve the problems, such as to mention in background technique.
To achieve the above object, the invention provides the following technical scheme: a kind of distributed Internet of Things software architecture, including
Terminal device, platform of internet of things and data display device, the platform of internet of things include equipment access layer, basic service layer, number
According to accumulation layer and data presentation layer, the terminal device accesses the equipment access layer in platform of internet of things, institute by MQTT agreement
State basic service layer connection equipment access layer, data storage layer and data presentation layer, the data presentation layer and basic service layer
It is connect by Internet of Things with data display device.
Composition a preferred technical solution of the present invention, the equipment access layer pass through inside basic service layer
The authentication of auth2.0 obtains JWT password, then passes through JWT password access REST API.
Composition a preferred technical solution of the present invention, the basic service layer access data by way of remotely connecting
Library, basic service layer lead to the device data received from equipment access layer, the operational order got from REST api interface
The ORM interface for calling data storage layer is crossed, write-in, the inquiry operation of data are carried out.
Composition a preferred technical solution of the present invention, the data presentation layer uses the design of front and back end separation, described
Basic service layer provides the authentication mechanism and REST api interface of auth2.0, and data presentation layer is recognized by the authentication of Auth.
Card obtains JWT password, and the REST api interface of basic service layer is called to be communicated with basic service layer.
Composition a preferred technical solution of the present invention, the data storage layer use Redis and PostgreSQL technology,
L2 cache of the Redis as PostgreSQL, PostgreSQL by the way of trigger, data it is inserted or updated when
It waits, while inserted or updated to Redis.
Composition a preferred technical solution of the present invention, Redis data save in memory, open AOF persistence function,
It stores data on disk, data can be restored from disk after Redis is restarted.
Composition a preferred technical solution of the present invention, the data presentation layer pass through the long-range clothes in data display device
The working condition of business device real-time display terminal device, client, is managed dimension to the historical data of terminal device, client
Shield, including the addition to terminal device and client, update, delete operation.
Compared with prior art, the beneficial effects of the present invention are:
1, present device access layer is by the way of MQTT server, relatively traditional HTTP connection type, possess it is high-efficient,
The agency's clothes for consuming feature low, that timeliness is high, solving the resource problem of internet of things equipment access bulk device, while using
Business device mode solves the problems, such as that the mono- instance server capacity of MQTT is limited, may be implemented seamless to open up appearance.
2, the design for the double data library that data access layer of the present invention uses, Redis is as cache server, PostgreSQL
As data storage server, the concurrent capability and timeliness of database are improved;Basic service layer is visited by ORM interface simultaneously
It asks data, the safety of data is improved by way of data isolation.
3, basic service layer of the present invention uses auth2.0 authentication, controls access authority, improves the peace of access
Quan Xing;Outside Access is provided using REST api interface, isolated data directly operates, and improves the safety of data.
4, the Distributed Design (equipment access layer, basic service layer, data storage layer, data presentation layer) that the present invention uses
It so that system deployment is more flexible, can be disposed according to system resource, can be deployed on a server, can also divide
It does not dispose on a different server.
Detailed description of the invention
Fig. 1 is a kind of operation principle schematic diagram of distributed Internet of Things software architecture of the present invention;
In figure: 1, terminal device;2, platform of internet of things;3, data display device;4, equipment access layer;5, basic service layer;6,
Data storage layer;7, data presentation layer.
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, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, the present invention provides a kind of technical solution: a kind of distributed Internet of Things software architecture, including terminal
Equipment 1, platform of internet of things 2 and data display device 3, the platform of internet of things 2 include equipment access layer 4, basic service layer 5,
Data storage layer 6 and data presentation layer 7, the terminal device 1 access the equipment access in platform of internet of things 2 by MQTT agreement
Layer 4, the basic service layer 5 connect equipment access layer 4, data storage layer 6 and data presentation layer 7,7 He of data presentation layer
Basic service layer 5 is connect by Internet of Things with data display device 3.
In the present embodiment, it is preferred that the equipment access layer 4 is recognized by the authentication of the auth2.0 inside basic service layer 5
Card obtains JWT password, then passes through JWT password access REST API.
In the present embodiment, it is preferred that the basic service layer 5 accesses database, basis clothes by way of remotely connecting
Layer 5 be engaged in the device data received from equipment access layer 4, the operational order got from REST api interface, passes through calling
The ORM interface of data storage layer 6 carries out write-in, the inquiry operation of data.
In the present embodiment, it is preferred that design of the data presentation layer 7 using front and back end separation, the basic service layer 5
The authentication mechanism and REST api interface of auth2.0 are provided, data presentation layer 7 is obtained by the authentication of auth2.0
JWT password calls the REST api interface of basic service layer 5 to be communicated with basic service layer 5.
In the present embodiment, it is preferred that the data storage layer 6 uses Redis and PostgreSQL technology, Redis conduct
The L2 cache of PostgreSQL promotes the performance of database, reduces the demand to IO, and PostgreSQL uses the side of trigger
Formula, when data are inserted or updated, and meanwhile it is inserted or updated to Redis.
In the present embodiment, it is preferred that Redis data save in memory, open AOF persistence function, data are saved
Onto disk, data can be restored from disk after Redis is restarted, higher data can be brought to pacify using AOF persistence
, there is delay machine and will not destroy the content having been written into ensure that data reliability in writing process in Quan Xing.
In the present embodiment, it is preferred that the data presentation layer 7 is real-time by the remote server in data display device 3
Display terminal, client working condition, maintenance is managed to the historical data of terminal device, client, including right
The addition of terminal device 3 and client, update, delete operation.
System flow of the invention are as follows:
1. all service needs of this system are deployed in the cloud platform of public network IP, configuration equipment access layer, configuration Redis,
Start after the long-range connection account number cipher of PostgreSQL;The equipment access service of starting specified quantity on demand, configuration MQTT ginseng
Number is used for the preposition verifying of equipment access layer;The forwarding of equipment access service is configured, starting device accesses agency service;Basis clothes
Being engaged in, layer configures MQTT access parameter, equipment access layer connects account, password, database D B;Configure the key of auth2.0, starting
Basic service layer;The configuration infrastructure service of data presentation layer remotely connects account, password, starts.
2. on-site terminal equipment and equipment access layer establish connection, proxy server receives connection request, equal according to load
Weighing apparatus is forwarded to MQTT server, is verified by dynamic key, if failed service device abandons data, closes connection;Infrastructure service
Layer establishes connection by network and data access layer and realizes data communication, after being successfully established connection, what basic service layer received
Data all pass through data access layer ORM interface and are managed maintenance;Data presentation layer is established by network and basic service layer to be connected
Realization data communication is connect, basic service layer verifies connection by auth2.0 when establishing connection, data exhibition after good authentication
Show that layer is managed maintenance to equipment, client data in such a way that REST api interface calls.
3. data are actively reported to data access server by terminal device, preposition access proxy server turns data
It is dealt into MQTT server, MQTT server is data-pushing to the basic service layer of registration, and basic service layer is the number received
According to write-in database, data presentation layer checks the data of terminal device in such a way that REST api interface calls and analyzes exhibition
Show.
4. user operates equipment on data presentation layer, the instruction of operation is sent out by way of REST api interface
Basic service layer is given, basic service layer receives instruction, is pushed to MQTT server, and MQTT server passes through proxy server
Instruction is pushed to the terminal device of registration.
It although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, can be with
A variety of variations, modification, replacement can be carried out to these embodiments without departing from the principles and spirit of the present invention by understanding
And modification, the scope of the present invention is defined by the appended.
Claims (7)
1. a kind of distributed Internet of Things software architecture, including terminal device (1), platform of internet of things (2) and data display device
(3), which is characterized in that the platform of internet of things (2) includes equipment access layer (4), basic service layer (5), data storage layer (6)
With data presentation layer (7), the terminal device (1) passes through the equipment access layer in MQTT agreement access platform of internet of things (2)
(4), basic service layer (5) connection equipment access layer (4), data storage layer (6) and data presentation layer (7), the data
Presentation layer (7) and basic service layer (5) are connect by Internet of Things with data display device (3).
2. a kind of distributed Internet of Things software architecture according to claim 1, it is characterised in that: the equipment access layer
(4) JWT password is obtained by the authentication of basic service layer (5) internal auth2.0, then passes through JWT password access
REST API。
3. a kind of distributed Internet of Things software architecture according to claim 1, it is characterised in that: the basic service layer
(5) database is accessed by way of remotely connecting, basic service layer (5) is the number of devices received from equipment access layer (4)
Writing for data is carried out by calling the ORM interface of data storage layer (6) according to, the operational order that gets from REST api interface
Enter, inquiry operation.
4. a kind of distributed Internet of Things software architecture according to claim 1, it is characterised in that: the data presentation layer
(7) using the design of front and back end separation, the basic service layer (5) provides the authentication mechanism and REST API of auth2.0
Interface, data presentation layer (7) obtain JWT password by the authentication of auth2.0, call the REST of basic service layer (5)
Api interface is communicated with basic service layer (5).
5. a kind of distributed Internet of Things software architecture according to claim 1, it is characterised in that: the data storage layer
(6) Redis and PostgreSQL technology is used, L2 cache of the Redis as PostgreSQL, PostgreSQL is using triggering
The mode of device, when data are inserted or updated, and meanwhile it is inserted or updated to Redis.
6. a kind of distributed Internet of Things software architecture according to claim 5, it is characterised in that: Redis data save
In memory, AOF persistence function is opened, stores data on disk, number can be restored from disk after Redis is restarted
According to.
7. a kind of distributed Internet of Things software architecture according to claim 1, it is characterised in that: the data presentation layer
(7) by the working condition of remote server real-time display terminal device, client in data display device (3), to terminal
Equipment, the historical data of client are managed maintenance, including the addition to terminal device (3) and client, update, deletion behaviour
Make.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811484385.8A CN109639790A (en) | 2018-12-06 | 2018-12-06 | A kind of distributed Internet of Things software architecture |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811484385.8A CN109639790A (en) | 2018-12-06 | 2018-12-06 | A kind of distributed Internet of Things software architecture |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109639790A true CN109639790A (en) | 2019-04-16 |
Family
ID=66071410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811484385.8A Pending CN109639790A (en) | 2018-12-06 | 2018-12-06 | A kind of distributed Internet of Things software architecture |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109639790A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110995515A (en) * | 2019-12-30 | 2020-04-10 | 利晟(杭州)科技有限公司 | Distributed environment Internet of things information system |
CN111212120A (en) * | 2019-12-24 | 2020-05-29 | 武汉理工光科股份有限公司 | Thing allies oneself with middleware based on fire control thing networking data acquisition and transmission |
CN112543223A (en) * | 2020-11-11 | 2021-03-23 | 广州鲁邦通物联网科技有限公司 | Internet of things system |
CN114063542A (en) * | 2021-12-29 | 2022-02-18 | 四川九州电子科技股份有限公司 | Terminal remote control method |
WO2023071782A1 (en) * | 2021-10-25 | 2023-05-04 | 惠州Tcl移动通信有限公司 | Transmission method, and electronic device and computer-readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103794234A (en) * | 2012-10-30 | 2014-05-14 | 北京航天长峰科技工业集团有限公司 | Massive video-based event trace quick search platform |
US20160352867A1 (en) * | 2015-05-27 | 2016-12-01 | Elastic Beam, Inc. | Systems and methods for api routing and security |
CN106227899A (en) * | 2016-08-31 | 2016-12-14 | 北京京航计算通讯研究所 | The storage of the big data of a kind of internet of things oriented and querying method |
CN107846447A (en) * | 2017-09-21 | 2018-03-27 | 烽火通信科技股份有限公司 | A kind of method of the home terminal access message-oriented middleware based on MQTT agreements |
CN108270855A (en) * | 2018-01-15 | 2018-07-10 | 司中明 | A kind of method of platform of internet of things access device |
CN108632275A (en) * | 2018-05-07 | 2018-10-09 | 北京创源微致软件有限公司 | A kind of cloud manufacturing service intelligence cut-in method based on Internet of Things |
CN108804686A (en) * | 2018-06-14 | 2018-11-13 | 北京全联互控科技有限公司 | A kind of whole solution of internet of things data acquisition processing and analysis application |
-
2018
- 2018-12-06 CN CN201811484385.8A patent/CN109639790A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103794234A (en) * | 2012-10-30 | 2014-05-14 | 北京航天长峰科技工业集团有限公司 | Massive video-based event trace quick search platform |
US20160352867A1 (en) * | 2015-05-27 | 2016-12-01 | Elastic Beam, Inc. | Systems and methods for api routing and security |
CN106227899A (en) * | 2016-08-31 | 2016-12-14 | 北京京航计算通讯研究所 | The storage of the big data of a kind of internet of things oriented and querying method |
CN107846447A (en) * | 2017-09-21 | 2018-03-27 | 烽火通信科技股份有限公司 | A kind of method of the home terminal access message-oriented middleware based on MQTT agreements |
CN108270855A (en) * | 2018-01-15 | 2018-07-10 | 司中明 | A kind of method of platform of internet of things access device |
CN108632275A (en) * | 2018-05-07 | 2018-10-09 | 北京创源微致软件有限公司 | A kind of cloud manufacturing service intelligence cut-in method based on Internet of Things |
CN108804686A (en) * | 2018-06-14 | 2018-11-13 | 北京全联互控科技有限公司 | A kind of whole solution of internet of things data acquisition processing and analysis application |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111212120A (en) * | 2019-12-24 | 2020-05-29 | 武汉理工光科股份有限公司 | Thing allies oneself with middleware based on fire control thing networking data acquisition and transmission |
CN110995515A (en) * | 2019-12-30 | 2020-04-10 | 利晟(杭州)科技有限公司 | Distributed environment Internet of things information system |
CN110995515B (en) * | 2019-12-30 | 2023-04-07 | 利晟(杭州)科技有限公司 | Distributed environment Internet of things information system |
CN112543223A (en) * | 2020-11-11 | 2021-03-23 | 广州鲁邦通物联网科技有限公司 | Internet of things system |
CN112543223B (en) * | 2020-11-11 | 2024-05-10 | 广州鲁邦通物联网科技股份有限公司 | Internet of things system |
WO2023071782A1 (en) * | 2021-10-25 | 2023-05-04 | 惠州Tcl移动通信有限公司 | Transmission method, and electronic device and computer-readable storage medium |
CN114063542A (en) * | 2021-12-29 | 2022-02-18 | 四川九州电子科技股份有限公司 | Terminal remote control method |
CN114063542B (en) * | 2021-12-29 | 2023-10-24 | 四川九州电子科技股份有限公司 | Terminal remote control method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109639790A (en) | A kind of distributed Internet of Things software architecture | |
CN110830463B (en) | Third party authorized login method and device | |
CN103312660B (en) | A kind of service implementation method based on ability open platform and ability open platform | |
EP4379545A1 (en) | Data processing method and system, related device, storage medium and product | |
JP5753629B2 (en) | Method, device and system for managing mobile broadband devices | |
CN103220182A (en) | System and method for managing residential gateway by using smart terminal | |
JP5821450B2 (en) | Method and system for supporting remote download | |
EP2633425A2 (en) | Devices, systems, and methods for enabling and reconfiguring of services supported by a network of devices | |
CN108063949A (en) | Image screenshotss method, apparatus and screenshotss server | |
CN101527655A (en) | Dynamic profiling system for data access control | |
KR20200102328A (en) | Method and device for processing data | |
CN113824723A (en) | End-to-end system solution applied to audio and video data transmission | |
CN110213382A (en) | A kind of dynamic domain name exchange method, device | |
CN112019477A (en) | Method and device for establishing and managing SSH connection | |
CN115189897A (en) | Access processing method and device for zero trust network, electronic equipment and storage medium | |
CN107864058B (en) | Fault judgment method and device | |
CN108989420A (en) | The method and system of registration service, the method and system for calling service | |
CN113037616A (en) | Interactive method and device for cooperatively controlling multiple robots | |
CN107872492B (en) | Method and device for supporting multi-user editing of data object at server | |
CN102970207A (en) | Instant communication method, client device and instant communication system | |
CN108984191A (en) | A kind of method, apparatus and electronic equipment of application update | |
CN107729032A (en) | Boot animation updating method, intelligent terminal and storage medium | |
CN110113192A (en) | Route selecting method, routing device, system, storage medium and the device of virtual desktop | |
CN202309766U (en) | Online service system based on activity catalog verification | |
US11553386B2 (en) | Systems and methods of managing communication endpoints |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190416 |