CN111294401B - Internet of things equipment access method and device - Google Patents

Internet of things equipment access method and device Download PDF

Info

Publication number
CN111294401B
CN111294401B CN202010083868.8A CN202010083868A CN111294401B CN 111294401 B CN111294401 B CN 111294401B CN 202010083868 A CN202010083868 A CN 202010083868A CN 111294401 B CN111294401 B CN 111294401B
Authority
CN
China
Prior art keywords
equipment
internet
things
model
adapter
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.)
Active
Application number
CN202010083868.8A
Other languages
Chinese (zh)
Other versions
CN111294401A (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.)
Taihua Wisdom Industry Group Co Ltd
Original Assignee
Taihua Wisdom Industry Group 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 Taihua Wisdom Industry Group Co Ltd filed Critical Taihua Wisdom Industry Group Co Ltd
Priority to CN202010083868.8A priority Critical patent/CN111294401B/en
Publication of CN111294401A publication Critical patent/CN111294401A/en
Application granted granted Critical
Publication of CN111294401B publication Critical patent/CN111294401B/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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses an access method and device of Internet of things equipment, wherein the access method comprises the following steps: receiving an instruction issued by an upper-layer service system, searching a first device protocol associated with a first device model for instruction coding, searching an adapter example corresponding to the first adapter model in a device domain, issuing a downlink message, and issuing coded instruction parameter information to the first Internet of things device or a third-party platform by the adapter example. The access method further comprises the following steps: the adapter instance receives device data uploaded by the first Internet of things device or pushed by the third-party platform, uploads an uplink message, searches for an uplink service processing module for data processing, searches for a first device protocol associated with the first device model for data decoding, and pushes the decoded data to an upper-layer service system. The method and the device for managing the equipment protocol access mode design solve the difference between the equipment protocol coding and decoding and the equipment access mode through designing the equipment model and the adapter model, and flexibly support the equipment unified operation management of any equipment protocol and any equipment access mode.

Description

Internet of things equipment access method and device
Technical Field
The invention relates to the technical field of Internet of things, in particular to an Internet of things equipment access method and device.
Background
In the construction process of smart cities, the Internet of things plays an important role. The Internet of things equipment is arranged on urban infrastructure such as well covers, geomagnetism, street lamps and the like, so that the equipment has network identity, intelligent identification and management are carried out, and the intelligent method is an effective means for urban operation and management. However, the large amount of city infrastructure makes effective access of massive internet of things devices become an urgent problem to be solved.
The difference of the device protocol coding and decoding and the device access mode needs to be considered for the access of the internet of things devices.
Device protocol codec refers to conversion between human-understandable character data and corresponding byte data. Interaction with hardware devices requires the use of a byte stream, and therefore device protocols must be designed as standards for data conversion, the conversion from character data to byte data being referred to as encoding and vice versa as decoding. The codec content is closely related to the functions of hardware devices, and device protocols following the same specification can carry different codec content.
The device access modes are mainly divided into two types: a third party platform manner and a direct connection (hereinafter, referred to as "direct connection") manner. The third-party platform mode means that the equipment is hosted on a third-party Internet of things platform, such as an OceanConnect platform, an Aliyun Internet of things platform, a China Mobile OneNet platform, a China telecom CTwing platform and the like, when the equipment is communicated with the equipment, firstly, the equipment needs to interact with the platform through an REST form API (application program interface) opened by the third-party platform, and then, the third-party platform completes the communication with the equipment. The direct connection mode is To directly communicate with the device through TCP Socket connection, UDP Socket connection, coap (the structured Application protocol) protocol, LwM2M (Lightweight Machine-To-Machine) protocol, mqtt (message Queuing telemetric transport) protocol, and other modes.
In a practical application scene, the internet of things equipment is various, different manufacturers and models are adopted, and equipment protocols and equipment access modes are different. The device with the same access mode can use the coding and decoding of different versions of protocols or different protocols. Due to the differences of the access modes of the devices, different access modes need to be customized specifically according to the differences, and the differences need to be shielded so as to facilitate uniform scheduling processing on services.
The existing internet of things equipment access method considers the situation that equipment with multiple communication protocols, multiple types and multiple access modes are accessed simultaneously, but the existing mode still has the following problems:
(1) in the direct connection mode, the received device data must be able to distinguish between protocols and protocol versions to facilitate subsequent decoding operations. However, different device protocol definitions are different, the uploaded data of part of the protocol definitions do not explicitly distinguish the protocol and the identifier of the protocol version, and the judgment condition cannot be accurately matched with a specific protocol by setting the protocol format. Therefore, the device upload data cannot be uniformly distributed.
(2) The existing equipment access method does not comprehensively consider the situations of accessing equipment in a third-party platform mode and a direct connection mode.
Disclosure of Invention
The invention provides an Internet of things equipment access method and device, aiming at Internet of things equipment with multiple communication protocols, multiple types and multiple access modes, the invention designs an equipment model and adapter model double-layer model around equipment identification, and flexibly combines and deploys equipment protocol codes and decoders of equipment with different metadata information and adapters with different access modes as extensible plug-ins according to scene requirements, thereby meeting the unified scheduling processing of uplink and downlink business processes and realizing the unified operation and management of multi-source heterogeneous equipment in an Internet of things access system.
In a first aspect, the application provides an internet of things device access method, which is applied to an internet of things access system, wherein the internet of things access system comprises a plurality of pre-established device models and a plurality of pre-established adapter models, each internet of things device accessing the internet of things access system is respectively associated with one device model and one adapter model, and each device model is associated with one device protocol; the access method comprises the following steps:
receiving an instruction issued by an upper service system, wherein the instruction comprises a device identifier of a first internet of things device which is accessed to the internet of things access system in advance;
according to the equipment identification of the first Internet of things equipment, searching a first equipment model associated with the first Internet of things equipment, and determining a first equipment protocol associated with the first equipment model;
coding the instruction parameters in the instruction according to the first equipment protocol and the instruction type of the instruction, and putting a coding result into a message with a uniform format to generate a downlink message;
according to the equipment identifier of the first Internet of things equipment, searching for an equipment domain identifier of an equipment domain where the first Internet of things equipment is located and a model identifier of a first adapter model associated with the first Internet of things equipment, determining an adapter instance in the equipment domain where the first Internet of things equipment is located according to the equipment domain identifier and the model identifier of the first adapter model in a combined mode, and issuing a downlink message in a uniform format to the adapter instance;
and the adapter instance acquires the instruction parameter information from the downlink message and issues the instruction parameter information to the first Internet of things equipment.
Optionally, the access method further includes:
after the adapter instance receives the equipment data uploaded by the first Internet of things equipment, uploading the equipment data in an uplink message with a uniform format; the device data comprises a device identification of the first internet of things device;
and searching an uplink service processing module for data processing according to the model identifier of the first adapter model.
According to the equipment identification of the first Internet of things equipment, searching a first equipment model associated with the first Internet of things equipment, and determining a first equipment protocol associated with the first equipment model;
decoding the device data according to the first device protocol;
and pushing the decoded equipment data to the upper layer service system.
Optionally, if the first internet of things device is connected with the internet of things access system through a third-party platform, the instruction parameter information is issued to the third-party platform by the adapter instance, and the third-party platform sends the instruction parameter information to the first internet of things device.
Optionally, if the first internet of things device is connected with the internet of things access system through a third-party platform, the device data is uploaded to the third-party platform by the first internet of things device and pushed to the adapter instance by the third-party platform; the device data comprises a device identification of the first internet of things device on the third-party platform.
Optionally, the pre-established multiple device models are used for storing device metadata information of internet of things devices accessing the internet of things access system; the device metadata information at least comprises a device type, a device model, a manufacturer, a device communication mode and an associated device protocol.
Optionally, the pre-established adapter models are used for storing device access mode information of the internet of things device accessing the internet of things access system; the access mode information at least comprises an adapter connection mode, an adapter communication mode and a device protocol associated with the adapter when the Internet of things device is directly connected with the Internet of things access system.
Optionally, when the internet of things device is directly connected to the internet of things access system, each adapter model of the multiple adapter models is further associated with a device protocol, so as to decode a device identifier from upload data of the directly connected device.
In a second aspect, the application provides an internet of things device access apparatus, which is applied to an internet of things access system, wherein the internet of things access system includes a plurality of pre-established device models and a plurality of pre-established adapter models, each internet of things device accessing the internet of things access system is associated with one device model and one adapter model, and each device model is associated with one device protocol; the access device comprises:
the instruction receiving module is used for receiving an instruction issued by an upper-layer service system, wherein the instruction comprises a device identifier of a first Internet of things device which is accessed to the Internet of things access system in advance;
the first searching module is used for searching a first equipment model associated with the first Internet of things equipment according to the equipment identification of the first Internet of things equipment so as to determine a first equipment protocol associated with the first equipment model;
the encoding module is used for encoding instruction parameters in the instruction according to the first equipment protocol and the instruction type of the instruction, and putting an encoding result into a message with a uniform format to generate a downlink message;
the second searching module is used for searching the equipment domain identifier of the equipment domain where the first internet of things equipment is located and the model identifier of the first adapter model associated with the first internet of things equipment according to the equipment identifier of the first internet of things equipment, so that the adapter instance of the equipment domain where the first internet of things equipment is located is determined according to the equipment domain identifier and the model identifier of the first adapter model in a combined mode, and downlink messages with uniform formats are issued to the adapter instance;
and the instruction sending module is used for acquiring the instruction parameter information from the downlink message by the adapter example and sending the instruction parameter information to the first Internet of things equipment.
Optionally, the apparatus further comprises:
the data receiving module is used for uploading the equipment data in an uplink message with a uniform format after the adapter instance receives the equipment data uploaded by the first Internet of things equipment; the device data comprises a device identification of the first internet of things device;
and the third searching module is used for searching the uplink service processing module for data processing according to the model identifier of the first adapter model.
A fourth searching module, configured to search, according to the device identifier of the first internet of things device, a first device model associated with the first internet of things device, so as to determine a first device protocol associated with the first device model;
a decoding module, configured to decode the device data according to the first device protocol;
and the data pushing module is used for pushing the decoded equipment data to the upper-layer service system.
Compared with the prior art, the method and the device for accessing the Internet of things equipment, provided by the invention, at least realize the following beneficial effects:
according to the method and the device, the equipment associated with the downlink instruction and the uplink data is identified through the equipment identifier, and an equipment model and adapter model double-layer model is designed to solve the access problem of the Internet of things equipment. Metadata information differences such as types and models of the Internet of things equipment are expressed by the equipment model, and instruction encoding and data decoding of the Internet of things equipment of different types and different models can be supported by associating the equipment model with the equipment protocol. And expressing the difference of the access modes of the Internet of things equipment by using the adapter model, and supporting the access of the Internet of things equipment according to the adapter instance corresponding to the adapter model. The device model and the adapter model are respectively associated with the device identifier, so that unified operation management of devices in any device protocol and any access mode is flexibly supported, and the expandability is high.
Of course, it is not necessary for any product in which the present invention is practiced to achieve all of the above-described technical effects simultaneously.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating an access method for an internet of things device according to an embodiment of the present application;
fig. 2 is an ER Diagram (Entity contact Diagram) of the internet of things device access method according to the embodiment of the present application;
fig. 3 is a schematic diagram illustrating instruction downlink in an access method of an internet of things device according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating uplink and downlink messages in an access method for an internet of things device according to an embodiment of the present application;
fig. 5 is another schematic diagram illustrating uplink and downlink messages in an access method of an internet of things device according to an embodiment of the present application;
fig. 6 is a schematic diagram of an access apparatus of an internet of things device according to an embodiment of the present application;
fig. 7 is another schematic diagram of an internet of things device access apparatus according to an embodiment of the present application.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
The invention provides an access method of Internet of things equipment, which can flexibly support any equipment protocol and access mode and is convenient for unified operation and management of the Internet of things equipment.
The following detailed description is to be read in connection with the drawings and the detailed description.
Referring to fig. 1, an internet of things device access method provided in an embodiment of the present application is applied to an internet of things access system, where the internet of things access system includes a plurality of device models and a plurality of adapter models that are established in advance, each internet of things device accessing the internet of things access system is associated with one device model and one adapter model, and each device model is associated with one device protocol; the access method comprises the following steps:
receiving an instruction issued by an upper-layer service system, wherein the instruction comprises a device identifier of first Internet of things equipment which is accessed to an Internet of things access system in advance;
according to the equipment identification of the first Internet of things equipment, searching a first equipment model associated with the first Internet of things equipment, and determining a first equipment protocol associated with the first equipment model;
according to a first equipment protocol and an instruction type of an instruction, encoding instruction parameters in the instruction, and putting an encoding result into a message with a uniform format to generate a downlink message;
according to the equipment identifier of the first Internet of things equipment, searching for an equipment domain identifier of an equipment domain where the first Internet of things equipment is located and a model identifier of a first adapter model associated with the first Internet of things equipment, determining an adapter instance in the equipment domain where the first Internet of things equipment is located according to the equipment domain identifier and the model identifier of the first adapter model in a combined mode, and issuing a downlink message with a uniform format to the adapter instance;
and the adapter instance acquires the instruction parameter information from the downlink message and issues the instruction parameter information to the first Internet of things equipment.
Optionally, please continue to refer to fig. 1, where the access method further includes:
after receiving the equipment data uploaded by the first Internet of things equipment, the adapter instance uploads the equipment data in an uplink message with a uniform format; the device data comprises a device identification of the first internet of things device;
and searching the uplink service processing module for data processing according to the model identifier of the first adapter model.
Determining a first device model associated with the first internet of things device and a first device protocol associated with the first device model according to the device identifier of the first internet of things device;
decoding the device data according to a first device protocol;
and pushing the decoded equipment data to an upper-layer service system.
Specifically, referring to fig. 2, in the internet of things access system, a device domain is defined as a basic unit for device management of the internet of things, and each device domain can access a plurality of internet of things devices with different device protocols and different access modes; the management unit represented by the device domain may be a building or a campus.
In this embodiment, the device instruction, and the device data all have a device identifier. It can be understood that the device identifier is an identity identifier designed for facilitating management of the internet of things device, and the internet of things access system can uniquely identify one internet of things device through the device identifier. Specifically, the device identifier may have four different expression modes: the access system of the internet of things comprises the own Equipment identification, IMEI (International Mobile Equipment Identity), the number of the user-defined Equipment and the Equipment identification of a third-party platform.
The defined device model describes device metadata information including device type, device model, manufacturer, device communication mode (TCP Socket, CoAP, LwM2M, etc.), and associated device protocols. The equipment model is provided with equipment model identification, each Internet of things equipment can only be associated with one equipment model, each equipment model is associated with one equipment protocol, and each equipment protocol can be associated with a plurality of equipment models.
The method comprises the steps of defining an adapter model to describe equipment access mode information, wherein the access mode information comprises adapter connection modes (Huacheng platform mode, OneNet platform mode, direct connection mode and the like), adapter communication modes (TCP Socket, CoAP, LwM2M and the like), equipment protocols which need to be associated by the adapter in the direct connection mode and the like. The adapter model is provided with an adapter model identifier, and the adapter model is called according to the access mode of the equipment in the equipment domain to generate an adapter instance corresponding to the adapter model. Each device can only be associated with one adapter model, one device domain and one adapter model are associated with one adapter instance in a combined mode, and each device domain can contain adapter instances corresponding to a plurality of adapter models. In the third-party platform mode, the adapter model and the equipment protocol do not have an association relation; in the direct connection mode, each adapter model needs to be associated with a device protocol.
Referring to fig. 1 and fig. 2, when the internet of things device accesses the internet of things access system, a service flow may be divided into two processes, namely, an instruction issuing process and a data reporting process.
Specifically, in the process of issuing the instruction, the upper layer service system issues the instruction in a specified format, and after receiving the instruction, the internet of things access system searches for the first equipment model associated with the first internet of things equipment according to the equipment identifier of the first internet of things equipment in the instruction, so that the instruction parameters in the instruction are encoded according to the first equipment protocol associated with the first equipment model and the instruction type in the instruction, and the encoded result is put into the downlink message in a uniform format. Then, according to the device identifier of the first internet of things device, the device domain identifier of the device domain where the first internet of things device is located is searched, so that the adapter instance under the device domain is determined in a combined mode according to the device domain identifier and the model identifier of the first device model, and the generated downlink message is sent to the adapter instance. And the adapter instance acquires appropriate parameter information from the downlink message according to a specific communication mode and sends the appropriate parameter information to the first Internet of things equipment or the third-party platform.
The instruction format issued by the upper layer service system is defined as follows:
Figure BDA0002381313850000091
wherein, the Command format is defined as follows:
Figure BDA0002381313850000092
the unified downlink message format is defined as follows:
Figure BDA0002381313850000093
on the other hand, in the data reporting process, the first internet of things device uploads the device data or the third-party platform pushes the device data to the adapter instance, and the adapter instance uploads the device data in an uplink message with a uniform format. And then, searching an uplink service processing module according to the model identification of the first adapter model uploaded by the adapter instance to process data. And searching a first equipment model according to the equipment identifier of the first Internet of things equipment, so as to decode the uploaded equipment data according to the associated first equipment protocol and push the decoded equipment data to an upper-layer service system.
Wherein, the unified uplink message format is defined as follows:
Figure BDA0002381313850000101
in this embodiment, the device has multiple device identifiers at the same time, and the representation modes of the device identifiers can be mutually converted according to actual needs. Since the instruction issued by the upper layer service system is for the first internet of things device, the instruction necessarily includes the device identifier of the first internet of things device. No matter the device is accessed through a third-party platform mode or a direct connection mode, the device data is bound with the device identifier: the equipment data from the third-party platform is associated with the equipment identifier of the corresponding platform, and the equipment data from the direct-connected equipment is associated with the IMEI or the user-defined equipment number, so that the equipment identifier can be analyzed through the uploaded data after the equipment is accessed.
Optionally, the pre-established multiple device models are used for storing device metadata information of the internet of things devices accessing the internet of things access system; the device metadata information may include a device type, a device model, a manufacturer, a device communication method, and an associated device protocol.
Optionally, the pre-established adapter models are used for storing equipment access mode information of the internet of things equipment accessed to the internet of things access system; the access mode information may include an adapter connection mode, an adapter communication mode, and a device protocol associated with the adapter when the internet of things device is directly connected to the internet of things access system.
Optionally, when the internet of things device is directly connected to the internet of things access system, each adapter model of the plurality of adapter models is further associated with a device protocol, so as to decode the device identifier from the uploaded data of the directly connected device.
Optionally, if the first internet of things device is connected with the internet of things access system through a third-party platform, the instruction parameter information is issued to the third-party platform by the adapter instance, and the third-party platform sends the instruction parameter information to the first internet of things device.
Optionally, if the first internet of things device is connected with the internet of things access system through a third-party platform, device data is pushed to the third-party platform by the first internet of things device and pushed to the adapter instance by the third-party platform; the device data comprises a device identification of the first internet of things device on the third-party platform.
Therefore, by establishing the association relationship among the equipment model, the adapter model and the Internet of things equipment, the Internet of things access system can be compatible with the Internet of things equipment with any equipment protocol and any access mode, and the expandability of the Internet of things access system is improved.
For convenience of understanding, the access method of the internet of things device provided by the embodiment of the present application is described below by taking the access of a single-lamp device as an example.
As shown in fig. 3, in a light turning-on and turning-off instruction in JSON format issued by an upper service system and received by an access system of the internet of things, a device identifier deviceId of a first device of the internet of things (i.e., the above-mentioned single-light device) is a device identifier owned by the access system, when a light1 value in an instruction parameter paras is 100, it indicates that a lamp head number 1 is turned on, and when a light2 value is 0, it indicates that a lamp head number 2 is turned off.
As shown in fig. 4, when a single-lamp device is accessed to an access system of the internet of things in a TCP Socket direct connection manner, fields with null values in a JSON format downlink message and an JSON format uplink message are not displayed. In the downlink message, the equipment identifier of the single-lamp equipment is converted into IMEI from deviceId, and the issuing content operationContent is a coded issuing parameter represented by hexadecimal characters. And the adapter instance receives the downlink message and then issues an instruction to the single-lamp equipment in a TCP Socket communication mode. In the uplink message, the adapter model identifier associated with the adapter instance is TCP _ SOCKET _ LAMP, the device uploading data is represented by hexadecimal characters, and the device identifier IMEI is decoded from the data according to the single-LAMP device protocol associated with the adapter model. And converting the equipment identifier IMEI in the uplink message into a deviceId, searching an equipment protocol associated with the equipment model according to the deviceId, and decoding to obtain the lamp holder state after the instruction is executed.
In another application scenario, the single-lamp device is accessed to the internet of things access system in a mode that the OneNet platform is used as a third-party platform. As shown in fig. 5, the fields with empty values in the JSON-formatted downlink message and uplink message are not displayed. In the downlink message, the device identifier is converted from deviceId into the identifier of single-lamp device on the third-party platform, which is thirdplatDeviceId, and the issued content operationContent contains the encoded issued parameters and also carries the parameter information required to be provided for accessing the OneNet platform issued instruction interface. The adapter instance receives the downlink message and then issues the instruction to the OneNET platform in an REST interface mode, and the instruction is issued to the single-lamp equipment by the OneNET platform. In the uplink message, the adapter model identifier associated with the adapter instance is ONENET, the device upload data is represented by hexadecimal characters, and the device identifier is the identifier of the device on the third-party platform, thirdPlatDeviceId. And converting the device identifier thirdPlatDeviceId in the uplink message into deviceId, searching a device protocol associated with the device model according to the device identifier deviceId, and decoding to obtain the lamp holder state after the instruction is executed.
Based on the same inventive concept, the application also provides an access device of the Internet of things equipment. As shown in fig. 6, the access device of the internet of things device provided by the present application is applied to an internet of things access system, the internet of things access system includes a plurality of device models and a plurality of adapter models which are established in advance, each internet of things device accessing the internet of things access system is associated with one device model and one adapter model, and each device model is associated with one device protocol; the access device comprises:
the instruction receiving module is used for receiving an instruction issued by an upper-layer service system, wherein the instruction comprises a device identifier of a first Internet of things device which is accessed to the Internet of things access system in advance;
the first searching module is used for searching a first equipment model associated with the first Internet of things equipment according to the equipment identification of the first Internet of things equipment so as to determine a first equipment protocol associated with the first equipment model;
the encoding module is used for encoding instruction parameters in the instruction according to the first equipment protocol and the instruction type of the instruction, and putting an encoding result into a message with a uniform format to generate a downlink message;
the second searching module is used for searching the equipment domain identifier of the equipment domain where the first internet of things equipment is located and the model identifier of the first adapter model associated with the first internet of things equipment according to the equipment identifier of the first internet of things equipment, so that the adapter instance of the equipment domain where the first internet of things equipment is located is determined according to the equipment domain identifier and the model identifier of the first adapter model in a combined mode, and downlink messages with uniform formats are issued to the adapter instance;
and the instruction sending module is used for acquiring the instruction parameter information from the downlink message by the adapter example and sending the instruction parameter information to the first Internet of things equipment.
The internet of things access device further comprises:
the data receiving module is used for uploading the equipment data in an uplink message with a uniform format after the adapter instance receives the equipment data uploaded by the first Internet of things equipment; the device data comprises a device identification of the first internet of things device;
the third searching module is used for searching the uplink service processing module for data processing according to the model identifier of the first adapter model;
a fourth searching module, configured to search, according to the device identifier of the first internet of things device, a first device model associated with the first internet of things device, so as to determine a first device protocol associated with the first device model;
a decoding module, configured to decode the device data according to the first device protocol;
and the data pushing module is used for pushing the decoded equipment data to the upper-layer service system.
For convenience of understanding, the access device of the internet of things device is described below with reference to a specific application scenario.
Referring to fig. 7, the access system of the internet of things may be composed of six modules: the system comprises an instruction receiving and data pushing module, a service processing module, an equipment management module, an operation management module, an equipment protocol coding and decoding module and an adapter instance module.
The instruction receiving and data pushing module is responsible for interacting with the upper layer service system, receiving a JSON format instruction issued by the upper layer service system, and pushing decoded equipment data to the upper layer service system.
The service processing module is responsible for service logic realization and scheduling, the equipment management module is responsible for equipment related information management such as an equipment domain, equipment, an equipment model, equipment protocol coding and decoding, an adapter model, an adapter instance and the like, and the operation management module is responsible for persistent storage of instructions and data and operation information management such as third-party platform information, dictionary information and the like. The service processing module, the equipment management module and the operation management module are core service modules of the access system.
The device protocol coding and decoding module is formed by coding and decoding of specific device protocols, such as single-lamp protocol coding and decoding, geomagnetic protocol coding and decoding, intelligent lock protocol coding and decoding, water level meter protocol coding and decoding and the like. The adapter example module is composed of adapters with specific access modes and device protocols, such as a TCP single-lamp protocol adapter interfacing a third-party platform adapter a and a third-party platform adapter B, interfacing a TCP Socket communication mode and a single-lamp protocol, interfacing an LwM2M communication mode and an LwM2M geomagnetic protocol adapter interfacing a geomagnetic protocol, and the like. The core service module calls the equipment protocol coding and decoding module to carry out instruction coding on the JSON format instruction, the coded instruction parameter information is sent to the adapter instance module to carry out instruction issuing, meanwhile, the core service module receives the equipment data uploaded by the adapter instance module, the equipment protocol coding and decoding module is called to carry out data decoding, and the decoded equipment data information is sent to the instruction receiving and data pushing module to carry out data pushing.
Although some specific embodiments of the present invention have been described in detail by way of examples, it should be understood by those skilled in the art that the above examples are for illustrative purposes only and are not intended to limit the scope of the present invention. It will be appreciated by those skilled in the art that modifications may be made to the above embodiments without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.

Claims (9)

1. An Internet of things equipment access method is characterized by being applied to an Internet of things access system, wherein the Internet of things access system comprises a plurality of pre-established equipment models and a plurality of pre-established adapter models, each Internet of things equipment accessed to the Internet of things access system is respectively associated with one equipment model and one adapter model, and each equipment model is associated with one equipment protocol; the access method comprises the following steps:
receiving an instruction issued by an upper service system, wherein the instruction comprises a device identifier of a first internet of things device which is accessed to the internet of things access system in advance;
according to the equipment identification of the first Internet of things equipment, searching a first equipment model associated with the first Internet of things equipment, and determining a first equipment protocol associated with the first equipment model;
coding the instruction parameters in the instruction according to the first equipment protocol and the instruction type of the instruction, and putting a coding result into a message with a uniform format to generate a downlink message;
according to the equipment identifier of the first Internet of things equipment, searching for an equipment domain identifier of an equipment domain where the first Internet of things equipment is located and a model identifier of a first adapter model associated with the first Internet of things equipment, determining an adapter instance in the equipment domain where the first Internet of things equipment is located according to the equipment domain identifier and the model identifier of the first adapter model in a combined mode, and issuing a downlink message in a uniform format to the adapter instance;
and the adapter instance acquires the instruction parameter information from the downlink message and issues the instruction parameter information to the first Internet of things equipment.
2. The internet of things equipment access method of claim 1, further comprising:
after the adapter instance receives the equipment data uploaded by the first Internet of things equipment, uploading the equipment data in an uplink message with a uniform format; the device data comprises a device identification of the first internet of things device;
searching an uplink service processing module for data processing according to the model identification of the first adapter model;
according to the equipment identification of the first Internet of things equipment, searching a first equipment model associated with the first Internet of things equipment, and determining a first equipment protocol associated with the first equipment model;
decoding the device data according to the first device protocol;
and pushing the decoded equipment data to the upper layer service system.
3. The internet of things equipment access method according to claim 1, wherein if the first internet of things equipment is connected with the internet of things access system through a third-party platform, the instruction parameter information is issued to the third-party platform by the adapter instance, and the third-party platform sends the instruction parameter information to the first internet of things equipment.
4. The internet of things equipment access method according to claim 2, wherein if the first internet of things equipment is connected with the internet of things access system through a third-party platform, the equipment data is uploaded to the third-party platform by the first internet of things equipment and pushed to the adapter instance by the third-party platform; the device data comprises a device identification of the first internet of things device on the third-party platform.
5. The internet of things equipment access method according to claim 1, wherein the pre-established equipment models are used for storing equipment metadata information of internet of things equipment accessing the internet of things access system; the device metadata information at least comprises a device type, a device model, a manufacturer, a device communication mode and an associated device protocol.
6. The internet of things equipment access method according to claim 1, wherein the pre-established adapter models are used for storing equipment access mode information of internet of things equipment accessing the internet of things access system; the access mode information at least comprises an adapter connection mode, an adapter communication mode and a device protocol associated with the adapter when the Internet of things device is directly connected with the Internet of things access system.
7. The internet of things device access method of claim 6, wherein each of the plurality of adapter models is further associated with a device protocol to enable decoding of a device identification from uploaded data of a directly connected device when the internet of things device is directly accessed to the internet of things access system.
8. An Internet of things equipment access device is applied to an Internet of things access system, the Internet of things access system comprises a plurality of pre-established equipment models and a plurality of pre-established adapter models, each Internet of things equipment accessed to the Internet of things access system is respectively associated with one equipment model and one adapter model, and each equipment model is associated with one equipment protocol; the access device comprises:
the instruction receiving module is used for receiving an instruction issued by an upper-layer service system, wherein the instruction comprises a device identifier of a first Internet of things device which is accessed to the Internet of things access system in advance;
the first searching module is used for searching a first equipment model associated with the first Internet of things equipment according to the equipment identification of the first Internet of things equipment so as to determine a first equipment protocol associated with the first equipment model;
the encoding module is used for encoding instruction parameters in the instruction according to the first equipment protocol and the instruction type of the instruction, and putting an encoding result into a message with a uniform format to generate a downlink message;
the second searching module is used for searching the equipment domain identifier of the equipment domain where the first internet of things equipment is located and the model identifier of the first adapter model associated with the first internet of things equipment according to the equipment identifier of the first internet of things equipment, so that the adapter instance of the equipment domain where the first internet of things equipment is located is determined according to the equipment domain identifier and the model identifier of the first adapter model in a combined mode, and downlink messages with uniform formats are issued to the adapter instance;
and the instruction sending module is used for acquiring the instruction parameter information from the downlink message by the adapter example and sending the instruction parameter information to the first Internet of things equipment.
9. The internet of things device access apparatus of claim 8, wherein the apparatus further comprises:
the data receiving module is used for uploading the equipment data in an uplink message with a uniform format after the adapter instance receives the equipment data uploaded by the first Internet of things equipment; the device data comprises a device identification of the first internet of things device;
the third searching module is used for searching the uplink service processing module for data processing according to the model identifier of the first adapter model;
a fourth searching module, configured to search, according to the device identifier of the first internet of things device, a first device model associated with the first internet of things device, so as to determine a first device protocol associated with the first device model;
a decoding module, configured to decode the device data according to the first device protocol;
and the data pushing module is used for pushing the decoded equipment data to the upper-layer service system.
CN202010083868.8A 2020-02-10 2020-02-10 Internet of things equipment access method and device Active CN111294401B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010083868.8A CN111294401B (en) 2020-02-10 2020-02-10 Internet of things equipment access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010083868.8A CN111294401B (en) 2020-02-10 2020-02-10 Internet of things equipment access method and device

Publications (2)

Publication Number Publication Date
CN111294401A CN111294401A (en) 2020-06-16
CN111294401B true CN111294401B (en) 2022-04-01

Family

ID=71024452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010083868.8A Active CN111294401B (en) 2020-02-10 2020-02-10 Internet of things equipment access method and device

Country Status (1)

Country Link
CN (1) CN111294401B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885150B (en) * 2020-07-21 2022-12-23 安徽南瑞继远电网技术有限公司 Ubiquitous power Internet of things multi-protocol adaptation system and method thereof
CN112365388A (en) * 2020-10-15 2021-02-12 潍坊汇金海物联网技术有限公司 Method for realizing intelligent fire fighting based on Internet of things cloud platform
CN112422626A (en) * 2020-10-15 2021-02-26 山东汇金海智慧农业研究院有限公司 Device independence internet of things data acquisition, analysis and forwarding method based on coder and decoder
CN114830615B (en) * 2020-11-18 2024-05-10 京东方科技集团股份有限公司 Data distribution system and data distribution method
CN112866342A (en) * 2020-12-31 2021-05-28 中冶赛迪重庆信息技术有限公司 Distributed data acquisition system and method for steel industry
CN112948373B (en) * 2021-01-26 2022-05-10 浙江吉利控股集团有限公司 Data processing method, device and equipment for Internet of things equipment and storage medium
CN113132495B (en) * 2021-05-10 2023-04-18 广州汇通国信科技有限公司 Method for realizing access of private protocol equipment to Internet of things platform without integrating SDK (software development kit)
CN114745284A (en) * 2022-03-07 2022-07-12 深圳渊联技术有限公司 Configuration method and device of industrial Internet of things and computer readable storage medium
CN114978925B (en) * 2022-04-25 2024-05-03 北京物元数界科技有限公司 Object model creation method and system
CN115550463A (en) * 2022-09-16 2022-12-30 深圳市润腾智慧科技有限公司 Cross-cloud Internet of things platform data processing method and device and related equipment
CN117156649B (en) * 2023-11-01 2024-03-01 中节能晶和科技有限公司 System and method for supporting automatic expansion and contraction capacity to access different numbers of single light controls
CN117857608B (en) * 2024-03-07 2024-05-03 安徽慕京信息技术有限公司 Method and system for collecting equipment data based on Internet of things platform

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984258A (en) * 2012-11-30 2013-03-20 易程科技股份有限公司 Internet of things data transmission method and adapter
CN107294944A (en) * 2016-03-31 2017-10-24 雲大江 Architecture of special object application model of Internet of things and operation method thereof
CN109495533A (en) * 2017-09-13 2019-03-19 京东方科技集团股份有限公司 A kind of intelligent things network management system and method
CN110430219A (en) * 2019-08-24 2019-11-08 深圳旦倍科技有限公司 Method and system of the various protocols internet of things equipment from adaptation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10673959B2 (en) * 2015-03-25 2020-06-02 Intel Corporation Accessing service of Internet of Things

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984258A (en) * 2012-11-30 2013-03-20 易程科技股份有限公司 Internet of things data transmission method and adapter
CN107294944A (en) * 2016-03-31 2017-10-24 雲大江 Architecture of special object application model of Internet of things and operation method thereof
CN109495533A (en) * 2017-09-13 2019-03-19 京东方科技集团股份有限公司 A kind of intelligent things network management system and method
CN110430219A (en) * 2019-08-24 2019-11-08 深圳旦倍科技有限公司 Method and system of the various protocols internet of things equipment from adaptation

Also Published As

Publication number Publication date
CN111294401A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
CN111294401B (en) Internet of things equipment access method and device
US11997160B2 (en) Lightweight IoT information model
CN104125208B (en) Data transmission method and device
CN105429858A (en) Real-time message transmission method among multiple robots
CN109889416A (en) A kind of smart home system and construction method based on micro services framework
CN104144098A (en) Information pushing method and system and pushing server equipment
CN112422709B (en) Identification management method, terminal equipment, identification analysis secondary node and medium
CN102761864A (en) Data transmission method, system and device
CN103716908A (en) Indoor integration network system based on visible light communication and communication access method
CN108923935B (en) Narrowband Internet of things data analysis management control system, method and application
CN110096545A (en) One kind being based on big data platform data processing domain architecting method
CN114885044B (en) Self-adaptive analysis processing method for heterogeneous monitoring data packet of measurement and control equipment
CN104954462A (en) High-concurrency extensible smart home communication method and high-concurrency extensible smart home communication system
KR102045158B1 (en) Interworking method and system of between heterogeneous platforms for AMI integration services
CN101795513B (en) Wireless urban lighting monitoring technique supporting multiple channels and multiple protocols
CN116939063A (en) Active identification terminal, method and medium
US9712993B2 (en) System and method of trigger service
CN110890986A (en) ZIGBEE terminal based batch network distribution system and method
CN104683973B (en) Management method and system are automatically configured based on intelligent terminal
CN115943616B (en) Attribute subscription method, device and equipment for Zigbee equipment
Li et al. Efficient oneM2M protocol conversion platform based on NB-IoT access
CN103888535A (en) Position information processing method and system based on wechat platform
CN103856932B (en) Method and system for obtaining arrearage state of user
CN102170439A (en) Application service expansion system
CN101778355B (en) Wireless information platform and method for acquiring information

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method and device for accessing IoT devices

Effective date of registration: 20230426

Granted publication date: 20220401

Pledgee: Ji'nan rural commercial bank Limited by Share Ltd. high tech branch

Pledgor: TELCHINA WISDOM INDUSTRY GROUP Co.,Ltd.

Registration number: Y2023980039319