CN108600302B - Control method and device of internet of things equipment, readable storage medium and computer equipment - Google Patents

Control method and device of internet of things equipment, readable storage medium and computer equipment Download PDF

Info

Publication number
CN108600302B
CN108600302B CN201810203372.2A CN201810203372A CN108600302B CN 108600302 B CN108600302 B CN 108600302B CN 201810203372 A CN201810203372 A CN 201810203372A CN 108600302 B CN108600302 B CN 108600302B
Authority
CN
China
Prior art keywords
control end
internet
control
role
things equipment
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
CN201810203372.2A
Other languages
Chinese (zh)
Other versions
CN108600302A (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.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN201810203372.2A priority Critical patent/CN108600302B/en
Publication of CN108600302A publication Critical patent/CN108600302A/en
Application granted granted Critical
Publication of CN108600302B publication Critical patent/CN108600302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

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

Abstract

The invention discloses a control method and device of an internet of things device, a readable storage medium and a computer device. The method comprises the following steps: determining whether the number of control terminals currently connected with the Internet of things equipment reaches a preset number; and if the control ends connected with the equipment of the Internet of things currently reach the preset number, the control request is used for establishing indirect connection between the new control end connected with the equipment of the Internet of things and the equipment of the Internet of things through any control end directly connected with the equipment of the Internet of things or through the control end directly connected with the equipment of the Internet of things at the earliest. By the scheme of the invention, when more control terminals exist, the intelligent Internet of things equipment can normally manage and control without any modification, and the user experience is improved.

Description

Control method and device of internet of things equipment, readable storage medium and computer equipment
Technical Field
The invention relates to the field of intelligent Internet of things, in particular to a control method and device of Internet of things equipment, a readable storage medium and computer equipment.
Background
The control method of the existing intelligent internet of things equipment comprises a local control method and a remote control method. When the control terminal and the intelligent internet of things device are in the same local control domain (for example, connected to the same physical port of the same router), the control terminal identifies the intelligent internet of things device through the automatic identification mechanism, so that connection is established with the intelligent internet of things device and the intelligent internet of things device is locally controlled. When the control terminal and the intelligent internet of things device are not in the same local control domain (for example, connected to different routers or different physical ports of the same router), both the control terminal and the intelligent internet of things device are remotely connected to the cloud platform, and the control terminal remotely controls the intelligent internet of things device through the cloud platform.
In the existing local control method, the connection established between the control terminal and the intelligent internet of things device may be a TCP connection, a virtual connection based on COAP, or other similar connection channels. When a plurality of control terminals which can be used for controlling some intelligent internet of things devices exist, each control terminal needs to independently identify the intelligent internet of things devices and respectively establish connection with the intelligent internet of things devices so as to manage and control the intelligent internet of things devices.
Firstly, since the resources of the control terminal are usually abundant, and the resources of the intelligent internet of things device are usually scarce (for example, the processing capability of the intelligent internet of things device is weak and the RAM resource is less compared with the control terminal), the maximum number of connections that the intelligent internet of things device can support is relatively small; moreover, because the existing local control method needs each control terminal to establish connection with the intelligent internet of things device (that is, each control terminal occupies one connection of the intelligent internet of things device independently), the problem that a certain intelligent internet of things device cannot be controlled simultaneously by too many control terminals is caused. Secondly, when the maximum number of connections that can be supported by the intelligent internet of things device is reached, the response of the intelligent internet of things device becomes very slow.
At least in order to solve the above problems, a new technical solution needs to be proposed.
Disclosure of Invention
In order to solve the problems in the prior art, a control method and device of an internet of things device, a readable storage medium and a computer device are provided.
According to an aspect of the present invention, there is provided a method for controlling an internet of things device, the method including:
determining whether the number of control terminals currently connected with the Internet of things equipment reaches a preset number;
and if the control ends connected with the equipment of the Internet of things currently reach the preset number, the control request is used for establishing indirect connection between the new control end connected with the equipment of the Internet of things and the equipment of the Internet of things through any control end directly connected with the equipment of the Internet of things or through the control end directly connected with the equipment of the Internet of things at the earliest.
Wherein, the method also comprises:
setting the role of the control end which is firstly directly connected with the Internet of things equipment as a main control end;
setting the role of a second control end directly connected with the Internet of things equipment as a standby control end;
and setting the roles of other control ends connected with the Internet of things equipment as secondary control ends.
Wherein, the method also comprises:
and after the secondary control end establishes indirect connection with the Internet of things equipment through the main control end, controlling the main control end to transmit the information of the Internet of things equipment to the secondary control end.
The method further comprises the following steps of resetting the role of the control end through at least one of the following modes:
determining whether a control end identified as a main control end exists in a control end list, if so, selecting a control end from the control ends identified as the main control end, setting the role of the selected control end as the main control end, and if not, setting the role of a standby control end as the main control end;
and determining whether a control end marked as a standby control end exists, if so, selecting a control end from the control ends marked as the standby control ends, setting the role of the selected control end as the standby control end, otherwise, selecting a control end from the secondary control ends, and setting the role of the selected control end as the standby control end.
Before determining whether the number of the control terminals currently connected with the internet of things equipment reaches a preset number, the method further comprises the following steps:
receiving a message of a new control terminal requesting to connect with the internet of things device in a multicast or broadcast mode, wherein the message comprises at least one of the following: unique identification information of the new control end, whether to participate in the role assignment algorithm, priority for the role assignment algorithm, role of the control end, and a list of adjacent control ends.
According to another aspect of the present invention, there is also provided a control apparatus for an internet of things device, the apparatus including:
the determining module is used for determining whether the number of the control ends currently connected with the Internet of things equipment reaches a preset number;
and the control module is used for controlling a new control end which is connected with the Internet of things equipment to establish indirect connection with the Internet of things equipment through any control end which is already directly connected with the Internet of things equipment or through the earliest control end which is directly connected with the Internet of things equipment when the number of the control ends which are currently connected with the Internet of things equipment reaches a preset number.
Wherein the control module is further configured to:
setting the role of the control end which is firstly directly connected with the Internet of things equipment as a main control end;
setting the role of a second control end directly connected with the Internet of things equipment as a standby control end;
and setting the roles of other control ends connected with the Internet of things equipment as secondary control ends.
Wherein the control module is further configured to:
and after the secondary control end establishes indirect connection with the Internet of things equipment through the main control end, the main control end is controlled to transmit the information of the Internet of things equipment to the secondary control end.
Wherein, the control module is also used for resetting the role of the control terminal by at least one of the following modes:
determining whether a control end identified as a main control end exists in a control end list, if so, selecting a control end from the control ends identified as the main control end, setting the role of the selected control end as the main control end, and if not, setting the role of a standby control end as the main control end;
and determining whether a control end marked as a standby control end exists, if so, selecting a control end from the control ends marked as the standby control ends, setting the role of the selected control end as the standby control end, otherwise, selecting a control end from the secondary control ends, and setting the role of the selected control end as the standby control end.
Wherein, the device still includes:
the receiving module is used for receiving a message requesting a new control end connected with the internet of things device in a multicast or broadcast mode before determining whether the number of the control ends currently connected with the internet of things device reaches a preset number, wherein the message comprises at least one of the following: unique identification information of the new control end, whether to participate in the role assignment algorithm, priority for the role assignment algorithm, role of the control end, and a list of adjacent control ends.
According to another aspect of the present invention, there is also provided a computer readable storage medium, on which a computer program is stored, which when executed by a processor, performs the steps of the above method.
According to another aspect of the present invention, there is also provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the program.
The invention sets three roles for the control end: the system comprises a main control end, a standby control end and a secondary control end, wherein the main control end and the standby control end can discover and connect and control the intelligent internet of things equipment by using a normal local control method, and the secondary control end controls the intelligent internet of things equipment through the main control end/the standby control end; when the intelligent internet of things equipment has more available connections, the secondary control end can also negotiate with the main control end to be directly connected with the intelligent internet of things equipment. Through the mechanism, the problem that the intelligent Internet of things equipment cannot be managed and controlled due to the fact that the connection of the intelligent Internet of things equipment by the multiple control ends is large is solved. By the scheme of the invention, when more control terminals exist, the intelligent Internet of things equipment can be normally managed and controlled without any modification, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a control method of an internet of things apparatus according to the present invention;
fig. 2 is a block diagram of a control apparatus of an internet of things device according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The invention provides a control method of an internet of things device, as shown in fig. 1, the method comprises the following steps:
step 101, determining whether the number of control terminals currently connected with the Internet of things equipment reaches a preset number;
and 102, if the control ends currently connected with the equipment of the internet of things reach the preset number, the control request is made for establishing indirect connection between the new control end connected with the equipment of the internet of things and the equipment of the internet of things through any control end already directly connected with the equipment of the internet of things or through the control end which is firstly directly connected with the equipment of the internet of things.
The preset number of the control terminals may be the number of ports that the internet of things device can be connected with the external control terminal, or may be the number set according to the processing capability of the internet of things device. When the equipment of the internet of things does not have available connection, namely when the control ends connected with the equipment of the internet of things reach the preset number, the new control end requesting to be connected with the equipment of the internet of things is indirectly connected with the equipment of the internet of things through the control end connected with the equipment of the internet of things. The control end used for indirect connection can be any control end directly connected with the internet of things equipment, or can be only the control end with the state as the main control. In general, the control end that is directly connected to the internet of things at the earliest is the control end in the state of master control.
In addition, the control end sends and receives the control end discovery message in a multicast or broadcast mode so as to acquire the information of other control ends. Therefore, a message requesting a new control end connected with the internet of things device is received in a multicast or broadcast mode. Wherein the control end discovery message may be periodically transmitted. The control-side discovery message includes but is not limited to: unique identification information (such as an IP address) of the control end; whether to participate in a control-end role assignment algorithm; priority for controlling the end role assignment algorithm; role of control end; a list of contiguous control ends.
Assuming that there are two control terminals C1 and C2, if C1 receives the discovery message of C2, C1 adds C2 to the list of C1 adjacent control terminals. If C1 finds C1 in the list of contiguous control ends of the C2 discovery message, then C2 is identifiable and available for the role assignment algorithm.
The method further comprises the following steps:
setting the role of the control end which is firstly directly connected with the Internet of things equipment as a main control end;
setting the role of a second control end directly connected with the Internet of things equipment as a standby control end;
and setting the roles of other control ends connected with the Internet of things equipment as secondary control ends.
The number of control terminals is not limited in the present invention, and in a local control domain, the role assignment result may be:
(1) if only one control end exists, the control end is a main control end;
(2) if two control ends exist, one control end is a main control end, and the other control end is a standby control end;
(3) if there are three or more control terminals, one is the main control terminal, one is the standby control terminal, and the other is the secondary control terminal.
The specific operations of each role, such as the main control end, the standby control end and the secondary control end, are as follows:
(a) operation of primary control terminal and standby control terminal
Identifying and connecting the internet of things equipment by using a normal local control method;
acquiring the number of connections supported by each new online device (if the device cannot provide the capability, the default device supports the connection of two control terminals);
waiting for the secondary control terminal to establish connection, synchronizing the device information and the maximum available connection number (or the current connection number) of the device;
and receiving a request of the secondary control terminal for directly connecting the equipment, and if the available connection number of the equipment is greater than zero (namely the current connection number does not reach a preset threshold value), allowing the secondary control terminal to directly connect the equipment. Otherwise, the secondary control terminal is not allowed to be directly connected with the Internet of things equipment, and the Internet of things equipment can be controlled only through the transfer of the main control terminal;
and maintaining the available connection number or the current connection number of each device (the main control terminal and the standby control terminal occupy two connections). And maintaining the connection mode of each secondary control terminal and each device. And each time the secondary control terminal successfully negotiates the direct connection equipment, subtracting 1 from the available connection number of the equipment (adding 1 to the current connection number). Adding 1 to the available connection number of each device directly connected with the secondary control terminal (subtracting 1 from the current connection number) whenever the connection of the secondary control terminal is interrupted;
when the equipment is on line or off line, the equipment state is synchronized to all the secondary control terminals;
and transferring the request command and the response between the secondary control terminal and the equipment which are not directly connected for control. And maintaining the corresponding relation between the request command and the equipment response. When any data of the equipment changes, the updated equipment data is synchronized to all the secondary control terminals which are not directly connected for control;
and setting whether the identification message participates in the distribution algorithm to be negative, and actively quitting the current role.
(b) Operation of the secondary control terminal
And establishing a connection relation with the main control terminal/the standby control terminal, and synchronizing the equipment information and the available connection number or the current connection number of the equipment respectively.
When the equipment is on line, the equipment negotiates the connection mode with the main control terminal/the standby control terminal, and records the negotiation result.
When the equipment is offline, if the equipment is directly connected with the Internet of things, the connection with the equipment must be disconnected.
According to the connection mode result of the equipment negotiated by the main control terminal, if the equipment is directly connected with the Internet of things equipment, otherwise, the equipment is controlled by the main control terminal through transfer.
The method further comprises the following steps: and after the secondary control end establishes indirect connection with the Internet of things equipment through the main control end, the main control end is controlled to transmit the information of the Internet of things equipment to the secondary control end.
Because the secondary control end is indirectly connected with the equipment of the Internet of things, the secondary control end acquires the information of the equipment of the Internet of things through the main control end connected with the secondary control end.
The method further comprises resetting the role of the control terminal by at least one of:
determining whether a control end identified as a main control end exists in a control end list, if so, selecting a control end from the control ends identified as the main control end, setting the role of the selected control end as the main control end, and if not, setting the role of a standby control end as the main control end;
and determining whether a control end marked as a standby control end exists, if so, selecting a control end from the control ends marked as the standby control ends, setting the role of the selected control end as the standby control end, otherwise, selecting a control end from the secondary control ends, and setting the role of the selected control end as the standby control end.
When the role of the control end needs to be reset, only the role of the main control end can be reset, only the role of the standby control end can be reset, or the roles of the main control end and the standby control end are reset. If the main control end and the standby control end are the same control end after the role is reset, the role distribution algorithm needs to be executed again.
The role assignment algorithm here is specifically as follows:
1) and storing the current main control terminal and the current standby control terminal (the result of the last execution of the allocation algorithm).
2) Putting the control terminals meeting the following conditions into a list: can participate in the allocation algorithm; other identified control terminals or the control terminal.
3) If the control terminal declares to be the standby control terminal in the list, selecting the standby control terminal according to the conditions of the highest priority and the lowest IP address in sequence. Otherwise, among all the control terminals which are declared to be the secondary control terminals, the standby control terminal is selected according to the conditions of the highest priority and the lowest IP address in sequence.
4) If the control terminal declares to be the main control terminal in the list, the main control terminal is selected according to the conditions of the highest priority and the lowest IP address in sequence. Otherwise, the standby control terminal just selected is allocated as the main control terminal.
5) And if the newly selected main control terminal and the standby control terminal are the same control end, re-executing the steps 3) and 4) to ensure that the standby control terminal and the main control terminal are not the same control end.
The role assignment may be performed at least one of:
when the control end is newly added into the local control domain, the initial role is set as the secondary control end, a Wait timer is started, and after the Wait timer is overtime, a role distribution algorithm is executed.
And the main control end or the standby control end responds to the overtime and executes the role distribution algorithm.
And if the setting of whether the identification message of the main control end or the standby control end participates in the allocation algorithm is changed to be negative, executing the role allocation algorithm.
And the main control end or the standby control end becomes unrecognizable, and the role allocation algorithm is executed.
And when the main control end or the standby control end does not exist and an identifiable control end is newly added, executing a role distribution algorithm.
After the role assignment is carried out again, if the role of the control end is changed, the following operations are carried out:
1) converting the primary control end into the standby control end
And clearing the corresponding relation between the maintained request command and the equipment response.
2) Converting primary control end/standby control end into secondary control end
And clearing the corresponding relation between the maintained request command and the equipment response.
The number of available connections or the current number of connections per device maintained is cleared.
And clearing the connection mode of each secondary control end and each device for maintenance.
All direct connections to the device are closed.
And closing all the connections established with the secondary control end.
3) The standby control end is converted into the main control end
And no operation is performed.
4) Secondary control end is converted into main control end/standby control end
And closing all the connections established with the original main control end/standby control end.
For example, after the active control end/the standby control end is changed, each control end may perform the following operations.
1) The primary control end changes
The original request command waiting for a response is cleared.
If the main control end is changed into the secondary control end, the connection with the main control end is closed, and the connection with the new main control end is established.
Recording the connection mode with the equipment negotiated with the new main control end, and disconnecting the direct connection of the equipment or establishing the direct connection of the equipment as required when the connection mode changes.
2) The spare control terminal changes
If the standby control end is changed into the secondary control end, the connection with other secondary control ends is closed, and the connection with the new main control end/standby control end is established.
And recording the connection mode with the Internet of things equipment negotiated with the new main control end/the standby control end.
The invention also provides a control device of the internet of things equipment, which comprises:
a determining module 201, configured to determine whether the number of control terminals currently connected to the internet of things device reaches a preset number;
and the control module 202 is configured to, when the control ends currently connected with the equipment in the internet of things reach a preset number, control a new control end, which requests to be connected with the equipment in the internet of things, to establish indirect connection with the equipment in the internet of things through any control end already directly connected with the equipment in the internet of things or through the control end which is originally directly connected with the equipment in the internet of things.
Wherein the control module 202 is further configured to:
setting the role of the control end which is firstly directly connected with the Internet of things equipment as a main control end;
setting the role of a second control end directly connected with the Internet of things equipment as a standby control end;
and setting the roles of other control ends connected with the Internet of things equipment as secondary control ends.
Wherein the control module 202 is further configured to:
and after the secondary control end establishes indirect connection with the Internet of things equipment through the main control end, the main control end is controlled to transmit the information of the Internet of things equipment to the secondary control end.
Wherein the control module 202 is further configured to reset the role of the control end by at least one of the following ways:
determining whether a control end identified as a main control end exists in a control end list, if so, selecting a control end from the control ends identified as the main control end, setting the role of the selected control end as the main control end, and if not, setting the role of a standby control end as the main control end;
and determining whether a control end marked as a standby control end exists, if so, selecting a control end from the control ends marked as the standby control ends, setting the role of the selected control end as the standby control end, otherwise, selecting a control end from the secondary control ends, and setting the role of the selected control end as the standby control end.
Wherein, the device still includes:
the receiving module is used for receiving a message requesting a new control end connected with the internet of things device in a multicast or broadcast mode before determining whether the number of the control ends currently connected with the internet of things device reaches a preset number, wherein the message comprises at least one of the following: unique identification information of the new control end, whether to participate in the role assignment algorithm, priority for the role assignment algorithm, role of the control end, and a list of adjacent control ends.
The invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above method.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method when executing the program.
The invention sets a main control end, a standby control end and a secondary control end for the control end, wherein the main control end and the standby control end can discover and connect and control the intelligent internet of things equipment by using a normal local control method, and the secondary control end controls the intelligent internet of things equipment through the main control end/the standby control end; when the intelligent internet of things equipment has more available connections, the secondary control end can also negotiate with the main control end to be directly connected with the intelligent internet of things equipment. Through the mechanism, the problem that the intelligent Internet of things equipment cannot be managed and controlled due to the fact that the connection of the intelligent Internet of things equipment by the multiple control ends is large is solved. By the scheme of the invention, when more control terminals exist, the intelligent Internet of things equipment can be normally managed and controlled without any modification, and the user experience is improved.
The above-described aspects may be implemented individually or in various combinations, and such variations are within the scope of the present invention.
It is to be noted that, in this document, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that an article or apparatus including a series of elements includes not only those elements but also other elements not explicitly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of additional like elements in the article or device comprising the element.
The above embodiments are merely to illustrate the technical solutions of the present invention and not to limit the present invention, and the present invention has been described in detail with reference to the preferred embodiments. It will be understood by those skilled in the art that various modifications and equivalent arrangements may be made without departing from the spirit and scope of the present invention and it should be understood that the present invention is to be covered by the appended claims.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (12)

1. A control method of an Internet of things device is characterized by comprising the following steps:
determining whether the number of control terminals currently connected with the Internet of things equipment reaches a preset number;
if the control ends connected with the Internet of things equipment currently reach the preset number, a control request is made for a new control end connected with the Internet of things equipment to establish indirect connection with the Internet of things equipment through any control end already directly connected with the Internet of things equipment or through the control end which is firstly directly connected with the Internet of things equipment;
before determining whether the number of control terminals currently connected with the internet of things device reaches a preset number, the method further includes:
and receiving a message of the new control terminal requesting to be connected with the Internet of things equipment in a multicast or broadcast mode.
2. The method of claim 1, wherein the method further comprises:
setting the role of the control end which is firstly directly connected with the Internet of things equipment as a main control end;
setting the role of a second control end directly connected with the Internet of things equipment as a standby control end;
and setting the roles of other control ends connected with the Internet of things equipment as secondary control ends.
3. The method of claim 2, wherein the method further comprises:
and after the secondary control end establishes indirect connection with the internet of things equipment through the main control end, controlling the main control end to transmit the information of the internet of things equipment to the secondary control end.
4. The method of claim 3, further comprising resetting the role of the control terminal by at least one of:
determining whether a control end identified as a main control end exists in a control end list, if so, selecting a control end from the control ends identified as the main control end, setting the role of the selected control end as the main control end, and if not, setting the role of a standby control end as the main control end;
and determining whether a control end marked as a standby control end exists, if so, selecting a control end from the control ends marked as the standby control ends, setting the role of the selected control end as the standby control end, otherwise, selecting a control end from the secondary control ends, and setting the role of the selected control end as the standby control end.
5. The method of claim 1,
the message includes at least one of: the unique identification information of the new control end, whether to participate in the role assignment algorithm, the priority for the role assignment algorithm, the role of the control end, and the list of adjacent control ends.
6. A control apparatus for an internet of things, the apparatus comprising:
the determining module is used for determining whether the number of the control ends currently connected with the Internet of things equipment reaches a preset number;
the control module is used for controlling a new control end which requests to be connected with the internet of things equipment to establish indirect connection with the internet of things equipment through any control end which is already directly connected with the internet of things equipment or through the control end which is firstly directly connected with the internet of things equipment when the number of the control ends which are currently connected with the internet of things equipment reaches the preset number;
and the receiving module is used for receiving a message requesting the new control end connected with the Internet of things equipment in a multicast or broadcast mode before determining whether the number of the control ends currently connected with the Internet of things equipment reaches a preset number.
7. The apparatus of claim 6, wherein the control module is further to:
setting the role of the control end which is firstly directly connected with the Internet of things equipment as a main control end;
setting the role of a second control end directly connected with the Internet of things equipment as a standby control end;
and setting the roles of other control ends connected with the Internet of things equipment as secondary control ends.
8. The apparatus of claim 7, wherein the control module is further to:
and after the secondary control end establishes indirect connection with the internet of things equipment through the main control end, controlling the main control end to transmit the information of the internet of things equipment to the secondary control end.
9. The apparatus of claim 8, wherein the control module is further configured to reset the role of the control terminal by at least one of:
determining whether a control end identified as a main control end exists in a control end list, if so, selecting a control end from the control ends identified as the main control end, setting the role of the selected control end as the main control end, and if not, setting the role of a standby control end as the main control end;
and determining whether a control end marked as a standby control end exists, if so, selecting a control end from the control ends marked as the standby control ends, setting the role of the selected control end as the standby control end, otherwise, selecting a control end from the secondary control ends, and setting the role of the selected control end as the standby control end.
10. The apparatus of claim 6, wherein the apparatus further comprises:
the message includes at least one of: the unique identification information of the new control end, whether to participate in the role assignment algorithm, the priority for the role assignment algorithm, the role of the control end, and the list of adjacent control ends.
11. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 5 when executing the program.
CN201810203372.2A 2018-03-13 2018-03-13 Control method and device of internet of things equipment, readable storage medium and computer equipment Active CN108600302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810203372.2A CN108600302B (en) 2018-03-13 2018-03-13 Control method and device of internet of things equipment, readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810203372.2A CN108600302B (en) 2018-03-13 2018-03-13 Control method and device of internet of things equipment, readable storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN108600302A CN108600302A (en) 2018-09-28
CN108600302B true CN108600302B (en) 2021-08-24

Family

ID=63626202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810203372.2A Active CN108600302B (en) 2018-03-13 2018-03-13 Control method and device of internet of things equipment, readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN108600302B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104481B (en) * 2020-08-06 2023-09-22 深圳丽泽智能科技有限公司 Equipment batch management method and device, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969637A (en) * 2009-07-28 2011-02-09 华为技术有限公司 Network connection management method and related device
CN102256113A (en) * 2011-08-03 2011-11-23 杭州华三通信技术有限公司 Control method and control device for forwarding media stream
CN104320494A (en) * 2014-11-15 2015-01-28 周成亮 Intelligent home doorbell system based on cloud technology and Internet of Things technology
CN104570967A (en) * 2013-10-17 2015-04-29 北大方正集团有限公司 Android system based remote control method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102221830B (en) * 2011-01-05 2013-12-18 盛保善 Electric appliance control equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969637A (en) * 2009-07-28 2011-02-09 华为技术有限公司 Network connection management method and related device
CN102256113A (en) * 2011-08-03 2011-11-23 杭州华三通信技术有限公司 Control method and control device for forwarding media stream
CN104570967A (en) * 2013-10-17 2015-04-29 北大方正集团有限公司 Android system based remote control method and system
CN104320494A (en) * 2014-11-15 2015-01-28 周成亮 Intelligent home doorbell system based on cloud technology and Internet of Things technology

Also Published As

Publication number Publication date
CN108600302A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
US11528167B2 (en) Method and device for implementing gateway cooperation, IoT gateway and storage medium
WO2020001045A1 (en) Address management method and device
CN108881059B (en) Controller role determination method, network switching equipment, controller and network system
CN110061855B (en) Service processing method, system and device
US20170048878A1 (en) Resource reuse method and apparatus
EP4164197A1 (en) Virtual ip management method and apparatus, electronic device and storage medium
US7933278B2 (en) Apparatus and method for providing network information
WO2022001732A1 (en) Cdn scheduling method, access device, cdn scheduler, and storage medium
CN111884825A (en) Fault processing method and device, terminal equipment and storage medium
CN103595638A (en) Method and device for MAC address learning
CN110798329A (en) Internet of things gateway access method, equipment and storage medium
CN108600302B (en) Control method and device of internet of things equipment, readable storage medium and computer equipment
CN114448866A (en) Network domain management and control method, network system, equipment and storage medium
CN112492030B (en) Data storage method, device, computer equipment and storage medium
CN113132498B (en) Message processing method, relay device, system and storage medium
CN112753276A (en) Role control method, device and equipment
CN114585026A (en) Frequency point switching method, terminal, base station and storage medium
CN112995349A (en) Address management method, server, and computer-readable storage medium
WO2022116767A1 (en) Data transmission method, user equipment, and storage medium
CN107431634A (en) A kind of method, apparatus and system of the interface established between VNFM
CN111083801B (en) Method for establishing X2 link, EMS, base station and storage medium
CN110635986B (en) Network access method and equipment
JP7336857B2 (en) CONTROL SYSTEM, CONNECTION STATE DETERMINATION METHOD AND PROGRAM
US20150200813A1 (en) Server connection apparatus and server connection method
WO2019237628A1 (en) Rcu disconnection determination method and system, apparatus, and computer storage medium

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