CN109345816B - Device pairing method and system - Google Patents

Device pairing method and system Download PDF

Info

Publication number
CN109345816B
CN109345816B CN201811054476.8A CN201811054476A CN109345816B CN 109345816 B CN109345816 B CN 109345816B CN 201811054476 A CN201811054476 A CN 201811054476A CN 109345816 B CN109345816 B CN 109345816B
Authority
CN
China
Prior art keywords
light intensity
intensity threshold
value
controlled
infrared light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201811054476.8A
Other languages
Chinese (zh)
Other versions
CN109345816A (en
Inventor
郑亘
丁金妃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen University
Original Assignee
Shenzhen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen University filed Critical Shenzhen University
Priority to CN201811054476.8A priority Critical patent/CN109345816B/en
Publication of CN109345816A publication Critical patent/CN109345816A/en
Application granted granted Critical
Publication of CN109345816B publication Critical patent/CN109345816B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C25/00Arrangements for preventing or correcting errors; Monitoring arrangements

Abstract

The invention discloses a device pairing method and a device pairing system, which are applied to the technical field of communication. The method is applied to control equipment and a plurality of controlled equipment, wherein an infrared light source is arranged on the control equipment, an infrared sensing unit is arranged on the controlled equipment, and the method comprises the following steps: and each controlled device receives the infrared light emitted by the control device through the infrared light source through the infrared sensing unit, and acquires the infrared light intensity value of the received infrared light. And each controlled device receives the light intensity threshold value sent by the control device, generates a threshold lifting request and a new light intensity threshold value according to the infrared light intensity value and the light intensity threshold value, and sends the threshold lifting request and the new light intensity threshold value to the control device. And the control equipment determines target controlled equipment according to the lifting threshold value requests and the new light intensity threshold values sent by the controlled equipment and performs pairing with the target controlled equipment. The equipment pairing method can improve the convenience of equipment pairing.

Description

Device pairing method and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device pairing method and system.
Background
With the development of economy and science, the technology of internet of things is beginning to be widely applied to various fields such as power grids, logistics, traffic, industrial automatic control, smart home, medical health and the like. The Internet of things equipment comprises a remote controller and controlled equipment, the remote controller is controlled by a user, the remote controller sends a control instruction to the controlled equipment, and the controlled equipment responds to the action of the user after receiving the control instruction. Before sending a control instruction to the controlled device, the remote controller needs to perform pairing operation with the controlled device, and a logical relationship is established between the remote controller and the controlled device. The logical relationship can be directly solidified in the equipment when leaving the factory, and can be changed after leaving the factory.
Then, at present, it is usually necessary to make a change using a third-party electronic device, such as a mobile electronic device to configure a certain remote controller and allocate a corresponding controlled device to the remote controller, which is not convenient enough.
Disclosure of Invention
The embodiment of the invention mainly aims to provide a device pairing method and a device pairing system, which can improve the convenience of device pairing.
The first aspect of the embodiments of the present invention provides an apparatus pairing method, which is applied to a control apparatus and a plurality of controlled apparatuses, wherein an infrared light source is arranged on the control apparatus, and an infrared sensing unit is arranged on the controlled apparatuses, and the method includes: each controlled device receives infrared light emitted by the control device through the infrared light source through an infrared sensing unit, and obtains an infrared light intensity value of the received infrared light; each controlled device receives the light intensity threshold sent by the control device, generates a threshold lifting request and a new light intensity threshold according to the infrared light intensity value and the light intensity threshold, and sends the threshold lifting request and the new light intensity threshold to the control device; and the control equipment determines target controlled equipment according to the lifting threshold value requests and the new light intensity threshold values sent by the controlled equipment and performs pairing with the target controlled equipment.
A second aspect of an embodiment of the present invention provides an apparatus pairing system, where the system includes: the control device is provided with an infrared light source, the controlled device is provided with an infrared sensing unit, and the controlled device is used for receiving infrared light emitted by the control device through the infrared light source through the infrared sensing unit and acquiring an infrared light intensity value of the received infrared light; the controlled equipment is also used for receiving the light intensity threshold value sent by the control equipment, generating a threshold value increasing request and a new light intensity threshold value according to the infrared light intensity value and the light intensity threshold value, and sending the threshold value increasing request and the new light intensity threshold value to the control equipment; and the control equipment is used for determining target controlled equipment according to the lifting threshold value requests and the new light intensity threshold values sent by the controlled equipment and pairing the target controlled equipment.
According to the embodiment, the control device emits infrared light, the controlled devices receive the infrared light and acquire the infrared light intensity value, the matched target controlled device is determined through the infrared light without using third-party electronic equipment, and the device matching convenience is improved. And the control equipment sends the light intensity threshold value to the controlled equipment, so that the controlled equipment generates a new light intensity threshold value according to the light intensity threshold value and sends the new light intensity threshold value to the control equipment, the infrared light intensity value received by the controlled equipment is indirectly compared, the target controlled equipment is further determined, and data is not shared among the controlled equipment for size comparison, and the network overhead is reduced.
Drawings
Fig. 1 is a schematic flow chart of an implementation of a device pairing method in a first embodiment provided in the present invention;
fig. 2 is a schematic flow chart of an implementation of a device pairing method in a second embodiment provided in the present invention;
fig. 3 is a schematic diagram of a first application of a device pairing method in a second embodiment provided by the present invention;
fig. 4 is a schematic diagram of a second application of the device pairing method in the second embodiment provided in the present invention;
fig. 5 is a schematic structural diagram of a device pairing system in a third embodiment provided in the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating an implementation of a device pairing method according to a first embodiment of the present disclosure. The method is applied to control equipment and a plurality of controlled equipment, wherein an infrared light source is arranged on the control equipment, and an infrared sensing unit is arranged on the controlled equipment. As shown in fig. 1, the method mainly comprises the following steps:
101. each controlled device receives infrared light emitted by the control device through the infrared light source through the infrared sensing unit, and obtains the infrared light intensity value of the received infrared light.
Specifically, the internet of things device comprises a control device and a controlled device, the control device is controlled by a user, the control device sends a control instruction to the controlled device, and the controlled device responds to the action of the user after receiving the control instruction. Before sending a control instruction to a controlled device, the control device needs to perform pairing operation with the controlled device. In the embodiment of the invention, the control device firstly emits infrared light, and each controlled device measures the intensity value of the received infrared light by using the respective infrared sensing unit and acquires the infrared light intensity value of the received infrared light.
102. And each controlled device receives the light intensity threshold value sent by the control device, generates a threshold lifting request and a new light intensity threshold value according to the infrared light intensity value and the light intensity threshold value, and sends the threshold lifting request and the new light intensity threshold value to the control device.
Specifically, in each pairing operation, the control device is to select the controlled device pointed by the control device to perform pairing, and the infrared light intensity value of the controlled device pointed by the control device is larger. Therefore, in order to determine the directed controlled device, the control device sets a light intensity threshold and sends the light intensity threshold to the controlled devices, each controlled device generates a threshold lifting request and obtains a new light intensity threshold according to the relation between the infrared light intensity value and the light intensity threshold, and sends the threshold lifting request and the new light intensity threshold to the control device, so that the control device adjusts the light intensity threshold, and the controlled device with the maximum received infrared light intensity value is indirectly determined. Optionally, the light intensity threshold sent by the control device for the first time is smaller and may be 0.
103. And the control equipment determines target controlled equipment according to the lifting threshold value requests and the infrared light intensity values sent by the controlled equipment and matches the target controlled equipment.
Specifically, the control device continuously adjusts the light intensity threshold according to the threshold lifting request and the new light intensity threshold, so as to indirectly determine the controlled device with the maximum received infrared light intensity, which indicates the direction of the controlled device closest to the control device, and the controlled device is the target controlled device, so that the target controlled device and the control device are connected in a pairing manner, and the target controlled device subsequently receives and executes the instruction of the control device.
Illustratively, the control device sends a pairing request to the target controlled device through wireless communication. And the target controlled equipment generates pairing information according to the pairing request and sends the pairing information to the control equipment in a wireless communication mode. And the control equipment receives and stores the pairing information, so that the pairing with the controlled equipment is completed, and the control equipment forwards the control instruction input by the user to the target controlled equipment. Optionally, the wireless communication mode may be bluetooth communication.
In the embodiment of the invention, the control equipment emits infrared light, the controlled equipment receives the infrared light and obtains the infrared light intensity value, and the matched target controlled equipment is determined by the infrared light without using third-party electronic equipment, so that the equipment matching convenience is improved. And the control equipment sends the light intensity threshold value to the controlled equipment, so that the controlled equipment generates a new light intensity threshold value according to the light intensity threshold value and sends the new light intensity threshold value to the control equipment, the infrared light intensity value received by the controlled equipment is indirectly compared, the target controlled equipment is further determined, and data is not shared among the controlled equipment for size comparison, and the network overhead is reduced.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating an implementation of a device pairing method in a second embodiment provided by the present invention. As shown in fig. 2, the method mainly includes the following steps:
201. each controlled device receives infrared light emitted by the control device through the infrared light source through the infrared sensing unit, and obtains the infrared light intensity value of the received infrared light.
Specifically, the internet of things device comprises a control device and a controlled device, the control device is controlled by a user, the control device sends a control instruction to the controlled device, and the controlled device responds to the action of the user after receiving the control instruction. Before sending a control instruction to a controlled device, the control device needs to perform pairing operation with the controlled device. In the embodiment of the invention, the control device firstly emits infrared light, each controlled device receives the infrared light by using the respective infrared sensing unit, and the infrared light intensity value of the received infrared light is obtained.
The communication protocol between the control device and the controlled devices can be ZigBee. The ZigBee technology is a two-way communication technology, has the characteristics of short distance, low complexity, low power consumption, low speed and low cost, and can be applied to data transmission between control equipment and controlled equipment.
202. And each controlled device receives the light intensity threshold value sent by the control device and calculates the difference between the infrared light intensity value and the light intensity threshold value.
Specifically, each controlled device receives the light intensity threshold sent by the control device, and then compares the infrared light intensity value with the light intensity threshold. If the infrared light intensity value of the infrared light received by the controlled device is not less than the light intensity threshold value, that is, the difference between the infrared light intensity value of the controlled device and the light intensity threshold value is not less than zero, the controlled device can be considered to be in the range of the infrared light emitted by the control device by using the infrared light source. If the infrared light intensity value of the controlled device is smaller than the light intensity threshold value, that is, the difference between the infrared light intensity value of the controlled device and the light intensity threshold value is smaller than zero, the controlled device is considered not to be in the range of the infrared light emitted by the control device by using the infrared light source. In practical applications, after the controlled device receives the light intensity threshold, the state of the controlled device can be marked as "in-range" or "out of range" according to the relationship between the light intensity threshold and the infrared light intensity value.
203. And if the infrared light intensity value acquired by each controlled device through the infrared sensing unit changes, each controlled device updates the infrared light intensity value.
Specifically, if the pointing direction of the control device changes, the emission direction of the infrared light source of the control device changes, the positional relationship between each controlled device and the infrared light source of the control device changes, the infrared light intensity of each controlled device changes, and the infrared light intensity value obtained by the infrared sensing unit changes, so that the infrared light intensity values of the controlled devices are updated.
204. If the difference between the infrared light intensity value and the light intensity threshold value is larger than a preset difference value, the controlled equipment generates a threshold lifting request and a new light intensity threshold value, and sends the threshold lifting request and the new light intensity threshold value to the control equipment.
Specifically, the controlled device is preset with a preset difference value, and the difference between the infrared light intensity value and the light intensity threshold value is compared with the preset difference value, so that a new light intensity threshold value is generated, and the number of the controlled devices in the range of the infrared light emitted by the control device is gradually reduced. And if the difference between the infrared light intensity value of the controlled equipment and the light intensity threshold is larger than the preset difference, the controlled equipment sends a threshold lifting request and a new light intensity threshold to the control equipment. And if the difference between the infrared light intensity value of the controlled equipment and the light intensity threshold value is not greater than the preset difference value, the controlled equipment does not send a threshold value lifting request to the control equipment. It is understood that the preset difference is greater than zero, and the preset difference can be determined according to the user's needs. In practical applications, a new light intensity threshold may be piggybacked on the raise threshold request.
The new light intensity threshold is smaller than the infrared light intensity value, and the new light intensity threshold is equal to the difference between the infrared light intensity value and the preset difference value.
205. The control device selectively receives the lifting threshold request and the new light intensity threshold value sent by one of the controlled devices, and updates the light intensity threshold value according to the lifting threshold request and the new light intensity threshold value of the one of the controlled devices.
Specifically, the plurality of controlled devices send the lifting threshold request and the new light intensity threshold value to the control device, but the control device selects to receive the lifting threshold request and the new light intensity threshold value of one of the controlled devices, and updates the light intensity threshold value according to the new light intensity threshold value, and the updated light intensity threshold value is equal to the new light intensity threshold value. In practical applications, the user may customize the algorithm selection to receive the raise threshold request and the new light intensity threshold.
Wherein the updated light intensity threshold is less than the infrared light intensity value of the one of the controlled devices, and the updated light intensity threshold is equal to a difference between the infrared light intensity value of the one of the controlled devices and the preset difference.
206. And the control equipment sends the updated light intensity threshold to a plurality of controlled equipment until the control equipment does not receive the threshold lifting request any more, and finally the controlled equipment sending the threshold lifting request is target controlled equipment which is paired with the target controlled equipment.
Specifically, after the control device updates the light intensity threshold, the updated light intensity threshold is sent to the controlled devices, and step 202 is executed, so that the light intensity threshold is raised for multiple times, the number of the controlled devices within the range of the infrared light emitted by the infrared light source of the control device is reduced until the control device does not receive the raising threshold request any more, after the controlled device finally sends the sending request of the raising threshold request, no more controlled device sends the raising threshold request, and the controlled device finally sending the raising threshold request is the controlled device with the maximum infrared light intensity value, and then the control device is paired with the controlled device finally sending the raising threshold request.
In practical application, when the controlled device is in the range of the infrared light emitted by the infrared light source of the control device, the indicator light of the controlled device flashes red light, so that the user can observe the flashing condition of the indicator light of the controlled device, judge the number of the controlled devices currently in the range of the infrared light emitted by the infrared light source of the control device, and when the control device does not receive the threshold increasing request any more, the controlled device which finally sends the threshold increasing request flashes red light, so that the user inputs an active query instruction, the control device sends a request pairing instruction to the controlled device in response to the active query instruction, the controlled device returns the pairing instruction to the control device, and the control device and the controlled device are paired.
Optionally, if the infrared light intensity value of the controlled device is greater than the light intensity threshold value but the difference between the infrared light intensity value and the light intensity threshold value is not greater than the preset difference value, that is, the condition of sending the request for raising the threshold value is not met, but the controlled device is also within the range of the infrared light emitted by the infrared light source of the control device, the user inputs an active query instruction, the control device responds to the active query instruction, sends a request pairing instruction to the controlled device, the controlled device returns a pairing instruction to the control device, and the control device and the controlled device perform pairing.
207. And if the difference between the light intensity threshold and the infrared light intensity value before the controlled equipment is updated is smaller than the preset difference, and the difference between the light intensity threshold and the infrared light intensity value after the controlled equipment is updated is not smaller than the preset difference, the controlled equipment generates a falling threshold request and a new light intensity threshold and sends the falling threshold request and the new light intensity threshold to the control equipment.
Specifically, if the difference between the light intensity threshold and the infrared light intensity value before the controlled device is updated is smaller than the preset difference, it indicates that the controlled device is within the range of the infrared light emitted by the control device before the controlled device is updated. If the difference between the light intensity threshold and the updated infrared light intensity value of the controlled device is not less than the preset difference, it indicates that the controlled device is not in the range of the infrared light emitted by the control device after the direction of the control device is changed. That is, when the orientation of the control device is changed, the controlled device changes from being in the range of the infrared light of the control device to not being in the range of the infrared light emitted by the control device, and the controlled device generates a drop threshold request and a new light intensity threshold and transmits them to the control device.
The new light intensity threshold is greater than the updated infrared light intensity value, and the new light intensity threshold is equal to the sum of the updated infrared light intensity value and the preset difference.
208. The control device selectively receives the drop threshold request and the new light intensity threshold sent by one of the controlled devices, and updates the light intensity threshold according to the drop threshold request and the new light intensity threshold of the one of the controlled devices.
Specifically, the plurality of controlled devices send the drop threshold request and the new light intensity threshold to the control device, but the control device selects to receive the drop threshold request and the new light intensity threshold of one of the controlled devices, and updates the light intensity threshold according to the drop threshold request and the new light intensity threshold, and the updated light intensity threshold is equal to the new light intensity threshold. In practical applications, the user may customize the algorithm selection to receive the drop threshold request and the new light intensity threshold.
Exemplarily, as shown in fig. 3, it is a schematic diagram of a first application of the device pairing method in the second embodiment provided by the present invention. The control equipment sends infrared light to the controlled equipment, and each controlled equipment acquires an infrared light intensity value by using an infrared sensing unit of the controlled equipment. The number of control devices is 1, and the number of controlled devices is 4. The 5 steps of the light intensity threshold raising process are illustrated from left to right, respectively. The abscissa in the sub-diagram represents the serial number of the controlled device and the ordinate represents the relative light intensity of 0-100% for ease of illustration. The horizontal lines in each sub-graph represent the light intensity threshold.
In step 1, the light intensity threshold value initially emitted by the control device is at a lower level, and the infrared light intensity values of the controlled devices 1 to 4 are all greater than the light intensity threshold value, so that the controlled devices 1 to 4 are all within the range of the infrared light emitted by the control device. And if the difference between the infrared light intensity value of the controlled equipment 1-4 and the light intensity threshold is greater than the preset difference, the controlled equipment 1-4 generates a threshold lifting request and a new light intensity threshold and sends the threshold lifting request and the new light intensity threshold to the control equipment. Wherein the new light intensity threshold of each controlled device is less than the infrared light intensity value and is equal to the difference between the infrared light intensity value of each controlled device and a preset difference value.
In step 2, if the control device selects the received controlled device as the controlled device 1, the control device receives the request for the lifting threshold value and the new light intensity threshold value of the controlled device 1, the control device uses the new light intensity threshold value of the controlled device 1 as an updated light intensity threshold value, the updated light intensity threshold value is lifted to be slightly lower than the infrared light intensity value of the controlled device 1, the updated light intensity threshold value is equal to the difference between the infrared light intensity value of the controlled device 1 and a preset difference value, and the updated light intensity threshold value is sent to each controlled device. The controlled devices 1-4 are all in the range of the infrared light transmitted by the control device at this time. However, the condition for sending the threshold raising request is that the difference between the infrared light intensity value of the controlled device and the light intensity threshold is greater than the preset difference, but the difference between the infrared light intensity value of the controlled device 1 and the light intensity threshold is not greater than the preset difference, so that the controlled device 1 does not send the threshold raising request any more, and the controlled devices 2 to 4 send new threshold raising requests.
Correspondingly, in step 3, if the controlled device selected by the control device to be received is the controlled device 4, the control device receives the request for the lifting threshold value and the new light intensity threshold value of the controlled device 4, the control device uses the new light intensity threshold value of the controlled device 4 as an updated light intensity threshold value, the updated light intensity threshold value is lifted to be slightly lower than the infrared light intensity value of the controlled device 4, the updated light intensity threshold value is equal to the difference between the infrared light intensity value of the controlled device 4 and the preset difference value, and the updated light intensity threshold value is sent to each controlled device. The controlled devices 2-4 are all in the range of the infrared light transmitted by the control device at this time. However, the condition for sending the threshold raising request is that the difference between the infrared light intensity value of the controlled device and the light intensity threshold is greater than the preset difference, but the difference between the infrared light intensity value of the controlled device 4 and the light intensity threshold is not greater than the preset difference, so that the controlled device 4 does not send the threshold raising request any more, and the controlled devices 2 and 3 send new threshold raising requests.
Correspondingly, in step 4, if the control device selects the received controlled device as the controlled device 2, the control device receives the request for the lifting threshold value and the new light intensity threshold value of the controlled device 2, the control device uses the new light intensity threshold value of the controlled device 2 as an updated light intensity threshold value, the updated light intensity threshold value is lifted to be slightly lower than the infrared light intensity value of the controlled device 2, the updated light intensity threshold value is equal to the difference between the infrared light intensity value of the controlled device 2 and the preset difference value, and the updated light intensity threshold value is sent to each controlled device. Both the controlled devices 2 and 3 are now in the range of the infrared light transmitted by the control device. However, the condition for sending the threshold raising request is that the difference between the infrared light intensity value of the controlled device and the light intensity threshold is greater than the preset difference, but the difference between the infrared light intensity value of the controlled device 2 and the light intensity threshold is not greater than the preset difference, so that the controlled device 2 does not send the threshold raising request any more, and the controlled device 3 sends a new threshold raising request.
Correspondingly, in step 5, if the control device selects the received controlled device as the controlled device 3, the control device receives the request for the lifting threshold value and the new light intensity threshold value of the controlled device 3, the control device takes the new light intensity threshold value of the controlled device 3 as an updated light intensity threshold value, the updated light intensity threshold value is lifted to be slightly lower than the infrared light intensity value of the controlled device 3, the updated light intensity threshold value is equal to the difference between the infrared light intensity value of the controlled device 3 and the preset difference value, and the updated light intensity threshold value is sent to each controlled device. The controlled device 3 is now within the range of the infrared light transmitted by the control device. However, the condition for sending the request for raising the threshold value is that the difference between the infrared light intensity value of the controlled device and the light intensity threshold value is greater than the preset difference, but the difference between the infrared light intensity value of the controlled device 3 and the light intensity threshold value is not greater than the preset difference, so that the controlled device 3 does not send the request for raising the threshold value any more.
In the actual pairing process, steps 1-5 can be performed sequentially. After step 1, since the control device selects the received controlled device to be random, steps 2-5 can be performed by skipping part of the steps to accommodate the situation where part of the request for raising the threshold is lost without affecting the process of raising the light intensity threshold upward.
If the direction of the control device changes, a mechanism for updating the light intensity threshold downwards needs to be executed when the infrared light intensity value received by each controlled device changes. Fig. 4 is a schematic diagram of a second application of the device pairing method in the second embodiment of the present invention. Step 1 in fig. 4 follows step 5 in fig. 3, the same as step 5 in fig. 3.
In step 2, the pointing direction of the control device is changed, the updated infrared light intensity value of the controlled device 3 is smaller than the light intensity threshold, and at this time, none of the controlled devices 1 to 4 is in the range of the infrared light sent by the control device. And the controlled device 3 is in the range of the infrared light sent by the control device before the direction of the control device is changed, and is not in the range of the infrared light sent by the control device after the direction of the control device is changed, so the controlled device 3 generates a drop threshold request and a new light intensity threshold and sends the requests and the new light intensity threshold to the control device. Wherein the new light intensity threshold of the controlled device 3 is greater than the infrared light intensity value and is equal to the sum of the infrared light intensity of the controlled device 3 and a preset difference.
In step 3, if the control device selects the received controlled device as the controlled device 3, the control device receives the drop threshold request and the new light intensity threshold of the controlled device 3, the control device uses the new light intensity threshold of the controlled device 3 as an updated light intensity threshold, the updated light intensity threshold is raised to be slightly higher than the infrared light intensity value of the controlled device 3, and the updated light intensity threshold is equal to the sum of the infrared light intensity value of the controlled device 3 and a preset difference, and the updated light intensity threshold is sent to each controlled device. After the light intensity threshold value is updated, the controlled devices 1 and 3 are not in the range of the infrared light transmitted by the control device, the controlled devices 2 and 4 are in the range of the infrared light transmitted by the control device, and the difference between the infrared light intensity value of the controlled devices 2 and 4 and the light intensity threshold value is greater than a preset difference value, so that the controlled devices 2 and 4 transmit a threshold value raising request.
Correspondingly, in step 4, if the controlled device selected by the control device to be received is the controlled device 4, the control device receives the request for the lifting threshold value and the new light intensity threshold value of the controlled device 4, the control device uses the new light intensity threshold value of the controlled device 4 as an updated light intensity threshold value, the updated light intensity threshold value is lifted to be slightly lower than the infrared light intensity value of the controlled device 4, the updated light intensity threshold value is equal to the difference between the infrared light intensity value of the controlled device 4 and the preset difference value, and the updated light intensity threshold value is sent to each controlled device. The controlled devices 2 and 4 are now in the range of the infrared light transmitted by the control device. However, the condition for sending the threshold raising request is that the difference between the infrared light intensity value of the controlled device and the light intensity threshold is greater than the preset difference, but the difference between the infrared light intensity value of the controlled device 4 and the light intensity threshold is not greater than the preset difference, so that the controlled device 4 does not send the threshold raising request any more, and the controlled device 2 sends a new threshold raising request.
Correspondingly, in step 5, if the control device selects the received controlled device as the controlled device 2, the control device receives the request for the lifting threshold value and the new light intensity threshold value of the controlled device 2, the control device uses the new light intensity threshold value of the controlled device 2 as an updated light intensity threshold value, the updated light intensity threshold value is lifted to be slightly lower than the infrared light intensity value of the controlled device 2, the updated light intensity threshold value is equal to the difference between the infrared light intensity value of the controlled device 2 and the preset difference value, and the updated light intensity threshold value is sent to each controlled device. The controlled devices 2 are all in the range of the infrared light transmitted by the control device at this time. However, the condition for sending the request for raising the threshold value is that the difference between the infrared light intensity value of the controlled device and the light intensity threshold value is greater than the preset difference value, but the difference between the infrared light intensity value of the controlled device 2 and the light intensity threshold value is not greater than the preset difference value at this time, so the controlled device 2 does not send the request for raising the threshold value any more.
In the actual pairing process, steps 1-5 in fig. 3 and steps 2-5 in fig. 4 may be performed sequentially. After steps 1-3 are performed in fig. 4, since the controlled device selected by the control device for reception can be randomly selected, steps 4-5 can be performed randomly to adapt to the situation that part of the request for raising the threshold is lost without affecting the process of raising the light intensity threshold upwards after updating the light intensity threshold downwards.
In the embodiment of the invention, the control equipment emits infrared light, the controlled equipment receives the infrared light and acquires the infrared light intensity value, and the matched target controlled equipment is determined by the infrared light without using third-party electronic equipment, so that the equipment matching convenience is improved. And the control equipment sends the light intensity threshold value to the controlled equipment, so that the controlled equipment generates a new light intensity threshold value according to the light intensity threshold value and sends the new light intensity threshold value to the control equipment, the infrared light intensity value received by the controlled equipment is indirectly compared, the target controlled equipment is further determined, and data is not shared among the controlled equipment for size comparison, and the network overhead is reduced. In addition, the directional change of the control equipment is considered, and the flexibility of equipment pairing is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a device pairing system in a third embodiment provided in the present invention. The apparatus shown in fig. 5 mainly comprises: a control device 301 and a plurality of controlled devices 302, wherein the control device 301 is provided with an infrared light source, the controlled devices 302 are provided with an infrared sensing unit,
and the controlled device 302 is configured to receive, through the infrared sensing unit, the infrared light emitted by the control device 301 through the infrared light source, and acquire an infrared light intensity value of the received infrared light.
The controlled device 302 is further configured to receive the light intensity threshold sent by the control device 301, generate a threshold lifting request and a new light intensity threshold according to the infrared light intensity value and the light intensity threshold, and send the threshold lifting request and the new light intensity threshold to the control device 301.
And the control device 301 is configured to determine the target controlled device 302 according to the lifting threshold request and the new light intensity threshold sent by the controlled devices 302, and pair the target controlled device 302 with the target controlled device 302.
Further, the controlled device 302 is further configured to receive the light intensity threshold sent by the control device 301, and calculate a difference between the infrared light intensity value and the light intensity threshold.
The controlled device 302 is further configured to generate a threshold lifting request and a new light intensity threshold if the difference between the infrared light intensity value and the light intensity threshold is greater than a preset difference, and send the threshold lifting request and the new light intensity threshold to the control device 301, where the new light intensity threshold is smaller than the infrared light intensity value, and the new light intensity threshold is equal to the difference between the infrared light intensity value and the preset difference.
Further, the control device 301 is further configured to selectively receive the lifting threshold request and the new light intensity threshold sent by one of the controlled devices 302, and update the light intensity threshold according to the lifting threshold request and the new light intensity threshold of one of the controlled devices 302.
The control device 301 is further configured to send the updated light intensity threshold to the plurality of controlled devices 302, until the lifting threshold request is no longer received, and the controlled device 302 that finally sends the lifting threshold request is the target controlled device 302 and is paired with the target controlled device 302.
Further, the controlled device 302 is further configured to update the infrared light intensity value if the infrared light intensity value obtained by the infrared sensing unit changes.
Further, the controlled device 302 is further configured to generate a drop threshold request and a new light intensity threshold if the difference between the light intensity threshold and the infrared light intensity value before updating is smaller than a preset difference, and the light intensity threshold and the infrared light intensity value after updating are not smaller than the preset difference, and send the request and the new light intensity threshold to the control device 301, where the new light intensity threshold is greater than the infrared light intensity value after updating, and the new light intensity threshold is equal to the sum of the infrared light intensity value after updating and the preset difference.
The control device 301 is further configured to selectively receive the drop threshold request and the new light intensity threshold sent by one of the controlled devices 302, and update the light intensity threshold according to the drop threshold request and the new light intensity threshold of one of the controlled devices 302.
In the embodiment of the invention, the control equipment emits infrared light, the controlled equipment receives the infrared light and acquires the infrared light intensity value, and the matched target controlled equipment is determined by the infrared light without using third-party electronic equipment, so that the equipment matching convenience is improved. And the control equipment sends the light intensity threshold value to the controlled equipment, so that the controlled equipment generates a new light intensity threshold value according to the light intensity threshold value and sends the new light intensity threshold value to the control equipment, the infrared light intensity value received by the controlled equipment is indirectly compared, the target controlled equipment is further determined, and data is not shared among the controlled equipment for size comparison, and the network overhead is reduced. In addition, the directional change of the control equipment is considered, and the flexibility of equipment pairing is improved.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the above description of the device pairing method and system provided by the present invention, for a person skilled in the art, there are changes in the specific implementation manners and application ranges according to the ideas of the embodiments of the present invention, and in summary, the contents of the present specification should not be construed as limiting the present invention.

Claims (6)

1. An equipment pairing method is applied to control equipment and a plurality of controlled equipment, and is characterized in that an infrared light source is arranged on the control equipment, an infrared sensing unit is arranged on the controlled equipment, and the method comprises the following steps:
each controlled device receives infrared light emitted by the control device through the infrared light source through an infrared sensing unit, and obtains an infrared light intensity value of the received infrared light;
each controlled device receives a light intensity threshold sent by the control device, calculates the difference between the infrared light intensity value and the light intensity threshold, generates a threshold lifting request and a new light intensity threshold according to the infrared light intensity value and the light intensity threshold if the difference between the infrared light intensity value and the light intensity threshold is larger than a preset difference value, and sends the threshold lifting request and the new light intensity threshold to the control device, wherein the new light intensity threshold is smaller than the infrared light intensity value, and the new light intensity threshold is equal to the difference between the infrared light intensity value and the preset difference value;
the control equipment receives a lifting threshold value request and a new light intensity threshold value sent by a plurality of controlled equipment, updates the light intensity threshold value according to the lifting threshold value request and the new light intensity threshold value of one of the controlled equipment, the updated light intensity threshold value is equal to the new light intensity threshold value, the control equipment sends the updated light intensity threshold value to the plurality of controlled equipment, and executes the step that each piece of controlled equipment receives the light intensity threshold value sent by the control equipment until the control equipment does not receive the lifting threshold value request any more, and finally the controlled equipment sending the lifting threshold value is target controlled equipment, determines the target controlled equipment and is paired with the target controlled equipment.
2. The device pairing method as claimed in claim 1, wherein the step of receiving the light intensity threshold value sent by the control device and calculating the difference between the infrared light intensity value and the light intensity threshold value by each of the controlled devices, and if the difference between the infrared light intensity value and the light intensity threshold value is greater than a preset difference value, the controlled device generating a threshold lifting request and a new light intensity threshold value comprises:
and if the infrared light intensity value acquired by each controlled device through the infrared sensing unit changes, each controlled device updates the infrared light intensity value.
3. The device pairing method of claim 2, wherein if the infrared light intensity value obtained by each of the controlled devices through the infrared sensing unit changes, after each of the controlled devices updates the infrared light intensity value, the method further comprises:
if the difference between the light intensity threshold and the infrared light intensity value before the updating of the controlled equipment is smaller than the preset difference, and the difference between the light intensity threshold and the infrared light intensity value after the updating of the controlled equipment is not smaller than the preset difference, the controlled equipment generates a drop threshold request and a new light intensity threshold which is larger than the updated infrared light intensity value and is equal to the sum of the updated infrared light intensity value and the preset difference, and sends the new light intensity threshold to the control equipment;
the control device selectively receives the drop threshold request and the new light intensity threshold sent by one of the controlled devices, and updates the light intensity threshold according to the drop threshold request and the new light intensity threshold of the one of the controlled devices.
4. A device pairing system, the system comprising: the device comprises a control device and a plurality of controlled devices, wherein the control device is provided with an infrared light source, the controlled devices are provided with infrared sensing units,
the controlled equipment is used for receiving infrared light emitted by the control equipment through the infrared light source through the infrared sensing unit and acquiring an infrared light intensity value of the received infrared light;
the controlled device is further configured to receive a light intensity threshold sent by the control device, calculate a difference between the infrared light intensity value and the light intensity threshold, generate a threshold lifting request and a new light intensity threshold according to the infrared light intensity value and the light intensity threshold if the difference between the infrared light intensity value and the light intensity threshold is greater than a preset difference value, and send the threshold lifting request and the new light intensity threshold to the control device, where the new light intensity threshold is smaller than the infrared light intensity value, and the new light intensity threshold is equal to the difference between the infrared light intensity value and the preset difference value;
the control device is configured to receive a lifting threshold request and a new light intensity threshold sent by the plurality of controlled devices, update the light intensity threshold according to the lifting threshold request and the new light intensity threshold of one of the controlled devices, where the updated light intensity threshold is equal to the new light intensity threshold, send the updated light intensity threshold to the plurality of controlled devices, execute the step of receiving the light intensity threshold sent by the control device by each controlled device, and if the control device does not receive the lifting threshold request any more, the controlled device that sends the lifting threshold request is the target controlled device, determine the target controlled device, and pair the target controlled device with the target controlled device.
5. The device pairing system of claim 4,
the controlled device is further configured to update the infrared light intensity value if the infrared light intensity value acquired by the infrared sensing unit changes.
6. The device pairing system of claim 5,
the controlled device is further configured to generate a drop threshold request and a new light intensity threshold if the difference between the light intensity threshold and the infrared light intensity value before updating is smaller than the preset difference and the difference between the light intensity threshold and the infrared light intensity value after updating is not smaller than the preset difference, and send the drop threshold request and the new light intensity threshold to the control device, where the new light intensity threshold is greater than the infrared light intensity value after updating and the new light intensity threshold is equal to the sum of the infrared light intensity value after updating and the preset difference;
the control device is further used for selectively receiving the drop threshold request and the new light intensity threshold sent by one of the controlled devices, and updating the light intensity threshold according to the drop threshold request and the new light intensity threshold of the one of the controlled devices.
CN201811054476.8A 2018-09-11 2018-09-11 Device pairing method and system Expired - Fee Related CN109345816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811054476.8A CN109345816B (en) 2018-09-11 2018-09-11 Device pairing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811054476.8A CN109345816B (en) 2018-09-11 2018-09-11 Device pairing method and system

Publications (2)

Publication Number Publication Date
CN109345816A CN109345816A (en) 2019-02-15
CN109345816B true CN109345816B (en) 2020-10-23

Family

ID=65305359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811054476.8A Expired - Fee Related CN109345816B (en) 2018-09-11 2018-09-11 Device pairing method and system

Country Status (1)

Country Link
CN (1) CN109345816B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111741511B (en) * 2020-05-29 2022-05-10 华为技术有限公司 Quick matching method and head-mounted electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090047144A (en) * 2007-11-07 2009-05-12 삼성전자주식회사 Portable terminal having bluetooth module and method for bluetooth communication thereof
WO2013028711A1 (en) * 2011-08-22 2013-02-28 Osram Sylvania Inc. Remote controller paring method and system using the same
TW201427436A (en) * 2012-12-21 2014-07-01 Netvox Technology Co Ltd Mobile remote controller for automatically recognizing remote controlled object
CN104023412A (en) * 2014-05-23 2014-09-03 武汉泰睿科技有限公司 Wireless terminal pairing method and device thereof
CN106210275A (en) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 A kind of multi-terminal control method and device
CN207164989U (en) * 2017-08-31 2018-03-30 深圳大学 A kind of control unit based on Zigbee, response unit and control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090047144A (en) * 2007-11-07 2009-05-12 삼성전자주식회사 Portable terminal having bluetooth module and method for bluetooth communication thereof
WO2013028711A1 (en) * 2011-08-22 2013-02-28 Osram Sylvania Inc. Remote controller paring method and system using the same
TW201427436A (en) * 2012-12-21 2014-07-01 Netvox Technology Co Ltd Mobile remote controller for automatically recognizing remote controlled object
CN104023412A (en) * 2014-05-23 2014-09-03 武汉泰睿科技有限公司 Wireless terminal pairing method and device thereof
CN106210275A (en) * 2016-06-28 2016-12-07 乐视控股(北京)有限公司 A kind of multi-terminal control method and device
CN207164989U (en) * 2017-08-31 2018-03-30 深圳大学 A kind of control unit based on Zigbee, response unit and control system

Also Published As

Publication number Publication date
CN109345816A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
US10560835B2 (en) Lighting system, setting device, and pairing method for lighting system
US10455668B2 (en) Method of controlling lighting devices
US9210778B2 (en) Integrated wireless and wired light control system
US9674814B2 (en) Failure conditions for fine timing measurement (FTM) protocol
CN104407599B (en) Portable intelligent home controller and intelligent home control system
CN104378421A (en) Remote control system and method of intelligent household electrical appliance product
CN104768222B (en) Positioning using Radio signal parameters to mobile device
CN104731066A (en) Intelligent housing system and control method thereof
CN109345816B (en) Device pairing method and system
KR20160012661A (en) Apparatus and method for controlling zigbee lighting
EP3366083A1 (en) Notification lighting control
CN107831467B (en) Node positioning method, server, system and computer readable storage medium
US20160278000A1 (en) Connection-less mesh networking
US10469494B2 (en) Home network system using Z-Wave network and home automation device connection method using same
CN104812143A (en) Intelligent illumination induction automatic light dimming method
US10193704B2 (en) Device control method and apparatus in home network system
KR20150144282A (en) Apparatus and method for controlling lighting device
KR20180103424A (en) Apparatus and method for scheduling transmission of charging power in wireless charging system
CN110136424B (en) Equipment control method and equipment
CN106851788B (en) Wireless communication system based on CC2530 chip
CN107094279A (en) Adjust method, the apparatus and system of transmission power
CN112882393A (en) Electrical device, method of controlling electrical device, and controller
US20140218280A1 (en) Peripheral device with multi-transmission capability
US10264418B2 (en) Method and system for wireless transmission of information in automation technology
US10368425B2 (en) Lighting system, method for transmitting schedule information in lighting system, and operation terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201023

Termination date: 20210911

CF01 Termination of patent right due to non-payment of annual fee