WO2018177121A1 - Sensing device linkage method, apparatus and system - Google Patents
Sensing device linkage method, apparatus and system Download PDFInfo
- Publication number
- WO2018177121A1 WO2018177121A1 PCT/CN2018/079036 CN2018079036W WO2018177121A1 WO 2018177121 A1 WO2018177121 A1 WO 2018177121A1 CN 2018079036 W CN2018079036 W CN 2018079036W WO 2018177121 A1 WO2018177121 A1 WO 2018177121A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sensing device
- linkage
- instruction
- gateway
- state
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 86
- 238000004891 communication Methods 0.000 claims abstract description 29
- 230000001419 dependent effect Effects 0.000 claims abstract description 8
- 230000005540 biological transmission Effects 0.000 claims description 7
- 238000013507 mapping Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 abstract description 3
- 238000013461 design Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 12
- 238000007726 management method Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000005057 refrigeration Methods 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000001816 cooling Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Definitions
- the embodiments of the present invention relate to the field of communications technologies, and in particular, to a method, device, and system for linkage of sensing devices.
- the Internet of Things refers to a huge network of various sensing devices, such as radio frequency identification devices, infrared sensors, global positioning devices, laser scanners, etc., combined with the Internet.
- each sensing device 11 is configured to collect the sensed data (eg, temperature data collected by the temperature sensor) and/or execute a control command (eg, a smart door lock to execute a door open command).
- a control command eg, a smart door lock to execute a door open command.
- Each sensing device 11 can transmit the collected data to the gateway 12, which transmits the data to the IoT cloud platform 13.
- the IoT cloud platform 13 can perform unified decisions based on the data reported by the sensing device 11, for example, managing the connection relationship between the sensing devices 11 and the like.
- the user can send a management instruction for managing the sensing device 11 to the IoT cloud platform 13 through the IoT application 14, for example, the user triggers a door opening command on the IoT application 14, and the IoT application 14 sends the door opening command to the IoT cloud platform 13, The IoT cloud platform 13 sends the door opening command to the corresponding sensing device 11 through the gateway 12, and finally the sensing device 11 executes the door opening command.
- a linkage strategy between the sensing devices 11.
- the illumination lamp (sensing device B) is required to be automatically turned on.
- a rule engine 15 may be disposed in the gateway 12, and the rule engine 15 performs a linkage decision according to the stored linkage policy.
- the rule engine 15 in the gateway 12 searches for the corresponding linkage policy according to the data of the device state of the sensing device A, thereby generating a decision for controlling the sensing device B.
- the instruction sends the decision instruction to the sensing device B, and the sensing device B executes the decision instruction to complete the linkage strategy between the sensing device A and the sensing device B.
- the gateway 12 needs to be the other sensing device according to the data of the device state of one of the sensing devices 11 and the corresponding linkage policy. 11 Generate corresponding decision instructions. Then, when the number of the sensing devices 11 is large, the implementation process of the linkage policy requires the gateway 12 to have strong computing performance and maintain the online state at the moment, then, once the computing performance of the gateway 12 is not up to standard, or the gateway 12 is powered off, For example, the gateway 12 is disposed in an environment such as a forest lacking a stable external power source, and the linkage scenario between all the sensing devices 11 will be invalid.
- Embodiments of the present application provide a linkage method, device, and system for a sensing device, which can reduce the calculation pressure of the gateway and the power supply requirement, thereby reducing the deployment cost of the IoT.
- an embodiment of the present application provides a method for linkage of a sensing device, including: determining, by a first sensing device, that a device state of a current first sensing device is a first target state; a binding relationship (the binding relationship is used to indicate that the device state of the second sensing device is dependent on the device state of the first sensing device), and the second sensing device bound to the first sensing device is determined; The first sensing device generates a linkage command according to the first target state, where the linkage instruction is used to instruct the second sensing device to update the device state of the second sensing device to the second target state; then, the first sensing device is After the second sensing device sends the linkage instruction, the second sensing device causes the second sensing device to set its own device state according to the linkage instruction.
- the linkage process between the first sensing device and the second sensing device can be realized without the participation of the gateway, and the first sensing device and the second device can be realized even in the case that the gateway is powered off.
- the linkage process between the sensing devices and the computational pressure of the gateway can be reduced, thereby reducing the deployment cost of the IoT.
- the first sensing device generates the linkage instruction according to the first target state, including: the first sensing device generates the linkage instruction according to the first target state, where the linkage instruction carries the first target state Logo. That is, the first sensing device can determine its own first target state as the device state of the second sensing device, that is, the second target state is the same as the first target state. In this way, the second sensing device can update the device state of the device to the first target state according to the identifier of the first target state in the linkage command, thereby implementing a linkage process between the first sensing device and the second sensing device.
- the first sensing device stores a linkage policy, where the linkage policy is used to indicate: when the device state of the first sensing device is in the first target state, the device state of the second sensing device
- the method includes: the first sensing device searches for the second sensing device corresponding to the first target state from the linkage policy. a second target state; further, the first sensing device generates a linkage instruction according to the second target state, where the linkage instruction carries an identifier of the second target state.
- the second sensing device may update its own device state to the second target state according to the identifier of the second target state in the linkage instruction.
- the method before the first sensing device determines that the device state of the current first sensing device is the first target state, the method further includes: the first sensing device transmitting the first sensing device to the gateway A device information, the first device information including an instruction to allow the first sensing device to output and an instruction to allow the first sensing device to receive.
- an embodiment of the present application provides a linkage method of a sensing device, including: a gateway acquiring a linkage policy between a first sensing device and a second sensing device, where the linkage policy includes a linkage condition and a linkage result, The linkage condition is used to indicate that the device state of the first sensing device is the first target state, and the linkage result is used to indicate that the device state of the second sensing device is the second target state; the gateway determines the first transmission according to the linkage policy
- the binding device has a binding relationship with the second sensing device, where the binding relationship is used to indicate that the device state of the second sensing device is dependent on the device state of the first sensing device; the gateway sends the first sensing device to the first sensing device And a binding instruction, the binding instruction is used to instruct the first sensing device to establish a binding relationship with the second sensing device.
- the first sensing device may determine the second transmission that has a binding relationship with the first sensing device according to the binding relationship acquired in advance.
- the sensing device implements a linkage process between the first sensing device and the second sensing device.
- the method before the gateway determines that the first sensing device and the second sensing device have a binding relationship according to the linkage policy, the method further includes: acquiring, by the gateway, the first a description file and a second description file of the second sensing device, the first description file includes an instruction to allow the first sensing device to output, and the second description file includes an instruction to allow the second sensing device to receive; then, the gateway according to the linkage
- the method includes: when the instruction output by the first sensing device includes the first target instruction for performing the linkage condition, and the second sensing When the instruction received by the device includes the second target instruction for performing the linkage result, the gateway determines that the first sensing device has a binding relationship with the second sensing device.
- the gateway determines a binding relationship between the first sensing device and the second sensing device, including: a near field communication protocol used by the first sensing device and the second sensing device When the near field communication protocol used is the same, the gateway determines that there is a binding relationship between the first sensing device and the second sensing device.
- the gateway acquires the first description file of the first sensing device, including: the gateway receiving the first device information sent by the first sensing device, where the first device information includes allowing the first sensing An instruction output by the device; the gateway maps an instruction output by the first sensing device to an instruction that allows the first sensing device to output, to obtain a first description file; wherein the gateway acquires a second description file of the second sensing device
- the method includes: the gateway receiving second device information sent by the second sensing device, the second device information including an instruction that allows the second sensing device to receive; the gateway mapping the instruction received by the second sensing device to allow the second The instruction received by the sensing device obtains a second description file.
- the method further includes: the gateway receiving the linkage sent by the first sensing device An instruction, the linkage instruction is used to instruct the second sensing device to update the device state of the second sensing device to the second target state; and when the gateway determines that the first sensing device has a binding relationship with the second sensing device The gateway discards the linkage instruction to prevent the second sensing device from repeatedly executing the linkage instruction.
- an embodiment of the present application provides a sensing device, where the sensing device is a first sensing device, including: a determining unit, configured to determine that a device state of the current first sensing device is a first target state; And determining, according to the pre-acquisition binding relationship, the second sensing device that is bound to the first sensing device, where the binding relationship is used to indicate that the device state of the second sensing device is dependent on the device state of the first sensing device; a linkage unit, configured to generate a linkage instruction according to the first target state, the linkage instruction is used to instruct the second sensing device to update the device state of the second sensing device to the second target state; and the sending unit is configured to send the second transmission The sensing device sends the linkage command.
- the linkage instruction carries an identification of the first target state.
- the first sensing device stores a linkage policy, where the linkage policy is used to indicate: when the device state of the first sensing device is in the first target state, the device state of the second sensing device a second target state; the linkage unit is configured to: search for a second target state corresponding to the first target state for the second sensing device from the linkage policy; and generate a linkage instruction according to the second target state, the linkage instruction The identifier carries the second target state.
- the sending unit is further configured to send, to the gateway, first device information of the first sensing device, where the first device information includes an instruction that allows the first sensing device to output, and allows the first sensing The instructions received by the device.
- an embodiment of the present application provides a gateway, including: an acquiring unit, configured to acquire a linkage policy between a first sensing device and a second sensing device, where the linkage policy includes a linkage condition and a linkage result, where The linkage condition is used to indicate that the device state of the first sensing device is the first target state, the linkage result is used to indicate that the device state of the second sensing device is the second target state, and the determining unit is configured to determine, according to the linkage policy a binding relationship between the sensing device and the second sensing device, the binding relationship is used to indicate that the device state of the second sensing device is dependent on the device state of the first sensing device, and the sending unit is configured to A sensing device sends a binding instruction, the binding instruction is used to instruct the first sensing device to establish a binding relationship with the second sensing device.
- the acquiring unit is further configured to acquire a first description file of the first sensing device and a second description file of the second sensing device, where the first description file includes allowing the first sensing device An output instruction, the second description file includes an instruction for allowing the second sensing device to receive; the determining unit is configured to: when the instruction output by the first sensing device includes the first target instruction for executing the linkage condition, and When the instruction received by the second sensing device includes the second target instruction for performing the linkage result, determining that the first sensing device and the second sensing device have a binding relationship.
- the determining unit is specifically configured to: when the near field communication protocol used by the first sensing device is the same as the near field communication protocol used by the second sensing device, determine the first sensing device There is a binding relationship with the second sensing device.
- the acquiring unit is specifically configured to: receive first device information sent by the first sensing device, where the first device information includes an instruction that allows the first sensing device to output; the first transmission is allowed The instruction outputted by the sensing device is mapped to an instruction that allows the first sensing device to output, and the first description file is obtained; the second device information sent by the second sensing device is received, and the second device information includes an instruction that allows the second sensing device to receive Mapping the instructions received by the second sensing device to instructions that are allowed to be received by the second sensing device to obtain a second description file.
- the gateway further includes a deleting unit, wherein the acquiring unit is further configured to receive a linkage instruction sent by the first sensing device, where the linkage instruction is used to indicate that the second sensing device is to be the second The device status of the sensing device is updated to a second target state; the deleting unit is configured to discard the linkage instruction when the gateway determines that the first sensing device has a binding relationship with the second sensing device.
- an embodiment of the present application provides a sensing device, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store a computer to execute an instruction, and the processor is connected to the memory through the bus, and is transmitted While the device is in operation, the processor executes the computer-executed instructions stored by the memory to cause the sensing device to perform any of the above-described linkage methods.
- an embodiment of the present application provides a gateway, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store a computer execution instruction, and the processor is connected to the memory through the bus, when the gateway is running The processor executes the computer-executed instructions stored by the memory to cause the gateway to perform any of the above-described linkage methods.
- an embodiment of the present application provides a linkage system, including any one of the foregoing gateways, and a first sensing device and a second sensing device connected to the gateway.
- an embodiment of the present application provides a computer readable storage medium, where the instructions are stored, and when the instruction is run on any one of the sensing devices, the sensing device performs the foregoing A linkage method.
- the embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium stores an instruction, when the instruction is run on any one of the foregoing gateways, causing the gateway to perform any one of the foregoing linkage methods. .
- the embodiment of the present application provides a computer program product including instructions, when the device is operated on any one of the above sensing devices, causing the sensing device to perform any of the foregoing linkage methods.
- an embodiment of the present application provides a computer program product, including instructions, when the gateway is executed on any of the foregoing gateways, causing the gateway to perform any of the foregoing linkage methods.
- the names of the sensing device and the gateway are not limited to the device itself. In actual implementation, the devices may appear under other names. As long as the functions of the respective devices are similar to the embodiments of the present application, they are within the scope of the claims and their equivalents.
- FIG. 1 is a schematic diagram of a design architecture of an Internet of Things in the prior art
- FIG. 2 is a schematic structural diagram 1 of a linkage system according to an embodiment of the present application.
- FIG. 3 is a schematic structural diagram 2 of a linkage system according to an embodiment of the present disclosure.
- FIG. 4 is a schematic structural diagram 3 of a linkage system according to an embodiment of the present disclosure.
- FIG. 5 is a schematic structural diagram 4 of a linkage system according to an embodiment of the present disclosure.
- FIG. 6 is a schematic diagram of interaction of a linkage method of a sensing device according to an embodiment of the present disclosure
- FIG. 7 is a schematic structural diagram of a sensing device according to an embodiment of the present disclosure.
- FIG. 8 is a schematic structural diagram of a gateway according to an embodiment of the present application.
- FIG. 9 is a schematic structural diagram 1 of a hardware structure of a sensing device (or gateway) according to an embodiment of the present disclosure.
- FIG. 10 is a second schematic structural diagram of a hardware structure of a sensing device (or a gateway) according to an embodiment of the present application.
- first and second are used for descriptive purposes only, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining “first” and “second” may include one or more of the features either explicitly or implicitly. In the description of the embodiments of the present application, “multiple” means two or more unless otherwise stated.
- the embodiment of the present application provides a linkage method of a sensing device, which can be applied to the linkage system 100 shown in FIG. 2.
- the linkage system 100 includes at least one gateway 21 and at least one sensing device 22 coupled to each gateway 21.
- the sensing device 22 is configured to sense the measured information, and can convert the sensed information into an electrical signal or other desired form of information output according to a certain rule.
- the sensing device 22 can include any type of sensor such as a temperature sensor, a pressure sensor, a gravity sensor, and a light sensor.
- the sensing device 22 can be a device such as a smart home appliance, a terminal, and a vehicle. Any restrictions.
- the gateway 21 can be used to receive data collected by the sensing device 22 and commands sent by the sensing device 22, and can also send data to other sensing devices 22 according to data or instructions collected by one or more sensing devices 22. Or instructions, etc.
- the gateway 21 may bind the plurality of sensing devices 22 having the binding relationship according to the linkage policy between the sensing devices 22.
- the linkage strategy between the sensing device A and the sensing device B is: when the sensing device A is in the on state, the sensing device B is opened, that is, the binding between the sensing device A and the sensing device B Relationship, the device state of sensing device B depends on the device state of sensing device A.
- the gateway 21 may first establish a binding relationship between the sensing device A and the sensing device B, and send a binding instruction to the sensing device A to The sensing device A is instructed to establish a binding relationship between the sensing device A and the sensing device B.
- the sensing device B bound to the sensing device A can be directly determined according to the binding relationship, and according to the device state (ie, the open state)
- a linkage instruction for example, an opening instruction
- the opening instruction is used to instruct the sensing device B to update its device state to an on state, thereby implementing between the sensing device A and the sensing device B. Linkage needs.
- the first sensing device (for example, the sensing device A) can determine the binding according to the pre-acquired binding relationship without the participation of the gateway.
- the first sensing device has a second sensing device in a binding relationship (such as the sensing device B described above).
- the first sensing device can generate a corresponding linkage instruction (for example, the above-mentioned opening instruction) for the second sensing device according to the device state of the device (for example, the above-mentioned open state), and send the linkage command to the second sensing device. And causing the second sensing device to update its own device state according to the linkage instruction.
- the linkage process between the first sensing device and the second sensing device can be realized without the participation of the gateway, and even in the case that the gateway 21 is powered off, the first sensing device and the first sensing device can be realized.
- the linkage process between the two sensing devices, and the calculation pressure of the gateway 21 can be reduced, thereby reducing the deployment cost of the IoT.
- a rule engine 23 may be disposed in the gateway 21, and the rule engine 23 may send a linkage policy between the first sensing device and the second sensing device to the first sensing device.
- the linkage strategy includes two parts: linkage condition and linkage result.
- the linkage condition is used to indicate the device status of the first sensing device
- the linkage result is used to indicate the device status of the second sensing device.
- the linkage policy 1 is: when the device state of the first sensing device is in the first target state, the device state of the second sensing device is the second target state, wherein the linkage condition is: the device of the first sensing device The state is in the first target state, and the linkage result is: the device state of the second sensing device is the second target state.
- the first sensing device can determine the second target state of the second sensing device corresponding to the first target state of the first target device according to the linkage policy sent by the rule engine 23 in the gateway 21, for example, the second sensing device.
- the second sensing device can generate an opening command according to the opening state, that is, a linkage command, and send the signal to the second sensing device. Further, the second sensing device sets its own device according to the linkage instruction. The status is updated to an on state to cause the second sensing device to complete the linkage command.
- an IoT cloud platform 24 may also be disposed in the linkage system 100.
- the IoT cloud platform 24 is connected to each gateway 21, and the first sensing device and the second sensing device are connected by the IoT cloud platform 24.
- the inter-linkage policy is sent to the rule engine 23 in the corresponding gateway 21.
- the IoT application 25 connected to the IoT cloud platform 24 may also be disposed in the linkage system 100, such that the user triggers management instructions for managing the sensing device 22 on any IoT application 25 (eg, unlocking the door lock)
- the IoT application 25 can send the management command to the IoT cloud platform 24, and the IoT cloud platform 24 sends the management command to the corresponding sensing device 22 through the gateway 21, and finally the corresponding sensing device 22 Execute the management instruction.
- the method includes:
- the gateway acquires a first description file of the first sensing device and a second description file of the second sensing device.
- the first description file includes an instruction that allows the first sensing device to output
- the second description file includes an instruction that allows the second sensing device to receive.
- first description file may further include an instruction for allowing the first sensing device to receive
- second description file may further include an instruction for allowing the output of the second sensing device, which is not limited by the embodiment of the present application.
- the gateway may obtain its device information from the first sensing device, for example, first device information, where the first device information includes an instruction that allows the first sensing device to output, and the gateway may also obtain the second sensing device from the second sensing device.
- Device information for example, second device information, the second device information including instructions that allow the second sensing device to receive.
- the first device information may specifically be NIF (node information).
- the first device information may specifically be the first sensing The match descriptor of the device (or second sensing device).
- the NIF contains information as shown in Table 1, in which a special byte 0xEF is set in the NIF, and 0xEF divides the NIF into two parts, and a part is used to indicate n(n) that the sensing device is allowed to receive.
- ⁇ 1) instructions which can be expressed in the Z-Wave format command class (for example, supported command slass); the other part is used to indicate the m (m ⁇ 1) instructions allowed by the sensing device, or Z-
- the command class of the Wave format (for example, the controlled command class) is represented.
- the gateway may map, by using a mapping manner, at least one of the n instructions that the first sensing device allows to receive, to be first.
- An instruction in the description file that allows the first sensing device to receive, and at least one of the m instructions that the first sensing device allows to output is mapped to an instruction in the first description file that allows the first sensing device to output.
- the instructions in the first description file that are allowed to be received by the first sensing device and the instructions that allow the first sensing device to output may be represented in the format of the IoT cloud platform.
- the sensing device such as the device characteristic information of the first sensing device, for example, the data collected by the first sensing device (for example, temperature value, humidity value, switch off or The state of the application, etc., is not limited in this embodiment.
- the first description file generated by the gateway according to the first device information of the first sensing device includes the information as shown in Table 2, wherein the current sensing power of the first sensing device is 40%, allowing the first sensing device to receive
- the instruction includes an open command
- the instruction that allows the first sensing device to output includes an open command and a close command.
- the match descriptor includes two fields, InClusterList and OutClusterList.
- the InClusterList field includes an instruction that allows the sensing device to receive
- the OutClusterList field includes an instruction that allows the sensing device to output.
- the gateway may also map the InClusterList field to an instruction in the first description file that allows the first sensing device to receive,
- the OutClusterList field is mapped to an instruction in the first description file that allows the first sensing device to output.
- the gateway may generate a second description file of the second sensing device according to the second device information of the second sensing device according to the above method.
- the gateway may also obtain the first description file of the first sensing device and the second description file of the second sensing device from the IoT cloud platform, which is not limited in this embodiment.
- the gateway acquires a linkage policy between the first sensing device and the second sensing device.
- the linkage policy may specifically include a linkage condition and a linkage result, where the linkage condition is used to indicate that the device state of the first sensing device is the first target state, and the linkage result is used to indicate that the device state of the second sensing device is Two target states.
- the linkage strategy 1 is: when the temperature collected by the thermometer is greater than 30 degrees Celsius, the refrigeration device is turned on. Then, in the linkage strategy 1, the linkage condition is: the temperature collected by the thermometer (first sensing device) is greater than 30 degrees Celsius, that is, the temperature of the device state of the thermometer is greater than 30 degrees Celsius, and the linkage result is: opening the refrigeration device (second transmission Sensing device), that is, the device state of the cooling device is on.
- the linkage policy between the first sensing device and the second sensing device may be obtained from the IoT cloud platform by a rule engine in the gateway.
- the gateway determines, according to the foregoing linkage policy, a binding relationship between the first sensing device and the second sensing device, where the binding relationship is used to indicate that the device state of the second sensing device is dependent on the device of the first sensing device. status.
- the gateway may determine, according to the first description file of the first sensing device, the second description file of the second sensing device, and the linkage policy acquired in step 602, the first sensing device and the second transmission. Whether there is a binding relationship between devices.
- the gateway may determine The first sensing device has a binding relationship with the second sensing device. Otherwise, it can be determined that there is no binding relationship between the first sensing device and the second sensing device.
- the instruction output by the first sensing device includes an open command
- the command received by the second sensing device includes a close command.
- the linkage policy may be: when the first sensing device is turned on (the linkage condition), the second sensing device is turned off (the linkage result). It can be seen that the instruction output by the first sensing device includes an opening instruction (ie, a first target instruction) for executing the linkage condition, and the instruction received by the second sensing device includes a closing instruction for performing the linkage result (ie, the second The target command), then the gateway can determine that there is a binding relationship between the first sensing device and the second sensing device.
- the near field communication protocol used by different sensing devices may be different.
- the near field communication protocol used by the first sensing device is a Z-Wave protocol
- the near field communication protocol used by the second sensing device is a ZigBee protocol.
- the gateway may further determine the near field communication protocol used by the first sensing device and the near field used by the second sensing device. Whether the communication protocol is the same.
- the gateway may determine that the first sensing device has a binding relationship with the second sensing device. Otherwise, it can be determined that there is no binding relationship between the first sensing device and the second sensing device.
- the gateway sends a binding instruction to the first sensing device, where the binding instruction is used to indicate that the first sensing device establishes a binding relationship with the second sensing device.
- the gateway may The first sensing device sends a binding command, which triggers the first sensing device to establish a binding relationship with the second sensing device. In this way, the subsequent first sensing device can determine whether to initiate a corresponding linkage instruction to the second sensor bound to itself according to its own device state.
- the binding instruction may specifically be an association instruction; when the sensing device (for example, the first When the near field communication protocol used by the sensing device is the ZigBee protocol, the binding instruction may specifically be BindReq (combined instruction).
- binding instruction may be set by a person skilled in the art according to actual experience or an actual application scenario, and the embodiment of the present application does not impose any limitation on this.
- the gateway and the rule engine may use the command format of the IoT platform format to perform the interaction, and the near field protocol format may be used for interaction.
- the following steps 604-607 may be performed to implement linkage between the first sensing device and the second sensing device. process.
- the first sensing device determines that the device state of the current first sensing device is the first target state.
- the user can trigger the management instruction of the management sensing device 22 through the IoT application 25, for example, the management command is an open command of the door lock (ie, the first sensing device).
- the IoT application 25 can send the open command to the IoT cloud platform 24, and the IoT cloud platform 24 sends the open command to the door lock through the gateway 21, and the open command is executed by the door lock.
- the door lock can determine that the current device state is the on state.
- the device state of the device may be determined according to the currently collected data.
- the temperature sensing device can collect the current temperature value in real time and use the temperature indicated by the current temperature value as its first target state.
- the first sensing device determines, according to the binding relationship, a second sensing device that is bound to the first sensing device.
- the first sensing device generates a linkage instruction according to the first target state, where the linkage instruction is used to instruct the second sensing device to update the device state of the second sensing device to the second target state.
- the first sensing device can determine its current device state according to the currently collected data.
- the pressure sensing device can convert the currently collected pressure signal into an electrical signal to determine the current pressure.
- the value of the door and window sensing device can determine whether the state of the current door is the open state or the closed state according to the state of the current door lock.
- the first sensing device has established a binding relationship with the second sensing device. Therefore, in step 605, the first sensing device may determine the binding according to the binding relationship. The second sensing device to which the first sensing device has been bound.
- the device state of the second sensing device depends on the device state of the first sensing device. Then, in step 606, the first sensing device may generate the second sensing device according to the first target state determined in step 604. Linkage instructions.
- the first sensing device may determine its own first target state as the device state of the second sensing device, ie, the second target state is the same as the first target state. Then, the first sensing device can directly generate a linkage instruction according to the first target state. At this time, the linkage instruction carries the identifier of the first target state.
- the first target state of the door lock is an open state (first target state), and at this time, the first sensing device can directly identify the first target state, for example, the identifier: on, As a linkage command sent to the electric light (second sensing device). Subsequently, the electric light can directly execute the linkage instruction, and update its own device state to the same device state as the door lock, that is, execute an instruction to turn on the light.
- the linkage policy between the first sensing device and the second sensing device may be stored in the first sensing device in advance, for example, the linkage strategy is: when the first sensing device When turned on, the second sensing device is turned off. Then, in step 606, the first sensing device may first search for the second target state corresponding to the first target state (for example, the open state), that is, the closed state, from the linkage policy. Further, the first sensing device carries the determined identification of the closed state in the linkage instruction and sends the identifier to the second sensing device. Subsequently, the second sensing device can update its own device state to the closed state according to the identifier of the closed state in the linkage instruction, that is, execute the shutdown command.
- the first target state for example, the open state
- the first sensing device carries the determined identification of the closed state in the linkage instruction and sends the identifier to the second sensing device.
- the second sensing device can update its own device state to the closed state according to the identifier
- the linkage policy between the first sensing device and the second sensing device may be stored in the second sensing device in advance, for example, the linkage strategy is still: when the first sensing When the device is turned on, the second sensing device is turned off. Then, in step 606, the first sensing device carries the identifier of the first target state of the first sensing device in the linkage instruction and sends it to the second sensing device. Subsequently, the second sensing device may search for the second target state corresponding to the first target state (for example, the open state) from the linkage policy according to the identifier of the first target state in the linkage command, that is, the shutdown state, and further, the second The sensing device can update its own device status to the off state.
- the first target state for example, the open state
- the first sensing device sends a linkage instruction to the second sensing device to implement a linkage process between the first sensing device and the second sensing device.
- the linkage method may further include steps 608-609.
- the first sensing device sends a linkage instruction to the gateway.
- the gateway discards the linkage instruction.
- the first sensing device may further send the linkage command to the gateway.
- the rule engine in the gateway queries that the first sensing device and the second sensing device are already stored, When the relationship is bound, the gateway has indicated that the first sensing device establishes a binding relationship with the second sensing device. Then, in step 609, the gateway may directly discard the linkage command to avoid the second sensing. The device repeatedly executes the linkage instruction.
- the correlation engine may send the linkage instruction to the second sensing device through the gateway by using the prior art.
- the linkage instruction is executed by the second sensing device to complete the linkage process between the first sensing device and the second sensing device.
- the first sensing device, the second sensing device, and the gateway include the hardware structure and/or software module corresponding to each function.
- the embodiments of the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
- the function modules of the first sensing device, the second sensing device, and the gateway may be divided according to the foregoing method.
- each functional module may be divided according to each function, or two or two may be used.
- the above functions are integrated in one processing module.
- the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
- FIG. 7 is a schematic diagram showing a possible structure of the sensing device involved in the above embodiment, the sensing device includes: a determining unit 71, a linking unit 72, and Transmitting unit 73.
- the determining unit 71 is configured to support the sensing device to perform the processes 604-605 in FIG. 6; the linking unit 72 is configured to support the sensing device to perform the process 606 in FIG. 6; the transmitting unit 73 is configured to support the sensing device to perform the function in FIG. Process 607. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
- FIG. 8 is a schematic diagram of a possible structure of a gateway involved in the foregoing embodiment, where the gateway includes: an obtaining unit 81, a determining unit 82, a sending unit 83, and The unit 84 is deleted.
- the obtaining unit 81 is configured to support the sensing device to perform the processes 600-601 in FIG. 6; the determining unit 82 is configured to support the sensing device to perform the process 602 in FIG. 6; the transmitting unit 83 is configured to support the sensing device to perform the method in FIG. Processes 603 and 608; deletion unit 84 is operative to support the sensing device to perform process 609 in FIG. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
- FIG. 9 shows a possible structural diagram of the sensing device (or gateway) involved in the above embodiment.
- the sensing device (or gateway) includes a processing module 1302 and a communication module 1303.
- the processing module 1302 is configured to control and manage the actions of the sensing device (or gateway).
- the communication module 1303 is configured to support communication of the sensing device (or gateway) with other network entities.
- the sensing device (or gateway) may further include a storage module 1301 for storing program code and data of the sensing device (or gateway).
- the processing module 1302 may be a processor or a controller, for example, may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application specific integrated circuit (Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
- the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
- the communication module 1303 may be a transceiver, a transceiver circuit, a communication interface, or the like.
- the storage module 1301 may be a memory.
- the sensing device (or gateway) involved in the embodiment of the present application may specifically be the sensing device (or gateway) shown in FIG. ).
- the sensing device includes a processor 1312, a transceiver 1313, a memory 1311, and a bus 1314.
- the transceiver 1313, the processor 1312, and the memory 1311 are connected to each other through a bus 1314.
- the bus 1314 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. Wait.
- PCI Peripheral Component Interconnect
- EISA Extended Industry Standard Architecture
- Wait The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 10, but it does not mean that there is only one bus or one type of bus.
- the computer program product includes one or more computer instructions.
- the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
- the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.).
- the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
- the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Provided are a sensing device linkage method, apparatus and system, wherein same relate to the technical field of communications and can reduce the calculation pressure and a power supply demand of a gateway, thereby reducing the deployment cost of IoT. The method comprises: a first sensing device determining that a device state of the current first sensing device is a first target state; the first sensing device determining, according to a pre-obtained binding relationship, a second sensing device bound to the first sensing device, wherein the binding relationship is used for indicating that a device state of the second sensing device is dependent on the device state of the first sensing device; the first sensing device generating a linkage instruction according to the first target state, wherein the linkage instruction is used for instructing the second sensing device to update the device state of the second sensing device to be a second target state; and the first sensing device sending the linkage instruction to the second sensing device.
Description
本申请要求于2017年3月27日提交中国专利局、申请号为201710187470.7、发明名称为“一种传感设备的联动方法、装置及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on March 27, 2017, the Chinese Patent Office, Application No. 201710187470.7, entitled "A Method, Apparatus and System for Sensing Devices", the entire contents of which are incorporated by reference. Combined in this application.
本申请实施例涉及通信技术领域,尤其涉及一种传感设备的联动方法、装置及系统。The embodiments of the present invention relate to the field of communications technologies, and in particular, to a method, device, and system for linkage of sensing devices.
物联网(Internet of Things,IoT)指的是将各种传感设备,如射频识别装置、红外感应器、全球定位装置、激光扫描器等,与互联网结合起来而形成的一个巨大网络。The Internet of Things (IoT) refers to a huge network of various sensing devices, such as radio frequency identification devices, infrared sensors, global positioning devices, laser scanners, etc., combined with the Internet.
如图1所示,为一种物联网可能的设计架构示意图。其中,各个传感设备11用于采集感测到的数据(例如,温度传感器采集的温度数据)和/或执行控制指令(例如,智能门锁执行开门指令)。每个传感设备11可将采集到的数据发送给网关12,由网关12将该数据发送给IoT云平台13。IoT云平台13根据传感设备11上报的数据可执行统一的决策,例如,管理传感设备11之间的连接关系等。而用户可通过IoT应用14向IoT云平台13发送用于管理传感设备11的管理指令,例如,用户在IoT应用14上触发开门指令,IoT应用14将该开门指令发送给IoT云平台13,IoT云平台13通过网关12将该开门指令发送给对应的传感设备11,最终由该传感设备11执行开门指令。As shown in Figure 1, it is a schematic diagram of a possible design architecture of the Internet of Things. Wherein, each sensing device 11 is configured to collect the sensed data (eg, temperature data collected by the temperature sensor) and/or execute a control command (eg, a smart door lock to execute a door open command). Each sensing device 11 can transmit the collected data to the gateway 12, which transmits the data to the IoT cloud platform 13. The IoT cloud platform 13 can perform unified decisions based on the data reported by the sensing device 11, for example, managing the connection relationship between the sensing devices 11 and the like. The user can send a management instruction for managing the sensing device 11 to the IoT cloud platform 13 through the IoT application 14, for example, the user triggers a door opening command on the IoT application 14, and the IoT application 14 sends the door opening command to the IoT cloud platform 13, The IoT cloud platform 13 sends the door opening command to the corresponding sensing device 11 through the gateway 12, and finally the sensing device 11 executes the door opening command.
在IoT中,传感设备11之间可能存在联动策略。例如,当门(传感设备A)打开后,需要照明灯(传感设备B)自动打开。对此,仍如图1所示,可在网关12内设置一个规则引擎15,由规则引擎15根据存储的联动策略执行联动决策。例如,传感设备A将自身设备状态的数据发送给网关12后,网关12内的规则引擎15根据传感设备A的设备状态的数据查找对应的联动策略,进而生成控制传感设备B的决策指令,并将该决策指令发送给传感设备B,由传感设备B执行该决策指令,以完成传感设备A和传感设备B之间的联动策略。In the IoT, there may be a linkage strategy between the sensing devices 11. For example, when the door (sensing device A) is turned on, the illumination lamp (sensing device B) is required to be automatically turned on. In this regard, as shown in FIG. 1, a rule engine 15 may be disposed in the gateway 12, and the rule engine 15 performs a linkage decision according to the stored linkage policy. For example, after the sensing device A sends the data of the device status to the gateway 12, the rule engine 15 in the gateway 12 searches for the corresponding linkage policy according to the data of the device state of the sensing device A, thereby generating a decision for controlling the sensing device B. The instruction sends the decision instruction to the sensing device B, and the sensing device B executes the decision instruction to complete the linkage strategy between the sensing device A and the sensing device B.
可以看出,在每一次执行两个传感设备11之间的联动策略时,均需要由网关12根据其中一个传感设备11的设备状态的数据以及对应的联动策略,为另一个传感设备11生成相应的决策指令。那么,当传感设备11的数目较多时,上述联动策略的实现过程要求网关12具备较强的计算性能并保持时刻在线状态,那么,一旦网关12的计算性能不达标,或者网关12断电时,例如,网关12设置在缺乏稳定外接电源的森林等环境中,所有传感设备11之间的联动场景都将失效。It can be seen that each time the linkage policy between the two sensing devices 11 is executed, the gateway 12 needs to be the other sensing device according to the data of the device state of one of the sensing devices 11 and the corresponding linkage policy. 11 Generate corresponding decision instructions. Then, when the number of the sensing devices 11 is large, the implementation process of the linkage policy requires the gateway 12 to have strong computing performance and maintain the online state at the moment, then, once the computing performance of the gateway 12 is not up to standard, or the gateway 12 is powered off, For example, the gateway 12 is disposed in an environment such as a forest lacking a stable external power source, and the linkage scenario between all the sensing devices 11 will be invalid.
发明内容Summary of the invention
本申请的实施例提供一种传感设备的联动方法、装置及系统,可降低网关的计算压力以及供电需求,从而降低IoT的部署成本。Embodiments of the present application provide a linkage method, device, and system for a sensing device, which can reduce the calculation pressure of the gateway and the power supply requirement, thereby reducing the deployment cost of the IoT.
为达到上述目的,本申请的实施例采用如下技术方案:To achieve the above objective, the embodiment of the present application adopts the following technical solutions:
第一方面,本申请的实施例提供一种传感设备的联动方法,包括:第一传感设备确定当前第一传感设备的设备状态为第一目标状态;第一传感设备根据预先获取的绑定关系(该绑定关系用于指示第二传感设备的设备状态依赖于第一传感设备的设备状态),确定与第一传感设备绑定的第二传感设备;进而,第一传感设备根据第一目标状态生成联动指令,该联动指令用于指示第二传感设备将第二传感设备的设备状态更新为第二目标状态;那么,第一传感设备向第二传感设备发送该联动指令后,使第二传感设备根据该联动指令将自身的设备状态。这样,在没有网关的参与下,也可以实现第一传感设备与第二传感设备之间的联动过程,即使在网关出现断电的情况下,也可以实现第一传感设备与第二传感设备之间的联动过程,并且,可降低网关的计算压力,从而降低IoT的部署成本。In a first aspect, an embodiment of the present application provides a method for linkage of a sensing device, including: determining, by a first sensing device, that a device state of a current first sensing device is a first target state; a binding relationship (the binding relationship is used to indicate that the device state of the second sensing device is dependent on the device state of the first sensing device), and the second sensing device bound to the first sensing device is determined; The first sensing device generates a linkage command according to the first target state, where the linkage instruction is used to instruct the second sensing device to update the device state of the second sensing device to the second target state; then, the first sensing device is After the second sensing device sends the linkage instruction, the second sensing device causes the second sensing device to set its own device state according to the linkage instruction. In this way, the linkage process between the first sensing device and the second sensing device can be realized without the participation of the gateway, and the first sensing device and the second device can be realized even in the case that the gateway is powered off. The linkage process between the sensing devices and the computational pressure of the gateway can be reduced, thereby reducing the deployment cost of the IoT.
在一种可能的设计方法中,第一传感设备根据第一目标状态生成联动指令,包括:第一传感设备根据第一目标状态生成该联动指令,该联动指令携带有第一目标状态的标识。也就是说,第一传感设备可以将自身的第一目标状态确定为第二传感设备的设备状态,即第二目标状态与第一目标状态相同。这样,第二传感设备可以根据联动指令中第一目标状态的标识将自身的设备状态也更新为第一目标状态,从而实现第一传感设备与第二传感设备之间的联动过程。In a possible design method, the first sensing device generates the linkage instruction according to the first target state, including: the first sensing device generates the linkage instruction according to the first target state, where the linkage instruction carries the first target state Logo. That is, the first sensing device can determine its own first target state as the device state of the second sensing device, that is, the second target state is the same as the first target state. In this way, the second sensing device can update the device state of the device to the first target state according to the identifier of the first target state in the linkage command, thereby implementing a linkage process between the first sensing device and the second sensing device.
在一种可能的设计方法中,第一传感设备存储有联动策略,该联动策略用于指示:当第一传感设备的设备状态处于第一目标状态时,第二传感设备的设备状态为第二目标状态;那么,第一传感设备根据第一目标状态生成联动指令时,具体包括:第一传感设备从该联动策略中为第二传感设备查找与第一目标状态对应的第二目标状态;进而,第一传感设备根据该第二目标状态生成联动指令,该联动指令中携带有第二目标状态的标识。后续,第二传感设备可根据联动指令中第二目标状态的标识,将自身的设备状态更新为第二目标状态。In a possible design method, the first sensing device stores a linkage policy, where the linkage policy is used to indicate: when the device state of the first sensing device is in the first target state, the device state of the second sensing device When the first sensing device generates the linkage instruction according to the first target state, the method includes: the first sensing device searches for the second sensing device corresponding to the first target state from the linkage policy. a second target state; further, the first sensing device generates a linkage instruction according to the second target state, where the linkage instruction carries an identifier of the second target state. Subsequently, the second sensing device may update its own device state to the second target state according to the identifier of the second target state in the linkage instruction.
在一种可能的设计方法中,在第一传感设备确定当前第一传感设备的设备状态为第一目标状态之前,还包括:第一传感设备向网关发送第一传感设备的第一设备信息,第一设备信息包括允许第一传感设备输出的指令以及允许第一传感设备接收的指令。In a possible design method, before the first sensing device determines that the device state of the current first sensing device is the first target state, the method further includes: the first sensing device transmitting the first sensing device to the gateway A device information, the first device information including an instruction to allow the first sensing device to output and an instruction to allow the first sensing device to receive.
第二方面,本申请的实施例提供一种传感设备的联动方法,包括:网关获取第一传感设备与第二传感设备之间的联动策略,该联动策略包括联动条件和联动结果,该联动条件用于指示第一传感设备的设备状态为第一目标状态,该联动结果用于指示第二传感设备的设备状态为第二目标状态;该网关根据该联动策略确定第一传感设备与第二传感设备之间具有绑定关系,该绑定关系用于指示第二传感设备的设备状态依赖于第一传感设备的设备状态;该网关向第一传感设备发送绑定指令,该绑定指令用于指示第一传感设备建立与第二传感设备之间的绑定关系。这样,在后续的联动过程中,即使网关不断电或者计算能力不足时,第一传感设备也可以根据预先获取的上述绑定关系,确定与第一传感设备具有绑定关系的第二传感设备,实现第一传感设备与第二传感设备之间的联动过程。In a second aspect, an embodiment of the present application provides a linkage method of a sensing device, including: a gateway acquiring a linkage policy between a first sensing device and a second sensing device, where the linkage policy includes a linkage condition and a linkage result, The linkage condition is used to indicate that the device state of the first sensing device is the first target state, and the linkage result is used to indicate that the device state of the second sensing device is the second target state; the gateway determines the first transmission according to the linkage policy The binding device has a binding relationship with the second sensing device, where the binding relationship is used to indicate that the device state of the second sensing device is dependent on the device state of the first sensing device; the gateway sends the first sensing device to the first sensing device And a binding instruction, the binding instruction is used to instruct the first sensing device to establish a binding relationship with the second sensing device. In this way, in the subsequent linkage process, even if the gateway is powered off or the computing power is insufficient, the first sensing device may determine the second transmission that has a binding relationship with the first sensing device according to the binding relationship acquired in advance. The sensing device implements a linkage process between the first sensing device and the second sensing device.
在一种可能的设计方法中,在该网关根据该联动策略确定第一传感设备与第二传感设备之间具有绑定关系之前,还包括:该网关获取第一传感设备的第一描述文件以及第二传感设备的第二描述文件,第一描述文件包括允许第一传感设备输出的指令,第二描述文件 包括允许第二传感设备接收的指令;那么,网关根据该联动策略确定第一传感设备与第二传感设备之间具有绑定关系时,具体包括:当第一传感设备输出的指令中包含执行该联动条件的第一目标指令,且第二传感设备接收的指令中包含执行该联动结果的第二目标指令时,该网关确定第一传感设备与第二传感设备之间具有绑定关系。In a possible design method, before the gateway determines that the first sensing device and the second sensing device have a binding relationship according to the linkage policy, the method further includes: acquiring, by the gateway, the first a description file and a second description file of the second sensing device, the first description file includes an instruction to allow the first sensing device to output, and the second description file includes an instruction to allow the second sensing device to receive; then, the gateway according to the linkage When the policy determines that the first sensing device has a binding relationship with the second sensing device, the method includes: when the instruction output by the first sensing device includes the first target instruction for performing the linkage condition, and the second sensing When the instruction received by the device includes the second target instruction for performing the linkage result, the gateway determines that the first sensing device has a binding relationship with the second sensing device.
在一种可能的设计方法中,该网关确定第一传感设备与第二传感设备之间具有绑定关系,包括:当第一传感设备使用的近场通信协议与第二传感设备使用的近场通信协议相同时,该网关确定第一传感设备与第二传感设备之间具有绑定关系。In a possible design method, the gateway determines a binding relationship between the first sensing device and the second sensing device, including: a near field communication protocol used by the first sensing device and the second sensing device When the near field communication protocol used is the same, the gateway determines that there is a binding relationship between the first sensing device and the second sensing device.
在一种可能的设计方法中,该网关获取第一传感设备的第一描述文件,包括:该网关接收第一传感设备发送的第一设备信息,第一设备信息包括允许第一传感设备输出的指令;该网关将允许第一传感设备输出的指令映射为允许第一传感设备输出的指令,得到第一描述文件;其中,该网关获取第二传感设备的第二描述文件,包括:该网关接收第二传感设备发送的第二设备信息,第二设备信息包括允许第二传感设备接收的指令;该网关将允许第二传感设备接收的指令映射为允许第二传感设备接收的指令,得到第二描述文件。In a possible design method, the gateway acquires the first description file of the first sensing device, including: the gateway receiving the first device information sent by the first sensing device, where the first device information includes allowing the first sensing An instruction output by the device; the gateway maps an instruction output by the first sensing device to an instruction that allows the first sensing device to output, to obtain a first description file; wherein the gateway acquires a second description file of the second sensing device The method includes: the gateway receiving second device information sent by the second sensing device, the second device information including an instruction that allows the second sensing device to receive; the gateway mapping the instruction received by the second sensing device to allow the second The instruction received by the sensing device obtains a second description file.
在一种可能的设计方法中,在该网关根据该联动策略确定第一传感设备与第二传感设备之间具有绑定关系之后,还包括:该网关接收第一传感设备发送的联动指令,该联动指令用于指示第二传感设备将第二传感设备的设备状态更新为第二目标状态;当该网关确定第一传感设备与第二传感设备之间具有绑定关系时,该网关丢弃该联动指令,避免第二传感设备重复执行该联动指令。In a possible design method, after the gateway determines that the first sensing device and the second sensing device have a binding relationship according to the linkage policy, the method further includes: the gateway receiving the linkage sent by the first sensing device An instruction, the linkage instruction is used to instruct the second sensing device to update the device state of the second sensing device to the second target state; and when the gateway determines that the first sensing device has a binding relationship with the second sensing device The gateway discards the linkage instruction to prevent the second sensing device from repeatedly executing the linkage instruction.
第三方面,本申请的实施例提供一种传感设备,该传感设备为第一传感设备,包括:确定单元,用于确定当前第一传感设备的设备状态为第一目标状态;根据预先获取的绑定关系,确定与第一传感设备绑定的第二传感设备,该绑定关系用于指示第二传感设备的设备状态依赖于第一传感设备的设备状态;联动单元,用于根据第一目标状态生成联动指令,该联动指令用于指示第二传感设备将第二传感设备的设备状态更新为第二目标状态;发送单元,用于向第二传感设备发送该联动指令。In a third aspect, an embodiment of the present application provides a sensing device, where the sensing device is a first sensing device, including: a determining unit, configured to determine that a device state of the current first sensing device is a first target state; And determining, according to the pre-acquisition binding relationship, the second sensing device that is bound to the first sensing device, where the binding relationship is used to indicate that the device state of the second sensing device is dependent on the device state of the first sensing device; a linkage unit, configured to generate a linkage instruction according to the first target state, the linkage instruction is used to instruct the second sensing device to update the device state of the second sensing device to the second target state; and the sending unit is configured to send the second transmission The sensing device sends the linkage command.
在一种可能的设计方法中,该联动指令携带有第一目标状态的标识。In one possible design method, the linkage instruction carries an identification of the first target state.
在一种可能的设计方法中,第一传感设备存储有联动策略,该联动策略用于指示:当第一传感设备的设备状态处于第一目标状态时,第二传感设备的设备状态为第二目标状态;该联动单元,具体用于:从该联动策略中为第二传感设备查找与第一目标状态对应的第二目标状态;根据第二目标状态生成联动指令,该联动指令中携带有第二目标状态的标识。In a possible design method, the first sensing device stores a linkage policy, where the linkage policy is used to indicate: when the device state of the first sensing device is in the first target state, the device state of the second sensing device a second target state; the linkage unit is configured to: search for a second target state corresponding to the first target state for the second sensing device from the linkage policy; and generate a linkage instruction according to the second target state, the linkage instruction The identifier carries the second target state.
在一种可能的设计方法中,该发送单元,还用于向网关发送第一传感设备的第一设备信息,第一设备信息包括允许第一传感设备输出的指令以及允许第一传感设备接收的指令。In a possible design method, the sending unit is further configured to send, to the gateway, first device information of the first sensing device, where the first device information includes an instruction that allows the first sensing device to output, and allows the first sensing The instructions received by the device.
第四方面,本申请的实施例提供一种网关,包括:获取单元,用于获取第一传感设备与第二传感设备之间的联动策略,该联动策略包括联动条件和联动结果,该联动条件用于指示第一传感设备的设备状态为第一目标状态,该联动结果用于指示第二传感设备的设备状态为第二目标状态;确定单元,用于根据该联动策略确定第一传感设备与第二传感设备之间具有绑定关系,该绑定关系用于指示第二传感设备的设备状态依赖于第一传感设备的设备状态;发送单元,用于向第一传感设备发送绑定指令,该绑定指令用于指示第一传感设备建立与第二传感设备之间的绑定关系。In a fourth aspect, an embodiment of the present application provides a gateway, including: an acquiring unit, configured to acquire a linkage policy between a first sensing device and a second sensing device, where the linkage policy includes a linkage condition and a linkage result, where The linkage condition is used to indicate that the device state of the first sensing device is the first target state, the linkage result is used to indicate that the device state of the second sensing device is the second target state, and the determining unit is configured to determine, according to the linkage policy a binding relationship between the sensing device and the second sensing device, the binding relationship is used to indicate that the device state of the second sensing device is dependent on the device state of the first sensing device, and the sending unit is configured to A sensing device sends a binding instruction, the binding instruction is used to instruct the first sensing device to establish a binding relationship with the second sensing device.
在一种可能的设计方法中,该获取单元,还用于获取第一传感设备的第一描述文件以及第二传感设备的第二描述文件,第一描述文件包括允许第一传感设备输出的指令,第二描述文件包括允许第二传感设备接收的指令;该确定单元,具体用于:当第一传感设备输出的指令中包含执行该联动条件的第一目标指令,且第二传感设备接收的指令中包含执行该联动结果的第二目标指令时,确定第一传感设备与第二传感设备之间具有绑定关系。In a possible design method, the acquiring unit is further configured to acquire a first description file of the first sensing device and a second description file of the second sensing device, where the first description file includes allowing the first sensing device An output instruction, the second description file includes an instruction for allowing the second sensing device to receive; the determining unit is configured to: when the instruction output by the first sensing device includes the first target instruction for executing the linkage condition, and When the instruction received by the second sensing device includes the second target instruction for performing the linkage result, determining that the first sensing device and the second sensing device have a binding relationship.
在一种可能的设计方法中,该确定单元,具体用于:当第一传感设备使用的近场通信协议与第二传感设备使用的近场通信协议相同时,确定第一传感设备与第二传感设备之间具有绑定关系。In a possible design method, the determining unit is specifically configured to: when the near field communication protocol used by the first sensing device is the same as the near field communication protocol used by the second sensing device, determine the first sensing device There is a binding relationship with the second sensing device.
在一种可能的设计方法中,该获取单元,具体用于:接收第一传感设备发送的第一设备信息,第一设备信息包括允许第一传感设备输出的指令;将允许第一传感设备输出的指令映射为允许第一传感设备输出的指令,得到第一描述文件;接收第二传感设备发送的第二设备信息,第二设备信息包括允许第二传感设备接收的指令;将允许第二传感设备接收的指令映射为允许第二传感设备接收的指令,得到第二描述文件。In a possible design method, the acquiring unit is specifically configured to: receive first device information sent by the first sensing device, where the first device information includes an instruction that allows the first sensing device to output; the first transmission is allowed The instruction outputted by the sensing device is mapped to an instruction that allows the first sensing device to output, and the first description file is obtained; the second device information sent by the second sensing device is received, and the second device information includes an instruction that allows the second sensing device to receive Mapping the instructions received by the second sensing device to instructions that are allowed to be received by the second sensing device to obtain a second description file.
在一种可能的设计方法中,该网关还包括删除单元,其中,该获取单元,还用于接收第一传感设备发送的联动指令,该联动指令用于指示第二传感设备将第二传感设备的设备状态更新为第二目标状态;该删除单元,用于当该网关确定第一传感设备与第二传感设备之间具有绑定关系时,丢弃该联动指令。In a possible design method, the gateway further includes a deleting unit, wherein the acquiring unit is further configured to receive a linkage instruction sent by the first sensing device, where the linkage instruction is used to indicate that the second sensing device is to be the second The device status of the sensing device is updated to a second target state; the deleting unit is configured to discard the linkage instruction when the gateway determines that the first sensing device has a binding relationship with the second sensing device.
第五方面,本申请的实施例提供一种传感设备,包括:处理器、存储器、总线和通信接口;该存储器用于存储计算机执行指令,该处理器与该存储器通过该总线连接,当传感设备运行时,该处理器执行该存储器存储的该计算机执行指令,以使传感设备执行上述任一项联动方法。In a fifth aspect, an embodiment of the present application provides a sensing device, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store a computer to execute an instruction, and the processor is connected to the memory through the bus, and is transmitted While the device is in operation, the processor executes the computer-executed instructions stored by the memory to cause the sensing device to perform any of the above-described linkage methods.
第六方面,本申请的实施例提供一种网关,包括:处理器、存储器、总线和通信接口;该存储器用于存储计算机执行指令,该处理器与该存储器通过该总线连接,当网关运行时,该处理器执行该存储器存储的该计算机执行指令,以使网关执行上述任一项联动方法。In a sixth aspect, an embodiment of the present application provides a gateway, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store a computer execution instruction, and the processor is connected to the memory through the bus, when the gateway is running The processor executes the computer-executed instructions stored by the memory to cause the gateway to perform any of the above-described linkage methods.
第七方面,本申请的实施例提供一种联动系统,包括上述任一项网关,以及与该网关均相连的第一传感设备和第二传感设备。In a seventh aspect, an embodiment of the present application provides a linkage system, including any one of the foregoing gateways, and a first sensing device and a second sensing device connected to the gateway.
第八方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该指令在上述任一项传感设备上运行时,使得传感设备执行上述任一项联动方法。In an eighth aspect, an embodiment of the present application provides a computer readable storage medium, where the instructions are stored, and when the instruction is run on any one of the sensing devices, the sensing device performs the foregoing A linkage method.
第九方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当该指令在上述任一项网关上运行时,使得网关执行上述任一项联动方法。In a ninth aspect, the embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium stores an instruction, when the instruction is run on any one of the foregoing gateways, causing the gateway to perform any one of the foregoing linkage methods. .
第十方面,本申请实施例提供一种包含指令的计算机程序产品,当其在上述任一项传感设备上运行时,使得传感设备执行上述任一项联动方法。In a tenth aspect, the embodiment of the present application provides a computer program product including instructions, when the device is operated on any one of the above sensing devices, causing the sensing device to perform any of the foregoing linkage methods.
第十一方面,本申请实施例提供一种包含指令的计算机程序产品,当其在上述任一项网关上运行时,使得网关执行上述任一项联动方法。In an eleventh aspect, an embodiment of the present application provides a computer program product, including instructions, when the gateway is executed on any of the foregoing gateways, causing the gateway to perform any of the foregoing linkage methods.
本申请的实施例中,上述传感设备和网关的名字对设备本身不构成限定,在实际实现中,这些设备可以以其他名称出现。只要各个设备的功能和本申请的实施例类似,即属于本申请权利要求及其等同技术的范围之内。In the embodiment of the present application, the names of the sensing device and the gateway are not limited to the device itself. In actual implementation, the devices may appear under other names. As long as the functions of the respective devices are similar to the embodiments of the present application, they are within the scope of the claims and their equivalents.
另外,第三方面至第十一方面中任一种设计方式所带来的技术效果可参见上述第一方面或第二方面中不同设计方法所带来的技术效果,此处不再赘述。In addition, the technical effects brought by any one of the third aspect to the eleventh aspect can be referred to the technical effects brought by the different design methods in the first aspect or the second aspect, and details are not described herein again.
图1为现有技术中物联网的设计架构示意图;1 is a schematic diagram of a design architecture of an Internet of Things in the prior art;
图2为本申请实施例提供的一种联动系统的架构示意图一;2 is a schematic structural diagram 1 of a linkage system according to an embodiment of the present application;
图3为本申请实施例提供的一种联动系统的架构示意图二;FIG. 3 is a schematic structural diagram 2 of a linkage system according to an embodiment of the present disclosure;
图4为本申请实施例提供的一种联动系统的架构示意图三;4 is a schematic structural diagram 3 of a linkage system according to an embodiment of the present disclosure;
图5为本申请实施例提供的一种联动系统的架构示意图四;FIG. 5 is a schematic structural diagram 4 of a linkage system according to an embodiment of the present disclosure;
图6为本申请实施例提供的一种传感设备的联动方法的交互示意图;FIG. 6 is a schematic diagram of interaction of a linkage method of a sensing device according to an embodiment of the present disclosure;
图7为本申请实施例提供的一种传感设备的结构示意图;FIG. 7 is a schematic structural diagram of a sensing device according to an embodiment of the present disclosure;
图8为本申请实施例提供的一种网关的结构示意图;FIG. 8 is a schematic structural diagram of a gateway according to an embodiment of the present application;
图9为本申请实施例提供的一种传感设备(或网关)的硬件结构示意图一;FIG. 9 is a schematic structural diagram 1 of a hardware structure of a sensing device (or gateway) according to an embodiment of the present disclosure;
图10为本申请实施例提供的一种传感设备(或网关)的硬件结构示意图二。FIG. 10 is a second schematic structural diagram of a hardware structure of a sensing device (or a gateway) according to an embodiment of the present application.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。In the following, the terms "first" and "second" are used for descriptive purposes only, and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" and "second" may include one or more of the features either explicitly or implicitly. In the description of the embodiments of the present application, "multiple" means two or more unless otherwise stated.
本申请的实施例提供一种传感设备的联动方法,可应用于如图2所示的联动系统100中。该联动系统100中包括至少一个网关21,以及与每个网关21相连的至少一个传感设备22。The embodiment of the present application provides a linkage method of a sensing device, which can be applied to the linkage system 100 shown in FIG. 2. The linkage system 100 includes at least one gateway 21 and at least one sensing device 22 coupled to each gateway 21.
其中,传感设备22,用于感测被测量的信息,并能将感测到的信息按一定规律转换成为电信号或其他所需形式的信息输出。传感设备22可以包括温度传感器、压力传感器、重力传感器以及光线传感器等任意类型的传感器,示例性的,传感设备22具体可以为智能家电、终端以及车辆等设备,本申请实施例对此不作任何限制。The sensing device 22 is configured to sense the measured information, and can convert the sensed information into an electrical signal or other desired form of information output according to a certain rule. The sensing device 22 can include any type of sensor such as a temperature sensor, a pressure sensor, a gravity sensor, and a light sensor. For example, the sensing device 22 can be a device such as a smart home appliance, a terminal, and a vehicle. Any restrictions.
网关21,可用于接收传感设备22采集到的数据以及传感设备22发送的指令等,也可以根据一个或多个传感设备22采集到的数据或指令,向其他传感设备22发送数据或指令等。The gateway 21 can be used to receive data collected by the sensing device 22 and commands sent by the sensing device 22, and can also send data to other sensing devices 22 according to data or instructions collected by one or more sensing devices 22. Or instructions, etc.
在本申请实施例中,网关21可以根据传感设备22之间的联动策略,将具有绑定关系的多个传感设备22绑定。例如,传感设备A与传感设备B之间的联动策略为:当传感设备A处于开启状态时,打开传感设备B,即:传感设备A与传感设备B之间具有绑定关系,传感设备B的设备状态依赖于传感设备A的设备状态。那么,在传感设备A与传感设备B实现联动过程之前,网关21可以先建立传感设备A与传感设备B之间的绑定关系,并向传感设备A发送绑定指令,以指示传感设备A建立传感设备A与传感设备B之间的绑定关系。In the embodiment of the present application, the gateway 21 may bind the plurality of sensing devices 22 having the binding relationship according to the linkage policy between the sensing devices 22. For example, the linkage strategy between the sensing device A and the sensing device B is: when the sensing device A is in the on state, the sensing device B is opened, that is, the binding between the sensing device A and the sensing device B Relationship, the device state of sensing device B depends on the device state of sensing device A. Then, before the sensing device A and the sensing device B implement the linkage process, the gateway 21 may first establish a binding relationship between the sensing device A and the sensing device B, and send a binding instruction to the sensing device A to The sensing device A is instructed to establish a binding relationship between the sensing device A and the sensing device B.
这样,当传感设备A检测到自身的设备状态为开启状态时,可直接根据上述绑定关系, 确定与传感设备A绑定的传感设备B,并根据自身的设备状态(即开启状态)生成联动指令(例如,开启指令)发送给传感设备B,该开启指令用于指示传感设备B将自身的设备状态更新为开启状态,从而实现传感设备A与传感设备B之间的联动需求。In this way, when the sensing device A detects that its device state is the on state, the sensing device B bound to the sensing device A can be directly determined according to the binding relationship, and according to the device state (ie, the open state) Generating a linkage instruction (for example, an opening instruction) to send to the sensing device B, the opening instruction is used to instruct the sensing device B to update its device state to an on state, thereby implementing between the sensing device A and the sensing device B. Linkage needs.
可以看出,在本申请实施例提供的传感设备的联动方法中,在没有网关的参与下,第一传感设备(例如上述传感设备A)可以根据预先获取的绑定关系,确定与第一传感设备具有绑定关系的第二传感设备(例如上述传感设备B)。这样,第一传感设备可根据自身的设备状态(例如,上述开启状态)为第二传感设备生成对应的联动指令(例如上述开启指令),并将该联动指令发送给第二传感设备,使第二传感设备根据该联动指令更新自身的设备状态。这样,在没有网关的参与下,也可以实现第一传感设备与第二传感设备之间的联动过程,即使在网关21出现断电的情况下,也可以实现第一传感设备与第二传感设备之间的联动过程,并且,可降低网关21的计算压力,从而降低IoT的部署成本。It can be seen that, in the linkage method of the sensing device provided by the embodiment of the present application, the first sensing device (for example, the sensing device A) can determine the binding according to the pre-acquired binding relationship without the participation of the gateway. The first sensing device has a second sensing device in a binding relationship (such as the sensing device B described above). In this way, the first sensing device can generate a corresponding linkage instruction (for example, the above-mentioned opening instruction) for the second sensing device according to the device state of the device (for example, the above-mentioned open state), and send the linkage command to the second sensing device. And causing the second sensing device to update its own device state according to the linkage instruction. In this way, the linkage process between the first sensing device and the second sensing device can be realized without the participation of the gateway, and even in the case that the gateway 21 is powered off, the first sensing device and the first sensing device can be realized. The linkage process between the two sensing devices, and the calculation pressure of the gateway 21 can be reduced, thereby reducing the deployment cost of the IoT.
进一步地,如图3所示,网关21内还可以设置规则引擎23,规则引擎23可以将第一传感设备与第二传感设备之间的联动策略发送给第一传感设备。Further, as shown in FIG. 3, a rule engine 23 may be disposed in the gateway 21, and the rule engine 23 may send a linkage policy between the first sensing device and the second sensing device to the first sensing device.
其中,联动策略包括联动条件和联动结果两个部分。联动条件用于指示第一传感设备的设备状态,联动结果用于指示第二传感设备的设备状态。例如,联动策略1为:当第一传感设备的设备状态处于第一目标状态时,第二传感设备的设备状态为第二目标状态,其中,联动条件为:第一传感设备的设备状态处于第一目标状态,联动结果为:第二传感设备的设备状态为第二目标状态。Among them, the linkage strategy includes two parts: linkage condition and linkage result. The linkage condition is used to indicate the device status of the first sensing device, and the linkage result is used to indicate the device status of the second sensing device. For example, the linkage policy 1 is: when the device state of the first sensing device is in the first target state, the device state of the second sensing device is the second target state, wherein the linkage condition is: the device of the first sensing device The state is in the first target state, and the linkage result is: the device state of the second sensing device is the second target state.
这样,第一传感设备可以根据网关21内规则引擎23发送的联动策略,确定与自身的第一目标状态对应的第二传感设备的第二目标状态,例如,第二传感设备的第二目标状态为开启状态,那么,第一传感设备可以根据该开启状态生成开启指令,即联动指令,发送给第二传感设备,进而,第二传感设备根据该联动指令将自身的设备状态更新为开启状态,以使得第二传感设备完成该联动指令。In this way, the first sensing device can determine the second target state of the second sensing device corresponding to the first target state of the first target device according to the linkage policy sent by the rule engine 23 in the gateway 21, for example, the second sensing device. The second sensing device can generate an opening command according to the opening state, that is, a linkage command, and send the signal to the second sensing device. Further, the second sensing device sets its own device according to the linkage instruction. The status is updated to an on state to cause the second sensing device to complete the linkage command.
进一步地,如图4所示,联动系统100中还可以设置IoT云平台24,IoT云平台24与每一个网关21相连,由IoT云平台24将第一传感设备与第二传感设备之间的联动策略发送给对应的网关21内的规则引擎23。Further, as shown in FIG. 4, an IoT cloud platform 24 may also be disposed in the linkage system 100. The IoT cloud platform 24 is connected to each gateway 21, and the first sensing device and the second sensing device are connected by the IoT cloud platform 24. The inter-linkage policy is sent to the rule engine 23 in the corresponding gateway 21.
另外,如图5所示,联动系统100中还可以设置与IoT云平台24相连的IoT应用25,这样,用户在任意IoT应用25上触发管理传感设备22的管理指令(例如,开启门锁的管理指令)时,IoT应用25可将该管理指令发送给IoT云平台24,由IoT云平台24通过网关21将该管理指令送给对应的传感设备22,最终由对应的传感设备22执行该管理指令。In addition, as shown in FIG. 5, the IoT application 25 connected to the IoT cloud platform 24 may also be disposed in the linkage system 100, such that the user triggers management instructions for managing the sensing device 22 on any IoT application 25 (eg, unlocking the door lock) The IoT application 25 can send the management command to the IoT cloud platform 24, and the IoT cloud platform 24 sends the management command to the corresponding sensing device 22 through the gateway 21, and finally the corresponding sensing device 22 Execute the management instruction.
以下,将结合具体实施例详细阐述本申请实施例提供的一种传感设备的联动方法,如图6所示,该方法包括:Hereinafter, a linkage method of a sensing device provided by an embodiment of the present application is described in detail in conjunction with a specific embodiment. As shown in FIG. 6, the method includes:
600、网关获取第一传感设备的第一描述文件以及第二传感设备的第二描述文件。600. The gateway acquires a first description file of the first sensing device and a second description file of the second sensing device.
其中,该第一描述文件包括允许第一传感设备输出的指令,第二描述文件包括允许第二传感设备接收的指令。The first description file includes an instruction that allows the first sensing device to output, and the second description file includes an instruction that allows the second sensing device to receive.
另外,该第一描述文件还可以包括允许第一传感设备接收的指令,该第二描述文件还可以包括允许第二传感设备输出的指令,本申请实施例对此不作任何限制。In addition, the first description file may further include an instruction for allowing the first sensing device to receive, and the second description file may further include an instruction for allowing the output of the second sensing device, which is not limited by the embodiment of the present application.
具体的,网关可以从第一传感设备获取其设备信息,例如,第一设备信息,该第一设 备信息包括允许第一传感设备输出的指令,网关也可以从第二传感设备获取其设备信息,例如,第二设备信息,该第二设备信息包括允许第二传感设备接收的指令。Specifically, the gateway may obtain its device information from the first sensing device, for example, first device information, where the first device information includes an instruction that allows the first sensing device to output, and the gateway may also obtain the second sensing device from the second sensing device. Device information, for example, second device information, the second device information including instructions that allow the second sensing device to receive.
例如,当第一传感设备(或第二传感设备)与网关之间使用Z-Wave协议通信时,该第一设备信息(或第二设备信息)具体可以为NIF(node information,节点信息);当第一传感设备(或第二传感设备)与网关之间使用ZigBee协议(紫蜂协议)通信时,该第一设备信息(或第二设备信息)具体可以为第一传感设备(或第二传感设备)的match descriptor(匹配描述符)。For example, when the first sensing device (or the second sensing device) communicates with the gateway using the Z-Wave protocol, the first device information (or the second device information) may specifically be NIF (node information). When the first sensing device (or the second sensing device) communicates with the gateway using the ZigBee protocol (Zigbee Protocol), the first device information (or the second device information) may specifically be the first sensing The match descriptor of the device (or second sensing device).
以NIF为例,NIF中包含如表1所示的信息,其中,NIF内设置有一个特殊字节0xEF,0xEF将NIF划分为两个部分,一部分用于指示传感设备允许接收的n(n≥1)个指令,具体可以以Z-Wave格式的命令类(例如,supported command slass)表示;另一部分用于指示传感设备允许输出的m(m≥1)个指令,也可以以Z-Wave格式的命令类(例如,controlled command class)表示。那么,网关接收到第一传感设备发送的NIF(即第一设备信息)后,可以采用映射的方式,将第一传感设备允许接收的n个指令中的至少一个指令,映射为第一描述文件中允许第一传感设备接收的指令,并且,将第一传感设备允许输出的m个指令中的至少一个指令,映射为第一描述文件中允许第一传感设备输出的指令。映射后第一描述文件中允许第一传感设备接收的指令以及允许第一传感设备输出的指令可以以IoT云平台的格式表示。Taking NIF as an example, the NIF contains information as shown in Table 1, in which a special byte 0xEF is set in the NIF, and 0xEF divides the NIF into two parts, and a part is used to indicate n(n) that the sensing device is allowed to receive. ≥ 1) instructions, which can be expressed in the Z-Wave format command class (for example, supported command slass); the other part is used to indicate the m (m ≥ 1) instructions allowed by the sensing device, or Z- The command class of the Wave format (for example, the controlled command class) is represented. Then, after receiving the NIF (ie, the first device information) sent by the first sensing device, the gateway may map, by using a mapping manner, at least one of the n instructions that the first sensing device allows to receive, to be first. An instruction in the description file that allows the first sensing device to receive, and at least one of the m instructions that the first sensing device allows to output is mapped to an instruction in the first description file that allows the first sensing device to output. The instructions in the first description file that are allowed to be received by the first sensing device and the instructions that allow the first sensing device to output may be represented in the format of the IoT cloud platform.
表1Table 1
允许接收的指令1Allowed instruction 1 |
允许接收的指令2 |
……...... |
允许接收的指令nAllowed instructions n |
0xEF0xEF |
允许输出的指令1Instruction 1 that allows |
允许输出的指令2Instruction 2 that allows output |
……...... |
允许输出的指令mCommand that allows output m |
当然,还可以在第一描述文件中记录传感设备,例如上述第一传感设备的设备特性信息,例如,第一传感设备采集的数据(例如,温度值、湿度值、开关的关闭或打开状态等),本申请实施例对此不作任何限制。Of course, it is also possible to record in the first description file the sensing device, such as the device characteristic information of the first sensing device, for example, the data collected by the first sensing device (for example, temperature value, humidity value, switch off or The state of the application, etc., is not limited in this embodiment.
那么,网关根据第一传感设备的第一设备信息生成的第一描述文件包含如表2所示的信息,其中,第一传感设备当前的电量为40%,允许第一传感设备接收的指令中包括开启指令,而允许第一传感设备输出的指令中包括开启指令和关闭指令。Then, the first description file generated by the gateway according to the first device information of the first sensing device includes the information as shown in Table 2, wherein the current sensing power of the first sensing device is 40%, allowing the first sensing device to receive The instruction includes an open command, and the instruction that allows the first sensing device to output includes an open command and a close command.
表2Table 2
类似的,当第一传感设备(或第二传感设备)的设备信息为match descriptor时,match descriptor包含InClusterList和OutClusterList这两个字段。其中,InClusterList字段中包括允许此传感设备接收的指令,OutClusterList字段中包括允许此传感设备输出的指令。Similarly, when the device information of the first sensing device (or the second sensing device) is a match descriptor, the match descriptor includes two fields, InClusterList and OutClusterList. The InClusterList field includes an instruction that allows the sensing device to receive, and the OutClusterList field includes an instruction that allows the sensing device to output.
那么,网关接收到第一传感设备发送的match descriptor(即第一设备信息)后,也可以采用映射的方式,将InClusterList字段映射为第一描述文件中允许第一传感设备接收的指令,将OutClusterList字段映射为第一描述文件中允许第一传感设备输出的指令。Then, after receiving the match descriptor (that is, the first device information) sent by the first sensing device, the gateway may also map the InClusterList field to an instruction in the first description file that allows the first sensing device to receive, The OutClusterList field is mapped to an instruction in the first description file that allows the first sensing device to output.
类似的,网关可按照上述方法根据第二传感设备的第二设备信息生成第二传感设备的第二描述文件。Similarly, the gateway may generate a second description file of the second sensing device according to the second device information of the second sensing device according to the above method.
另外,网关也可以从IoT云平台中获取上述第一传感设备的第一描述文件以及第二传感设备的第二描述文件,本申请实施例对此不作任何限制。In addition, the gateway may also obtain the first description file of the first sensing device and the second description file of the second sensing device from the IoT cloud platform, which is not limited in this embodiment.
601、网关获取第一传感设备与第二传感设备之间的联动策略。601. The gateway acquires a linkage policy between the first sensing device and the second sensing device.
其中,上述联动策略具体可包括联动条件和联动结果,联动条件用于指示:第一传感设备的设备状态为第一目标状态,联动结果用于指示:第二传感设备的设备状态为第二目标状态。The linkage policy may specifically include a linkage condition and a linkage result, where the linkage condition is used to indicate that the device state of the first sensing device is the first target state, and the linkage result is used to indicate that the device state of the second sensing device is Two target states.
例如,联动策略1为:当温度计采集到的温度大于30摄氏度时,打开制冷设备。那么,在联动策略1中,联动条件为:温度计(第一传感设备)采集到的温度大于30摄氏度,即温度计的设备状态为温度大于30摄氏度,联动结果为:打开制冷设备(第二传感设备),即制冷设备的设备状态为开启状态。For example, the linkage strategy 1 is: when the temperature collected by the thermometer is greater than 30 degrees Celsius, the refrigeration device is turned on. Then, in the linkage strategy 1, the linkage condition is: the temperature collected by the thermometer (first sensing device) is greater than 30 degrees Celsius, that is, the temperature of the device state of the thermometer is greater than 30 degrees Celsius, and the linkage result is: opening the refrigeration device (second transmission Sensing device), that is, the device state of the cooling device is on.
具体的,可以由网关内的规则引擎从IoT云平台中获取第一传感设备与第二传感设备之间的联动策略。Specifically, the linkage policy between the first sensing device and the second sensing device may be obtained from the IoT cloud platform by a rule engine in the gateway.
602、网关根据上述联动策略确定第一传感设备与第二传感设备之间具有绑定关系,该绑定关系用于指示第二传感设备的设备状态依赖于第一传感设备的设备状态。602. The gateway determines, according to the foregoing linkage policy, a binding relationship between the first sensing device and the second sensing device, where the binding relationship is used to indicate that the device state of the second sensing device is dependent on the device of the first sensing device. status.
具体的,网关可以根据步骤601中获取的第一传感设备的第一描述文件、第二传感设备的第二描述文件以及步骤602中获取的联动策略确定第一传感设备与第二传感设备之间是否具有绑定关系。Specifically, the gateway may determine, according to the first description file of the first sensing device, the second description file of the second sensing device, and the linkage policy acquired in step 602, the first sensing device and the second transmission. Whether there is a binding relationship between devices.
示例性的,当第一传感设备输出的指令中包含执行上述联动条件的第一目标指令,且第二传感设备接收的指令中包含执行上述联动结果的第二目标指令时,网关可确定第一传感设备与第二传感设备之间具有绑定关系。否则,可确定第一传感设备与第二传感设备之间不具有绑定关系。Exemplarily, when the instruction output by the first sensing device includes the first target instruction that performs the linkage condition, and the instruction received by the second sensing device includes the second target instruction that performs the linkage result, the gateway may determine The first sensing device has a binding relationship with the second sensing device. Otherwise, it can be determined that there is no binding relationship between the first sensing device and the second sensing device.
例如,第一传感设备输出的指令中包括开启指令,第二传感设备接收的指令中包括关闭指令。上述联动策略可以为:当第一传感设备开启时(联动条件),关闭第二传感设备(联动结果)。可以看出,第一传感设备输出的指令中包含执行上述联动条件的开启指令 (即第一目标指令),第二传感设备接收的指令中包含执行上述联动结果的关闭指令(即第二目标指令),那么,网关可以确定第一传感设备与第二传感设备之间具有绑定关系。For example, the instruction output by the first sensing device includes an open command, and the command received by the second sensing device includes a close command. The linkage policy may be: when the first sensing device is turned on (the linkage condition), the second sensing device is turned off (the linkage result). It can be seen that the instruction output by the first sensing device includes an opening instruction (ie, a first target instruction) for executing the linkage condition, and the instruction received by the second sensing device includes a closing instruction for performing the linkage result (ie, the second The target command), then the gateway can determine that there is a binding relationship between the first sensing device and the second sensing device.
另外,不同传感设备使用的近场通信协议可能不同,例如,第一传感设备使用的近场通信协议为Z-Wave协议,而第二传感设备使用的近场通信协议为ZigBee协议,那么,网关在确定第一传感设备与第二传感设备之间是否具有绑定关系时,还可以进一步判断第一传感设备使用的近场通信协议与第二传感设备使用的近场通信协议是否相同。In addition, the near field communication protocol used by different sensing devices may be different. For example, the near field communication protocol used by the first sensing device is a Z-Wave protocol, and the near field communication protocol used by the second sensing device is a ZigBee protocol. Then, when determining whether the first sensing device and the second sensing device have a binding relationship, the gateway may further determine the near field communication protocol used by the first sensing device and the near field used by the second sensing device. Whether the communication protocol is the same.
当第一传感设备使用的近场通信协议与第二传感设备使用的近场通信协议相同时,且第一传感设备输出的指令中包含执行上述联动条件的第一目标指令,第二传感设备接收的指令中包含执行上述联动结果的第二目标指令时,网关可以确定第一传感设备与第二传感设备之间具有绑定关系。否则,可确定第一传感设备与第二传感设备之间不具有绑定关系。When the near field communication protocol used by the first sensing device is the same as the near field communication protocol used by the second sensing device, and the instruction output by the first sensing device includes the first target instruction for executing the linkage condition, and the second When the instruction received by the sensing device includes the second target instruction for performing the linkage result, the gateway may determine that the first sensing device has a binding relationship with the second sensing device. Otherwise, it can be determined that there is no binding relationship between the first sensing device and the second sensing device.
603、网关向第一传感设备发送绑定指令,该绑定指令用于指示第一传感设备建立与第二传感设备之间的绑定关系。603. The gateway sends a binding instruction to the first sensing device, where the binding instruction is used to indicate that the first sensing device establishes a binding relationship with the second sensing device.
当网关确定上述第一传感设备与第二传感设备之间具有绑定关系后,由于第二传感设备的设备状态是依赖于第一传感设备的设备状态的,因此,网关可向第一传感设备发送绑定指令,触发第一传感设备建立与第二传感设备之间的绑定关系。这样,后续第一传感设备可根据自身的设备状态,确定是否向与自身绑定的第二传感器发起相应的联动指令。After the gateway determines that the first sensing device has a binding relationship with the second sensing device, since the device state of the second sensing device is dependent on the device state of the first sensing device, the gateway may The first sensing device sends a binding command, which triggers the first sensing device to establish a binding relationship with the second sensing device. In this way, the subsequent first sensing device can determine whether to initiate a corresponding linkage instruction to the second sensor bound to itself according to its own device state.
示例性的,当传感设备(例如第一传感设备)使用的近场通信协议为Z-Wave协议时,上述绑定指令具体可以为association(联合)指令;当传感设备(例如第一传感设备)使用的近场通信协议为ZigBee协议时,上述绑定指令具体可以为BindReq(结合指令)。Exemplarily, when the near field communication protocol used by the sensing device (for example, the first sensing device) is the Z-Wave protocol, the binding instruction may specifically be an association instruction; when the sensing device (for example, the first When the near field communication protocol used by the sensing device is the ZigBee protocol, the binding instruction may specifically be BindReq (combined instruction).
当然,本领域技术人员可以根据实际经验或实际应用场景设置上述绑定指令的具体实现形式,本申请实施例对此不作任何限制。Certainly, a specific implementation form of the foregoing binding instruction may be set by a person skilled in the art according to actual experience or an actual application scenario, and the embodiment of the present application does not impose any limitation on this.
需要说明的是,网关和规则引擎之间可以使用适用IoT平台格式的命令格式进行交互,也可以使用近场协议格式进行交互,本申请实施例对此不作任何限制。It should be noted that the gateway and the rule engine may use the command format of the IoT platform format to perform the interaction, and the near field protocol format may be used for interaction.
后续,第一传感设备建立了与第二传感设备之间的绑定关系后,可继续执行下述步骤604-607,以实现第一传感设备与第二传感设备之间的联动过程。After the first sensing device establishes the binding relationship with the second sensing device, the following steps 604-607 may be performed to implement linkage between the first sensing device and the second sensing device. process.
604、第一传感设备确定当前第一传感设备的设备状态为第一目标状态。604. The first sensing device determines that the device state of the current first sensing device is the first target state.
示例性的,如图5所示,用户可以通过IoT应用25触发管理传感设备22的管理指令,例如,该管理指令为门锁(即第一传感设备)的开启指令。那么,IoT应用25可将该开启指令发送给IoT云平台24,由IoT云平台24通过网关21将该开启指令发送给门锁,再由门锁执行该开启指令。此时,门锁可确定出当前自身的设备状态为开启状态。Exemplarily, as shown in FIG. 5, the user can trigger the management instruction of the management sensing device 22 through the IoT application 25, for example, the management command is an open command of the door lock (ie, the first sensing device). Then, the IoT application 25 can send the open command to the IoT cloud platform 24, and the IoT cloud platform 24 sends the open command to the door lock through the gateway 21, and the open command is executed by the door lock. At this point, the door lock can determine that the current device state is the on state.
又或者,在第一传感设备的运行过程中,也可以根据当前采集到的数据确定自身的设备状态。例如,温度传感设备可以实时采集当前的温度值,并将当前的温度值所指示的温度作为自身的第一目标状态。Or, during the operation of the first sensing device, the device state of the device may be determined according to the currently collected data. For example, the temperature sensing device can collect the current temperature value in real time and use the temperature indicated by the current temperature value as its first target state.
605、第一传感设备根据上述绑定关系,确定与第一传感设备绑定的第二传感设备。605. The first sensing device determines, according to the binding relationship, a second sensing device that is bound to the first sensing device.
606、第一传感设备根据第一目标状态生成联动指令,该联动指令用于指示第二传感设备将第二传感设备的设备状态更新为第二目标状态。606. The first sensing device generates a linkage instruction according to the first target state, where the linkage instruction is used to instruct the second sensing device to update the device state of the second sensing device to the second target state.
具体的,在步骤604中,第一传感设备可以根据当前采集的数据确定自身当前的设备状态,例如,压力传感设备可以将当前采集到的压力信号转换为电信号,以确定当前的压 力值为多少;门窗传感设备可以根据当前门锁的状态确定当前门的状态为开启状态或者关闭状态。Specifically, in step 604, the first sensing device can determine its current device state according to the currently collected data. For example, the pressure sensing device can convert the currently collected pressure signal into an electrical signal to determine the current pressure. The value of the door and window sensing device can determine whether the state of the current door is the open state or the closed state according to the state of the current door lock.
那么,由于在步骤603中,第一传感设备已经建立了与第二传感设备之间的绑定关系,因此,在步骤605中,第一传感设备可以根据上述绑定关系,确定与第一传感设备已经绑定的第二传感设备。Then, in step 603, the first sensing device has established a binding relationship with the second sensing device. Therefore, in step 605, the first sensing device may determine the binding according to the binding relationship. The second sensing device to which the first sensing device has been bound.
而第二传感设备的设备状态依赖于第一传感设备的设备状态,那么,在步骤606中,第一传感设备可以根据步骤604中确定的第一目标状态为第二传感设备生成联动指令。The device state of the second sensing device depends on the device state of the first sensing device. Then, in step 606, the first sensing device may generate the second sensing device according to the first target state determined in step 604. Linkage instructions.
在一种可能的设计方法中,第一传感设备可以将自身的第一目标状态确定为第二传感设备的设备状态,即第二目标状态与第一目标状态相同。那么,第一传感设备可以直接根据该第一目标状态生成联动指令,此时,联动指令中携带有第一目标状态的标识。In one possible design method, the first sensing device may determine its own first target state as the device state of the second sensing device, ie, the second target state is the same as the first target state. Then, the first sensing device can directly generate a linkage instruction according to the first target state. At this time, the linkage instruction carries the identifier of the first target state.
例如,门锁(第一传感设备)的第一目标状态为开启状态(第一目标状态),此时,第一传感设备可直接将第一目标状态的标识,例如,标识:on,作为发送给电灯(第二传感设备)的联动指令。后续,电灯可直接执行该联动指令,将自身的设备状态更新为与门锁同样的设备状态,即执行开启电灯的指令。For example, the first target state of the door lock (first sensing device) is an open state (first target state), and at this time, the first sensing device can directly identify the first target state, for example, the identifier: on, As a linkage command sent to the electric light (second sensing device). Subsequently, the electric light can directly execute the linkage instruction, and update its own device state to the same device state as the door lock, that is, execute an instruction to turn on the light.
在另一种可能的设计方法中,可以预先在第一传感设备内存储第一传感设备与第二传感设备之间的联动策略,例如,该联动策略为:当第一传感设备开启时,关闭第二传感设备。那么,在步骤606中,第一传感设备首先可以从上述联动策略中,为第二传感设备查找与第一目标状态(例如开启状态)对应的第二目标状态,即关闭状态。进而,第一传感设备将确定出的关闭状态的标识携带在联动指令中发送给第二传感设备。后续,第二传感设备可根据联动指令中关闭状态的标识,将自身的设备状态更新为关闭状态,即执行关闭指令。In another possible design method, the linkage policy between the first sensing device and the second sensing device may be stored in the first sensing device in advance, for example, the linkage strategy is: when the first sensing device When turned on, the second sensing device is turned off. Then, in step 606, the first sensing device may first search for the second target state corresponding to the first target state (for example, the open state), that is, the closed state, from the linkage policy. Further, the first sensing device carries the determined identification of the closed state in the linkage instruction and sends the identifier to the second sensing device. Subsequently, the second sensing device can update its own device state to the closed state according to the identifier of the closed state in the linkage instruction, that is, execute the shutdown command.
在另一种可能的设计方法中,可以预先在第二传感设备内存储第一传感设备与第二传感设备之间的联动策略,例如,该联动策略仍然为:当第一传感设备开启时,关闭第二传感设备。那么,在步骤606中,第一传感设备将第一传感设备的第一目标状态的标识携带在联动指令中发送给第二传感设备。后续,第二传感设备可根据联动指令中第一目标状态的标识,从上述联动策略中查找与第一目标状态(例如开启状态)对应的第二目标状态,即关闭状态,进而,第二传感设备可将自身的设备状态更新为关闭状态。In another possible design method, the linkage policy between the first sensing device and the second sensing device may be stored in the second sensing device in advance, for example, the linkage strategy is still: when the first sensing When the device is turned on, the second sensing device is turned off. Then, in step 606, the first sensing device carries the identifier of the first target state of the first sensing device in the linkage instruction and sends it to the second sensing device. Subsequently, the second sensing device may search for the second target state corresponding to the first target state (for example, the open state) from the linkage policy according to the identifier of the first target state in the linkage command, that is, the shutdown state, and further, the second The sensing device can update its own device status to the off state.
607、第一传感设备向第二传感设备发送联动指令,以实现第一传感设备与第二传感设备之间的联动过程。607. The first sensing device sends a linkage instruction to the second sensing device to implement a linkage process between the first sensing device and the second sensing device.
这样,在步骤604-607中,即使在网关出现断电或者计算性能不足的情况下,也可以实现第一传感设备与第二传感设备之间的联动过程,从而降低IoT的部署成本。In this way, in steps 604-607, even if the gateway is powered off or the computing performance is insufficient, the linkage process between the first sensing device and the second sensing device can be implemented, thereby reducing the deployment cost of the IoT.
可选的,在第一传感设备生成上述联动指令之后,仍如图6所示,上述联动方法还可以包括步骤608-609。Optionally, after the first sensing device generates the linkage command, as shown in FIG. 6, the linkage method may further include steps 608-609.
608、第一传感设备向网关发送联动指令。608. The first sensing device sends a linkage instruction to the gateway.
609、当第一传感设备与第二传感设备之间具有绑定关系时,网关丢弃该联动指令。609. When the first sensing device and the second sensing device have a binding relationship, the gateway discards the linkage instruction.
其中,在步骤608中,第一传感设备还可以将该联动指令发送给网关,此时,当网关内的规则引擎查询到已经存储有第一传感设备与第二传感设备之间具有绑定关系时,则说明网关已经指示了第一传感设备建立与第二传感设备之间的绑定关系,那么,在步骤609 中,网关可直接丢弃该联动指令,避免第二传感设备重复执行该联动指令。In step 608, the first sensing device may further send the linkage command to the gateway. At this time, when the rule engine in the gateway queries that the first sensing device and the second sensing device are already stored, When the relationship is bound, the gateway has indicated that the first sensing device establishes a binding relationship with the second sensing device. Then, in step 609, the gateway may directly discard the linkage command to avoid the second sensing. The device repeatedly executes the linkage instruction.
当然,如果规则引擎没有查询到第一传感设备与第二传感设备之间的绑定关系,则可沿用现有技术,由规则引擎通过网关将该联动指令发送给第二传感设备,由第二传感设备执行该联动指令,以完成第一传感设备与第二传感设备之间的联动过程。Certainly, if the rule engine does not query the binding relationship between the first sensing device and the second sensing device, the correlation engine may send the linkage instruction to the second sensing device through the gateway by using the prior art. The linkage instruction is executed by the second sensing device to complete the linkage process between the first sensing device and the second sensing device.
上述主要从各个网元之间交互的角度对本申请实施例提供的方案进行了介绍。可以理解的是,上述第一传感设备、第二传感设备以及网关等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。The solution provided by the embodiment of the present application is mainly introduced from the perspective of interaction between the network elements. It can be understood that, in order to implement the above functions, the first sensing device, the second sensing device, and the gateway include the hardware structure and/or software module corresponding to each function. Those skilled in the art will readily appreciate that the embodiments of the present application can be implemented in a combination of hardware or hardware and computer software in combination with the elements and algorithm steps of the various examples described in the embodiments disclosed herein. Whether a function is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
本申请实施例可以根据上述方法示例对上述第一传感设备、第二传感设备以及网关等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the embodiment of the present application, the function modules of the first sensing device, the second sensing device, and the gateway may be divided according to the foregoing method. For example, each functional module may be divided according to each function, or two or two may be used. The above functions are integrated in one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present application is schematic, and is only a logical function division, and the actual implementation may have another division manner.
在采用对应各个功能划分各个功能模块的情况下,图7示出了上述实施例中所涉及的传感设备的一种可能的结构示意图,该传感设备包括:确定单元71,联动单元72和发送单元73。FIG. 7 is a schematic diagram showing a possible structure of the sensing device involved in the above embodiment, the sensing device includes: a determining unit 71, a linking unit 72, and Transmitting unit 73.
确定单元71用于支持传感设备执行图6中的过程604-605;联动单元72用于支持传感设备执行图6中的过程606;发送单元73用于支持传感设备执行图6中的过程607。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。The determining unit 71 is configured to support the sensing device to perform the processes 604-605 in FIG. 6; the linking unit 72 is configured to support the sensing device to perform the process 606 in FIG. 6; the transmitting unit 73 is configured to support the sensing device to perform the function in FIG. Process 607. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
在采用对应各个功能划分各个功能模块的情况下,图8示出了上述实施例中所涉及的网关的一种可能的结构示意图,该网关包括:获取单元81,确定单元82,发送单元83以及删除单元84。FIG. 8 is a schematic diagram of a possible structure of a gateway involved in the foregoing embodiment, where the gateway includes: an obtaining unit 81, a determining unit 82, a sending unit 83, and The unit 84 is deleted.
获取单元81用于支持传感设备执行图6中的过程600-601;确定单元82用于支持传感设备执行图6中的过程602;发送单元83用于支持传感设备执行图6中的过程603和608;删除单元84用于支持传感设备执行图6中的过程609。其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。The obtaining unit 81 is configured to support the sensing device to perform the processes 600-601 in FIG. 6; the determining unit 82 is configured to support the sensing device to perform the process 602 in FIG. 6; the transmitting unit 83 is configured to support the sensing device to perform the method in FIG. Processes 603 and 608; deletion unit 84 is operative to support the sensing device to perform process 609 in FIG. All the related content of the steps involved in the foregoing method embodiments may be referred to the functional descriptions of the corresponding functional modules, and details are not described herein again.
在采用集成的单元的情况下,图9示出了上述实施例中所涉及的传感设备(或网关)的一种可能的结构示意图。该传感设备(或网关)包括:处理模块1302和通信模块1303。处理模块1302用于对传感设备(或网关)的动作进行控制管理。通信模块1303用于支持传感设备(或网关)与其他网络实体的通信。该传感设备(或网关)还可以包括存储模块1301,用于存传感设备(或网关)的程序代码和数据。In the case of an integrated unit, FIG. 9 shows a possible structural diagram of the sensing device (or gateway) involved in the above embodiment. The sensing device (or gateway) includes a processing module 1302 and a communication module 1303. The processing module 1302 is configured to control and manage the actions of the sensing device (or gateway). The communication module 1303 is configured to support communication of the sensing device (or gateway) with other network entities. The sensing device (or gateway) may further include a storage module 1301 for storing program code and data of the sensing device (or gateway).
其中,处理模块1302可以是处理器或控制器,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块1303可以是收发器、收发电路或通信接口等。存储模块1301可以是存储器。The processing module 1302 may be a processor or a controller, for example, may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), and an application specific integrated circuit (Application-Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like. The communication module 1303 may be a transceiver, a transceiver circuit, a communication interface, or the like. The storage module 1301 may be a memory.
当处理模块1302为处理器,通信模块1303为收发器,存储模块1301为存储器时,本申请实施例所涉及的传感设备(或网关)具体可以为图10所示的传感设备(或网关)。When the processing module 1302 is a processor, the communication module 1303 is a transceiver, and the storage module 1301 is a memory, the sensing device (or gateway) involved in the embodiment of the present application may specifically be the sensing device (or gateway) shown in FIG. ).
参阅图10所示,该传感设备(或网关)包括:处理器1312、收发器1313、存储器1311以及总线1314。其中,收发器1313、处理器1312以及存储器1311通过总线1314相互连接;总线1314可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Referring to FIG. 10, the sensing device (or gateway) includes a processor 1312, a transceiver 1313, a memory 1311, and a bus 1314. The transceiver 1313, the processor 1312, and the memory 1311 are connected to each other through a bus 1314. The bus 1314 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. Wait. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 10, but it does not mean that there is only one bus or one type of bus.
在上述实施例中,可以全部或部分的通过软件,硬件,固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式出现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质,(例如,软盘,硬盘、磁带)、光介质(例如,DVD)或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it may occur in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL), or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (such as a solid state disk (SSD)).
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. . Therefore, the scope of protection of the present application should be determined by the scope of the claims.
Claims (23)
- 一种传感设备的联动方法,其特征在于,包括:A linkage method for a sensing device, comprising:第一传感设备确定当前所述第一传感设备的设备状态为第一目标状态;The first sensing device determines that the device state of the first sensing device is the first target state;所述第一传感设备根据预先获取的绑定关系,确定与所述第一传感设备绑定的第二传感设备,所述绑定关系用于指示所述第二传感设备的设备状态依赖于所述第一传感设备的设备状态;Determining, by the first sensing device, the second sensing device bound to the first sensing device according to the binding relationship acquired in advance, the binding relationship is used to indicate the device of the second sensing device The state depends on the device state of the first sensing device;所述第一传感设备根据所述第一目标状态生成联动指令,所述联动指令用于指示所述第二传感设备将所述第二传感设备的设备状态更新为第二目标状态;The first sensing device generates a linkage instruction according to the first target state, where the linkage instruction is used to instruct the second sensing device to update a device state of the second sensing device to a second target state;所述第一传感设备向所述第二传感设备发送所述联动指令。The first sensing device sends the linkage instruction to the second sensing device.
- 根据权利要求1所述的方法,其特征在于,所述联动指令携带有所述第一目标状态的标识。The method of claim 1 wherein the linkage instruction carries an identification of the first target state.
- 根据权利要求1所述的方法,其特征在于,所述第一传感设备存储有联动策略,所述联动策略用于指示:当所述第一传感设备的设备状态处于所述第一目标状态时,所述第二传感设备的设备状态为所述第二目标状态;The method according to claim 1, wherein the first sensing device stores a linkage policy, and the linkage policy is used to indicate that when a device state of the first sensing device is in the first target In the state, the device state of the second sensing device is the second target state;其中,所述第一传感设备根据所述第一目标状态生成联动指令,包括:The first sensing device generates a linkage instruction according to the first target state, including:所述第一传感设备从所述联动策略中为所述第二传感设备查找与所述第一目标状态对应的第二目标状态;The first sensing device searches for the second target state corresponding to the first target state for the second sensing device from the linkage policy;所述第一传感设备根据所述第二目标状态生成联动指令,所述联动指令中携带有所述第二目标状态的标识。The first sensing device generates a linkage instruction according to the second target state, where the linkage instruction carries an identifier of the second target state.
- 根据权利要求1-3中任一项所述的方法,其特征在于,在第一传感设备确定当前所述第一传感设备的设备状态为第一目标状态之前,还包括:The method according to any one of claims 1-3, wherein before the first sensing device determines that the device state of the first sensing device is the first target state, the method further includes:所述第一传感设备向网关发送所述第一传感设备的第一设备信息,所述第一设备信息包括允许所述第一传感设备输出的指令以及允许所述第一传感设备接收的指令。Transmitting, by the first sensing device, first device information of the first sensing device to a gateway, where the first device information includes an instruction for allowing the first sensing device to output, and allowing the first sensing device Received instructions.
- 一种传感设备的联动方法,其特征在于,包括:A linkage method for a sensing device, comprising:网关获取第一传感设备与第二传感设备之间的联动策略,所述联动策略包括联动条件和联动结果,所述联动条件用于指示所述第一传感设备的设备状态为第一目标状态,所述联动结果用于指示所述第二传感设备的设备状态为第二目标状态;The gateway obtains a linkage policy between the first sensing device and the second sensing device, where the linkage policy includes a linkage condition and a linkage result, where the linkage condition is used to indicate that the device state of the first sensing device is the first a target state, where the linkage result is used to indicate that a device state of the second sensing device is a second target state;所述网关根据所述联动策略确定所述第一传感设备与所述第二传感设备之间具有绑定关系,所述绑定关系用于指示所述第二传感设备的设备状态依赖于所述第一传感设备的设备状态;Determining, by the gateway, the binding relationship between the first sensing device and the second sensing device according to the linkage policy, where the binding relationship is used to indicate device state dependence of the second sensing device a device state of the first sensing device;所述网关向所述第一传感设备发送绑定指令,所述绑定指令用于指示所述第一传感设备建立与所述第二传感设备之间的绑定关系。The gateway sends a binding instruction to the first sensing device, where the binding instruction is used to indicate that the first sensing device establishes a binding relationship with the second sensing device.
- 根据权利要求5所述的方法,其特征在于,在所述网关根据所述联动策略确定所述第一传感设备与所述第二传感设备之间具有绑定关系之前,还包括:The method according to claim 5, further comprising: before the determining, by the gateway, that the first sensing device and the second sensing device have a binding relationship according to the linkage policy,所述网关获取所述第一传感设备的第一描述文件以及所述第二传感设备的第二描述文件,所述第一描述文件包括允许所述第一传感设备输出的指令,所述第二描述文件包括允许所述第二传感设备接收的指令;The gateway acquires a first description file of the first sensing device and a second description file of the second sensing device, where the first description file includes an instruction that allows the first sensing device to output The second description file includes instructions that allow the second sensing device to receive;其中,所述网关根据所述联动策略确定所述第一传感设备与所述第二传感设备之间具有绑定关系,包括:The gateway determines, according to the linkage policy, a binding relationship between the first sensing device and the second sensing device, including:当所述第一传感设备输出的指令中包含执行所述联动条件的第一目标指令,且所述第二传感设备接收的指令中包含执行所述联动结果的第二目标指令时,所述网关确定所述第一传感设备与所述第二传感设备之间具有绑定关系。When the instruction output by the first sensing device includes a first target instruction that executes the linkage condition, and the instruction received by the second sensing device includes a second target instruction that performs the linkage result, The gateway determines that the first sensing device has a binding relationship with the second sensing device.
- 根据权利要求6所述的方法,其特征在于,所述网关确定所述第一传感设备与所述第二传感设备之间具有绑定关系,包括:The method according to claim 6, wherein the gateway determines that the first sensing device has a binding relationship with the second sensing device, including:当所述第一传感设备使用的近场通信协议与所述第二传感设备使用的近场通信协议相同时,所述网关确定所述第一传感设备与所述第二传感设备之间具有绑定关系。The gateway determines the first sensing device and the second sensing device when a near field communication protocol used by the first sensing device is the same as a near field communication protocol used by the second sensing device There is a binding relationship between them.
- 根据权利要求6或7所述的方法,其特征在于,所述网关获取第一传感设备的第一描述文件,包括:The method according to claim 6 or 7, wherein the obtaining, by the gateway, the first description file of the first sensing device comprises:所述网关接收所述第一传感设备发送的第一设备信息,所述第一设备信息包括允许所述第一传感设备输出的指令;Receiving, by the gateway, first device information sent by the first sensing device, where the first device information includes an instruction that allows the first sensing device to output;所述网关将允许所述第一传感设备输出的指令映射为允许所述第一传感设备输出的指令,得到所述第一描述文件;The gateway maps an instruction output by the first sensing device to an instruction that allows the first sensing device to output, to obtain the first description file;其中,所述网关获取第二传感设备的第二描述文件,包括:The gateway obtains a second description file of the second sensing device, including:所述网关接收所述第二传感设备发送的第二设备信息,所述第二设备信息包括允许所述第二传感设备接收的指令;The gateway receives second device information sent by the second sensing device, where the second device information includes an instruction that allows the second sensing device to receive;所述网关将允许所述第二传感设备接收的指令映射为允许所述第二传感设备接收的指令,得到所述第二描述文件。The gateway maps instructions received by the second sensing device to instructions that are allowed to be received by the second sensing device to obtain the second description file.
- 根据权利要求5-8中任一项所述的方法,其特征在于,在所述网关根据所述联动策略确定所述第一传感设备与所述第二传感设备之间具有绑定关系之后,还包括:The method according to any one of claims 5-8, wherein the gateway determines that the first sensing device and the second sensing device have a binding relationship according to the linkage policy. After that, it also includes:所述网关接收所述第一传感设备发送的联动指令,所述联动指令用于指示所述第二传感设备将所述第二传感设备的设备状态更新为第二目标状态;The gateway receives a linkage command sent by the first sensing device, where the linkage command is used to instruct the second sensing device to update a device state of the second sensing device to a second target state;当所述网关确定所述第一传感设备与所述第二传感设备之间具有绑定关系时,所述网关丢弃所述联动指令。When the gateway determines that the first sensing device has a binding relationship with the second sensing device, the gateway discards the linkage instruction.
- 一种传感设备,所述传感设备为第一传感设备,其特征在于,包括:A sensing device, which is a first sensing device, and includes:确定单元,用于确定当前所述第一传感设备的设备状态为第一目标状态;根据预先获取的绑定关系,确定与所述第一传感设备绑定的第二传感设备,所述绑定关系用于指示所述第二传感设备的设备状态依赖于所述第一传感设备的设备状态;a determining unit, configured to determine that a device state of the first sensing device is a first target state; determining, according to a pre-acquired binding relationship, a second sensing device bound to the first sensing device The binding relationship is used to indicate that the device state of the second sensing device is dependent on the device state of the first sensing device;联动单元,用于根据所述第一目标状态生成联动指令,所述联动指令用于指示所述第二传感设备将所述第二传感设备的设备状态更新为第二目标状态;a linkage unit, configured to generate a linkage instruction according to the first target state, where the linkage instruction is used to instruct the second sensing device to update a device state of the second sensing device to a second target state;发送单元,用于向所述第二传感设备发送所述联动指令。And a sending unit, configured to send the linkage instruction to the second sensing device.
- 根据权利要求10所述的第一传感设备,其特征在于,所述联动指令携带有所述第一目标状态的标识。The first sensing device according to claim 10, wherein the linkage instruction carries an identification of the first target state.
- 根据权利要求10所述的第一传感设备,其特征在于,所述第一传感设备存储有联动策略,所述联动策略用于指示:当所述第一传感设备的设备状态处于所述第一目标状态时,所述第二传感设备的设备状态为所述第二目标状态;The first sensing device according to claim 10, wherein the first sensing device stores a linkage policy, and the linkage policy is used to indicate that when the device state of the first sensing device is in the When the first target state is described, the device state of the second sensing device is the second target state;所述联动单元,具体用于:从所述联动策略中为所述第二传感设备查找与所述第一目标状态对应的第二目标状态;根据所述第二目标状态生成联动指令,所述联动指令中携带有所述第二目标状态的标识。The linkage unit is configured to: find, by the linkage policy, a second target state corresponding to the first target state for the second sensing device; generate a linkage instruction according to the second target state, where The linkage instruction carries an identifier of the second target state.
- 根据权利要求10-12中任一项所述的第一传感设备,其特征在于,A first sensing device according to any one of claims 10-12, wherein所述发送单元,还用于向网关发送所述第一传感设备的第一设备信息,所述第一设备信息包括允许所述第一传感设备输出的指令以及允许所述第一传感设备接收的指令。The sending unit is further configured to send, to the gateway, first device information of the first sensing device, where the first device information includes an instruction for allowing the first sensing device to output, and allowing the first sensing The instructions received by the device.
- 一种网关,其特征在于,包括:A gateway, comprising:获取单元,用于获取第一传感设备与第二传感设备之间的联动策略,所述联动策略包括联动条件和联动结果,所述联动条件用于指示所述第一传感设备的设备状态为第一目标状态,所述联动结果用于指示所述第二传感设备的设备状态为第二目标状态;An acquiring unit, configured to acquire a linkage policy between the first sensing device and the second sensing device, where the linkage policy includes a linkage condition and a linkage result, where the linkage condition is used to indicate the device of the first sensing device The state is a first target state, and the linkage result is used to indicate that the device state of the second sensing device is the second target state;确定单元,用于根据所述联动策略确定所述第一传感设备与所述第二传感设备之间具有绑定关系,所述绑定关系用于指示所述第二传感设备的设备状态依赖于所述第一传感设备的设备状态;a determining unit, configured to determine, according to the linkage policy, a binding relationship between the first sensing device and the second sensing device, where the binding relationship is used to indicate the device of the second sensing device The state depends on the device state of the first sensing device;发送单元,用于向所述第一传感设备发送绑定指令,所述绑定指令用于指示所述第一传感设备建立与所述第二传感设备之间的绑定关系。And a sending unit, configured to send a binding instruction to the first sensing device, where the binding instruction is used to indicate that the first sensing device establishes a binding relationship with the second sensing device.
- 根据权利要求14所述的网关,其特征在于,The gateway of claim 14 wherein:所述获取单元,还用于获取所述第一传感设备的第一描述文件以及所述第二传感设备的第二描述文件,所述第一描述文件包括允许所述第一传感设备输出的指令,所述第二描述文件包括允许所述第二传感设备接收的指令;The acquiring unit is further configured to acquire a first description file of the first sensing device and a second description file of the second sensing device, where the first description file includes allowing the first sensing device An output instruction, the second description file including an instruction to allow the second sensing device to receive;所述确定单元,具体用于:当所述第一传感设备输出的指令中包含执行所述联动条件的第一目标指令,且所述第二传感设备接收的指令中包含执行所述联动结果的第二目标指令时,确定所述第一传感设备与所述第二传感设备之间具有绑定关系。The determining unit is configured to: when the instruction output by the first sensing device includes a first target instruction that performs the linkage condition, and the instruction received by the second sensing device includes performing the linkage When the second target instruction is the result, it is determined that the first sensing device and the second sensing device have a binding relationship.
- 根据权利要求15所述的网关,其特征在于,The gateway of claim 15 wherein:所述确定单元,具体用于:当所述第一传感设备使用的近场通信协议与所述第二传感设备使用的近场通信协议相同时,确定所述第一传感设备与所述第二传感设备之间具有绑定关系。The determining unit is specifically configured to: when the near field communication protocol used by the first sensing device is the same as the near field communication protocol used by the second sensing device, determine the first sensing device and the The second sensing device has a binding relationship.
- 根据权利要求15或16所述的网关,其特征在于,A gateway according to claim 15 or 16, wherein所述获取单元,具体用于:接收所述第一传感设备发送的第一设备信息,所述第一设备信息包括允许所述第一传感设备输出的指令;将允许所述第一传感设备输出的指令映射为允许所述第一传感设备输出的指令,得到所述第一描述文件;接收所述第二传感设备发送的第二设备信息,所述第二设备信息包括允许所述第二传感设备接收的指令;将允许所述第二传感设备接收的指令映射为允许所述第二传感设备接收的指令,得到所述第二描述文件。The acquiring unit is specifically configured to: receive first device information sent by the first sensing device, where the first device information includes an instruction that allows the first sensing device to output; the first transmission is allowed The instruction outputted by the sensing device is mapped to an instruction that allows the first sensing device to output, and the first description file is obtained; the second device information sent by the second sensing device is received, and the second device information includes permission An instruction received by the second sensing device; mapping an instruction received by the second sensing device to an instruction allowed to be received by the second sensing device to obtain the second description file.
- 根据权利要求14-17中任一项所述的网关,其特征在于,所述网关还包括删除单元,其中,The gateway according to any one of claims 14-17, wherein the gateway further comprises a deleting unit, wherein所述获取单元,还用于接收所述第一传感设备发送的联动指令,所述联动指令用于指示所述第二传感设备将所述第二传感设备的设备状态更新为第二目标状态;The acquiring unit is further configured to receive a linkage command sent by the first sensing device, where the linkage command is used to instruct the second sensing device to update a device state of the second sensing device to a second Target state所述删除单元,用于当所述网关确定所述第一传感设备与所述第二传感设备之间具有 绑定关系时,丢弃所述联动指令。The deleting unit is configured to discard the linkage instruction when the gateway determines that the first sensing device and the second sensing device have a binding relationship.
- 一种传感设备,其特征在于,包括:处理器、存储器、总线和通信接口;A sensing device, comprising: a processor, a memory, a bus, and a communication interface;所述存储器用于存储计算机执行指令,所述处理器与所述存储器通过所述总线连接,当所述传感设备运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述传感设备执行如权利要求1-4中任一项所述的传感设备的联动方法。The memory is configured to store a computer to execute an instruction, the processor is connected to the memory through the bus, and when the sensing device is in operation, the processor executes the computer-executed instruction stored in the memory to A method of interlocking the sensing device according to any one of claims 1 to 4.
- 一种网关,其特征在于,包括:处理器、存储器、总线和通信接口;A gateway, comprising: a processor, a memory, a bus, and a communication interface;所述存储器用于存储计算机执行指令,所述处理器与所述存储器通过所述总线连接,当所述网关运行时,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述网关执行如权利要求5-9中任一项所述的传感设备的联动方法。The memory is configured to store a computer execution instruction, the processor is connected to the memory through the bus, and when the gateway is running, the processor executes the computer execution instruction stored in the memory to make The gateway performs the linkage method of the sensing device according to any one of claims 5-9.
- 一种联动系统,其特征在于,包括:如权利要求14-18中任一项所述的网关,以及如权利要求10-13中任一项所述的第一传感设备;所述第一传感设备与第二传感设备之间具有绑定关系,所述网关与所述第一传感设备和所述第二传感设备均相连。A linkage system, comprising: the gateway according to any one of claims 14-18, and the first sensing device according to any one of claims 10-13; The sensing device has a binding relationship with the second sensing device, and the gateway is connected to both the first sensing device and the second sensing device.
- 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在如权利要求10-13中任一项所述的传感设备上运行时,使得所述传感设备执行如权利要求1-4中任一项所述的传感设备的联动方法。A computer readable storage medium having stored therein instructions, wherein when the instructions are run on a sensing device as claimed in any of claims 10-13, The sensing device performs the linkage method of the sensing device according to any one of claims 1-4.
- 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在如权利要求14-18中任一项所述的网关上运行时,使得所述网关执行如权利要求5-9中任一项所述的传感设备的联动方法。A computer readable storage medium having stored therein instructions, wherein when the instructions are run on a gateway as claimed in any one of claims 14-18, The gateway performs the linkage method of the sensing device according to any one of claims 5-9.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710187470.7A CN108667858A (en) | 2017-03-27 | 2017-03-27 | A kind of interlock method of sensing equipment, apparatus and system |
CN201710187470.7 | 2017-03-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018177121A1 true WO2018177121A1 (en) | 2018-10-04 |
Family
ID=63674141
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/079036 WO2018177121A1 (en) | 2017-03-27 | 2018-03-14 | Sensing device linkage method, apparatus and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108667858A (en) |
WO (1) | WO2018177121A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737202A (en) * | 2019-11-19 | 2020-01-31 | 宁波智轩物联网科技有限公司 | linkage system based on intelligent home system |
CN113485206A (en) * | 2021-08-06 | 2021-10-08 | 时代云英(重庆)科技有限公司 | Extensible Internet of things system and method |
CN114157725A (en) * | 2021-11-11 | 2022-03-08 | 珠海格力电器股份有限公司 | Equipment linkage method and device, server, electronic equipment and storage medium |
WO2022222719A1 (en) * | 2021-04-23 | 2022-10-27 | 杭州萤石软件有限公司 | Configuration method for internet of things device linkage, terminal, and system |
WO2023151704A1 (en) * | 2022-02-14 | 2023-08-17 | 深圳绿米联创科技有限公司 | Device control method and apparatus, and electronic device and storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113381914B (en) * | 2020-02-25 | 2023-05-23 | 青岛海尔洗衣机有限公司 | Edge computing equipment management method, device, equipment and system |
CN111818132B (en) * | 2020-06-19 | 2023-05-23 | 深圳奇迹智慧网络有限公司 | Control method and device of Internet of things equipment, computer equipment and storage medium |
CN111830841A (en) * | 2020-07-08 | 2020-10-27 | 珠海格力电器股份有限公司 | Linkage control method, device, equipment and storage medium for intelligent equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104808499A (en) * | 2015-03-09 | 2015-07-29 | 联想(北京)有限公司 | Method of controlling intelligent household equipment based on linkage rules and control device |
CN105676656A (en) * | 2015-12-31 | 2016-06-15 | 联想(北京)有限公司 | Processing method and electronic device |
CN106100866A (en) * | 2016-05-27 | 2016-11-09 | 上海物联网有限公司 | A kind of intelligent detection device based on Regional Linking, configuration device and method |
CN106527162A (en) * | 2016-11-30 | 2017-03-22 | 海尔优家智能科技(北京)有限公司 | Linkage control method and device based on AllJoyn |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100724520B1 (en) * | 2005-09-27 | 2007-06-04 | 한국전자통신연구원 | Sensor node assistant apparatus, sensor node integrated development apparatus and a sensor network development system using the same |
CN105099835A (en) * | 2014-04-21 | 2015-11-25 | 青岛海尔智能家电科技有限公司 | Linkage establishing method and device |
CN105807618B (en) * | 2014-12-29 | 2019-12-24 | 联想(北京)有限公司 | Control method and first central control equipment |
CN104932456B (en) * | 2015-04-27 | 2019-02-19 | 小米科技有限责任公司 | Intelligent scene implementation method and device, intelligent terminal and control equipment |
CN205721123U (en) * | 2016-03-04 | 2016-11-23 | 橙朴(上海)智能科技有限公司 | A kind of intelligent home control system of decentration |
-
2017
- 2017-03-27 CN CN201710187470.7A patent/CN108667858A/en active Pending
-
2018
- 2018-03-14 WO PCT/CN2018/079036 patent/WO2018177121A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104808499A (en) * | 2015-03-09 | 2015-07-29 | 联想(北京)有限公司 | Method of controlling intelligent household equipment based on linkage rules and control device |
CN105676656A (en) * | 2015-12-31 | 2016-06-15 | 联想(北京)有限公司 | Processing method and electronic device |
CN106100866A (en) * | 2016-05-27 | 2016-11-09 | 上海物联网有限公司 | A kind of intelligent detection device based on Regional Linking, configuration device and method |
CN106527162A (en) * | 2016-11-30 | 2017-03-22 | 海尔优家智能科技(北京)有限公司 | Linkage control method and device based on AllJoyn |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110737202A (en) * | 2019-11-19 | 2020-01-31 | 宁波智轩物联网科技有限公司 | linkage system based on intelligent home system |
WO2022222719A1 (en) * | 2021-04-23 | 2022-10-27 | 杭州萤石软件有限公司 | Configuration method for internet of things device linkage, terminal, and system |
CN113485206A (en) * | 2021-08-06 | 2021-10-08 | 时代云英(重庆)科技有限公司 | Extensible Internet of things system and method |
CN114157725A (en) * | 2021-11-11 | 2022-03-08 | 珠海格力电器股份有限公司 | Equipment linkage method and device, server, electronic equipment and storage medium |
CN114157725B (en) * | 2021-11-11 | 2023-09-12 | 珠海格力电器股份有限公司 | Method, device, server, electronic equipment and storage medium for equipment linkage |
WO2023151704A1 (en) * | 2022-02-14 | 2023-08-17 | 深圳绿米联创科技有限公司 | Device control method and apparatus, and electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108667858A (en) | 2018-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018177121A1 (en) | Sensing device linkage method, apparatus and system | |
US10693760B2 (en) | Fabric network | |
CN110071900B (en) | Data sending method and device | |
WO2016023357A1 (en) | Webpage access method and apparatus, and router | |
WO2017129014A1 (en) | Method and apparatus for controlling internet of things device, and server and mobile device | |
WO2018059026A1 (en) | Communication method and device | |
US9479504B2 (en) | Method and apparatus for controlling access between home device and external server in home network system | |
KR101701158B1 (en) | Method and system of providing remote access for device within home network | |
KR101317178B1 (en) | ZigBee Gateway and method for identifying message of the same | |
KR102257121B1 (en) | Method and system for dual role handling in a wireless environment | |
JP2016522627A (en) | Packet processing method and apparatus | |
US10338980B2 (en) | Binding smart objects | |
US9537751B2 (en) | Divided hierarchical network system based on software-defined networks | |
WO2019001224A1 (en) | Method and device for recommending social user | |
CN110326262B (en) | Abstracting a wireless device as a virtual ethernet interface | |
US9385951B2 (en) | Apparatus and method for controlling packet transfer based on registered destination information | |
US9686361B2 (en) | Communication device, communication system, communication method and computer program product | |
US20150047009A1 (en) | Access control method, access control system and access control device | |
WO2024183449A1 (en) | Building protocol data processing method, apparatus, and system | |
JP2011229093A (en) | Network apparatus | |
WO2017136979A1 (en) | Implementation method, apparatus and system for remote access | |
JP6470640B2 (en) | COMMUNICATION DEVICE, ITS CONTROL METHOD, COMPUTER PROGRAM | |
KR20120065516A (en) | Method and system of providing remote access information for device within home network | |
JP2016178530A (en) | Communication system, communication terminal, communication method, and program | |
CN111800340A (en) | Data packet forwarding method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18777383 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18777383 Country of ref document: EP Kind code of ref document: A1 |