CN113395192A - Interconnection method, system and equipment - Google Patents

Interconnection method, system and equipment Download PDF

Info

Publication number
CN113395192A
CN113395192A CN202010171413.1A CN202010171413A CN113395192A CN 113395192 A CN113395192 A CN 113395192A CN 202010171413 A CN202010171413 A CN 202010171413A CN 113395192 A CN113395192 A CN 113395192A
Authority
CN
China
Prior art keywords
sub
area network
local area
devices
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.)
Granted
Application number
CN202010171413.1A
Other languages
Chinese (zh)
Other versions
CN113395192B (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.)
Hangzhou Ezviz Software Co Ltd
Original Assignee
Hangzhou Ezviz Software 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 Hangzhou Ezviz Software Co Ltd filed Critical Hangzhou Ezviz Software Co Ltd
Priority to CN202010171413.1A priority Critical patent/CN113395192B/en
Publication of CN113395192A publication Critical patent/CN113395192A/en
Application granted granted Critical
Publication of CN113395192B publication Critical patent/CN113395192B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2834Switching of information between an external network and a home network
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1881Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with schedule organisation, e.g. priority, sequence management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application provides an interconnection method, a system and equipment, wherein the method is applied to first main equipment, the first main equipment is equipment with the highest priority under a first local area network of an interconnection system, the first local area network also comprises a plurality of sub-equipment, and the method comprises the following steps: acquiring a reporting event sent by a first sub-device, wherein the first sub-device is one of a plurality of sub-devices under a first local area network; determining a response behavior corresponding to the reporting event and second sub-equipment executing the response behavior according to a preset rule; and sending an execution instruction to the second sub-device, wherein the execution instruction is used for instructing the second sub-device to execute the response behavior. According to the scheme provided by the embodiment of the application, rapid response of the reported event can be realized, a unified server is not needed, primary level reporting and response of the wide area network are assisted, and the time delay problem of the interconnected system based on the wide area network is solved.

Description

Interconnection method, system and equipment
Technical Field
The embodiment of the invention relates to the field of smart home, in particular to an interconnection method, system and equipment.
Background
With the development of social economy and science and technology, smart homes move into thousands of households, and great convenience is brought to human life.
In the existing intelligent home system, each intelligent home device is mainly connected with a cloud server through the internet to form intercommunication interconnection of the intelligent home. Under the intelligent home system, a user can preset intercommunication logic among the intelligent home devices, and then the intercommunication logic is uniformly allocated by the cloud server. For example, after the human body detection device detects a suspicious person, the suspicious person is reported to the cloud server, and the cloud server controls the camera to capture the image of the suspicious person; and after the gas detection device detects that the natural gas leaks, reporting to a cloud server, and controlling the gas pipeline electromagnetic valve to be closed by the cloud server, and the like.
The intelligent home system has a certain problem that as the distance between each intelligent home device and the cloud server is possibly far, the intelligent home devices need to transmit layer by layer through all levels of routes during information interaction, so that great time delay exists, the optimal window period can be missed when the intelligent home devices execute actions, for example, suspicious people leave when a camera is snapped, natural gas leakage is more when a gas pipeline electromagnetic valve is closed, and the like.
Disclosure of Invention
The embodiment of the application provides an interconnection method, system and device, which are used for solving the problem of time delay of an interconnection system based on a wide area network.
In a first aspect, an interconnection method is provided in an embodiment of the present application, and is applied to a first master device, where the first master device is a device with a highest priority in a first local area network of an interconnection system, the first local area network further includes a plurality of sub devices, each of the first master device and the plurality of sub devices includes a first multicast address, and the first master device and the plurality of sub devices establish a connection relationship through the first multicast address, where the method includes:
acquiring a reporting event sent by a first sub-device, wherein the first sub-device is one of a plurality of sub-devices under the first local area network;
determining a response behavior corresponding to the reporting event and second sub-equipment executing the response behavior according to a preset rule;
sending an execution instruction to the second sub-device, wherein the execution instruction is used for instructing the second sub-device to execute the response behavior.
In a possible implementation manner, determining, according to a preset rule, a response behavior corresponding to the reporting event and a second child device executing the response behavior includes:
determining the equipment information of the first sub-equipment and the reporting behavior executed by the first sub-equipment according to the reporting event;
and determining the response behavior and the second sub-device according to the preset rule, the device information of the first sub-device and the reporting behavior executed by the first sub-device.
In one possible implementation, the second sub-device is one of a plurality of devices under the first local area network; sending an execution instruction to the second sub-device, including:
and sending the execution instruction to the second sub-equipment through the first local area network.
In a possible implementation manner, the interconnection system further includes a server, and before acquiring the reporting event sent by the first child device, the method further includes:
receiving the preset rule from the server.
In a possible implementation manner, the interconnection system further includes a second local area network, and the second sub-device is one of the devices in the second local area network; sending an execution instruction to the second sub-device, including:
and sending the execution instruction to the server, wherein the execution instruction comprises the response behavior corresponding to the reporting event and the device information of the second sub-device executing the response behavior.
In a possible implementation manner, before obtaining the reporting event sent by the first sub-device, the method further includes:
receiving priority information of each sub-device under the first local area network through the first multicast address;
and establishing a connection relation with each sub-device under the first local area network according to the priority information of the first main device and the priority information of each sub-device under the first local area network.
In a possible implementation manner, establishing a connection relationship with each of the sub-devices under the first local area network according to the priority information of the first master device and the priority information of each of the sub-devices under the first local area network includes:
determining that the priority of the first master device is higher than the priority of each sub-device under the first local area network according to the priority information of the first master device and the priority information of each sub-device under the first local area network;
and establishing a connection relation with each sub-device under the first local area network.
In one possible implementation, the method further includes:
receiving heartbeat packet requests from the sub-devices, and respectively sending heartbeat packet responses to the sub-devices according to the heartbeat packet requests sent by the sub-devices;
and if the heartbeat packet request of a third sub-device in the plurality of sub-devices is not received within a preset time period, disconnecting the connection relation with the third sub-device.
In one possible implementation manner, when the first multicast address is included in a fourth sub-device, the method further includes:
establishing a connection relation with the fourth sub-equipment through the first multicast address, and receiving priority information of the fourth sub-equipment;
if the priority of the fourth sub-device is higher than the priority of the first main device according to the priority information of the first main device and the priority information of the fourth sub-device, sending the preset rule to the fourth sub-device, and sending a first message through the first multicast address, where the first message is used to indicate that each sub-device in the first local area network breaks the connection relationship with the first main device.
In a possible implementation manner, after receiving a second packet of a second master device in a second local area network, the method further includes:
acquiring priority information of second main equipment according to the second message;
if the priority of the second main equipment is higher than the priority of the first main equipment according to the priority information of the first main equipment and the priority information of the second main equipment, sending a third message through the first multicast address, wherein the third message is used for indicating that each sub-equipment in the first local area network breaks the connection relation with the first main equipment;
otherwise, establishing a connection relation with the second main device.
In one possible implementation, the method further includes:
acquiring the updated preset rule from the server;
and the second sub-equipment updates the response behavior corresponding to the reporting event and executes the updated response behavior according to the updated preset rule.
In a second aspect, an interconnection method is provided in an embodiment of the present application, and is applied to a server in an interconnection system, where the interconnection system includes a first master device and multiple sub-devices under a first local area network, where the first master device and the multiple sub-devices each include a first multicast address, and a connection relationship is established between the first master device and the multiple sub-devices through the first multicast address, and the method includes:
acquiring a preset rule from a terminal device, wherein the preset rule is used for indicating the response of each device in the interconnected system to each reported event;
and sending the preset rule to the first main device.
In a possible implementation manner, the interconnection system further includes a plurality of devices under a second local area network; the method further comprises the following steps:
acquiring an execution instruction from the first master device, where the execution instruction includes a response behavior corresponding to a reporting event and device information of a second slave device that executes the response behavior, where the reporting event is sent to the first master device by a first slave device, the first slave device is one of multiple slave devices in the first local area network, and the second slave device is a device in the second local area network;
and controlling the second sub-equipment to execute the response behavior according to the execution instruction.
In a possible implementation manner, if the first master device is disconnected from the plurality of child devices, the method further includes:
receiving a reporting event from the first sub-device;
determining a response behavior corresponding to the reporting event and a second sub-device executing the response behavior according to the preset rule;
controlling the second sub-device to perform the response action.
In a third aspect, an embodiment of the present application provides an interconnection system, including a server, a first master device and multiple sub-devices in a first local area network, where the first master device is a device with a highest priority in the first local area network, and both the first master device and the multiple sub-devices include a first multicast address, and a connection relationship is established between the first master device and the multiple sub-devices through the first multicast address, where:
the server is configured to send a preset rule to the first master device, where the preset rule is used to indicate a response of each device in the interconnection system to a reporting event;
the first master device is configured to acquire a reporting event sent by a first child device, determine a response behavior corresponding to the reporting event according to the preset rule, and execute a second child device of the response behavior, where the first child device is one of multiple child devices in the first local area network;
the first master device is further configured to send an execution instruction to the second child device, where the execution instruction is used to instruct the second child device to execute the response behavior.
In one possible implementation manner, for any child device i under the first local area network, the child device i is configured to:
sending the priority information of the sub-device i to other sub-devices through the first multicast address, and receiving the priority information sent by other sub-devices, wherein the other sub-devices are devices under the first local area network except the sub-device i;
and determining the sub-equipment with the highest priority as the first main equipment in the plurality of sub-equipment according to the priority information of each sub-equipment.
In one possible implementation, the second sub-device is one of a plurality of sub-devices under the first local area network; the first master device is specifically configured to:
acquiring a reporting event sent by the first sub-device, and determining a response behavior corresponding to the reporting event and a second sub-device executing the response behavior according to the preset rule;
and sending the execution instruction to the second sub-equipment through the first local area network, and controlling the second sub-equipment to execute the response behavior.
In a possible implementation manner, the internet system further includes a plurality of sub-devices in the second local area network; the second sub-device is one of a plurality of sub-devices in the second local area network; the first master device is specifically configured to:
acquiring a reporting event sent by the first sub-device, and determining a response behavior corresponding to the reporting event and a second sub-device executing the response behavior according to the preset rule;
sending an execution instruction to the server, wherein the execution instruction comprises a response behavior corresponding to the reporting event and equipment information of second sub-equipment executing the response behavior;
the server is further configured to receive the execution instruction, and control the second sub-device to execute the response behavior according to the execution instruction.
In a possible implementation manner, the system further includes a terminal device, the terminal device is connected to the server, wherein:
the terminal device is configured to send the preset rule to the server before the first sub-device sends the reporting event to the first main device;
the server is further configured to receive the preset rule from the terminal device.
In a possible implementation manner, the terminal device is further configured to update the preset rule, and send the updated preset rule to the server;
the server is further configured to receive the updated preset rule from the terminal device, and send the updated preset rule to the first master device.
In a possible implementation manner, before the first sub-device sends the reporting event to the first master device:
the first master device is further configured to send device information of the first master device to each of the child devices under the first local area network;
each sub-device under the first local area network is further configured to receive device information of the first main device, and establish a connection relationship with the first main device according to the device information of the first main device.
In a possible implementation manner, if the first master device is disconnected from the sub-devices under the first local area network, the sub-devices under the first local area network are further configured to:
and determining a new first main device, wherein the new first main device is the device with the highest priority in each sub-device.
In one possible implementation manner, the first master device is further configured to:
receiving heartbeat packet requests from the sub-devices, and respectively sending heartbeat packet responses to the sub-devices according to the heartbeat packet requests sent by the sub-devices;
and if the heartbeat packet request of a third sub-device in the plurality of sub-devices is not received within a preset time period, disconnecting the connection relation with the third sub-device.
In a possible implementation manner, when the first multicast address is included in the fourth sub-device, the first master device is further configured to:
establishing a connection relation with the fourth sub-equipment through the first multicast address, and receiving priority information of the fourth sub-equipment;
if the priority of the fourth sub-device is higher than the priority of the first main device according to the priority information of the first main device and the priority information of the fourth sub-device, sending the preset rule to the fourth sub-device, and sending a first message through the first multicast address, wherein the first message is used for indicating each sub-device under the first local area network to break the connection relation with the first main device;
each sub-device is further configured to disconnect the connection relationship with the first master device according to the first packet, and establish a connection relationship with the fourth sub-device through the first multicast address.
In a possible implementation manner, after receiving a second packet of a second master device in a second local area network, the first master device is further configured to:
acquiring priority information of second main equipment according to the second message;
if the priority of the second main equipment is higher than the priority of the first main equipment according to the priority information of the first main equipment and the priority information of the second main equipment, sending a third message through the first multicast address, wherein the third message is used for indicating that each sub-equipment in the first local area network breaks the connection relation with the first main equipment;
otherwise, establishing a connection relation with the second main device.
In a possible implementation manner, after each of the sub-devices under the first local area network disconnects from the first master device and before determining a new first master device, the first sub-device is further configured to:
sending the reporting event to the server;
the server is further configured to determine, according to the preset rule, a response behavior corresponding to the reporting event and a second child device executing the response behavior, and control the second child device to execute the response behavior.
In a fourth aspect, an embodiment of the present application provides an interconnection apparatus, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the interconnection method of any one of the first aspects or causes the at least one processor to perform the interconnection method of any one of the second aspects.
In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the interconnection method according to any one of the first aspect is implemented, or when a processor executes the computer-executable instructions, the interconnection method according to any one of the second aspect is implemented.
According to the interconnection method, the interconnection system and the interconnection device, firstly, a first main device obtains a reporting event sent by a first sub device under a first local area network, then, a response behavior corresponding to the reporting event and a second sub device executing the response behavior are determined according to a preset rule, and finally, an execution instruction is sent to the second sub device to instruct the second sub device to execute the response behavior. According to the scheme provided by the embodiment of the application, a large number of devices in a large interconnection system are configured to devices in small local area networks, one device is selected as a main device in any one local area network to process the reporting events of the sub-devices in the local area network, and due to the fact that the devices in the local area networks are connected through the local area networks, the devices in one local area network are close to each other, rapid response of the reporting events can be achieved, and the problem of time delay of the interconnection system based on the wide area network is solved without the aid of a unified server and primary level reporting and response of the wide area network.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of an intelligent home interconnection system;
fig. 2 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of an interconnection method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an interconnection system environment provided by an embodiment of the present application;
fig. 5 is a schematic diagram of selecting a master device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a device maintenance connection relationship provided in an embodiment of the present application;
fig. 7 is a schematic flowchart of an interconnection method according to an embodiment of the present application;
fig. 8 is a first scenario diagram of an implementation of the interconnection system according to the embodiment of the present application;
fig. 9 is a second execution scenario of the interconnection system according to the embodiment of the present application;
fig. 10 is a schematic structural diagram of an interconnection system provided in an embodiment of the present application;
fig. 11 is a schematic hardware structure diagram of an interconnection device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. 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 application.
An application scenario of the present application and the related concepts are first explained with reference to fig. 1.
Reporting an event: the intelligent equipment senses the external environment, and special events such as door lock opening and closing, human body induction, smoke induction and the like are generated, so that the intelligent household interconnection and intercommunication source is realized.
Response behavior: the intelligent equipment responds to the generated reporting event, executes the linkage function expected by the user, and is the terminal point of the intelligent home interconnection.
Master (central node): the special identity of the intelligent equipment is defined by software and is responsible for receiving the reported event, converting the reported event into a response behavior and sending the response behavior to the specified equipment for executing the response behavior, and the special identity is an interconnection and intercommunication intermediate point.
General intelligent home protocol: and the private protocols of interaction between the intelligent devices and the cloud server define events, actions, conditions and other services.
Full-function equipment: the intelligent device with better hardware capability (CPU with high main frequency, large memory, etc.) can become a central node.
Simplifying equipment: an intelligent device (such as a single chip microcomputer) with poor hardware capability cannot become a central node.
Fig. 1 is a schematic diagram of an intelligent home interconnection system, as shown in fig. 1, smart home devices (sensing control units, controlled home appliances) in a user environment access a monitoring and alarming intelligent control center 100 (i.e., a cloud server, hereinafter referred to as a control center 100) through the internet, a terminal device 101 also accesses the control 100, the smart home devices in the system include a controlled home appliance 102, an electric curtain 103, an electric window 104, light 105, a sound 106, a smoke sensing alarm sensor 107, a gas alarm 108, a gas pipeline electromagnetic valve 109, a visible doorbell 110, an infrared sensor 111, a door magnet 112 and an intelligent door lock 113, and the control center 100, the terminal device 101 and the smart home devices are combined together to form an intelligent home interconnection integrated system.
Under the integrated system, a user can control the smart home device by operating the APP on the terminal device 101, such as actively opening and closing the electric curtain 103, monitoring an image of the visible doorbell 110, opening and closing the gas pipeline electromagnetic valve 109, and the like; in addition, the sensing control unit can report an alarm message to the control center, and the control center is linked with the intelligent household equipment, such as the smoke sensing alarm sensor 107 which alarms and is linked with the opening of the electric curtain 103.
The disadvantage of the intelligent home interconnection system illustrated in fig. 1 is that:
firstly, the system relies on the wide area network to perform linkage between the intelligent devices, and a large time delay exists, which can cause the intelligent home devices to miss the optimal window when executing actions. In the system, the linkage between the intelligent devices needs to be uniformly allocated by the control center 100, for example, the gas alarm 108 alarms and sends a report event to the control center 100, the control center links the electric curtain 103 to open, and the interaction between the control center and the intelligent devices may need a primary-level route to realize, so that the interaction between the devices has obvious delay. Based on this, it may cause the linkage of the partial devices to lose meaning. For example, if the human body detection device detects a person, the camera is required to capture a face image, but the person is moving, and if the camera receives an instruction to capture the face image after a period of time, the person may have left.
Secondly, the linkage of the smart home devices depends on the control center 100, when the number scale of the devices in the system increases, the flow index processed by the control center increases, which may increase the burden of the server, and once the control center 100 stops responding (such as system upgrade, service restart, downtime, etc.), the linkage function between the devices will fail, which may cause serious consequences.
Finally, the scheme illustrated in fig. 1 focuses on the interconnection and interworking service related to the alarm, and does not embody a more general interconnection and interworking service system. If an interconnected user scene is changed, such as vehicle snapshot, license plate white and black lists entering and exiting a garage, the system may need to be redesigned.
In order to overcome the defects of the system illustrated in fig. 1, embodiments of the present application provide an interconnection method, apparatus, and system, which reduce time delay during inter-device linkage, solve the problem of excessive server load, and enable the system to be suitable for more interconnected and intercommunicated user scenarios.
Fig. 2 is a schematic view of an application scenario provided in an embodiment of the present application, and as shown in fig. 2, an interconnection system is shown, where the interconnection system includes a server 20, a terminal device 21, and a plurality of devices in the interconnection system, and fig. 2 illustrates that the plurality of devices include a gateway 22, a face detection device 221, and a camera 222 located in an area 201, and a gateway 23, a motorized window 231, and an alarm 232 located in an area 202.
In the interconnected system, each device may be connected to the server 20 via a wide area network. When the number of devices included in the interconnection system is large, a plurality of servers may be configured to share a load task, and data intercommunication among the plurality of servers is performed, and the example in fig. 2 is described by taking only one server as an example.
The terminal device 21 is connected to the server 20 through a wireless network, and configured to set a response of each device in the interconnected system to each reported event, for example, when the face detection device 221 detects a face, the alarm 232 may alarm. The terminal device 21 may set a response of each device in the internet system for each reported event through the APP, and send the response to the server 20.
In the current interconnection system, all the devices are connected to the server 20, and the linkage between the devices is scheduled uniformly by the server 20, which results in a significant delay feeling between the linkages. For example, when the face detection device 221 and the camera 222 are located in beijing, and the server 20 is located in shanghai, after the face detection device 221 detects a face, the face needs to report to the server 21 located in shanghai through a primary route, and after the server 21 determines a response behavior and the camera 222 executing the response behavior according to the reported event, the server sends an instruction to the camera 222 to control the camera 222 to capture a face image, which takes a long time. If the face detection device 221, the camera 222 and the gateway 22 are configured in a local area network, the gateway 22 processes the reporting event in the local area network. After the face detection device 221 detects a face, the face is reported to the gateway 22, the gateway 22 determines that the camera 222 executes a snapshot behavior according to the reported event, and then sends an instruction to the camera 222 for snapshot, so that the hysteresis can be obviously reduced.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 3 is a flowchart of an interconnection method provided in an embodiment of the present application, where the method is applied to a first master device, where the first master device is a device with a highest priority in a first local area network of an interconnection system, the first local area network further includes a plurality of sub devices, the first master device and the plurality of sub devices both include a first multicast address, and a connection relationship is established between the first master device and the plurality of sub devices through the first multicast address, as shown in fig. 3, the method may include:
s31, obtain a reporting event sent by a first sub-device, where the first sub-device is one of a plurality of sub-devices in the first local area network.
In the interconnection system, one or more local area networks may be provided according to actual needs, and a plurality of devices may be included in one local area network. In the embodiment of the present application, a device under a first lan in the interconnection system is taken as an example for description, and the first lan is any one lan in the interconnection system. The interconnection and intercommunication between the servers and the equipment in the interconnection system can be realized through a general intelligent home protocol.
One device is selected as a first master device in the first local area network, and other devices in the first local area network are used as sub-devices. The plurality of devices in the first local area network all comprise first multicast addresses, and each device encapsulates own device information and multicasts own device information to the first local area network through the first multicast addresses. The other devices including the first multicast address can receive the device information of the device, then the priority comparison between every two devices is carried out, the device with lower priority becomes one of the plurality of sub-devices, the device with higher priority continues to be compared with other devices, and finally the device with highest priority is taken as the first main device. After determining the first master device, the child devices in the first local area network establish a connection relationship with the first master device. When a first sub-device in a first local area network needs to report an event, a first main device receives the reporting event sent by the first sub-device, wherein the first sub-device is any one of a plurality of sub-devices in the first local area network.
And S32, determining a response behavior corresponding to the reporting event and a second sub-device executing the response behavior according to a preset rule.
After the first master device obtains the reporting event sent by the first child device, it needs to respond to the reporting event. Specifically, the first master device determines a response corresponding to the reporting event according to a preset rule, where the response includes a response behavior corresponding to the reporting event and a second child device executing the response behavior. In the embodiment of the present application, the preset rule includes a response of each device in the interconnection system to the reported event. For example, when the reporting event is that the face detection device detects a face, the response of the reporting event is that the camera captures a face image, the response behavior corresponding to the reporting event is that the face image is captured, and the second child device executing the response behavior is the camera; when the reported event is natural gas leakage, the response of the reported event is that the gas pipeline electromagnetic valve is closed, at the moment, the response behavior corresponding to the reported event is that the electromagnetic valve is closed, the second sub-device executing the response behavior is the gas pipeline electromagnetic valve, and the like. The preset rule is a preset rule, and a user can set the preset rule or modify the preset rule through the terminal equipment.
S33, sending an execution instruction to the second sub-device, where the execution instruction is used to instruct the second sub-device to execute the response behavior.
After determining a response behavior corresponding to the reporting event and a second sub-device executing the response behavior, the first main device sends an execution instruction to the second sub-device, and after receiving the execution instruction, the second sub-device executes the response behavior according to the execution instruction.
The interconnection method provided in the embodiment of the present application is applied to a first master device, where the first master device is a device under a first local area network of an interconnection system, the first local area network further includes a plurality of sub devices, the first master device is connected to the plurality of sub devices, the first master device first obtains a reporting event sent by the first sub device under the first local area network, then determines a response behavior corresponding to the reporting event and a second sub device executing the response behavior according to a preset rule, and finally sends an execution instruction to the second sub device to instruct the second sub device to execute the response behavior. According to the scheme provided by the embodiment of the application, a large number of devices in a large interconnection system are configured to devices in small local area networks, one device is selected as a main device in any one local area network to process the reporting events of the sub-devices in the local area network, and due to the fact that the devices in the local area networks are connected through the local area networks, the devices in one local area network are close to each other, rapid response of the reporting events can be achieved, and the problem of time delay of the interconnection system based on the wide area network is solved without the aid of a unified server and primary level reporting and response of the wide area network.
The embodiments of the present application will be described in detail with reference to specific examples.
Fig. 4 is a schematic environment diagram of an interconnection system provided in the embodiment of the present application, and as shown in fig. 4, includes a terminal device 41, a server 42, and devices under a first local area network and devices under a second local area network.
The user may configure the preset rule through the terminal device and send the preset rule to the server 42. After receiving the preset rule, the server 42 sends the preset rule to the master devices in the respective local area networks.
Optionally, after the user updates the preset rule through the terminal device, the server may receive the updated preset rule from the terminal device, and send the updated preset rule to the first master device. And after the first main device obtains the updated preset rule from the server, updating the response behavior corresponding to the reported event and the second sub-device executing the updated response behavior according to the updated preset rule.
For each local area network, a unique master device central node in the local area network is selected by a group of intelligent devices qualified as master devices, and the master device and other sub-devices form a logical network, as shown in a first local area network in fig. 4, a device 1 in the first local area network is the selected master device, and a device 2, a device 3, and a device 4 are sub-devices under the first local area network.
The determination of whether a device qualifies as a master device is mainly determined by the device itself. The device that qualifies as the master device is a full-function device, and the device that qualifies as the master device is a thin device. Devices qualified as master devices need to have certain processing capabilities, for example, devices such as a gateway and a computer can be master devices, but devices such as an alarm and a camera cannot be master devices. Alternatively, whether a device qualifies as a master device is not entirely dependent on the type of device. For example, a camera that simply has a photographing function cannot become the master, but a camera provided with a processor can become the master, and so on.
Each local area network, if there is no device qualified as a master, does not generate a master point and does not have a logical network. As shown in the second local area network in fig. 4, if neither the device 5 nor the device 6 under the second local area network is qualified as a master device, the second local area network does not have a master device.
Each local area network is an independent ecological environment, and intelligent devices in different local area networks cannot discover each other and cannot directly communicate with each other in service.
In the first local area network, the device 1 obtains a preset rule from the server 42, receives a report event sent by the device 4 in the local area network, generates a response behavior expected by the user, and sends the response behavior to the device executing the response behavior. When the device performing the response behavior is in the first local area network, the device 1 directly sends the response behavior to the device performing the response behavior, for example, when the device performing the response behavior is device 2 or device 3, the device 1 may directly issue an execution instruction to device 2 or device 3; when the device performing the response action is not in the first local area network and is sent to the server 42 by the device 1, the server 42 performs forwarding, for example, when the device performing the response action is the device 5 or the device 6, the server 42 needs to perform control.
In the second lan, if there is no master device, both the reporting events generated by the device 5 and the device 6 are sent to the server 42, and the server 42 analyzes the response behavior corresponding to the reporting event and the device executing the response behavior, and sends an execution instruction to the device executing the response behavior.
Before the server 42 sends the preset rule to the master devices in each local area network, the master devices in each local area network are selected. Specifically, when the first master device is not a master device in the first local area network, the first master device first receives priority information of each sub-device in the first local area network through the first multicast address, and establishes a connection relationship with each sub-device in the first local area network according to the priority information of the first master device and the priority information of each sub-device in the first local area network. Specifically, each device encapsulates its own device information and sends the device information to the first local area network in a multicast manner, where the device information includes priority information of the device, so that the priority information of each device can be received.
The first master device is a device with the highest priority under the first local area network, and according to the priority information of the first master device and the priority information of each sub-device under the first local area network, the priority of the first master device can be determined to be higher than the priority of each sub-device under the first local area network, and then the device information of the first master device is sent to each sub-device under the first local area network, so that the connection relation with each sub-device under the first local area network can be established.
Next, a process of selecting a master device in a local area network will be described with reference to fig. 5.
Fig. 5 is a schematic diagram of selecting a master device according to an embodiment of the present application, and as shown in fig. 5, the selecting of the master device involves three stages in total, which are an initial stage, a stable stage, and a change stage.
In the initial stage, no connection relation is established between the settings in the first local area network. Before the reporting event sent by the first sub-device is obtained, at this time, the first main device is not yet a main device under the first local area network, the first main device receives priority information of each sub-device under the first local area network, and then establishes a connection relationship with each sub-device under the first local area network according to the priority information of the first main device and the priority information of each sub-device under the first local area network.
Specifically, as shown in fig. 5, taking a master device under the first local area network as an example, in an initial stage, each device under the first local area network (device 1, device 2, and device 3 in fig. 5) encapsulates its own device information into an advertisement packet, and sends the notification packet to the first local area network in a multicast manner at regular time.
Each device receives the notification messages of other devices, if both sides are qualified to become the first main device, the priority information of both sides is compared, and the opposite side is informed of the election result of the first main device. The priority information of each device is related to the device information, and is generally determined by the type of the device. For example, the gateway has priority over the camera, the computer has priority over the alarm, and so on. If the two devices compare according to the priority information, the device with lower priority receives the election failure information and becomes a sub-device under the first local area network, and the device with higher priority continues to compare with other devices.
Each device receives the election result of the first main device, if the election result is obtained, the devices continue to conduct election comparison with other devices (receiving the notification message of other devices and conducting election comparison), if the election result is failed, the devices reset the cache of the devices, and restart to conduct election on the first main device with all other devices;
if a device wins all device elections within a period of time (no notification of election failure result is received, and all device elections with the received device advertisement message are wins), the device becomes the first master device, as shown in fig. 5, device 1 wins the elections with device 2 and device 3, and becomes the first master device. The device which becomes the first master device still can multicast the self information to the local area network at regular time.
In the stable phase, i.e. in the first local area network, the first master device has been elected, the other devices become sub-devices under the first local area network, and each sub-device and the first master device construct a stable logical network.
In this stage, each sub-device in the first local area network establishes a connection relationship with the first main device, does not become the first main device, and is not an intelligent device establishing a connection relationship with the first main device central node, is still in an "initial stage", and performs an election with the elected first main device until an election result is obtained, the election becomes a new first main device if the election is successful, and the election fails, and becomes a sub-device.
The first main device receives the notice message of a certain sub-device, initiates the connection with the sub-device, and totally has three interactions:
for the first time, the first main device generates a message (including the attribute of the first main device, a message key and session information) requesting authentication, and sends the message to the sub-device;
secondly, the sub-equipment receives the message requesting authentication, generates a message (including session information of the equipment) replying authentication, and sends the message to the first main equipment, so that the connection relation between the equipment and the first main equipment is established;
and thirdly, the first main device receives the reply authentication message of the target device and establishes the connection relationship between the first main device and the sub-device.
After the networking relationship is established between the sub-equipment and the first main equipment, the timing multicast of the notification message of the sub-equipment is stopped, the timing transmission of a heartbeat request to the first main equipment is started, and the connection relationship is maintained. Specifically, each sub-device sends a heartbeat packet request to the first main device according to a certain time interval, and the first main device receives the heartbeat packet request from each sub-device and sends a heartbeat packet response to each sub-device according to the heartbeat packet request sent by each sub-device.
If the heartbeat packet request of the third sub-device is not received within the preset time period, but the heartbeat packet requests of other sub-devices can be received, the third sub-device may be lost, and at this time, the first main device may disconnect the connection relationship with the third sub-device, where the third sub-device may be any one of the plurality of sub-devices.
Fig. 6 is a schematic diagram of a device maintenance connection relationship provided in an embodiment of the present application, and as shown in fig. 6, the device maintenance connection relationship includes a first main device 60, a sub-device 61, a sub-device 62, and a sub-device 63, where the four devices are all devices under the same local area network, the first main device 60 is a main device under the local area network selected in a competitive manner, and the other three devices are sub-devices under the local area network. After the connection relationship is established between the sub-device 61, the sub-device 62, and the sub-device 63 and the first main device 60, the sub-device 61, the sub-device 62, and the sub-device 63 respectively send heartbeat packet requests to the first main device 60, and after receiving a heartbeat packet request sent by a certain sub-device, the first main device 60 sends heartbeat packet responses to the sub-device, so as to maintain the connection relationship between the first main device 60 and the sub-device. If the first master device 60 does not receive the heartbeat packet request of a certain child device, for example, the child device 61, within a certain period of time, and the first master device 60 can normally receive the heartbeat packet request sent by other child devices, the child device 61 may have been lost, and at this time, the first master device 60 releases the connection relationship with the child device 61. If the sub-device 61, the sub-device 62, and the sub-device 63 do not receive the response of the heartbeat packet sent by the first main device 60 within a certain period of time after sending the request of the heartbeat packet to the first main device 60, respectively, the first main device 60 may have been lost, at this time, the sub-device 61, the sub-device 62, and the sub-device 63 all release the connection relationship with the first main device 60, and a new first main device is selected again, where the new first main device is a device with the highest priority among the sub-devices. The method for re-determining the new first master device is the same as the method for initially determining the first master device, that is, each device sends its own device information to the local area network through the first multicast address, and then determines the first master device according to the priority of the devices in the device information.
The first main device repeatedly executes the steps to establish the connection relation with all other sub-devices in the local area network, and the new device can also quickly establish the connection relation when accessing the local area network. The first main device and the sub-devices in the first local area network mutually transmit interconnection contents, including reporting events, response behaviors and the like.
In the change stage, the originally stable logic network is greatly changed, such as the situation that the sub-device is lost, the original first main device is lost, the first main device conflicts, and the like, so that the dynamic adjustment and reconstruction of the logic network are caused, and the stable logic network needs to be constructed again.
When a sub-device (not the first main device) is lost, powered down or moved to other local area networks, the first main device does not receive the heartbeat packet request of the sub-device for a period of time, and the connection relation of the sub-device is removed, namely the sub-device does not exist in the logic network.
When the first main device is lost, such as a power failure or moves to other local area networks, each sub-device does not receive the heartbeat packet response of the first main device after a period of time, the connection relation with the first main device is removed, and each sub-device enters the initial stage again, namely multicast notification and election of the first main device.
First master equipment in the first local area network conflicts (user network changes, originally, equipment of different local area networks access the same local area network, and a plurality of central nodes exist), and the logic flow is as follows:
the first main device under the first local area network receives the multicast notification message of the main device originally under other local area networks, and then two or more main devices compete for selecting the main device under the first local area network according to the respective priority information.
That is, if the first master device receives the second packet of the second master device in the second lan, it indicates that the device in the second lan becomes a device in the first lan due to a network change, and at this time, two master devices exist in the first lan and only one master device exists in one lan, so that the first master device and the second master device need to compete and successfully compete to serve as the master device in the first lan.
Specifically, the first master device may obtain the priority information of the second master device according to the second packet of the second master device, and then determine, according to the priority information of the first master device and the priority information of the second master device, who is higher in priority of the first master device and the second master device. If the priority of the first main device is higher than that of the second main device, the second main device is used as a sub-device under the first local area network, the second main device can break the connection relation with the original sub-device under the second local area network, and package the device information of the second main device to be multicast into the first local area network, and the connection relation with the first main device is established. If the priority of the first master device is lower than that of the second master device, the second master device is used as a master device under the first local area network at this time, the first master device is used as a slave device under the first local area network, the first master device needs to transfer the relevant data of the master device to the second master device, and sends a third message through the first multicast address to indicate each slave device under the first local area network to disconnect the connection relation with the first master device.
Only one device between the first main device and the second main device can successfully race for the main device, and the main device in a certain local area network with failed race selection resets the state of the main device and is no longer used as the main device in the first local area network. The main device in a certain local area network with failed election firstly multicasts a message of 'the event that the main device releases the main device', and then enters the initial stage. The device which originally establishes the connection relation with the device can be disconnected with the device when receiving the message of the event that the device releases the main device or the heartbeat is overtime, and then the initial stage is entered.
Finally, only one device wins election and becomes the only first main device in the first local area network. And finally, establishing a new connection relation between the remaining unique first main equipment and the equipment entering the initial stage, wherein the method for establishing the connection relation can be referred to the establishment process of the stable stage.
In a stable local area network, a new access device is accessed, the priority information is higher than that of the current first main device, and in order to enable the performance of interconnection and intercommunication of the local area network to be optimal, the new access device replaces the current first main device and becomes a new first main device.
For example, the fourth sub-device is a device newly added to the first local area network, and when the fourth sub-device joins the first local area network, the first main device already exists in the first local area network. After the fourth sub-device joins the first local area network, the fourth sub-device includes a first multicast address, the fourth sub-device can encapsulate its own device information and send its own device information to the first local area network in a multicast mode, so that a connection relation is established with the first main device through the first multicast address. After the connection relationship with the first master device is established, the first master device can acquire the priority information of the fourth sub device according to the device information of the fourth sub device.
Since the fourth sub-device is a newly added device in the first local area network, the priority comparison between the first master device and the fourth sub-device is performed at this time. If the priority of the fourth sub-device is higher than the priority of the first main device according to the priority information of the first main device and the priority information of the fourth sub-device, the fourth sub-device is used as a new main device under the first local area network, the first main device needs to send a preset rule to the fourth sub-device, and sends a first message through the first multicast address to indicate that each sub-device under the first local area network breaks the connection relation with the first main device. After the connection relationship between each sub-device and the first main device is disconnected, the fourth sub-device becomes a new main device, and therefore the connection relationship between each sub-device and the fourth sub-device is established. Each sub-device may send a reporting event to a fourth sub-device, and the fourth sub-device determines, according to a preset rule, a response behavior corresponding to the reporting event and a device executing the response behavior, so as to control the corresponding device to execute the response behavior.
If the priority of the fourth sub-device is lower than the priority of the first main device or the priority of the fourth sub-device is the same as the priority of the first main device, the main device under the first local area network is still the first main device, and the fourth sub-device becomes one of the plurality of sub-devices under the first local area network.
Specifically, for example, the new device D1 (with the highest priority) accesses the first local area network (a stable logical network), and performs the step of "initial stage".
The current first master C1, performs the step of "stabilization phase", incorporating D1 into the devices within the first local area network.
The current first master device C1 polls the priority information of all the first master devices at regular time, finds that the D1 has higher priority, and starts the process of transferring the first master devices:
device C1 transfers the necessary information for the first master device to device D1 (as current preset rules).
After the transfer is completed, the device C1 sends a request to the device D1 to confirm whether the device D1 is ready to become the first master, and the device D1 receives the request to check whether the buffer parameters are ready and returns a response success after the ready.
The device C1 receives the reply (ready) of the device D1, releases the state of the first main device, multicasts a message of 'the device releases the event of the first main device', and then enters the step of 'initial stage'; after receiving the multicast message or after the heartbeat is overtime, the networking member device group can remove the networking relation with the central node and enter the step of 'initial stage'.
Device D1 becomes the new first master after a delay of several seconds.
After the transfer is complete, device D1 performs the "stabilization phase" step to build a new logical network.
After the first master device obtains the preset rule and the reporting event sent by the first sub device, first, the device information of the first sub device and the reporting behavior executed by the first sub device are determined according to the reporting event. Then, the first master device determines a corresponding response behavior and a second slave device executing the response behavior according to the preset rule, the device information of the first slave device, and the reporting behavior executed by the first slave device.
The first sub-device is a device under the first lan and is under the same lan as the first master device, and the second sub-device may be a device under the first lan or a device under a second lan, where the second lan is a different lan from the first lan.
When the second sub-device is one of the devices under the first local area network, the first master device may send an execution instruction to the second sub-device directly through the first local area network, instructing the second sub-device to execute the response behavior.
The interconnection system further comprises a second local area network, when the second sub-device is one of the devices in the second local area network, the first main device sends an execution instruction to the server, the execution instruction comprises a response behavior corresponding to the reporting event and device information of the second sub-device executing the response behavior, and the second sub-device is instructed to execute the response behavior through forwarding of the server.
Fig. 7 is a flowchart of an interconnection method provided in an embodiment of the present application, where the method is applied to a server in an interconnection system, where the interconnection system includes a first master device and multiple sub devices under a first local area network, where the first master device and the multiple sub devices both include a first multicast address, and a connection relationship is established between the first master device and the multiple sub devices through the first multicast address, and the method may include:
and S71, acquiring a preset rule from the terminal equipment, wherein the preset rule is used for indicating the response of each equipment in the interconnected system to each reported event.
S72, sending the preset rule to the first master device.
In a possible implementation manner, the interconnection system further includes a plurality of devices under a second local area network; the method further comprises the following steps:
acquiring an execution instruction from the first master device, where the execution instruction includes a response behavior corresponding to a reporting event and device information of a second slave device that executes the response behavior, where the reporting event is sent to the first master device by a first slave device, the first slave device is one of multiple slave devices in the first local area network, and the second slave device is a device in the second local area network;
and controlling the second sub-equipment to execute the response behavior according to the execution instruction.
In a possible implementation manner, if the first master device is disconnected from the plurality of child devices, the method further includes:
receiving a reporting event from the first sub-device;
determining a response behavior corresponding to the reporting event and a second sub-device executing the response behavior according to the preset rule;
controlling the second sub-device to perform the response action.
The method illustrated in fig. 7 is a step executed by the server, and the steps of the server-side method are described in the foregoing embodiments, which are detailed in the foregoing embodiments and are not described again here.
A specific implementation scenario of the embodiment of the present application will be described below with reference to fig. 8 and 9.
Fig. 8 is a first execution scenario diagram of the interconnection system provided in the embodiment of the present application, and as shown in fig. 8, the execution scenario is a scenario in which a main device exists in a local area network, and the main device in the local area network controls interconnection and intercommunication among devices, and a server cooperates with the main device to work.
In the scenario illustrated in fig. 8, a stable logical network exists in the local area network, and the only master device establishes a connection relationship with other child devices. When a sub-device generates a reporting event (such as opening a door), the reporting event is sent to the main device through the local area network. The scenario illustrated in fig. 8 relates to 5 devices, which are a device that sends a reporting event (for example, a first sub-device in the foregoing embodiment), a master device (for example, a first master device under a first local area network in the foregoing embodiment), a device that performs a response action (the same local area network), a server, and a device that performs a response action (a cross-local area network), where the device that performs a response action is, for example, a second sub-device in the foregoing embodiment, and the second sub-device may be a device under the first local area network or a device under a second local area network.
The master equipment receives the reporting event and analyzes response behaviors (1 or more) according to a preset rule.
If the object of executing the response behavior is the master device itself, the master device executes; if the object obtained by executing the response behavior is the sub-device and the sub-device is a device in the same local area network as the main device, the main device sends an execution instruction to the sub-device through the local area network (linkage in the local area network); if the object of executing the response behavior is not the device in the local area network, the main device sends an execution instruction to the server through the wide area network, and the server transmits the execution instruction to the sub-devices (cross-local area network linkage).
Fig. 9 is a second execution scenario of the interconnection system provided in the embodiment of the present application, and as shown in fig. 9, the execution scenario is a scenario in which no master device exists in a local area network, and a server dominates interconnection and intercommunication among devices. The 5 devices involved in the scenario illustrated in fig. 9 are similar to those in fig. 8, and are not described here again.
When the main device does not exist in the local area network, the devices in the local area network have no connection relation. After a certain sub-device generates a reporting event, the reporting event is sent to a server, and after receiving the reporting event, the server analyzes a response behavior and a device executing the response behavior according to a preset rule, and sends an execution instruction to the device executing the response behavior to control a corresponding device to execute the response behavior.
The interconnection method provided in the embodiment of the present application, first, a first master device obtains a reporting event sent by a first sub device in a first local area network, then, according to a preset rule, determines a response behavior corresponding to the reporting event and a second sub device executing the response behavior, and finally, sends an execution instruction to the second sub device to instruct the second sub device to execute the response behavior. According to the scheme provided by the embodiment of the application, a large amount of equipment in a large interconnection system is configured to equipment in small local area networks, one equipment is selected as a main equipment in any one local area network to process the reporting event of the sub-equipment in the local area network, and because the equipment in the local area network is connected through the local area network, the equipment in the local area network is close to each other, rapid response of the reporting event can be realized, and the problem of time delay of the interconnection system based on the wide area network is solved without the help of a unified server and primary level reporting and response of the wide area network, so that the dependence degree on the server is greatly reduced, interconnection and intercommunication can be locally completed without passing through a cloud end, and the characteristic of distributed processing is achieved. Further, by introducing the master device, the master device does not belong to any specific device, so that the unbinding with the specific device can be realized, and the user is helped to realize the free combination of products. The interconnection and intercommunication of the local area network environment and the wide area network environment are fused, so that the interconnection and intercommunication of the local area network does not serve as a closed system, the interconnection and intercommunication of the wide area network are combined, the linkage of crossing the local area network among the interconnection systems can be realized, and the user environment can always experience the interconnection and intercommunication function of the latest result through the upgrade of the wide area network.
Fig. 10 is a schematic structural diagram of an interconnection system provided in an embodiment of the present application, and as shown in fig. 10, the interconnection system includes a server 101, a first master device 102 and multiple sub-devices under a first local area network, where the first master device 102 is a device with a highest priority under the first local area network, the first master device 102 and the multiple sub-devices both include a first multicast address, and the first master device 102 and the multiple sub-devices establish a connection relationship through the first multicast address, where:
the server 101 is configured to send a preset rule to the first master device 102, where the preset rule is used to indicate a response of each device in the interconnection system to a reporting event;
the first master device 102 is configured to obtain a reporting event sent by a first child device, determine, according to the preset rule, a response behavior corresponding to the reporting event, and execute a second child device 104 of the response behavior, where the first child device 103 is one of a plurality of child devices in the first local area network;
the first master device 102 is further configured to send an execution instruction to the second slave device 104, where the execution instruction is configured to instruct the second slave device 104 to perform the response action.
In one possible implementation manner, for any child device i under the first local area network, the child device i is configured to:
sending the priority information of the sub-device i to other sub-devices through the first multicast address, and receiving the priority information sent by other sub-devices, wherein the other sub-devices are devices under the first local area network except the sub-device i;
according to the priority information of each of the sub-devices, the sub-device with the highest priority is determined as the first master device 102.
In one possible implementation, the second sub-device 104 is one of a plurality of sub-devices under the first local area network; the first master device 102 is specifically configured to:
acquiring a reporting event sent by the first sub-device 103, and determining a response behavior corresponding to the reporting event and a second sub-device 104 executing the response behavior according to the preset rule;
sending the execution instruction to the second sub-device 104 through the first local area network, and controlling the second sub-device 104 to execute the response behavior.
In a possible implementation manner, the internet system further includes a plurality of sub-devices in the second local area network; the second sub-device 104 is one of a plurality of sub-devices in the second local area network; the first master device 102 is specifically configured to:
acquiring a reporting event sent by the first sub-device 103, and determining a response behavior corresponding to the reporting event and a second sub-device 104 executing the response behavior according to the preset rule;
sending an execution instruction to the server 101, where the execution instruction includes a response behavior corresponding to the reporting event and device information of the second child device 104 that executes the response behavior;
the server 101 is further configured to receive the execution instruction, and control the second sub-device 104 to execute the response behavior according to the execution instruction.
In a possible implementation manner, the system further includes a terminal device, the terminal device is connected to the server 101, wherein:
the terminal device is configured to send the preset rule to the server 101 before the first sub device 103 sends the reporting event to the first main device 102;
the server 101 is further configured to receive the preset rule from the terminal device.
In a possible implementation manner, the terminal device is further configured to update the preset rule, and send the updated preset rule to the server 101;
the server 101 is further configured to receive the updated preset rule from the terminal device, and send the updated preset rule to the first master device 102.
In a possible implementation manner, before the first sub-device 103 sends the reporting event to the first master device 102:
the first master device 102 is further configured to send device information of the first master device 102 to each of the sub-devices under the first local area network;
each sub-device under the first local area network is further configured to receive device information of the first main device 102, and establish a connection relationship with the first main device 102 according to the device information of the first main device 102.
In a possible implementation manner, if the first master device 102 disconnects from each of the sub-devices under the first local area network, each of the sub-devices under the first local area network is further configured to:
and determining a new first main device, wherein the new first main device is the device with the highest priority in each sub-device.
In one possible implementation, the first master device 102 is further configured to:
receiving heartbeat packet requests from the sub-devices, and respectively sending heartbeat packet responses to the sub-devices according to the heartbeat packet requests sent by the sub-devices;
and if the heartbeat packet request of a third sub-device in the plurality of sub-devices is not received within a preset time period, disconnecting the connection relation with the third sub-device.
In a possible implementation manner, when the first multicast address is included in the fourth sub-device, the first master device 102 is further configured to:
establishing a connection relation with the fourth sub-equipment through the first multicast address, and receiving priority information of the fourth sub-equipment;
if the priority of the fourth sub-device is higher than the priority of the first main device according to the priority information of the first main device and the priority information of the fourth sub-device, sending the preset rule to the fourth sub-device, and sending a first message through the first multicast address, where the first message is used to indicate that each sub-device in the first local area network breaks the connection relationship with the first main device 102;
each of the sub-devices is further configured to disconnect the connection relationship with the first master device 102 according to the first packet, and establish a connection relationship with the fourth sub-device through the first multicast address.
In a possible implementation manner, after receiving a second packet of a second master device in a second local area network, the first master device 102 is further configured to:
acquiring priority information of second main equipment according to the second message;
if it is determined that the priority of the second master device is higher than the priority of the first master device 102 according to the priority information of the first master device 102 and the priority information of the second master device, sending a third message through the first multicast address, where the third message is used to indicate each sub-device in the first local area network to disconnect from the first master device 102;
otherwise, establishing a connection relation with the second main device.
In a possible implementation manner, after each of the sub-devices under the first local area network disconnects from the first master device 102 and before determining a new first master device, the first sub-device 103 is further configured to:
sending the reporting event to the server 101;
the server 101 is further configured to determine, according to the preset rule, a response behavior corresponding to the reporting event and a second child device 104 that executes the response behavior, and control the second child device 104 to execute the response behavior.
Please refer to the above method embodiments for the execution steps of each device in the interconnection system provided in the embodiment of the present application, which are not described herein again.
Fig. 11 is a schematic diagram of a hardware structure of an interconnection device provided in an embodiment of the present application, and as shown in fig. 11, the interconnection device includes: at least one processor 111 and a memory 112. Wherein the processor 111 and the memory 112 are connected by a bus 113.
Optionally, the model determination further comprises a communication component. For example, the communication component may include a receiver and/or a transmitter.
In particular implementations, the at least one processor 111 executes computer-executable instructions stored by the memory 112 to cause the at least one processor 111 to perform the interconnection method as described above.
For a specific implementation process of the processor 111, reference may be made to the above method embodiments, which implement principles and technical effects similar to each other, and details of this embodiment are not described herein again.
In the embodiment shown in fig. 11, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the interconnection method as described above is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The division of the units is only a logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (28)

1. An interconnection method, applied to a first master device, where the first master device is a device with a highest priority under a first local area network of an interconnection system, the first local area network further includes a plurality of sub devices, each of the first master device and the plurality of sub devices includes a first multicast address, and the first master device and the plurality of sub devices establish a connection relationship through the first multicast address, where the method includes:
acquiring a reporting event sent by a first sub-device, wherein the first sub-device is one of a plurality of sub-devices under the first local area network;
determining a response behavior corresponding to the reporting event and second sub-equipment executing the response behavior according to a preset rule;
sending an execution instruction to the second sub-device, wherein the execution instruction is used for instructing the second sub-device to execute the response behavior.
2. The method of claim 1, wherein determining, according to a preset rule, a response behavior corresponding to the reporting event and a second sub-device executing the response behavior comprises:
determining the equipment information of the first sub-equipment and the reporting behavior executed by the first sub-equipment according to the reporting event;
and determining the response behavior and the second sub-device according to the preset rule, the device information of the first sub-device and the reporting behavior executed by the first sub-device.
3. The method of claim 2, wherein the second sub-device is one of a plurality of devices under the first local area network; sending an execution instruction to the second sub-device, including:
and sending the execution instruction to the second sub-equipment through the first local area network.
4. The method according to claim 2, wherein the interconnected system further includes a server, and before acquiring the reporting event sent by the first sub-device, the method further includes:
receiving the preset rule from the server.
5. The method of claim 4, wherein the interconnect system further comprises a second local area network, and wherein the second sub-device is one of a plurality of devices under the second local area network; sending an execution instruction to the second sub-device, including:
and sending the execution instruction to the server, wherein the execution instruction comprises the response behavior corresponding to the reporting event and the device information of the second sub-device executing the response behavior.
6. The method according to any of claims 1-5, wherein before acquiring the reporting event sent by the first sub-device, the method further comprises:
receiving priority information of each sub-device under the first local area network through the first multicast address;
and establishing a connection relation with each sub-device under the first local area network according to the priority information of the first main device and the priority information of each sub-device under the first local area network.
7. The method of claim 6, wherein establishing a connection relationship with each of the sub-devices under the first local area network according to the priority information of the first master device and the priority information of each of the sub-devices under the first local area network comprises:
determining that the priority of the first master device is higher than the priority of each sub-device under the first local area network according to the priority information of the first master device and the priority information of each sub-device under the first local area network;
and establishing a connection relation with each sub-device under the first local area network.
8. The method of claim 7, further comprising:
receiving heartbeat packet requests from the sub-devices, and respectively sending heartbeat packet responses to the sub-devices according to the heartbeat packet requests sent by the sub-devices;
and if the heartbeat packet request of a third sub-device in the plurality of sub-devices is not received within a preset time period, disconnecting the connection relation with the third sub-device.
9. The method of claim 7, wherein when the first multicast address is included in a fourth child device, the method further comprises:
establishing a connection relation with the fourth sub-equipment through the first multicast address, and receiving priority information of the fourth sub-equipment;
if the priority of the fourth sub-device is higher than the priority of the first main device according to the priority information of the first main device and the priority information of the fourth sub-device, sending the preset rule to the fourth sub-device, and sending a first message through the first multicast address, where the first message is used to indicate that each sub-device in the first local area network breaks the connection relationship with the first main device.
10. The method of claim 7, wherein after receiving a second message from a second master device on a second local area network, the method further comprises:
acquiring priority information of second main equipment according to the second message;
if the priority of the second main equipment is higher than the priority of the first main equipment according to the priority information of the first main equipment and the priority information of the second main equipment, sending a third message through the first multicast address, wherein the third message is used for indicating that each sub-equipment in the first local area network breaks the connection relation with the first main equipment;
otherwise, establishing a connection relation with the second main device.
11. The method according to claim 4 or 5, characterized in that the method further comprises:
acquiring the updated preset rule from the server;
and the second sub-equipment updates the response behavior corresponding to the reporting event and executes the updated response behavior according to the updated preset rule.
12. An interconnection method, which is applied to a server in an interconnection system, where the interconnection system includes a first main device and a plurality of sub devices under a first local area network, the first main device and the plurality of sub devices each include a first multicast address, and the first main device and the plurality of sub devices establish a connection relationship through the first multicast address, the method including:
acquiring a preset rule from a terminal device, wherein the preset rule is used for indicating the response of each device in the interconnected system to each reported event;
and sending the preset rule to the first main device.
13. The method of claim 12, wherein the interconnected system further comprises a plurality of devices under a second local area network; the method further comprises the following steps:
acquiring an execution instruction from the first master device, where the execution instruction includes a response behavior corresponding to a reporting event and device information of a second slave device that executes the response behavior, where the reporting event is sent to the first master device by a first slave device, the first slave device is one of multiple slave devices in the first local area network, and the second slave device is a device in the second local area network;
and controlling the second sub-equipment to execute the response behavior according to the execution instruction.
14. The method according to claim 12 or 13, wherein if the first master device is disconnected from the plurality of child devices, the method further comprises:
receiving a reporting event from a first sub-device;
determining a response behavior corresponding to the reporting event and a second sub-device executing the response behavior according to the preset rule;
controlling the second sub-device to perform the response action.
15. An interconnection system, comprising a server, a first master device and a plurality of sub-devices under a first local area network, wherein the first master device is a device with a highest priority under the first local area network, the first master device and the plurality of sub-devices both include a first multicast address, and the first master device and the plurality of sub-devices establish a connection relationship through the first multicast address, wherein:
the server is configured to send a preset rule to the first master device, where the preset rule is used to indicate a response of each device in the interconnection system to a reporting event;
the first master device is configured to acquire a reporting event sent by a first child device, determine a response behavior corresponding to the reporting event according to the preset rule, and execute a second child device of the response behavior, where the first child device is one of multiple child devices in the first local area network;
the first master device is further configured to send an execution instruction to the second child device, where the execution instruction is used to instruct the second child device to execute the response behavior.
16. The system of claim 15, wherein for any child device i under the first local area network, the child device i is configured to:
sending the priority information of the sub-device i to other sub-devices through the first multicast address, and receiving the priority information sent by other sub-devices, wherein the other sub-devices are devices under the first local area network except the sub-device i;
and determining the sub-equipment with the highest priority as the first main equipment in the plurality of sub-equipment according to the priority information of each sub-equipment.
17. The system of claim 15, wherein the second sub-device is one of a plurality of sub-devices under the first local area network; the first master device is specifically configured to:
acquiring a reporting event sent by the first sub-device, and determining a response behavior corresponding to the reporting event and a second sub-device executing the response behavior according to the preset rule;
and sending the execution instruction to the second sub-equipment through the first local area network, and controlling the second sub-equipment to execute the response behavior.
18. The system of claim 15, wherein the interconnect system further comprises a plurality of sub-devices under a second local area network; the second sub-device is one of a plurality of sub-devices in the second local area network; the first master device is specifically configured to:
acquiring a reporting event sent by the first sub-device, and determining a response behavior corresponding to the reporting event and a second sub-device executing the response behavior according to the preset rule;
sending an execution instruction to the server, wherein the execution instruction comprises a response behavior corresponding to the reporting event and equipment information of second sub-equipment executing the response behavior;
the server is further configured to receive the execution instruction, and control the second sub-device to execute the response behavior according to the execution instruction.
19. The system according to any one of claims 15-18, further comprising a terminal device, said terminal device being connected to said server, wherein:
the terminal device is configured to send the preset rule to the server before the first sub-device sends the reporting event to the first main device;
the server is further configured to receive the preset rule from the terminal device.
20. The system according to claim 19, wherein the terminal device is further configured to update the preset rule, and send the updated preset rule to the server;
the server is further configured to receive the updated preset rule from the terminal device, and send the updated preset rule to the first master device.
21. The system of claim 17, wherein before the first sub-device sends the reporting event to the first master device:
the first master device is further configured to send device information of the first master device to each of the child devices under the first local area network;
each sub-device under the first local area network is further configured to receive device information of the first main device, and establish a connection relationship with the first main device according to the device information of the first main device.
22. The system of claim 21, wherein if the first master device is disconnected from the sub-devices under the first local area network, the sub-devices under the first local area network are further configured to:
and determining a new first main device, wherein the new first main device is the device with the highest priority in each sub-device.
23. The system of claim 16, wherein the first master device is further configured to:
receiving heartbeat packet requests from the sub-devices, and respectively sending heartbeat packet responses to the sub-devices according to the heartbeat packet requests sent by the sub-devices;
and if the heartbeat packet request of a third sub-device in the plurality of sub-devices is not received within a preset time period, disconnecting the connection relation with the third sub-device.
24. The system of claim 16, wherein when the first multicast address is included in a fourth child device, the first master device is further configured to:
establishing a connection relation with the fourth sub-equipment through the first multicast address, and receiving priority information of the fourth sub-equipment;
if the priority of the fourth sub-device is higher than the priority of the first main device according to the priority information of the first main device and the priority information of the fourth sub-device, sending the preset rule to the fourth sub-device, and sending a first message through the first multicast address, wherein the first message is used for indicating each sub-device under the first local area network to break the connection relation with the first main device;
each sub-device is further configured to disconnect the connection relationship with the first master device according to the first packet, and establish a connection relationship with the fourth sub-device through the first multicast address.
25. The system according to claim 16, wherein after receiving the second packet of the second master device under the second lan, the first master device is further configured to:
acquiring priority information of second main equipment according to the second message;
if the priority of the second main equipment is higher than the priority of the first main equipment according to the priority information of the first main equipment and the priority information of the second main equipment, sending a third message through the first multicast address, wherein the third message is used for indicating that each sub-equipment in the first local area network breaks the connection relation with the first main equipment;
otherwise, establishing a connection relation with the second main device.
26. The system of claim 22, wherein after each of the sub-devices under the first local area network disconnects from the first master device and before determining a new first master device, the first sub-device is further configured to:
sending the reporting event to the server;
the server is further configured to determine, according to the preset rule, a response behavior corresponding to the reporting event and a second child device executing the response behavior, and control the second child device to execute the response behavior.
27. An interconnect device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
execution of computer-executable instructions stored by the memory by the at least one processor causes the at least one processor to perform the interconnection method of any one of claims 1 to 11 or causes the at least one processor to perform the interconnection method of any one of claims 12 to 14.
28. A computer-readable storage medium having stored thereon computer-executable instructions for implementing the interconnection method of any one of claims 1 to 11 when executed by a processor or for implementing the interconnection method of any one of claims 12 to 14 when executed by a processor.
CN202010171413.1A 2020-03-12 2020-03-12 Interconnection method, system and equipment Active CN113395192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010171413.1A CN113395192B (en) 2020-03-12 2020-03-12 Interconnection method, system and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010171413.1A CN113395192B (en) 2020-03-12 2020-03-12 Interconnection method, system and equipment

Publications (2)

Publication Number Publication Date
CN113395192A true CN113395192A (en) 2021-09-14
CN113395192B CN113395192B (en) 2023-03-21

Family

ID=77615693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010171413.1A Active CN113395192B (en) 2020-03-12 2020-03-12 Interconnection method, system and equipment

Country Status (1)

Country Link
CN (1) CN113395192B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095914A (en) * 2022-01-21 2022-02-25 武汉领普科技有限公司 Doorbell control method, receiver, transmitter and storage medium
CN114157993A (en) * 2021-11-19 2022-03-08 深圳市豪恩安全科技有限公司 Networking method for packet-based power system network
CN114338779A (en) * 2021-12-28 2022-04-12 深圳市欧瑞博科技股份有限公司 Intelligent gateway keep-alive control method, server, intelligent gateway and storage medium
CN116466592A (en) * 2023-03-28 2023-07-21 深圳市集贤科技有限公司 Multi-device linkage method and device, storage medium and intelligent device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301905A (en) * 2014-10-20 2015-01-21 上海电机学院 Ad-hoc network method and system for smart home on basis of election supervision strategy
CN104486175A (en) * 2014-12-11 2015-04-01 乐视致新电子科技(天津)有限公司 Intelligent household equipment linkage control method and router
CN106921542A (en) * 2015-12-25 2017-07-04 美的集团股份有限公司 Home gateway and intelligent domestic system
CN107302456A (en) * 2017-06-22 2017-10-27 深圳市丰巨泰科电子有限公司 A kind of method and device of data processing
CN107342875A (en) * 2016-04-28 2017-11-10 北京京东尚科信息技术有限公司 The method that main controlled node is produced in intelligence networks network
CN107483300A (en) * 2017-07-24 2017-12-15 广东美的环境电器制造有限公司 Inter-linked controlling method, system and the smart machine of multiple smart machines
CN108092862A (en) * 2017-12-15 2018-05-29 四川爱联科技有限公司 WiFi ad hoc network control systems based on Internet of Things
CN108418732A (en) * 2017-02-09 2018-08-17 佛山市顺德区美的电热电器制造有限公司 A kind of control method of household appliance and household appliance
CN109189698A (en) * 2018-08-10 2019-01-11 深圳绿米联创科技有限公司 Apparatus control method, device and Internet of things system
CN110545224A (en) * 2019-09-06 2019-12-06 杭州涂鸦信息技术有限公司 Device group synchronization control method, readable storage medium and computer device
CN110553354A (en) * 2018-06-04 2019-12-10 珠海格力电器股份有限公司 Control method and device of intelligent equipment
CN110687809A (en) * 2019-10-17 2020-01-14 珠海格力电器股份有限公司 Method and device for selecting master control equipment and equipment linkage system

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301905A (en) * 2014-10-20 2015-01-21 上海电机学院 Ad-hoc network method and system for smart home on basis of election supervision strategy
CN104486175A (en) * 2014-12-11 2015-04-01 乐视致新电子科技(天津)有限公司 Intelligent household equipment linkage control method and router
CN106921542A (en) * 2015-12-25 2017-07-04 美的集团股份有限公司 Home gateway and intelligent domestic system
CN107342875A (en) * 2016-04-28 2017-11-10 北京京东尚科信息技术有限公司 The method that main controlled node is produced in intelligence networks network
CN108418732A (en) * 2017-02-09 2018-08-17 佛山市顺德区美的电热电器制造有限公司 A kind of control method of household appliance and household appliance
CN107302456A (en) * 2017-06-22 2017-10-27 深圳市丰巨泰科电子有限公司 A kind of method and device of data processing
CN107483300A (en) * 2017-07-24 2017-12-15 广东美的环境电器制造有限公司 Inter-linked controlling method, system and the smart machine of multiple smart machines
CN108092862A (en) * 2017-12-15 2018-05-29 四川爱联科技有限公司 WiFi ad hoc network control systems based on Internet of Things
CN110553354A (en) * 2018-06-04 2019-12-10 珠海格力电器股份有限公司 Control method and device of intelligent equipment
CN109189698A (en) * 2018-08-10 2019-01-11 深圳绿米联创科技有限公司 Apparatus control method, device and Internet of things system
CN110545224A (en) * 2019-09-06 2019-12-06 杭州涂鸦信息技术有限公司 Device group synchronization control method, readable storage medium and computer device
CN110687809A (en) * 2019-10-17 2020-01-14 珠海格力电器股份有限公司 Method and device for selecting master control equipment and equipment linkage system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157993A (en) * 2021-11-19 2022-03-08 深圳市豪恩安全科技有限公司 Networking method for packet-based power system network
CN114157993B (en) * 2021-11-19 2022-12-06 深圳市豪恩安全科技有限公司 Networking method for packet-based power system network
CN114338779A (en) * 2021-12-28 2022-04-12 深圳市欧瑞博科技股份有限公司 Intelligent gateway keep-alive control method, server, intelligent gateway and storage medium
CN114095914A (en) * 2022-01-21 2022-02-25 武汉领普科技有限公司 Doorbell control method, receiver, transmitter and storage medium
CN116466592A (en) * 2023-03-28 2023-07-21 深圳市集贤科技有限公司 Multi-device linkage method and device, storage medium and intelligent device

Also Published As

Publication number Publication date
CN113395192B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN113395192B (en) Interconnection method, system and equipment
US9420044B2 (en) Leveraging system signaling service advertisements for application-layer discovery and connection management in an internet of things (IoT) environment
JP5364671B2 (en) Terminal connection status management in network authentication
CN109617731A (en) Adaptive gateway role configuration method and device under a kind of multi-gateway environment
EP3404872B1 (en) Device control method, network device, and network system
US8060588B2 (en) Home network apparatus and system for cooperative work service and method thereof
US20150006296A1 (en) NOTIFICATION DISMISSAL IN AN INTERNET OF THINGS (IoT) ENVIRONMENT
KR20170020311A (en) Wireless sensor network
US11909840B2 (en) Resource subscription method, device, and storage medium
CN109040295A (en) Determination method and device, terminal and the storage medium of abnormal broken line
CN111245677A (en) Communication abnormity reporting method and device, electronic equipment and storage medium
US20180176745A1 (en) M2m group and notification resource creation and information exchange methods therefor, and storage medium
CN109327544A (en) A kind of determination method and apparatus of leader node
CN114866365A (en) Arbitration machine election method and device, intelligent equipment and computer readable storage medium
US20170245133A1 (en) Technique for determining the presence of a peripheral device in a service area of a local network
Sivagami et al. Smart home automation system methodologies-a review
CN111274319A (en) State information query method and device
CN114884975B (en) Service message processing method and device, storage medium and electronic device
US20170094035A1 (en) Management method and management device
CN110830305B (en) Method and device for wireless device to access WIFI network, electronic device and storage medium
CN113691591A (en) Data transmission method, device and computer readable storage medium
WO2016082492A1 (en) Method for notifying original resource, and corresponding node
US20160080353A1 (en) Security controller sc restoration method and apparatus
US11005845B2 (en) Network device validation and management
JP7438471B1 (en) Equipment, communication systems, communication control methods and programs

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