CN110636485A - Bluetooth automatic connection method and method for initiating Bluetooth connection - Google Patents
Bluetooth automatic connection method and method for initiating Bluetooth connection Download PDFInfo
- Publication number
- CN110636485A CN110636485A CN201910893162.5A CN201910893162A CN110636485A CN 110636485 A CN110636485 A CN 110636485A CN 201910893162 A CN201910893162 A CN 201910893162A CN 110636485 A CN110636485 A CN 110636485A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- bluetooth unit
- unit
- mac address
- connection
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- 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
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a Bluetooth automatic connection method and a method for initiating Bluetooth connection, wherein the Bluetooth automatic connection method comprises the following steps: scanning a page sent by a first Bluetooth unit, and sending first response information to the page to the first Bluetooth unit; after the first Bluetooth unit is successfully paired, sending an MAC address to the first Bluetooth unit so that the MAC address can be stored by the first Bluetooth unit; when the first Bluetooth unit is triggered to preset a connection protocol, receiving the MAC address sent by the first Bluetooth unit, and judging whether the MAC address is consistent with the MAC address of the first Bluetooth unit; and when the MAC address is consistent with the MAC address of the first Bluetooth unit, directly establishing connection with the first Bluetooth unit. The technical scheme of the invention can automatically establish the connection between the Bluetooth and reduce the connection time.
Description
Technical Field
The invention relates to the technical field of Bluetooth, in particular to a Bluetooth automatic connection method and a method for initiating Bluetooth connection.
Background
In a standard Bluetooth protocol, a Bluetooth SIG adopts an authentication mode to perform data interaction in order to ensure the safety of Bluetooth communication, and simultaneously, in order to ensure the convenience of use, the first communication authentication between two Bluetooth devices is completed in a pairing mode, after pairing, subsequent communication connection does not need to be authenticated and confirmed every time, and subsequent high-level connection is established between the Bluetooth devices by using PIN codes or agreed keys.
However, the connection establishment between bluetooth devices by using PIN codes or agreed keys not only results in a long bluetooth connection period, but also many existing personal devices do not have a human-machine interface, and the PIN codes are usually set to a fixed value, for example, to 0000 or 1234, so that the PIN codes are easily broken and paired and connected, thereby greatly reducing the security performance of the bluetooth connection.
Disclosure of Invention
In view of the foregoing problems, an embodiment of the present invention provides an automatic bluetooth connection method and a method for initiating a bluetooth connection, so as to solve the deficiencies of the prior art.
According to an embodiment of the present invention, there is provided a bluetooth automatic connection method including:
scanning a page sent by a first Bluetooth unit, and sending first response information to the page to the first Bluetooth unit;
after the first Bluetooth unit is successfully paired, sending an MAC address to the first Bluetooth unit so that the MAC address can be stored by the first Bluetooth unit;
when the first Bluetooth unit is triggered to preset a connection protocol, receiving the MAC address sent by the first Bluetooth unit, and judging whether the MAC address is consistent with the MAC address of the first Bluetooth unit;
and when the MAC address is consistent with the MAC address of the first Bluetooth unit, directly establishing connection with the first Bluetooth unit.
In the above method for automatically connecting bluetooth, when the MAC address is not consistent with the MAC address of the bluetooth device, a message indicating that the connection is failed is provided.
In the above method for bluetooth automatic connection, before sending the MAC address to the first bluetooth unit, the method further includes:
determining whether the MAC address needs to be sent to the first Bluetooth unit according to the selection operation of a user;
and if the MAC address does not need to be sent to the first Bluetooth unit, receiving a connection request sent by the first Bluetooth unit, and sending second response information to the connection request to the first Bluetooth unit so that the first Bluetooth unit establishes connection according to the second response information.
According to another embodiment of the present invention, there is provided a method of initiating a bluetooth connection, including:
initiating paging to a second Bluetooth unit and receiving response information of the second Bluetooth unit to the paging;
pairing with the second Bluetooth unit according to the response information;
after the pairing is successful, receiving and storing the MAC address sent by the second Bluetooth unit;
and after a preset connection protocol is triggered in a preset starting mode, the MAC address is sent to the second Bluetooth unit in a broadcast mode, so that the second Bluetooth unit directly establishes connection when the MAC address is consistent with the MAC address of the second Bluetooth unit.
In the method for initiating a bluetooth connection, the preset starting mode includes triggering a preset key for a preset number of times or triggering the preset key and maintaining the preset.
In the above method for initiating a bluetooth connection, before receiving and storing the MAC address sent by the second bluetooth unit, the method further includes:
when the MAC address sent by the second Bluetooth unit is not received, sending a connection request to the second Bluetooth unit, and receiving second response information sent by the second Bluetooth unit;
and establishing connection with the second Bluetooth unit according to the second response information.
According to another embodiment of the present invention, a first bluetooth unit is provided, which includes a first memory for storing a computer program and a first processor for executing the computer program to make the first bluetooth unit execute the above method for initiating a bluetooth connection.
According to another embodiment of the present invention, there is provided a second bluetooth unit, including a second memory for storing a computer program and a second processor for executing the computer program to make the second bluetooth unit execute the above bluetooth automatic connection method.
According to another embodiment of the present invention, there is provided a voice control system, including the first bluetooth unit and the second bluetooth unit as described above:
after the first Bluetooth unit is connected with the second Bluetooth unit, the first Bluetooth unit is used for collecting voice information of a user and sending the voice information to the second Bluetooth unit;
the second Bluetooth unit is used for analyzing the voice information to obtain a control command so as to control the interaction between the second Bluetooth unit and the first Bluetooth unit according to the control command.
In the voice control system, the first bluetooth unit is a bluetooth pickup unit, and the bluetooth pickup unit comprises a bluetooth earphone, a bluetooth black ear, a bluetooth necklace, a bluetooth bracelet and a bluetooth ring; the second Bluetooth unit is a Bluetooth voice processing unit, and the Bluetooth voice processing unit comprises a Bluetooth TV terminal, a Bluetooth mobile terminal and a Bluetooth server terminal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the invention relates to a Bluetooth automatic connection method and a Bluetooth connection initiating method, which can avoid the problem of establishing connection through PIN codes or agreed keys in the existing Bluetooth connection, after the pairing is successful, the MAC address of a second Bluetooth unit is used as an authentication code, after the MAC address is broadcasted by a first Bluetooth unit, the second Bluetooth unit compares the received MAC address with the MAC address of the second Bluetooth unit, if the MAC address is consistent with the MAC address of the first Bluetooth unit, the connection between the first Bluetooth unit and the second Bluetooth unit is automatically and directly established, the problem of overlong connection period established through the PIN codes or the agreed keys in the existing Bluetooth connection is avoided, the MAC address is the unique identifier of the Bluetooth unit, the connection cannot be repeated and is not easy to crack, the safety of the Bluetooth connection is improved, and the user experience is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the present invention, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating an automatic bluetooth connection method according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating an automatic bluetooth connection method according to a second embodiment of the present invention.
Fig. 3 is a flowchart illustrating a method for initiating a bluetooth connection according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram illustrating a speech control system according to a fourth embodiment of the present invention.
Fig. 5 is a schematic diagram illustrating signaling interaction between a first bluetooth unit and a second bluetooth unit according to a fourth embodiment of the present invention.
Description of the main element symbols:
400-a voice control system; 410-a first bluetooth unit; 420-second bluetooth unit.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Hereinafter, the terms "including", "having", and their derivatives, which may be used in various embodiments of the present invention, are only intended to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing, and should not be construed as first excluding the existence of, or adding to, one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in commonly used dictionaries) should be interpreted as having a meaning that is consistent with their contextual meaning in the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in various embodiments of the present invention.
Example 1
Fig. 1 is a flowchart illustrating an automatic bluetooth connection method according to a first embodiment of the present invention.
The Bluetooth automatic connection method is applied to a second Bluetooth unit, the second Bluetooth unit can be a Bluetooth voice processing unit, and the Bluetooth voice processing unit comprises a Bluetooth TV terminal, a Bluetooth mobile terminal, a Bluetooth server terminal and the like.
The Bluetooth automatic connection method comprises the following steps:
in step S110, a page sent by the first bluetooth unit is scanned, and a first response message to the page is sent to the first bluetooth unit.
Specifically, in the process of establishing a connection between the first bluetooth unit and the second bluetooth unit, two connection processes are required, the first connection process is a pairing process, and the second connection process is a connection process.
Any wireless communication technology has the possibility of being monitored and cracked, Bluetooth adopts an authentication mode to carry out data interaction in order to ensure the safety, and the authentication process is the pairing process. In order to ensure the convenience of Bluetooth use, the first communication authentication between the first Bluetooth unit and the second Bluetooth unit is completed in a pairing mode, and after the first Bluetooth unit and the second Bluetooth unit are paired, the first Bluetooth unit and the second Bluetooth unit do not need to be authenticated each time in the process of establishing connection each time.
The first Bluetooth unit is used as a master device for initiating a connection request, firstly, a paging is initiated to the second Bluetooth unit in a frequency hopping mode in a Bluetooth working frequency band, the second Bluetooth unit is used as a slave device for receiving the connection request, and the paging is scanned from each frequency hopping in the Bluetooth working frequency band at intervals of preset time.
Of course, the second bluetooth unit may scan for at least one page indicating that it received a connection request from multiple first bluetooth units.
Upon receiving a page, the second bluetooth unit, after scanning the page, generates a first response message (which may also be an ACK message) for the page and sends the first response message to the first bluetooth unit that initiated the page.
When a plurality of pages are received, after the second Bluetooth unit scans the pages, a first response message is generated for each page, and the first response message is sent to a paging initiating terminal corresponding to the first response message, namely, the first Bluetooth unit corresponding to the first response message.
In step S120, after pairing with the first bluetooth unit is successful, the MAC address is sent to the first bluetooth unit to store the MAC address by the first bluetooth unit.
Specifically, after receiving the first response message, the first bluetooth unit regards that the second bluetooth unit initiating the first response message agrees to the pairing request, and then pairs with the second bluetooth unit, which may also be regarded as establishing a connection of an ACL link.
After the first Bluetooth unit and the second Bluetooth unit are successfully paired, the subsequent high-level connection which is different from classic Bluetooth and is established by using PIN codes or agreed keys is established, the second Bluetooth unit directly sends the MAC address of the second Bluetooth unit to the first Bluetooth unit as a connection password, the first Bluetooth unit receives and stores the MAC address, and in the mode, the MAC address is information carried by each Bluetooth unit, and the MAC addresses of the Bluetooth units are different, so that the steps of generating the PIN codes or the agreed passwords are not needed, the subsequent connection is directly performed through the MAC address, the connection safety is improved, and the connection period is shortened.
In step S130, when the first bluetooth unit is triggered to set the connection protocol in advance, the MAC address sent by the first bluetooth unit is received.
Specifically, after the first bluetooth unit triggers the preset connection protocol, the first bluetooth unit initiates a connection request to the second bluetooth unit, and sends the stored MAC address to the second bluetooth unit in a broadcast manner. The predetermined connection protocol includes a point-to-point protocol and a point-to-multipoint protocol, that is, bluetooth supports point-to-point connection and also supports point-to-multipoint connection.
Of course, the transmitting MAC address can still be broadcast in a frequency hopping fashion.
In step S140, it is determined whether the MAC address matches the MAC address of the host.
Specifically, when the MAC address is scanned, the second bluetooth unit compares the scanned MAC address with its own MAC address, determines whether the MAC address is consistent with its own MAC address, and if so, indicates that the MAC address is successfully verified, and proceeds to step S160; if the MAC address is not consistent with the MAC address of the MAC address itself, it indicates that the MAC address verification fails and the current connection is in error, and the process proceeds to step S150.
The MAC address replaces the PIN code or the appointed password, and due to the uniqueness of the MAC address, the safety problem that the PIN code or the appointed password is cracked can be solved, and meanwhile, the steps of actively generating the PIN code or the appointed password are reduced. In addition, after the Bluetooth triggers the preset connection protocol, the first Bluetooth unit can be automatically triggered to actively broadcast the stored MAC address, after the second Bluetooth unit receives the MAC address, the MAC address is respectively compared with the MAC address of the second Bluetooth unit, if the MAC address is consistent with the MAC address, the first Bluetooth unit and the second Bluetooth unit can be automatically connected, the connection period among the Bluetooth units is shortened, the connection speed is increased, and automatic connection can be realized.
If only one second bluetooth unit exists in the current environment and the first bluetooth unit broadcasts only one MAC address (the MAC address is the stored MAC address of the second bluetooth unit), the second bluetooth unit compares only the received one MAC address with its own MAC address to obtain a consistent comparison result, and then proceeds to step S160. Certainly, there is also an address broadcasted by the first bluetooth unit as an erroneous MAC address (for example, the first bluetooth unit selects an erroneous MAC address from the stored MAC addresses to broadcast), then the comparison result of the second bluetooth unit at this time is inconsistent, and the process proceeds to step S150 to prompt a message that the MAC addresses are inconsistent.
In step S150, a message indicating this connection failure is presented.
In step S160, a connection is established directly with the first bluetooth unit.
Specifically, the second bluetooth unit determines that the MAC address sent by the scanned first bluetooth unit is consistent with its own MAC address, which means that the MAC address is verified, and then the second bluetooth unit directly establishes connection with the first bluetooth unit.
Example 2
Fig. 2 is a flowchart illustrating an automatic bluetooth connection method according to a second embodiment of the present invention.
The Bluetooth automatic connection method is applied to a second Bluetooth unit, the second Bluetooth unit can be a Bluetooth voice processing unit, and the Bluetooth voice processing unit comprises a Bluetooth TV terminal, a Bluetooth mobile terminal, a Bluetooth server terminal and the like.
In step S210, a page sent by the first bluetooth unit is scanned, and a first response message to the page is sent to the first bluetooth unit.
This step is the same as step S110, and is not described herein again.
In step S220, it is determined whether a MAC address needs to be sent to the first bluetooth unit.
Specifically, after receiving first response information sent by a second bluetooth unit, a first bluetooth unit is paired with the second bluetooth unit. After the pairing is successful, the second bluetooth unit determines whether the MAC address needs to be sent to the first bluetooth unit, which means that the second bluetooth unit determines whether to establish connection with the first bluetooth unit in the automatic connection manner described in this embodiment, and if the second bluetooth unit is connected with the first bluetooth unit in the automatic connection manner, the MAC address needs to be sent to the first bluetooth unit, and the process proceeds to step S230; if the connection with the first bluetooth unit is not performed by the automatic connection method (which can be regarded as a method of performing a general bluetooth connection), the MAC address does not need to be transmitted to the first bluetooth unit, and the process proceeds to step S240.
In this embodiment, the second bluetooth unit may set an option, where the option includes two schemes, the first scheme is a connection through a general bluetooth connection mode, and the second scheme is a connection through an automatic connection mode, and if the user selects the first scheme, because the general bluetooth connection mode does not need a MAC address, but generates a PIN code or an agreed password, the MAC address is not sent to the first bluetooth unit; if the user selects the second scheme, the MAC address is sent to the first Bluetooth unit.
In other embodiments, a default connection mode may be preset, the second bluetooth unit obtains information of the default connection mode, and if the default connection mode is an automatic connection mode, the MAC address is sent to the first bluetooth unit; if the default connection mode is a normal Bluetooth connection mode, the MAC address is not sent to the first Bluetooth unit.
In step S230, after pairing with the first bluetooth unit is successful, the MAC address is sent to the first bluetooth unit to store the MAC address by the first bluetooth unit.
In step S240, the connection request sent by the first bluetooth unit is received, and second response information to the connection request is sent to the first bluetooth unit.
Specifically, when the second bluetooth unit determines to establish connection with the first bluetooth unit through a general bluetooth connection mode, the first bluetooth unit initiates a connection request to the second bluetooth unit, and after receiving the connection request sent by the first bluetooth unit and responding to the confirmation operation of the user on the connection request, the second bluetooth unit sends second response information to the connection request to the first bluetooth unit.
It should be noted that the operation of confirming the connection request by the user may include an operation of verifying whether the PIN code or the agreed password is consistent with the PIN code or the agreed password in the first bluetooth unit, if so, the verification is passed, and the connection request is confirmed, otherwise, the connection request is not confirmed, and the connection is not performed.
In step S250, when the first bluetooth unit is triggered to the preset connection protocol, the MAC address transmitted by the first bluetooth unit is received.
This step is the same as step S130, and is not described herein again.
In step S260, it is determined whether the MAC address matches the MAC address of the host.
The second bluetooth unit determines whether the MAC address is consistent with its own MAC address, and if so, proceeds to step S280, otherwise, proceeds to step S270.
In step S270, a message indicating that the connection has failed this time is presented.
In step S280, a connection is established directly with the first bluetooth unit.
The embodiment of the present invention further provides a second bluetooth unit, where the second bluetooth unit includes a second memory and a second processor, the second memory is used for storing a computer program, and the second processor runs the computer program to enable the second bluetooth unit to execute the above-mentioned bluetooth automatic connection method.
Example 3
Fig. 3 is a flowchart illustrating a method for initiating a bluetooth connection according to a third embodiment of the present invention.
The method for initiating the Bluetooth connection is applied to a first Bluetooth unit, wherein the first Bluetooth unit is a Bluetooth pickup unit, and the Bluetooth pickup unit comprises a Bluetooth earphone, a Bluetooth black ear, a Bluetooth necklace, a Bluetooth bracelet, a Bluetooth ring and the like.
In step S310, a page is initiated to the second Bluetooth unit and response information of the second Bluetooth unit to the page is received.
Specifically, a first bluetooth unit, as a master device initiating a connection request, first initiates a page to a second bluetooth unit in a frequency hopping manner within a bluetooth operating frequency band, and the second bluetooth unit, as a slave device receiving the connection request, scans the page from each frequency hopping within the bluetooth operating frequency band at preset time intervals and responds to the page.
In step S320, the second bluetooth unit is paired according to the response information.
Specifically, the first bluetooth unit directly pairs with the second bluetooth unit according to the received response information sent by the second bluetooth unit.
In step S330, after the pairing is successful, the MAC address sent by the second bluetooth unit is received.
Specifically, after the pairing is successful, the first bluetooth unit receives the MAC address sent by the second bluetooth unit, and stores the MAC address in the local storage unit.
In step S340, after triggering the predetermined connection protocol in the predetermined starting manner, the MAC address is sent to the second bluetooth unit in a broadcast manner, so that the second bluetooth unit directly establishes a connection when the MAC address is consistent with the MAC address of the second bluetooth unit.
Further, the preset starting mode comprises triggering a preset key for a preset number of times continuously or triggering the preset key and maintaining a preset time.
Specifically, the first bluetooth unit is provided with a predetermined key, and the predetermined key may be a physical key or a virtual key. In this embodiment, the existing start key may be used as the predetermined key. Of course, in some other embodiments, a new key may be provided on the first bluetooth unit, and the new key is used to trigger the predetermined connection protocol.
The predetermined connection protocol includes a point-to-point protocol and a point-to-multipoint protocol. Typically, two bluetooth units are connected via a point-to-point protocol. More than two Bluetooth units can be connected through a point-to-multipoint protocol.
For example, the user may activate the activation key of the first bluetooth unit 2 times or activate the activation key of the first bluetooth unit and maintain for 3 seconds, etc. in succession.
After triggering the preset connection protocol, the first bluetooth unit can establish a connection with the second bluetooth unit, and the process of establishing the connection is as follows: the first Bluetooth unit broadcasts the stored MAC address in a broadcasting mode.
And after scanning the MAC address broadcast by the first Bluetooth unit, the second Bluetooth unit judges whether the MAC address is consistent with the MAC address of the second Bluetooth unit, and if so, the second Bluetooth unit directly establishes connection with the first Bluetooth unit.
Further, before receiving and storing the MAC address sent by the second bluetooth unit, the method further includes:
when the MAC address sent by the second Bluetooth unit is not received, sending a connection request to the second Bluetooth unit, and receiving second response information sent by the second Bluetooth unit; and establishing connection with the second Bluetooth unit according to the second response information.
Specifically, when the second bluetooth unit determines not to send the MAC address to the first bluetooth unit, and establishes a connection with the first bluetooth unit in a general bluetooth connection manner, the first bluetooth unit initiates a connection request to the second bluetooth unit, and after receiving the connection request sent by the first bluetooth unit, the second bluetooth unit responds to a confirmation operation of the user on the connection request, and sends second response information to the connection request to the first bluetooth unit.
It should be noted that the operation of confirming the connection request by the user may include an operation of verifying whether the PIN code or the agreed password is consistent with the PIN code or the agreed password in the first bluetooth unit, if so, the verification is passed, and the connection request is confirmed, otherwise, the connection request is not confirmed, and the connection is not performed.
The embodiment of the present invention further provides a first bluetooth unit, where the first bluetooth unit includes a first memory and a first processor, the first memory is used for storing a computer program, and the first processor runs the computer program to enable the first bluetooth unit to execute the above method for initiating a bluetooth connection.
Example 4
Fig. 4 is a schematic structural diagram illustrating a voice control system according to a second embodiment of the present invention. The voice control system 400 includes a first bluetooth unit 410 and a second bluetooth unit 420.
The automatic bluetooth connection method in embodiment 1 and embodiment 2 is fully applicable to the second bluetooth unit in this embodiment, and the method of initiating a bluetooth connection in embodiment 3 is fully applicable to the first bluetooth unit 410 in this embodiment.
After the first bluetooth unit 410 establishes a connection with the second bluetooth unit 420, the first bluetooth unit 410 is configured to collect voice information of a user, and send the voice information to the second bluetooth unit 420.
The second bluetooth unit 420 is configured to parse the voice information to obtain a control command, so as to control interaction between the second bluetooth unit and the first bluetooth unit 410 according to the control command.
Specifically, as shown in fig. 5, two bluetooth units are taken as an example to describe the process of establishing connection between the first bluetooth unit 410 and the second bluetooth unit 420:
a1: the first bluetooth unit 410 initiates paging to the second bluetooth unit 420 by means of frequency hopping;
a2: the second bluetooth unit 420 scans for pages within each frequency hopping band;
a3: after scanning the page initiated by the first bluetooth unit 410, the second bluetooth unit 420 responds to the page and sends a first response message to the first bluetooth unit 410;
a4: the first bluetooth unit 410 matches the second bluetooth unit 420 after receiving the first response message;
a5: after the pairing is successful, the second bluetooth unit 420 determines whether to send the MAC address to the first bluetooth unit 410;
a6: if the determination result is yes, the second bluetooth unit 420 sends its own MAC address to the first bluetooth unit 410;
a7: after receiving the MAC address, the first bluetooth unit 410 stores the MAC address in a local memory;
a8: the first bluetooth unit 410 triggers a point-to-point protocol through a preset starting mode;
a9: after triggering the point-to-point protocol, the first bluetooth unit 410 broadcasts out the stored MAC address;
a10: the second bluetooth unit 420 scans all broadcasts to obtain the MAC address sent by the first bluetooth unit 410, and compares the MAC address with its own MAC address to determine whether to establish a connection with the first bluetooth unit 410;
a11: the second bluetooth unit 420 establishes a point-to-point connection directly with the first bluetooth unit 410 after the MAC address coincides with its own MAC address.
The above whole signaling interaction process realizes the automatic connection between the first bluetooth unit 410 and the second bluetooth unit 420, and the automatic verification is performed by uniquely identifying the MAC address without the steps of confirming the PIN code or agreeing the password by both parties.
It is noted that the proprietary protocol specified in the signaling interaction process is supported in both the first bluetooth unit 410 and the second bluetooth unit 420.
After the first bluetooth unit 410 establishes a connection with the second bluetooth unit 420, the first bluetooth unit 410 collects voice information of a user and transmits the voice information to the second bluetooth unit 420 through the bluetooth connection.
The second bluetooth unit 420 analyzes the voice information through a voice decoding device or program to obtain a control command, so as to control the interaction between the second bluetooth unit 420 and the first bluetooth unit 410 according to the control command.
Wherein, first bluetooth unit 410 can be the bluetooth pickup unit, the bluetooth pickup unit includes bluetooth headset, bluetooth ear-shaped earphone, bluetooth necklace, bluetooth bracelet and bluetooth ring etc..
The second bluetooth unit 420 is a bluetooth voice processing unit, and the bluetooth voice processing unit includes a bluetooth TV terminal, a bluetooth mobile terminal, a bluetooth server terminal, and the like.
The application scenarios of the bluetooth sound pickup unit and the bluetooth voice processing unit may include: for example, the current scenario of a TV interacting with a user by voice can be divided into near-field voice and far-field voice. Wherein near field speech is typically equipped with a bluetooth wireless communication module. However, in near-field speech, the sound pickup unit for intelligent speech interaction is often performed through a remote controller, and a call can be made only by holding the remote controller of the TV with a hand and pressing a speech key. In order to release hands and enable a voice interaction mode to be more natural, a user can interact with a TV in a far-field voice mode, and the core difference between a far field and a near field from an application scene is that the step of pressing a voice key is omitted, the distance between the user and a voice device is pulled, and two hands are thoroughly liberated, so that the mode is closer to a natural voice interaction mode.
At present, far-field voice needs a microphone array mode, words need to be awakened, the voice is limited by multiple complex factors such as background noise, other sound interference, echo and reverberation, the identification distance cannot be far, the identification has directivity, the identification rate is low, and the like, so that obvious pain points are caused, the user requirements cannot be met due to the fact that voice interaction experience is not satisfactory in many scenes, particularly, the problem of mistaken awakening exists, the problem that a half-night TV is frequently awakened to start up by mistake is solved, and the user experience is seriously influenced. In addition, when the far-field sound pickup unit is in standby, the far-field sound pickup unit needs to be kept working, so that the standby power consumption is high, and the regulation requirement of the standby power consumption cannot be met (the regulation requirement of the Chinese market requires that the standby power consumption is less than 0.5 w).
Therefore, through the wearable Bluetooth pickup unit, for example, interaction is performed between the Bluetooth headset and the TV, after the Bluetooth headset is connected with the TV, the TV end is switched to a Bluetooth headset mode, the loudspeaker box of the TV end is closed, and a control command is sent to the TV through the Bluetooth headset and all sound information sent by the TV is received for playing.
However, the current bluetooth headset and TV conform to the standard bluetooth protocol, and have the disadvantages of long pairing time and incapability of automatic connection.
Therefore, the wearable Bluetooth headset with the automatically-connectable private protocol can pick up sound, so that the problem that near-field voice needs to be held by hands is solved, and the problems that the recognition distance of far-field voice cannot be far, the recognition directivity is poor, the recognition rate is low, and obvious pain points such as mistaken awakening are caused are solved. The user can use the Bluetooth headset to remotely control intelligent household equipment such as a TV and the like by voice; therefore, the existing far-speaking voice can be replaced, and the voice recognition accuracy is improved, so that the method is more natural. Therefore, the problem that near-field voice needs to be held by hands is avoided, and the problems that the recognition distance of far-field voice can not be far, the directivity is recognized, the recognition rate is low, false awakening exists and other obvious pain points are avoided. Importantly, automatic connection can be realized, the pairing connection period is short, and the connection is safer.
Of course, the application scenario of the present invention is not limited to the bluetooth headset and the TV described above, but may also be applied to more automatic connection scenarios, which is not limited herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, each functional module or unit in each embodiment of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention or a part of the technical solution that contributes to the prior art in essence can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention.
Claims (10)
1. A Bluetooth automatic connection method is characterized by comprising the following steps:
scanning a page sent by a first Bluetooth unit, and sending first response information to the page to the first Bluetooth unit;
after pairing with the first Bluetooth unit is successful, sending an MAC address to the first Bluetooth unit so that the MAC address can be stored by the first Bluetooth unit;
when the first Bluetooth unit is triggered to preset a connection protocol, receiving the MAC address sent by the first Bluetooth unit, and judging whether the MAC address is consistent with the MAC address of the first Bluetooth unit;
and when the MAC address is consistent with the MAC address of the first Bluetooth unit, directly establishing connection with the first Bluetooth unit.
2. The method according to claim 1, wherein when the MAC address is not identical to its own MAC address, a message indicating that the connection is failed is provided.
3. The bluetooth auto-connect method of claim 1, wherein said sending the MAC address to the first bluetooth unit is preceded by:
determining whether the MAC address needs to be sent to the first Bluetooth unit according to the selection operation of a user;
and if the MAC address does not need to be sent to the first Bluetooth unit, receiving a connection request sent by the first Bluetooth unit, and sending second response information to the connection request to the first Bluetooth unit so that the first Bluetooth unit establishes connection according to the second response information.
4. A method of initiating a bluetooth connection, comprising:
initiating paging to a second Bluetooth unit and receiving response information of the second Bluetooth unit to the paging;
pairing with the second Bluetooth unit according to the response information;
after the pairing is successful, receiving and storing the MAC address sent by the second Bluetooth unit;
and after a preset connection protocol is triggered in a preset starting mode, the MAC address is sent to the second Bluetooth unit in a broadcast mode, so that the second Bluetooth unit directly establishes connection when the MAC address is consistent with the MAC address of the second Bluetooth unit.
5. The method of claim 4, wherein the predetermined activation manner comprises triggering a predetermined key a predetermined number of times or triggering the predetermined key for a predetermined time.
6. The method of initiating a bluetooth connection according to claim 4, wherein the receiving and storing the MAC address sent by the second bluetooth unit is preceded by:
when the MAC address sent by the second Bluetooth unit is not received, sending a connection request to the second Bluetooth unit, and receiving second response information sent by the second Bluetooth unit;
and establishing connection with the second Bluetooth unit according to the second response information.
7. A first bluetooth unit, characterized in that the first bluetooth unit comprises a first memory for storing a computer program and a first processor for executing the computer program to cause the first bluetooth unit to perform the method of initiating a bluetooth connection according to any of claims 4-6.
8. A second bluetooth unit, characterized in that the second bluetooth unit comprises a second memory for storing a computer program and a second processor for executing the computer program to make the second bluetooth unit perform the method of bluetooth auto-connect according to any of claims 1-3.
9. A voice control system comprising the first bluetooth unit of claim 7 and the second bluetooth unit of claim 8:
after the first Bluetooth unit is connected with the second Bluetooth unit, the first Bluetooth unit is used for collecting voice information of a user and sending the voice information to the second Bluetooth unit;
the second Bluetooth unit is used for analyzing the voice information to obtain a control command so as to control the interaction between the second Bluetooth unit and the first Bluetooth unit according to the control command.
10. The voice control system according to claim 9, wherein the first bluetooth unit is a bluetooth sound pickup unit, and the bluetooth sound pickup unit is any one of a bluetooth headset, a bluetooth black ear, a bluetooth necklace, a bluetooth bracelet, and a bluetooth bracelet; the second Bluetooth unit is a Bluetooth voice processing unit, and the Bluetooth voice processing unit is any one of a Bluetooth TV terminal, a Bluetooth mobile terminal and a Bluetooth server terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910893162.5A CN110636485B (en) | 2019-09-20 | 2019-09-20 | Bluetooth automatic connection method and method for initiating Bluetooth connection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910893162.5A CN110636485B (en) | 2019-09-20 | 2019-09-20 | Bluetooth automatic connection method and method for initiating Bluetooth connection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110636485A true CN110636485A (en) | 2019-12-31 |
CN110636485B CN110636485B (en) | 2023-02-28 |
Family
ID=68972036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910893162.5A Active CN110636485B (en) | 2019-09-20 | 2019-09-20 | Bluetooth automatic connection method and method for initiating Bluetooth connection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110636485B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112261345A (en) * | 2020-09-23 | 2021-01-22 | 厦门亿联网络技术股份有限公司 | Automatic factory pairing and online method for video conference system equipment |
CN112333594A (en) * | 2020-11-03 | 2021-02-05 | 深圳市声临科技有限公司 | Audio switching method for Bluetooth headset and Bluetooth sound box |
CN113301545A (en) * | 2021-04-16 | 2021-08-24 | 珠海慧联科技有限公司 | Dynamic access Bluetooth device cascading method and device and electronic device |
CN113490158A (en) * | 2021-07-07 | 2021-10-08 | 荣耀终端有限公司 | Bluetooth device pairing connection method, electronic device, Bluetooth device and terminal system |
CN114302504A (en) * | 2021-12-31 | 2022-04-08 | 深圳市敦实电子有限公司 | Bluetooth headset pairing method and device |
CN115103341A (en) * | 2021-10-09 | 2022-09-23 | 长城汽车股份有限公司 | Bluetooth connection method and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100227596A1 (en) * | 2009-03-07 | 2010-09-09 | Telibrahma Convergent Communications Private Limited | Method and system to enable users to request for a specific content, action and information over a Bluetooth Network |
CN107249168A (en) * | 2017-05-18 | 2017-10-13 | 宇龙计算机通信科技(深圳)有限公司 | A kind of data directional transmissions and method of reseptance and device |
CN107707538A (en) * | 2017-09-27 | 2018-02-16 | 广东欧珀移动通信有限公司 | Data transmission method, device, mobile terminal and computer-readable recording medium |
CN109547989A (en) * | 2018-12-17 | 2019-03-29 | 深圳壹账通智能科技有限公司 | Bluetooth pairing methods, device, medium and terminal device based on fingerprint recognition |
-
2019
- 2019-09-20 CN CN201910893162.5A patent/CN110636485B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100227596A1 (en) * | 2009-03-07 | 2010-09-09 | Telibrahma Convergent Communications Private Limited | Method and system to enable users to request for a specific content, action and information over a Bluetooth Network |
CN107249168A (en) * | 2017-05-18 | 2017-10-13 | 宇龙计算机通信科技(深圳)有限公司 | A kind of data directional transmissions and method of reseptance and device |
CN107707538A (en) * | 2017-09-27 | 2018-02-16 | 广东欧珀移动通信有限公司 | Data transmission method, device, mobile terminal and computer-readable recording medium |
CN109547989A (en) * | 2018-12-17 | 2019-03-29 | 深圳壹账通智能科技有限公司 | Bluetooth pairing methods, device, medium and terminal device based on fingerprint recognition |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112261345A (en) * | 2020-09-23 | 2021-01-22 | 厦门亿联网络技术股份有限公司 | Automatic factory pairing and online method for video conference system equipment |
CN112333594A (en) * | 2020-11-03 | 2021-02-05 | 深圳市声临科技有限公司 | Audio switching method for Bluetooth headset and Bluetooth sound box |
CN113301545A (en) * | 2021-04-16 | 2021-08-24 | 珠海慧联科技有限公司 | Dynamic access Bluetooth device cascading method and device and electronic device |
CN113301545B (en) * | 2021-04-16 | 2023-04-14 | 珠海慧联科技有限公司 | Dynamic access Bluetooth device cascading method and device and electronic device |
CN113490158A (en) * | 2021-07-07 | 2021-10-08 | 荣耀终端有限公司 | Bluetooth device pairing connection method, electronic device, Bluetooth device and terminal system |
CN115103341A (en) * | 2021-10-09 | 2022-09-23 | 长城汽车股份有限公司 | Bluetooth connection method and related equipment |
CN114302504A (en) * | 2021-12-31 | 2022-04-08 | 深圳市敦实电子有限公司 | Bluetooth headset pairing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110636485B (en) | 2023-02-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110636485B (en) | Bluetooth automatic connection method and method for initiating Bluetooth connection | |
CN110996405B (en) | Earphone connection method, terminal, earphone box and computer readable storage medium | |
EP3562114B1 (en) | Cross-device login method, system and apparatus | |
CN104853405B (en) | Intelligent networking method and smart machine | |
CN106488335B (en) | Live-broadcast control method and device | |
US11368777B2 (en) | Method and system for upgrading program of TWS headset, and TWS headset | |
WO2011137870A2 (en) | Mobile terminal and method, device, system for controlling mobile terminal | |
WO2014137524A1 (en) | Wireless device pairing | |
CN110753330A (en) | Bluetooth pairing method and Bluetooth headset | |
JP2017529711A (en) | Method, apparatus and system for voice confirmation | |
CN108449746B (en) | BT connection establishing method, wireless earphone and TWS earphone | |
WO2023284454A1 (en) | Bluetooth connection prompting method and apparatus, device, storage medium, and program product | |
CN105025433A (en) | Bluetooth pairing method and terminal | |
CN114786139B (en) | Connection establishment method, device, apparatus, storage medium, and program product | |
CN111132111A (en) | BLE-based audio sharing method and system and computer-readable storage medium | |
CN109257732B (en) | Equipment control method and device and electronic equipment | |
JP2003218983A (en) | Method of communication in a network | |
US20200213844A1 (en) | Communication method, communication apparatus and electronic device | |
CN107820251B (en) | Network access method, device and system | |
CN109660988B (en) | Communication authentication processing method and device and electronic equipment | |
CN111246592A (en) | Data sharing implementation method, data sending end and data receiving end | |
US8121076B2 (en) | Network listening method of a mobile phone | |
CN117479131A (en) | Bluetooth connection method, bluetooth connection device, electronic equipment and computer readable storage medium | |
CN113596827A (en) | Key generation method and device, electronic equipment and storage medium | |
CN116489818A (en) | Device connection method, device connection apparatus, device storage medium and chip |
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 |