CN115103342A - Bluetooth binding control method, electric equipment and Bluetooth digital remote controller - Google Patents
Bluetooth binding control method, electric equipment and Bluetooth digital remote controller Download PDFInfo
- Publication number
- CN115103342A CN115103342A CN202210513233.6A CN202210513233A CN115103342A CN 115103342 A CN115103342 A CN 115103342A CN 202210513233 A CN202210513233 A CN 202210513233A CN 115103342 A CN115103342 A CN 115103342A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- equipment
- remote controller
- binding
- digital remote
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000012795 verification Methods 0.000 claims abstract description 82
- 230000002457 bidirectional effect Effects 0.000 claims abstract description 19
- 238000013475 authorization Methods 0.000 claims description 43
- 238000004590 computer program Methods 0.000 claims description 16
- 238000000926 separation method Methods 0.000 claims description 14
- 230000002452 interceptive effect Effects 0.000 claims description 10
- 230000005540 biological transmission Effects 0.000 claims description 9
- 230000001960 triggered effect Effects 0.000 abstract description 8
- 230000008569 process Effects 0.000 description 11
- 230000006870 function Effects 0.000 description 8
- 238000005336 cracking Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- GOLXNESZZPUPJE-UHFFFAOYSA-N spiromesifen Chemical compound CC1=CC(C)=CC(C)=C1C(C(O1)=O)=C(OC(=O)CC(C)(C)C)C11CCCC1 GOLXNESZZPUPJE-UHFFFAOYSA-N 0.000 description 3
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000035515 penetration Effects 0.000 description 1
- 208000003580 polydactyly Diseases 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/50—Secure pairing of devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C2201/00—Transmission systems of control signals via wireless link
- G08C2201/60—Security, fault tolerance
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C2201/00—Transmission systems of control signals via wireless link
- G08C2201/70—Device selection
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Selective Calling Equipment (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a Bluetooth binding control method, electric equipment and a Bluetooth digital remote controller, which relate to the technical field of Bluetooth, and comprise the following steps: when the Bluetooth equipment is powered on, the Bluetooth equipment is controlled to send out a broadcast data packet so as to determine the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller, and the Bluetooth digital remote controller is triggered to carry out bidirectional verification on the spacing distance; when receiving a device adding request sent by a Bluetooth digital remote controller with the spacing distance less than or equal to a preset safety distance, sending a safety code prompt to a user to prompt the user to input a device safety code into the Bluetooth digital remote controller; if the equipment security code sent by the Bluetooth digital remote controller is received within a preset time after the security code prompt is sent, verifying the equipment security code based on the security code prompt; and when the equipment security code is verified to be qualified, determining that the Bluetooth equipment and the Bluetooth digital remote controller finish Bluetooth binding. The invention can avoid the electric equipment from being wrongly bound and controlled, and improves the user experience.
Description
Technical Field
The invention relates to the technical field of Bluetooth, in particular to a Bluetooth binding control method, electric equipment and a Bluetooth digital remote controller.
Background
Along with the rapid development of intelligent home equipment, the control of intelligent home equipment is more humanized, and some electrical equipment begin to use bluetooth digital remote controller (such as realizing with cell-phone application applet) to replace traditional infrared entity remote controller, compare in traditional infrared remote controller short distance, point-to-point control mode, bluetooth digital remote controller has the penetrability stronger, and the control is more nimble convenient that control distance is farther. However, some potential safety hazards exist in the use process of the bluetooth digital remote controller (such as a mobile phone applet), and the signal penetration capability of the bluetooth equipment in the electrical equipment is strong, so that the bluetooth digital remote controller can be found by the bluetooth digital remote controller used by other people (such as a neighbor), the situation that the electrical equipment is mistakenly bound and controlled and the like is easily caused, and the use experience of a user is reduced.
Disclosure of Invention
In order to solve the problems, the invention provides a Bluetooth binding control method, an electric device and a Bluetooth digital remote controller, which can reduce the probability of mistakenly binding and controlling the electric device, improve the Bluetooth binding safety of the electric device, ensure the safety and legality of a user binding the Bluetooth device, avoid the electric device from being mistakenly bound and controlled, and improve the use experience of the user.
According to an embodiment of the present invention, on one hand, a bluetooth binding control method is provided, which is applied to an electrical device, wherein the electrical device is provided with a bluetooth device, and the method includes: when the Bluetooth equipment is powered on, controlling the Bluetooth equipment to send out a broadcast data packet so as to determine the spacing distance between the Bluetooth equipment and a Bluetooth digital remote controller and trigger the Bluetooth digital remote controller to carry out bidirectional verification on the spacing distance; when receiving a device adding request sent by the Bluetooth digital remote controller with the spacing distance less than or equal to the preset safety distance, sending a safety code prompt to a user to prompt the user to input a device safety code into the Bluetooth digital remote controller; if the equipment security code sent by the Bluetooth digital remote controller is received within a preset time length after the security code prompt is sent, verifying the equipment security code based on the security code prompt; and when the equipment security code is verified to be qualified, determining that the Bluetooth equipment and the Bluetooth digital remote controller finish Bluetooth binding.
Through adopting above-mentioned technical scheme, carry out two-way verification to the spacing distance between bluetooth equipment and the bluetooth digital remote controller, can make bluetooth equipment only can bind with the bluetooth digital remote controller in the safe distance, the probability that electrical equipment was bound and the error control by the mistake has been reduced, the equipment safety code of safety code suggestion and user input in the bluetooth remote controller that sends through verifying electrical equipment, the security that electrical equipment bluetooth was bound has been promoted, the user safety of guaranteeing to bind bluetooth equipment is legal, electrical equipment has been avoided being bound by the mistake and has been controlled, user's use experience has been promoted.
Preferably, when the bluetooth device is powered on, the step of controlling the bluetooth device to send a broadcast data packet to determine a separation distance between the bluetooth device and the bluetooth digital remote controller and triggering the bluetooth digital remote controller to perform bidirectional verification on the separation distance includes: when the Bluetooth equipment is powered on, removing the historical binding relationship and controlling the Bluetooth equipment to enter a to-be-bound state; when the Bluetooth equipment enters a to-be-bound state, controlling the Bluetooth equipment to send out a broadcast data packet so that the Bluetooth digital remote controller feeds back a received data packet based on the broadcast data packet; the broadcast data packet comprises equipment information and transmitting power, and the received data packet comprises receiving power; determining a separation distance between the Bluetooth device and a Bluetooth digital remote controller based on the transmission power in the broadcast data packet and the reception power in the reception data packet; and when receiving a distance verification data packet sent by the Bluetooth digital remote controller, feeding back a corresponding verification feedback data packet to the Bluetooth digital remote controller so that the Bluetooth digital remote controller calculates the spacing distance between the Bluetooth digital remote controller and the Bluetooth equipment.
By adopting the technical scheme, the original historical binding relation is removed after the Bluetooth equipment is powered on again, so that the reset operation of the Bluetooth equipment is realized, and the operation convenience of the Bluetooth equipment is improved; the distance between the Bluetooth equipment and the Bluetooth digital remote controller is verified in a two-way mode by adopting a transmitting power and a receiving power mode, so that the accuracy of detecting the distance between the Bluetooth equipment and the Bluetooth digital remote controller is improved.
Preferably, the bluetooth binding control method further comprises: after the Bluetooth device and the Bluetooth digital remote controller finish Bluetooth binding, receiving and storing a binding ID sent by the Bluetooth digital remote controller, or randomly generating the binding ID and sending the binding ID to the Bluetooth digital remote controller; performing interactive verification on the binding ID sent by the Bluetooth digital remote controller based on the stored binding ID, and adding the Bluetooth digital remote controller into a blacklist when the verification is unqualified for continuous preset times; and when the binding ID is verified to be qualified, setting the Bluetooth digital remote controller as a control end, and controlling the electrical equipment based on the control instruction when receiving the control instruction sent by the control end.
By adopting the technical scheme, the binding ID sent by the Bluetooth digital remote controller is verified, and the control instruction is received after the binding ID is verified to be qualified, so that other users can be prevented from carrying out error control on the electric equipment, and the reliability of electric equipment control is improved.
Preferably, the method further comprises the following steps: and receiving and storing the updated binding ID sent by the Bluetooth digital remote controller, or updating the binding ID and sending the updated binding ID to the Bluetooth digital remote controller.
By adopting the technical scheme, the binding ID of the Bluetooth equipment and the Bluetooth digital remote controller is refreshed periodically, the monitoring of an air interface package and the brute force cracking of communication data can be prevented, the safety performance of data interaction between the Bluetooth equipment and the Bluetooth digital remote controller is enhanced, meanwhile, other users can not bind the Bluetooth equipment under the condition that the binding ID is not available, and the hiding of the bound Bluetooth equipment is realized.
According to an embodiment of the present invention, another aspect provides a bluetooth binding control method, which is applied to a bluetooth digital remote controller, and the method includes: when a broadcast data packet sent by a Bluetooth device is received, feeding back the received data packet to the Bluetooth device so that the Bluetooth device calculates the spacing distance between the Bluetooth device and the Bluetooth digital remote controller and performs bidirectional verification on the spacing distance; adding the Bluetooth equipment with the spacing distance less than or equal to the preset safety distance into a list of equipment to be bound and displaying the equipment, and when receiving an equipment adding request input by a user, sending the equipment adding request to the Bluetooth equipment selected by the user from the list of the equipment to be bound so that the Bluetooth equipment sends a safety code prompt; when receiving an equipment safety code input by a user, sending the equipment safety code to the Bluetooth equipment so that the Bluetooth equipment verifies the equipment safety code, and when the equipment safety code is verified to be qualified, determining that the Bluetooth equipment and the Bluetooth digital remote controller finish Bluetooth binding.
Through adopting above-mentioned technical scheme, carry out dual verification to the spacing distance between bluetooth equipment and the bluetooth digital remote controller and equipment safety code, promoted the security that the bluetooth was bound, ensured that the bluetooth equipment in the safe physical distance is controllable, avoided electrical equipment to be bound by the mistake and controlled, promoted user's use and experienced.
Preferably, when receiving a broadcast packet sent by a bluetooth device, the step of feeding back the received packet to the bluetooth device so that the bluetooth device calculates a separation distance between the bluetooth device and the bluetooth digital remote controller, and performs bidirectional verification on the separation distance includes: when a broadcast data packet sent by a Bluetooth device is received, feeding back the received data packet to the Bluetooth device so that the Bluetooth device calculates the spacing distance between the Bluetooth device and the Bluetooth digital remote controller and sends a distance verification data packet to the Bluetooth device; wherein the distance verification data packet comprises transmission power; and when a verification feedback data packet fed back by the Bluetooth equipment is received, calculating the spacing distance between the Bluetooth digital remote controller and the Bluetooth equipment based on the transmitting power in the distance verification data packet and the receiving power in the verification feedback data packet.
By adopting the technical scheme, the Bluetooth equipment and the Bluetooth digital remote controller adopt the modes of transmitting power and receiving power to carry out bidirectional verification on the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller, and the accuracy of the detection of the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller is improved.
Preferably, the bluetooth binding control method further includes: after the Bluetooth equipment and the Bluetooth digital remote controller finish Bluetooth binding, adding the Bluetooth equipment into a white list and setting the Bluetooth equipment into a controllable state; randomly generating a binding ID and sending the binding ID to the Bluetooth equipment, or receiving and storing the binding ID sent by the Bluetooth equipment; when the Bluetooth digital remote controller is started every time or a refreshing time length is preset every interval, the binding ID is sent to the Bluetooth equipment for interactive verification; and if the binding ID is verified to be qualified, setting the Bluetooth equipment as equipment to be controlled and adding the equipment to be controlled into a white list, and sending a control instruction to the equipment to be controlled when the control instruction input by a user is received.
By adopting the technical scheme, the Bluetooth equipment qualified in binding ID verification is added into the white list so as to control the Bluetooth equipment bound in the white list, and the bound Bluetooth equipment needs to be verified by using the binding ID, so that the Bluetooth equipment can not be discovered and bound by other users, the hidden function of the bound Bluetooth equipment is realized, and the mistaken binding control of other users is avoided.
Preferably, the bluetooth binding control method further includes: updating the binding ID and sending the updated binding ID to the Bluetooth device, or receiving and storing the updated binding ID sent by the Bluetooth device; when a deleting instruction input by an administrator user is received, deleting the equipment to be controlled from the white list; and when an equipment authorization instruction input by the administrator user is received, sending the binding ID corresponding to the equipment to be controlled to an authorized user so that the authorized user controls the equipment to be controlled based on the binding ID.
By adopting the technical scheme, the binding ID of the Bluetooth equipment and the Bluetooth digital remote controller is refreshed regularly, so that monitoring of an air interface packet and brute force cracking of communication data can be prevented; the active deletion and equipment authorization control operation is set by an administrator user of the Bluetooth digital remote controller, so that the Bluetooth equipment control authority can be shared, the temporary account is conveniently added to control the electric equipment, the multi-user control under authorization is realized, and the convenience of electric equipment control is improved.
Preferably, the device authorization instruction includes a preset authorization duration, and the bluetooth binding control method further includes: and when an authorization removing instruction input by the administrator user is received, or when the authorization time of the authorized user reaches the preset authorization time, triggering the administrator user and the Bluetooth device to update the binding ID so as to forbid the authorized user from controlling the device to be controlled.
By adopting the technical scheme, when the user inputs the authorization removing instruction or the authorization time reaches the preset authorization time, the binding ID is updated to forbid the authorized user from controlling the Bluetooth equipment, so that the authorization time of the user can be controlled, and the electric equipment can be controlled by a plurality of users in a time-sharing manner.
According to an embodiment of the present invention, in another aspect, an electrical device is provided, which includes a bluetooth device, and a computer-readable storage medium and a processor storing a computer program, where the computer program is read by the processor and executed by the processor, and implements the method according to any one of the first aspect.
According to an embodiment of the present invention, in another aspect, there is provided a bluetooth digital remote controller, including a computer-readable storage medium storing a computer program and a processor, wherein the computer program is read by the processor and when executed, implements the method according to any one of the second aspects.
According to an embodiment of the present invention, in another aspect, there is provided a computer-readable storage medium storing a computer program, which when read and executed by a processor, implements the method according to any one of the first aspect, or implements the method according to any one of the second aspect.
The invention has the following beneficial effects: carry out two-way verification through the spacing distance to between bluetooth equipment and the bluetooth digital remote controller, can make bluetooth equipment only can bind with the bluetooth digital remote controller in the safe distance, the probability that electrical equipment was bound by the mistake and error control has been reduced, the equipment safety code of safety code suggestion and user input in the bluetooth remote controller that sends through verifying electrical equipment, the security that electrical equipment bluetooth was bound has been promoted, the user safety of guaranteeing to bind bluetooth equipment is legal, electrical equipment has been avoided being bound by the mistake and has been controlled, user's use experience has been promoted.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It should be apparent that the drawings in the following description are merely exemplary and that other implementation drawings may be derived from the provided drawings by those of ordinary skill in the art without inventive effort.
The structures, ratios, sizes, and the like shown in the present specification are only used for matching with the contents disclosed in the specification, so as to be understood and read by those skilled in the art, and are not used for limiting the conditions of the present invention, so that the present invention has no technical significance, and any structural modifications, changes in the ratio relationship, or adjustments of the sizes, without affecting the functions and purposes of the present invention, shall fall within the scope of the present invention.
Fig. 1 is a flowchart of a bluetooth binding control method according to the present invention;
fig. 2 is a flowchart of a bluetooth binding control method according to the present invention;
fig. 3 is a flowchart illustrating bluetooth binding control of a bluetooth digital remote controller according to the present invention.
Detailed Description
The present invention is described in terms of particular embodiments, other advantages and benefits of the present invention will become apparent to those skilled in the art from the description herein, and it is understood that the described embodiments are intended to be illustrative of some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
The present embodiment provides a bluetooth binding control method, which can be applied to a controller of an electrical device, referring to a flowchart of the bluetooth binding control method shown in fig. 1, the method mainly includes the following steps S102 to S106:
step S102: when the Bluetooth equipment is powered on, the Bluetooth equipment is controlled to send out a broadcast data packet so as to determine the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller, and the Bluetooth digital remote controller is triggered to carry out bidirectional verification on the spacing distance.
After the electrical equipment is started, the Bluetooth equipment in the electrical equipment is powered on, the Bluetooth equipment is in a state to be bound, and the Bluetooth equipment is controlled to continuously send a broadcast data packet to an external broadcast message, wherein the broadcast data packet can comprise equipment information (such as an equipment model or an electrical equipment model) of the Bluetooth equipment and a transmitting signal which can enable the Bluetooth digital remote controller to generate signal feedback, and the Bluetooth equipment can calculate the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller according to the transmitting signal in the broadcast data packet and the signal feedback generated by the Bluetooth digital remote controller, or the Bluetooth equipment calculates the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller according to the time for sending the transmitting signal in the broadcast data packet and the time for receiving the feedback signal.
The Bluetooth digital remote controller can generate signal feedback according to a transmitting signal after receiving a broadcast data packet sent by the Bluetooth equipment, automatically triggers distance verification and sends a data packet for verifying the spacing distance to the Bluetooth equipment, thereby realizing the bidirectional verification of the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller.
Step S104: and when receiving a device adding request sent by the Bluetooth digital remote controller with the spacing distance less than or equal to the preset safety distance, sending a safety code prompt to a user so as to prompt the user to input a device safety code into the Bluetooth digital remote controller.
When the Bluetooth equipment receives an equipment adding request sent by the Bluetooth digital remote controller, the Bluetooth equipment indicates that a user initiates Bluetooth binding operation on the Bluetooth digital remote controller, whether the spacing distance between the Bluetooth digital remote controller sending the equipment adding request and the Bluetooth equipment is smaller than or equal to a preset safety distance is judged, if yes, a safety code prompt is sent, the safety code prompt can be a voice broadcast safety code or a safety code display control display screen, and the safety code can be a code formed by multiple digits or letters so as to prompt the user to input the equipment safety code into the Bluetooth digital remote controller for Bluetooth binding.
Step S106: and if the equipment safety code sent by the Bluetooth digital remote controller is received within the preset time after the safety code prompt is sent, verifying the equipment safety code based on the safety code prompt.
After the electric equipment sends out the safety code prompt, whether the equipment safety code input by the user and sent by the Bluetooth remote controller is received within a preset time length is judged, if yes, whether the equipment safety code input by the user is consistent with the code in the safety code prompt sent by the electric equipment is judged, if yes, the equipment safety code is determined to be qualified in verification, and namely the equipment safety code input by the user is correct. The value range of the preset time can be 1-3 min, and the preferred value is 1 min.
Step S108: and when the equipment security code is verified to be qualified, determining that the Bluetooth equipment and the Bluetooth digital remote controller finish Bluetooth binding.
When the device safety code is determined to be qualified through verification, the Bluetooth device and the Bluetooth digital remote controller complete a binding relationship, the electrical device corresponding to the Bluetooth device is in a controllable state, the page end of the Bluetooth digital remote controller can display that the electrical device is in the controllable state, a user can send a control instruction to the Bluetooth device based on the Bluetooth digital remote controller, and the Bluetooth device transmits the control instruction to the controller so that the controller executes the control instruction to control the electrical device.
When the device security code is not qualified in verification, the electrical device sends the security code prompt again to prompt the user to input the device security code into the Bluetooth digital remote controller again, and when the device security code is not qualified in error input for 3 times continuously, it is determined that the Bluetooth device is failed to be added into the Bluetooth digital remote controller, and the step S102 needs to be executed again to perform Bluetooth binding.
According to the Bluetooth binding control method provided by the embodiment, the interval distance between the Bluetooth equipment and the Bluetooth digital remote controller is verified in a two-way mode, the Bluetooth equipment can only be bound with the Bluetooth digital remote controller within the safe distance, the probability that the electric equipment is bound by mistake and controlled by mistake is reduced, the safety code sent by the electric equipment is verified to prompt the equipment safety code input by the user in the Bluetooth remote controller, the safety of Bluetooth binding of the electric equipment is improved, the safety and the legality of the user binding the Bluetooth equipment are ensured, the electric equipment is prevented from being bound by mistake and controlled, and the use experience of the user is improved.
In an embodiment, this embodiment provides an implementation manner that when the bluetooth device is powered on, the bluetooth device is controlled to send a broadcast packet to determine an interval distance between the bluetooth device and the bluetooth digital remote controller, and the bluetooth digital remote controller is triggered to perform bidirectional verification on the interval distance, which may specifically be performed with reference to the following steps:
step S10: when the Bluetooth equipment is powered on, the historical binding relationship is released, and the Bluetooth equipment is controlled to enter a to-be-bound state.
After the Bluetooth equipment (or the electrical equipment) is powered on again, the binding relationship between the Bluetooth equipment and the Bluetooth digital remote controller is released last time, so that the Bluetooth equipment enters a to-be-bound state.
Step S12: and when the Bluetooth equipment enters a to-be-bound state, controlling the Bluetooth equipment to send out a broadcast data packet so that the Bluetooth digital remote controller feeds back and receives the data packet based on the broadcast data packet.
When the Bluetooth device enters a to-be-bound state, Bluetooth broadcasting is continuously carried out outwards, a broadcast data packet sent out by the broadcasting comprises device information and transmitting power P1, when the Bluetooth digital remote controller receives the Bluetooth data packet broadcasted by the Bluetooth device, a receiving data packet is fed back to the Bluetooth device, and the receiving data packet comprises receiving power P2.
Step S14: the separation distance between the Bluetooth device and the Bluetooth digital remote controller is determined based on the transmission power in the broadcast data packet and the reception power in the reception data packet.
And calculating the difference value of the transmitting power P1 in the broadcast data packet and the receiving power P2 in the received data packet to obtain a power loss difference P0, and estimating the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller according to the power loss difference to ensure that the remote controller bound with the Bluetooth equipment is within a safe distance.
Step S16: and when receiving the distance verification data packet sent by the Bluetooth digital remote controller, feeding back the corresponding verification feedback data packet to the Bluetooth digital remote controller so that the Bluetooth digital remote controller calculates the spacing distance between the Bluetooth digital remote controller and the Bluetooth equipment.
The Bluetooth digital remote controller can carry out bidirectional verification on the spacing distance, when the Bluetooth equipment receives a distance verification data packet sent by the Bluetooth digital remote controller, a feedback data packet corresponding to the distance verification data packet is fed back to the Bluetooth digital remote controller, wherein the distance verification data packet comprises transmitting power of the data packet sent by the Bluetooth digital remote controller, and the feedback data packet comprises receiving power fed back by the Bluetooth equipment, so that the Bluetooth digital remote controller calculates the spacing distance between the Bluetooth digital remote controller and the Bluetooth equipment according to the transmitting power in the distance verification data packet and the receiving power in the feedback data packet.
The distance between the Bluetooth equipment and the Bluetooth digital remote controller is verified in a two-way mode by adopting a transmitting power and a receiving power mode, so that the accuracy of detecting the distance between the Bluetooth equipment and the Bluetooth digital remote controller is improved.
In an embodiment, to improve the security of bluetooth binding, the bluetooth binding control method provided in this embodiment further includes the following steps:
step S20: and after the Bluetooth device and the Bluetooth digital remote controller finish Bluetooth binding, receiving and storing the binding ID sent by the Bluetooth digital remote controller, or randomly generating the binding ID and sending the binding ID to the Bluetooth digital remote controller.
When the Bluetooth device and the Bluetooth digital remote controller finish Bluetooth binding, the Bluetooth device or the Bluetooth digital remote controller automatically and randomly generates a binding ID, the Bluetooth device and the Bluetooth digital remote controller respectively store a common binding ID, and the binding ID is used for functions of Bluetooth device discovery, control and the like.
In one embodiment, a binding ID is automatically generated based on the bluetooth digital remote controller and transmitted to the bluetooth device, and the bluetooth device receives and stores the binding ID transmitted by the bluetooth digital remote controller.
In another embodiment, a binding ID is automatically randomly generated based on the bluetooth device and the generated binding ID is sent to the bluetooth digital remote controller.
Step S22: and performing interactive verification on the binding ID sent by the Bluetooth digital remote controller based on the stored binding ID, and adding the Bluetooth digital remote controller into a blacklist when the verification is unqualified for continuous preset times.
When the Bluetooth digital remote controller is started every time, or after the binding ID is refreshed every preset refreshing time, receiving the binding ID sent by the Bluetooth digital remote controller, judging whether the binding ID stored by the Bluetooth equipment is completely the same as the binding ID sent by the Bluetooth digital remote controller, and if so, determining that the binding ID is qualified; if the binding IDs are not identical, the bound IDs are determined to be unqualified in verification, when the binding IDs are unqualified in continuous 3 times of verification, the Bluetooth equipment adds the account corresponding to the Bluetooth digital remote controller into a blacklist, the account corresponding to the Bluetooth digital remote controller is forbidden to carry out binding verification operation, and the process removing limitation operation needs to be started again according to the Bluetooth binding control method.
Step S24: when the binding ID is verified to be qualified, the Bluetooth digital remote controller is set as a control end, and when a control instruction sent by the control end is received, the electric equipment is controlled based on the control instruction.
When the binding ID sent by the Bluetooth digital remote controller is verified to be qualified, the account corresponding to the Bluetooth digital remote controller is set as the control end of the electric equipment where the Bluetooth equipment is located, and when the Bluetooth equipment receives a control instruction sent by the control end, the control instruction is transmitted to the controller of the electric equipment, so that the controller executes the control instruction to control the electric equipment.
The binding ID sent by the Bluetooth digital remote controller is verified, and the control instruction is received after verification is qualified, so that other users can be prevented from carrying out error control on the electric equipment, and the reliability of electric equipment control is improved.
Step S26: and receiving and storing the updated binding ID sent by the Bluetooth digital remote controller, or updating the binding ID and sending the updated binding ID to the Bluetooth digital remote controller.
And when the binding ID is verified to be qualified, the Bluetooth device or the Bluetooth digital remote controller can update the binding ID periodically. In one embodiment, the bluetooth device refreshes the stored binding ID every preset refreshing time interval, and sends the refreshed binding ID to the bluetooth digital remote controller, so that the bluetooth device and the bluetooth digital remote controller jointly store the same refreshed binding ID. In another embodiment, the bluetooth digital remote controller refreshes the stored binding ID every preset refreshing time interval, and sends the refreshed binding ID to the bluetooth device, so that the bluetooth device and the bluetooth digital remote controller jointly store the same refreshed binding ID.
By regularly refreshing the binding ID of the Bluetooth equipment and the Bluetooth digital remote controller, the monitoring of an air interface package and the violent cracking of communication data can be prevented, and the safety performance of data interaction between the Bluetooth equipment and the Bluetooth digital remote controller is enhanced.
According to the Bluetooth binding control method provided by the embodiment, the safety code and the operation duration or operation times of the bound ID are limited, the Bluetooth binding safety is improved, the distance between the Bluetooth device and the Bluetooth digital remote controller is verified in a two-way mode, the controllability on the physical distance is guaranteed, the bound Bluetooth device is verified through the bound ID and is not controlled by other user accounts, and the error control of the electric appliance device is avoided.
The present embodiment provides a bluetooth binding control method, which can be applied to a bluetooth digital remote controller, referring to a flowchart of the bluetooth binding control method shown in fig. 2, the method mainly includes the following steps S202 to S206:
step S202: and when receiving the broadcast data packet sent by the Bluetooth equipment, feeding back the received data packet to the Bluetooth equipment so that the Bluetooth equipment calculates the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller and performs bidirectional verification on the spacing distance.
When the Bluetooth digital remote controller receives a broadcast data packet sent by the Bluetooth equipment, a feedback signal is generated, and the generated feedback signal is sent to the Bluetooth equipment, so that the Bluetooth equipment calculates the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller, meanwhile, the Bluetooth digital remote controller also sends a data packet to the Bluetooth equipment, the data packet comprises a transmitting signal which can enable the Bluetooth equipment to generate signal feedback, so that the Bluetooth digital remote controller calculates and verifies the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller, and the bidirectional verification of the spacing distance is realized.
Step S204: and adding the Bluetooth equipment with the spacing distance less than or equal to the preset safety distance into the equipment list to be bound and displaying the equipment list, and when receiving an equipment adding request input by a user, sending the equipment adding request to the Bluetooth equipment selected by the user from the equipment list to be bound so that the Bluetooth equipment sends a safety code prompt.
When the Bluetooth digital remote controller calculates and verifies that the spacing distance between the Bluetooth digital remote controller and the Bluetooth equipment is smaller than or equal to the preset safe distance, the Bluetooth equipment is displayed in the equipment list to be bound of the Bluetooth digital remote controller, and a user can add the Bluetooth equipment into a white list of a logged-in user account. When above-mentioned spacing distance surpassed and predetermine safe distance, bluetooth digital remote controller shows that bluetooth equipment surpassed safe distance, and functions such as add equipment and bluetooth binding this moment can not be used.
When a user selects a Bluetooth device from a device list to be bound to actively add the Bluetooth device, a device adding request input by the user is sent to the Bluetooth device selected by the user to trigger the Bluetooth device to send a security code prompt (such as a 2-digit digital security code is displayed on a panel of an electric appliance device, and the security code is invalid when 1min is overtime), and the Bluetooth digital remote controller pops up an interface for inputting the device security code so as to receive the device security code input by the user.
Step S206: when receiving an equipment safety code input by a user, sending the equipment safety code to the Bluetooth equipment so that the Bluetooth equipment verifies the equipment safety code, and when the equipment safety code is verified to be qualified, determining that the Bluetooth equipment and the Bluetooth digital remote controller complete Bluetooth binding.
When the Bluetooth digital remote controller receives the equipment safety code input by the user, the equipment safety code input by the user is sent to the Bluetooth equipment for verification, if the equipment safety code input by the user is completely consistent with a code in a safety code prompt sent by the Bluetooth equipment, the Bluetooth equipment and the Bluetooth digital remote controller complete Bluetooth binding, and the Bluetooth digital remote controller displays that the Bluetooth equipment is in a controllable state. If the device security code is not qualified in verification, the Bluetooth device updates the security code again, the Bluetooth digital remote controller prompts the user to input the device security code again and sends the device security code to the Bluetooth device, if the device security code is not qualified in verification for 3 times continuously, the Bluetooth device addition is determined to fail, and the Bluetooth binding process needs to be executed from the step S202 again.
According to the Bluetooth binding control method provided by the embodiment, through double verification of the separation distance between the Bluetooth equipment and the Bluetooth digital remote controller and the equipment safety code, the Bluetooth binding safety is improved, the controllability of the Bluetooth equipment in a safe physical distance is guaranteed, the electric equipment is prevented from being mistakenly bound and controlled, and the use experience of a user is improved.
In an embodiment, this embodiment provides an implementation manner that, when receiving a broadcast packet sent by a bluetooth device, the received packet is fed back to the bluetooth device, so that the bluetooth device calculates an interval distance between the bluetooth device and a bluetooth digital remote controller, and performs bidirectional verification on the interval distance, which may be specifically performed with reference to the following steps:
step S13: and when receiving the broadcast data packet sent by the Bluetooth equipment, feeding back the received data packet to the Bluetooth equipment so that the Bluetooth equipment calculates the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller, and sending a distance verification data packet to the Bluetooth equipment.
After the bluetooth device executes the step S12 to send out the broadcast data packet, the bluetooth digital remote controller feeds back a received data packet to the bluetooth device, where the broadcast data packet includes device information and transmission power, and the received data packet includes reception power, so that the bluetooth device calculates the separation distance between the bluetooth device and the bluetooth digital remote controller according to the transmission power in the broadcast data packet and the reception power in the received data packet. Meanwhile, the Bluetooth digital remote controller sends a distance verification data packet to the Bluetooth equipment so as to carry out bidirectional verification calculation on the spacing distance, wherein the distance verification data packet comprises transmission power.
Step S17: and when a verification feedback data packet fed back by the Bluetooth equipment is received, calculating the spacing distance between the Bluetooth digital remote controller and the Bluetooth equipment based on the transmitting power in the distance verification data packet and the receiving power in the verification feedback data packet.
After the bluetooth device performs the above step S16 to feed back the corresponding verification feedback packet, the power loss between the transmission power in the distance verification packet and the reception power in the verification feedback packet is calculated, and the separation distance between the bluetooth digital remote controller and the bluetooth device is calculated based on the power loss.
In an embodiment, to improve the security of bluetooth binding, the bluetooth binding control method provided in this embodiment further includes the following steps:
step S30: and after the Bluetooth equipment and the Bluetooth digital remote controller finish Bluetooth binding, adding the Bluetooth equipment into a white list and setting the Bluetooth equipment into a controllable state.
And after the Bluetooth digital remote controller determines that Bluetooth binding with the Bluetooth equipment is completed, adding the bound Bluetooth equipment into a white list of an account logged in by the Bluetooth digital remote controller, and displaying that the Bluetooth equipment is in a controllable state.
Step S32: and randomly generating a binding ID and sending the binding ID to the Bluetooth device, or receiving and storing the binding ID sent by the Bluetooth device.
The Bluetooth device or the Bluetooth digital remote controller automatically and randomly generates a binding ID, and the binding ID is used for functions of Bluetooth device discovery, control and the like. In one embodiment, the bluetooth digital remote controller automatically generates a binding ID and transmits the generated binding ID to the bluetooth device, and the bluetooth device receives and stores the binding ID transmitted by the bluetooth digital remote controller. In another embodiment, a binding ID is automatically randomly generated based on the bluetooth device and the generated binding ID is sent to the bluetooth digital remote controller.
Step S34: and after the Bluetooth digital remote controller is started every time or the refreshing time length is preset every interval, sending the binding ID to the Bluetooth equipment for interactive verification.
And when the Bluetooth digital remote controller is started (or the small program for controlling the electric equipment is started) each time, performing interactive verification with the Bluetooth equipment based on the binding ID to discover the bound Bluetooth equipment. Or after refreshing the binding ID at preset refreshing time intervals, performing interactive verification on the binding ID and the Bluetooth equipment based on the refreshed binding ID, and sending the binding ID to the Bluetooth equipment by the Bluetooth digital remote controller for interactive verification to judge whether the binding ID is the same as the binding ID in the Bluetooth equipment.
Step S36: and if the binding ID is verified to be qualified, setting the Bluetooth equipment as equipment to be controlled and adding the equipment to be controlled into a white list, and sending a control instruction to the equipment to be controlled when the control instruction input by a user is received.
When the Bluetooth equipment determines that the binding ID is qualified, the Bluetooth equipment sends binding ID verification qualified information to the Bluetooth digital remote controller, the Bluetooth digital remote controller adds the Bluetooth equipment qualified by binding ID verification as equipment to be controlled into a white list of a logged account, and if a user inputs a control instruction in the logged account of the Bluetooth digital remote controller, the Bluetooth digital remote controller automatically forwards the control instruction to the Bluetooth equipment.
The bound Bluetooth equipment qualified through the binding ID verification is added to the white list, so that the bound Bluetooth equipment in the white list can be controlled, and the bound Bluetooth equipment needs to be verified by using the binding ID, so that the Bluetooth equipment can not be found and bound by other users, the hidden function of the bound Bluetooth equipment is realized, and the mistaken binding control of other users is avoided.
Step S38: and updating the binding ID and sending the updated binding ID to the Bluetooth device, or receiving and storing the updated binding ID sent by the Bluetooth device.
When the binding ID is verified to be qualified, the Bluetooth device or the Bluetooth digital remote controller updates the binding ID periodically. In one embodiment, the bluetooth device refreshes the stored binding ID every preset refreshing time interval, and sends the refreshed binding ID to the bluetooth digital remote controller, so that the bluetooth device and the bluetooth digital remote controller jointly store the same refreshed binding ID. In another embodiment, the bluetooth digital remote controller refreshes the stored binding ID every preset refreshing time interval, and sends the refreshed binding ID to the bluetooth device, so that the bluetooth device and the bluetooth digital remote controller jointly store the same refreshed binding ID.
Step S40: and when a deleting instruction input by an administrator user is received, deleting the equipment to be controlled from the white list.
And taking the account logged when the Bluetooth digital remote controller and the Bluetooth equipment complete Bluetooth binding as an administrator user of the Bluetooth equipment, wherein the administrator user can delete or share the equipment to be controlled in the white list to other users for control and other operations. When the Bluetooth digital remote controller receives a deleting instruction input by the administrator user, the bound device to be controlled selected from the white list by the administrator user is automatically deleted (namely, the bound Bluetooth device is deleted, and the binding with the Bluetooth device is released). In another embodiment, the binding relationship between the bluetooth digital remote controller and the bluetooth device can be released by powering on the bluetooth device again.
Step S42: and when an equipment authorization instruction input by the administrator user is received, sending the binding ID corresponding to the equipment to be controlled to the authorized user, so that the authorized user controls the equipment to be controlled based on the binding ID.
When the Bluetooth digital remote controller receives an equipment authorization instruction input by an administrator user, the Bluetooth equipment (equipment to be controlled) bound by the administrator user and the corresponding binding ID can be sent to an authorized user in a two-dimensional code sharing mode, the authorized user sends the received binding ID to the Bluetooth equipment (equipment to be controlled) for binding ID verification, when the binding ID sent to the Bluetooth equipment by the authorized user is consistent with the binding ID stored in the Bluetooth equipment, the binding ID verification of the authorized user is determined to be qualified, and the authorized user can send the control instruction input by the user to the Bluetooth equipment, so that the authorized user can control the electric equipment.
By regularly refreshing the binding ID of the Bluetooth equipment and the Bluetooth digital remote controller, the monitoring of an air interface packet and the violent cracking of communication data can be prevented; the active deletion and equipment authorization control operation is set by an administrator user of the Bluetooth digital remote controller, so that the Bluetooth equipment control authority can be shared, the temporary account is conveniently added to control the electric equipment, the multi-user control under authorization is realized, and the convenience of electric equipment control is improved.
Step S44: when an authorization removing instruction input by an administrator user is received, or when the authorization time of the authorized user reaches the preset authorization time length, the administrator user and the Bluetooth device are triggered to update the binding ID, so that the authorized user is forbidden to control the device to be controlled.
The administrator user of the Bluetooth digital remote controller can also remove the authorization relation with the authorized user and set the authorization duration for controlling the electric equipment by the authorized user. When the Bluetooth digital remote controller receives an authorization removing instruction input by an administrator user (namely, when the user inputs the authorization removing instruction after the Bluetooth digital remote controller logs in an account of the administrator user), the administrator user and the Bluetooth device are triggered to update the binding ID, so that the Bluetooth device or the Bluetooth digital remote controller refreshes the binding ID, the Bluetooth device and the Bluetooth digital remote controller jointly store the refreshed same binding ID, the binding ID stored by the authorized user after the binding ID is refreshed is different from the binding ID in the Bluetooth device, and the authorized user can not control the device to be controlled (namely, the Bluetooth device).
When an administrator user sets authorization time length for an authorization user, the device authorization instruction comprises preset authorization time length, the authorization user starts timing authorization time when receiving the binding ID shared by the administrator user, when the authorization time reaches the preset authorization time length, the Bluetooth device or the Bluetooth digital remote controller is triggered to refresh the binding ID, the Bluetooth device and the Bluetooth digital remote controller jointly store the refreshed same binding ID, and the authorization user cannot control the device to be controlled any more.
According to the Bluetooth binding control method provided by the embodiment, the Bluetooth equipment is powered on again to be unbound, the traditional infrared remote controller hardware resetting operation can be replaced, the convenience of the Bluetooth equipment resetting operation is improved, the temporary account can be added for convenient control through adding equipment sharing operation, and multi-user time-sharing control of the electric equipment is realized.
Corresponding to the bluetooth binding control method provided in the foregoing embodiment, an embodiment of the present invention provides an example of performing bluetooth security binding on a bluetooth digital remote controller by using the bluetooth binding control method, referring to a bluetooth binding control flow chart of a bluetooth digital remote controller shown in fig. 3, where the method includes the following steps:
step S301: when the Bluetooth equipment is powered on again, the historical binding relation is removed, the Bluetooth equipment enters a to-be-bound state, and the Bluetooth equipment sends out a broadcast data packet.
And (3) powering on the Bluetooth equipment (air conditioner) again, removing the binding relation between the equipment and the applet account number last time, enabling the Bluetooth equipment to enter a to-be-bound state, and enabling any applet to find the Bluetooth equipment on an equipment interface. When the bluetooth device is in a state to be bound, continuously broadcasting messages (namely broadcasting data packets) outwards, wherein the broadcasting data packets carry data such as device types, transmitting power and the like.
Step S302: when the Bluetooth digital remote controller receives a broadcast data packet sent by the Bluetooth equipment, the Bluetooth digital remote controller feeds back a receiving data packet to the Bluetooth equipment, wherein the receiving data packet comprises receiving power.
Step S303: and the Bluetooth device calculates the spacing distance between the Bluetooth device and the Bluetooth digital remote controller according to the transmitting power and the receiving power.
Step S304: the Bluetooth digital remote controller sends a distance verification data packet to the Bluetooth equipment, and the distance between the Bluetooth equipment and the Bluetooth digital remote controller is verified in a bidirectional mode.
When the distance between the Bluetooth device and the Bluetooth digital remote controller is greater than the preset safe distance, the small program of the Bluetooth digital remote controller automatically displays that the Bluetooth device is out of the safe distance, and the finding and binding control functions of the Bluetooth device in the Bluetooth digital remote controller are unavailable.
Step S305: and when the spacing distance between the Bluetooth equipment and the Bluetooth digital remote controller is less than or equal to the preset safety distance, the Bluetooth digital remote controller adds the Bluetooth equipment into the list of the equipment to be bound and displays the list.
When the Bluetooth digital remote controller (such as a mobile terminal like a mobile phone) is within a safe distance from the Bluetooth device, the Bluetooth digital remote controller can display the Bluetooth device (mark) to be bound, and at this time, the user can add the Bluetooth device to a white list of an account.
Step S306: when an equipment adding request input by a user is received, the equipment adding request is sent to the Bluetooth equipment selected by the user from the equipment list to be bound, and the Bluetooth equipment is triggered to send out a safety code prompt.
When the user actively adds the Bluetooth equipment, the Bluetooth digital remote controller automatically pops up an interface for inputting the safety code.
Step S307: and when receiving a device adding request sent by the Bluetooth digital remote controller with the spacing distance less than or equal to the preset safety distance, sending a safety code prompt to a user to prompt the user to input a device safety code into the Bluetooth digital remote controller.
When the bluetooth device finds the device adding request of the user, a 2-bit security code (which is invalid when 1min is overtime) is displayed on the control panel based on the air conditioner, and when the security code is input for 3 times continuously, namely the device adding process fails, the process needs to be started again according to the step S301.
Step S308: when the Bluetooth digital remote controller receives the equipment safety code input by the user, the equipment safety code is sent to the Bluetooth equipment, so that the Bluetooth equipment verifies the equipment safety code.
Step S309: the Bluetooth device verifies the device security code input by the user based on the security code prompt, and when the device security code is verified to be qualified, the Bluetooth device and the Bluetooth digital remote controller are determined to finish Bluetooth binding.
When the equipment safety code input by the user is the same as the safety code prompt sent by the Bluetooth equipment to the user, the equipment safety code is verified to be qualified, and the Bluetooth equipment and the Bluetooth digital remote controller are determined to finish Bluetooth binding. After the user inputs the security code and the security code is verified to be qualified, the Bluetooth digital remote controller and the Bluetooth equipment can complete the binding relationship, the page end can display that the Bluetooth equipment is in a controllable state, and the Bluetooth equipment is added into a white list of the account.
Step S310: and after the Bluetooth equipment and the Bluetooth digital remote controller finish Bluetooth binding, the Bluetooth digital remote controller adds the Bluetooth equipment into a white list and sets the Bluetooth equipment in a controllable state.
Step S311: the Bluetooth device or the Bluetooth digital remote controller randomly generates a binding ID, so that the Bluetooth device and the Bluetooth digital remote controller respectively store a common binding ID.
The binding ID is used for functions such as Bluetooth equipment discovery control, and the like, and the binding ID is taken by the applet and the Bluetooth equipment end to interactively verify user discovery control equipment when the applet is started every time, so that the bound Bluetooth equipment is not discovered by other accounts.
Step S312: and after the Bluetooth digital remote controller is started every time or the refreshing time is preset every interval, sending the binding ID to the Bluetooth equipment for interactive verification, and if the binding ID is verified to be qualified, setting the Bluetooth equipment as equipment to be controlled and adding the equipment to a white list.
When the preset refreshing time is exceeded, the binding ID is replaced again after the small program is actively on-line and the binding ID passes verification, so that brute force cracking is prevented; when the binding ID fails to be verified for 3 consecutive times, the bluetooth device end will pull the user of the bluetooth digital remote controller into the local blacklist, forbid the user from performing the binding verification operation, and need to start to perform the flow restriction removal operation again according to step S301.
Step S313: and after the binding ID is verified to be qualified, if the Bluetooth digital remote controller receives a control instruction input by a user, the control instruction is sent to the Bluetooth equipment, so that the Bluetooth equipment sends the control instruction to a controller of the air conditioner for executing control.
Step S314: when the Bluetooth digital remote controller receives a deleting instruction input by an administrator user, deleting the equipment to be controlled from a white list; and when an equipment authorization instruction input by the administrator user is received, sending the binding ID corresponding to the equipment to be controlled to the authorized user, so that the authorized user controls the equipment to be controlled based on the binding ID.
After the Bluetooth binding operation is completed between the Bluetooth device and the applet account, the Bluetooth device can be managed (deleted or shared, etc.) on a white list management interface of the applet, and the Bluetooth device is actively deleted or shared with other users for control (mainly synchronous ID binding) in a two-dimension code sharing mode.
Step S315: when an authorization removing instruction input by an administrator user is received, or when the authorization time of the authorized user reaches the preset authorization time length, the administrator user and the Bluetooth device are triggered to update the binding ID, so that the authorized user is forbidden to control the device to be controlled.
The primary account number (namely, the account number of the administrator user binding the Bluetooth equipment) can remove the authorization relation of the shared Bluetooth equipment from account numbers of other authorized users, and the non-primary account number does not have the authority; the primary account can also set the account of the authorized user to control the use duration of the equipment.
Corresponding to the bluetooth binding control method provided in the foregoing embodiment, this embodiment provides an electrical device, where the electrical device includes a bluetooth device, and a computer-readable storage medium and a processor in which a computer program is stored, and when the computer program is read by the processor and executed, the bluetooth binding control method provided in the foregoing embodiment is implemented.
Corresponding to the bluetooth binding control method provided in the foregoing embodiment, this embodiment provides a bluetooth digital remote controller, where the bluetooth digital remote controller includes a computer-readable storage medium storing a computer program and a processor, and when the computer program is read and executed by the processor, the bluetooth binding control method provided in the foregoing embodiment is implemented.
The present embodiment further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements each process of the foregoing bluetooth binding control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Of course, those skilled in the art will understand that all or part of the processes in the methods of the above embodiments may be implemented by instructing the control device to perform operations through a computer, and the programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the above method embodiments, where the storage medium may be a memory, a magnetic disk, an optical disk, and the like.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.
Finally, it is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the electric appliance and the bluetooth digital remote controller disclosed in the embodiments, since the electric appliance and the bluetooth digital remote controller correspond to the bluetooth binding control method disclosed in the embodiments, the description is relatively simple, and the relevant points can be referred to the description of the method part.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (12)
1. A Bluetooth binding control method is applied to electric equipment, wherein the electric equipment is provided with Bluetooth equipment, and the method comprises the following steps:
when the Bluetooth equipment is powered on, controlling the Bluetooth equipment to send out a broadcast data packet so as to determine the spacing distance between the Bluetooth equipment and a Bluetooth digital remote controller and trigger the Bluetooth digital remote controller to carry out bidirectional verification on the spacing distance;
when receiving a device adding request sent by the Bluetooth digital remote controller with the spacing distance less than or equal to the preset safety distance, sending a safety code prompt to a user to prompt the user to input a device safety code into the Bluetooth digital remote controller;
if the equipment security code sent by the Bluetooth digital remote controller is received within a preset time length after the security code prompt is sent, verifying the equipment security code based on the security code prompt;
and when the equipment security code is verified to be qualified, determining that the Bluetooth equipment and the Bluetooth digital remote controller finish Bluetooth binding.
2. The bluetooth binding control method according to claim 1, wherein the step of controlling the bluetooth device to send out a broadcast packet to determine a separation distance between the bluetooth device and a bluetooth digital remote controller and trigger the bluetooth digital remote controller to perform bidirectional authentication on the separation distance when the bluetooth device is powered on comprises:
when the Bluetooth equipment is powered on, removing the historical binding relationship and controlling the Bluetooth equipment to enter a to-be-bound state;
when the Bluetooth equipment enters a to-be-bound state, controlling the Bluetooth equipment to send out a broadcast data packet so that the Bluetooth digital remote controller feeds back a received data packet based on the broadcast data packet; the broadcast data packet comprises equipment information and transmitting power, and the received data packet comprises receiving power;
determining a separation distance between the Bluetooth device and a Bluetooth digital remote controller based on the transmission power in the broadcast data packet and the reception power in the reception data packet;
and when receiving the distance verification data packet sent by the Bluetooth digital remote controller, feeding back a corresponding verification feedback data packet to the Bluetooth digital remote controller so that the Bluetooth digital remote controller calculates the spacing distance between the Bluetooth digital remote controller and the Bluetooth equipment.
3. The bluetooth binding control method according to claim 1, further comprising:
after the Bluetooth equipment and the Bluetooth digital remote controller finish Bluetooth binding, receiving and storing a binding ID sent by the Bluetooth digital remote controller, or randomly generating the binding ID and sending the binding ID to the Bluetooth digital remote controller;
performing interactive verification on the binding ID sent by the Bluetooth digital remote controller based on the stored binding ID, and adding the Bluetooth digital remote controller into a blacklist when the verification is unqualified for continuous preset times;
and when the binding ID is verified to be qualified, setting the Bluetooth digital remote controller as a control end, and controlling the electrical equipment based on the control instruction when receiving the control instruction sent by the control end.
4. The bluetooth binding control method according to claim 3, further comprising:
and receiving and storing the updated binding ID sent by the Bluetooth digital remote controller, or updating the binding ID and sending the updated binding ID to the Bluetooth digital remote controller.
5. A Bluetooth binding control method is applied to a Bluetooth digital remote controller, and comprises the following steps:
when a broadcast data packet sent by a Bluetooth device is received, feeding back the received data packet to the Bluetooth device so that the Bluetooth device calculates the spacing distance between the Bluetooth device and the Bluetooth digital remote controller and performs bidirectional verification on the spacing distance;
adding the Bluetooth equipment with the spacing distance less than or equal to the preset safety distance into a list of equipment to be bound and displaying the equipment, and when receiving an equipment adding request input by a user, sending the equipment adding request to the Bluetooth equipment selected by the user from the list of the equipment to be bound so that the Bluetooth equipment sends a safety code prompt;
when receiving an equipment safety code input by a user, sending the equipment safety code to the Bluetooth equipment so as to enable the Bluetooth equipment to verify the equipment safety code, and when the equipment safety code is qualified, determining that the Bluetooth equipment and the Bluetooth digital remote controller complete Bluetooth binding.
6. The bluetooth binding control method according to claim 5, wherein the step of feeding back the received packet to the bluetooth device when receiving the broadcast packet sent by the bluetooth device, so that the bluetooth device calculates a separation distance between the bluetooth device and the bluetooth digital remote controller, and performs bidirectional authentication on the separation distance comprises:
when a broadcast data packet sent by a Bluetooth device is received, feeding back the received data packet to the Bluetooth device so that the Bluetooth device calculates the spacing distance between the Bluetooth device and the Bluetooth digital remote controller and sends a distance verification data packet to the Bluetooth device; wherein the distance verification data packet comprises transmission power;
and when a verification feedback data packet fed back by the Bluetooth equipment is received, calculating the spacing distance between the Bluetooth digital remote controller and the Bluetooth equipment based on the transmitting power in the distance verification data packet and the receiving power in the verification feedback data packet.
7. The bluetooth binding control method according to claim 5, further comprising:
after the Bluetooth equipment and the Bluetooth digital remote controller finish Bluetooth binding, adding the Bluetooth equipment into a white list and setting the Bluetooth equipment into a controllable state;
randomly generating a binding ID and sending the binding ID to the Bluetooth equipment, or receiving and storing the binding ID sent by the Bluetooth equipment;
when the Bluetooth digital remote controller is started every time or a refreshing time length is preset every interval, the binding ID is sent to the Bluetooth equipment for interactive verification;
and if the binding ID is verified to be qualified, setting the Bluetooth equipment as equipment to be controlled and adding the equipment to be controlled into a white list, and sending a control instruction to the equipment to be controlled when the control instruction input by a user is received.
8. The bluetooth binding control method according to claim 7, further comprising:
updating the binding ID and sending the updated binding ID to the Bluetooth device, or receiving and storing the updated binding ID sent by the Bluetooth device;
when a deleting instruction input by an administrator user is received, deleting the equipment to be controlled from the white list;
and when an equipment authorization instruction input by the administrator user is received, sending the binding ID corresponding to the equipment to be controlled to an authorized user so that the authorized user controls the equipment to be controlled based on the binding ID.
9. The bluetooth binding control method according to claim 8, wherein the device authorization instruction includes a preset authorization duration, the bluetooth binding control method further comprising:
and when an authorization removing instruction input by the administrator user is received, or when the authorization time of the authorized user reaches the preset authorization time, triggering the administrator user and the Bluetooth device to update the binding ID so as to prohibit the authorized user from controlling the device to be controlled.
10. An electric device comprising a bluetooth device, a computer readable storage medium storing a computer program and a processor, the computer program being read and executed by the processor for performing the method according to any one of claims 1-4.
11. A bluetooth digital remote control, comprising a computer readable storage medium storing a computer program and a processor, the computer program being read and executed by the processor for performing the method according to any of claims 5-9.
12. A computer-readable storage medium, characterized in that it stores a computer program which, when read and executed by a processor, implements the method of any one of claims 1-4, or implements the method of any one of claims 5-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210513233.6A CN115103342B (en) | 2022-05-12 | 2022-05-12 | Bluetooth binding control method, electrical equipment and Bluetooth digital remote controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210513233.6A CN115103342B (en) | 2022-05-12 | 2022-05-12 | Bluetooth binding control method, electrical equipment and Bluetooth digital remote controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115103342A true CN115103342A (en) | 2022-09-23 |
CN115103342B CN115103342B (en) | 2024-06-11 |
Family
ID=83288147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210513233.6A Active CN115103342B (en) | 2022-05-12 | 2022-05-12 | Bluetooth binding control method, electrical equipment and Bluetooth digital remote controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115103342B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106981108A (en) * | 2016-01-19 | 2017-07-25 | 福建省光速达物联网科技股份有限公司 | A kind of bluetooth nurse method for unlocking and system |
WO2021077833A1 (en) * | 2019-10-22 | 2021-04-29 | 飞天诚信科技股份有限公司 | Method and device for pushing information, electronic device, and computer-readable storage medium |
CN113490218A (en) * | 2021-06-08 | 2021-10-08 | 深圳Tcl新技术有限公司 | Pairing method, pairing device, Bluetooth remote controller, intelligent device and storage medium |
CN113570841A (en) * | 2021-06-07 | 2021-10-29 | 宁波奥克斯电气股份有限公司 | Bluetooth pairing control method and device, Bluetooth remote controller and household appliance |
-
2022
- 2022-05-12 CN CN202210513233.6A patent/CN115103342B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106981108A (en) * | 2016-01-19 | 2017-07-25 | 福建省光速达物联网科技股份有限公司 | A kind of bluetooth nurse method for unlocking and system |
WO2021077833A1 (en) * | 2019-10-22 | 2021-04-29 | 飞天诚信科技股份有限公司 | Method and device for pushing information, electronic device, and computer-readable storage medium |
CN113570841A (en) * | 2021-06-07 | 2021-10-29 | 宁波奥克斯电气股份有限公司 | Bluetooth pairing control method and device, Bluetooth remote controller and household appliance |
CN113490218A (en) * | 2021-06-08 | 2021-10-08 | 深圳Tcl新技术有限公司 | Pairing method, pairing device, Bluetooth remote controller, intelligent device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115103342B (en) | 2024-06-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7356691B2 (en) | Authentication of mobile wireless network component | |
CN110545569B (en) | Network distribution method and system of intelligent device and readable medium | |
CN105227321B (en) | Information processing method, server and client | |
EP1686503A1 (en) | User Authentication Via a Mobile Telephone | |
US20110018754A1 (en) | Remote operation apparatus, operation target apparatus, method for controlling remote operation apparatus, method for controlling operation target apparatus, and remote operation system | |
CN102802071A (en) | Intelligent television, mobile terminal, multi-screen interaction system and wireless communication method | |
KR20160149134A (en) | Method, apparatus and system for managing administrative relation between account and device | |
WO2011032486A1 (en) | Method and server for instant messaging | |
JP2012515605A (en) | Game execution method and system for portable terminal | |
CN103605531A (en) | Household appliance control method and device and mobile terminal | |
US10592646B2 (en) | User authentication method and system for implementing the same | |
JP2013501971A (en) | Method and apparatus for controlling consumption of content services | |
WO2005076107A1 (en) | Validation for secure device associations | |
CN104410899A (en) | Multi-screen interaction processing method and system based on a television and a television device | |
WO2023109240A1 (en) | Smart door lock binding method and apparatus, storage medium and electronic device | |
CN113570841A (en) | Bluetooth pairing control method and device, Bluetooth remote controller and household appliance | |
CN111726238A (en) | Household appliance and network distribution method, control method and computer storage medium thereof | |
EP4106265A1 (en) | Password recovery method and system, and cloud server and electronic device | |
US20230353805A1 (en) | Methods, systems, and media for presenting media content items using multiple devices | |
CN113382295B (en) | Remote control method, television and electronic equipment | |
CN115103342A (en) | Bluetooth binding control method, electric equipment and Bluetooth digital remote controller | |
WO2021248963A1 (en) | Home appliance, networking method therefor, control terminal, and computer storage medium | |
CN109660988B (en) | Communication authentication processing method and device and electronic equipment | |
KR101286161B1 (en) | Broadcasting service certification system and broadcasting service certification method | |
CN115766320A (en) | Multi-instruction control method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |