CN112383903A - Bluetooth code matching control method and device and computer storage medium - Google Patents

Bluetooth code matching control method and device and computer storage medium Download PDF

Info

Publication number
CN112383903A
CN112383903A CN202011028949.4A CN202011028949A CN112383903A CN 112383903 A CN112383903 A CN 112383903A CN 202011028949 A CN202011028949 A CN 202011028949A CN 112383903 A CN112383903 A CN 112383903A
Authority
CN
China
Prior art keywords
bluetooth
code
slave control
intelligent
equipment
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
CN202011028949.4A
Other languages
Chinese (zh)
Other versions
CN112383903B (en
Inventor
林建文
马映虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011028949.4A priority Critical patent/CN112383903B/en
Publication of CN112383903A publication Critical patent/CN112383903A/en
Application granted granted Critical
Publication of CN112383903B publication Critical patent/CN112383903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a Bluetooth code matching control method, a Bluetooth code matching control device and a computer storage medium, wherein the method comprises the following steps: when the Hall switch is detected to be in the closed state, the slave control equipment is controlled to enter a Bluetooth code matching mode; and if the Bluetooth communication code transmitted by the intelligent master equipment is captured, controlling the slave control equipment to establish connection with the intelligent master equipment. From this, realize intelligent one-to-one bluetooth to sign indicating number through the hall switch from controlgear, and then improve from controlgear's bluetooth to sign indicating number accurate rate.

Description

Bluetooth code matching control method and device and computer storage medium
Technical Field
The invention relates to the technical field of Bluetooth pairing, in particular to a Bluetooth code matching control method, a Bluetooth code matching control device and a computer storage medium.
Background
The current slave control device is divided into an infrared remote control and a Bluetooth remote control, and when the slave control device is the Bluetooth remote control, when the slave control device is used to control an intelligent master device (such as a television, etc.), the slave control device first needs to perform bluetooth pairing with the intelligent master device to control the intelligent master device, it should be noted that a process of pairing the slave control device with the intelligent master device is called as "slave control device code matching", when the slave control device code matching is performed, an infrared code matching request and infrared code matching information are sent by infrared to perform code matching in the current method, but the infrared remote control is characterized in that one slave control device can simultaneously remotely control a plurality of intelligent master devices, the plurality of intelligent master devices respond to the infrared code matching request after receiving the infrared code matching request simultaneously, thereby interrupting the task currently being performed by the intelligent master device, i.e. such a response is considered as a malfunction of the slave control device.
Disclosure of Invention
The invention provides a Bluetooth code matching control method, a Bluetooth code matching control device and a computer storage medium, and aims to realize intelligent one-to-one Bluetooth code matching and improve the Bluetooth code matching accuracy of slave control equipment.
To achieve the above object, the present invention provides a bluetooth code matching control method applied to a slave control device configured with a code matching device, wherein the code matching device includes a hall switch, the method including:
when the Hall switch is detected to be in the closed state, the slave control equipment is controlled to enter a Bluetooth code matching mode;
and if the Bluetooth communication code transmitted by the intelligent master equipment is captured, controlling the slave control equipment to establish connection with the intelligent master equipment.
Preferably, if the bluetooth communication code transmitted by the intelligent master device is captured, the step of establishing connection with the intelligent master device includes:
if the Bluetooth communication code transmitted by the intelligent main equipment is captured, first response confirmation information corresponding to the Bluetooth communication code is generated;
and controlling the slave control equipment to establish connection with the intelligent master equipment according to the Bluetooth communication code and the first response confirmation information.
Preferably, the step of controlling the slave control device to establish connection with the intelligent master device according to the bluetooth communication code and the first acknowledgement information includes:
transmitting the Bluetooth communication code and the first response confirmation information, and judging whether second response confirmation information transmitted by the intelligent main equipment is captured or not;
and if second response confirmation information transmitted by the intelligent main equipment is captured, judging that the Bluetooth code matching between the slave control equipment and the intelligent main equipment is successful, and controlling the slave control equipment to establish connection with the intelligent main equipment.
Preferably, before the step of capturing the bluetooth communication code transmitted by the intelligent master device, establishing a connection with the intelligent master device, the method further includes:
and emitting an infrared communication code so that the intelligent main equipment can emit the Bluetooth communication code according to the infrared communication code.
In addition, to achieve the above object, the present invention further provides a bluetooth code matching control method, where the bluetooth code matching control method is applied to an intelligent master device, and the intelligent master device is configured with a code matching device, where the code matching device includes:
when the Hall switch is detected to be in a closed state, the intelligent main equipment is controlled to enter a Bluetooth code matching mode;
transmitting a Bluetooth communication code to establish a connection with a slave control device according to the Bluetooth communication code.
Preferably, the step of transmitting a bluetooth communication code to establish a connection with a slave control device according to the bluetooth communication code:
transmitting a Bluetooth communication code, and judging whether the third response confirmation information transmitted from the control equipment is captured or not;
and if third response confirmation information transmitted by the slave control equipment is captured, controlling the slave control equipment to establish connection with the intelligent master equipment according to the third response confirmation information.
Preferably, the step of controlling the slave control device to establish a connection with the intelligent master device according to the third response confirmation information includes:
generating fourth response confirmation information corresponding to the third response confirmation information;
and transmitting the fourth response confirmation information to enable the slave control equipment to establish connection with the intelligent master equipment according to the fourth response confirmation information.
Preferably, after the step of transmitting the bluetooth communication code to establish a connection with the slave control device according to the bluetooth communication code, the method further includes:
if the Bluetooth signal transmitted by the slave control equipment is captured, converting the Bluetooth signal into an electric signal;
and decoding the electric signal to obtain a control instruction corresponding to the electric signal, and responding to the control instruction.
In addition, in order to achieve the above object, the present invention further provides a bluetooth code matching control device, wherein the bluetooth code matching control device includes:
the control module is used for controlling the intelligent main equipment to enter a Bluetooth code matching mode when the Hall switch is detected to be in a closed state;
and the connection module is used for controlling the slave control equipment to establish connection with the intelligent main equipment if capturing the Bluetooth communication code transmitted by the intelligent main equipment.
In addition, in order to achieve the above object, the present invention further provides a computer storage medium, wherein a bluetooth code matching control program is stored on the computer storage medium, and the bluetooth code matching control program implements the steps of the bluetooth code matching control method when being executed by a processor.
Compared with the prior art, the invention discloses a Bluetooth code matching control method, a Bluetooth code matching control device and a computer storage medium, wherein when the Hall switch is detected to be in an off state, the slave control equipment is controlled to enter a Bluetooth code matching mode; if the Bluetooth communication code transmitted by the intelligent master equipment is captured, the slave control equipment is controlled to be connected with the intelligent master equipment, therefore, intelligent one-to-one Bluetooth code matching is realized through a Hall switch of the slave control equipment, and the Bluetooth code matching accuracy of the slave control equipment is further improved.
Drawings
Fig. 1 is a schematic hardware structure diagram of a bluetooth code matching control device according to various embodiments of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a Bluetooth pairing code control method according to the present invention;
FIG. 3 is a flowchart illustrating a Bluetooth code matching control method according to a second embodiment of the present invention;
fig. 4 is a functional block diagram of a bluetooth code matching control device according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The bluetooth code matching control device mainly related to the embodiment of the invention is a network connection device capable of realizing network connection, and the bluetooth code matching control device can be a server, a cloud platform and the like.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a bluetooth code matching control device according to various embodiments of the present invention. In this embodiment of the present invention, the bluetooth code matching control device may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, an input port 1003, an output port 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the input port 1003 is used for data input; the output port 1004 is used for data output, the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and optionally, the memory 1005 may also be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, the memory 1005 of fig. 1, which is a readable storage medium, may include an operating system, a network communication module, an application module, and a bluetooth pairing control program. In fig. 1, the network communication module is mainly used for connecting to a server and performing data communication with the server; and the processor 1001 may call the bluetooth pairing code control program stored in the memory 1005 and perform the following operations:
when the Hall switch is detected to be in the closed state, the slave control equipment is controlled to enter a Bluetooth code matching mode;
and if the Bluetooth communication code transmitted by the intelligent master equipment is captured, controlling the slave control equipment to establish connection with the intelligent master equipment.
Further, the processor 1001 may be further configured to call a bluetooth code matching control program stored in the memory 1005, and perform the following steps:
if the Bluetooth communication code transmitted by the intelligent main equipment is captured, first response confirmation information corresponding to the Bluetooth communication code is generated;
and controlling the slave control equipment to establish connection with the intelligent master equipment according to the Bluetooth communication code and the first response confirmation information.
Further, the processor 1001 may be further configured to call a bluetooth code matching control program stored in the memory 1005, and perform the following steps:
transmitting the Bluetooth communication code and the first response confirmation information, and judging whether second response confirmation information transmitted by the intelligent main equipment is captured or not;
and if second response confirmation information transmitted by the intelligent main equipment is captured, judging that the Bluetooth code matching between the slave control equipment and the intelligent main equipment is successful, and controlling the slave control equipment to establish connection with the intelligent main equipment.
Further, the processor 1001 may be further configured to call a bluetooth code matching control program stored in the memory 1005, and perform the following steps:
and emitting an infrared communication code so that the intelligent main equipment can emit the Bluetooth communication code according to the infrared communication code.
Further, the processor 1001 may be further configured to call a bluetooth code matching control program stored in the memory 1005, and perform the following steps:
when the Hall switch is detected to be in a closed state, the intelligent main equipment is controlled to enter a Bluetooth code matching mode;
transmitting a Bluetooth communication code to establish a connection with a slave control device according to the Bluetooth communication code.
Further, the processor 1001 may be further configured to call a bluetooth code matching control program stored in the memory 1005, and perform the following steps:
transmitting a Bluetooth communication code, and judging whether the third response confirmation information transmitted from the control equipment is captured or not;
and if third response confirmation information transmitted by the slave control equipment is captured, controlling the slave control equipment to establish connection with the intelligent master equipment according to the third response confirmation information.
Further, the processor 1001 may be further configured to call a bluetooth code matching control program stored in the memory 1005, and perform the following steps:
generating fourth response confirmation information corresponding to the third response confirmation information;
and transmitting the fourth response confirmation information to enable the slave control equipment to establish connection with the intelligent master equipment according to the fourth response confirmation information.
Further, the processor 1001 may be further configured to call a bluetooth code matching control program stored in the memory 1005, and perform the following steps:
if the Bluetooth signal transmitted by the slave control equipment is captured, converting the Bluetooth signal into an electric signal;
and decoding the electric signal to obtain a control instruction corresponding to the electric signal, and responding to the control instruction.
Based on the above structure, a first embodiment of the bluetooth code matching control method of the present invention is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a bluetooth code matching control method according to a first embodiment of the present invention.
In the embodiment, the bluetooth code matching control method is applied to a slave control device, such as a remote controller and other intelligent devices for sending action commands, optionally including an intelligent bluetooth remote controller, an intelligent infrared remote controller and other intelligent devices, the specific type is not limited, the slave control device is provided with a code matching device, wherein the code matching device includes a hall switch and a magnet separated from the hall switch by a separation wall, it is required to say that the separation wall is a material capable of realizing magnetostatic shielding, such as a copper plate, an aluminum plate, a superconducting material, a ferromagnetic material with high magnetic permeability and the like, the specific material type is not limited, optionally, in the embodiment, the hall switch in the slave control device is far away from the magnet in the slave control device as possible, and a magnetostatic shielding material is placed between the magnet and the hall switch to realize the magnetostatic shielding between the magnet and the hall switch, or a static magnetic shielding material with the same size as the magnet is placed in the direction perpendicular to the back surface of the magnet to realize static magnetic shielding between the magnet and the hall switch, it should be noted that in the embodiment, the hall switch and the magnet in the slave control device are separated by a separation wall, in order to avoid the effect of the magnet in the slave control device on the hall switch in the slave control device, the bluetooth code matching control method comprises the following steps:
step S10: when the Hall switch is detected to be in the closed state, the slave control equipment is controlled to enter a Bluetooth code matching mode;
in this step, specifically, in this embodiment, an output end of a hall switch of the slave control device is connected to a control interface GPIO of the slave control device, and it should be noted that, when a magnetic object moves close to the hall switch, a hall element on the hall switch changes an internal circuit state of the hall switch due to a hall effect, so that the hall switch recognizes that a nearby magnetic object exists, in this embodiment, the slave control device is used to control the intelligent master device, where it should be noted that the intelligent master device is also configured with a pair of encoders, where the pair of encoders includes the hall switch and a magnet isolated from the hall switch by a partition wall, where the partition wall inside the intelligent master device is the partition wall inside the slave control device, and it should not be described herein again, and it should be noted that the hall switch and the magnet in the intelligent master device are isolated by the partition wall, the purpose is to avoid the effect of the magnet inside the intelligent main device on the Hall switch inside the intelligent main device.
Further, it should be noted that, in order to facilitate the operation of a user, in this embodiment, a pair of code region identifiers is provided at a position where the secondary control device configures the code aligner to indicate a hall switch position of the secondary control device, for example, a pair of code tags is attached to an external position corresponding to a hall switch on the secondary control device, and also in this embodiment, a pair of code region identifiers is provided at a position where the intelligent primary device configures the code aligner to indicate a hall switch position of the intelligent primary device, for example, a pair of code tags is attached to an external position corresponding to a hall switch on the intelligent primary device.
Based on the above-mentioned slave control device structure, the steps in this embodiment are explained, specifically, when the user holds the slave control device to send an instruction to the intelligent master device, the slave control device needs to be paired with the intelligent master device first, specifically, the user holds the slave control device and brings the pairing tag outside the slave control device close to the pairing tag outside the intelligent master device, when it is detected that the hall element on the hall switch of the slave control device changes the internal circuit state of the hall switch of the slave control device due to the hall effect generated by the magnet of the intelligent master device, that is, when it is detected that the magnet of the intelligent master device is close by the hall switch of the slave control device, the magnetic field intensity generated by the magnet of the intelligent master device is detected in real time according to the variation of the internal circuit state of the hall switch of the slave control device, and when it is detected that the magnetic field intensity generated by the magnet of the intelligent master device exceeds the preset intensity by the hall switch of the slave When the slave control device is controlled to be turned off, the Hall switch sends a corresponding off-state signal to the control interface GPIO of the slave control device, the slave control device is controlled to enter the Bluetooth code matching mode after the control interface GPIO of the slave control device obtains that the Hall switch is in the off-state signal, and optionally, an indicator lamp of the slave control device is controlled to flicker so as to prompt a user to enter the Bluetooth code matching mode from the slave control device.
Step S20: and if the Bluetooth communication code transmitted by the intelligent main equipment is captured, controlling the slave control equipment to establish connection with the intelligent main equipment.
When the slave control equipment enters a Bluetooth code matching mode, the slave control equipment starts a Bluetooth scanning mode, and if the Bluetooth communication code transmitted by the intelligent master equipment is captured, the slave control equipment is controlled to be connected with the intelligent master equipment.
Further, step S20 further includes:
step S201: if the Bluetooth communication code transmitted by the intelligent main equipment is captured, first response confirmation information corresponding to the Bluetooth communication code is generated;
step S202: and controlling the slave control equipment to establish connection with the intelligent master equipment according to the Bluetooth communication code and the first response confirmation information.
In this step, in order to improve the accuracy of bluetooth code matching, in this embodiment, a three-step response method is used for performing bluetooth code matching, specifically, if the slave control device captures a bluetooth communication code transmitted by the intelligent master device, the slave control device decodes the bluetooth communication code to obtain a combinational logic code of the intelligent master device, then verifies the combinational logic code of the intelligent master device, and after the verification passes, determines that the slave control device and the intelligent master device perform bluetooth code matching for the first time, and generates corresponding first response confirmation information to control the slave control device to establish connection with the intelligent master device according to the bluetooth communication code and the first response confirmation information.
For example, if the slave control device does not have an infrared emission function, it is determined whether to capture a bluetooth communication code transmitted by the intelligent master device, where the bluetooth communication code is a bluetooth communication code that can characterize the identity of the intelligent master device, and if the bluetooth communication code transmitted by the intelligent master device is captured, the slave control device parses the second bluetooth communication code to verify the identity of the intelligent master device, and after the verification passes, generates first acknowledgement information corresponding to the bluetooth communication code, and packs the bluetooth communication code and the first acknowledgement information into a first acknowledgement file packet, so as to control the slave control device to establish a connection with the intelligent master device according to the first acknowledgement file packet, specifically, step S202 further includes:
step S2021: transmitting the Bluetooth communication code and the first response confirmation information, and judging whether second response confirmation information transmitted by the intelligent main equipment is captured or not;
step S2022: and if second response confirmation information transmitted by the intelligent main equipment is captured, judging that the Bluetooth code matching between the slave control equipment and the intelligent main equipment is successful, and controlling the slave control equipment to establish connection with the intelligent main equipment.
In this step, after the first acknowledgement information is generated, the bluetooth communication code and the first acknowledgement information are transmitted, and whether the second acknowledgement information transmitted by the intelligent master device is captured is determined, it should be noted that after the bluetooth communication code and the first acknowledgement information transmitted by the slave control device are captured by the intelligent master device, the intelligent master device generates the second acknowledgement information corresponding to the bluetooth communication code and the first acknowledgement information, and returns the bluetooth communication code, the first acknowledgement information, and the second acknowledgement information to the slave control device, and if the second acknowledgement information transmitted by the intelligent master device is captured by the slave control device, the slave control device determines that the bluetooth code matching with the intelligent master device is successful, and controls the slave control device to establish a connection with the intelligent master device.
Further, step S20: if the bluetooth communication code transmitted by the intelligent main device is captured, before the step of establishing connection with the intelligent main device, the method further comprises the following steps:
step S30: and emitting an infrared communication code so that the intelligent main equipment can emit the Bluetooth communication code according to the infrared communication code.
In this step, it can be understood that, if the slave control device has an infrared emission function, the combinational logic code matched with the slave control device is obtained, where it is to be noted that the combinational logic code matched with the slave control device is a combinational logic code that can characterize the identity of the slave control device, after the combinational logic code matched with the slave control device is obtained, the encoder of the slave control device encodes the combinational logic code and emits the encoded combinational logic code (i.e. the infrared communication code) through the infrared emission tube, then the infrared capture tube of the intelligent master device captures the infrared communication code emitted from the control device, the intelligent master device decodes the infrared communication code to obtain the combinational logic code of the slave control device, then verifies the combinational logic code of the slave control device, and after the verification is passed, the intelligent master device obtains the combinational logic code matched with the intelligent master device, it should be noted that the combinational logic code matched with the intelligent master device is a combinational logic code corresponding to the identity of the intelligent master device, and after the combinational logic code matched with the intelligent master device is obtained, the encoder of the intelligent master device encodes the combinational logic code, and transmits the encoded combinational logic code (namely, the bluetooth communication code) through bluetooth.
Further, in this embodiment, after step S20, the method further includes:
if the key operation corresponding to the slave control equipment is monitored, acquiring an electric signal corresponding to the key operation;
coding the electric signal to obtain a key instruction signal corresponding to the electric signal;
and converting the key instruction signal into a Bluetooth signal, and transmitting the Bluetooth signal to the intelligent main equipment so that the intelligent main equipment can respond to the key operation.
In the step, whether the key operation is captured or not is monitored in real time by the slave control device, if the key operation is captured, the key operation is converted into a corresponding electric signal, the electric signal is encoded to be converted into a key instruction signal corresponding to the key operation, then the Bluetooth signal key instruction signal is converted into a Bluetooth signal, the Bluetooth signal is transmitted to the intelligent master device, and then the control instruction corresponding to the key operation is transmitted to the intelligent master device through the Bluetooth signal.
Based on the scheme, when the Hall switch is detected to be in the off state, the slave control device is controlled to enter a Bluetooth code matching mode; and if the Bluetooth communication code transmitted by the intelligent master equipment is captured, controlling the slave control equipment to be connected with the intelligent master equipment, so that intelligent one-to-one Bluetooth code matching is realized through a Hall switch of the slave control equipment, and the Bluetooth code matching accuracy of the slave control equipment is further improved.
In addition, based on the above structure, a second embodiment of the bluetooth code matching control method of the present invention is provided.
Referring to fig. 3, fig. 3 is a flowchart illustrating a bluetooth code matching control method according to a second embodiment of the present invention.
In this embodiment, the bluetooth code matching control method is applied to an intelligent device, such as an intelligent television, for responding to an action command, where the intelligent device is configured with a code matching device, where the code matching device includes a hall switch and a magnet isolated from the hall switch by a partition wall, where the partition wall is a material capable of realizing magnetostatic shielding, such as a copper plate, an aluminum plate, a superconducting material, a ferromagnetic material with high magnetic permeability, and the like, and the specific material type is not limited, optionally, in this embodiment, the hall switch inside the intelligent device is located as far as possible from the magnet inside the intelligent device, and a magnetostatic shielding material is placed between the magnet and the hall switch to realize magnetostatic shielding between the magnet and the hall switch, or a magnetostatic shielding material with the same size as the magnet is placed in a direction perpendicular to the back of the magnet, to achieve the static magnetic shielding between the magnet and the hall switch, it should be noted that, in this embodiment, the hall switch and the magnet in the intelligent master device are separated by a partition wall, so as to avoid the effect of the magnet inside the intelligent master device on the hall switch inside the intelligent master device, and the bluetooth pairing code control method includes:
step S40: when the Hall switch is detected to be in a closed state, the intelligent main equipment is controlled to enter a Bluetooth code matching mode;
in this step, specifically, in this embodiment, an output end of a hall switch of the intelligent master device is connected to a control interface GPIO of the intelligent master device, and it should be noted that, when a magnetic object moves close to the hall switch, a hall element on the hall switch generates a hall effect to change an internal circuit state of the hall switch, so that the hall switch recognizes that a nearby magnetic object exists, in this embodiment, the intelligent master device is configured to respond to a control command from the control device, where it is noted that the slave control device is also configured with a pair of encoders, where the pair of encoders include the hall switch and a magnet separated from the hall switch by a separation wall, where the separation wall inside the slave control device is the same as the separation wall inside the intelligent master device, and it is not described herein again, and it is noted that the hall switch and the magnet in the slave control device are separated by the separation wall, in order to avoid that the magnet inside the slave control device acts on the hall switch inside the slave control device.
Further, it should be noted that, in order to facilitate the user's operation, in this embodiment, a pair of code region identifiers is provided at a position of the intelligent master device configuration code aligner to indicate a hall switch position of the intelligent master device, for example, a pair of code tags is attached to an external position corresponding to the hall switch on the intelligent master device, and further, in this embodiment, the intelligent master device includes a device supporting a remote control function, such as an intelligent television, and in the same sample embodiment, a pair of code region identifiers is provided at a position of the slave control device configuration code aligner to indicate a hall switch position of the slave control device, for example, a pair of code tags is attached to an external position corresponding to the hall switch on the slave control device.
Based on the above-mentioned slave control device structure, the steps in this embodiment are explained, specifically, when the user holds the slave control device to send an instruction to the intelligent master device, the slave control device needs to first pair with the intelligent master device, specifically, the user holds the slave control device and brings the pairing tag outside the slave control device close to the pairing tag outside the intelligent master device, when it is detected that the hall element on the hall switch of the intelligent master device generates the hall effect due to the magnet of the slave control device, so that the internal circuit state of the hall switch of the intelligent master device changes, that is, when the hall switch of the intelligent master device detects that the magnet of the slave control device approaches, the magnetic field intensity generated by the magnet of the slave control device is detected in real time through the change amount of the internal circuit state of the hall switch of the intelligent master device, and when it is detected that the magnetic field intensity generated by the magnet of the slave control device exceeds the preset intensity by the hall switch of the intelligent master device When the intelligent master device is controlled to be turned off, the Hall switch sends a corresponding off-state signal to the control interface GPIO of the intelligent master device, the control interface GPIO of the intelligent master device controls the intelligent master device to enter the Bluetooth code matching mode after acquiring that the Hall switch is in the off-state signal, and optionally, an indicator lamp of the intelligent master device is controlled to flicker so as to prompt the user of the intelligent master device to enter the Bluetooth code matching mode.
Step S50: transmitting a Bluetooth communication code to establish a connection with a slave control device according to the Bluetooth communication code.
When the intelligent master device enters a Bluetooth code matching mode, the intelligent master device starts a Bluetooth scanning mode and continuously transmits Bluetooth communication codes to the periphery so as to establish connection with the slave control device according to the Bluetooth communication codes.
Further, step S50 further includes:
step S501: transmitting a Bluetooth communication code, and judging whether the third response confirmation information transmitted from the control equipment is captured or not;
step S502: and if third response confirmation information transmitted by the slave control equipment is captured, controlling the slave control equipment to establish connection with the intelligent master equipment according to the third response confirmation information.
In this step, in order to improve the accuracy of bluetooth code matching, in this embodiment, a three-step response method is used to perform bluetooth code matching, and specifically, a combinational logic code matched with the intelligent master device is obtained, where it is to be noted that the combinational logic code matched with the intelligent master device is a combinational logic code that can characterize the identity of the intelligent master device, after the combinational logic code matched with the intelligent master device is obtained, an encoder of the intelligent master device encodes the combinational logic code and transmits the encoded combinational logic code (i.e., a bluetooth communication code) through bluetooth transmission, and determines whether to capture third response confirmation information transmitted from the control device, and it is to be noted that after capturing the bluetooth communication code transmitted from the intelligent master device, the third response confirmation information corresponding to the bluetooth communication code is generated, and the bluetooth communication code and the third response confirmation information are transmitted to the intelligent master device through bluetooth transmission The equipment controls the slave control equipment to establish connection with the intelligent master equipment according to the third response confirmation information if the intelligent master equipment captures the third response confirmation information transmitted by the slave control equipment
Further, it can be understood that the slave control device includes a slave control device having an infrared emission function and a slave control device only having a bluetooth emission function, when the slave control device is the slave control device having the infrared emission function, the slave control device may send a corresponding infrared communication code in advance, where it is to be noted that the infrared communication code of the slave control device is a combinational logic code corresponding to the identity of the slave control device, so after the intelligent master device enters a bluetooth code matching mode, it is determined whether to capture the infrared communication code transmitted by the slave control device, if the intelligent master device captures the infrared communication code transmitted by the slave control device, the intelligent master device decodes the infrared communication code to perform identity verification on the slave control device, and after the identity verification passes, obtains the combinational logic code matched with the intelligent master device, the method includes the steps that after the combined logic code matched with the intelligent master device is obtained, the encoder of the intelligent master device encodes the combined logic code and transmits the encoded combined logic code (namely, the Bluetooth communication code) through Bluetooth transmission, when the Bluetooth communication code transmitted by the intelligent master device is captured by the slave control device, the slave control device decodes the Bluetooth communication code to obtain the combined logic code of the intelligent master device, then the combined logic code of the intelligent master device is verified, and after the verification is passed, the slave control device and the intelligent master device are judged to be successful in Bluetooth code matching, and the slave control device and the intelligent master device are controlled to be connected.
Specifically, step S502 further includes:
step S5021: generating fourth response confirmation information corresponding to the third response confirmation information;
step S5022: and transmitting the fourth response confirmation information to enable the slave control equipment to establish connection with the intelligent master equipment according to the fourth response confirmation information.
After the intelligent master device captures third response confirmation information transmitted by the slave control device, the intelligent master device generates fourth response confirmation information corresponding to the third response confirmation information and transmits the fourth response confirmation information to the slave control device in a Bluetooth transmission mode, and if the slave control device captures the fourth response confirmation information transmitted by the intelligent master device, the slave control device judges that Bluetooth code matching with the intelligent master device is successful and controls the slave control device to establish connection with the intelligent master device.
Further, in this embodiment, after the step 50, the method further includes:
if the Bluetooth signal transmitted by the slave control equipment is captured, converting the Bluetooth signal into an electric signal;
and decoding the electric signal to obtain a control instruction corresponding to the electric signal, and responding to the control instruction.
In this step, it should be noted that, after the slave control device is connected to the bluetooth of the intelligent master device, the slave control device sends a corresponding control command to the intelligent master device through the bluetooth, and then the intelligent master device monitors in real time whether to capture a bluetooth signal transmitted by the slave control device, and if the bluetooth signal transmitted by the slave control device is captured by the intelligent master device, the bluetooth signal is converted into an electrical signal, and the electrical signal is decoded to obtain a control command corresponding to the electrical signal, so as to respond to the control command.
Based on the scheme, when the Hall switch is detected to be in the off state, the intelligent main device is controlled to enter a Bluetooth code matching mode; the Bluetooth communication code is transmitted to establish connection with the slave control equipment according to the Bluetooth communication code, therefore, intelligent one-to-one Bluetooth code matching is achieved through a Hall switch of the slave control equipment, and the Bluetooth code matching accuracy of the slave control equipment is improved.
In addition, this embodiment still provides a bluetooth to sign indicating number controlling means. Referring to fig. 4, 4
In this embodiment, the bluetooth code matching control device is a virtual device, and is stored in the memory 1005 of the bluetooth code matching control device shown in fig. 1, so as to implement all functions of the bluetooth code matching control program: the slave control equipment is controlled to enter a Bluetooth code matching mode when the Hall switch is detected to be in a closed state; and the slave control equipment is controlled to be connected with the intelligent main equipment if the Bluetooth communication code transmitted by the intelligent main equipment is captured.
Specifically, the bluetooth code matching control device comprises:
the control module 10 is used for controlling the intelligent main equipment to enter a Bluetooth code matching mode when the Hall switch is detected to be in a closed state;
and the connection module 20 is configured to control the slave control device to establish connection with the intelligent master device if the bluetooth communication code transmitted by the intelligent master device is captured.
Further, the control module is further configured to:
if the Bluetooth communication code transmitted by the intelligent main equipment is captured, first response confirmation information corresponding to the Bluetooth communication code is generated;
and controlling the slave control equipment to establish connection with the intelligent master equipment according to the Bluetooth communication code and the first response confirmation information.
Further, the control module is further configured to:
transmitting the Bluetooth communication code and the first response confirmation information, and judging whether second response confirmation information transmitted by the intelligent main equipment is captured or not;
and if second response confirmation information transmitted by the intelligent main equipment is captured, judging that the Bluetooth code matching between the slave control equipment and the intelligent main equipment is successful, and controlling the slave control equipment to establish connection with the intelligent main equipment.
Further, the control module is further configured to:
and emitting an infrared communication code so that the intelligent main equipment can emit the Bluetooth communication code according to the infrared communication code.
In addition, an embodiment of the present invention further provides a computer storage medium, where a bluetooth code matching control program is stored on the computer storage medium, and when the bluetooth code matching control program is executed by a processor, the steps of the bluetooth code matching control method are implemented, which are not described herein again.
Compared with the prior art, the Bluetooth code matching control method, the Bluetooth code matching control device and the computer storage medium provided by the invention comprise the following steps: when the Hall switch is detected to be in the closed state, the slave control equipment is controlled to enter a Bluetooth code matching mode; if the Bluetooth communication code transmitted by the intelligent master device is captured, the slave control device is controlled to be connected with the intelligent master device, therefore, intelligent one-to-one Bluetooth code matching is realized through a Hoel switch of the slave control device, and the Bluetooth code matching accuracy of the slave control device is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system 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 system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all equivalent structures or flow transformations made by the present specification and drawings, or used directly or indirectly in other related fields are included in the scope of the present invention.

Claims (10)

1. A Bluetooth code matching control method is applied to a slave control device, the slave control device is provided with a code matching device, wherein the code matching device comprises a Hall switch, and the method comprises the following steps:
when the Hall switch is detected to be in the closed state, the slave control equipment is controlled to enter a Bluetooth code matching mode;
and if the Bluetooth communication code transmitted by the intelligent master equipment is captured, controlling the slave control equipment to establish connection with the intelligent master equipment.
2. The method of claim 1, wherein the step of establishing a connection with the intelligent host device if the bluetooth communication code transmitted by the intelligent host device is captured comprises:
if the Bluetooth communication code transmitted by the intelligent main equipment is captured, first response confirmation information corresponding to the Bluetooth communication code is generated;
and controlling the slave control equipment to establish connection with the intelligent master equipment according to the Bluetooth communication code and the first response confirmation information.
3. The method according to claim 2, wherein the step of controlling the slave control device to establish connection with the smart master device according to the bluetooth communication code and the first acknowledgement information comprises:
transmitting the Bluetooth communication code and the first response confirmation information, and judging whether second response confirmation information transmitted by the intelligent main equipment is captured or not;
and if second response confirmation information transmitted by the intelligent main equipment is captured, judging that the Bluetooth code matching between the slave control equipment and the intelligent main equipment is successful, and controlling the slave control equipment to establish connection with the intelligent main equipment.
4. The method according to claim 1, wherein before the step of controlling the slave control device to establish a connection with the intelligent master device if the bluetooth communication code transmitted by the intelligent master device is captured, the method further comprises:
and transmitting an infrared communication code so that the intelligent main equipment can transmit the Bluetooth communication code according to the infrared communication code.
5. A Bluetooth code matching control method is applied to an intelligent master device, the intelligent master device is provided with a code matching device, the code matching device comprises a Hall switch, and the method comprises the following steps:
when the Hall switch is detected to be in a closed state, the intelligent main equipment is controlled to enter a Bluetooth code matching mode;
transmitting a Bluetooth communication code to establish a connection with a slave control device according to the Bluetooth communication code.
6. The method according to claim 5, characterized in that said step of transmitting a Bluetooth communication code to establish a connection with a slave control device according to said Bluetooth communication code:
transmitting a Bluetooth communication code, and judging whether the third response confirmation information transmitted from the control equipment is captured or not;
and if third response confirmation information transmitted by the slave control equipment is captured, controlling the slave control equipment to establish connection with the intelligent master equipment according to the third response confirmation information.
7. The method according to claim 6, wherein the step of controlling the slave control device to establish connection with the intelligent master device according to the third response confirmation information comprises:
generating fourth response confirmation information corresponding to the third response confirmation information;
and transmitting the fourth response confirmation information to enable the slave control equipment to establish connection with the intelligent master equipment according to the fourth response confirmation information.
8. The method according to any one of claims 5 to 7, wherein, after the step of transmitting the Bluetooth communication code to establish a connection with a slave control device according to the Bluetooth communication code, further comprising:
if the Bluetooth signal transmitted by the slave control equipment is captured, converting the Bluetooth signal into an electric signal;
and decoding the electric signal to obtain a control instruction corresponding to the electric signal, and responding to the control instruction.
9. A Bluetooth code matching control device, comprising:
the control module is used for controlling the intelligent main equipment to enter a Bluetooth code matching mode when the Hall switch is detected to be in a closed state;
and the connection module is used for controlling the slave control equipment to establish connection with the intelligent main equipment if capturing the Bluetooth communication code transmitted by the intelligent main equipment.
10. A computer storage medium having a bluetooth code pairing control program stored thereon, wherein the bluetooth code pairing control program when executed by a processor implements the steps of the bluetooth code pairing control method according to any one of claims 1-4 or 5-8.
CN202011028949.4A 2020-09-24 2020-09-24 Bluetooth code matching control method and device and computer storage medium Active CN112383903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011028949.4A CN112383903B (en) 2020-09-24 2020-09-24 Bluetooth code matching control method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011028949.4A CN112383903B (en) 2020-09-24 2020-09-24 Bluetooth code matching control method and device and computer storage medium

Publications (2)

Publication Number Publication Date
CN112383903A true CN112383903A (en) 2021-02-19
CN112383903B CN112383903B (en) 2023-07-25

Family

ID=74579859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011028949.4A Active CN112383903B (en) 2020-09-24 2020-09-24 Bluetooth code matching control method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN112383903B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116761234A (en) * 2023-08-18 2023-09-15 深圳雷柏科技股份有限公司 Equipment code matching method and system
CN117112472A (en) * 2023-10-19 2023-11-24 深圳雷柏科技股份有限公司 Communication control method, device, equipment and medium for peripheral code matching and connection

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040203534A1 (en) * 2002-04-11 2004-10-14 Samsung Electronics Co., Ltd. Circuit and method for processing a malfunction of a hall effect switch used for recognition of an open/close state of a flip or a folder type terminal
CN102983892A (en) * 2012-11-19 2013-03-20 深圳市文鼎创数据科技有限公司 Method and system for bluetooth pairing
CN104602230A (en) * 2013-10-31 2015-05-06 深圳富泰宏精密工业有限公司 Bluetooth communication device and method for using same
CN106686541A (en) * 2017-03-22 2017-05-17 北京小米移动软件有限公司 Bluetooth relaying method and device
CN106712811A (en) * 2016-11-29 2017-05-24 深圳天珑无线科技有限公司 Bluetooth connection method based on Hall switch and apparatus thereof
WO2019178709A1 (en) * 2018-02-02 2019-09-26 深圳市迈斯科技有限公司 Bluetooth earphones having magnetic control tws
CN110572869A (en) * 2019-09-11 2019-12-13 武汉拓宝科技股份有限公司 equipment awakening method and device based on BLE and Hall switch

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040203534A1 (en) * 2002-04-11 2004-10-14 Samsung Electronics Co., Ltd. Circuit and method for processing a malfunction of a hall effect switch used for recognition of an open/close state of a flip or a folder type terminal
CN102983892A (en) * 2012-11-19 2013-03-20 深圳市文鼎创数据科技有限公司 Method and system for bluetooth pairing
CN104602230A (en) * 2013-10-31 2015-05-06 深圳富泰宏精密工业有限公司 Bluetooth communication device and method for using same
CN106712811A (en) * 2016-11-29 2017-05-24 深圳天珑无线科技有限公司 Bluetooth connection method based on Hall switch and apparatus thereof
CN106686541A (en) * 2017-03-22 2017-05-17 北京小米移动软件有限公司 Bluetooth relaying method and device
WO2019178709A1 (en) * 2018-02-02 2019-09-26 深圳市迈斯科技有限公司 Bluetooth earphones having magnetic control tws
CN110572869A (en) * 2019-09-11 2019-12-13 武汉拓宝科技股份有限公司 equipment awakening method and device based on BLE and Hall switch

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116761234A (en) * 2023-08-18 2023-09-15 深圳雷柏科技股份有限公司 Equipment code matching method and system
CN117112472A (en) * 2023-10-19 2023-11-24 深圳雷柏科技股份有限公司 Communication control method, device, equipment and medium for peripheral code matching and connection
CN117112472B (en) * 2023-10-19 2024-03-15 深圳雷柏科技股份有限公司 Communication control method, device, equipment and medium for peripheral code matching and connection

Also Published As

Publication number Publication date
CN112383903B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
CN107276864B (en) Method, device and system for controlling household appliances by intelligent voice equipment
CN107730859B (en) Wireless device pairing method, device and storage medium
CN105471686B (en) Terminal control method, device and system
CN108111999B (en) Device sharing request and control method, electronic device and storage medium
CN112383903A (en) Bluetooth code matching control method and device and computer storage medium
CN109982123B (en) Matching method and device
CN103973748A (en) Intelligent home system and monitoring method implemented by same
US20140355993A1 (en) Electronic device and storage medium with remote control function, and remote control method
EP4064618A1 (en) Network configuration terminal, network configuration method for household appliance, and computer-readable storage medium
CN104980322A (en) Method and device for linking network access equipment
CN107702274B (en) Terminal control method, device and computer readable storage medium
WO2017143743A1 (en) Heterogeneous protocol communication method and controller
JP6249229B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM
EP2874465B1 (en) Method and system for remote equipment data installation
JP6701377B2 (en) SIP information analysis method, device, server and medium
CN111081005B (en) Directional remote control method, device, equipment and storage medium
KR100619745B1 (en) Remote appliance control system and method in using robot cleaner
US9852557B2 (en) Physical access control system
JP2023524546A (en) Home appliance and its network setting method, control terminal, computer storage medium
CN105162770A (en) Intelligent home security protection system and control method thereof
CN108900586B (en) Household appliance, WIFI module, communication method between household appliance and WIFI module and terminal and readable storage medium
CN110942612A (en) Remote controller control method, remote controller and remote controller system
CN107809418B (en) Autonomous binding method and system for LoRa terminal equipment
CN105472451A (en) Data transmission method and device between terminals
EP2819349A1 (en) Communication device, communication method, and management device

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