CN112039983A - Method and system for realizing Internet of things equipment connection middleware - Google Patents

Method and system for realizing Internet of things equipment connection middleware Download PDF

Info

Publication number
CN112039983A
CN112039983A CN202010886798.XA CN202010886798A CN112039983A CN 112039983 A CN112039983 A CN 112039983A CN 202010886798 A CN202010886798 A CN 202010886798A CN 112039983 A CN112039983 A CN 112039983A
Authority
CN
China
Prior art keywords
equipment
middleware
terminal equipment
terminal
data
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
Application number
CN202010886798.XA
Other languages
Chinese (zh)
Other versions
CN112039983B (en
Inventor
管群
陈煦文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Vanrui Intelligent Technology Co ltd
Original Assignee
Shenzhen Vanrui Intelligent Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Vanrui Intelligent Technology Co ltd filed Critical Shenzhen Vanrui Intelligent Technology Co ltd
Priority to CN202010886798.XA priority Critical patent/CN112039983B/en
Publication of CN112039983A publication Critical patent/CN112039983A/en
Application granted granted Critical
Publication of CN112039983B publication Critical patent/CN112039983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/288Distributed intermediate devices, i.e. intermediate devices for interaction with other intermediate devices on the same level
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

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)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a system for realizing Internet of things equipment connection middleware, wherein the method comprises the following steps: the terminal equipment is connected with the equipment middleware through a standard protocol or a private protocol; the device middleware acquires the attributes, services and events of the connected terminal devices and generates corresponding terminal device shadows according to the attributes, services and events; when the application platform issues an instruction to the terminal equipment, the equipment middleware receives the instruction by using a terminal equipment shadow corresponding to the terminal equipment, analyzes the instruction into a format adapted to the terminal equipment, and then issues the analyzed instruction to the terminal equipment; when the terminal equipment uploads data to the application platform, the equipment middleware receives the data by using a terminal equipment shadow corresponding to the terminal equipment, analyzes and encapsulates the format of the data, and sends the encapsulated data to the application platform. The invention can realize the effects of accessing the lower responsible terminal equipment and uploading data to the application platform in the upper responsible mode through the equipment middleware.

Description

Method and system for realizing Internet of things equipment connection middleware
Technical Field
The invention relates to the technical field of Internet of things middleware, in particular to a method and a system for realizing Internet of things equipment connection middleware.
Background
The internet of things (iot) is a network that connects objects, people and things via internet by sensing technology, and performs information exchange and communication to realize intelligent identification, location, tracking, monitoring and management of objects.
With the gradual transition period of the real estate and property industries, the internet of things terminal equipment is quickly accessed by means of the internet of things technology, the terminal equipment data is acquired, the data is integrated for application, and a digital platform of the digital platform is built, so that the digital transition method becomes the field of the digital transition key investment of each real estate and property company. In the process of actively trying to advance the intelligence of property and real estate, AIoT (artificial intelligence internet of things) is selected as one of the most important technology entry points, and in AIoT, connection with various edge terminal devices is one of the most basic capabilities. In the implementation process of the prior related service system and platform, the butt joint of the terminal equipment is carried out. However, with the deepening of the service, the repeated development of the access work of the terminal equipment, the strong coupling of the access of the terminal equipment and the upper-layer service and the like gradually reflect the defects of the mode of fighting each other. That is, each product has its own terminal device connection module, and although the directions of their respective emphasis are different, the related common parts (such as authentication, connection management, etc.) need to be implemented, which would cause waste of human resources and is not favorable for accumulation of technology depth.
And the coupling degree requirement of the terminal equipment access part and each product is higher, when a plurality of products are required to be combined and delivered, the whole set of products need to be carried, but actually, the requirement can be met only by the function of a certain type of terminal equipment, and thus, the cost is increased due to the carrying of the whole set of products. Meanwhile, when the personalized requirements are met, the baseline product may need to be modified, but the response speed to the customer requirements is slowed due to too many carried products, the version management difficulty of the product is increased, and when the third-party platform is provided for docking, too many precondition constraints and relationship mapping exist in the docking process, so that time and labor are consumed. When more terminal devices are subsequently accessed, the logic of the platform is more complex, and the product management is more unfavorable.
Disclosure of Invention
The embodiment of the invention provides a method and a system for realizing an Internet of things equipment connection middleware, and aims to provide the equipment middleware which is responsible for accessing a terminal device and uploading data to an application platform.
The embodiment of the invention provides a method for realizing a device connection middleware of the Internet of things, which comprises the following steps:
the terminal equipment is connected with the equipment middleware through a standard protocol or a private protocol;
the device middleware acquires the attribute, service and event of the connected terminal device and generates a corresponding terminal device shadow according to the attribute, service and event of the terminal device;
when the application platform issues an instruction to the terminal equipment, the equipment middleware receives the instruction by using a terminal equipment shadow corresponding to the terminal equipment, analyzes the instruction into a format adapted to the terminal equipment, and then issues the analyzed instruction to the terminal equipment;
when the terminal equipment uploads data to the application platform, the equipment middleware receives the data by using a terminal equipment shadow corresponding to the terminal equipment, analyzes and encapsulates the format of the data, and sends the encapsulated data to the application platform.
Further, the method also comprises the following steps:
creating and saving an equipment model in the equipment middleware;
selecting a device type in an application platform, acquiring a corresponding device model from the device middleware, and configuring device basic information according to the device model;
generating a corresponding terminal equipment shadow in the equipment middleware according to the equipment basic information;
and adding equipment configuration information in an application platform, submitting the equipment configuration information to the equipment middleware, and configuring the shadow of the terminal equipment.
Further, when the application platform issues an instruction to the terminal device, the device middleware receives the instruction by using a terminal device shadow corresponding to the terminal device, analyzes the instruction into a format adapted to the terminal device, and then issues the analyzed instruction to the terminal device, including:
receiving data or instructions issued by an application platform through the terminal equipment shadow;
judging whether the corresponding terminal equipment is in an online state or not;
if the terminal equipment is in the online state, analyzing the data or the instruction into a format adapted to the terminal equipment, and sending the analyzed data or instruction to the terminal equipment;
if the terminal equipment is judged not to be in the online state, storing the data or the instruction, and continuously judging whether the terminal equipment is in the online state;
and after the data or the instruction is successfully issued, carrying out state synchronization on the shadow of the terminal equipment according to the state of the terminal equipment.
Further, when the terminal device uploads data to the application platform, the device middleware receives the data by using the terminal device shadow corresponding to the terminal device, analyzes and encapsulates the format of the data, and sends the encapsulated data to the application platform, including:
acquiring data of corresponding terminal equipment through the shadow of the terminal equipment, and analyzing the data into a format matched with an application platform;
if the data analysis is successful, storing and reporting the analyzed data to an application platform;
and if the data analysis fails, storing a log of the failed analysis in a terminal equipment shadow.
Further, the method also comprises the following steps:
when the equipment middleware receives a terminal equipment connection request, the equipment middleware matches the equipment model with the terminal equipment;
if the matching is successful, allowing the terminal equipment to access the equipment middleware;
if the matching fails, obtaining the attribute, the event and the service of the terminal equipment, creating an equipment model according to the attribute, the event and the service of the terminal equipment, matching the created equipment model with the terminal equipment, and allowing the terminal equipment to access.
Further, after the device middleware obtains attributes, services, and events of connected terminal devices, and generates corresponding terminal device shadows according to the attributes, services, and events of the terminal devices, the method includes:
and the device middleware uploads the attributes, events and services of the shadow of the terminal device to an application platform, and the application platform sets corresponding instructions for the terminal device according to the attributes, events and services of the shadow of the terminal device.
Further, the terminal device is connected to the device middleware through a standard protocol or a private protocol, and includes:
and the equipment middleware analyzes the protocol of the terminal equipment to ensure that the protocol of the terminal equipment is adaptive to the application platform.
The embodiment of the invention also provides an internet of things equipment connection middleware system, which comprises: terminal equipment, equipment middleware and an application platform;
the terminal equipment is used for being connected with the equipment middleware through a standard protocol or a private protocol;
the device middleware is used for acquiring the attribute, service and event of the connected terminal device and generating a corresponding terminal device shadow according to the attribute, service and event of the terminal device; when the application platform issues an instruction to the terminal equipment, the equipment middleware receives the instruction by using a terminal equipment shadow corresponding to the terminal equipment, analyzes the instruction into a format adapted to the terminal equipment, and then issues the analyzed instruction to the terminal equipment; when the terminal equipment uploads data to the application platform, the equipment middleware receives the data by using a terminal equipment shadow corresponding to the terminal equipment, analyzes and encapsulates the format of the data, and sends the encapsulated data to the application platform.
Further, the device middleware is also used for creating and saving a device model;
the application platform is used for selecting the type of equipment, acquiring a corresponding equipment model from the equipment middleware and configuring equipment basic information according to the equipment model; generating a corresponding terminal equipment shadow in the equipment middleware according to the equipment basic information; adding equipment configuration information, submitting the equipment configuration information to the equipment middleware, and configuring the shadow of the terminal equipment.
Further, the device middleware is further configured to receive data or instructions issued by the application platform through the terminal device shadow; judging whether the corresponding terminal equipment is in an online state or not; if the terminal equipment is in the online state, analyzing the data or the instruction into a format adapted to the terminal equipment, and sending the analyzed data or instruction to the terminal equipment; if the terminal equipment is judged not to be in the online state, storing the data or the instruction, and continuously judging whether the terminal equipment is in the online state; and after the data or the instruction is successfully issued, carrying out state synchronization on the shadow of the terminal equipment according to the state of the terminal equipment.
The embodiment of the invention provides an implementation method and a system for connecting middleware of equipment of the Internet of things, wherein the implementation method comprises the following steps: the terminal equipment is connected with the equipment middleware through a standard protocol or a private protocol; the device middleware acquires the attribute, service and event of the connected terminal device and generates a corresponding terminal device shadow according to the attribute, service and event of the terminal device; when the application platform issues an instruction to the terminal equipment, the equipment middleware receives the instruction by using a terminal equipment shadow corresponding to the terminal equipment, analyzes the instruction into a format adapted to the terminal equipment, and then issues the analyzed instruction to the terminal equipment; when the terminal equipment uploads data to the application platform, the equipment middleware receives the data by using a terminal equipment shadow corresponding to the terminal equipment, analyzes and encapsulates the format of the data, and sends the encapsulated data to the application platform. According to the embodiment of the invention, the corresponding terminal equipment shadow is generated by the equipment middleware according to the attribute, service and event of the terminal equipment, so that the purposes of accessing the lower responsible terminal equipment and uploading data to the application platform by the upper responsible terminal equipment are realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of an implementation method of an internet of things device connection middleware according to an embodiment of the present invention;
fig. 2 is a sub-flow diagram of an implementation method of an internet of things device connection middleware according to an embodiment of the present invention;
fig. 3 is another schematic sub-flow diagram of an implementation method of an internet of things device connection middleware according to an embodiment of the present invention;
fig. 4 is a basic framework diagram of an implementation method of an internet of things device connection middleware according to an embodiment of the present invention;
fig. 5 is a schematic architecture diagram of an internet of things device connection middleware system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for implementing an internet of things device connection middleware, which is provided by an embodiment of the present invention, and specifically includes: steps S101 to S104.
S101, connecting the terminal equipment with the equipment middleware through a standard protocol or a private protocol;
s102, the device middleware acquires the attribute, service and event of the connected terminal device and generates a corresponding terminal device shadow according to the attribute, service and event of the terminal device;
s103, when the application platform issues an instruction to the terminal equipment, the equipment middleware receives the instruction by using a terminal equipment shadow corresponding to the terminal equipment, analyzes the instruction into a format adapted to the terminal equipment, and then issues the analyzed instruction to the terminal equipment;
s104, when the terminal equipment uploads data to the application platform, the equipment middleware receives the data by using the shadow of the terminal equipment corresponding to the terminal equipment, analyzes and encapsulates the format of the data, and sends the encapsulated data to the application platform.
In this embodiment, the device middleware abstracts a corresponding terminal device shadow according to attributes, services, and events of the terminal device, that is, the device middleware has the same attributes, services, and events as those of the terminal device, so as to be called by the application platform, and manage the terminal device at the terminal device access, for example, data transmission, protocol analysis, and the like. When the application platform needs to call the service of the terminal equipment, the data (or the instruction) can be issued through the corresponding shadow of the terminal equipment; when the terminal equipment needs to upload data to the application platform, the data uploading can be realized according to the corresponding terminal equipment shadow, so that the purposes of accessing the lower responsible terminal equipment and uploading the data to the application platform are realized.
In this embodiment, the device middleware analyzes the protocol of the terminal device, and uploads the data to the application platform after the analysis is completed, and for the application platform, the device middleware shields the difference and complexity of terminal device access. And as the terminal equipment butted by the equipment middleware is more and more comprehensive, the access capability of the terminal equipment can be quickly multiplexed for different solutions, and the time for the application platform to butt the terminal equipment is greatly reduced. Meanwhile, the device middleware supports connection of various protocols, terminal devices and networks, and the terminal devices or systems and the like can realize interconnection, intercommunication and interchange through the device middleware.
It should be noted that the attribute of the terminal device described in this embodiment is generally used to describe the running state of the terminal device, such as the current ambient temperature read by the temperature sensor; the service of the terminal equipment represents the capability or method that the terminal equipment can be called by the outside, such as the capability that a temperature sensor can be called by an application platform to acquire the real-time temperature value of the current environment; the event of the terminal device represents an event when the terminal device operates, such as a temperature sensor generating a high temperature alarm. In addition, the standard protocols described in this embodiment include standard protocols such as WiFi, 4G, and 5G, and the proprietary protocols include Modbus protocol (a serial communication protocol), Lora protocol (a wide area network wireless protocol), and the like.
In an embodiment, as shown in fig. 2, the implementation method of the internet of things device connection middleware further includes:
s201, creating and storing an equipment model in the equipment middleware;
s202, selecting a device type in an application platform, acquiring a corresponding device model from the device middleware, and configuring device basic information according to the device model;
s203, generating a corresponding terminal device shadow in the device middleware according to the device basic information;
and S204, adding equipment configuration information in the application platform, submitting the equipment configuration information to the equipment middleware, and configuring the shadow of the terminal equipment.
In this embodiment, when the application platform needs to show or call a service of the terminal device, a device model meeting the service requirement may be selected from the device model(s) created by the device middleware, and device basic information and device configuration information may be added to the selected device model. And the device middleware generates a corresponding terminal device shadow according to the device basic information and configures the terminal device shadow according to the device configuration information.
For example, when an application platform needs to show a temperature condition in a current environment, a temperature sensor device needs to be added, the device middleware provides a corresponding temperature sensor device model, the application platform adds device basic information for the temperature sensor device model, the device middleware generates a corresponding temperature sensor device shadow according to the device basic information, then the application platform adds device configuration information for the temperature sensor device shadow, and the device middleware configures the temperature sensor device according to the device configuration information, so that a link of a temperature sensor display list (application platform) -temperature sensor device shadow (device middleware) -temperature sensor (terminal device) is formed.
In one embodiment, as shown in fig. 3, the step S103 includes:
s301, receiving data or instructions issued by an application platform through the shadow of the terminal equipment;
s302, judging whether the corresponding terminal equipment is in an online state or not;
s303, if the terminal equipment is in an online state, analyzing the data or the instruction into a format adapted to the terminal equipment, and sending the analyzed data or instruction to the terminal equipment;
s304, if the terminal equipment is judged not to be in the online state, storing the data or the instruction, and continuously judging whether the terminal equipment is in the online state;
s305, after the data or the instruction is successfully issued, carrying out state synchronization on the shadow of the terminal equipment according to the state of the terminal equipment.
In this embodiment, when the device middleware receives data or an instruction issued by an application platform, it first determines whether a terminal device receiving the data or the instruction is in an online state, so as to avoid that the device middleware cannot issue the data or the instruction to the terminal device after analyzing the data or the instruction. If the terminal equipment is in an online state, the data or the instruction is analyzed and then is transmitted to the terminal equipment, and the terminal equipment executes corresponding operation according to the data or the instruction; if the terminal equipment is not in the online state, the data or the instruction is not analyzed temporarily, but stored, and whether the terminal equipment is in the state or not is continuously judged until the data or the instruction is successfully issued to the terminal equipment. And after the device middleware successfully issues the data or the device, synchronously updating the state of the shadow of the terminal device corresponding to the terminal device.
It should be noted that, if there are multiple terminal devices corresponding to the application platform, the device middleware may first determine, according to the received data or instruction, the terminal device that finally receives the data or instruction, and then determine whether the terminal device is in an online state; if only one terminal device corresponding to the application platform exists, the device middleware can directly judge whether the terminal device is in an online state after receiving data or instructions.
In one embodiment, the step S104 includes:
acquiring data of corresponding terminal equipment through the shadow of the terminal equipment, and analyzing the data into a format matched with an application platform;
if the data analysis is successful, storing and reporting the analyzed data to an application platform;
and if the data analysis fails, storing a log of the failed analysis in a terminal equipment shadow.
In this embodiment, after acquiring the data of the terminal device, the device middleware parses the acquired data, so that the parsed data format can be adapted to the application platform, and reports the data after parsing is successful. When the data analysis fails, the data cannot be reported, or the reported data cannot be received by the application platform, and at this time, the log of the analysis failure may be stored first, so as to wait for the device middleware to analyze again or execute other operations subsequently.
For example, the temperature sensor uploads the collected data to the device middleware, the device middleware obtains the data uploaded by the temperature sensor through the shadow of the temperature sensor device, resolves the data into a temperature value which can be displayed by the application platform, and pushes the temperature value to the application platform.
In an embodiment, the implementation method of the internet of things device connection middleware further includes:
when the equipment middleware receives a terminal equipment connection request, the equipment middleware matches the equipment model with the terminal equipment;
if the matching is successful, allowing the terminal equipment to access the equipment middleware;
if the matching fails, obtaining the attribute, the event and the service of the terminal equipment, creating an equipment model according to the attribute, the event and the service of the terminal equipment, matching the created equipment model with the terminal equipment, and allowing the terminal equipment to access.
In this embodiment, when the device middleware accesses a terminal device, it is first determined whether a device model corresponding to the terminal device is created in the device middleware by matching the created and stored device model with the terminal device to be accessed. If the matching is successful, determining that the device model corresponding to the terminal device is created in the device middleware, namely, the attribute, the event and the service of the terminal device are stored, so that the terminal device can be directly accessed; if the matching fails, it is determined that the device model corresponding to the terminal device is not created in the device middleware, that is, the attribute, the event, and the service corresponding to the terminal device do not exist, but the terminal device can be directly called after being accessed, so that the corresponding device model can be created according to the attribute, the event, and the service of the terminal device, and then the terminal device is accessed. Of course, after the device model is created, matching still needs to be performed, and the terminal device is allowed to access after matching is successful.
In an embodiment, after the device middleware obtains attributes, services, and events of connected terminal devices, and generates corresponding terminal device shadows according to the attributes, services, and events of the terminal devices, the method includes:
and the device middleware uploads the attributes, events and services of the shadow of the terminal device to an application platform, and the application platform sets corresponding instructions for the terminal device according to the attributes, events and services of the shadow of the terminal device.
In this embodiment, the device middleware uploads the attribute, the event, and the service of the corresponding terminal device to the application platform through the shadow of the terminal device, and then the application platform sets an instruction corresponding to the terminal device according to the received attribute, the event, and the service, and can directly issue the set instruction to the device middleware when data of the terminal device needs to be acquired. For example, the terminal device shadow corresponding to the device middleware temperature sensor uploads the attributes, services and events of the temperature sensor to the application platform, and then the application platform can set instructions for acquiring temperature data or collecting temperature data according to the attributes, services and events.
In an embodiment, the terminal device connects to the device middleware through a standard protocol or a private protocol, including:
and the equipment middleware analyzes the protocol of the terminal equipment to ensure that the protocol of the terminal equipment is adaptive to the application platform.
In this embodiment, since the protocols supported by different terminal devices may be different, and in order to enable the terminal device to be adapted to the application platform, the device middleware parses the protocol supported by the terminal device after receiving the access request of the terminal device. For example, the protocol supported by the temperature sensor and some other types of sensors is modbus protocol, which is transmitted through a smart gateway (e.g., a smart home gateway, etc.), and the device middleware resolves the modbus protocol into a Netty (open framework) service group, so that the temperature sensor or other types of sensors are adapted to the corresponding application platform.
In a specific embodiment, as shown in fig. 4, the terminal device includes an IP device and a non-IP device, where the IP device accesses the device middleware through http(s), MQTT (message queue telemetry transmission), SIP (session initiation protocol), and a private protocol, and can directly perform TCP/IP protocol transmission with the device middleware or perform TCP/IP protocol transmission with the device middleware through a gateway; the non-IP equipment is accessed to the equipment middleware through protocols such as Modbus, ZigBee, BLE (Bluetooth low energy consumption) and Lora, and TCP/IP protocol transmission is carried out between the non-IP equipment and the equipment middleware through a gateway.
The device middleware performs device management, device access, operation and maintenance monitoring and the like on the accessed terminal device, wherein the device management specifically comprises type management, simulation management, device grouping and shadow device; the device access specifically includes connection management, protocol parsing, data management, instruction management, and the like. The middle of the equipment also provides functions of a rule engine, an open API, a console and the like.
The service application (i.e. application platform) and the device middleware are transmitted through http(s), RPC (remote procedure call), MQTT and other protocols, and the service application specifically comprises services such as a space and scene solution, an operation, maintenance and monitoring platform, a third-party application and the like.
Furthermore, the device middleware is further provided with an adaptation layer for adapting the protocol of the terminal device. Specifically, the device middleware adapts a modelbus protocol (i.e., modbus) of a terminal device (e.g., a temperature and humidity sensor, a smoke sensor, etc.) through a Netty service group (a private protocol cluster), wherein the modelbus protocol is transmitted through an intelligent gateway (e.g., an intelligent home gateway, an EBA gateway, etc.); the device middleware can also adapt the lora and wan protocols of some terminal devices (such as geomagnetism, intelligent lighting equipment and the like) through the lora, wan and MQTT clusters, wherein the lora and wan protocols are transmitted through the lora gateway; the device middleware can also adapt vendor protocols of some terminal devices (such as third-party devices) through other collection server clusters which are butted with the third-party devices; the device middleware can also adapt SDK (software development kit)/TCP (transmission control protocol) of some terminal devices (such as monitoring devices, access control devices and the like) through the audio and video processing cluster.
Fig. 5 is a schematic architecture diagram of an internet of things device connection middleware system according to an embodiment of the present invention, where the system includes: terminal equipment 501, equipment middleware 502 and an application platform 503;
the terminal device 501 is configured to connect with the device middleware 502 through a standard protocol or a private protocol;
the device middleware 502 is configured to obtain attributes, services, and events of the connected terminal device 501, and generate a corresponding terminal device shadow according to the attributes, services, and events of the terminal device 501; when the application platform 503 issues an instruction to the terminal device 501, the device middleware 502 receives the instruction by using a terminal device shadow corresponding to the terminal device 501, analyzes the instruction into a format adapted to the terminal device 501, and then issues the analyzed instruction to the terminal device 501; when the terminal device 501 uploads data to the application platform 503, the device middleware 502 receives the data by using a terminal device shadow corresponding to the terminal device 501, analyzes and encapsulates the format of the data, and sends the encapsulated data to the application platform 503.
In one embodiment, the device middleware 502 is further configured to create and save a device model;
the application platform 503 is configured to select a device type, obtain a corresponding device model from the device middleware 502, and configure device basic information according to the device model; generating a corresponding terminal device shadow in the device middleware 502 according to the device basic information; adding equipment configuration information, submitting the equipment configuration information to the equipment middleware, and configuring the shadow of the terminal equipment.
In an embodiment, the device middleware 502 is further configured to receive, through the terminal device shadow, data or an instruction sent by the application platform 503; judging whether the corresponding terminal device 501 is in an online state; if the terminal device 501 is in the online state, analyzing the data or the instruction into a format adapted to the terminal device 501, and sending the analyzed data or instruction to the terminal device 501; if the terminal device 501 is not in the online state, storing the data or the instruction, and continuously judging whether the terminal device 501 is in the online state; after the data or the instruction is successfully issued, the state of the shadow of the terminal equipment is synchronized according to the state of the terminal equipment 501.
In an embodiment, the device middleware 502 is further configured to obtain data of the corresponding terminal device 501 through the shadow of the terminal device, and parse the data into a format adapted to the application platform 503; if the data analysis is successful, storing and reporting the analyzed data to the application platform 503; and if the data analysis fails, storing a log of the failed analysis in a terminal equipment shadow.
In an embodiment, the device middleware 502 is further configured to, when the device middleware 502 receives a connection request of a terminal device 501, match the device model with the terminal device 501 by the device middleware 502; if the matching is successful, allowing the terminal device 501 to access the device middleware; if the matching fails, the attribute, the event and the service of the terminal device 501 are acquired, a device model is created according to the attribute, the event and the service of the terminal device 501, then the created device model is matched with the terminal device 501, and then the terminal device 501 is allowed to access.
In an embodiment, the device middleware 502 is further configured to upload attributes, events and services of the terminal device shadow to the application platform 503, and the application platform 503 sets corresponding instructions to the terminal device 501 according to the attributes, events and services of the terminal device shadow.
In an embodiment, the device middleware 502 is further configured to parse the protocol of the terminal device 501, so that the protocol of the terminal device 501 is adapted to the application platform 503.
Since the embodiment of the system part corresponds to the embodiment of the method part, the embodiment of the system part is described with reference to the embodiment of the method part, and is not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. An implementation method of an Internet of things device connection middleware is characterized by comprising the following steps:
the terminal equipment is connected with the equipment middleware through a standard protocol or a private protocol;
the device middleware acquires the attribute, service and event of the connected terminal device and generates a corresponding terminal device shadow according to the attribute, service and event of the terminal device;
when the application platform issues an instruction to the terminal equipment, the equipment middleware receives the instruction by using a terminal equipment shadow corresponding to the terminal equipment, analyzes the instruction into a format adapted to the terminal equipment, and then issues the analyzed instruction to the terminal equipment;
when the terminal equipment uploads data to the application platform, the equipment middleware receives the data by using a terminal equipment shadow corresponding to the terminal equipment, analyzes and encapsulates the format of the data, and sends the encapsulated data to the application platform.
2. The method for implementing the internet of things device connection middleware according to claim 1, further comprising:
creating and saving an equipment model in the equipment middleware;
selecting a device type in an application platform, acquiring a corresponding device model from the device middleware, and configuring device basic information according to the device model;
generating a corresponding terminal equipment shadow in the equipment middleware according to the equipment basic information;
and adding equipment configuration information in an application platform, submitting the equipment configuration information to the equipment middleware, and configuring the shadow of the terminal equipment.
3. The method for implementing internet of things device connection middleware according to claim 1, wherein when the application platform issues an instruction to the terminal device, the device middleware receives the instruction by using a terminal device shadow corresponding to the terminal device, parses the instruction into a format adapted to the terminal device, and then issues the parsed instruction to the terminal device, including:
receiving data or instructions issued by an application platform through the terminal equipment shadow;
judging whether the corresponding terminal equipment is in an online state or not;
if the terminal equipment is in the online state, analyzing the data or the instruction into a format adapted to the terminal equipment, and sending the analyzed data or instruction to the terminal equipment;
if the terminal equipment is judged not to be in the online state, storing the data or the instruction, and continuously judging whether the terminal equipment is in the online state;
and after the data or the instruction is successfully issued, carrying out state synchronization on the shadow of the terminal equipment according to the state of the terminal equipment.
4. The method for implementing the internet of things device connection middleware according to claim 1, wherein when the terminal device uploads data to the application platform, the device middleware receives the data by using a shadow of the terminal device corresponding to the terminal device, analyzes and encapsulates a format of the data, and sends the encapsulated data to the application platform, including:
acquiring data of corresponding terminal equipment through the shadow of the terminal equipment, and analyzing the data into a format matched with an application platform;
if the data analysis is successful, storing and reporting the analyzed data to an application platform;
and if the data analysis fails, storing a log of the failed analysis in a terminal equipment shadow.
5. The method for implementing the internet of things device connection middleware according to claim 2, further comprising:
when the equipment middleware receives a terminal equipment connection request, the equipment middleware matches the equipment model with the terminal equipment;
if the matching is successful, allowing the terminal equipment to access the equipment middleware;
if the matching fails, obtaining the attribute, the event and the service of the terminal equipment, creating an equipment model according to the attribute, the event and the service of the terminal equipment, matching the created equipment model with the terminal equipment, and allowing the terminal equipment to access.
6. The method for implementing internet of things device connection middleware according to claim 1, wherein after the device middleware obtains attributes, services and events of connected terminal devices and generates corresponding terminal device shadows according to the attributes, services and events of the terminal devices, the method comprises the following steps:
and the device middleware uploads the attributes, events and services of the shadow of the terminal device to an application platform, and the application platform sets corresponding instructions for the terminal device according to the attributes, events and services of the shadow of the terminal device.
7. The method for implementing the internet of things device connection middleware according to claim 1, wherein the terminal device is connected with the device middleware through a standard protocol or a private protocol, and the method comprises the following steps:
and the equipment middleware analyzes the protocol of the terminal equipment to ensure that the protocol of the terminal equipment is adaptive to the application platform.
8. The utility model provides a middleware system is connected to thing networking equipment which characterized in that includes: terminal equipment, equipment middleware and an application platform;
the terminal equipment is used for being connected with the equipment middleware through a standard protocol or a private protocol;
the device middleware is used for acquiring the attribute, service and event of the connected terminal device and generating a corresponding terminal device shadow according to the attribute, service and event of the terminal device; when the application platform issues an instruction to the terminal equipment, the equipment middleware receives the instruction by using a terminal equipment shadow corresponding to the terminal equipment, analyzes the instruction into a format adapted to the terminal equipment, and then issues the analyzed instruction to the terminal equipment; when the terminal equipment uploads data to the application platform, the equipment middleware receives the data by using a terminal equipment shadow corresponding to the terminal equipment, analyzes and encapsulates the format of the data, and sends the encapsulated data to the application platform.
9. The internet-of-things device connection middleware system of claim 8, wherein the device middleware is further configured to create and save a device model;
the application platform is used for selecting the type of equipment, acquiring a corresponding equipment model from the equipment middleware and configuring equipment basic information according to the equipment model; generating a corresponding terminal equipment shadow in the equipment middleware according to the equipment basic information; and adding equipment configuration information, submitting the equipment configuration information to the equipment middleware, and configuring the shadow of the terminal equipment.
10. The internet-of-things device connection middleware system of claim 8, wherein the device middleware is further configured to receive data or instructions issued by an application platform through the terminal device shadow; judging whether the corresponding terminal equipment is in an online state or not; if the terminal equipment is in the online state, analyzing the data or the instruction into a format adapted to the terminal equipment, and sending the analyzed data or instruction to the terminal equipment; if the terminal equipment is judged not to be in the online state, storing the data or the instruction, and continuously judging whether the terminal equipment is in the online state; and after the data or the instruction is successfully issued, carrying out state synchronization on the shadow of the terminal equipment according to the state of the terminal equipment.
CN202010886798.XA 2020-08-28 2020-08-28 Method and system for realizing connection middleware of Internet of things equipment Active CN112039983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010886798.XA CN112039983B (en) 2020-08-28 2020-08-28 Method and system for realizing connection middleware of Internet of things equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010886798.XA CN112039983B (en) 2020-08-28 2020-08-28 Method and system for realizing connection middleware of Internet of things equipment

Publications (2)

Publication Number Publication Date
CN112039983A true CN112039983A (en) 2020-12-04
CN112039983B CN112039983B (en) 2023-12-22

Family

ID=73586101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010886798.XA Active CN112039983B (en) 2020-08-28 2020-08-28 Method and system for realizing connection middleware of Internet of things equipment

Country Status (1)

Country Link
CN (1) CN112039983B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328891A (en) * 2021-06-08 2021-08-31 西人马(深圳)科技有限责任公司 Data communication method, device, equipment and storage medium
CN113542390A (en) * 2021-07-12 2021-10-22 山东大学 Internet of things equipment management method and system adopting memory data model
CN114422558A (en) * 2021-12-29 2022-04-29 国网天津市电力公司 Data message conversion self-description protocol MQTT method based on container edge proxy

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911492A (en) * 2017-12-27 2018-04-13 浙江力石科技股份有限公司 The method and device that equipment accesses in platform of internet of things
CN109104461A (en) * 2018-07-06 2018-12-28 安徽电科恒钛智能科技有限公司 A kind of data processing system and its method based on Internet of things middleware
CN109587228A (en) * 2018-11-23 2019-04-05 济南浪潮高新科技投资发展有限公司 A kind of publicly-owned agreement platform of internet of things and equipment cut-in method
CN110493270A (en) * 2019-09-25 2019-11-22 北京金茂绿建科技有限公司 Internet of things equipment accesses fused controlling method and device thereof
US20190394061A1 (en) * 2018-06-26 2019-12-26 Verizon Patent And Licensing Inc. Virtual network endpoints for internet of things (iot) devices
CN111201764A (en) * 2017-10-19 2020-05-26 Sk电信有限公司 Method and server device for providing platform service of internet of things
CN111585958A (en) * 2020-04-01 2020-08-25 西安电子科技大学 Self-adaptive access method and system for heterogeneous equipment of Internet of things platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111201764A (en) * 2017-10-19 2020-05-26 Sk电信有限公司 Method and server device for providing platform service of internet of things
CN107911492A (en) * 2017-12-27 2018-04-13 浙江力石科技股份有限公司 The method and device that equipment accesses in platform of internet of things
US20190394061A1 (en) * 2018-06-26 2019-12-26 Verizon Patent And Licensing Inc. Virtual network endpoints for internet of things (iot) devices
CN109104461A (en) * 2018-07-06 2018-12-28 安徽电科恒钛智能科技有限公司 A kind of data processing system and its method based on Internet of things middleware
CN109587228A (en) * 2018-11-23 2019-04-05 济南浪潮高新科技投资发展有限公司 A kind of publicly-owned agreement platform of internet of things and equipment cut-in method
CN110493270A (en) * 2019-09-25 2019-11-22 北京金茂绿建科技有限公司 Internet of things equipment accesses fused controlling method and device thereof
CN111585958A (en) * 2020-04-01 2020-08-25 西安电子科技大学 Self-adaptive access method and system for heterogeneous equipment of Internet of things platform

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328891A (en) * 2021-06-08 2021-08-31 西人马(深圳)科技有限责任公司 Data communication method, device, equipment and storage medium
CN113542390A (en) * 2021-07-12 2021-10-22 山东大学 Internet of things equipment management method and system adopting memory data model
CN113542390B (en) * 2021-07-12 2022-07-05 山东大学 Internet of things equipment management method and system adopting memory data model
CN114422558A (en) * 2021-12-29 2022-04-29 国网天津市电力公司 Data message conversion self-description protocol MQTT method based on container edge proxy

Also Published As

Publication number Publication date
CN112039983B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN112039983B (en) Method and system for realizing connection middleware of Internet of things equipment
CN110430219B (en) Method and system for self-adapting of multi-protocol Internet of things equipment
CN111031034A (en) Multi-protocol convergence edge computing gateway
CN109889551A (en) A kind of method of the Internet of Things cloud platform of Intelligent hardware access
CN109270850A (en) A kind of intelligent household management system and method based on Internet of Things
Milenkovic Internet of Things: Concepts and System Design
CN110995859A (en) Intelligent transformer substation supporting platform system based on ubiquitous Internet of things
CN106790222B (en) MODBUS/full-interconnection manufacturing network information service adapter and implementation method thereof
CN108123842A (en) A kind of adaption system and method that can access more plant equipments based on KNX agreements
CN111611054B (en) Application deployment method and device
CN111556158B (en) Access method, access device, access equipment and storage medium of Internet of things platform
WO2023000726A1 (en) Device reverse integration access method, device reverse integration management method and system, and computer device
WO2020168568A1 (en) Data processing method and apparatus, electronic device and readable storage medium
CN112988485A (en) Simulation test method and device for power Internet of things equipment
CN103152370A (en) Service gateway system of internet of things and application method
CN113609048B (en) Cloud edge service collaborative interaction method for electric power Internet of things
CN114172978A (en) Multi-protocol equipment access method and related device
CN103944779B (en) A kind of WAP service features monitoring method and system
CN104270432A (en) Real-time data service system and data interaction method based on drilling industry
CN113765719B (en) Instant implementation method for unified management, monitoring and maintenance of Internet of things access
CN114885012A (en) System access method and system of Internet of things platform
CN114726916A (en) Data transmission management system and method based on edge Internet of things agent
CN114595115A (en) Model data extraction method, system, electronic device and computer storage medium
CN114157725B (en) Method, device, server, electronic equipment and storage medium for equipment linkage
CN114390093B (en) Virtual gateway simulation system

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