CN107801253A - Device pairing method, apparatus and computer-readable recording medium - Google Patents

Device pairing method, apparatus and computer-readable recording medium Download PDF

Info

Publication number
CN107801253A
CN107801253A CN201710979616.1A CN201710979616A CN107801253A CN 107801253 A CN107801253 A CN 107801253A CN 201710979616 A CN201710979616 A CN 201710979616A CN 107801253 A CN107801253 A CN 107801253A
Authority
CN
China
Prior art keywords
controlled device
remote control
control equipment
signal
rssi value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710979616.1A
Other languages
Chinese (zh)
Other versions
CN107801253B (en
Inventor
尚衍筠
白复东
李鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201710979616.1A priority Critical patent/CN107801253B/en
Publication of CN107801253A publication Critical patent/CN107801253A/en
Application granted granted Critical
Publication of CN107801253B publication Critical patent/CN107801253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Multimedia (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a kind of device pairing method, apparatus and computer-readable recording medium, belong to communication technical field.Methods described is applied to the first controlled device, including:Scan the short-range communication signal of the miscellaneous equipment broadcast in addition to the first controlled device;When short-range communication signal of the scanning to remote control equipment broadcast, the physical address of remote control equipment is obtained from the short-range communication signal of remote control equipment broadcast;When receiving the directional signal of remote control equipment transmission, matched based on the physical address of remote control equipment with remote control equipment, the signal receiving angle scope of directional signal is located in the range of predetermined angle.Miscellaneous equipment of the present invention in addition to the controlled device in the signal direction of the launch of directional signal is smaller by the interference of the directional signal, thus matched only by the controlled device for receiving the directional signal with remote control equipment, remote control equipment can be enabled relatively accurately to be paired to the desired controlled device of user, device pairing accuracy rate is higher.

Description

Device pairing method, apparatus and computer-readable recording medium
Technical field
The present invention relates to communication technical field, more particularly to a kind of device pairing method, apparatus and computer-readable storage Medium.
Background technology
It can realize and be remotely controlled conveniently by junction service with the development of the communication technology, between two equipment, such as can be with Bluetooth remote control etc. is realized by Bluetooth technology, the equipment that can be controlled in the two equipment is properly termed as remote control equipment, quilt The equipment of control is properly termed as controlled device.Remote control equipment is when realizing the control to controlled device, it is necessary to elder generation and controlled device Matched and carry out certification each other, communication connection is established in certification success and then with controlled device, to pass through the communication connection pair Controlled device is controlled.
In correlation technique, when remote control equipment is matched with controlled device, remote control equipment can be first from the multiple quilts scanned Control and determine that the RSSI between the remote control equipment (Received Signal StrengthIndication, receives letter in equipment The instruction of number intensity) the maximum controlled device of value, then the maximum controlled device of the RSSI value is defined as and the remote control equipment distance Nearest controlled device, finally the controlled device closest with this matched.
However, barrier and the uncertainty of echo area distribution in environment so that RSSI value is led easily by environmental disturbances RSSI value is caused to accurately reflect the distance of distance, as the RSSI value between remote control equipment and controlled device closer to the distance may Less than the RSSI value between the remote control equipment and distant controlled device.In the case, during above-mentioned pairing directly The operation that distance is then matched is weighed using RSSI value, will make it that remote control equipment is desired from being accurately paired to user Controlled device, device pairing accuracy rate are relatively low.
The content of the invention
The embodiments of the invention provide a kind of device pairing method, apparatus and computer-readable recording medium, can solve The problem of device pairing accuracy rate is low in correlation technique.The technical scheme is as follows:
First aspect, there is provided a kind of device pairing method, applied to the first controlled device, methods described includes:
Scan the short-range communication signal of the miscellaneous equipment broadcast in addition to first controlled device;
When short-range communication signal of the scanning to remote control equipment broadcast, from the short-range communication signal of remote control equipment broadcast The middle physical address for obtaining the remote control equipment;
When receiving the directional signal that the remote control equipment is sent, physical address and institute based on the remote control equipment State remote control equipment to be matched, the signal receiving angle scope of the directional signal is located in the range of predetermined angle.
Alternatively, it is described when receiving the directional signal that the remote control equipment is sent, based on the remote control equipment Physical address is matched with the remote control equipment, including:
When receiving the directional signal that the remote control equipment is sent, create client-side interface and terminated with service Mouthful;
Based on the client-side interface and the service end interface, the first RSSI value and the second RSSI value are obtained, described the RSSI value of one RSSI value between first controlled device and the remote control equipment, second RSSI value are second controlled RSSI value between equipment and the remote control equipment, second controlled device are the reception in addition to first controlled device To the controlled device of the directional signal;
When successfully getting first RSSI value and second RSSI value, and first RSSI value and described second When maximum RSSI value is first RSSI value in RSSI value, the physical address based on the remote control equipment is set with the remote control It is standby to be matched.
Alternatively, it is described to be based on the client-side interface and the service end interface, obtain the first RSSI value and second RSSI value, including:
When short-range communication signal of the scanning to the broadcast of the 3rd controlled device, from the short distance of the 3rd controlled device broadcast The physical address of the 3rd controlled device is obtained in signal of communication, the 3rd controlled device is except first controlled device Outside controlled device;
Based on the physical address of the 3rd controlled device, pass through the client-side interface and the service end interface and institute The 3rd controlled device is stated to be attached;
When success is attached with the 3rd controlled device, the 3rd controlled device is controlled as described second Equipment, first RSSI value is obtained, and described first is sent to second controlled device by the client-side interface RSSI value, second RSSI value sent by the second controlled device described in the service end interface.
Second aspect, there is provided a kind of device pairing method, applied to remote control equipment, methods described includes:
When receiving the transmission instruction for sending directional signal, the directional signal, the directive property are sent The signal receiving angle scope of signal is located in the range of predetermined angle;
Scan the short-range communication signal of the miscellaneous equipment broadcast in addition to the remote control equipment;
When short-range communication signal of the scanning to the broadcast of at least one controlled device, from least one controlled device At least one target controlled device in one target controlled device of selection as pairing controlled device, at least one target Controlled device is the controlled device for receiving the directional signal;
The physical address of the pairing controlled device is obtained from the short-range communication signal of the pairing controlled device broadcast, And the physical address based on the pairing controlled device is matched with the pairing controlled device.
Alternatively, the controlled device that the directional signal is used to indicate to receive the directional signal creates client Interface;It is described when scanning at least one controlled device broadcast short-range communication signal when, from least one controlled device In at least one target controlled device in one target controlled device of selection as pairing controlled device, including:
When short-range communication signal of the scanning to the broadcast of at least one controlled device, service end interface is created;
Based on the service end interface, obtain at least one target controlled device at least one controlled device with RSSI value between the remote control equipment;
The target of RSSI value maximum from least one target controlled device between selection and the remote control equipment Controlled device is as pairing controlled device.
Alternatively, at least one mesh for being based on the service end interface, obtaining at least one controlled device The RSSI value between controlled device and the remote control equipment is marked, including:
For each controlled device at least one controlled device, from the junction service of controlled device broadcast The physical address of the controlled device is obtained in signal;
Based on the physical address of the controlled device, it is attached by the service end interface with the controlled device;
When success is attached with the controlled device, using the controlled device as target controlled device, pass through institute State described in service end interface between the target controlled device of target controlled device transmission and the remote control equipment RSSI value.
The third aspect, there is provided a kind of device pairing device, applied to the first controlled device, described device includes:
Scan module, for scanning the short-range communication signal of the miscellaneous equipment broadcast in addition to first controlled device;
Acquisition module, for when short-range communication signal of the scanning to remote control equipment broadcast, being broadcasted from the remote control equipment Short-range communication signal in obtain the physical address of the remote control equipment;
Matching module, for when receiving the directional signal that the remote control equipment is sent, based on the remote control equipment Physical address matched with the remote control equipment, the signal receiving angle scope of the directional signal is located at predetermined angle In the range of.
Alternatively, matching module includes:
Submodule is created, for when receiving the directional signal that the remote control equipment is sent, creating client Interface and service end interface;
Acquisition submodule, for based on the client-side interface and the service end interface, it is strong to obtain the first reception signal Indicating RSSI value and the second RSSI value are spent, first RSSI value is between first controlled device and the remote control equipment RSSI value, RSSI value of second RSSI value between the second controlled device and the remote control equipment, described second controlled sets The standby controlled device for receiving the directional signal in addition to first controlled device;
Submodule is matched, for ought successfully get first RSSI value and second RSSI value, and described first When maximum RSSI value is first RSSI value in RSSI value and second RSSI value, the physics based on the remote control equipment Matched with the remote control equipment address.
Alternatively, the acquisition submodule is used for:
When short-range communication signal of the scanning to the broadcast of the 3rd controlled device, from the short distance of the 3rd controlled device broadcast The physical address of the 3rd controlled device is obtained in signal of communication, the 3rd controlled device is except first controlled device Outside controlled device;
Based on the physical address of the 3rd controlled device, pass through the client-side interface and the service end interface and institute The 3rd controlled device is stated to be attached;
When success is attached with the 3rd controlled device, the 3rd controlled device is controlled as described second Equipment, first RSSI value is obtained, and described first is sent to second controlled device by the client-side interface RSSI value, second RSSI value sent by the second controlled device described in the service end interface.
Fourth aspect, there is provided a kind of device pairing device, applied to remote control equipment, described device includes:
Sending module, for when receiving the transmission instruction for sending directional signal, sending the directive property letter Number, the signal receiving angle scope of the directional signal is located in the range of predetermined angle;
Scan module, for scanning the short-range communication signal of the miscellaneous equipment broadcast in addition to the remote control equipment;
Selecting module, for when scanning at least one controlled device broadcast short-range communication signal when, from it is described at least A target controlled device is selected at least one target controlled device in one controlled device as pairing controlled device, institute It is the controlled device for receiving the directional signal to state at least one target controlled device;
Matching module, for being obtained from the short-range communication signal of the pairing controlled device broadcast, the pairing is controlled to be set Standby physical address, and the physical address based on the pairing controlled device is matched with the pairing controlled device.
Alternatively, the controlled device that the directional signal is used to indicate to receive the directional signal creates client Interface;The selecting module includes:
Submodule is created, for when short-range communication signal of the scanning to the broadcast of at least one controlled device, creating service End interface;
Acquisition submodule, for based on the service end interface, obtaining at least one at least one controlled device Received signal strength indicator RSSI value between individual target controlled device and the remote control equipment;
Submodule is selected, for being selected from least one target controlled device between the remote control equipment The maximum target controlled device of RSSI value is as pairing controlled device.
Alternatively, the acquisition submodule is used for:
For each controlled device at least one controlled device, from the junction service of controlled device broadcast The physical address of the controlled device is obtained in signal;
Based on the physical address of the controlled device, it is attached by the service end interface with the controlled device;
When success is attached with the controlled device, using the controlled device as target controlled device, pass through institute State described in service end interface between the target controlled device of target controlled device transmission and the remote control equipment RSSI value.
5th aspect, there is provided a kind of computer-readable recording medium, be stored with finger on the computer-readable recording medium Order, it is described to instruct the step of realizing the device pairing method described in above-mentioned first aspect when being executed by processor.
6th aspect, there is provided a kind of computer-readable recording medium, be stored with finger on the computer-readable recording medium Order, it is described to instruct the step of realizing the device pairing method described in above-mentioned second aspect when being executed by processor.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:Set when the first controlled device is scanned to remote control The short-range communication signal of standby broadcast, and when receiving the directional signal of remote control equipment transmission, can enter with the remote control equipment Row pairing.Because the signal receiving angle scope of the directional signal is smaller, so except the signal of the directional signal is launched The miscellaneous equipment outside controlled device on direction is smaller by the interference of the directional signal, thus now will only receive this The controlled device of directional signal is matched with the remote control equipment, and the remote control equipment can be enabled relatively accurately to match It is higher to the desired controlled device of user, device pairing accuracy rate.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the schematic diagram for the implementation environment that a kind of device pairing method provided in an embodiment of the present invention is related to;
Fig. 2A is a kind of flow chart of device pairing method provided in an embodiment of the present invention;
Fig. 2 B are a kind of schematic diagrames of directional signal provided in an embodiment of the present invention;
Fig. 2 C are a kind of schematic diagrames of device pairing process provided in an embodiment of the present invention;
Fig. 2 D are the schematic diagrames of another device pairing process provided in an embodiment of the present invention;
Fig. 3 A are the flow charts of another device pairing method provided in an embodiment of the present invention;
Fig. 3 B are the schematic diagrames of another device pairing process provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of device pairing device provided in an embodiment of the present invention;
Fig. 5 is the structural representation of another device pairing device provided in an embodiment of the present invention;
Fig. 6 is the structural representation of another device pairing device provided in an embodiment of the present invention;
Fig. 7 is the structural representation of another device pairing device provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
In order to make it easy to understand, before to the embodiment of the present invention carrying out that explanation is explained in detail, the embodiment of the present invention is related to And application scenarios and implementation environment be introduced.
First, to the present embodiments relate to application scenarios illustrate.
The embodiment of the present invention can apply to be remotely controlled scene, specifically can apply to user and is set using remote control equipment to controlled The standby scene being remotely controlled.In daily life, equipment is controlled at a distance for the ease of user, can by remote control equipment with Controlled device is matched, and with certification each other, remote control equipment can be established with controlled device and communicated to connect after certification success, success Remote control equipment can is controlled to controlled device after establishing communication connection.Next this scene is illustrated.
For example, user wants viewing TV programme, then user can be such that remote control is carried out with TV by remote controller Pairing, with certification each other, remote control can be established with TV and communicated to connect after certification success, after being successfully established communication connection, be used Family can sends remote signal using remote control to TV, to control TV to carry out such as switching channels, regulation volume, search Program etc. operates.
Certainly, the embodiment of the present invention can be applied not only in above-mentioned remote control scene, in practical application, can also be applied to In other remote control scenes, it will not enumerate herein.
Then, to the present embodiments relate to implementation environment illustrate.
Fig. 1 is the schematic diagram for the implementation environment that a kind of device pairing method provided in an embodiment of the present invention is related to.Referring to figure 1, the implementation environment includes:Remote control equipment 101 and controlled device 102.
Remote control equipment 101 refers in the equipment of the outer control miscellaneous equipment of certain distance, remote control equipment 101 be able to lead to Cross and send remote signal to miscellaneous equipment to control miscellaneous equipment, such as remote control equipment 101 can be mobile phone, remote control;It is controlled Equipment 102 refers to the equipment that can be controlled by miscellaneous equipment, and controlled device 102 can receive the remote control letter of miscellaneous equipment transmission Number, and perform and operated corresponding to the remote signal, such as controlled device 102 can be TV, air-conditioning.
Wherein, remote control equipment 101 can be matched with controlled device 102 by the following two kinds mode.
First way:Remote control equipment 101 can broadcast short-range communication signal, and send directional signal;Controlled device 102 short-range communication signals that can be broadcasted in scanning to remote control equipment 101, and receive the directive property of the transmission of remote control equipment 101 During signal, matched with remote control equipment 101.
The second way:Remote control equipment 101 can broadcast short-range communication signal, and send directional signal;Controlled device 102 can broadcast short-range communication signal;The short-range communication signal that remote control equipment 101 can broadcast in scanning to controlled device 102, And when determining that controlled device 102 receives directional signal, matched with controlled device 102.
Introduced the present embodiments relate to application scenarios and implementation environment after, the embodiment of the present invention is carried below The device pairing method of confession carries out detailed explanation.
Fig. 2A is a kind of flow chart of device pairing method provided in an embodiment of the present invention, and referring to Fig. 2A, this method includes Following steps:
Step 201:Remote control equipment broadcasts short-range communication signal.
Remote control equipment before realizing to the control of controlled device, it is necessary to first broadcast short-range communication signal, so as to follow-up quilt Equipment is controlled to be matched with the remote control equipment after the short-range communication signal to remote control equipment broadcast is scanned.
It should be noted that short-range communication signal refers to the signal for short haul connection, as short-range communication signal can be with For Bluetooth signal, WiFi (Wireless Fidelity, Wireless Fidelity) signal, ZigBee (purple honeybee) signal etc..Junction service is believed The device-dependent message for broadcasting the short-range communication signal can be carried in number, can such as carry and broadcast setting for the short-range communication signal Standby physical address, device identification, control mark etc..
In addition, the physical address of equipment is used to identify equipment in a network, it can be the hardware of network interface card in the equipment Location, if the physical address of equipment can be MAC (Media Access Control, media access control) address of the equipment Deng.The device identification of equipment is used for the unique mark equipment, as the device identification of equipment can be the title of the equipment, model, Dispatch from the factory sequence number etc..Controlling for equipment is identified for indicating that the equipment is remote control equipment or controlled device, and when the equipment is During remote control equipment, the control mark of the equipment can be the default first mark, when the equipment is controlled device, the equipment It can be the default second mark to control mark.
Step 202:When the transmission that the remote control equipment is received for sending directional signal instructs, the directive property is sent Signal.
It is used to send directional signal it should be noted that sending instruction, and transmission instruction can be triggered by user, be used Family can be triggered by assigned operation, and assigned operation can be clicking operation, slide, voice operating etc..
In addition, directional signal has directionality, i.e. directional signal can be transmitted with point-to-point, in other words, be referred to The signal receiving angle scope of tropism signal is located in the range of predetermined angle, and controlled only in the range of the signal receiving angle is set It is standby to receive the directional signal, if directional signal can be infrared signal, NFC (Near Field Communication, near-field communication) signal, LiFi (Light Fidelity, light fidelity) signal etc..
Furthermore predetermined angle scope can be configured in advance, and predetermined angle scope can set it is smaller, it is such as default Angular range can be 5 degree, 10 degree etc..
For example, as shown in Figure 2 B, predetermined angle scope is 5 degree, the signal hair for the directional signal that the remote control equipment is sent Penetrating direction isThen the signal receiving angle scope of the directional signal can be located at directionLeft and right offsets 2.5 degree of scope Interior, now the equipment only in the range of the signal receiving angle can receive the directional signal.
Short-range communication signal is broadcasted in the remote control equipment, and after sending the directional signal, for any controlled device, The controlled device can be matched with 203- steps 205 as follows and the remote control equipment.For the ease of description, below will The controlled device is referred to as the first controlled device.
Step 203:The junction service letter of miscellaneous equipment broadcast of the first controlled device scanning in addition to the first controlled device Number.
It should be noted that the miscellaneous equipment in addition to the first controlled device can be the remote control equipment, or its Its controlled device.
Further, the junction service of miscellaneous equipment broadcast of first controlled device in scanning in addition to the first controlled device While signal, short-range communication signal can also be broadcasted, the can be carried in the short-range communication signal of the first controlled device broadcast The physical address of one controlled device and device identification etc., or the physical address and the second mark of the first controlled device can be carried Deng.
Step 204:When short-range communication signal of the first controlled device scanning to remote control equipment broadcast, set from the remote control The physical address of the remote control equipment is obtained in the short-range communication signal of standby broadcast.
It should be noted that the remote control equipment can be carried physically in the short-range communication signal of remote control equipment broadcast Location and device identification etc., or physical address and first mark of the remote control equipment etc. can be carried.
Specifically, when short-range communication signal of the first controlled device scanning to miscellaneous equipment broadcast, if scan Device identification or the first mark of the remote control equipment are carried in short-range communication signal, then can determine that scanning is wide to the remote control equipment The short-range communication signal broadcast, afterwards, the thing of the remote control equipment is obtained in the short-range communication signal that can be broadcasted from the remote control equipment Manage address.
Step 205:When the first controlled device receives the directional signal of remote control equipment transmission, set based on the remote control Standby physical address is matched with the remote control equipment.
What deserves to be explained is the controlled device that the directional signal is only received in the embodiment of the present invention can be distant with this Control equipment is matched, and now for user if it is intended to being remotely controlled some controlled device, then directly can be directed at the remote control equipment should Controlled device sends the directional signal to the controlled device, so that the controlled device can receive the directional signal Matched afterwards with the remote control equipment.Because the signal receiving angle scope of the directional signal is smaller, so except the remote control The signal interference that miscellaneous equipment outside the controlled device of equipment alignment is subject to is smaller, so that the remote control equipment can be more The desired controlled device of user is paired to exactly, and device pairing accuracy rate is higher.
Specifically, when the first controlled device receives the directional signal, the thing of the remote control equipment can be directly based upon Matched with the remote control equipment reason address.Or when the first controlled device receives the directional signal, visitor can be created Family end interface and service end interface;Based on the client-side interface and the service end interface, the first RSSI value and the 2nd RSSI are obtained Value;When successfully getting the first RSSI value and the second RSSI value, and RSSI value maximum in the first RSSI value and the second RSSI value For the first RSSI value when, matched based on the physical address of the remote control equipment and the remote control equipment;The is got when failed When one RSSI value and the second RSSI value, the physical address and the remote control equipment that are directly based upon the remote control equipment are matched.
Further, when the first controlled device successfully gets the first RSSI value and the second RSSI value, but the first RSSI value When not being the first RSSI value with RSSI value maximum in the second RSSI value, the first controlled device can not be carried out with the remote control equipment Pairing.
It should be noted that RSSI value of first RSSI value between the first controlled device and the remote control equipment, that is to say, First RSSI value is the RSSI value for the signal that the remote control equipment that the first controlled device receives is sent.
In addition, RSSI value of second RSSI value between the second controlled device and the remote control equipment, that is to say, the 2nd RSSI It is worth the RSSI value for the signal that the remote control equipment received for the second controlled device is sent, the second controlled device is except first is controlled The controlled device for receiving the directional signal outside equipment.
Furthermore when the first controlled device successfully gets the second RSSI value, illustrate the second controlled device be present, that is to say, Now there are multiple controlled devices to have received the directional signal;When the first controlled device gets the 2nd RSSI not successfully Value, illustrates the second controlled device is not present, that is to say, now only a controlled device (i.e. the first controlled device) have received The directional signal.
What deserves to be explained is when there is multiple controlled devices to have received the directional signal, because the directive property is believed Number signal receiving angle scope it is smaller, therefore, the position for receiving multiple controlled devices of the directional signal is closer to, Now the RSSI value between the plurality of controlled device and the remote control equipment is by identical environmental disturbances, thus the plurality of be controlled sets The standby RSSI value between the remote control equipment can relatively accurately reflect between the plurality of controlled device and the remote control equipment Distance.In the case, it is in the embodiment of the present invention that the RSSI value in the plurality of controlled device between the remote control equipment is maximum Controlled device matched with the remote control equipment, be by the plurality of controlled device with the distance between the remote control equipment most Near controlled device is matched with the remote control equipment, so that the remote control equipment can accurately be paired to the desired quilt of user Equipment is controlled, device pairing accuracy rate is higher.
It should be noted that client-side interface can be the interface that client uses, client can pass through the client Interface sends message to service end;Service end interface can be the interface that service end uses, and service end can pass through the service end The message that interface client is sent, and responded by the service end interface to client.Client and service end are equal Specified communication protocol can be based on to create, specified communication protocol can be configured in advance, as specified communication protocol can be OBEX (Object Exchange, object exchange) agreement, now client can be OBEX client (object exchange clients End), client-side interface can be OBEXclient socket (object exchange client socket), and service end can be OBEX Server (Object Exchange Services end), service end interface can be that (Object Exchange Services end is socketed OBEX server socket Word).
Asked for example, client can be sent by client-side interface to service end, service end is connect by servicing end interface After receiving the request, acceptance message can be returned to client by servicing end interface, agree the request.It is for another example objective Family end can send information by client-side interface to service end, can after service end is by service end interface to the information To return to confirmation message to client by servicing end interface, expression has been received by the information.
Wherein, the first controlled device is based on the client-side interface and the service end interface, obtains the first RSSI value and second , can be when short-range communication signal of the scanning to the broadcast of the 3rd controlled device, from the broadcast of the 3rd controlled device during RSSI value The physical address of the 3rd controlled device is obtained in short-range communication signal;Based on the physical address of the 3rd controlled device, pass through The client-side interface and the service end interface are attached with the 3rd controlled device;When success and the 3rd controlled device are carried out During connection, using the 3rd controlled device as the second controlled device, obtain the first RSSI value, and by the client-side interface to this Second controlled device sends the first RSSI value, passes through the 2nd RSSI of the service end interface second controlled device transmission Value.
Further, when the first controlled device is attached with the 3rd controlled device not successfully, it may be determined that not into Work(gets the first RSSI value and the second RSSI value.
It should be noted that the 3rd controlled device is the controlled device in addition to first controlled device.Due to only Client-side interface could be created and service end interface by receiving the controlled device of the directional signal, and only two controlled devices On all have client-side interface and service end interface when, the two controlled devices could be successfully attached, and mutually send letter Breath.Therefore, when the success of the first controlled device is attached with some the 3rd controlled device, show have on the 3rd controlled device There are client-side interface and service end interface, that is, show that the 3rd controlled device have received the directional signal, so now may be used To regard the 3rd controlled device as the second controlled device.
In addition, the first controlled device sends the first RSSI value by the client-side interface to second controlled device, can be with , can be as the first controlled device, by the first RSSI value and the so that after second controlled device receives the first RSSI value Two RSSI values are compared, and determine whether to be matched with the remote control equipment based on comparative result.
Wherein, when short-range communication signal of the first controlled device scanning to miscellaneous equipment broadcast, if what is scanned is short Device identification or the second mark of the 3rd controlled device are carried in journey signal of communication, then can determine that scanning is controlled to the 3rd and set The short-range communication signal of standby broadcast, afterwards, the 3rd is obtained in the short-range communication signal that can be broadcasted from the 3rd controlled device The physical address of controlled device.
Wherein, physical address of first controlled device based on the 3rd controlled device, the client-side interface and the clothes are passed through When business end interface is attached with the 3rd controlled device, first can be established based on the physical address of the 3rd controlled device Connection between the client-side interface of controlled device and the service end interface of the 3rd controlled device, and establish the first controlled device Service end interface and the 3rd controlled device client-side interface between connection, so as to by the first controlled device and the 3rd Controlled device is attached.
Wherein, the first controlled device establishes the client-side interface of the first controlled device and the service termination of the 3rd controlled device During connection between mouthful, the client of the first controlled device can be by the client-side interface of the first controlled device to the 3rd quilt The service end for controlling equipment sends connection request;When the service end of the 3rd controlled device is terminated by the service of the 3rd controlled device When mouth receives the connection request, service client of the end interface to the first controlled device of the 3rd controlled device can be passed through Return to acceptance message;Disappear when the client of the first controlled device receives the agreement by the client-side interface of the first controlled device During breath, the client-side interface of the first controlled device is successfully established the connection between the service end interface of the 3rd controlled device.
Wherein, the first controlled device establishes the client of the service end interface and the 3rd controlled device of the first controlled device During connection between interface, the service end of the first controlled device can by the service end interface of the first controlled device this The connection request that the client of three controlled devices is sent by the client-side interface of the 3rd controlled device, and it is controlled by first The service end interface of equipment returns to acceptance message to the client of the 3rd controlled device;When the client of the 3rd controlled device When receiving the acceptance message by the client-side interface of the 3rd controlled device, the service end interface success of the first controlled device The connection established between the client-side interface of the 3rd controlled device.
It should be noted that because the first controlled device needs the physical address based on the remote control equipment could be with the remote control Equipment is matched, therefore, in order to avoid the first controlled device fail from the remote control equipment broadcast short-range communication signal It is middle to obtain the physical address of the remote control equipment, and cause situation about can not subsequently be matched with the remote control equipment, the remote control is set It is standby the physical address of itself to be actively sent to the first controlled device.Specifically, the remote control equipment sends directive property letter After number, client-side interface can be created, afterwards, when the short-range communication signal of remote control equipment scanning to the first controlled device broadcast When, the physical address of the first controlled device can be obtained from the short-range communication signal of the first controlled device broadcast, is then based on The physical address of first controlled device, establish the remote control equipment client-side interface and the first controlled device service end interface it Between connection, the connection between the service end interface of the client-side interface for being successfully established the remote control equipment and the first controlled device When, the physical address of itself can be sent to first by the client-side interface of the remote control equipment and controlled set by the remote control equipment It is standby.
In addition, it is actually that will create to have the controlled device of client-side interface and service end interface true in the embodiment of the present invention Be set to the controlled device for receiving the directional signal, thus in order to avoid during match next time to receiving the sensing Property signal controlled device mistake determination, for receiving at least one controlled of the directional signal during this pairing Each controlled device in equipment (i.e. the first controlled device and the second controlled device), the controlled device can be based on client Interface and service end interface, after obtaining the first RSSI value and the second RSSI value, delete the client-side interface and service termination Mouthful, the controlled device with client-side interface and service end interface is matched somebody with somebody at this during thereby may be ensured that pairing every time The controlled device of the directional signal is received to during.
Further, if the controlled device is the controlled device matched with the remote control equipment, in order to avoid this Controlled device fails with remote control equipment pairing, and the controlled device can not also be obtained based on client-side interface and service end interface Take and the client-side interface and the service end interface deleted after the first RSSI value and the second RSSI value, but with the remote control equipment The client-side interface and the service end interface are deleted again after successful matching.In the case, if the controlled device is distant with this Device pairing failure is controlled, then the controlled device can pass through this by the remote control equipment by the service end interface of the controlled device The pairing failed message that the client-side interface of remote control equipment is sent, and matching operation is re-started accordingly, it thereby may be ensured that this The successful pairing of controlled device and the remote control equipment.
In embodiments of the present invention, remote control equipment can broadcast short-range communication signal, and send directional signal.When first The short-range communication signal that controlled device scanning is broadcasted to the remote control equipment, and receive the directional signal of remote control equipment transmission When, it can be matched with the remote control equipment.Because the signal receiving angle scope of the directional signal is smaller, so except this The miscellaneous equipment outside controlled device in the signal direction of the launch of directional signal is smaller by the interference of the directional signal, Thus now matched only by the controlled device for receiving the directional signal with the remote control equipment, the remote control can be caused to set Standby to be relatively accurately paired to the desired controlled device of user, device pairing accuracy rate is higher.
In order to make it easy to understand, next the device pairing method that above-described embodiment provides is lifted with reference to Fig. 2 C and Fig. 2 D Example explanation.Assuming that remote control equipment is blue Tooth remote controller R, controlled device is TV TV, and short-range communication signal is Bluetooth signal, is pointed to Property signal is infrared signal, is now divided into the following two kinds situation and illustrates.
The first situation:As shown in Figure 2 C, it is assumed that the distance between each TV farther out, if user want to TV TV1 is remotely controlled, then blue Tooth remote controller R can be directed at TV TV1 transmitting infrared signals by user, due between each TV Distant, so not affecting other TV TV after the infrared signal, now only TV TV1 receives the infrared letter Number.In the case, device pairing process can include as follows
Step (1)-step (5).
(1) blue Tooth remote controller R broadcasts Bluetooth signal, and sends infrared signal.
(2) Bluetooth signal of other bluetooth equipments broadcast of the TV TV1 scannings in addition to itself.
(3) when Bluetooth signal of the TV TV1 scannings to blue Tooth remote controller R broadcast, from the bluetooth of blue Tooth remote controller R broadcast Blue Tooth remote controller R physical address is obtained in signal.
(4) when TV TV1 receives the infrared signal of blue Tooth remote controller R transmissions, client-side interface and service end are created Interface.
(5) when TV TV1 is based on the client-side interface and the service end interface, the first RSSI value and the are got not successfully Two RSSI values, based on blue Tooth remote controller R physical address, matched with blue Tooth remote controller R1.
It should be noted that after blue Tooth remote controller R sends infrared signal, client-side interface can also be created, and be based on The physical address of itself is sent to TV TV1 by the client-side interface, to ensure that TV TVI can be based on blue Tooth remote controller R's Physical address completes follow-up matching operation.
Second of situation:As shown in Figure 2 D, it is assumed that the distance between each TV is relatively near, if user is wanted to TV TV1 is remotely controlled, then blue Tooth remote controller R can be directed at TV TV1 transmitting infrared signals by user, due between each TV Closer to the distance, so will interfere with other TV TV after the infrared signal, now it is infrared to receive this by TV TV1-TVn Signal.In the case, device pairing process may include steps of (6)-step (10).
(6) blue Tooth remote controller R broadcasts Bluetooth signal, and sends infrared signal.
(7) Bluetooth signal of other bluetooth equipments broadcast of the TV TV1 scannings in addition to itself.
(8) when Bluetooth signal of the TV TV1 scannings to blue Tooth remote controller R broadcast, from the bluetooth of blue Tooth remote controller R broadcast Blue Tooth remote controller R physical address is obtained in signal.
(9) when TV TV1 receives the infrared signal of blue Tooth remote controller R transmissions, client-side interface and service end are created Interface.
(10) when TV TV1 is based on the client-side interface and the service end interface, it is distant with bluetooth successfully to get TV TV1 When controlling the RSSI value between RSSI value and TV TV2-TVn and the blue Tooth remote controller R between device R, if TV TV1 and bluetooth are distant The RSSI value controlled between device R is RSSI value maximum in the RSSI value got, then the physical address based on blue Tooth remote controller R, Matched with blue Tooth remote controller R.
It should be noted that after blue Tooth remote controller R sends infrared signal, client-side interface can also be created, and be based on The physical address of itself is sent to TV TV1-TVn by the client-side interface, with ensure in TV TVI-TVn with blue Tooth remote controller The maximum TV TV of RSSI value between R can the physical address based on blue Tooth remote controller R complete follow-up matching operation.
Fig. 3 A are a kind of device pairing method flow diagrams provided in an embodiment of the present invention, and referring to Fig. 3 A, this method is included such as Lower step:
Step 301:When the transmission that remote control equipment is received for sending directional signal instructs, directive property letter is sent Number.
It is used to send directional signal it should be noted that sending instruction, and transmission instruction can be triggered by user, be used Family can be triggered by assigned operation, and assigned operation can be clicking operation, slide, voice operating etc..
In addition, directional signal has directionality, i.e. directional signal can be transmitted with point-to-point, in other words, be referred to The signal receiving angle scope of tropism signal is located in the range of predetermined angle, and controlled only in the range of the signal receiving angle is set Standby to receive the directional signal, such as directional signal can be infrared signal, NFC signals, LiFi signals.
Furthermore predetermined angle scope can be configured in advance, and predetermined angle scope can set it is smaller, it is such as default Angular range can be 5 degree, 10 degree etc..
Step 302:The short-range communication signal of miscellaneous equipment broadcast of the remote control equipment scanning in addition to the remote control equipment.
It should be noted that short-range communication signal refers to the signal for short haul connection, as short-range communication signal can be with For Bluetooth signal, WiFi signal, ZigBee signals etc..It can be carried in short-range communication signal and broadcast setting for the short-range communication signal Standby relevant information, it can such as carry the physical address of the equipment for broadcasting the short-range communication signal, device identification, control mark.
In addition, the physical address of equipment is used to identify equipment in a network, it can be the hardware of network interface card in the equipment The physical address of location, such as equipment can be the MAC Address of the equipment.The device identification of equipment is used for the unique mark equipment, The device identification of such as equipment can be for the title of the equipment, model, dispatch from the factory sequence number.The control of equipment is identified for indicating this Equipment is remote control equipment or controlled device, and when the equipment is remote control equipment, the control mark of the equipment can be default The first mark, when the equipment be controlled device, the control of equipment mark can be that default second identify.
Further, the short-range communication signal of miscellaneous equipment broadcast of the remote control equipment in scanning in addition to the remote control equipment While, short-range communication signal can also be broadcasted, can carry the remote control in the short-range communication signal of remote control equipment broadcast sets Standby physical address and device identification etc., or physical address and first mark of the remote control equipment etc. can be carried.
Step 303:When the remote control equipment scanning at least one controlled device broadcast short-range communication signal when, from this to One target controlled device of selection is as pairing controlled device at least one target controlled device in a few controlled device.
It should be noted that can in the short-range communication signal that each controlled device at least one controlled device is broadcasted To carry the physical address of the controlled device and device identification, or the physical address and the second mark of the controlled device can be carried Know.
In addition, at least one target controlled device is the controlled device for receiving the directional signal, due to the sensing The signal receiving angle scope of property signal is smaller, therefore, receives at least one target controlled device of the directional signal Position is closer to.Pairing controlled device is the controlled device that the follow-up remote control equipment can be matched with it.
Wherein, when short-range communication signal of the remote control equipment scanning to miscellaneous equipment broadcast, if the short distance scanned Device identification or the second mark of controlled device are carried in signal of communication, then scanning can be determined to the short distance of controlled device broadcast Signal of communication.
Wherein, the directional signal can serve to indicate that the controlled device for receiving the directional signal creates client's termination Mouthful, it that is to say, after the remote control equipment sends the directional signal, if some controlled device receives directive property letter Number, then it can create client-side interface.In the case, the operation of step 303 can be:When remote control equipment scanning is at least During the short-range communication signal that one controlled device is broadcasted, service end interface is created;Based on the service end interface, obtain this at least one The RSSI value between at least one target controlled device and the remote control equipment in individual controlled device;From at least one target quilt Control the maximum target controlled device of the RSSI value in equipment between selection and the remote control equipment and be used as pairing controlled device.
What deserves to be explained is because the position at least one target controlled device for receiving the directional signal more connects Closely, thus now the RSSI value between the remote control equipment and at least one target controlled device by identical environmental disturbances, Thus the RSSI value between the remote control equipment and at least one target controlled device can relatively accurately reflect that the remote control is set It is standby the distance between with least one target controlled device.In the case, in the embodiment of the present invention by the remote control equipment with The target controlled device of RSSI value maximum between at least one target controlled device is used as pairing controlled device, and follow-up Matched with the pairing controlled device, be by least one target controlled device the distance between with the remote control equipment Nearest target controlled device is subsequently being matched with the remote control equipment, so that the remote control equipment can be accurately paired to The desired controlled device of user, device pairing accuracy rate are higher.
It should be noted that client-side interface can be the interface that client uses, client can pass through the client Interface sends message to service end;Service end interface can be the interface that service end uses, and service end can pass through the service end The message that interface client is sent, and responded by the service end interface to client.Client and service end are equal Specified communication protocol can be based on and realize that the specified communication protocol can be configured in advance, as specified communication protocol can be OBEX agreements, now client can be OBEX client, and client-side interface can be OBEX client socket, service End can be OBEX server, and service end interface can be OBEX server socket.
Asked for example, client can be sent by client-side interface to service end, service end is connect by servicing end interface After receiving the request, acceptance message can be returned to client by servicing end interface, agree the request.It is for another example objective Family end can send information by client-side interface to service end, can after service end is by service end interface to the information To return to confirmation message to client by servicing end interface, expression has been received by the information.
Wherein, the remote control equipment is based on the service end interface, obtains at least one mesh at least one controlled device When marking the RSSI value between controlled device and the remote control equipment, it can be set for each be controlled at least one controlled device It is standby, the physical address of the controlled device is obtained from the short-range communication signal of controlled device broadcast;Based on the controlled device Physical address, it is attached by the service end interface with the controlled device;, will when success is attached with the controlled device The controlled device is controlled as target controlled device by the target of service end interface target controlled device transmission RSSI value between equipment and the remote control equipment.
Further, when the remote control equipment is attached with the controlled device not successfully, it may be determined that the controlled device It is not target controlled device.
Controlled device due to only receiving the directional signal could create client-side interface, and only work as the remote control Equipment with service end interface and the controlled device with client-side interface when, the remote control equipment could succeed and the controlled device It is attached, and the controlled device could send message by the client-side interface to the remote control equipment.Therefore, when the remote control is set When standby success is attached with some controlled device, show that there is client-side interface on the controlled device, that is, show that this is controlled and set It is standby to have received the directional signal, so now can be using the controlled device as target controlled device.
It should be noted that when remote control equipment success is attached with the controlled device, the controlled device is mesh Controlled device is marked, now the RSSI between the target controlled device and the remote control equipment can be passed through this by the target controlled device The client-side interface of target controlled device is sent to the remote control equipment, so that the remote control equipment can pass through the clothes of the remote control equipment Business end interface receives the RSSI value.
Further, since the follow-up remote control equipment needs the physical address based on target controlled device to be controlled with the target Equipment is matched, therefore, in order to avoid the short distance that the follow-up remote control equipment fails from target controlled device broadcast is led to The physical address of the target controlled device is obtained in letter signal, and leads to not the feelings matched with the target controlled device Condition, the target controlled device is in the client-side interface by the target controlled device by the target controlled device and the remote control equipment Between RSSI value while be sent to the remote control equipment, can also be by the client-side interface by the thing of the target controlled device Reason address is sent to the remote control equipment.
Furthermore it is actually to be defined as receiving this by the controlled device that establishment has client-side interface in the embodiment of the present invention The target controlled device of directional signal, thus in order to avoid true to the mistake of target controlled device during match next time Fixed, each target at least one target controlled device for receiving the directional signal during this pairing is controlled Equipment, the target controlled device set the target controlled device with the remote control in the client-side interface by the target controlled device RSSI value between standby is sent to after the remote control equipment, can also delete the client-side interface of the target controlled device, so as to The controlled device with client-side interface is all to receive this during this pairing to refer to during pairing every time can be ensured The target controlled device of tropism signal.
Wherein, physical address of the remote control equipment based on the controlled device, the service end interface and the controlled device are passed through When being attached, the service end interface of the remote control equipment based on the physical address of the controlled device, can be established and controlled set with this Connection between standby client-side interface.Specifically, the service end of remote control equipment can be terminated by the service of the remote control equipment The client that mouth receives the controlled device passes through the connection request that the client-side interface of the controlled device is sent, and passes through the remote control The service end interface of equipment returns to acceptance message to the client of the controlled device;When the client of the controlled device passes through the quilt When the client-side interface of control equipment receives the acceptance message, the service end interface of the remote control equipment is successfully established to be controlled with this and set Connection between standby client-side interface.
Step 304:The pairing is obtained in the short-range communication signal that the remote control equipment is broadcasted from the pairing controlled device to be controlled The physical address of equipment, and the physical address based on the pairing controlled device is matched with the pairing controlled device.
What deserves to be explained is controlled device of the remote control equipment with receiving the directional signal in the embodiment of the present invention Matched, now user is if it is intended to be remotely controlled some controlled device, then the remote control equipment directly can be directed at into this controlled sets It is standby to send the directional signal to the controlled device, so that the remote control equipment can be with receiving the quilt of the directional signal Control equipment is matched.Because the signal receiving angle scope of the directional signal is smaller, so except the remote control equipment is aligned Controlled device outside the signal interference that is subject to of miscellaneous equipment it is smaller so that the remote control equipment can relatively accurately match somebody with somebody To higher to the desired controlled device of user, device pairing accuracy rate.
In embodiments of the present invention, after remote control equipment sends directional signal, if at least one controlled device is arrived in scanning The short-range communication signal of broadcast, then a mesh is selected from least one target controlled device at least one controlled device Controlled device is marked as pairing controlled device, and is matched with the pairing controlled device.Because at least one target is controlled Equipment is to receive the controlled device of the directional signal, and the signal receiving angle scope of the directional signal is smaller, so Miscellaneous equipment in addition to the controlled device in the signal direction of the launch of the directional signal is done by the directional signal Disturb smaller, thus now the remote control equipment is only matched with receiving the controlled device of the directional signal, can cause this Remote control equipment can relatively accurately be paired to the desired controlled device of user, and device pairing accuracy rate is higher.
In order to make it easy to understand, next the device pairing method that above-described embodiment provides illustrate with reference to Fig. 3 B It is bright.Assuming that remote control equipment is blue Tooth remote controller R, controlled device is TV TV, and short-range communication signal is Bluetooth signal, and directive property is believed Number it is infrared signal, it is assumed that at least one destination television receives the infrared signal.As shown in Figure 3 B, it is assumed that between each TV It is closer to the distance, if user wants to be remotely controlled TV TV1, blue Tooth remote controller R can be directed at TV TV1 hair by user Infrared signal is penetrated, because the distance between each TV is relatively near, so other TV TV will be interfered with after the infrared signal, this When TV TV1-TVn can all receive the infrared signal.In the case, device pairing process may include steps of A- steps Rapid E.
Step A:Blue Tooth remote controller R sends infrared signal.
Step B:After TV TV1-TVn receives the infrared signal of blue Tooth remote controller R transmissions, client-side interface is created.
Step C:The Bluetooth signal of other bluetooth equipments broadcast of the blue Tooth remote controller R scannings in addition to itself.
Step D:Blue Tooth remote controller R scannings create service end interface, base to the Bluetooth signal of at least one TV TV broadcast In the service end interface, obtain at least one destination television TV1-TVn and blue Tooth remote controller R at least one TV TV it Between RSSI value, the maximum mesh of RSSI value from least one destination television TV1-TVn between selection and blue Tooth remote controller R TV TV1 is marked as pairing TV TV1.
Step E:Blue Tooth remote controller R obtains pairing TV TV1 physically from the Bluetooth signal of pairing TV TV1 broadcast Location, and based on pairing TV TV1 physical address, matched with pairing TV TV1.
After the specific implementation process that device pairing method is described by above-described embodiment, below to the embodiment of the present invention The device pairing device being related to is introduced.
Fig. 4 is a kind of structural representation of device pairing device provided in an embodiment of the present invention, is controlled and sets applied to first It is standby.Referring to Fig. 4, the device includes:Scan module 401, acquisition module 402, matching module 403.
Scan module 401, for scanning the short-range communication signal of the miscellaneous equipment broadcast in addition to first controlled device;
Acquisition module 402, for when short-range communication signal of the scanning to remote control equipment broadcast, being broadcasted from the remote control equipment Short-range communication signal in obtain the physical address of the remote control equipment;
Matching module 403, for when receive the remote control equipment transmission directional signal when, based on the remote control equipment Physical address is matched with the remote control equipment, and the signal receiving angle scope of the directional signal is located at predetermined angle scope It is interior.
Alternatively, including:
Submodule is created, for when receiving the directional signal of remote control equipment transmission, creating client-side interface With servicing end interface;
Acquisition submodule, for based on the client-side interface and the service end interface, obtaining the first RSSI value and second RSSI value, RSSI value of first RSSI value between first controlled device and the remote control equipment, the second RSSI value are the second quilt The RSSI value between equipment and the remote control equipment is controlled, second controlled device is to receive this in addition to first controlled device The controlled device of directional signal;
Submodule is matched, for ought successfully get the first RSSI value and the second RSSI value, and first RSSI value and the When maximum RSSI value is the first RSSI value in two RSSI values, the physical address based on the remote control equipment is carried out with the remote control equipment Pairing.
Alternatively, acquisition submodule is used for:
When short-range communication signal of the scanning to the broadcast of the 3rd controlled device, lead to from the short distance of the 3rd controlled device broadcast The physical address of the 3rd controlled device is obtained in letter signal, the 3rd controlled device is the quilt in addition to first controlled device Control equipment;
Based on the physical address of the 3rd controlled device, pass through the client-side interface and the service end interface and the 3rd quilt Control equipment is attached;
When success is attached with the 3rd controlled device, using the 3rd controlled device as second controlled device, The first RSSI value is obtained, and the first RSSI value is sent to second controlled device by the client-side interface, passes through the service end The second RSSI value that interface second controlled device is sent.
In embodiments of the present invention, when the short-range communication signal of the first controlled device scanning to remote control equipment broadcast, and connect When receiving the directional signal of remote control equipment transmission, it can be matched with the remote control equipment.Due to the directional signal Signal receiving angle scope is smaller, so other in addition to the controlled device in the signal direction of the launch of the directional signal Equipment is smaller thus now only that the controlled device for receiving the directional signal is distant with this by the interference of the directional signal Control equipment is matched, and the remote control equipment can be enabled relatively accurately to be paired to the desired controlled device of user, equipment It is higher to match accuracy rate.
Fig. 5 is a kind of structural representation of device pairing device provided in an embodiment of the present invention, applied to remote control equipment.Ginseng See Fig. 5, the device includes:Sending module 501, scan module 502, selecting module 503, matching module 504.
Sending module 501, for when receiving the transmission instruction for sending directional signal, sending directive property letter Number, the signal receiving angle scope of the directional signal is located in the range of predetermined angle;
Scan module 502, for scanning the short-range communication signal of the miscellaneous equipment broadcast in addition to the remote control equipment;
Selecting module 503, for when scanning at least one controlled device broadcast short-range communication signal when, from this at least A target controlled device is selected at least one target controlled device in one controlled device as pairing controlled device, should At least one target controlled device is the controlled device for receiving the directional signal;
Matching module 504, for being obtained in the short-range communication signal broadcasted from the pairing controlled device, the pairing is controlled to be set Standby physical address, and the physical address based on the pairing controlled device is matched with the pairing controlled device.
Alternatively, the controlled device that the directional signal is used to indicate to receive the directional signal creates client's termination Mouthful;Selecting module 503 includes:
Submodule is created, for when short-range communication signal of the scanning to the broadcast of at least one controlled device, creating service End interface;
Acquisition submodule, for based on the service end interface, obtaining at least one mesh at least one controlled device Mark the RSSI value between controlled device and the remote control equipment;
Submodule is selected, for the RSSI value from least one target controlled device between selection and the remote control equipment Maximum target controlled device is as pairing controlled device.
Alternatively, acquisition submodule is used for:
For each controlled device at least one controlled device, from the short-range communication signal of controlled device broadcast The middle physical address for obtaining the controlled device;
Physical address based on the controlled device, it is attached by the service end interface with the controlled device;
When success is attached with the controlled device, using the controlled device as target controlled device, pass through the service End interface receives the RSSI value between the target controlled device and the remote control equipment of target controlled device transmission.
In embodiments of the present invention, after remote control equipment sends directional signal, if at least one controlled device is arrived in scanning The short-range communication signal of broadcast, then a mesh is selected from least one target controlled device at least one controlled device Controlled device is marked as pairing controlled device, and is matched with the pairing controlled device.Because at least one target is controlled Equipment is to receive the controlled device of the directional signal, and the signal receiving angle scope of the directional signal is smaller, so Miscellaneous equipment in addition to the controlled device in the signal direction of the launch of the directional signal is done by the directional signal Disturb smaller, thus now the remote control equipment is only matched with receiving the controlled device of the directional signal, can cause this Remote control equipment can relatively accurately be paired to the desired controlled device of user, and device pairing accuracy rate is higher.
It should be noted that:The device pairing device that above-described embodiment provides is in pairing, only with above-mentioned each functional module Division progress for example, in practical application, can be complete by different functional modules by above-mentioned function distribution as needed Into the internal structure of device being divided into different functional modules, to complete all or part of function described above.Separately Outside, the device pairing device that above-described embodiment provides belongs to same design with device pairing embodiment of the method, and it was implemented Journey refers to embodiment of the method, repeats no more here.
Fig. 6 is a kind of structural representation of device pairing device provided in an embodiment of the present invention, and the device can be first Controlled device, referring to Fig. 6, the device includes at least one processor 601, communication bus 602, memory 603 and at least one Individual communication interface 604.
Processor 601 can be a general central processor (Central Processing Unit, CPU), microprocessor Device, ASIC (application-specific integrated circuit, ASIC), or one or more The individual integrated circuit for being used to control program of the embodiment of the present invention to perform.
Communication bus 602 may include a path, and information is transmitted between said modules.
Memory 603 can be read-only storage (read-only memory, ROM) or can store static information and instruction Other types of static storage device, random access memory (random access memory, RAM) or letter can be stored Breath and other types of dynamic memory or the EEPROM (Electrically of instruction Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, laser disc storage (including compression laser disc, laser disc, laser disc, digital universal Laser disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store with referring to The desired program code of order or data structure form and any other medium that can be accessed by the device, but not limited to this. Memory 603 can be individually present, and be connected by communication bus 602 with processor 601.Memory 603 can also and be located Reason device 601 integrates.
Communication interface 604, using a kind of device of any transceiver, for miscellaneous equipment or communication, such as Ethernet, wireless access network (Radio Access Network, RAN), WLAN (Wireless Local Area Networks, WLAN) etc..
In the specific implementation, as a kind of embodiment, processor 601 can include one or more CPU, such as in Fig. 6 Shown CPU0 and CPU1.
In the specific implementation, as a kind of embodiment, the device can include multiple processors, such as shown in Fig. 6 Processor 601 and processor 605.Each in these processors can be a single core processor (single-CPU), It can be a polycaryon processor (multi-CPU).Here processor can refer to one or more equipment, circuit, and/or use In the process cores of processing data (such as computer program instructions).
Wherein, memory 603 is used to store the program code 610 for performing the embodiment of the present invention, and processor 601 is used to perform The program code 610 stored in memory 603.The device can pass through the program code in processor 601 and memory 603 610, to realize the operation of the first controlled device execution in above-mentioned Fig. 2A embodiments.
Fig. 7 is a kind of structural representation of device pairing device provided in an embodiment of the present invention, and the device can be remote control Equipment, referring to Fig. 7, the device includes at least one processor 701, communication bus 702, memory 703 and at least one logical Believe interface 704.
Processor 701 can be a general central processor (Central Processing Unit, CPU), microprocessor Device, ASIC (application-specific integrated circuit, ASIC), or one or more The individual integrated circuit for being used to control program of the embodiment of the present invention to perform.
Communication bus 702 may include a path, and information is transmitted between said modules.
Memory 703 can be read-only storage (read-only memory, ROM) or can store static information and instruction Other types of static storage device, random access memory (random access memory, RAM) or letter can be stored Breath and other types of dynamic memory or the EEPROM (Electrically of instruction Erasable Programmable Read-Only Memory, EEPROM), read-only optical disc (Compact Disc Read- Only Memory, CD-ROM) or other optical disc storages, laser disc storage (including compression laser disc, laser disc, laser disc, digital universal Laser disc, Blu-ray Disc etc.), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or store with referring to The desired program code of order or data structure form and any other medium that can be accessed by the device, but not limited to this. Memory 703 can be individually present, and be connected by communication bus 702 with processor 701.Memory 703 can also and be located Reason device 701 integrates.
Communication interface 704, using a kind of device of any transceiver, for miscellaneous equipment or communication, such as Ethernet, wireless access network (Radio Access Network, RAN), WLAN (Wireless Local Area Networks, WLAN) etc..
In the specific implementation, as a kind of embodiment, processor 701 can include one or more CPU, such as in Fig. 7 Shown CPU0 and CPU1.
In the specific implementation, as a kind of embodiment, the device can include multiple processors, such as shown in Fig. 7 Processor 701 and processor 705.Each in these processors can be a single core processor (single-CPU), It can be a polycaryon processor (multi-CPU).Here processor can refer to one or more equipment, circuit, and/or use In the process cores of processing data (such as computer program instructions).
Wherein, memory 703 is used to store the program code 710 for performing the embodiment of the present invention, and processor 701 is used to perform The program code 710 stored in memory 703.The device can pass through the program code in processor 701 and memory 703 710, to realize the operation of remote control equipment execution in above-mentioned Fig. 3 A embodiments.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its any combination real It is existing.When implemented in software, can realize in the form of a computer program product whole or in part.The computer program Product includes one or more computer instructions.It is all or part of when loading on computers and performing the computer instruction Ground is produced according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special-purpose computer, Computer network or other programmable devices.The computer instruction can store in a computer-readable storage medium, or Person is transmitted from a computer-readable recording medium to another computer-readable recording medium, for example, the computer instruction Can from a web-site, computer, server or data center by it is wired (such as:Coaxial cable, optical fiber, data are used Family line (Digital Subscriber Line, DSL)) or wireless (such as:Infrared, wireless, microwave etc.) mode is to another net Website, computer, server or data center are transmitted.The computer-readable recording medium can be that computer can Any usable medium of access is either comprising data storages such as the integrated server of one or more usable mediums, data centers Equipment.The usable medium can be magnetic medium (such as:Floppy disk, hard disk, tape), optical medium (such as:Digital versatile disc (Digital Versatile Disc, DVD)) or semiconductor medium (such as:Solid state hard disc (Solid State Disk, SSD)) etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (10)

  1. A kind of 1. device pairing method, it is characterised in that applied to the first controlled device, methods described includes:
    Scan the short-range communication signal of the miscellaneous equipment broadcast in addition to first controlled device;
    When short-range communication signal of the scanning to remote control equipment broadcast, obtained from the short-range communication signal of remote control equipment broadcast Take the physical address of the remote control equipment;
    When receiving the directional signal that the remote control equipment is sent, physical address based on the remote control equipment with it is described distant Control equipment is matched, and the signal receiving angle scope of the directional signal is located in the range of predetermined angle.
  2. 2. the method as described in claim 1, it is characterised in that described when the directive property letter for receiving the remote control equipment transmission Number when, the physical address based on the remote control equipment is matched with the remote control equipment, including:
    When receiving the directional signal that the remote control equipment is sent, client-side interface and service end interface are created;
    Based on the client-side interface and the service end interface, the first received signal strength indicator RSSI value and second is obtained RSSI value, RSSI value of first RSSI value between first controlled device and the remote control equipment, described second RSSI value of the RSSI value between the second controlled device and the remote control equipment, second controlled device are except first quilt Control the controlled device for receiving the directional signal outside equipment;
    When successfully getting first RSSI value and second RSSI value, and first RSSI value and the 2nd RSSI When maximum RSSI value is first RSSI value in value, the physical address based on the remote control equipment enters with the remote control equipment Row pairing.
  3. 3. method as claimed in claim 2, it is characterised in that described to be terminated based on the client-side interface with the service Mouthful, the first RSSI value and the second RSSI value are obtained, including:
    When short-range communication signal of the scanning to the broadcast of the 3rd controlled device, from the junction service of the 3rd controlled device broadcast The physical address of the 3rd controlled device is obtained in signal, the 3rd controlled device is in addition to first controlled device Controlled device;
    Based on the physical address of the 3rd controlled device, pass through the client-side interface and the service end interface and described the Three controlled devices are attached;
    When success is attached with the 3rd controlled device, the 3rd controlled device is controlled as described second and set It is standby, first RSSI value is obtained, and the first RSSI is sent to second controlled device by the client-side interface Value, second RSSI value sent by the second controlled device described in the service end interface.
  4. A kind of 4. device pairing method, it is characterised in that applied to remote control equipment, methods described includes:
    When receiving the transmission instruction for sending directional signal, the directional signal, the directional signal are sent Signal receiving angle scope be located in the range of predetermined angle;
    Scan the short-range communication signal of the miscellaneous equipment broadcast in addition to the remote control equipment;
    When scanning at least one controlled device broadcast short-range communication signal when, from least one controlled device to One target controlled device of selection is controlled as pairing controlled device, at least one target in a few target controlled device Equipment is to receive the controlled device of the directional signal;
    The physical address of the pairing controlled device, and base are obtained from the short-range communication signal of the pairing controlled device broadcast Matched in the physical address of the pairing controlled device with the pairing controlled device.
  5. 5. method as claimed in claim 4, it is characterised in that the directional signal receives the directive property for instruction The controlled device of signal creates client-side interface;The short-range communication signal broadcasted when scanning at least one controlled device When, one target controlled device of selection, which is used as, from least one target controlled device at least one controlled device matches somebody with somebody To controlled device, including:
    When short-range communication signal of the scanning to the broadcast of at least one controlled device, service end interface is created;
    Based on the service end interface, obtain at least one target controlled device at least one controlled device with it is described Received signal strength indicator RSSI value between remote control equipment;
    The target of RSSI value maximum from least one target controlled device between selection and the remote control equipment is controlled Equipment is as pairing controlled device.
  6. 6. method as claimed in claim 5, it is characterised in that it is described to be based on the service end interface, obtain described at least one The RSSI value between at least one target controlled device and the remote control equipment in individual controlled device, including:
    For each controlled device at least one controlled device, from the short-range communication signal of controlled device broadcast The middle physical address for obtaining the controlled device;
    Based on the physical address of the controlled device, it is attached by the service end interface with the controlled device;
    When success is attached with the controlled device, using the controlled device as target controlled device, pass through the clothes Business end interface receives the RSSI value between the target controlled device of the target controlled device transmission and the remote control equipment.
  7. 7. a kind of device pairing device, it is characterised in that applied to the first controlled device, described device includes:
    Scan module, for scanning the short-range communication signal of the miscellaneous equipment broadcast in addition to first controlled device;
    Acquisition module, for when short-range communication signal of the scanning to remote control equipment broadcast, being broadcasted from the remote control equipment short The physical address of the remote control equipment is obtained in journey signal of communication;
    Matching module, for when receiving the directional signal that the remote control equipment is sent, the thing based on the remote control equipment Reason address is matched with the remote control equipment, and the signal receiving angle scope of the directional signal is located at predetermined angle scope It is interior.
  8. 8. a kind of device pairing device, it is characterised in that applied to remote control equipment, described device includes:
    Sending module, for when receiving the transmission instruction for sending directional signal, sending the directional signal, institute The signal receiving angle scope for stating directional signal is located in the range of predetermined angle;
    Scan module, for scanning the short-range communication signal of the miscellaneous equipment broadcast in addition to the remote control equipment;
    Selecting module, for when scanning at least one target controlled device broadcast short-range communication signal when, from it is described at least A target controlled device is selected in one target controlled device, and as pairing controlled device, at least one target is controlled to be set Standby is the controlled device for receiving the directional signal;
    Matching module, for obtaining the pairing controlled device from the short-range communication signal of the pairing controlled device broadcast Physical address, and the physical address based on the pairing controlled device is matched with the pairing controlled device.
  9. 9. a kind of computer-readable recording medium, instruction is stored with the computer-readable recording medium, it is characterised in that institute State the step of realizing any one method described in claim 1-3 when instruction is executed by processor.
  10. 10. a kind of computer-readable recording medium, instruction is stored with the computer-readable recording medium, it is characterised in that The step of instruction realizes any one method described in claim 4-6 when being executed by processor.
CN201710979616.1A 2017-10-19 2017-10-19 Device pairing method, device pairing apparatus and computer-readable storage medium Active CN107801253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710979616.1A CN107801253B (en) 2017-10-19 2017-10-19 Device pairing method, device pairing apparatus and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710979616.1A CN107801253B (en) 2017-10-19 2017-10-19 Device pairing method, device pairing apparatus and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN107801253A true CN107801253A (en) 2018-03-13
CN107801253B CN107801253B (en) 2021-02-09

Family

ID=61533541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710979616.1A Active CN107801253B (en) 2017-10-19 2017-10-19 Device pairing method, device pairing apparatus and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN107801253B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697840A (en) * 2018-12-28 2019-04-30 东莞亿动智能科技有限公司 Automatic frequency aligning method and device
CN111683349A (en) * 2019-03-11 2020-09-18 丰田自动车株式会社 In-vehicle apparatus, information processing method, and computer-readable recording medium
CN112261572A (en) * 2020-10-14 2021-01-22 北京小米移动软件有限公司 Information interaction method and device and storage medium
CN112333510A (en) * 2020-11-13 2021-02-05 四川长虹电器股份有限公司 Method for optimizing pairing of Bluetooth remote controllers by using nfc

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202816137U (en) * 2012-06-07 2013-03-20 敦樸企业股份有限公司 Remote controller pairing system
WO2015143847A1 (en) * 2014-03-27 2015-10-01 张兆龙 Authentication and authorization method and apparatus for wireless network and program
CN105407453A (en) * 2015-11-23 2016-03-16 深圳还是威健康科技有限公司 Bluetooth pairing method and device
CN105589345A (en) * 2014-11-18 2016-05-18 小米科技有限责任公司 Apparatus control method and device
CN106204817A (en) * 2016-06-24 2016-12-07 福建求实智能股份有限公司 A kind of control method of control of bluetooth access
CN107067695A (en) * 2017-05-15 2017-08-18 深圳市冠旭电子股份有限公司 A kind of intelligent distant control method, system and intelligent remote controller

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202816137U (en) * 2012-06-07 2013-03-20 敦樸企业股份有限公司 Remote controller pairing system
WO2015143847A1 (en) * 2014-03-27 2015-10-01 张兆龙 Authentication and authorization method and apparatus for wireless network and program
CN105589345A (en) * 2014-11-18 2016-05-18 小米科技有限责任公司 Apparatus control method and device
CN105407453A (en) * 2015-11-23 2016-03-16 深圳还是威健康科技有限公司 Bluetooth pairing method and device
CN106204817A (en) * 2016-06-24 2016-12-07 福建求实智能股份有限公司 A kind of control method of control of bluetooth access
CN107067695A (en) * 2017-05-15 2017-08-18 深圳市冠旭电子股份有限公司 A kind of intelligent distant control method, system and intelligent remote controller

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697840A (en) * 2018-12-28 2019-04-30 东莞亿动智能科技有限公司 Automatic frequency aligning method and device
CN111683349A (en) * 2019-03-11 2020-09-18 丰田自动车株式会社 In-vehicle apparatus, information processing method, and computer-readable recording medium
CN111683349B (en) * 2019-03-11 2024-05-14 丰田自动车株式会社 Vehicle-mounted device, information processing method, and computer-readable recording medium
CN112261572A (en) * 2020-10-14 2021-01-22 北京小米移动软件有限公司 Information interaction method and device and storage medium
CN112333510A (en) * 2020-11-13 2021-02-05 四川长虹电器股份有限公司 Method for optimizing pairing of Bluetooth remote controllers by using nfc

Also Published As

Publication number Publication date
CN107801253B (en) 2021-02-09

Similar Documents

Publication Publication Date Title
US11395213B2 (en) Systems and methods for implementing multiple band service discovery
USRE48986E1 (en) Method and terminal for establishing a communication connection
US20190335404A1 (en) Exchanging ranging and location information among peer-to-peer devices
US10111025B2 (en) Service providing terminal connection method and apparatus
US10116505B2 (en) Device control method for registering device information of peripheral device, and device and system thereof
CN107801253A (en) Device pairing method, apparatus and computer-readable recording medium
EP2757738B1 (en) Communication control system, communication system, communication method, and carrier means storing comunication control program
US20120158839A1 (en) Wireless network interface with infrastructure and direct modes
US10887745B2 (en) Method and device for sharing file between different terminals
US20130223361A1 (en) Terminal and method for establishing wireless access channel
JP2015119425A (en) Wireless communication device, program, and wireless communication method
CN111212312B (en) Method, device and remote control system for realizing equipment control based on remote controller
JP2017099021A (en) Wireless communication device and wireless communication method
CN107690820A (en) Communicator, communication means and communication system
CN114071652B (en) Binding relation establishing method and related equipment
CN108076469B (en) Method and router for wireless access point bridging
US11233540B2 (en) Apparatus and methods for G3-PLC bootstrap in a hybrid network
CN104010350A (en) Communication apparatus, control method therefor
CN116684216B (en) Communication method, readable medium and electronic equipment
KR20130057638A (en) System and method for managing communication network
CN111050342B (en) Wireless mesh route antenna adjusting method, server and storage medium
US10649502B2 (en) Electronic apparatus and control method thereof
CN111050342A (en) Wireless mesh routing antenna adjusting method, server and storage medium
CN118215118A (en) Equipment registration method
CN115767486A (en) Bluetooth communication method, first device, second device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Video Technology Co., Ltd

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: HISENSE ELECTRIC Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant