CN109787825B - Self-adaptive configuration method and system for Internet of things equipment, storage medium and equipment - Google Patents

Self-adaptive configuration method and system for Internet of things equipment, storage medium and equipment Download PDF

Info

Publication number
CN109787825B
CN109787825B CN201910033190.XA CN201910033190A CN109787825B CN 109787825 B CN109787825 B CN 109787825B CN 201910033190 A CN201910033190 A CN 201910033190A CN 109787825 B CN109787825 B CN 109787825B
Authority
CN
China
Prior art keywords
node
equipment
internet
things
intelligent
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
CN201910033190.XA
Other languages
Chinese (zh)
Other versions
CN109787825A (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.)
Shandong Jianzhu University
MH Robot and Automation Co Ltd
Original Assignee
Shandong Jianzhu University
MH Robot and Automation 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 Shandong Jianzhu University, MH Robot and Automation Co Ltd filed Critical Shandong Jianzhu University
Priority to CN201910033190.XA priority Critical patent/CN109787825B/en
Publication of CN109787825A publication Critical patent/CN109787825A/en
Application granted granted Critical
Publication of CN109787825B publication Critical patent/CN109787825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The utility model provides a self-adaptive configuration method, a self-adaptive configuration system, a storage medium and an adaptive configuration device of Internet of things equipment, which comprise a plurality of Internet of things nodes, a plurality of intelligent equipment and a server, wherein each Internet of things node is wirelessly connected with a plurality of intelligent sockets through 433MHz and receives the information of the intelligent equipment in the region to which the node belongs; the server receives a control instruction sent by the client, broadcasts node identification information to all nodes of the Internet of things, receives identification information fed back by all the nodes of the Internet of things, comprehensively selects an optimal node, a suboptimal node and a standby node corresponding to each intelligent device according to the feedback time length and the feedback information of each node, virtually partitions each intelligent device according to the selected sequence, connects corresponding nodes of the Internet of things through the Ethernet, sends data related to the control instruction to the corresponding intelligent device, and manages and controls the devices.

Description

Self-adaptive configuration method and system for Internet of things equipment, storage medium and equipment
Technical Field
The disclosure relates to a self-adaptive configuration method, a self-adaptive configuration system, a storage medium and equipment of Internet of things equipment.
Background
The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art.
At the present stage, the technology of the internet of things is widely applied, so that a lot of convenience is brought, and meanwhile, the number of intelligent equipment modules and intelligent sensing modules is greatly increased, so that the whole architecture of the internet of things is required to have good communication stability.
At present, most of relays for communication between each intelligent module and a server are nodes of the internet of things, the communication relation between the nodes of the internet of things and the intelligent modules is generally a manually defined static relation, one device can be managed by only one node, when a certain node is damaged, the intelligent sensor module governed by the node is paralyzed and cannot be used, and the communication stability of the internet of things is influenced.
In addition, many intelligent devices store basic information and use conditions of users, so that privacy information of the users exists, and some intelligent devices are expensive or dangerous in use and need to be endowed with special authorities. How to realize the management of the equipment authority and the information security of the Internet of things is also an urgent problem to be solved.
Disclosure of Invention
In order to solve the above problems, the present disclosure provides an adaptive configuration method, system, storage medium, and device for an internet of things device.
According to some embodiments, the following technical scheme is adopted in the disclosure:
an Internet of things equipment self-adaptive configuration system comprises a plurality of Internet of things nodes, a plurality of intelligent equipment and a server, wherein each Internet of things node is connected with a plurality of intelligent sockets, and the intelligent equipment in a corresponding area is connected to the corresponding intelligent socket;
the Internet of things nodes are wirelessly connected with the corresponding intelligent equipment, and the Internet of things nodes are connected with the server through the Ethernet;
each intelligent device receives a control instruction, broadcasts node verification information to the periphery, receives feedback verification information of the nodes of the Internet of things, and determines an optimal node, a suboptimal node and a standby node of a first scheme according to response time;
the server broadcasts node identification information to all nodes of the Internet of things, receives identification information fed back by all the nodes of the Internet of things, and selects an optimal node, a suboptimal node and a standby node of a second scheme corresponding to each intelligent device according to the response duration of each node;
the server is configured to synthesize the first scheme and the second scheme, determine a final optimal node, a secondary optimal node and a standby node according to the intelligent device load quantity which each node has intervened in, reconfigure the communication relation between each intelligent device and the corresponding Internet of things node according to the determined sequence, and issue data related to the control instruction to the corresponding intelligent device through the corresponding Internet of things node.
By way of further limitation, each intelligent device is managed and controlled by one or more nodes, each node manages one or more devices, each user manages and controls one or more devices, and the ID of a node, the ID of an intelligent device and the ID of a user are all unique.
As a further limitation, each intelligent device is provided with a two-dimensional code and a verification code containing the information of the intelligent device, the two-dimensional code and the verification code are unique, and the implicit relationship between the intelligent device and each node of the internet of things comprises three parts: the intelligent equipment comprises an optimal node relation, a suboptimal node relation and a standby node relation, wherein the optimal node is used as a base station of the management and control equipment, and if the optimal node fails and the corresponding Internet of things node cannot be connected with the equipment, the intelligent equipment is configured to select the suboptimal node and/or the standby node for communication.
As a further limitation, a rule base is deployed on the server, multiple device management modes or methods are provided in the rule base, and when the state of some or a certain device meets a certain condition, the system automatically generates a device control instruction and issues the instruction to the node to execute corresponding device control.
By way of further limitation, each intelligent device and the user have unique ID, and each device has unique user ownership, namely only belongs to one owner; the only method for other users to acquire the authority management of the equipment is that the owner of the equipment shares the equipment, the user sharing can be set to be timed or untimed, the sharing of a plurality of other users is realized, and the authority management is realized, wherein the authority management comprises two modes of measurable and controllable and measurable and uncontrollable.
By way of further limitation, a database is deployed on the server and configured to store information, specifically including user information, device information, and relationship information between the user device and the node, environment information uploaded by the smart device, electrical parameter information of the indoor electrical appliance, alarm information, and SOE record information.
According to the self-adaptive configuration method of the Internet of things equipment, each intelligent equipment broadcasts node verification information to the periphery, receives feedback verification information of the Internet of things nodes, and determines an optimal node, a suboptimal node and a standby node of a first scheme according to response time;
the server broadcasts node identification information to all the nodes of the Internet of things, receives identification information fed back by all the nodes of the Internet of things, and selects an optimal node, a suboptimal node and a standby node of a second scheme corresponding to each intelligent device according to the response duration of each node;
and combining the first scheme and the second scheme, determining a final optimal node, a secondary optimal node and a standby node according to the intelligent equipment load quantity which is intervened by each node, reconfiguring the communication relation between each intelligent equipment and the corresponding Internet of things node according to the determined sequence, and issuing data related to the control instruction to the corresponding intelligent equipment through the corresponding Internet of things node for management and control.
As a further limitation, a node verification message is periodically broadcast to the surroundings, the relationship between the intelligent device and each internet of things node is repeatedly determined, and the optimal, suboptimal and standby nodes corresponding to the intelligent device are dynamically updated, so as to ensure the stability of communication.
As a further limitation, the relationship determination process between the intelligent device and each node of the internet of things is a device server comprehensive selection mechanism, and specifically includes:
the node finds the newly added peripheral equipment, performs relationship verification communication, and records the feedback information of each equipment;
the node sequentially uploads the response time of each device to the server and uploads the information of the node;
the server broadcasts a node identification message to all nodes;
the node receives the identification message and starts to automatically identify the surrounding equipment;
the node feeds back the identified equipment information to the server and feeds back the relevant information of the node;
the server records the communication data of the nodes and the equipment and the information of each node, and carries out calculation processing on the communication data;
the server selects the node with the least number as the optimal node of the newly added equipment according to the number of the optimal nodes configured by the related nodes of the equipment, similarly, sets a secondary optimal node and a standby node, stores the secondary optimal node and the standby node, and simultaneously issues the secondary optimal node and the standby node to the corresponding equipment to confirm the implicit relationship.
A computer-readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor of a terminal device and to execute the method for adaptive configuration of internet of things devices.
A terminal device comprising a processor and a computer readable storage medium, the processor being configured to implement instructions; the computer readable storage medium is used for storing a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method for self-adaptive configuration of the equipment of the internet of things.
Compared with the prior art, the beneficial effect of this disclosure is:
according to the method, the optimal node and the standby node of the two schemes are screened out through two mechanisms from bottom to top and from top to bottom, if the two schemes are consistent, the two schemes are configured according to the sequence, if the two schemes are inconsistent, the load quantity of each node in the alternative schemes is integrated, the optimal node, the next optimal node and the standby node are reasonably determined, the intelligent device and the node of the Internet of things can be flexibly virtually divided into areas, and the response speed and the communication flow degree of information are effectively guaranteed.
According to the method, the node to which the intelligent device belongs is determined by the user, the user directly manages the device without manually determining the management and control relationship between the node and the device, the association relationship between the node and the device is automatically established by the system, the user can manage the device by registering the user and the intelligent device, the intelligent device can be self-organized without user operation after being electrified and accessed to the system, and the association relationship between the user, the intelligent device and the node is established.
According to the method and the device, the nodes of the Internet of things corresponding to the intelligent device are divided into the optimal nodes, the suboptimal nodes and the standby nodes, and the intelligent device and the nodes of the Internet of things are matched one by one and dynamically matched by utilizing the sequence, so that the number of the nodes is greatly reduced, the dependency on the nodes is greatly reduced, and the problems of privacy authority and operation complexity of a user on the device are solved.
The intelligent equipment can select available nodes of the internet of things as communication nodes with the server periodically and selectively, the communication priority is selected according to the relation among the optimal nodes, the suboptimal nodes and the standby nodes, namely, the suboptimal nodes and the standby nodes can be replaced automatically for communication only when the optimal nodes are damaged, and the high efficiency and the high quality of communication are guaranteed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application.
FIG. 1 is a structural relationship diagram of a user, smart device and node of the present disclosure;
FIG. 2 is a structural relationship diagram of the intelligent devices and nodes of the present disclosure;
FIG. 3 is a diagram of a user sharing smart device permissions of the present disclosure;
the specific implementation mode is as follows:
the present disclosure is further described with reference to the following drawings and examples.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
In the present disclosure, terms such as "upper", "lower", "left", "right", "front", "rear", "vertical", "horizontal", "side", "bottom", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only relational terms determined for convenience in describing structural relationships of the parts or elements of the present disclosure, and do not refer to any parts or elements of the present disclosure, and are not to be construed as limiting the present disclosure.
In the present disclosure, terms such as "fixedly connected", "connected", and the like are to be understood in a broad sense, and mean either a fixed connection or an integrally connected or detachable connection; may be directly connected or indirectly connected through an intermediate. The specific meanings of the above terms in the present disclosure can be determined on a case-by-case basis by persons skilled in the relevant art or technicians, and are not to be construed as limitations of the present disclosure.
In order to solve the problems of reliability reduction of node increase and privacy of user authority, the method for device adaptive access and sharing in the internet of things system provided by the embodiment not only greatly reduces the number of nodes, but also greatly reduces the dependency on the nodes, and solves the problems of privacy authority and operation complexity of the user on the device.
The utility model provides an internet of things system, aims at effectively utilizing the basic station function of internet of things node, links a plurality of smart machine and server, forms data transmission channel. The information collected by the intelligent equipment can be automatically uploaded to the server through the wireless connection Internet of things node, a user can send user information to the server for storage through a client application program and can also send a terminal operation instruction through the client, the server can regenerate a series of background commands according to the information stored in a database, a rule base, application services and the like after receiving the instruction and sends the background commands to the intelligent equipment through the Ethernet connection Internet of things node, and the intelligent equipment makes corresponding responses to complete management and control of the equipment.
The system comprises a plurality of Internet of things nodes, a plurality of intelligent devices and a server, and a user can directly obtain the control authority of a specific device by logging in the Internet of things system. Wherein:
an internet of things node configured to wirelessly connect a number of devices via 433MHz and an intermediate "connector" to a server via ethernet. The node of the Internet of things can forward the data collected by the equipment to the server through protocol conversion; or the command issued by the server is transferred to the corresponding device through protocol conversion, and the device responds to the command, so that the authority management of the device is realized.
And the intelligent devices are set to be powered on and can automatically access the intelligent module of the system through 433MHz wireless connection. The intelligent module can collect a series of data in the environment, can also collect partial parameters of other non-intelligent devices related to the intelligent module, and uploads the collected data to the server through the corresponding Internet of things node; meanwhile, the intelligent module can also receive a server instruction forwarded from the node of the Internet of things, and the equipment authority management of the user is realized in response to the instruction.
The server is set to be capable of being interconnected with the nodes of the Internet of things and exchanging information with the client through the Ethernet, and is provided with a database, a rule base, application services and the like. The server stores the information input by the user at the client into the database, and performs algorithm operation in the rule base to form a series of new information, and the new information can be further stored in the database, forms an instruction to complete the management of the equipment or returns to an application service for data analysis application, client interface display and the like.
Of course, the rules, application services, etc. in the rule base used in the present embodiment may all use existing algorithms.
The database in the server is set to store information, including user information, equipment information and relationship information between the user equipment and the nodes, and also can store environment information uploaded by the intelligent equipment, electrical parameter information of the indoor electrical appliance, alarm information, SOE record information and the like.
The rule base in the server is set as an intelligent algorithm base containing a series of rules, and the function of the intelligent algorithm base is to perform algorithm and rule operation on information transmitted by an application program and equipment to form new instructions and information, and perform database storage or measure and control on indefinite equipment.
The application service in the server is set to communicate and interact with the nodes of the Internet of things and the client, and data uploaded by the nodes of the Internet of things can be processed, stored, analyzed, applied and displayed by the client.
The user accesses the Internet of things system, and the necessary operation is to perform user registration at a mobile phone end or a WEB client. When a user registers, the user needs to set information such as a user name, a password, a mailbox, a mobile phone number, remarks and the like on a registration interface and submit the information. The mobile phone end and the WEB client background are directly connected with the server, and information submitted by a user can be encrypted and then stored in a database of the server.
After the user logs in the registered user name at the client, the background of the client is automatically connected with the Internet of things system. The user can register certain intelligent equipment at the client, the login user establishes a confirmation relation with the intelligent equipment to obtain direct management authority of the equipment, and other users cannot obtain the management authority of the equipment through registration.
The registered intelligent equipment is electrified to be accessed into the Internet of things system to realize equipment self-adaptive response, the intelligent equipment automatically and periodically broadcasts node verification information, all the nodes receiving the broadcast carry out equipment identification, all the nodes identifying the equipment send equipment authentication information to the equipment, the equipment conditionally selects three nodes for communication, the three nodes are respectively an optimal node, a suboptimal node and a standby node, and implicit relations are confirmed between the equipment and the three nodes. The optimal node reports the implicit relationship between the equipment and the node to the server, and database storage, client display and the like are performed. The optimal node is used as a base station of the server management and control equipment, if the optimal node fails and cannot be connected with the server, the equipment and the server communicate and a second optimal node and a standby node are selected to serve as a first scheme. The device periodically sends broadcasts, and continuously and dynamically updates the implicit relationship and the database storage.
And the intelligent equipment accessed into the Internet of things system realizes the self-adaptive response of the equipment. The server broadcasts the node identification information automatically at variable time, all the nodes receiving the identification information start to automatically identify the surrounding equipment, and the nodes feed back the identified equipment information to the server and simultaneously feed back the relevant information of the node. The server records the feedback information duration of all the nodes, processes the feedback information, selects the communication nodes of the corresponding equipment as an optimal node, a suboptimal node and a standby node according to the processing result, stores the communication relationship of the equipment nodes into a database, and sends the information of the three nodes to the corresponding equipment through the optimal node to complete the implicit relationship confirmation of the equipment. The optimal node is used as a base station of the management and control equipment, and if the optimal node fails and cannot enable the server to be connected with the equipment, the equipment and the server can select a second optimal node and a standby node to communicate as a second scheme. The server periodically broadcasts the identification information to the nodes, and continuously and dynamically updates the hidden relation of the equipment and the database storage.
And when the screening results of the first scheme and the second scheme are consistent, determining the scheme as a final scheme.
However, if the results of the screening of the first and second protocols are not identical, one of the protocols may be selected as the final protocol in theory.
Of course, the two schemes can be combined to check inconsistent nodes.
For example, if the optimal node of the first solution is a, the second optimal node is B, the backup node is C, and the optimal node of the second solution is R, the second optimal node is E, and the backup node is C, the candidate node may be determined to be C, comparing A, R the number of smart devices currently configured by the two nodes or the total load. And selecting the node with the smaller parameter as the optimal node, and remaining one as the suboptimal node.
Alternatively, the two next best nodes B, E are re-compared, and one is selected as the next best node according to the above-mentioned selection principle.
As another possible embodiment, the device adaptive response is realized when the registered intelligent device is powered on to access the Internet of things system. Automatically, the nodes broadcast and discover the peripheral equipment, verify the relation communication, and record the feedback information and the feedback duration of each equipment. The node reports the received communication verification information and the node information of the node to a server, the server receives the feedback information and the node information of the equipment uploaded by the node, carries out operation processing on the feedback information and the node information, selects three nodes for communicating with the equipment according to the processing result, respectively comprises an optimal node, a suboptimal node and a standby node, confirms implicit relation between the equipment and the three nodes, and simultaneously carries out database storage, client display and the like. The optimal node is used as a base station of the server management and control equipment, and if the optimal node fails and cannot be connected with the server, the equipment and the server can select a suboptimal node and a standby node when communicating. The node periodically verifies the communication relation with the equipment and continuously and dynamically updates the implicit relation of the equipment and the database storage.
The user, the device and the node all have own unique user ID, device ID and node ID, one device can be managed and controlled by a plurality of nodes, one node can manage and control a plurality of devices, one user can manage and control a plurality of devices, but each device has unique user ownership, namely only belongs to one owner.
The only method for other users to obtain the authority management of the equipment is that the owner of the equipment shares the equipment, the user sharing can set timing and non-timing, sharing of a plurality of other users can be achieved, non-timing sharing of the authority management can be achieved, and the authority management comprises two types of measurable and controllable, namely measurable and uncontrollable.
The owner of the device can retrieve the control authority of the shared device in an indefinite way. And all users have the right to delete the damaged equipment, the unnecessary equipment or the resale equipment completely, and abandon the management authority of the equipment.
Specifically, as shown in fig. 1, the internet of things system includes a plurality of internet of things nodes, a plurality of intelligent devices and a server, wherein each internet of things node is connected to a plurality of intelligent devices and a server, each intelligent device is connected to three nodes, a database, a rule base, an application service and the like are deployed on the server and used for data storage, data processing, data application and the like, and a user interacts with the server through a client.
The nodes of the internet of things are 'intermediate transmitters' of the internet of things system and help to complete 'reliable transmission'. The main function is to link a plurality of intelligent devices and a server to form a transmission channel. And carrying out protocol conversion on the data uploaded by the intelligent equipment, reporting the data to the server for reprocessing, and forwarding an instruction or data issued by the server to the intelligent equipment for control and access after protocol conversion. All nodes in the Internet of things system are connected to all intelligent devices in the system, the receiving and sending requirements of the intelligent devices are processed, and the authority management of a server on each intelligent device is met; for a single internet of things node, relationships may or may not be established with multiple smart devices.
The intelligent device is a bottom intelligent module of the Internet of things system, and realizes the comprehensive perception of the Internet of things system. The intelligent module connected with the system can upload environmental data of the server, electrical parameter data and alarm information of the non-intelligent equipment connected with the intelligent module, and can receive the instruction of the server to complete state control of the non-intelligent equipment connected with the intelligent module. The intelligent equipment can select available nodes of the internet of things as communication nodes with the server periodically and selectively, and the communication priority is selected according to the relation among the optimal nodes, the suboptimal nodes and the standby nodes, namely, the suboptimal nodes and the standby nodes can be replaced automatically for communication only when the optimal nodes are damaged.
The server is provided with a database, a rule base, an application program and the like, serves as a control brain of the system, and completes intelligent analysis of the Internet of things system. The application program comprises an external communication part, a data analysis part and an internal communication part, wherein the external communication part is mainly used for receiving the sending information of the node and the client and sending the information to the node and the client. The external communication receives the information or data sent by the node or the client, the data analysis part analyzes and processes the information or data according to functions, the processed information or data is partially transmitted to the database for storage through the internal communication, part of the processed information or data is transmitted to the rule base through the internal communication for reprocessing, and the other part of the processed information or data is directly transmitted to the node through the external communication and then returned to the node for controlling equipment or returned to the client for interface display.
As shown in fig. 2, there may be multiple intelligent devices in the range that the nodes of the internet of things can recognize, and one intelligent device may also be recognized by multiple nodes. For this case, this embodiment solves the node selection problem, and eventually, the system is implemented to have only three nodes as nodes communicating with the server for one device.
Of course, in other embodiments, the factors such as response duration, load amount, signal strength, etc. may be considered comprehensively for selection, and the specific implementation scheme is as follows:
the first scheme is as follows: device selection mechanism
The intelligent equipment can be accessed to the Internet of things system after being powered on, the node verification message is automatically broadcasted after the intelligent equipment is accessed to the system, and all nodes capable of recognizing the equipment respond to the broadcast.
(1) The intelligent equipment selects three nodes responding to the broadcast most quickly according to the rapidity of the node to reply the broadcast to establish an implicit relationship. The intelligent device receives the broadcast reply firstly and establishes the broadcast reply as an optimal node, the node receiving the second broadcast reply is a suboptimal node, and the node receiving the third broadcast reply is a standby node; after receiving the three broadcast replies, the intelligent device can automatically ignore the subsequent node replies.
(2) The response message contains information such as the signal strength of the communication of the node, and the intelligent equipment receives the signal strength responded by the node.
The intelligent equipment receives all the response messages, immediately extracts and compares the signal intensity, sorts all the signal intensities, stores the three largest results in a descending order, ignores the fourth and smaller results, times T are timed when the equipment sends out broadcasts, neglects the response messages exceeding the times T, and abandons the processing.
And selecting three nodes with the strongest signals to establish an implicit relation, wherein the node with the strongest signals is the optimal node, the node with the second signal strength is the next optimal node, and the node with the third signal strength is a spare node.
(3) The response message contains load information of the node, the load refers to the quantity of implicit relations established between the node and other intelligent devices, and the quantity conversion adopts the following formula:
load capacity: n is the node as the optimal node 2+ the node as the next optimal node 1+ the node as the backup node 1.
The intelligent device stores the node which replies the message firstly and the load of the node according to the sequence of the received node response message, the node load of the later reply message is compared with the node load of the former, the operation is repeated, the intelligent device selects the three nodes with the lowest load to establish the implicit relation for storage, and other nodes are ignored and do not communicate. The node with the least load is the optimal node, the node with the second least load is the suboptimal node, and the node with the most load among the three nodes is the standby node. The device will count time T when broadcasting, and the response message exceeding the time T will be ignored and the process will be abandoned.
(4) The response message contains information such as the signal intensity M and the load N of the node communication, the intelligent device receives the node response message, calculates the distance between the node and the intelligent device, and the intelligent device recalculates the relationship between the node and the intelligent device and selects the three nodes to establish the implicit relationship. The calculation rule is as follows:
a ═ M × x + (y/N) × z (x is preferably 60%, y is preferably 40%, z is preferably 50)
The equipment stores the nodes of the response message and the A values corresponding to the nodes, compares the A values, selects the three maximum A values, and establishes an implicit relationship, an optimal node relationship, a suboptimal node relationship and a standby node relationship for the corresponding nodes in sequence. Respectively, the value A of the optimal node > the value A of the suboptimal node > the value A of the standby node.
The intelligent device stores the implicit relationship and preferentially selects the optimal node as a communication node, the optimal node reports the implicit relationship between the device and the three nodes to the server and stores the implicit relationship in the database, and when the server issues an instruction to the device, the server can also communicate with the designated node according to the node relationship of the device. In addition, the device does not change the node confirming the hidden relationship, periodically sends a broadcast signal, confirms the hidden relationship with the node once again every time, updates the database, deletes the previous hidden relationship and replaces the previous hidden relationship with the newly confirmed hidden relationship.
The second scheme is as follows: server selection mechanism
The intelligent equipment can be accessed to the Internet of things system by switching on the power supply. The server broadcasts the node identification information automatically at variable time, all the nodes receiving the identification information start to automatically identify the surrounding equipment accessed to the Internet of things system, and the nodes feed back the identified equipment information to the server and simultaneously feed back the relevant information of the nodes. The server verifies the equipment information such as equipment ID, equipment type and the like, automatically and temporarily creates a cache region for each equipment, and the server performs operation processing on the node information uploaded to the equipment in the temporary cache region of the equipment and automatically releases the cache region after confirming the implicit relationship between the equipment and the node.
(2) The node feeds back the equipment information to the server, the feedback information also contains information such as the signal intensity of the node communication, and the server (a certain cache region) receives the signal intensity of the node reported signal:
the information is stored in a temporary buffer area in descending order, the server counts T (T is preferably 10s) time when broadcasting is sent out, all feedback information returned after the T time is exceeded is ignored, and the processing is abandoned.
The server selects three nodes with the strongest signals, wherein the node with the strongest signals is the optimal node, the node with the second signal strength is the next optimal node, and the node with the third signal strength is the standby node.
(3) The feedback message contains load information of the node, the load is the number of the node establishing an optimal node relationship, a suboptimal node relationship and a standby node relationship with other intelligent devices, and a server (a certain cache area) receives the load information and converts the number by adopting the following formula:
and (3) conversion of quantity: n is the node as the optimal node 2+ the node as the next optimal node 1+ the node as the backup node 1.
The server converts the number of the nodes which report the messages first and the number of the nodes into N according to the sequence of the messages reported by the received nodes, stores the number of the nodes which report the messages first, compares the number of the nodes which report the messages later with the number of the nodes which report the messages later, repeatedly selects three nodes with the minimum number of the nodes which are converted into N by the server, ignores other nodes and does not communicate. The node with the least N is an optimal node, the node with the least N times is a suboptimal node, and the node with the most N among the three nodes is a standby node. The server will count time T (T is preferably 10s) when broadcasting is sent out, all feedback information returned after the time T is exceeded will be ignored, and the processing is abandoned.
(4) The reporting message comprises information of the signal intensity M, the load quantity N and the like of the node communication, the server receives the node reporting message and replies a probe message which can be returned to the server again, the server records the time length t(s) of the probe message return, the distance between the node and the server is further calculated, the server recalculates the two relations and selects three nodes to establish an implicit relation with the equipment. The calculation rule is as follows:
a ═ M × x + (y/N) × z (x is preferably 60%, y is preferably 40%, z is preferably 50)
The server stores the nodes reporting the messages and the A values corresponding to the nodes, compares the A values, selects the three maximum A values, and establishes implicit relation, optimal node relation, suboptimal node relation and standby node relation between the corresponding node sequences and the equipment. Respectively, the value A of the optimal node > the value A of the suboptimal node > the value A of the standby node.
The server establishes communication relations between the selected three nodes and the equipment, stores the relations in a database, preferentially selects the optimal node as the communication node, simultaneously issues the communication relations to the equipment through the optimal node to confirm the implicit relations, and when the equipment reports data to the server, the equipment also communicates with the designated node according to the implicit relations of the equipment nodes. In addition, the server confirms that the communication relationship between the equipment and the node is not constant, the server periodically sends broadcast signals, the communication relationship between the equipment and the node is updated by the broadcast node every time, meanwhile, the database is updated, the implicit relationship is updated by the equipment, the previous implicit relationship is deleted, and the new confirmed implicit relationship is replaced.
Integrated selection mechanism
The intelligent equipment can be accessed to the Internet of things system by switching on the power supply. The node broadcasts and discovers peripheral equipment accessed to the Internet of things system, performs relationship verification communication, and replies to the broadcast by the equipment to obtain the equipment signal strength M1Feeding back to the node, and recording the feedback time t of each device by the node1(s) and comparing the feedback signal strength M of each device1Sequentially uploading to a server, and simultaneously uploading information of the node including the signal intensity M of the node2The time length t from the broadcast of the node to the information received by the server2(s) and the load amount of the node. The server stores the information of the same equipment uploaded by different nodes in a temporary cache area, and the temporary cache area is automatically released after the server confirms the communication relation of three nodes for one equipment.
(1) The server (a certain cache area) makes a selection according to the rapidity of the node reporting a certain equipment message, namely the time length from the broadcast of the node to the information received by the server, and selects three nodes with the fastest reporting. The first server receives the report message and sets the report message as an optimal node; the second server receives the report message and sets the report message as a suboptimal node; the standby node receives the third report message; after three nodes are selected, the server can automatically ignore the node information reported by the equipment later.
(2) The server (a certain buffer area) receives the node report message and respectively reports t1>Δt1And t2>Δt2(Δ t1、Δt2All the nodes are preferably 3s) to be ignored, and then the signal intensity M in the residual node reported information is calculated1And M2The sum of (1):
M=M1+M2
and sequencing the calculation results M, and selecting three nodes with the maximum M as an optimal node, a suboptimal node and a standby node, namely M of the optimal node is greater than M of the suboptimal node and M of the standby node is greater than M of the standby node. The server starts timing from the node reporting information of a certain device is received, and the node reporting information of the device after T time is automatically ignored.
(3) The server (a certain buffer area) receives the node report message and respectively reports t1>Δt1And t2>Δt2(Δ t1、Δt2All preferably 3s) node information. Calculating the average value Q of the load capacity in the residual node reported informationAveAnd the amount of the supported catalyst exceeds 2QAveThe node of (1) ignores. Finally, calculating the signal strength M in the residual node report information1And M2The sum of (1): m is M1+M2
And sequencing the calculation results M, and selecting three nodes with the maximum M as an optimal node, a suboptimal node and a standby node, namely M of the optimal node is greater than M of the suboptimal node and M of the standby node is greater than M of the standby node. The server starts timing from the node reporting information of a certain device is received, and the node reporting information of the device after T time is automatically ignored.
The server establishes communication relations between the selected three nodes and the equipment, stores the relations in a database, preferentially selects the optimal node as the communication node, simultaneously issues the communication relations to the equipment through the optimal node to confirm the implicit relations, and when the equipment reports data to the server, the equipment also communicates with the designated node according to the implicit relations of the equipment nodes. In addition, the server confirms that the communication relationship between the equipment and the node is not constant, the node periodically sends a broadcast signal, the broadcast node reports the broadcast signal to the server once again every time, the server confirms the communication relationship between the equipment and the node, meanwhile, the database is updated, the hidden relationship is updated by the equipment, the previous hidden relationship is deleted, and the hidden relationship is replaced by the newly confirmed hidden relationship. As shown in fig. 3, the user has direct management authority for the device, and can share, cancel sharing, and delete the device.
Before a user obtains direct management of equipment, user registration is required to be carried out on a client before using a system, the user sets information such as a user name, a password, a mailbox, a mobile phone number, remarks and the like on a client registration interface and submits the information, and a server encrypts and stores user information into a database; the user name and the mobile phone number are required to be unique, the mobile phone number is used by the user at present and used for logging in an account or retrieving a password, and the remark information is other information.
Each intelligent device shell is marked with a unique device verification code and device two-dimension code information, and after the user successfully registers, the user logs in the client by using a user name, so that the device registration can be carried out at the client. The mobile terminal of the mobile phone can perform code scanning registration and verification code typing registration, and the WEB client can only perform verification code typing registration. When the user registers the device, the server can automatically compare the information in the database, and the device can only be registered by one user at the same time, namely only one owner is registered at any time. The login user establishes a confirmation relation with the intelligent device to obtain direct management authority of the device, the server stores the confirmation relation between the user and the device in a database, and other users cannot obtain the management authority of the device through registration.
The user, the device and the node all have own unique user ID, device ID and node ID, one device can be managed and controlled by a plurality of nodes, one node can manage and control a plurality of devices, one user can manage and control a plurality of devices, but each device has unique user ownership, namely only belongs to one owner.
The only method for other users to obtain the device authority management is that the device owner shares the device, the user sharing can set timing and non-timing, sharing of a plurality of other users can be achieved, non-timing sharing of the authority management can be achieved, and the authority management comprises two modes of measurable and controllable, and measurable and uncontrollable. After the user shares the equipment, the server automatically stores the sharing relation in the database, and other users obtain part of management authority of the equipment. The owner of the device can retrieve the control authority of the shared device in an indefinite manner, and after the authority is retrieved, the sharing relation in the database is deleted.
All users have the right to delete the damaged equipment, the unnecessary equipment or the resale equipment completely, and abandon the management authority of the equipment. The deleted intelligent device is released from the confirmation relation with the user, the database deletes the confirmation relation, and the intelligent device regains freedom and can be registered by other users.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. 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.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Although the present disclosure has been described with reference to specific embodiments, it should be understood that the scope of the present disclosure is not limited thereto, and those skilled in the art will appreciate that various modifications and changes can be made without departing from the spirit and scope of the present disclosure.

Claims (10)

1. An Internet of things equipment self-adaptive configuration system is characterized in that: the intelligent device comprises a plurality of Internet of things nodes, a plurality of intelligent devices and a server, wherein each Internet of things node is connected with a plurality of intelligent sockets, and the intelligent devices in corresponding areas are connected to the corresponding intelligent sockets;
the Internet of things nodes are wirelessly connected with the corresponding intelligent equipment, and the Internet of things nodes are connected with the server through the Ethernet;
each intelligent device broadcasts node verification information to the periphery, receives feedback verification information of the nodes of the Internet of things, and determines the optimal node, the suboptimal node and the standby node of the first scheme corresponding to each intelligent device according to the response time;
the server broadcasts node identification information to all nodes of the Internet of things, receives equipment identification information fed back by each node of the Internet of things and relevant information of the node, and selects an optimal node, a suboptimal node and a standby node of a second scheme corresponding to each intelligent equipment according to the response duration of each node;
the server is configured to synthesize the first scheme and the second scheme, determine a final optimal node, a secondary optimal node and a standby node corresponding to each intelligent device according to the intelligent device load quantity which each node has intervened, reconfigure the communication relation between each intelligent device and the corresponding Internet of things node according to the determined sequence, and issue data related to the control instruction to the corresponding intelligent device through the corresponding Internet of things node.
2. The adaptive configuration system for the internet of things equipment as claimed in claim 1, wherein: each intelligent device is managed and controlled by one or more nodes, each node manages and controls one or more devices, each user manages and controls one or more devices, and the ID of each node, the ID of each intelligent device and the ID of each user are all unique.
3. The adaptive configuration system for the internet of things equipment as claimed in claim 1, wherein: every intelligent device all has a two-dimensional code and a verification code that contain this equipment information, and two-dimensional code and verification code are all unique, and intelligent device and the implication relation of each thing networking node include three: the intelligent equipment comprises an optimal node relation, a suboptimal node relation and a standby node relation, wherein the optimal node is used as a base station of the server management and control equipment, and if the optimal node fails and the corresponding Internet of things node cannot be connected with the equipment, the intelligent equipment is configured to select the suboptimal node and/or the standby node for communication.
4. The adaptive configuration system for the internet of things equipment as claimed in claim 1, wherein: the server is provided with a rule base, a plurality of equipment management modes or methods are provided in the rule base, and when the state of some or a certain equipment meets a certain condition, the system automatically generates an equipment control instruction and sends the instruction to the node to execute corresponding equipment control.
5. The adaptive configuration system for the internet of things equipment as claimed in claim 1, wherein: each intelligent device and the user have unique ID, and each device has unique user ownership, namely only belongs to one owner; the only method for other users to acquire the authority management of the equipment is that the owner of the equipment shares the equipment, the user sharing can be set to be timed or untimed, the sharing of a plurality of other users is realized, and the authority management is realized, wherein the authority management comprises two modes of measurable and controllable and measurable and uncontrollable.
6. The adaptive configuration system for the internet of things equipment as claimed in claim 1, wherein: the server is provided with a database which is configured to store information, specifically including user information, equipment information, relationship information between the user equipment and the nodes, environment information uploaded by the intelligent equipment, electrical parameter information of the indoor electrical appliance, alarm information and SOE record information.
7. An Internet of things equipment self-adaptive configuration method is characterized by comprising the following steps: each intelligent device broadcasts node verification information to the periphery, receives feedback verification information of the nodes of the Internet of things, and determines the optimal node, the suboptimal node and the standby node of the first scheme corresponding to each intelligent device according to the response time;
the server broadcasts node identification information to all the nodes of the Internet of things, receives equipment identification information fed back by each node of the Internet of things and relevant information of the node, and selects an optimal node, a suboptimal node and a standby node of a second scheme corresponding to each intelligent equipment according to the response duration of each node;
and combining the first scheme and the second scheme, determining a final optimal node, a secondary optimal node and a standby node corresponding to each intelligent device according to the intelligent device load quantity which each node has intervened, reconfiguring the communication relation between each intelligent device and the corresponding Internet of things node according to the determined sequence, and issuing data related to the control instruction to the corresponding intelligent device through the corresponding Internet of things node for management and control.
8. The adaptive configuration method for the internet of things equipment as claimed in claim 7, wherein the adaptive configuration method comprises the following steps: the server periodically broadcasts the node verification message to the surrounding, repeatedly determines the relationship between the intelligent equipment and each node of the Internet of things, and dynamically updates the optimal, suboptimal and standby nodes corresponding to the intelligent equipment so as to ensure the stability of communication.
9. A computer-readable storage medium characterized by: a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor of the terminal device and executing the method for adaptively configuring the internet of things device as claimed in claim 7 or 8.
10. A terminal device comprising a processor and a computer readable storage medium, the processor being configured to implement instructions; a computer readable storage medium for storing a plurality of instructions characterized by: the instructions are adapted to be loaded by a processor and to perform the internet of things device adaptive configuration method of claim 7 or 8.
CN201910033190.XA 2019-01-14 2019-01-14 Self-adaptive configuration method and system for Internet of things equipment, storage medium and equipment Active CN109787825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910033190.XA CN109787825B (en) 2019-01-14 2019-01-14 Self-adaptive configuration method and system for Internet of things equipment, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910033190.XA CN109787825B (en) 2019-01-14 2019-01-14 Self-adaptive configuration method and system for Internet of things equipment, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN109787825A CN109787825A (en) 2019-05-21
CN109787825B true CN109787825B (en) 2021-09-03

Family

ID=66500534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910033190.XA Active CN109787825B (en) 2019-01-14 2019-01-14 Self-adaptive configuration method and system for Internet of things equipment, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN109787825B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11997635B2 (en) * 2019-04-29 2024-05-28 Sonicwall Inc. Establishing simultaneous mesh node connections
CN111464369B (en) * 2020-05-12 2021-06-22 郑成军 Internet of things configuration feedback method and system using first pre-configurator
CN111555923B (en) * 2020-05-12 2021-04-23 郑成军 Internet of things configuration feedback method and system based on cross-correlation coefficient and node weight

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331525A (en) * 2011-06-01 2012-01-25 山东建筑大学 Distributed type on-line harmonic detecting system based on Internet of construction equipment
CN104869603A (en) * 2015-05-08 2015-08-26 中山大学 ZigBee routing method suitable for wireless monitoring and controlling network
KR101555315B1 (en) * 2014-06-24 2015-09-24 이화여자대학교 산학협력단 Method for propagating network management data for energy-efficient iot network management and energy-efficient iot node apparatus
CN105052205A (en) * 2013-03-15 2015-11-11 思科技术公司 Providing a backup network topology without serviece disruption
CN105550539A (en) * 2015-12-14 2016-05-04 四川九成信息技术有限公司 Big data resource protection method
CN107483621A (en) * 2017-09-06 2017-12-15 罗慕信息科技(上海)有限公司 A kind of internet of things equipment connection method for automatically selecting service node
CN107566264A (en) * 2017-09-28 2018-01-09 北京千丁互联科技有限公司 A kind of means of communication based on tree network, node and communication system
CN108632293A (en) * 2018-05-16 2018-10-09 山东建筑大学 Architectural Equipment Internet of things system based on block chain technology and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331525A (en) * 2011-06-01 2012-01-25 山东建筑大学 Distributed type on-line harmonic detecting system based on Internet of construction equipment
CN105052205A (en) * 2013-03-15 2015-11-11 思科技术公司 Providing a backup network topology without serviece disruption
KR101555315B1 (en) * 2014-06-24 2015-09-24 이화여자대학교 산학협력단 Method for propagating network management data for energy-efficient iot network management and energy-efficient iot node apparatus
CN104869603A (en) * 2015-05-08 2015-08-26 中山大学 ZigBee routing method suitable for wireless monitoring and controlling network
CN105550539A (en) * 2015-12-14 2016-05-04 四川九成信息技术有限公司 Big data resource protection method
CN107483621A (en) * 2017-09-06 2017-12-15 罗慕信息科技(上海)有限公司 A kind of internet of things equipment connection method for automatically selecting service node
CN107566264A (en) * 2017-09-28 2018-01-09 北京千丁互联科技有限公司 A kind of means of communication based on tree network, node and communication system
CN108632293A (en) * 2018-05-16 2018-10-09 山东建筑大学 Architectural Equipment Internet of things system based on block chain technology and method

Also Published As

Publication number Publication date
CN109787825A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN109787825B (en) Self-adaptive configuration method and system for Internet of things equipment, storage medium and equipment
CN109756380B (en) Self-adaptive access and sharing method and system for Internet of things equipment
CN103973748B (en) Intelligent household system and monitoring method thereof
CN107566229A (en) The packet control process of intelligent domestic system
CN105338595B (en) Intelligent terminal Adding Way, apparatus and system based on intelligent terminal system
CN102395144B (en) Wireless access point upgrade method, system thereof and device thereof
CN108377202A (en) The distribution method, apparatus and system of smart machine
CN103713608A (en) Hierarchical network architecture of wireless Internet-of-Things home system and networking communication method thereof
DE112007001804T5 (en) Binding methods and devices in a building automation system
CN105392185B (en) A kind of networking method of smart machine, apparatus and system
CN105842715A (en) Beidou positioning and communication integrated universal system and configuration method thereof
CN109788057B (en) Dynamic virtual configuration method and system for Internet of things equipment
CN103889035A (en) Method and system facilitating communication between user equipment and external network
CN107682857A (en) Data sharing method, gateway device and the Zigbee network system of Zigbee network
CN101494919B (en) Route switching method for implementing wireless sensor network data query
CN110234175A (en) A kind of ad hoc network coordination approach, device, system, equipment and storage medium
CN105722089A (en) Equipment authentication method
CN110650456A (en) Fuzzy comprehensive evaluation-based cluster head election method in unmanned aerial vehicle self-organizing network
CN104539722B (en) A kind of collection method of remote short-haul connections manipulation data
CN106506573B (en) Intelligent home furnishing control method and system
CN109660966A (en) A kind of Research on Vehicle Remote Monitoring System Based on GPRS and method
CN102238571B (en) Apparatus of Internet of Things machine to machine/man (M2M) business processing, system and method thereof
CN105871950A (en) Method and system for managing industrial internet of things automatic access and data authorization
CN109890001A (en) A kind of data communications method based on cloud service, apparatus and system
CN107148045B (en) Data transmission control method and device for remote monitoring system of air conditioning unit

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