CN109327551B - Method and device for accessing Internet of things equipment into Internet of things platform and server - Google Patents

Method and device for accessing Internet of things equipment into Internet of things platform and server Download PDF

Info

Publication number
CN109327551B
CN109327551B CN201811473192.2A CN201811473192A CN109327551B CN 109327551 B CN109327551 B CN 109327551B CN 201811473192 A CN201811473192 A CN 201811473192A CN 109327551 B CN109327551 B CN 109327551B
Authority
CN
China
Prior art keywords
module
internet
brand
type
connection
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
CN201811473192.2A
Other languages
Chinese (zh)
Other versions
CN109327551A (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.)
Haoyun Technologies Co Ltd
Original Assignee
Haoyun Technologies 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 Haoyun Technologies Co Ltd filed Critical Haoyun Technologies Co Ltd
Priority to CN201811473192.2A priority Critical patent/CN109327551B/en
Publication of CN109327551A publication Critical patent/CN109327551A/en
Application granted granted Critical
Publication of CN109327551B publication Critical patent/CN109327551B/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
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/30Individual registration on entry or exit not involving the use of a pass
    • G07C9/38Individual registration on entry or exit not involving the use of a pass with central registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • 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
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

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)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method and a device for accessing Internet of things equipment to an Internet of things platform and a server. The Internet of things platform comprises a connection adaptation system, the connection adaptation system comprises a connection public module and a plurality of type adaptation modules respectively corresponding to different equipment types, and the method comprises the following steps: when a brand model adapting module corresponding to the target brand model does not exist in the connection adapting system, acquiring brand model configuration data based on a target configuration template, wherein the target configuration template is a configuration template matched with the type of target equipment; and establishing a brand model adapting module which is connected with the target type adapting module and corresponds to the target brand model in the connection adapting system based on the brand model configuration data, so that the Internet of things equipment can be accessed to the Internet of things platform through the connection brand model adapting module. The Internet of things platform easy to be compatible with various Internet of things devices can be realized.

Description

Method and device for accessing Internet of things equipment into Internet of things platform and server
Technical Field
The disclosure relates to the field of internet of things, and in particular relates to a method and a device for accessing internet of things equipment into an internet of things platform, and a server.
Background
Since the concept of the internet of things appears, the internet of things always presents a rapid development trend by means of the characteristic that the internet of things can be comprehensively perceived by human and digitalizes the world of physical quality. So far, the internet of things has become an important component of a new generation of information technology. The internet of things equipment has diversity, such as an entrance guard, a camera, a temperature and humidity sensor, a GPS (Global Positioning System) sensor, and the like. The internet of things equipment is various in types, the internet of things equipment of the same type is produced and manufactured by different manufacturers, and the similar equipment produced by the same manufacturer is different in type to support different functional characteristics. Based on the diversity of the internet of things equipment, the adopted connection protocol, data format and control mode are also diversified, and difficulty is brought to the realization of an internet of things platform which needs to be compatible with numerous internet of things equipment.
Disclosure of Invention
The invention provides a method, a device and a server for accessing Internet of things equipment into an Internet of things platform, and can realize the Internet of things platform which is easy to be compatible with various Internet of things equipment.
In a first aspect, the present disclosure provides a method for accessing an internet of things device to an internet of things platform, where the internet of things platform includes a connection adaptation system, the connection adaptation system includes a connection common module and a plurality of type adaptation modules respectively corresponding to different device types, and each type adaptation module is connected to the connection common module; the method comprises the following steps:
when a brand model adapting module corresponding to the target brand model does not exist in the connection adapting system, acquiring brand model configuration data based on a target configuration template, wherein the target configuration template is a configuration template matched with a target device type, the target device type is a device type of the Internet of things device, the brand model configuration data is data for creating the brand model adapting module corresponding to the target brand model, and the target brand model is the brand model of the Internet of things device;
creating a brand model adapting module which is connected with the target type adapting module and corresponds to a target brand model in the connection adapting system based on the brand model configuration data so that the Internet of things equipment can be accessed to the Internet of things platform by connecting the brand model adapting module, wherein the target type adapting module is a type adapting module corresponding to the type of the target equipment;
the connection public module is used for processing the data coming and going between the type adaptation modules in a unified mode, each type adaptation module is used for processing the data coming and going between each connected brand model adaptation module in a unified mode, and the brand model adaptation modules are used for processing the data coming and going between each connected Internet of things device in a unified mode.
In one possible implementation, the brand model configuration data includes at least one parameter item, and the method further includes:
receiving a configuration request message from the connection common module, wherein the configuration request message comprises at least one parameter item;
acquiring a parameter value of each parameter item in the at least one parameter item;
sending a parameter configuration message including each parameter value to the connection adaptation system, so that the connection public module stores each parameter value in correspondence with the device identifier of the internet of things device, so that the brand model adaptation module corresponding to the target brand model can establish connection with the internet of things device based on the stored parameter value.
In a possible implementation manner, the obtaining a parameter value of each parameter item of the at least one parameter item includes:
providing a user configuration interface including the at least one parameter item;
and acquiring the parameter value of each parameter item input by the user in the user configuration interface.
In a possible implementation manner, the creating a brand model adapting module connected to the target type adapting module and corresponding to the target brand model in the connection adapting system based on the brand model configuration data includes:
sending the brand model configuration data and the identification of the target device type to the connection adaptation system to cause the connection common module to perform the steps of:
correspondingly storing the brand model configuration data and the identifier of the type of the target equipment;
upon detecting that the brand-model configuration data does not have an associated brand-model adapter module, creating a brand-model adapter module connected to the target type adapter module and associated with the brand-model configuration data.
In one possible implementation, the method further includes:
when the brand model configuration data corresponding to any brand model is acquired, the acquired brand model configuration data and the brand model are correspondingly stored;
accordingly, the method further comprises:
receiving a report message from the connection adaptation system, wherein the report message is a message sent by the connection common module when detecting an event/state report message from any internet of things device, and the report message comprises event/state data transferred by the type adaptation module;
and transferring the event/state data in the report message according to the stored brand model configuration data to generate an event/state report.
In one possible implementation, the method further includes:
acquiring a control command for the Internet of things equipment;
and sending the control command to the connection adaptation system so that the connection public module analyzes the control command according to the equipment type of the Internet of things equipment and the brand model configuration data, and forwards the control command obtained by analysis to the Internet of things equipment through the data of the type adaptation module and the brand model adaptation module.
In a second aspect, the present disclosure further provides an apparatus for accessing an internet of things device to an internet of things platform, where the internet of things platform includes a connection adaptation system, the connection adaptation system includes a connection common module and a plurality of type adaptation modules respectively corresponding to different device types, and each type adaptation module is connected to the connection common module; the device comprises:
a first obtaining module, configured to obtain, when a brand model adapting module corresponding to the target brand model does not exist in the connection adapting system, brand model configuration data based on a target configuration template, where the target configuration template is a configuration template matched with a target device type, the target device type is a device type of the internet of things device, the brand model configuration data is data used for creating a brand model adapting module corresponding to the target brand model, and the target brand model is a brand model of the internet of things device;
the creating module is used for creating a brand model adapting module which is connected with the target type adapting module and corresponds to a target brand model in the connection adapting system based on the brand model configuration data so that the Internet of things equipment can be accessed to the Internet of things platform by connecting the brand model adapting module, and the target type adapting module is a type adapting module corresponding to the type of the target equipment;
the connection public module is used for processing the data coming and going between the type adaptation modules in a unified mode, each type adaptation module is used for processing the data coming and going between each connected brand model adaptation module in a unified mode, and the brand model adaptation modules are used for processing the data coming and going between each connected Internet of things device in a unified mode.
In one possible implementation manner, the brand model configuration data includes at least one parameter item therein, and the apparatus further includes:
a first receiving module, configured to receive a configuration request message from the connection common module, where the configuration request message includes at least one parameter item;
the second acquisition module is used for acquiring the parameter value of each parameter item in the at least one parameter item;
the first sending module is used for sending a parameter configuration message including each parameter value to the connection adaptation system so as to enable the connection public module to correspondingly store each parameter value and the equipment identifier of the Internet of things equipment, so that the brand model adaptation module corresponding to the target brand model can establish connection with the Internet of things equipment based on the stored parameter value.
In one possible implementation manner, the second obtaining module includes:
a user configuration interface sub-module for providing a user configuration interface including the at least one parameter item;
and the configuration data interaction sub-module is used for acquiring the parameter value of each parameter item input by the user in the user configuration interface.
In one possible implementation, the creating module is further configured to send the brand model configuration data and the identification of the target device type to the connection adaptation system, so that the connection common module performs the following steps:
correspondingly storing the brand model configuration data and the identifier of the type of the target equipment;
upon detecting that the brand-model configuration data does not have an associated brand-model adaptor module, creating a brand-model adaptor module connected to the target type adaptor module and associated with the brand-model configuration data.
In one possible implementation, the apparatus further includes:
the storage module is used for correspondingly storing the acquired brand model configuration data and the brand model when the brand model configuration data corresponding to any brand model is acquired;
a second receiving module, configured to receive a report message from the connection adaptation system, where the report message is a message sent by the connection common module when detecting an event/state report message from any internet of things device, and the report message includes event/state data transferred by the type adaptation module;
and the processing module is used for performing escape on the event/state data in the report message according to the stored brand model configuration data so as to generate an event/state report.
In one possible implementation, the apparatus further includes:
the third acquisition module is used for acquiring a control command for the Internet of things equipment;
and the second sending module is used for sending the control command to the connection adaptation system so that the connection public module analyzes the control command according to the equipment type of the Internet of things equipment and the brand model configuration data, and forwards the control command obtained by analysis to the Internet of things equipment through the data of the type adaptation module and the brand model adaptation module.
In a third aspect, the present disclosure also provides a server, including:
one connecting the common modules;
at least one type adapting module, wherein each type adapting module corresponds to different equipment types, and is connected with the connection public module;
the type adapting modules correspond to different brand types respectively, and each brand type adapting module is connected with one type adapting module;
the connection public module is used for processing the data coming and going between the type adaptation modules in a unified mode, each type adaptation module is used for processing the data coming and going between each connected brand model adaptation module in a unified mode, and each brand model adaptation module is used for processing the data coming and going between each connected Internet of things device in a unified mode.
According to the technical scheme, the brand model adapting module, the type adapting module and the connection public module in the system can respectively realize the connection between the Internet of things equipment and the Internet of things platform on different levels, each type adapting module can uniformly process data from different sources based on the common functional characteristics of the Internet of things equipment with the same type and different models (such as temperature and humidity sensors which need to report temperature and humidity, door control which needs to issue a switch control instruction, alarm equipment which needs to monitor an alarm event and the like), and the connection public module provides common basic functions (such as message transceiving, control instruction issuing, event reporting and the like) for different types of Internet of things equipment, and the brand model adapting module is specially responsible for processing the data of the Internet of things equipment of a single brand model according to the functional characteristics of each brand model. Thus, connections between the internet of things devices and the internet of things platform can be decoupled hierarchically, and the "configuration data" associated with the device characteristics is separated from the "common methods" associated with device commonality. Therefore, in the process of connecting an Internet of things device with a new brand model to the Internet of things platform, a developer does not need to repeatedly develop a connection public module and a type adaptation module, and only needs to write brand model configuration data on the basis of a target configuration template corresponding to the type of the target device, so that the development of the corresponding brand model adaptation module can be completed, the difficulty of connection adaptation development of the Internet of things device can be greatly reduced, and the Internet of things platform is easy to be compatible with various Internet of things devices. Therefore, the difficulty that the Internet of things platform is connected with a large number of heterogeneous devices can be solved, and the easy expandability and better user experience of device connection are realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings used in the description of the embodiments will be briefly introduced below, and obviously, the drawings in the following description are only some embodiments of the present disclosure, and reasonable modifications of the drawings are also covered in the protection scope of the present disclosure.
Fig. 1 is an architecture diagram of an internet of things platform provided by an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating steps of a method for accessing an internet of things device to an internet of things platform according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating steps of a method for accessing an internet of things device to an internet of things platform according to another embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a user configuration interface provided by one embodiment of the present disclosure;
fig. 5 is an architecture diagram of an internet of things platform provided by an embodiment of the present disclosure;
fig. 6 is a schematic diagram illustrating a server deployment manner of an internet of things platform according to an embodiment of the present disclosure;
fig. 7 is a block diagram of a structure of an apparatus for accessing an internet of things device to an internet of things platform according to an embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. It is to be understood that the described embodiments are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the disclosure without any inventive step, are within the scope of protection of the disclosure. Unless otherwise defined, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this disclosure belongs. The use of "first," "second," and similar terms in this disclosure is not intended to indicate any order, quantity, or importance, but rather is used to distinguish one element from another. The word "comprising" or similar words means that the element or item preceding the word covers the element or item listed after the word and its equivalents, without excluding other elements or items.
It can be noted that, in order to make the internet of things platform compatible with the produced equipment, a supplier of the internet of things equipment needs to develop a connection interface of the equipment on the internet of things platform to enable the internet of things equipment accessing the network to be connected with the internet of things platform through the connection interface. In the related art, operators of internet of things platforms of different brands provide equipment connection functions for equipment suppliers, and the method mainly includes two ways:
1) the standard connection mode is as follows: each Internet of things platform provides a standard equipment connection interface, and the Internet of things equipment is required to be designed and produced according to the standard interfaces. The method cannot adapt to the connection of the produced diversified internet of things equipment, and is particularly difficult for different suppliers to design and produce according to the standard interface mode defined by each internet of things platform in the future.
2) Adapting development connection mode: the internet of things platform provides basic equipment connection interfaces, the internet of things equipment has various interfaces, developers need to program connection adaptations of the interfaces between the internet of things equipment and the internet of things platform one by one aiming at the various internet of things equipment, and then the internet of things equipment is connected to the internet of things platform. The method can greatly increase the development difficulty of connection adaptation, and if the number of the equipment models is n, the development complexity is O (n); in addition, each internet of things device needs to be developed by a developer, and for mass users who cannot be programmed, the threshold is high, so that the experience of the connected users is poor.
The embodiment of the disclosure provides a mode that an internet of things platform provides equipment connection function for internet of things equipment, and compared with the two modes, the mode can support connection of diversified internet of things equipment, and can help reduce the difficulty of connection adaptation development of the internet of things equipment, help solve the difficulty of quickly connecting a large number of heterogeneous equipment by the internet of things platform, and realize easy expandability and better user experience of equipment connection.
Fig. 1 is an architecture diagram of an internet of things platform according to an embodiment of the present disclosure. Referring to fig. 1, the internet of things platform 100 includes a connection adaptation system 110 and an application service system 120, where the connection adaptation system 110 is mainly responsible for adapting the connection between an external internet of things device 200 and the application service system 120 and the internet of things device 200. It should be understood that the internet of things platform 100 may include a plurality of application service systems 120 respectively having different application functions, and one application service system 120 is shown in fig. 1 as an illustration. The connection adaptation system 110 comprises a connection common module 111, at least one type adaptation module 112 and at least one brand model adaptation module 113, wherein: each of the type adapting modules 112 corresponds to a different device type and is connected to the connection common module 111, and each of the brand model adapting modules 113 corresponds to a different brand model and is connected to a corresponding type adapting module 112 (each of the internet of things devices 200 has a device type, and thus its brand model corresponds to its device type). In terms of module functions, the connection common module 111 is configured to uniformly process data from and to each type adaptation module 112, each type adaptation module 112 is configured to uniformly process data from and to each connected brand model adaptation module 113, and each brand model adaptation module 113 is configured to uniformly process data from and to each connected internet of things device 200.
It should be noted that the brand model adapter module 113, the type adapter module 112, and the connection common module 111 can respectively implement connection between the internet of things device 200 and the internet of things platform 100 on different levels.
Each type adaptation module 112 corresponds to a device type of an internet of things device, and the device type may be, for example, a temperature and humidity sensor, a GPS (Global Positioning System) sensor, an optical sensor, a surveillance camera, a proximity sensor, an access control device, an alarm device, an air conditioner, a television, a refrigerator, a washing machine, a humidifier, an air purifier, an electric cooker, or the like, and may not be limited thereto. The brand-model adapter modules 113 in the sub-set of each type adapter module 112 each correspond to a brand and model combination under the device type. It should be understood that, because each connection of each device type has a common functional characteristic (for example, temperature and humidity sensors need to report temperature and humidity, access control devices need to issue switch control instructions, alarm devices need to monitor alarm events, and the like), each type adaptation module 112 may use a common method flow to uniformly process data coming from and going to the brand model adaptation module 113, each brand model adaptation module 113 connected to each type adaptation module 112 may individually process data coming from and going to the internet of things devices 200 of the same type and different brands, so that the data provided by the brand model adaptation module 113 to the type adaptation module 112 may be suitable for the common method flow, and data such as instructions obtained by the type adaptation module 112 after being processed by the common method flow may also be used for different types of data through processing by different brand model adaptation modules 113 The internet of things device 200.
In one example, there are A, B, C brand model adaptor modules 113 of three different brand models in the subordinate set of type adaptor modules 112 corresponding to device types being light sensors, where each brand model adaptor module 113 has a respective connection relationship with one light sensor device. In the working process, the three different brand and model adapting modules 113 establish connection relations with the A, B, C three types of optical sensor devices according to communication protocols and communication addresses based on the optical sensor devices, and receive optical sensing data according to different optical sensing data receiving modes (for example, regular active acquisition, passive reception, and a combination of the two modes). Moreover, for the situation that the received light sensation data has different data formats and numerical units, the three different brand model adapting modules 113 respectively encapsulate the received light sensation data into light sensation data reporting messages with the same data structure, where the light sensation data reporting messages include "a device ID with a type of character string and a length of 64 bytes" and "an acquisition timestamp with a type of date and time and a length of 8 bytes", and also include "a numerical unit ID with a type of character string and a length of 1 byte", "a character string with a type of 1 byte", and "a numerical format ID with a length of 1 byte" and "a light sensation data numerical value with a type of integer and a length of 64 bytes". Thus, the three different brand model adapting modules 113 can process the difference in connection adapting manner between the A, B, C three types of optical sensor devices, so that the type adapting module 112 corresponding to the optical sensor device type can report the optical sensing data reporting message according to the same method flow.
In one example, the connection common module 111 connected to each type adaptation module 112 may provide basic functions (e.g., message queue, message processing, event discovery, status discovery, device discovery, control instruction issue, data storage, etc.) on which the internet of things devices 200 of each device type are commonly based during connection to provide a functional interface capable of adapting to all application service systems 120.
In an example, when receiving the light sensing data report messages from three different brand model adaptation modules 113, the type adaptation module 112 corresponding to the light sensor device of the device type may search A, B, C, according to the device ID, the user ID associated with the three light sensor devices, and the communication protocol and the communication address used by the receiver of the light sensing data report message, so that the type adaptation module 112 may add the user ID, the communication protocol identifier, and the communication address to the heads of the three light sensing data report messages, and add the light sensing data report message to the message queue according to the standard corresponding to the connection common module 111, so that the connection common module 111 sends the message according to the message receiver specified in each light sensing data report message in the message queue. In addition, the type adapting module 112 may also perform unified numerical unit and numerical format conversion on the light sensing data numerical value according to the numerical unit ID and the numerical format ID therein before adding the light sensing data report message into the message queue, and modify the content of the corresponding portion of the original light sensing data report message according to the conversion result, so as to save communication resources. In this way, the type adaptation module 112 corresponding to the device type being the optical sensor can process the difference in connection adaptation manner between the optical sensor device and the internet of things devices of other device types, so that the connection common module 111 can implement reporting of different types of messages through a common basic function.
It should be understood that, for any device type other than the optical sensor, the common processing logic between different brands and models thereof can be extracted and configured according to the basic function provided by the connection common module 111, so as to implement the type adapting module 112 corresponding to the device type based on the common processing logic and implement the corresponding brand model adapting module 113 based on the specific content on the common processing logic in different brands and models. In addition, with the update of the internet of things device under each device type, the corresponding connection adaptation function in the corresponding hierarchy may be added/reduced in at least one of the brand model adaptation module 113, the type adaptation module 112, and the connection common module 111 to adapt to the actual application requirements.
As can be seen, based on the above-mentioned architecture of the connection adaptation system 110, the embodiments of the present disclosure may decouple the connection process between the internet of things device 200 and the internet of things platform 100 in a hierarchical manner. Thus, for the development work of the connection adaptation system 110, a developer does not need to repeatedly develop the connection common module 111 and the type adaptation module 112, but can develop the brand model adaptation module 113 for the functional characteristics of the internet of things device 200 of a certain brand model by using the connection common module 111 and the type adaptation module 112 pre-developed on the internet of things platform 100, or directly realize the connection adaptation of the used internet of things device 200 by using the existing brand model adaptation module 113, or even flexibly adjust and expand the connection adaptation by changing the function of at least one of the brand model adaptation module 113, the type adaptation module 112 and the connection common module 111 in the internet of things platform 100. Compared with the two modes in the related technology, a developer can save development related to public processing logic in connection adaptation, and can adapt the produced and to-be-produced Internet of things equipment 200 in an on-line matching line mode, so that connection of diverse Internet of things equipment 200 can be supported, difficulty in connection adaptation development of the Internet of things equipment 200 can be reduced, difficulty in fast connection of a large number of heterogeneous equipment by the Internet of things platform 100 is solved, and easiness in expansion of equipment connection and better user experience are realized.
As an example of a process of adding a new brand model adaptation module 113, fig. 2 is a flowchart of steps of a method for accessing an internet of things platform by using an internet of things device according to an embodiment of the present disclosure, and an execution subject of the method may be, for example, the application service system 120 shown in fig. 1. Referring to fig. 2, in the method:
in step 101, when there is no brand model adapting module 113 corresponding to the target brand model in the connection adapting system 110, brand model configuration data based on the target configuration template is acquired.
The target configuration template is a configuration template matched with a target device type, the target device type is a device type of the internet of things device 200 to be connected to the internet of things platform 100, the brand model configuration data is data for creating a brand model adapting module corresponding to a target brand model, and the target brand model is a brand model of the internet of things device 200. It should be understood that the brand model corresponding to the brand model adapting module 113 to be added is the brand model of the internet of things device 200 to be connected to the internet of things platform 100 (hereinafter referred to as the target brand model). In one example, a corresponding configuration template may be stored on the internet of things platform 100 for each device type, where the configuration template may include optional definitions, forms, fields, parameters, attributes, and the like, and may give an instance for a typical device under a target device type. In yet another example, the target configuration template may be brand model configuration data of any one of the existing brand model adaptation modules 113 in the subordinate set of type adaptation modules 112 corresponding to the target device type. On the basis of the target configuration template, a developer can perform at least one of changing, adding and deleting on the configuration template according to the difference between the internet of things device 200 to be connected and other devices with different brands and models in the same device type, so as to obtain the required brand and model configuration data. It should be understood that the target configuration template may include at least one of definitions, forms, fields, parameters, and attributes that are commonly used for different brand models of the same device type, and the brand model configuration data may be stored in the same form as the target configuration template, so that the brand model configuration data is based on the target configuration template. In one example, the configuration templates and brand model configuration data are both stored in the connection adaptation system 110 in the form of files, which may be, for example, XLS, XML, TXT, JSON, XLSX, and the like.
In step 102, a brand model adapting module 113 connected with the target type adapting module and corresponding to the target brand is created in the connection adapting system based on the brand model configuration data, so that the internet of things device 200 can access the internet of things platform 100 through the connection brand model adapting module 113.
Wherein the target type adaptation module is a type adaptation module 112 corresponding to the target device type. In one example, this step comprises sending the brand model configuration data and the identification of the target device type to the connection adaptation system 110 to cause the connection common module 111 to perform the steps of: correspondingly storing the brand model configuration data and the identifier of the type of the target equipment; upon detecting the addition of the brand-model configuration data, a brand-model adaptation module 113 associated with the brand-model configuration data is created in the subordinate set of type adaptation modules 112 corresponding to the target device type. In one example, a storage space for storing brand and model configuration data is allocated to each type adaptation module 112, the connection common module 111 listens to each storage space through an observation mechanism, when it detects that there is newly added brand and model configuration data, a brand and model adaptation module 113 is newly built in a subordinate set of the type adaptation modules 112, each brand and model adaptation module 113 is associated with a piece of brand and model configuration data in the storage space, and the brand and model adaptation module 113 performs corresponding operations according to the configuration of the associated brand and model configuration data during operation.
Taking the optical sensor device as an example, when creating the brand model adapting module 113 corresponding to one optical sensor device, the application service system 120 interacts with a developer based on a provided user interface to obtain the brand model configuration data based on the target configuration template. As an example, the brand model configuration data may be brand model configuration data added with configuration items related to status reporting on the basis of a configuration template of a typical light sensor. After the application service system 120 sends the brand-model configuration data and the identifier of the target device type to the connection common module 111, the connection common module 111 first stores the received brand-model configuration data in a storage space corresponding to the identifier of the target device type based on the message queue function in cooperation with the message processing function, then copies an existing brand-model adaptation module 113 in the subordinate set when detecting new brand-model configuration data based on the device discovery function, and then associates the copied brand-model adaptation module 113 with the new brand-model configuration data. In an example, the brand-model configuration data associated with the existing brand-model adapting module 113 does not include any field related to a status reporting function, two parameter items "event" and "event mode" are defined in the newly added brand-model configuration data, a parameter value of the parameter item "event" is defined as 0 and 1, which respectively represent off and on status reporting, and a parameter value of the parameter item "event mode" is defined as 0, 1 and 2, which respectively represent three different reporting modes of reporting at power-on, reporting periodically and reporting passively. Therefore, in the working process, after the user configures parameter values for the parameter items "event table 1" and "event model 2", when the newly created brand model adapter module 113 receives a status report message with a status report identifier, according to a preset status report flow, the status ID and the status mapping value are transferred to the status report interface of the connection common module 111 via the data of the type adapter module 112, so that the connection common module 111 updates the type of the corresponding status of the optical sensor device displayed in the device monitoring interface according to the status ID and the status mapping value (the displayed status is updated along with the report, that is, passively reported). That is, compared to the existing brand model adapter module 113, the newly created brand model adapter module 113 can provide connection matching for the status reporting function of the optical sensor device.
As can be seen, based on the above-mentioned architecture of the connection adaptation system 110 and the connection process of the internet of things device 200, the embodiments of the present disclosure may hierarchically decouple the connection process between the internet of things device 200 and the internet of things platform 100, and separate "configuration data" associated with device characteristics from "common methods" associated with device commonality. Thus, in the process of connecting an internet of things device 200 with a new brand model to the internet of things platform 100, a developer does not need to repeatedly develop the connection common module 111 and the type adapting module 112, and only needs to write brand model configuration data on the basis of a target configuration template corresponding to the type of the target device, so that the development of the corresponding brand model adapting module 113 can be completed, the difficulty in connection adapting development of the internet of things device 200 can be greatly reduced, the difficulty in quickly connecting a large number of heterogeneous devices to the internet of things platform 100 is helped to be solved, and the easy expandability of device connection and better user experience are realized.
It should be understood that after the new brand model adapting module 113 is created, the internet of things device 200 to be connected to the internet of things platform 100 needs to perform necessary parameter configuration on the internet of things platform 100 corresponding to the brand model adapting module 113, so as to complete connection adaptation between the internet of things device 200 and the internet of things platform 100. For example, the parameter items of the communication protocol and the communication address are specified in the brand model configuration data, and the internet of things platform 100 still does not know how to communicate with the internet of things device 200 before the parameter items are assigned. Therefore, the parameter configuration of the parameter items needs to be performed in the internet of things platform 100 corresponding to the internet of things device 200, so that the internet of things platform 100 and the internet of things device 200 can establish communication connection.
Fig. 3 is a flowchart of steps of a method for accessing an internet of things device to an internet of things platform according to an embodiment of the present disclosure, and an execution subject of the method may be, for example, the application service system 120 shown in fig. 1. Referring to fig. 3, in the method:
in step 103, a configuration request message is received from the connected common module 111.
Wherein the configuration request message includes at least one parameter item. In an example, when receiving an equipment identifier addition request for a certain brand, the connection common module 111 finds out brand configuration data corresponding to the brand in the storage space, extracts parameter items that need parameter configuration in the brand configuration data, and packages the parameter items together with the number of parameter items that need parameter configuration (or may further include a default value of each parameter item specified in the brand configuration data) as a configuration request message to be sent to the application service system 120. As an example, the configuration request message for a certain access control device may include: { "number of parameter items", "4" }, { ("device protocol", null), ("device IP", null), ("door open instruction", null), ("door close instruction", null) }. It should be noted that the "device id" represents only a single internet of things device 200, that is, different internet of things devices 200 of the same brand model are differentiated by different "device ids" in the internet of things platform 100. Considering that each brand model adapting module 113 may face a situation that a plurality of internet of things devices 200 of the same brand model need to be connected at the same time, a device identifier set needs to be maintained corresponding to each brand model adapting module 113, so that the brand model adapting module 113 can respectively provide connection adaptation for the internet of things devices 200 of each device identifier. In one example, a globally unique device ID is assigned to each device identifier, and stored data unique to each device identifier may be stored in correspondence with the device ID, for example, parameters such as a device IP of each device identifier.
In step 104, a parameter value of each of the at least one parameter item is obtained.
In one example, the application service system 120 provides a user configuration interface to the user, such as shown in FIG. 4: the user configuration interface comprises a display field and an input control which correspond to each parameter item respectively, a drop-down box used for inputting the equipment protocol is arranged beside the display field 'equipment protocol', an editable box used for inputting the equipment IP address is arranged beside the display field 'equipment IP', an editable box used for inputting the equipment protocol is arranged beside the display field 'door opening instruction', an editable box used for inputting the equipment protocol is arranged beside the display field 'door closing instruction', and a confirmation button and a cancel button are arranged below the user configuration interface. Through the user configuration interface, the application service system 120 may obtain the parameter value of each parameter item through interaction with the user.
In step 105, a parameter configuration message including each of the parameter values is sent to the connection adaptation system 110, so that the connection common module 111 stores each of the parameter values in correspondence with the device identifier of the internet of things device 200, so that the brand model adaptation module corresponding to the target brand model can establish a connection with the internet of things device based on the stored parameter values.
As an example, the device identification of the internet of things device 200 may be included in a set of device identifications of the brand model adaptation module 113 corresponding to the target brand model. In one example, the parameter configuration message may include { ("device protocol", TCP), ("device IP", 120.1.1.2), ("door open command", 1), ("door close command", 0) }. After completing the parameter configuration message based on the message queue and the message processing, the connecting public module 111 may create a parameter profile corresponding to the access control device in a storage space of the corresponding brand model adapter module 113, where the parameter profile includes an identifier of the access control device, and the parameter profile is associated with the brand model adapter module 113. Based on this, the brand model adapter module 113 may establish a connection with the access control device based on "TCP" and "120.1.1.2", and may control opening and closing of the access control device based on a control command from the application server 120 according to the instruction identification "1" or "0" received from the access control device. It should be understood that, in one example, a parameter profile corresponding to the brand model adaptation module 113 may be stored in the database, and all parameter values of each configuration item in the corresponding device identification set may be recorded in each reference profile; in another example, the storage space of the brand-model adapter module 113 may store parameter profiles of a plurality of entrance guard devices at the same time, that is, the configuration items represented by each parameter profile are included in the device identification set of the brand-model adapter module 113. Based on these parameter profiles, the brand model adaptation module 113 may handle the connection with the internet of things device 200 represented by these device identifications.
It should be understood that, in the process of connecting any one internet of things device 200 to the internet of things platform 100, the developer may complete the creation of the brand model adaptation module 113 according to the process from step 101 to step 102 when the corresponding brand model adaptation module 113 does not exist, and complete the configuration of the relevant parameters of the corresponding device identifier according to the process from step 103 to step 105 when the corresponding brand model adaptation module 113 exists, thereby completing the connection between the internet of things device 200 and the internet of things platform 100. It can be seen that, in the embodiment of the present disclosure, the workload that a developer needs to pay for connecting to the internet of things device 200 is greatly reduced, and even the connection of the internet of things device 200 is only needed to be realized through parameter configuration under the existing brand model adapting module 113, that is, a device connection mode capable of being configured and used immediately is realized.
Fig. 5 is an architecture diagram of an internet of things platform according to an embodiment of the present disclosure. Referring to fig. 5, the internet of things platform 100 includes a connection adaptation system 110, and a parameter configuration system 130, an event/status monitoring system 140, and a device control system 150, all of which belong to one kind of application service systems 120. Based on the structure shown in fig. 1, the connection adaptation system 110 includes a connection common module 111 including a message queue sub-module 111A, a message processing sub-module 111B, an apparatus discovery sub-module 111C, a state discovery sub-module 111D, an event discovery sub-module 111E, a control instruction issuing sub-module 111F, and a configuration data storage sub-module 111G, and is respectively responsible for implementing the functions of message queue, message processing, apparatus discovery, state discovery, event discovery, control instruction issuing, and configuration data storage of the connection common module 111.
Corresponding to the parameter configuration process described in the above step 103 to step 105, the parameter configuration system 130 may include a user configuration interface, a configuration data interaction module, and a configuration data cache, so as to implement the functions of the application service system 120 in the parameter configuration process described in the above step 103 to step 105.
In one example implementation of the event/state discovery function, the method may include: when the brand model configuration data corresponding to any brand model is acquired, the acquired brand model configuration data and the brand model are correspondingly stored; correspondingly, after the internet of things device 200 is connected to the internet of things platform 100, the connection method of the internet of things device 200 further includes:
receiving a report message from the connection adaptation system 110, where the report message is a message sent by the connection common module 111 when detecting an event/state report message from any internet of things device, and the report message includes event/state data transferred by the type adaptation module;
and transferring the event/state data in the report message according to the stored brand model configuration data to generate an event/state report.
As an example, the application service system 120 may maintain a database of brand configuration data, where the brand configuration data is stored according to corresponding brands. When the connected common module 111 detects event reporting (for example, an event that the access control device reports a password error for 2 consecutive times) and/or state reporting (for example, a camera reports a current shot picture or adaptation), the state discovery submodule 111D and/or the event discovery submodule 111E in the connected common module 111 packages event/state data representing the reported content into a state reporting message and/or an event reporting message, and respectively sends the state reporting message and/or the event reporting message to the state processing module and/or the event processing module in the event/state monitoring system 140 through the message queue submodule 111A and the message processing submodule 111B. Thus, based on the brand and model configuration data maintained in the application service system 120, the STATUS processing module/event processing module may perform an escape on the event/STATUS data, such as an escape of the event/STATUS data of "STATUS _ ALM _ SERVER _ ONLINE ═ 1" to "SERVER currently ONLINE", or an escape of the event identification "2007" to "host alarm" event, generate an event/STATUS report, and output to the user through the provided device monitoring interface. In yet another example, the brand-model configuration data may not be stored in the application service system 120, and each time the state processing module/event processing module needs to escape the event/state data, the event/state data may be escaped after receiving the brand-model configuration data from the connection adaptation system 110 by sending a message requesting the corresponding brand-model configuration data to the connection adaptation system 110. In yet another example, the connecting common module 111 may transmit the report message together with the corresponding brand model configuration data, so that the state processing module/event processing module may escape the event/state data in the received report message directly based on the received brand model configuration data.
In an implementation example of the control instruction issuing function, after the internet of things device 200 is connected to the internet of things platform 100, the connection method of the internet of things device 200 further includes:
acquiring a control command for the internet of things device 200;
sending the control command to the connection adaptation system 110, so that the connection common module 111 analyzes the control command according to the device type and the brand configuration data of the internet of things device 200, and forwards the analyzed control command to the internet of things device through the data of the type adaptation module 112 and the brand type adaptation module.
As an example, the device control system 150 may use a control command form with the connection common module 111, which includes several sets of control command fields and the meaning specifications that they represent. Based on this, the device control system 150 may enumerate the control commands available to a particular internet of things device in the device control interface provided to the user, and may find the same control command field to send to the connecting common module 111 through the control data processing module when the user chooses to execute a certain control command. After receiving the control command field, the control instruction issuing sub-module 111F connected to the common module 111 may analyze the device type of the execution object specified by the control command field, for example, "output channel OPEN" represented by "ALM _ output _ OPEN," and belongs to the control command of the access control device (in addition, the device type corresponding to the control command may also be determined directly through interaction with the user). Therefore, the control instruction issuing sub-module 111F may send the control command field to the type adapting module 112 corresponding to the access control device, so that the type adapting module 112 processes the control command field to determine which brands of the internet of things devices 200 are included in the internet of things devices 200 targeted by the control command. For example, all the access control devices that need to be opened may be found based on the correspondence table between the identifier of the target output channel and the identifier of the access control device, so as to send the identifier of the target access control device and the "door opening instruction" represented by "OPEN" (which is a result of parsing the control command field "ALM _ output _ OPEN") to the brand model adapter module 113 to which the access control devices belong. Therefore, the brand model adapter module 113 receiving the identifier of the target access control device and the "door opening instruction" may send a door opening control instruction to the corresponding access control device according to the configured parameter values, for example, for the access control device whose door opening instruction is set to "1", the corresponding control signal may be sent to the access control device accordingly, so as to control the access control device to open the door. In another example, all the access control devices that need to be opened are found according to the control command field, and the process of obtaining the "door opening instruction" represented by "OPEN" can be completed by the control instruction issuing sub-module 111F, and at this time, the type adapting module 112 and the brand model adapting module 113 transfer the control instruction, which can help to simplify the processing flow.
Fig. 6 is a schematic diagram of a server deployment manner of an internet of things platform according to an embodiment of the present disclosure. As shown in fig. 6, the internet of things platform 100 in the embodiment of the present disclosure is composed of a connection public server, a configuration data storage server, a type adaptation server, a brand model adaptation server, a user configuration interface server, a configuration interaction server, a configuration data cache server, an equipment monitoring interface server, a state processing server, an event processing server, an equipment control interface server, and a control data processing server, where: and connecting submodules such as a message queue, message processing, equipment discovery, state discovery, event discovery, control instruction issuing and the like arranged on the public server, wherein the submodules can be developed in a micro-service mode and are loaded in a container mode. The configuration data storage submodule is deployed on the configuration data storage server to realize persistent storage of the configuration data, and the data storage engine can adopt MySQL, PostgreSQL, Oracle and the like. The type adaptation server is provided with a type adaptation module, provides a transfer service of configuration/state/event/control data between the brand model adaptation module and the connection public module, and supports the cluster deployment of a plurality of type adaptation modules. The brand model adapting server is provided with a brand model adapting module, configuration/state/event/control data transfer service is provided between the brand model adapting module and the equipment, and the brand model adapting server supports the cluster deployment of a plurality of brand model adapting modules. The user configuration interface server is used for deploying a user configuration interface, providing a visual configuration operation interface for the connection of the Internet of things equipment, and the configuration interface can be presented as a non-editable box, an editable box, a drop-down box, a radio box, a check box, a button and the like. The configuration interaction server deploys a configuration data interaction module to realize data interaction between the user configuration interface and the connection public module. The configuration data cache server deploys a configuration data cache module to realize cache storage of configuration data, and a cache storage engine can adopt Redis, SQLite and the like. The equipment monitoring interface server deploys an equipment monitoring interface, provides a visual monitoring interface for monitoring the equipment of the Internet of things, and the monitoring interface can be presented as a table, a graph and the like. And the state processing server is provided with a state processing module to realize data interaction between the equipment monitoring interface and the connection public module. And the event processing server deploys an event processing module to realize data interaction between the equipment monitoring interface and the connection public module. The equipment control interface server deploys an equipment control interface to provide a visual control interface for the control of the equipment of the Internet of things, and the control interface can be in the forms of buttons, drop-down boxes, radio boxes, check boxes, edit boxes and the like. The control data processing server deploys a control data processing module to realize data interaction between the equipment control interface and the connection public module.
For example, in the hardware implementation manner of the embodiment of the present disclosure, different servers may respectively implement respective module functions according to the division of the module functions, or the module functions may be combined within a possible range so that a single server implements multiple functions. It should be noted that the server described in the embodiment of the present disclosure may be a single server device, a virtual server, a cloud server, or a server cluster, and the like, and may not be limited thereto.
Fig. 7 is a block diagram of a structure of an apparatus for accessing an internet of things device to an internet of things platform according to an embodiment of the present disclosure. The Internet of things platform comprises a connection adaptation system, wherein the connection adaptation system comprises a connection public module and a plurality of type adaptation modules which respectively correspond to different equipment types, and each type adaptation module is connected with the connection public module. Referring to fig. 7, the apparatus includes:
a first obtaining module 31, configured to obtain, when a brand-model adapting module corresponding to the target brand-model does not exist in the connection adapting system, brand-model configuration data based on a target configuration template, where the target configuration template is a configuration template matched with a target device type, the target device type is a device type of the internet of things device, the brand-model configuration data is data used for creating a brand-model adapting module corresponding to the target brand-model, and the target brand-model is a brand-model of the internet of things device;
a creating module 32, configured to create, in the connection adaptation system, a brand model adaptation module connected to the target type adaptation module and corresponding to a target brand model based on the brand model configuration data, so that the internet of things device can access the internet of things platform by connecting the brand model adaptation module, where the target type adaptation module is a type adaptation module corresponding to a type of the target device;
the connection public module is used for processing the data coming and going between the type adaptation modules in a unified mode, each type adaptation module is used for processing the data coming and going between each connected brand model adaptation module in a unified mode, and the brand model adaptation modules are used for processing the data coming and going between each connected Internet of things device in a unified mode.
In one possible implementation manner, the brand model configuration data includes at least one parameter item therein, and the apparatus further includes:
a first receiving module, configured to receive a configuration request message from the connection common module, where the configuration request message includes at least one parameter item;
the second acquisition module is used for acquiring the parameter value of each parameter item in the at least one parameter item;
the first sending module is used for sending a parameter configuration message including each parameter value to the connection adaptation system so as to enable the connection public module to correspondingly store each parameter value and the equipment identifier of the Internet of things equipment, so that the brand model adaptation module corresponding to the target brand model can establish connection with the Internet of things equipment based on the stored parameter value.
In one possible implementation manner, the second obtaining module includes:
a user configuration interface sub-module for providing a user configuration interface including the at least one parameter item;
and the configuration data interaction sub-module is used for acquiring the parameter value of each parameter item input by the user in the user configuration interface.
In one possible implementation, the creating module is further configured to send the brand model configuration data and the identification of the target device type to the connection adaptation system, so that the connection common module performs the following steps:
correspondingly storing the brand model configuration data and the identifier of the type of the target equipment;
upon detecting that the brand-model configuration data does not have an associated brand-model adaptor module, creating a brand-model adaptor module connected to the target type adaptor module and associated with the brand-model configuration data.
In one possible implementation, the apparatus further includes:
the storage module is used for correspondingly storing the acquired brand model configuration data and the brand model when the brand model configuration data corresponding to any brand model is acquired;
a second receiving module, configured to receive a report message from the connection adaptation system, where the report message is a message sent by the connection common module when detecting an event/state report message from any internet of things device, and the report message includes event/state data transferred by the type adaptation module;
and the processing module is used for performing escape on the event/state data in the report message according to the stored brand model configuration data so as to generate an event/state report.
In one possible implementation, the apparatus further includes:
the third acquisition module is used for acquiring a control command for the Internet of things equipment;
and the second sending module is used for sending the control command to the connection adaptation system so that the connection public module analyzes the control command according to the equipment type of the Internet of things equipment and the brand model configuration data, and forwards the control command obtained by analysis to the Internet of things equipment through the data of the type adaptation module and the brand model adaptation module.
The specific manner in which each module performs operations has been described in detail in the embodiments of the method, and therefore, the details will not be repeated here.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, apparatus (device), or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein. A computer program stored/distributed on a suitable medium supplied together with or as part of other hardware, may also take other distributed forms, such as via the internet or other wired or wireless telecommunication systems.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that, for the sake of clarity, only the structures for explaining the technical solutions are shown in the drawings of the present disclosure; in actual products, addition, deletion or modification can be carried out on the basis of the drawings of the disclosure within the possible range without influencing the implementation of the technical scheme. The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (13)

1. A method for accessing Internet of things equipment to an Internet of things platform is characterized in that the Internet of things platform comprises a connection adaptation system, the connection adaptation system comprises a connection common module and a plurality of type adaptation modules respectively corresponding to different equipment types, and each type adaptation module is connected with the connection common module; the method comprises the following steps:
when a brand model adapting module corresponding to a target brand model does not exist in the connection adapting system, acquiring brand model configuration data based on a target configuration template, wherein the target configuration template is a configuration template matched with a target device type, the target device type is a device type of the Internet of things device, the brand model configuration data is data for creating the brand model adapting module corresponding to the target brand model, and the target brand model is the brand model of the Internet of things device;
creating a brand model adapting module which is connected with a target type adapting module and corresponds to a target brand model in the connection adapting system based on the brand model configuration data so that the Internet of things equipment can be accessed to the Internet of things platform by connecting the brand model adapting module, wherein the target type adapting module is a type adapting module corresponding to the type of the target equipment;
the connection public module is used for processing the data coming and going between the type adaptation modules in a unified mode, each type adaptation module is used for processing the data coming and going between each connected brand model adaptation module in a unified mode, and the brand model adaptation modules are used for processing the data coming and going between each connected Internet of things device in a unified mode.
2. The method of claim 1, wherein the brand model configuration data includes at least one parameter item therein, the method further comprising:
receiving a configuration request message from the connection common module, wherein the configuration request message comprises at least one parameter item;
acquiring a parameter value of each parameter item in the at least one parameter item;
sending a parameter configuration message including each parameter value to the connection adaptation system, so that the connection public module stores each parameter value in correspondence with the device identifier of the internet of things device, so that the brand model adaptation module corresponding to the target brand model can establish connection with the internet of things device based on the stored parameter value.
3. The method of claim 2, wherein the obtaining the parameter value of each of the at least one parameter item comprises:
providing a user configuration interface including the at least one parameter item;
and acquiring the parameter value of each parameter item input by the user in the user configuration interface.
4. The method of claim 1, wherein creating a brand model adapter module in the connection adapter system that is connected to the target type adapter module and corresponds to a target brand model based on the brand model configuration data comprises:
sending the brand model configuration data and the identification of the target device type to the connection adaptation system to cause the connection common module to perform the steps of:
correspondingly storing the brand model configuration data and the identifier of the type of the target equipment;
upon detecting that the brand-model configuration data does not have an associated brand-model adapter module, creating a brand-model adapter module connected to the target type adapter module and associated with the brand-model configuration data.
5. The method of claim 1, further comprising:
when the brand model configuration data corresponding to any brand model is acquired, the acquired brand model configuration data and the brand model are correspondingly stored;
accordingly, the method further comprises:
receiving a report message from the connection adaptation system, wherein the report message is a message sent by the connection common module when detecting an event/state report message from any internet of things device, and the report message comprises event/state data transferred by the type adaptation module;
and transferring the event/state data in the report message according to the stored brand model configuration data to generate an event/state report.
6. The method of claim 1, further comprising:
acquiring a control command for the Internet of things equipment;
and sending the control command to the connection adaptation system so that the connection public module analyzes the control command according to the equipment type of the Internet of things equipment and the brand model configuration data, and forwards the control command obtained by analysis to the Internet of things equipment through the data of the type adaptation module and the brand model adaptation module.
7. A device for accessing Internet of things equipment to an Internet of things platform is characterized in that the Internet of things platform comprises a connection adaptation system, the connection adaptation system comprises a connection common module and a plurality of type adaptation modules respectively corresponding to different equipment types, and each type adaptation module is connected with the connection common module; the device comprises:
a first obtaining module, configured to obtain, when a brand model adaptation module corresponding to a target brand model does not exist in the connection adaptation system, brand model configuration data based on a target configuration template, where the target configuration template is a configuration template matched with a target device type, the target device type is a device type of the internet of things device, the brand model configuration data is data used for creating the brand model adaptation module corresponding to the target brand model, and the target brand model is a brand model of the internet of things device;
the creating module is used for creating a brand model adapting module which is connected with a target type adapting module and corresponds to a target brand model in the connection adapting system based on the brand model configuration data so that the Internet of things equipment can be accessed to the Internet of things platform by connecting the brand model adapting module, and the target type adapting module is a type adapting module corresponding to the type of the target equipment;
the connection public module is used for processing the data coming and going between the type adaptation modules in a unified mode, each type adaptation module is used for processing the data coming and going between each connected brand model adaptation module in a unified mode, and the brand model adaptation modules are used for processing the data coming and going between each connected Internet of things device in a unified mode.
8. The apparatus of claim 7, wherein the brand model configuration data includes at least one parameter item therein, the apparatus further comprising:
a first receiving module, configured to receive a configuration request message from the connection common module, where the configuration request message includes at least one parameter item;
the second acquisition module is used for acquiring the parameter value of each parameter item in the at least one parameter item;
the first sending module is used for sending a parameter configuration message including each parameter value to the connection adaptation system so as to enable the connection public module to correspondingly store each parameter value and the equipment identifier of the Internet of things equipment, so that the brand model adaptation module corresponding to the target brand model can establish connection with the Internet of things equipment based on the stored parameter value.
9. The apparatus of claim 8, wherein the second obtaining module comprises:
a user configuration interface sub-module for providing a user configuration interface including the at least one parameter item;
and the configuration data interaction sub-module is used for acquiring the parameter value of each parameter item input by the user in the user configuration interface.
10. The apparatus of claim 7, wherein the creation module is further configured to send the branding configuration data and the identification of the target device type to the connection adaptation system to cause the connection common module to perform the following steps:
correspondingly storing the brand model configuration data and the identifier of the type of the target equipment;
upon detecting that the brand-model configuration data does not have an associated brand-model adaptor module, creating a brand-model adaptor module connected to the target type adaptor module and associated with the brand-model configuration data.
11. The apparatus of claim 7, further comprising:
the storage module is used for correspondingly storing the acquired brand model configuration data and the brand model when the brand model configuration data corresponding to any brand model is acquired;
a second receiving module, configured to receive a report message from the connection adaptation system, where the report message is a message sent by the connection common module when detecting an event/state report message from any internet of things device, and the report message includes event/state data transferred by the type adaptation module;
and the processing module is used for performing escape on the event/state data in the report message according to the stored brand model configuration data so as to generate an event/state report.
12. The apparatus of claim 7, further comprising:
the third acquisition module is used for acquiring a control command for the Internet of things equipment;
and the second sending module is used for sending the control command to the connection adaptation system so that the connection public module analyzes the control command according to the equipment type of the Internet of things equipment and the brand model configuration data, and forwards the control command obtained by analysis to the Internet of things equipment through the data of the type adaptation module and the brand model adaptation module.
13. A server, characterized in that the server comprises:
one connecting the common modules;
at least one type adapting module, wherein each type adapting module corresponds to different equipment types, and is connected with the connection public module;
the type adapting modules correspond to different brand types respectively, and each brand type adapting module is connected with one type adapting module;
the connection public module is used for processing the data coming and going between the type adaptation modules in a unified mode, each type adaptation module is used for processing the data coming and going between each connected brand model adaptation module in a unified mode, and each brand model adaptation module is used for processing the data coming and going between each connected Internet of things device in a unified mode.
CN201811473192.2A 2018-12-04 2018-12-04 Method and device for accessing Internet of things equipment into Internet of things platform and server Active CN109327551B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811473192.2A CN109327551B (en) 2018-12-04 2018-12-04 Method and device for accessing Internet of things equipment into Internet of things platform and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811473192.2A CN109327551B (en) 2018-12-04 2018-12-04 Method and device for accessing Internet of things equipment into Internet of things platform and server

Publications (2)

Publication Number Publication Date
CN109327551A CN109327551A (en) 2019-02-12
CN109327551B true CN109327551B (en) 2021-05-18

Family

ID=65256233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811473192.2A Active CN109327551B (en) 2018-12-04 2018-12-04 Method and device for accessing Internet of things equipment into Internet of things platform and server

Country Status (1)

Country Link
CN (1) CN109327551B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109873820A (en) * 2019-02-21 2019-06-11 温瑭玮 A kind of data acquisition and execution method can customize Data Transport Protocol
CN110071921B (en) * 2019-04-19 2022-01-18 广东中安金狮科创有限公司 Internet of things platform access method, device, computer readable storage medium and system
EP3958506A4 (en) * 2019-05-21 2022-12-14 Siemens Aktiengesellschaft Method, device, and system for configuring parameters, computer device, medium, and product
CN110278286B (en) * 2019-07-12 2021-10-29 四川虹美智能科技有限公司 Method for interacting with Internet of things equipment and business system
CN112288990A (en) * 2019-07-24 2021-01-29 上海东方富联科技有限公司 Method, system, medium and device for generating internet of things event based on internet of things data
CN110674110B (en) * 2019-09-09 2022-07-05 中国建设银行股份有限公司 Bank distributed database construction method and device
CN110493270B (en) * 2019-09-25 2020-10-09 北京金茂绿建科技有限公司 Internet of things equipment access fusion control method and device
CN110798452B (en) * 2019-10-16 2021-01-05 北京邮电大学 Lightweight Internet of things service generation system and method
CN110839062B (en) * 2019-10-22 2022-11-22 深圳市信锐网科技术有限公司 Method for accessing sensor to Internet of things, electronic equipment and storage medium
CN110750314A (en) * 2019-10-23 2020-02-04 杭州安恒信息技术股份有限公司 Command execution method and system of micro-service terminal
CN110807066B (en) * 2019-10-30 2023-09-05 北京禹数技术有限公司 Method, device, terminal or server for associating data with model
CN111294241B (en) * 2020-02-14 2022-08-30 西安奥卡云数据科技有限公司 Configurable Internet of things equipment access method
CN111556158B (en) * 2020-05-08 2023-05-26 中国通信服务股份有限公司 Access method, access device, access equipment and storage medium of Internet of things platform
CN111818021B (en) * 2020-06-20 2021-02-09 深圳市众创达企业咨询策划有限公司 Configuration information safety protection system and method based on new generation information technology
CN112565029B (en) * 2020-11-18 2022-10-14 深圳创维-Rgb电子有限公司 Method, system, terminal and computer readable storage medium for accessing internet of things
CN112235326B (en) * 2020-12-15 2021-03-16 长沙树根互联技术有限公司 Internet of things equipment data analysis method and device and electronic equipment
CN112804714B (en) * 2021-01-11 2022-08-19 浙江航芯科技有限公司 Data communication method between dual-mode systems
CN113434215B (en) * 2021-06-28 2023-06-16 青岛海尔科技有限公司 Information loading method and device, storage medium and processor
CN113238807A (en) * 2021-07-14 2021-08-10 广州朗国电子科技股份有限公司 Module compatibility method, platform and server based on android system
CN114265823B (en) * 2021-12-27 2022-08-02 众和空间(北京)科技有限责任公司 Internet of things equipment visualization integration system and method based on mapping file
CN114281787B (en) * 2021-12-27 2022-07-26 众和空间(北京)科技有限责任公司 Internet of things equipment integration system based on mapping file
CN114422618B (en) * 2021-12-31 2024-01-02 北京千方科技股份有限公司 Cloud-protogenesis-based IOT platform protocol adaptation method, device, equipment and medium
CN114546528A (en) * 2022-02-24 2022-05-27 新奥数能科技有限公司 Cloud deployment method and device for Internet of things equipment and storage medium
CN117812112B (en) * 2024-01-09 2024-08-09 中科物栖(南京)科技有限公司 Internet of things application recommendation method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144149A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Transmission processing method and system for data of sensing Internet of Things and gateway
CN104394143A (en) * 2014-11-24 2015-03-04 青岛海尔软件有限公司 Internet of Things equipment and Internet of Things server communicating method and device
CN107018127A (en) * 2017-03-07 2017-08-04 西安电子科技大学 The Internet of Things virtual gateway and node access authentication method of a kind of compatible various protocols
CN108040005A (en) * 2017-12-05 2018-05-15 大连理工大学 A kind of numerically-controlled machine tool intelligent monitoring gateway based on Internet of Things
CN108377207A (en) * 2018-05-19 2018-08-07 济南浪潮高新科技投资发展有限公司 A kind of access of platform of internet of things equipment and configuration method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10855800B2 (en) * 2017-02-15 2020-12-01 Dell Products, L.P. Managing device profiles in the Internet-of-Things (IoT)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144149A (en) * 2013-05-10 2014-11-12 中国电信股份有限公司 Transmission processing method and system for data of sensing Internet of Things and gateway
CN104394143A (en) * 2014-11-24 2015-03-04 青岛海尔软件有限公司 Internet of Things equipment and Internet of Things server communicating method and device
CN107018127A (en) * 2017-03-07 2017-08-04 西安电子科技大学 The Internet of Things virtual gateway and node access authentication method of a kind of compatible various protocols
CN108040005A (en) * 2017-12-05 2018-05-15 大连理工大学 A kind of numerically-controlled machine tool intelligent monitoring gateway based on Internet of Things
CN108377207A (en) * 2018-05-19 2018-08-07 济南浪潮高新科技投资发展有限公司 A kind of access of platform of internet of things equipment and configuration method

Also Published As

Publication number Publication date
CN109327551A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN109327551B (en) Method and device for accessing Internet of things equipment into Internet of things platform and server
US7852860B2 (en) Protocol conversion apparatus, communication apparatus, method and program
US7882213B2 (en) Network management system to monitor managed elements
CN108377207A (en) A kind of access of platform of internet of things equipment and configuration method
US11940778B2 (en) Method of commissioning a field device in an industrial system network
US20130212257A1 (en) Computer program and monitoring apparatus
JP2001512599A (en) Process control system using hierarchical hierarchical control strategy distributed among multiple controllers
JP2004030642A (en) Method and system for remotely monitoring equipment by creating equipment object regarding equipment to be monitored
CN111611054B (en) Application deployment method and device
CN112788125A (en) Internet of things platform and method based on data access, circulation and linkage
JPH10171681A (en) Object-oriented device management system
KR102220712B1 (en) Dynamic condition management apparatus and method to respond to real time in a factory
CN101408766B (en) Industrial automation system, and method for collecting data in industry factory and system thereof
CN113301171B (en) Digital mirror image construction method and system fusing multiple Internet of things data
JP2021022150A (en) Data format preparing device, edge server, and data format preparing method
CN103166984B (en) System that Network Video Surveillance equipment control is controlled and automatically updates, method
CN112363718A (en) Industrial application integration system based on micro-service architecture
CN106027674A (en) Technology architecture of "Internet & smart manufacturing"
CN116048467A (en) Micro-service development platform and business system development method
CN114531462B (en) Data processing method and device for Internet of things device
CN109117152B (en) Service generation system and method
KR20070097793A (en) Apparatus, method and system for managing event information
CN114035539A (en) Instantiated vehicle type communication matrix generation method, device, equipment and storage medium
JP6802354B2 (en) Communication test equipment, communication test methods and programs
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