CN117240874A - Equipment linkage method and device, storage medium and electronic device - Google Patents

Equipment linkage method and device, storage medium and electronic device Download PDF

Info

Publication number
CN117240874A
CN117240874A CN202210635791.XA CN202210635791A CN117240874A CN 117240874 A CN117240874 A CN 117240874A CN 202210635791 A CN202210635791 A CN 202210635791A CN 117240874 A CN117240874 A CN 117240874A
Authority
CN
China
Prior art keywords
equipment
linkage
gateway
cloud server
under
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.)
Pending
Application number
CN202210635791.XA
Other languages
Chinese (zh)
Inventor
马小文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210635791.XA priority Critical patent/CN117240874A/en
Publication of CN117240874A publication Critical patent/CN117240874A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The application discloses a device linkage method and device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the device linkage method comprises the following steps: determining whether the first equipment and the cloud server are in a communication state or not through a gateway, wherein the gateway and the first equipment are located in the same network range; under the condition that the first equipment and the cloud server are in an un-communication state, acquiring a first equipment linkage rule corresponding to the first equipment according to a preset acquisition mode, wherein the preset acquisition mode comprises one of the following steps: the method comprises the steps of obtaining from a gateway locally, obtaining from a mobile terminal through the gateway, and obtaining from equipment log data under the network range of the gateway; and under the condition that the state data sent by the first equipment is acquired, performing equipment linkage with the first equipment linkage rule according to the state data. By adopting the technical scheme, the problem that equipment cannot be linked under the condition that the equipment cannot access an external network is solved.

Description

Equipment linkage method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart families, in particular to a device linkage method and device, a storage medium and an electronic device.
Background
Based on the internet, more and more smart families are configured with various living scenes according to a family living rule to improve comfort, but the existing scene rule, namely the equipment linkage rule, is stored in a cloud server, namely linkage control of intelligent equipment can be completed under the condition of being connected with an external network, if special conditions are met, the external network of the home is interrupted, or the home is powered on after the power failure, but the router cannot control equipment to carry out equipment linkage under the condition that the router is not connected with the internet, and for example, equipment in a caravan cannot carry out equipment linkage under the condition that the caravan is not on the internet.
Aiming at the problem that in the related art, equipment cannot be linked under the condition that the equipment cannot access an external network, no effective solution is proposed at present.
Accordingly, there is a need for improvements in the related art to overcome the drawbacks of the related art.
Disclosure of Invention
The embodiment of the application provides a device linkage method and device, a storage medium and an electronic device, which are used for at least solving the problem that device linkage cannot be performed between devices under the condition that the devices cannot access an external network.
According to an aspect of the embodiment of the present application, there is provided an apparatus linkage method, including: determining whether a first device and a cloud server are in a communication state or not through a gateway, wherein the gateway and the first device are located in the same network range; under the condition that the first equipment and the cloud server are in an un-communication state, acquiring a first equipment linkage rule corresponding to the first equipment according to a preset acquisition mode, wherein the preset acquisition mode comprises one of the following steps: the method comprises the steps of obtaining the device log data from the gateway locally, obtaining the device log data from the mobile terminal through the gateway and obtaining the device log data from the network range where the gateway is located; and under the condition that the state data sent by the first equipment is acquired, performing equipment linkage with the first equipment linkage rule according to the state data.
In an exemplary embodiment, determining, by the gateway, whether the first device is in communication with the cloud server includes: sending a detection message to a cloud server through the gateway; under the condition that a response message is acquired within a preset time, determining that the first equipment and the cloud server are in a communication state; and under the condition that the response message is not acquired within the preset time, determining that the first equipment and the cloud server are not in a communication state.
In an exemplary embodiment, when the preset acquiring manner is that the first device is acquired from the mobile terminal through the gateway, acquiring a first device linkage rule corresponding to the first device according to the preset acquiring manner includes: transmitting a first instruction to the mobile terminal through Bluetooth communication connection established between the gateway and the mobile terminal; and acquiring the first equipment linkage rule sent by the mobile terminal in response to the first instruction through the Bluetooth communication connection.
In an exemplary embodiment, when the preset acquiring manner is acquiring from the device log data under the network range where the gateway is located, acquiring, according to the preset acquiring manner, a first device linkage rule corresponding to the first device includes: acquiring the equipment log data locally stored by the gateway, wherein the equipment log data has states of different equipment at different moments and executed operations; determining a first device linkage rule according to a historical linkage event under the condition that the historical linkage event exists between the first device and the second device according to the device log data, wherein the historical linkage event comprises: after the first device sends first state data to the cloud server at a first moment, the second device obtains a first control instruction sent by the cloud server at a second moment, wherein the time interval between the first moment and the second moment is smaller than a preset threshold value, and the second device and the first device are located in the same network range.
In an exemplary embodiment, in a process of acquiring the first device linkage rule corresponding to the first device according to a preset acquiring manner, the method further includes: the method comprises the steps that under the condition that the state of the first equipment and the cloud server is changed from an un-communication state to a communication state through the gateway, and state data sent by the first equipment are obtained, the state data are sent to the cloud server; and forwarding the second control instruction to equipment to be controlled by the second control instruction under the condition that the second control instruction sent by the cloud server is acquired.
In an exemplary embodiment, after the first device linkage rule corresponding to the first device is acquired according to a preset acquiring manner, the method further includes: under the condition that the state of the first equipment and the cloud server is changed from an un-communication state to a communication state through the gateway, sending a determining instruction to the mobile terminal, wherein the determining instruction is used for determining an equipment linkage rule for determining equipment linkage of the first equipment to a target object; under the condition that a first reply instruction sent by the target object through the mobile terminal is acquired, determining the first equipment linkage rule as an equipment linkage rule for determining equipment linkage of the first equipment; and under the condition that a second reply instruction sent by the target object through the mobile terminal is acquired, determining a second equipment linkage rule in the cloud server as an equipment linkage rule for determining equipment linkage of the first equipment.
In an exemplary embodiment, performing device linkage with the first device linkage rule according to the state data includes: under the condition that the state data trigger equipment linkage is determined according to the first equipment linkage rule, determining target equipment to be subjected to equipment linkage and a target control instruction to be executed by the target equipment according to the first equipment linkage rule; and sending the target control instruction to the target equipment so as to enable the target equipment to execute target operation corresponding to the target control instruction.
According to another aspect of an embodiment of the present application, there is also provided an apparatus linkage, including: the determining module is used for determining whether the first equipment and the cloud server are in a communication state or not through a gateway, wherein the gateway and the first equipment are located in the same network range; the acquisition module is used for acquiring a first device linkage rule corresponding to the first device according to a preset acquisition mode under the condition that the first device and the cloud server are in an un-communication state, wherein the preset acquisition mode comprises one of the following steps: the method comprises the steps of obtaining the device log data from the gateway locally, obtaining the device log data from the mobile terminal through the gateway and obtaining the device log data from the network range where the gateway is located; and the linkage module is used for carrying out equipment linkage with the first equipment linkage rule according to the state data under the condition that the state data sent by the first equipment is acquired.
According to yet another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described device linkage method when run.
According to still another aspect of the embodiment of the present application, there is further provided an electronic apparatus including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the device linkage method through the computer program.
According to the method and the device for the equipment linkage, when the first equipment and the cloud server are in an un-communicated state, the first equipment linkage rule corresponding to the first equipment is obtained according to the preset obtaining mode, and when the state data sent by the first equipment is obtained, equipment linkage is carried out with the first equipment linkage rule according to the state data. The equipment linkage rule is obtained through the preset obtaining mode, and then the obtained equipment linkage rule can be used for equipment linkage, so that equipment linkage between the equipment can be performed under the condition that the equipment cannot access an external network, and the problem that equipment linkage cannot be performed between the equipment under the condition that the equipment cannot access the external network is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the application or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of a device linkage method according to an embodiment of the present application;
FIG. 2 is a flow chart of a device linkage method according to an embodiment of the present application;
FIG. 3 is a schematic view of a scenario according to an embodiment of the present application;
FIG. 4 is a block diagram of the apparatus linkage according to an embodiment of the present application;
fig. 5 is a block diagram of a device linkage according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of an embodiment of the present application, an apparatus linkage method is provided. The equipment linkage method is widely applied to intelligent digital control application scenes of whole houses such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (intelligent house) ecology and the like. Alternatively, in the present embodiment, the above-described device linkage method may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In order to solve the above-mentioned problem, in this embodiment, there is provided an apparatus linkage method, including but not limited to application in a gateway, fig. 2 is a flowchart of the apparatus linkage method according to an embodiment of the present application, the flowchart including the steps of:
step S202, determining whether a first device and a cloud server are in a communication state or not through a gateway, wherein the gateway and the first device are located in the same network range;
it should be noted that, fig. 3 is a schematic view of a scenario according to an embodiment of the present application, as shown in fig. 3, a local area network is built by a router, and a gateway and a first device are both located in the local area network, and because the gateway is a network bridge between the local area network where the router is located and an external network where a cloud server is located, information interaction between all devices in the local area network and the cloud server needs to pass through the gateway, and whether the first device in the local area network and the cloud server are in a communication state or not can be determined by the gateway.
As an alternative example, the above step S202 may be implemented by: sending a detection message to a cloud server through the gateway; under the condition that a response message is acquired within a preset time, determining that the first equipment and the cloud server are in a communication state; and under the condition that the response message is not acquired within the preset time, determining that the first equipment and the cloud server are not in a communication state.
The preset time may be 1 minute, that is, the gateway sends a detection message to the cloud server every one minute, so as to determine whether the gateway and the cloud server can communicate with each other, and further determine whether the first device and the cloud server are in a communication state.
Step S204, when it is determined that the first device and the cloud server are in an un-communication state, acquiring a first device linkage rule corresponding to the first device according to a preset acquisition mode, where the preset acquisition mode includes one of the following: the method comprises the steps of obtaining the device log data from the gateway locally, obtaining the device log data from the mobile terminal through the gateway and obtaining the device log data from the network range where the gateway is located;
as an alternative example, the first device includes, but is not limited to: intelligent home appliances such as refrigerators, air conditioners, intelligent door locks, and mobile terminals include, but are not limited to: a mobile phone, a tablet computer, etc.
As an alternative example, a first device linkage rule stored locally in the gateway may be obtained, where the device linkage rule stored locally in the gateway is preconfigured for a target object, and the target object includes, but is not limited to, a user using the first device.
As an optional example, in the case that the preset acquiring manner is that the first device linkage rule corresponding to the first device is acquired from the mobile terminal through the gateway, the acquiring, according to the preset acquiring manner, may be implemented by: transmitting a first instruction to the mobile terminal through Bluetooth communication connection established between the gateway and the mobile terminal; and acquiring the first equipment linkage rule sent by the mobile terminal in response to the first instruction through the Bluetooth communication connection.
That is, the gateway may establish a bluetooth communication connection with the mobile terminal, and further obtain, by using bluetooth, a first device linkage rule sent by the mobile terminal. After the mobile terminal obtains the first instruction, the mobile terminal can access the cloud server through the wireless network, and further send the obtained device linkage rule of the cloud server to the gateway, and the mobile terminal can also send the device linkage rule configured on the mobile terminal by the target object to the gateway.
As an optional example, in the case that the preset acquiring manner is acquiring from the device log data under the network range where the gateway is located, acquiring, according to the preset acquiring manner, the first device linkage rule corresponding to the first device may be implemented by the following steps S11 to S12:
step S11: acquiring the equipment log data locally stored by the gateway, wherein the equipment log data has states of different equipment at different moments and executed operations;
it should be noted that, the states of the devices in the local area network at different moments and the executed operations are all cached in the gateway, and then the gateway uploads the log data of the devices to the cloud server for caching under the condition of the communication of the external network.
Step S12: determining a first device linkage rule according to a historical linkage event under the condition that the historical linkage event exists between the first device and the second device according to the device log data, wherein the historical linkage event comprises: after the first device sends first state data to the cloud server at a first moment, the second device obtains a first control instruction sent by the cloud server at a second moment, wherein the time interval between the first moment and the second moment is smaller than a preset threshold value, and the second device and the first device are located in the same network range.
It should be noted that the second device is a different device from the first device, and the second device includes, but is not limited to: and intelligent household equipment such as refrigerators, air conditioners, intelligent door locks and the like. The historical linkage event can be that the temperature sensor sends the detected temperature of 30 degrees to the cloud server at the time of 10:00, and the cloud server sends a control instruction to the air conditioner at the time of 10:01 to open the air conditioner. The first device linkage rule can be determined according to the historical linkage event to control the air conditioner to be turned on under the condition that the temperature uploaded by the temperature sensor is 30 degrees.
Step S206, when the status data sent by the first device is obtained, performing device linkage with the first device linkage rule according to the status data.
As an alternative example, the above step S206 may be implemented by: under the condition that the state data trigger equipment linkage is determined according to the first equipment linkage rule, determining target equipment to be subjected to equipment linkage and a target control instruction to be executed by the target equipment according to the first equipment linkage rule; and sending the target control instruction to the target equipment so as to enable the target equipment to execute target operation corresponding to the target control instruction.
Optionally, taking the first device as an example of a temperature detector, the state data includes: the detected ambient temperature.
It can be understood that whether the state data triggers the device linkage can be determined according to the first device linkage rule, so that under the condition that the device linkage is determined to be triggered, the device for performing the device linkage and the target control instruction to be executed by the target device are determined, and the target device is controlled to execute the target control instruction so as to realize the device linkage.
Through the steps, under the condition that the first equipment and the cloud server are in an un-communication state, acquiring a first equipment linkage rule corresponding to the first equipment according to a preset acquisition mode, and under the condition that state data sent by the first equipment are acquired, performing equipment linkage with the first equipment linkage rule according to the state data. The equipment linkage rule is obtained through the preset obtaining mode, and then the obtained equipment linkage rule can be used for equipment linkage, so that equipment linkage between the equipment can be performed under the condition that the equipment cannot access an external network, and the problem that equipment linkage cannot be performed between the equipment under the condition that the equipment cannot access the external network is solved.
As an optional example, in the process of acquiring the first device linkage rule corresponding to the first device according to the preset acquisition mode, if the gateway determines that the state of the first device and the cloud server is changed from an un-communication state to a communication state, and acquires the state data sent by the first device, the state data is sent to the cloud server; and forwarding the second control instruction to equipment to be controlled by the second control instruction under the condition that the second control instruction sent by the cloud server is acquired.
It can be understood that if the gateway detects that the gateway can be connected with the external network in the process of acquiring the device linkage rule according to the preset acquisition mode, that is, the first device can communicate with the cloud server, the gateway sends the acquired state data of the first device to the cloud server, the cloud server determines the device to be subjected to device linkage and the corresponding control instruction according to the device linkage rule in the cloud, and sends the control instruction to the gateway, and the gateway forwards the control instruction to the device to be subjected to device linkage.
As an optional example, after the step S204 is performed, if it is determined that the state of the first device and the cloud server is changed from the non-communication state to the communication state through the gateway, a determining instruction is sent to the mobile terminal, where the determining instruction is used to determine, for the target object, a device linkage rule for determining that the first device performs device linkage; under the condition that a first reply instruction sent by the target object through the mobile terminal is acquired, determining the first equipment linkage rule as an equipment linkage rule for determining equipment linkage of the first equipment; and under the condition that a second reply instruction sent by the target object through the mobile terminal is acquired, determining a second equipment linkage rule in the cloud server as an equipment linkage rule for determining equipment linkage of the first equipment.
It should be noted that, if the gateway detects that the gateway can be connected to the external network after the first device linkage rule is obtained according to the preset obtaining mode, that is, the first device can communicate with the cloud server, the gateway may query the user through the mobile terminal, after obtaining the state data, use the first device linkage rule obtained according to the preset obtaining mode to perform device linkage, or forward the state data to the cloud server, and perform device linkage according to the second device linkage rule in the cloud server.
As an optional example, after the step S204 is performed, the audio collection module of the gateway may collect the audio of the area where the gateway is located, and perform device linkage according to the audio and the first device linkage rule.
It will be apparent that the embodiments described above are merely some, but not all, embodiments of the application. For better understanding of the above-mentioned device linkage method, the following description will explain the above-mentioned process with reference to the embodiments, but is not intended to limit the technical solution of the embodiments of the present application, specifically:
in an alternative embodiment, taking a home scenario as an example, a gateway device is required to be installed in a home, a voice module is built in the home, and a plurality of networking intelligent devices are configured and bound; the router is connected with a network, and the gateway and the intelligent equipment configuration can be bound under a home through an intelligent home application APP; various use scenes (equivalent to the device linkage rules in the above embodiments) of the home are configured by the smart home APP and issued to the gateway.
Specifically, in an alternative embodiment, this may be achieved by:
step 1: the intelligent home APP is used for carrying out configuration binding on intelligent equipment in a home or a caravan;
step 2: storing the device information to a device center;
step 3: the equipment information is issued to the gateway, stored in an equipment list and cached to the local;
step 4: configuring various scenes in the intelligent home APP according to user behaviors, such as home returning (the actions are that an air conditioner is started, a living room is started, a water heater is started, water is heated, and the like), storing scene scripts in a scene center, simultaneously sending the scene scripts to gateway equipment, and caching the scene scripts in a gateway local area;
step 5: when the router disconnects the external network, the corresponding scene is manually executed on the gateway, or the corresponding scene is triggered by voice control (triggered by scene name);
step 6: the gateway can acquire locally cached equipment information (corresponding to the state data in the embodiment) and scene information after the power is recovered after the power failure of the emergency in the home, and the scene is triggered when the router does not have an external network after the equipment is restarted;
step 7: under the condition that the gateway and the equipment are disconnected, log results of scene execution are cached to the gateway local;
step 8: once the network is restored, the scene scripts in the scene can be synchronized, and the cached scene execution log can be uploaded to the cloud for the user to view the operation records in the intelligent home APP.
It should be noted that, by adopting the technical scheme of the embodiment of the application, the scene can be ensured to be normally triggered in any environment, the control equipment can complete the expected action, and the instruction can be completed according to the expected requirement of the user when the gateway and the equipment which cannot be connected with the network are caused by the nonresistible factors.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present application.
In this embodiment, an apparatus linkage is further provided, and this apparatus is used to implement the foregoing embodiments and preferred embodiments, and will not be described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
Fig. 4 is a block diagram (a) of a device linkage according to an embodiment of the present application, the device comprising:
the determining module 42 determines, through a gateway, whether the first device and the cloud server are in a communication state, where the gateway and the first device are located in the same network range;
the obtaining module 44 is configured to obtain, when it is determined that the first device and the cloud server are in an un-communication state, a first device linkage rule corresponding to the first device according to a preset obtaining manner, where the preset obtaining manner includes one of the following: the method comprises the steps of obtaining the device log data from the gateway locally, obtaining the device log data from the mobile terminal through the gateway and obtaining the device log data from the network range where the gateway is located;
and the linkage module 46 is configured to, when acquiring the status data sent by the first device, perform device linkage with the first device linkage rule according to the status data.
Through the module, under the condition that the first equipment and the cloud server are in an un-communication state, acquiring a first equipment linkage rule corresponding to the first equipment according to a preset acquisition mode, and under the condition that state data sent by the first equipment are acquired, performing equipment linkage with the first equipment linkage rule according to the state data. The equipment linkage rule is obtained through the preset obtaining mode, and then the obtained equipment linkage rule can be used for equipment linkage, so that equipment linkage between the equipment can be performed under the condition that the equipment cannot access an external network, and the problem that equipment linkage cannot be performed between the equipment under the condition that the equipment cannot access the external network is solved.
In an exemplary embodiment, the determining module 42 is further configured to send a detection message to the cloud server through the gateway; under the condition that a response message is acquired within a preset time, determining that the first equipment and the cloud server are in a communication state; and under the condition that the response message is not acquired within the preset time, determining that the first equipment and the cloud server are not in a communication state.
In an exemplary embodiment, the obtaining module 42 is further configured to, when the preset obtaining manner is that the first device is obtained from the mobile terminal through the gateway, obtain a first device linkage rule corresponding to the first device according to the preset obtaining manner by: transmitting a first instruction to the mobile terminal through Bluetooth communication connection established between the gateway and the mobile terminal; and acquiring the first equipment linkage rule sent by the mobile terminal in response to the first instruction through the Bluetooth communication connection.
In an exemplary embodiment, the obtaining module 44 is further configured to, when the preset obtaining manner is obtaining from the device log data under the network range where the gateway is located, obtain the first device linkage rule corresponding to the first device according to the preset obtaining manner by: acquiring the equipment log data locally stored by the gateway, wherein the equipment log data has states of different equipment at different moments and executed operations; determining a first device linkage rule according to a historical linkage event under the condition that the historical linkage event exists between the first device and the second device according to the device log data, wherein the historical linkage event comprises: after the first device sends first state data to the cloud server at a first moment, the second device obtains a first control instruction sent by the cloud server at a second moment, wherein the time interval between the first moment and the second moment is smaller than a preset threshold value, and the second device and the first device are located in the same network range.
In one exemplary embodiment, fig. 5 is a block diagram of a device linkage (ii) according to an embodiment of the present application, the device comprising: the control module 48 is configured to send the status data to the cloud server when determining, through the gateway, that the status of the first device and the cloud server is changed from an un-communication status to a communication status and the status data sent by the first device is obtained in a process of obtaining a first device linkage rule corresponding to the first device according to a preset obtaining manner; and forwarding the second control instruction to equipment to be controlled by the second control instruction under the condition that the second control instruction sent by the cloud server is acquired.
In an exemplary embodiment, the determining module 42 is further configured to send a determining instruction to the mobile terminal, where the determining instruction is further configured to determine, to the target object, a device linkage rule for determining that the first device is linked with the device, where the determining instruction is used to determine that the state of the first device and the cloud server changes from an un-communication state to a communication state through the gateway; under the condition that a first reply instruction sent by the target object through the mobile terminal is acquired, determining the first equipment linkage rule as an equipment linkage rule for determining equipment linkage of the first equipment; and under the condition that a second reply instruction sent by the target object through the mobile terminal is acquired, determining a second equipment linkage rule in the cloud server as an equipment linkage rule for determining equipment linkage of the first equipment.
In an exemplary embodiment, the linkage module 46 is further configured to determine, according to the first device linkage rule, a target device to be subjected to device linkage and a target control instruction to be executed by the target device, where the state data triggers device linkage according to the first device linkage rule; and sending the target control instruction to the target equipment so as to enable the target equipment to execute target operation corresponding to the target control instruction.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, determining whether a first device and a cloud server are in a communication state or not through a gateway, wherein the gateway and the first device are located in the same network range;
s2, under the condition that the first equipment and the cloud server are in an un-communication state, acquiring a first equipment linkage rule corresponding to the first equipment according to a preset acquisition mode, wherein the preset acquisition mode comprises one of the following steps: the method comprises the steps of obtaining the device log data from the gateway locally, obtaining the device log data from the mobile terminal through the gateway and obtaining the device log data from the network range where the gateway is located;
and S3, under the condition that the state data sent by the first equipment is obtained, performing equipment linkage with the first equipment linkage rule according to the state data.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, determining whether a first device and a cloud server are in a communication state or not through a gateway, wherein the gateway and the first device are located in the same network range;
s2, under the condition that the first equipment and the cloud server are in an un-communication state, acquiring a first equipment linkage rule corresponding to the first equipment according to a preset acquisition mode, wherein the preset acquisition mode comprises one of the following steps: the method comprises the steps of obtaining from the gateway locally, obtaining from a mobile terminal through the gateway, and obtaining from equipment log data under a network range where the gateway is located;
and S3, under the condition that the state data sent by the first equipment is obtained, performing equipment linkage with the first equipment linkage rule according to the state data.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method of equipment linkage, comprising:
determining whether a first device and a cloud server are in a communication state or not through a gateway, wherein the gateway and the first device are located in the same network range;
under the condition that the first equipment and the cloud server are in an un-communication state, acquiring a first equipment linkage rule corresponding to the first equipment according to a preset acquisition mode, wherein the preset acquisition mode comprises one of the following steps: the method comprises the steps of obtaining the device log data from the gateway locally, obtaining the device log data from the mobile terminal through the gateway and obtaining the device log data from the network range where the gateway is located;
and under the condition that the state data sent by the first equipment is acquired, performing equipment linkage with the first equipment linkage rule according to the state data.
2. The method of claim 1, wherein determining, by the gateway, whether the first device is in communication with the cloud server comprises:
sending a detection message to a cloud server through the gateway;
under the condition that a response message is acquired within a preset time, determining that the first equipment and the cloud server are in a communication state;
and under the condition that the response message is not acquired within the preset time, determining that the first equipment and the cloud server are not in a communication state.
3. The method of claim 1, wherein, when the preset acquiring manner is that the first device is acquired from the mobile terminal through the gateway, acquiring the first device linkage rule corresponding to the first device according to the preset acquiring manner includes:
transmitting a first instruction to the mobile terminal through Bluetooth communication connection established between the gateway and the mobile terminal;
and acquiring the first equipment linkage rule sent by the mobile terminal in response to the first instruction through the Bluetooth communication connection.
4. The method of claim 1, wherein, when the preset obtaining manner is obtaining from device log data under a network range where the gateway is located, obtaining a first device linkage rule corresponding to the first device according to the preset obtaining manner includes:
acquiring the equipment log data locally stored by the gateway, wherein the equipment log data has states of different equipment at different moments and executed operations;
determining a first device linkage rule according to a historical linkage event under the condition that the historical linkage event exists between the first device and the second device according to the device log data, wherein the historical linkage event comprises: after the first device sends first state data to the cloud server at a first moment, the second device obtains a first control instruction sent by the cloud server at a second moment, wherein the time interval between the first moment and the second moment is smaller than a preset threshold value, and the second device and the first device are located in the same network range.
5. The method according to any one of claims 1 to 4, wherein in the process of acquiring the first device linkage rule corresponding to the first device according to a preset acquisition manner, the method further includes:
the method comprises the steps that under the condition that the state of the first equipment and the cloud server is changed from an un-communication state to a communication state through the gateway, and state data sent by the first equipment are obtained, the state data are sent to the cloud server;
and forwarding the second control instruction to equipment to be controlled by the second control instruction under the condition that the second control instruction sent by the cloud server is acquired.
6. The method according to any one of claims 1-4, wherein after acquiring the first device linkage rule corresponding to the first device according to a preset acquisition manner, the method further includes:
under the condition that the state of the first equipment and the cloud server is changed from an un-communication state to a communication state through the gateway, sending a determining instruction to the mobile terminal, wherein the determining instruction is used for determining an equipment linkage rule for determining equipment linkage of the first equipment to a target object;
under the condition that a first reply instruction sent by the target object through the mobile terminal is acquired, determining the first equipment linkage rule as an equipment linkage rule for determining equipment linkage of the first equipment;
and under the condition that a second reply instruction sent by the target object through the mobile terminal is acquired, determining a second equipment linkage rule in the cloud server as an equipment linkage rule for determining equipment linkage of the first equipment.
7. The method of any of claims 1-6, wherein performing device linkage with the first device linkage rule according to the status data comprises:
under the condition that the state data trigger equipment linkage is determined according to the first equipment linkage rule, determining target equipment to be subjected to equipment linkage and a target control instruction to be executed by the target equipment according to the first equipment linkage rule;
and sending the target control instruction to the target equipment so as to enable the target equipment to execute target operation corresponding to the target control instruction.
8. An equipment linkage, comprising:
the determining module is used for determining whether the first equipment and the cloud server are in a communication state or not through a gateway, wherein the gateway and the first equipment are located in the same network range;
the acquisition module is used for acquiring a first device linkage rule corresponding to the first device according to a preset acquisition mode under the condition that the first device and the cloud server are in an un-communication state, wherein the preset acquisition mode comprises one of the following steps: the method comprises the steps of obtaining the device log data from the gateway locally, obtaining the device log data from the mobile terminal through the gateway and obtaining the device log data from the network range where the gateway is located;
and the linkage module is used for carrying out equipment linkage with the first equipment linkage rule according to the state data under the condition that the state data sent by the first equipment is acquired.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 7 by means of the computer program.
CN202210635791.XA 2022-06-07 2022-06-07 Equipment linkage method and device, storage medium and electronic device Pending CN117240874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210635791.XA CN117240874A (en) 2022-06-07 2022-06-07 Equipment linkage method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210635791.XA CN117240874A (en) 2022-06-07 2022-06-07 Equipment linkage method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN117240874A true CN117240874A (en) 2023-12-15

Family

ID=89083109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210635791.XA Pending CN117240874A (en) 2022-06-07 2022-06-07 Equipment linkage method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN117240874A (en)

Similar Documents

Publication Publication Date Title
WO2016173189A1 (en) Smart household control method, device and system
CN116016002A (en) Intelligent household appliance network distribution method and device and electronic device
CN116382111A (en) Equipment control method and device, storage medium and electronic device
CN117240874A (en) Equipment linkage method and device, storage medium and electronic device
CN115499333A (en) Method, system, storage medium and electronic device for determining association relationship
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN114697345B (en) Information updating method and device, storage medium and electronic device
CN114697359B (en) Data collection method and device, storage medium and electronic device
CN115296945B (en) Control method, system and device of equipment, storage medium and electronic device
CN115297103B (en) Method and device for acquiring logic constraint file, storage medium and electronic device
CN115296948B (en) Scene information updating method and device, storage medium and electronic device
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN115277412B (en) Edge gateway upgrading method and device, storage medium and electronic device
CN114760235B (en) Method and device for executing dial testing task, storage medium and electronic device
CN115484116B (en) Processing method and device of equipment data, storage medium and electronic device
CN115312049B (en) Instruction response method, storage medium and electronic device
CN115001887B (en) Login identification sending method and device, storage medium and electronic device
CN115296986B (en) Event recording method and device, storage medium and electronic device
CN115314549B (en) Offline equipment management method, storage medium and electronic device
CN115297463B (en) Equipment binding method and device, storage medium and electronic device
CN117857240A (en) Method and device for sending adjustment instruction, storage medium and electronic device
CN116887183A (en) Method and device for determining home geofence, storage medium and electronic device
CN117176791A (en) Push information sending method and device, storage medium and electronic device
CN116346901A (en) Push content determining method and device, storage medium and electronic device
CN117908393A (en) Method and device for sending preheating instruction, storage medium and electronic equipment

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