Unified access configuration method, device, equipment and storage medium for IoT devices

By generating target product units and gateways on the IoT platform, completing function definitions and developing interface protocol extension plug-ins, the problem that IoT devices cannot access the platform in a unified manner is solved, unified connection and efficient management of devices are realized, and user experience is improved.

CN118118504BActive Publication Date: 2025-03-04HUBEI CRYSTAL CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410199764.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-23
Publication Date
2025-03-04
Estimated Expiration
2044-02-23

AI Technical Summary

Technical Problem

When the current IoT devices are connected, they cannot access the standard IoT platform, resulting in failure or incomplete functions of the device, reducing connection and management efficiency, and affecting the user experience.

Method used

It provides a unified access configuration method for IoT devices, including generating target product units and gateways on the IoT platform, completing function definitions, developing interface protocol extension plug-ins, connecting to the gateway, and connecting to the IoT platform based on the updated interface protocol template.

Benefits of technology

Through the unified access configuration method, the unified connection protocol of IoT devices is realized, the Internet of Things platform's access capability to various devices is improved, the access breadth is expanded, and the user's device access convenience and user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118118504B_ABST
    Figure CN118118504B_ABST
Patent Text Reader

Abstract

The present invention discloses a unified access configuration method, device, equipment and storage medium for Internet of Things devices. According to the technical solution provided by the present invention, in response to the user's target product addition application, a corresponding target product unit is generated on the Internet of Things platform; based on the target product, a corresponding gateway of the target product is added on the Internet of Things platform; the function of the target product is defined; based on the function definition, an interface protocol extension plug-in is developed, the first interface protocol template is extended, and a second interface protocol template is generated; the target product is connected to the corresponding gateway; based on the second interface protocol template, the target product is docked with the Internet of Things platform. Through the present invention, by developing the functions corresponding to the device products that need to access the Internet of Things platform as interface protocol extension plug-ins to expand the interface protocol template, the unification of the Internet of Things interface protocol is achieved in the form of plug-ins, so that the device can quickly access the Internet of Things platform, and the breadth of device access is also broadened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet of Things, and in particular to a method, device, equipment and storage medium for unified access configuration of Internet of Things devices. Background Art

[0002] Thanks to the rapid development of mobile communication networks, the Internet of Things technology has also ushered in a period of rapid development. In addition to the progress in the field of technology, the number of IoT connected devices has increased rapidly in recent times. According to forecasts, by 2025, the number of IoT connected devices worldwide is likely to exceed 75 billion.

[0003] Now, IoT applications have covered all areas of society, including industrial manufacturing, smart homes, medical health, agricultural transportation, etc., and IoT technology is also changing and optimizing the operation mode and production method of the industries involved, improving the efficiency of the operation process. At the same time, IoT devices can also generate a large amount of data, which can in turn help enterprises or organizations improve the scientific nature of decision-making and feed back the development of big data and artificial intelligence.

[0004] However, in the face of such a large number of IoT devices, IoT technology has not yet formed a unified standard, and the connection protocols developed by various IoT manufacturers for IoT devices are inconsistent. This results in the inability of IoT devices to access the standard IoT platform when docking, and may further lead to device connection failures or the inability of devices to perform all functions, which not only reduces the connection and management efficiency of IoT devices, but also greatly affects the user experience. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a unified access configuration method for Internet of Things devices and a corresponding unified access configuration device for Internet of Things devices, a computing device and a computer storage medium.

[0006] According to one aspect of the present invention, a method for unified access configuration of Internet of Things devices is provided, the method comprising:

[0007] In response to the user's application for adding a target product, a corresponding target product unit is generated on the Internet of Things platform; based on the target product, a gateway corresponding to the target product is added on the Internet of Things platform;

[0008] Describe the functions of the target product and complete the functional definition;

[0009] Develop an interface protocol extension plug-in based on the function definition, extend the first interface protocol template, and generate a second interface protocol template;

[0010] Connect the target product with the corresponding gateway;

[0011] Based on the second interface protocol template, the target product is connected to the Internet of Things platform.

[0012] In the above solution, the target product includes at least one target device;

[0013] The step of generating a corresponding target product unit on the Internet of Things platform in response to the user's target product addition application further includes:

[0014] Determine the target devices included in the target product;

[0015] In the target product unit of the IoT platform, a corresponding target device sub-unit is generated.

[0016] In the above scheme, the interface protocol extension plug-in is developed based on the function definition, the first interface protocol template is extended to generate the second interface protocol template, further comprising:

[0017] Analyze the functional definition of the target product and determine the protocol content that needs to be expanded;

[0018] Use the IoT MQTT protocol to define IoT platform interface events, attributes and service specifications, and generate interface protocol extension plug-ins;

[0019] The first interface protocol template is extended by using the interface protocol extension plug-in to generate a second interface protocol template.

[0020] In the above solution, the first interface protocol template and the second interface protocol template are both based on the Internet of Things MQTT protocol.

[0021] In the above solution, the target product is connected to the Internet of Things platform based on the second interface protocol template, further comprising:

[0022] Get the connection parameters of the target product;

[0023] Generate a protocol instance of the target product based on the second interface protocol template and in combination with the connection parameters of the target product;

[0024] Use the protocol instance of the target product to complete the connection between the target product and the IoT platform.

[0025] In the above scheme, the method further comprises:

[0026] Connect the target product to the local network;

[0027] Obtain product information of all products that are already in the IoT platform and connected to the local network, and upload it to the server, wherein the product information includes at least the quantity of products, device status, network signal strength, and connection time;

[0028] Establish communication connections between all gateways within the preset range and each product in turn according to the preset time sequence;

[0029] The server determines a gateway device and a backup gateway device corresponding to each product according to the updated product information of each product; wherein, the two gateways with the shortest connection time for each product are selected to compare the network signal strength, and the gateway with the stronger network signal strength is set as the gateway device, and the gateway with the weaker network signal strength is set as the backup gateway device;

[0030] The server generates a gateway connection sequence table based on the gateway devices and candidate gateway devices corresponding to each product; and based on the gateway connection sequence table, selects the two gateways with the strongest network signal strength among all the current gateways, and uses them as the gateway devices and candidate gateway devices corresponding to the target product in the order of network signal strength;

[0031] Update the gateway connection sequence table according to the gateway devices and backup gateway devices corresponding to the target product.

[0032] In the above solution, after the target product is connected to the Internet of Things platform, the method further includes:

[0033] In response to the user's application for adding a target device, a corresponding new target device sub-unit is generated in the target product unit of the Internet of Things platform;

[0034] Describe the functions of the target device and complete the function definition;

[0035] Connect the target product with the corresponding gateway;

[0036] Based on the second interface protocol template, the target product is connected to the Internet of Things platform.

[0037] According to another aspect of the present invention, a unified access configuration device for Internet of Things devices is provided, comprising: a product adding module, a function defining module, a protocol extension module, a network connection module and a platform docking module; wherein,

[0038] The product adding module is used to generate a corresponding target product unit on the Internet of Things platform in response to the user's target product adding application; based on the target product, add a gateway corresponding to the target product on the Internet of Things platform;

[0039] The function definition module is used to describe the functions of the target product and complete the function definition;

[0040] The protocol extension module is used to develop an interface protocol extension plug-in based on the function definition, extend the first interface protocol template, and generate a second interface protocol template;

[0041] The network connection module is used to connect the target product with the corresponding gateway;

[0042] The platform docking module is used to dock the target product with the Internet of Things platform based on the second interface protocol template.

[0043] According to another aspect of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0044] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the above-mentioned unified access configuration method for Internet of Things devices.

[0045] According to yet another aspect of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, and the executable instruction enables a processor to perform operations corresponding to the above-mentioned unified access configuration method for Internet of Things devices.

[0046] According to the technical solution provided by the present invention, in response to the user's application for adding a target product, a corresponding target product unit is generated on the Internet of Things platform; based on the target product, a gateway corresponding to the target product is added on the Internet of Things platform; the functions of the target product are described to complete the function definition; based on the function definition, an interface protocol extension plug-in is developed to expand the first interface protocol template and generate a second interface protocol template; the target product is connected to the corresponding gateway; based on the second interface protocol template, the target product is docked with the Internet of Things platform. In response to the application for adding a target product, a corresponding target product unit and a corresponding gateway are generated on the Internet of Things platform, the functions of the target product are defined, and an interface protocol extension plug-in is developed to expand the existing interface protocol template, and the target product is docked with the Internet of Things platform using the updated interface protocol template. Accordingly, the connection protocol of the Internet of Things is unified, and the unified protocol template is expanded in the form of a protocol plug-in, which not only ensures that the underlying protocol of the interface protocol template remains unchanged, but also, based on the functions of each product or device that needs to be added to the Internet of Things platform, the protocol template is flexibly expanded and revised in the form of a plug-in, which greatly improves the access capability of the Internet of Things platform to various Internet of Things products or devices, and expands It has increased the breadth of access, is conducive to the application of IoT technology in a wider range, makes the user's device access process more convenient, and greatly improves the user's IoT device experience; in addition, by screening the gateways connected to the IoT devices, the appropriate gateways for each product or device are determined to ensure that the network connection status of the product or device is good, and the gateway connection sequence table is determined accordingly. When new products or devices are added to the IoT platform, the gateway connection sequence table is updated. In this way, the network signals of each product and device are guaranteed to be in good condition, and the gateway performance is also well utilized, avoiding the situation where some gateways are overloaded while others are idle, effectively improving the network transmission efficiency, and further improving the user experience.

[0047] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

[0048] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0050] Figure 1A schematic diagram of a process of a unified access configuration method for IoT devices according to an embodiment of the present invention is shown;

[0051] Figure 2 A schematic diagram of a flow chart of an Internet of Things platform interface protocol extension method according to an embodiment of the present invention is shown;

[0052] Figure 3 A schematic diagram showing a flow chart of a gateway determination method for an Internet of Things device according to an embodiment of the present invention;

[0053] Figure 4 A schematic diagram showing a process flow of a method for configuring unified access of IoT devices according to another embodiment of the present invention is shown;

[0054] Figure 5 A schematic diagram of the connection process of an Internet of Things device according to an embodiment of the present invention is shown;

[0055] Figure 6 A structural block diagram of a device for unified access configuration of Internet of Things devices according to an embodiment of the present invention is shown;

[0056] Figure 7 A schematic structural diagram of a computing device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0057] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0058] Figure 1 A schematic diagram of a process of a unified access configuration method for IoT devices according to an embodiment of the present invention is shown, and the method comprises the following steps:

[0059] Step S101, in response to the user's application for adding a target product, a corresponding target product unit is generated on the Internet of Things platform; based on the target product, a gateway corresponding to the target product is added on the Internet of Things platform.

[0060] Specifically, the target product includes at least one target device;

[0061] Specifically, in response to the user's application for adding a target product, generating a corresponding target product unit on the Internet of Things platform further includes:

[0062] Determine the target devices included in the target product;

[0063] In the target product unit of the IoT platform, a corresponding target device sub-unit is generated.

[0064] According to the specific structure of the target product, the target product unit and its internal target device sub-unit are adaptively generated in the Internet of Things platform, thereby correspondingly reflecting the specific structure of the target product.

[0065] Step S102, describing the functions of the target product to complete the function definition.

[0066] Preferably, based on the specific structure of the target product, the functions realized by the target product itself and the functions realized by all target devices included in the target product are described to complete the functional definition of each part of the target product.

[0067] Step S103: Develop an interface protocol extension plug-in based on the function definition, extend the first interface protocol template, and generate a second interface protocol template.

[0068] Preferably, the first interface protocol template and the second interface protocol template are both based on the Internet of Things MQTT protocol.

[0069] Step S104, connecting the target product to the corresponding gateway.

[0070] Step S105: Based on the second interface protocol template, the target product is connected to the Internet of Things platform.

[0071] Specifically, the method of connecting the target product to the Internet of Things platform based on the second interface protocol template further includes:

[0072] Get the connection parameters of the target product;

[0073] Generate a protocol instance of the target product based on the second interface protocol template and in combination with the connection parameters of the target product;

[0074] Use the protocol instance of the target product to complete the connection between the target product and the IoT platform.

[0075] According to the unified access configuration method for IoT devices provided in this embodiment, in response to the user's target product addition application, a corresponding target product unit is generated on the IoT platform; based on the target product, a gateway corresponding to the target product is added on the IoT platform; the functions of the target product are described to complete the function definition; based on the function definition, an interface protocol extension plug-in is developed to extend the first interface protocol template and generate a second interface protocol template; the target product is connected to the corresponding gateway; based on the second interface protocol template, the target product is docked with the IoT platform. Through the unified access configuration method for IoT devices provided in this embodiment, by responding to the target product addition application, a corresponding target product unit and a corresponding gateway are generated on the IoT platform, the functions of the target product are defined, and an interface protocol extension plug-in is developed to extend the existing interface protocol template, and the target product is docked with the IoT platform using the updated interface protocol template. Accordingly, the connection protocol of the IoT is unified, and the unified protocol template is extended in the form of a protocol plug-in, which not only ensures that the underlying protocol of the interface protocol template remains unchanged, but also flexibly extends and revises the protocol template in the form of a plug-in based on the functions of each product or device that needs to be added to the IoT platform, greatly improving the IoT platform for various IoT products. It improves the access capability of products or devices, expands the breadth of access, is conducive to the application of IoT technology in a wider range, makes the user's device access process more convenient, and greatly improves the user experience of IoT devices; in addition, by screening the gateways connected to IoT devices, the appropriate gateways for each product or device are determined to ensure that the network connection status of the product or device is good, and the gateway connection sequence table is determined accordingly. When new products or devices are added to the IoT platform, the gateway connection sequence table is updated. In this way, the network signals of each product and device are guaranteed to be in good condition, and the gateway performance is also well utilized, avoiding the situation where some gateways are overloaded while others are idle, effectively improving the network transmission efficiency, and further improving the user experience.

[0076] Figure 2 FIG. 1 is a flow chart showing a method for extending an Internet of Things platform interface protocol according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:

[0077] Step S201, analyzing the function definition of the target product to determine the protocol content that needs to be expanded.

[0078] Step S202, using the Internet of Things MQTT protocol to define the Internet of Things platform interface events, attributes and service specifications, and generate an interface protocol extension plug-in.

[0079] Preferably, the target product is added to the protocol product list of the interface extension protocol;

[0080] Get the protocol plugin template;

[0081] Call the initialization function from the protocol product list, edit the protocol plug-in template based on the function definition of the target product and its corresponding extended protocol content, and generate an interface protocol extension plug-in.

[0082] Preferably, adding the target product to the protocol product list of the interface extension protocol includes: adding the target product to the protocol product list based on the protocol entry function in the product information of the target product; wherein the protocol entry function is used to initialize the protocol plug-in template.

[0083] Preferably, the functional function is used to provide external call function definition.

[0084] Step S203: using the interface protocol extension plug-in, the first interface protocol template is extended to generate a second interface protocol template.

[0085] Preferably, the first interface protocol template is the interface protocol template before the Internet of Things platform adds the target product unit corresponding to the target product; the second interface protocol template is the interface protocol template that is updated accordingly based on the interface protocol extension plug-in after the Internet of Things platform adds the target product unit corresponding to the target product.

[0086] According to the above method, by defining the functions of the target product, a protocol plug-in corresponding to the various functions of the target product is developed based on the MQTT protocol, wherein the function definition of the target product is obtained by using the function function, and then the protocol plug-in template is edited to generate an interface protocol extension plug-in, and finally the content of the relevant product functions is adaptively added to the interface protocol template through the plug-in, thereby completing the update of the protocol in a targeted manner, which is conducive to quickly completing the preparation work for the docking between the product and the platform and improving the efficiency and accuracy of the docking.

[0087] Figure 3 A schematic diagram showing a flow chart of a gateway determination method for an Internet of Things device according to an embodiment of the present invention;

[0088] like Figure 3 As shown, the method comprises the following steps:

[0089] Step S301, connecting the target product to the local network.

[0090] Step S302, obtain product information of all products that are already in the IoT platform and connected to the local network, and upload it to the server. The product information includes at least the quantity of products, device status, network signal strength, and connection time.

[0091] Step S303, establishing communication connections between all gateways within a preset range and each product in turn according to a preset time sequence.

[0092] Preferably, taking turns according to a preset time sequence further includes:

[0093] When the network is being configured, that is, when each product is connected to the local network, a sorting time is assigned to it;

[0094] The timing is performed according to the sorting time corresponding to the product. When the sorting time of the current product ends, a verification message is sent to other products connected to the local network. After the other products receive this verification message, the timing is stopped.

[0095] Furthermore, after the timing is stopped, communication connections are established in sequence between the current product and all gateways within a preset range to obtain the current network signal strength and connection time, and update the corresponding product information.

[0096] Preferably, the preset range may be a physical range defined based on the location of the target product, or a logical range defined based on a logical distance of the target product.

[0097] Step S304, the server determines a gateway device and a backup gateway device corresponding to each product based on the updated product information of each product; wherein, the two gateways with the shortest connection time for each product are selected for network signal strength comparison, wherein the gateway with stronger network signal strength is set as the gateway device, and the gateway with weaker network signal strength is set as the backup gateway device.

[0098] Step S305: The server generates a gateway connection sequence table based on the gateway devices and alternative gateway devices corresponding to each product; and based on the gateway connection sequence table, selects the two gateways with the strongest network signal strength among all the current gateways, and uses them as the gateway devices and alternative gateway devices corresponding to the target product in the order of network signal strength.

[0099] Step S306: updating the gateway connection sequence table according to the gateway device and the backup gateway device corresponding to the target product.

[0100] Preferably, the gateway device and the backup gateway device corresponding to the target product are added to the gateway connection sequence table.

[0101] According to the above method, when each product joins the Internet of Things platform, the connection information of each product currently connected to the local network and each gateway can be collected to generate a gateway connection sequence table. According to the network status of the gateways in the table, the gateways with better current network status can be scientifically selected as the gateway devices and backup gateway devices corresponding to the products, thereby ensuring the network status of the target product when it is connected and effectively improving the user experience.

[0102] Figure 4 A schematic diagram showing a process flow of a method for configuring unified access of IoT devices according to another embodiment of the present invention is shown;

[0103] like Figure 4 As shown, the method comprises the following steps:

[0104] Step S401, in response to the user's application for adding a target device, a corresponding new target device sub-unit is generated in the target product unit of the Internet of Things platform.

[0105] Specifically, after the target product has been connected to the Internet of Things platform, if a new target device is set in the target product, a corresponding target device subunit is generated in the target product unit of the Internet of Things platform through a target device addition application.

[0106] Step S402, describing the functions of the target device to complete the function definition.

[0107] Preferably, since the target product has already been connected to the Internet of Things platform, there is no need to build the interface protocol extension plug-in again. It is only necessary to call the function definition of the target device through the function function to update the second interface protocol template.

[0108] Step S403: Connect the target product to the corresponding gateway.

[0109] Step S404: Based on the second interface protocol template, the target product is connected to the Internet of Things platform.

[0110] The connection method between the target product and the gateway, and the docking method with the IoT platform are the same as described above and will not be repeated here.

[0111] According to the above method, when adding a new device to the existing (connected) products on the Internet of Things platform, the new functions implemented by the device can be determined, and by updating the interface protocol template, the structure and function of the product unit in the Internet of Things platform can be quickly updated, which ensures both the update speed and the update accuracy.

[0112] based on Figure 1 and Figure 4 The unified access configuration method for IoT devices shown here shows how to access new products that have not yet been connected to the IoT platform, as well as how to access new devices in products that have already been connected to the IoT platform. Figure 5 As shown, Figure 5The schematic diagram of the connection process of the IoT device according to an embodiment of the present invention is shown. In the figure, there are two process paths, the upper path is the process path for adding new devices to the products that have been connected to the IoT platform; the lower path is the process path for connecting new products that have not been connected to the IoT platform.

[0113] Figure 6 FIG. 4 shows a structural block diagram of a device for unified access configuration of an Internet of Things device according to an embodiment of the present invention. Figure 6 As shown, the system includes: a product adding module 601, a function defining module 602, a protocol extension module 603, a network connection module 604 and a platform docking module 605; wherein,

[0114] The product adding module 601 is used to generate a corresponding target product unit on the Internet of Things platform in response to the user's target product adding application; based on the target product, add a gateway corresponding to the target product on the Internet of Things platform.

[0115] Specifically, the target product includes at least one target device.

[0116] Specifically, the product adding module 601 is further used to:

[0117] Determine the target devices included in the target product;

[0118] In the target product unit of the IoT platform, a corresponding target device sub-unit is generated.

[0119] Specifically, the product adding module 601 is also used to:

[0120] In response to the user's application for adding a target device, a corresponding new target device sub-unit is generated in the target product unit of the Internet of Things platform.

[0121] The function definition module 602 is used to describe the functions of the target product and complete the function definition.

[0122] The function definition module 602 is also used to describe the functions of the target device to complete the function definition.

[0123] The protocol extension module 603 is used to develop an interface protocol extension plug-in based on the function definition, extend the first interface protocol template, and generate a second interface protocol template.

[0124] Specifically, the protocol extension module 603 is further used to:

[0125] Analyze the functional definition of the target product and determine the protocol content that needs to be expanded;

[0126] Use the IoT MQTT protocol to define IoT platform interface events, attributes and service specifications, and generate interface protocol extension plug-ins;

[0127] The first interface protocol template is extended by using the interface protocol extension plug-in to generate a second interface protocol template.

[0128] Specifically, the first interface protocol template and the second interface protocol template are both based on the Internet of Things MQTT protocol.

[0129] The network connection module 604 is used to connect the target product to the corresponding gateway.

[0130] Specifically, the network connection module 604 is further used to:

[0131] Connect the target product to the local network;

[0132] Obtain product information of all products that are already in the IoT platform and connected to the local network, and upload it to the server, wherein the product information includes at least the quantity of products, device status, network signal strength, and connection time;

[0133] In turn, according to the preset time sequence, all gateways within the preset range will establish communication connections with each product;

[0134] The server determines a gateway device and a backup gateway device corresponding to each product according to the product information of each product; wherein, the two gateways with the shortest connection time for each product are selected to compare the network signal strength, and the gateway with the stronger network signal strength is set as the gateway device, and the gateway with the weaker network signal strength is set as the backup gateway device;

[0135] The server generates a gateway connection sequence table based on the gateway devices and candidate gateway devices corresponding to each product; and based on the gateway connection sequence table, selects the two gateways with the strongest network signal strength among all the current gateways, and uses them as the gateway devices and candidate gateway devices corresponding to the target product in the order of network signal strength;

[0136] Update the gateway connection sequence table according to the gateway devices and backup gateway devices corresponding to the target product.

[0137] The platform docking module 605 is used to dock the target product with the Internet of Things platform based on the second interface protocol template.

[0138] Specifically, the platform docking module 605 is further used to:

[0139] Get the connection parameters of the target product;

[0140] Generate a protocol instance of the target product based on the second interface protocol template and in combination with the connection parameters of the target product;

[0141] Use the protocol instance of the target product to complete the connection between the target product and the IoT platform.

[0142] According to the unified access configuration device for IoT devices provided in this embodiment, in response to the user's application for adding a target product, a corresponding target product unit is generated on the IoT platform; based on the target product, a gateway corresponding to the target product is added on the IoT platform; the functions of the target product are described to complete the function definition; based on the function definition, an interface protocol extension plug-in is developed to extend the first interface protocol template and generate a second interface protocol template; the target product is connected to the corresponding gateway; based on the second interface protocol template, the target product is docked with the IoT platform. Through the unified access configuration device for IoT devices provided in this embodiment, in response to the application for adding a target product, a corresponding target product unit and a corresponding gateway are generated on the IoT platform, the functions of the target product are defined, and an interface protocol extension plug-in is developed to extend the existing interface protocol template, and the target product is docked with the IoT platform using the updated interface protocol template. Accordingly, the connection protocol of the IoT is unified, and the unified protocol template is extended in the form of a protocol plug-in, which not only ensures that the underlying protocol of the interface protocol template remains unchanged, but also flexibly extends and revises the protocol template in the form of a plug-in based on the functions of each product or device that needs to be added to the IoT platform, greatly improving the IoT platform for various IoT products. It improves the access capability of products or devices, expands the breadth of access, is conducive to the application of IoT technology in a wider range, makes the user's device access process more convenient, and greatly improves the user experience of IoT devices; in addition, by screening the gateways connected to IoT devices, the appropriate gateways for each product or device are determined to ensure that the network connection status of the product or device is good, and the gateway connection sequence table is determined accordingly. When new products or devices are added to the IoT platform, the gateway connection sequence table is updated. In this way, the network signals of each product and device are guaranteed to be in good condition, and the gateway performance is also well utilized, avoiding the situation where some gateways are overloaded while others are idle, effectively improving the network transmission efficiency, and further improving the user experience.

[0143] The present invention also provides a non-volatile computer storage medium, which stores at least one executable instruction, and the executable instruction can execute the unified access configuration method for Internet of Things devices in any of the above method embodiments.

[0144] Figure 7 A schematic diagram of the structure of a computing device according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computing device.

[0145] like Figure 7 As shown, the computing device may include: a processor (processor) 702 , a communications interface (Communications Interface) 704 , a memory (memory) 706 , and a communication bus 708 .

[0146] in:

[0147] The processor 702 , the communication interface 704 , and the memory 706 communicate with each other via a communication bus 708 .

[0148] The communication interface 704 is used to communicate with other devices such as clients or other servers.

[0149] The processor 702 is used to execute the program 710, and specifically can execute the relevant steps in the above-mentioned embodiment of the unified access configuration method for Internet of Things devices.

[0150] Specifically, the program 710 may include program code, and the program code includes computer operation instructions.

[0151] The processor 702 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0152] The memory 706 is used to store the program 710. The memory 706 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0153] Program 710 can be specifically used to enable processor 702 to execute the unified access configuration method for IoT devices in any of the above-mentioned method embodiments. The specific implementation of each step in program 710 can refer to the corresponding descriptions in the corresponding steps and units in the above-mentioned unified access configuration method for IoT devices, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiments, which will not be repeated here.

[0154] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description of the above specific languages ​​is for disclosing the best mode of the present invention.

[0155] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0156] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the intention that the claimed invention requires more features than those expressly recited in each claim. Rather, as reflected in the claims, inventive aspects lie in less than all of the features of the individual embodiments previously disclosed. Therefore, the claims that follow the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the present invention.

[0157] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0158] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims, any one of the claimed embodiments may be used in any combination.

[0159] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0160] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A unified access configuration method for IoT products, comprising: In response to the user's application for adding a target product, a corresponding target product unit is generated on the Internet of Things platform; Based on the target product, add the gateway corresponding to the target product on the IoT platform; Describe the functions of the target product and complete the functional definition; Based on the function definition, an interface protocol extension plug-in is developed to extend the first interface protocol template to generate a second interface protocol template; wherein, Analyze the functional definition of the target product and determine the protocol content that needs to be expanded; Use the IoT MQTT protocol to define IoT platform interface events, attributes and service specifications, and generate interface protocol extension plug-ins; Using the interface protocol extension plug-in, the first interface protocol template is extended to generate a second interface protocol template; Wherein, the first interface protocol template and the second interface protocol template are both based on the Internet of Things MQTT protocol; Connect the target product to the corresponding gateway; Based on the second interface protocol template, the target product is connected to the Internet of Things platform; wherein, Get the connection parameters of the target product; Generate a protocol instance of the target product based on the second interface protocol template and in combination with the connection parameters of the target product; Use the protocol instance of the target product to complete the connection between the target product and the IoT platform.

2. The unified access configuration method for Internet of Things products according to claim 1, characterized in that: The target product includes at least one target device; The step of generating a corresponding target product unit on the Internet of Things platform in response to the user's target product addition application further includes: Determine the target devices included in the target product; In the target product unit of the IoT platform, a corresponding target device sub-unit is generated.

3. The unified access configuration method for Internet of Things products according to claim 1, characterized in that: The method further comprises: Connect the target product to the local network; Obtain product information of all products that are already in the IoT platform and connected to the local network, and upload it to the server, wherein the product information includes at least the quantity of products, device status, network signal strength, and connection time; Establish communication connections between all gateways within the preset range and each product in turn according to the preset time sequence; The server determines a gateway device and a backup gateway device corresponding to each product according to the updated product information of each product; wherein, the two gateways with the shortest connection time for each product are selected to compare the network signal strength, and the gateway with the stronger network signal strength is set as the gateway device, and the gateway with the weaker network signal strength is set as the backup gateway device; The server generates a gateway connection sequence table based on the gateway devices and candidate gateway devices corresponding to each product; and based on the gateway connection sequence table, selects the two gateways with the strongest network signal strength among all the current gateways, and uses them as the gateway devices and candidate gateway devices corresponding to the target product in the order of network signal strength; Update the gateway connection sequence table according to the gateway devices and backup gateway devices corresponding to the target product.

4. The unified access configuration method for Internet of Things products according to claim 1, characterized in that: After the target product is connected to the Internet of Things platform, the method further includes: In response to the user's application for adding a target device, a corresponding new target device sub-unit is generated in the target product unit of the Internet of Things platform; Describe the functions of the target device and complete the function definition; Connect the target product to the corresponding gateway; Based on the second interface protocol template, the target product is connected to the Internet of Things platform.

5. A unified access configuration device for Internet of Things products, comprising: Product adding module, function definition module, protocol extension module, network connection module and platform docking module; among them, The product adding module is used to generate a corresponding target product unit on the Internet of Things platform in response to the user's target product adding application; based on the target product, add a gateway corresponding to the target product on the Internet of Things platform; The function definition module is used to describe the functions of the target product and complete the function definition; The protocol extension module is used to develop an interface protocol extension plug-in based on the function definition, extend the first interface protocol template, and generate a second interface protocol template; wherein, Analyze the functional definition of the target product and determine the protocol content that needs to be expanded; Use the IoT MQTT protocol to define IoT platform interface events, attributes and service specifications, and generate interface protocol extension plug-ins; Using the interface protocol extension plug-in, the first interface protocol template is extended to generate a second interface protocol template; Wherein, the first interface protocol template and the second interface protocol template are both based on the Internet of Things MQTT protocol; The network connection module is used to connect the target product with the corresponding gateway; The platform docking module is used to dock the target product with the Internet of Things platform based on the second interface protocol template; wherein, Get the connection parameters of the target product; Generate a protocol instance of the target product based on the second interface protocol template and in combination with the connection parameters of the target product; Use the protocol instance of the target product to complete the connection between the target product and the IoT platform.

6. A computing device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the unified access configuration method for Internet of Things products according to any one of claims 1-4.

7. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables a processor to perform operations corresponding to the unified access configuration method for Internet of Things products as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Gateway system of things of internet and implementation method thereof

    CN106790605A

  • Charging pile group control power distribution time-sharing system

    CN110718947A