CN109951829B - Bluetooth connection method, intelligent terminal and Bluetooth device - Google Patents

Bluetooth connection method, intelligent terminal and Bluetooth device Download PDF

Info

Publication number
CN109951829B
CN109951829B CN201711389277.8A CN201711389277A CN109951829B CN 109951829 B CN109951829 B CN 109951829B CN 201711389277 A CN201711389277 A CN 201711389277A CN 109951829 B CN109951829 B CN 109951829B
Authority
CN
China
Prior art keywords
bluetooth
intelligent terminal
bluetooth device
equipment
preset
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.)
Active
Application number
CN201711389277.8A
Other languages
Chinese (zh)
Other versions
CN109951829A (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 Appotronics Corp Ltd
Original Assignee
Appotronics Corp 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 Appotronics Corp Ltd filed Critical Appotronics Corp Ltd
Priority to CN201711389277.8A priority Critical patent/CN109951829B/en
Priority to PCT/CN2018/074739 priority patent/WO2019119620A1/en
Publication of CN109951829A publication Critical patent/CN109951829A/en
Application granted granted Critical
Publication of CN109951829B publication Critical patent/CN109951829B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a Bluetooth connection method, an intelligent terminal and Bluetooth equipment, wherein the Bluetooth connection method comprises the following steps: the intelligent terminal scans and discovers Bluetooth information of the Bluetooth equipment, judges whether the Bluetooth equipment is matched with the intelligent terminal preset Bluetooth equipment or not, and judges whether the Bluetooth equipment is matched with the intelligent terminal preset Bluetooth equipment or not, so that the intelligent terminal is bound with the Bluetooth equipment and is in circulating connection with the Bluetooth equipment, wherein the intelligent terminal is in circulating connection with the Bluetooth equipment, and a manual connection dialog box can be avoided. By the mode, automatic connection of the intelligent terminal and the Bluetooth equipment can be achieved, manual connection of a user is avoided, and user experience is improved.

Description

Bluetooth connection method, intelligent terminal and Bluetooth device
Technical Field
The invention relates to the field of wireless communication, in particular to a Bluetooth connection method, an intelligent terminal and Bluetooth equipment.
Background
The traditional smart television uses an infrared remote controller, and the infrared remote controller has the advantages of low manufacturing cost and high stability. However, since the infrared signal is not encrypted, if a plurality of televisions with the same model are placed in one environment, the same remote controller can easily remotely control the plurality of televisions at the same time, and unpleasant use experience is brought to users.
The bluetooth technology is an open wireless communication standard, and can wirelessly connect a desktop computer, a notebook computer, a portable intelligent terminal, a PDA (Personal Digital Assistant), a mobile phone, a camera phone, a printer, a Digital camera, a headset, a keyboard, and even a computer mouse in a short distance range. The bluetooth technology provides an HID (Human Interface Device) specification and an interaction scheme between a bluetooth HID intelligent terminal and a bluetooth HID host.
The Bluetooth equipment can be matched with the intelligent terminal to achieve a completely independent signal transmission channel, and the link channel can avoid interference among wireless signals of different intelligent terminals. However, the existing bluetooth device needs to be connected with the intelligent terminal in a manual pairing mode after being connected for the first time or disconnected manually, so that the operation is troublesome, and the user experience is reduced.
Disclosure of Invention
The invention mainly solves the technical problem of providing a Bluetooth connection method, an intelligent terminal and Bluetooth equipment, which can realize the automatic Bluetooth connection between the intelligent terminal and the Bluetooth equipment, avoid the manual connection of a user and improve the user experience.
In order to solve the technical problems, the invention adopts a technical scheme that: provided is a Bluetooth connection method, including: the intelligent terminal scans and finds Bluetooth information sent by the Bluetooth equipment, judges whether the Bluetooth equipment is matched with preset Bluetooth equipment or not, and if the Bluetooth equipment is matched with the preset Bluetooth equipment, the intelligent terminal is in circulating connection with the Bluetooth equipment.
If the Bluetooth equipment is matched with preset Bluetooth equipment, the intelligent terminal and the Bluetooth equipment are in cyclic connection according to preset cycle times;
and if the Bluetooth equipment is matched with preset Bluetooth equipment, the intelligent terminal is in circulating connection with the Bluetooth equipment according to preset circulating time.
If the Bluetooth device is matched with a preset Bluetooth device, the intelligent terminal judges whether the Bluetooth device is bound with the intelligent terminal;
if the Bluetooth device is bound with the Bluetooth device, the Bluetooth device is unbound and then bound again;
and the intelligent terminal is circularly connected with the Bluetooth equipment.
The step of scanning and discovering the Bluetooth information sent by the Bluetooth equipment by the intelligent terminal further comprises the following steps before: after the intelligent terminal is started, a background program is started to perform initialization operation on the Bluetooth device of the intelligent terminal and perform Bluetooth broadcast registration, and a preset Bluetooth equipment mac address is stored in a Bluetooth device array.
Wherein, judge whether bluetooth equipment and the concrete step of predetermineeing bluetooth equipment assorted include: and judging whether the mac address of the Bluetooth equipment is matched with the mac address of the Bluetooth equipment stored in the Bluetooth device array.
Wherein, the intelligent terminal is a display device.
The Bluetooth equipment is a Bluetooth remote controller, a Bluetooth earphone, a Bluetooth mouse or a Bluetooth sound box.
In order to solve the technical problem, the invention adopts another technical scheme that: provided is a smart terminal, including: the Bluetooth device comprises a communication circuit, a processor and a communication circuit, wherein the communication circuit is used for acquiring and transmitting instructions, the memory is used for storing preset Bluetooth device information and computer programs executed by the processor, the processor is used for executing the computer programs, and the communication circuit, the memory and the processor are mutually coupled; the processor, when executing the computer program, implements the steps in the method as described above.
In order to solve the technical problem, the invention adopts another technical scheme that: there is provided a bluetooth device, the bluetooth device comprising: communication circuitry for sending and transmitting instructions, a memory for storing a computer program for execution by a processor, a processor for executing said computer program, said communication circuitry, memory and processor being coupled to each other, said processor implementing the steps of the method as described above when executing said computer program.
The invention has the beneficial effects that: different from the situation of the prior art, the intelligent terminal scans and discovers the Bluetooth information of the Bluetooth equipment, judges whether the Bluetooth equipment is matched with the Bluetooth equipment preset by the intelligent terminal, and binds and circularly connects the intelligent terminal and the Bluetooth equipment if the Bluetooth equipment is matched with the Bluetooth equipment preset by the intelligent terminal, wherein the intelligent terminal and the Bluetooth equipment are circularly connected, so that a manual connection dialog box can be avoided. By the mode, automatic connection of the intelligent terminal and the Bluetooth equipment can be achieved, manual connection of a user is avoided, and user experience is improved.
Drawings
FIG. 1 is a flowchart illustrating a Bluetooth connection method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an embodiment of an intelligent terminal according to the present invention;
fig. 3 is a schematic structural diagram of an embodiment of the bluetooth device of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative effort belong to the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a bluetooth connection method according to the present invention, where the bluetooth connection method includes the following steps:
step S101: the intelligent terminal scans and discovers Bluetooth information sent by the Bluetooth equipment.
In a specific implementation scenario, after the intelligent terminal is powered on, a background program is started to perform initialization operation on a bluetooth device of the intelligent terminal and perform bluetooth broadcast registration at the same time, and a preset mac address of bluetooth equipment is stored in a bluetooth device array. The preset Bluetooth device can be automatically bound and connected with the intelligent terminal through Bluetooth.
In another specific implementation scenario, when the intelligent terminal is not connected to the bluetooth device after being powered on, the intelligent terminal may receive bluetooth broadcasts in various states during bluetooth scanning, and if the received bluetooth broadcasts are in a state of finding the bluetooth device, it is determined that the intelligent terminal scans the bluetooth device.
In another specific implementation scenario, the intelligent terminal is already connected with the bluetooth device after being powered on, if the user manually disconnects the intelligent terminal from the bluetooth device, the intelligent terminal receives the bluetooth broadcast in a disconnection state, the intelligent terminal performs bluetooth scanning again, and if the received bluetooth broadcast state is that the bluetooth device is found, it is determined that the intelligent terminal scans the bluetooth device.
In the implementation scenario, the number of the bluetooth devices scanned by the intelligent terminal is at least one.
Step S102: the intelligent terminal judges whether the Bluetooth equipment is matched with preset Bluetooth equipment or not.
In a specific implementation scenario, when the intelligent terminal receives a bluetooth broadcast for discovering a bluetooth device, the intelligent terminal matches the mac address of the scanned and discovered bluetooth device with the mac address of the preset bluetooth device stored in the intelligent terminal bluetooth device array, and if the mac address of the scanned and discovered bluetooth device belongs to the mac address of the preset bluetooth device of the intelligent terminal, it is determined that the bluetooth device is matched with the preset bluetooth device of the intelligent terminal. The Mac (Media Access Control) address is translated into a Media Access Control, or a physical address or a hardware address, and is mainly used to define the location of the network device. The Mac address is determined by the network card and is a fixed address.
In a specific implementation scenario, when the intelligent terminal receives the bluetooth broadcasts of a plurality of bluetooth devices, the intelligent terminal compares the mac address of each scanned bluetooth device with the mac address of the preset bluetooth device of the intelligent terminal, and only when the mac address of the scanned bluetooth device is consistent with the mac address of the preset bluetooth device of the intelligent terminal, the intelligent terminal can judge that the bluetooth device is matched with the preset bluetooth device of the intelligent terminal.
In other implementation scenarios, the intelligent terminal sends information to the bluetooth device, the bluetooth device feeds back the information to the intelligent terminal, and whether the bluetooth device is matched with the preset bluetooth device is judged according to whether the fed-back information is matched. The intelligent terminal may also determine whether the bluetooth devices are matched in other manners, which is not limited herein.
Step S103: and if the Bluetooth equipment is matched with the preset Bluetooth equipment, the intelligent terminal is in circulating connection with the Bluetooth equipment.
The intelligent terminal and the Bluetooth equipment are connected in a Bluetooth mode, the automatic connection is likely to be unsuccessful in the connection process, the manual connection dialog box is likely to appear, manual connection is needed, the manual connection dialog box is popped out when the intelligent terminal and the Bluetooth equipment are connected, then automatic connection of the intelligent terminal and the Bluetooth equipment is achieved, and the intelligent terminal and the Bluetooth equipment are connected in a circulating mode. If the intelligent terminal receives the Bluetooth broadcast in the connection success state, the intelligent terminal is successfully connected with the Bluetooth equipment in a Bluetooth mode, and the cycle connection is finished.
In a specific implementation scene, the intelligent terminal and the Bluetooth device are in cyclic connection according to preset cycle times, if the intelligent terminal receives Bluetooth broadcast in a successful connection state within the preset cycle times, the intelligent terminal and the Bluetooth device are in Bluetooth connection successfully, and the cyclic connection is finished; if the intelligent terminal does not receive the Bluetooth broadcast in the connection success state within the preset cycle times, the cycle connection is finished, and the intelligent terminal repeatedly scans the Bluetooth equipment, judges whether the Bluetooth equipment is matched and connects the Bluetooth equipment in a cycle mode until the connection is finally completed.
For example, the number of times of cyclic connection is set to 10, and if the intelligent terminal and the bluetooth device are successfully connected in 10 times of cyclic connection, the cyclic connection is ended; if the intelligent terminal is not successfully connected with the Bluetooth equipment for 10 times in a circulating way, the circulating connection is finished, and the intelligent terminal repeatedly scans the Bluetooth equipment, judges whether the Bluetooth equipment is matched and connects the Bluetooth equipment in a circulating way until the connection is finally finished. The number of times of the cyclic connection can be set according to the actual connection condition of the intelligent terminal and the Bluetooth equipment, and is not limited here.
In another specific implementation scenario, the intelligent terminal and the bluetooth device are in cyclic connection according to preset cycle time, if the intelligent terminal receives the bluetooth broadcast in a successful connection state within the preset cycle time, the intelligent terminal and the bluetooth device are in bluetooth connection successfully, and the cyclic connection is finished; if the intelligent terminal does not receive the Bluetooth broadcast in the connection success state within the preset cycle time, the cycle connection is finished, and the intelligent terminal repeatedly scans the Bluetooth equipment, judges whether the Bluetooth equipment is matched and connects the Bluetooth equipment in a cycle mode until the connection is finally finished.
For example, the cycle connection time is set to 10 seconds, and if the intelligent terminal and the Bluetooth device are successfully connected in 10 seconds in a cycle mode, the cycle connection is finished; if the intelligent terminal is not successfully received by the Bluetooth device in a circulating connection mode for 10 seconds, the circulating connection is finished, and the intelligent terminal repeatedly scans the Bluetooth device, judges whether the Bluetooth device is matched and connects the Bluetooth device in a circulating mode until the connection is finally completed. The cycle connection time can be set according to the actual connection condition of the intelligent terminal and the Bluetooth equipment, and is not limited herein.
In another specific implementation scenario, after the intelligent terminal scans that the bluetooth device is matched with a preset bluetooth device, the intelligent terminal judges whether the intelligent terminal is bound with the bluetooth device according to the received bluetooth broadcast state. If the intelligent terminal receives the Bluetooth broadcast in the bound state, the intelligent terminal and the Bluetooth equipment are judged to be bound; and if the intelligent terminal receives the Bluetooth broadcast in the unbound state, judging that the intelligent terminal and the Bluetooth equipment are not bound.
In other implementation scenarios, the intelligent terminal sends information to the bluetooth device, the bluetooth device feeds back the information to the intelligent terminal, and whether the intelligent terminal and the bluetooth device are bound or not can be judged through the fed-back information. The intelligent terminal may also determine whether the intelligent terminal and the bluetooth device are bound through other manners, which is not limited herein.
In a specific implementation scenario, if the intelligent terminal and the bluetooth device are in a bound state, the intelligent terminal does not know whether the binding process is manual binding or automatic binding, in order to avoid popping up a bluetooth manual connection dialog box when the bluetooth device and the intelligent terminal are connected later, the intelligent terminal will firstly release the binding with the bluetooth device no matter how the previous binding process is, and when the intelligent terminal receives the bluetooth broadcast in the binding release state, the intelligent terminal will again perform the bluetooth binding operation with the bluetooth device and complete the binding.
Therefore, manual operation of a user in the subsequent connection process can be avoided, and the user experience is improved.
In the foregoing embodiment, the intelligent terminal includes a display device, a smart phone, a tablet computer, and the like, and is not limited specifically. The bluetooth device includes a bluetooth remote controller, a bluetooth earphone, a bluetooth mouse, a bluetooth speaker, and the like, and is not limited specifically.
The invention has the beneficial effects that: different from the situation of the prior art, the intelligent terminal scans and discovers the Bluetooth information of the Bluetooth equipment, judges whether the Bluetooth equipment is matched with the Bluetooth equipment preset by the intelligent terminal, if the Bluetooth equipment is matched with the Bluetooth equipment preset by the intelligent terminal, the intelligent terminal and the Bluetooth equipment are bound and circularly connected, and the intelligent terminal and the Bluetooth equipment are circularly connected, so that a manual connection dialog box can be avoided. By the mode, automatic connection of the intelligent terminal and the Bluetooth equipment can be achieved, manual connection of a user is avoided, and user experience is improved.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an embodiment of the intelligent terminal of the present invention. The intelligent terminal 20 includes: a communication circuit 21 for acquiring and transmitting instructions, a memory 22 for storing preset bluetooth device information and computer programs executed by the processor 23, and a processor 23 for executing the computer programs, wherein the communication circuit 21, the memory 22 and the processor 23 are coupled to each other; the processor 23, when executing the computer program, implements any of the above-described methods for bluetooth connection.
In a specific implementation scenario, after the intelligent terminal 20 is powered on, the background program stored in the memory 22 is started to perform initialization operation on the bluetooth device of the intelligent terminal 20 through the processor 23 and perform bluetooth broadcast registration at the same time, and store the mac address of the preset bluetooth device stored in the memory 22 into the bluetooth device array. Wherein, it can realize that the bluetooth is automatic to bind and is connected with intelligent terminal 20 to predetermine bluetooth equipment.
In another specific implementation scenario, when the intelligent terminal 20 is not connected to the bluetooth device after being powered on, the processor 23 of the intelligent terminal 20 may receive bluetooth broadcasts in various states when performing bluetooth scanning, and if the bluetooth broadcast received by the communication circuit 21 is in a bluetooth device discovery state, the processor 23 determines that the intelligent terminal 20 scans for the bluetooth device.
In another specific implementation scenario, the intelligent terminal 20 is already connected to the bluetooth device after being powered on, if the user manually disconnects the intelligent terminal 20 from the bluetooth device, the communication circuit 21 of the intelligent terminal 20 receives the bluetooth broadcast in the disconnection state, the processor 23 of the intelligent terminal 20 re-executes bluetooth scanning, and if the bluetooth broadcast received by the communication circuit 21 is found, the processor 23 determines that the intelligent terminal 20 scans the bluetooth device.
In the implementation scenario, the number of bluetooth devices scanned by the smart terminal 20 is at least one.
In a specific implementation scenario, when the communication circuit 21 of the intelligent terminal 20 receives the bluetooth broadcast of the found bluetooth device, the intelligent terminal 20 matches the mac address of the scanned and found bluetooth device with the mac address of the preset bluetooth device stored in the bluetooth apparatus array of the intelligent terminal 20, and if the mac address of the scanned and found bluetooth device belongs to the mac address of the preset bluetooth device of the intelligent terminal 20, the processor 23 determines that the bluetooth device matches the preset bluetooth device of the intelligent terminal 20. The Mac (Media Access Control) address is translated into a Media Access Control, or a physical address or a hardware address, and is mainly used to define the location of the network device. The Mac address is determined by the network card and is a fixed address.
In a specific implementation scenario, when the communication circuit 21 of the intelligent terminal 20 receives the bluetooth broadcasts of a plurality of bluetooth devices, the intelligent terminal 20 compares the mac address of each bluetooth device found by scanning with the mac address of the bluetooth device preset in the intelligent terminal 20, and only when the mac address of the bluetooth device found by scanning is consistent with the mac address of the bluetooth device preset in the intelligent terminal 20, the intelligent terminal 20 will determine that the bluetooth device matches with the bluetooth device preset in the intelligent terminal 20.
In other implementation scenarios, the intelligent terminal 20 sends information to the bluetooth device, and the bluetooth device feeds back information to the intelligent terminal 20, and determines whether the bluetooth device matches with the preset bluetooth device by determining whether the fed-back information matches. The intelligent terminal 20 may also determine whether the bluetooth devices are matched in other manners, which is not limited herein.
Intelligent terminal 20 carries out the bluetooth with bluetooth equipment and is connected, and automatic connection is unsuccessful and manual connection dialog appears probably to appear in the connection process, leads to needing manual connection, pops out manual connection dialog when avoiding intelligent terminal 20 to be connected with bluetooth equipment, and then realizes intelligent terminal 20 and bluetooth equipment's automatic connection, and intelligent terminal 20 and bluetooth equipment carry out the circulation and are connected. If the communication circuit 21 of the intelligent terminal 20 receives the bluetooth broadcast in the connection success state, the intelligent terminal 20 and the bluetooth device are successfully connected in bluetooth, and the cycle connection is finished.
In a specific implementation scenario, the intelligent terminal 20 and the bluetooth device perform a cyclic connection according to a preset cycle number stored in the memory 22, and if the communication circuit 21 of the intelligent terminal 20 receives a bluetooth broadcast in a successful connection state within the preset cycle number, the intelligent terminal 20 and the bluetooth device perform a bluetooth connection successfully, and the cyclic connection is ended; if the communication circuit 21 of the intelligent terminal 20 does not receive the bluetooth broadcast in the connection success state within the preset cycle number, the cycle connection is finished, and the intelligent terminal 20 repeats the steps of scanning the bluetooth device, judging whether to match and cycle-connecting the bluetooth device until the connection is finally finished.
For example, the number of times of the cyclic connection is set to 10, and if the intelligent terminal 20 and the bluetooth device are successfully connected in 10 cycles, the cyclic connection is ended; if the connection between the intelligent terminal 20 and the bluetooth device is not successful for 10 times, the loop connection is finished, and the intelligent terminal 20 repeatedly scans the bluetooth device, judges whether the bluetooth device is matched and connects the bluetooth device in a loop mode until the connection is finally finished. The number of times of the cyclic connection may be set according to an actual connection status between the intelligent terminal 20 and the bluetooth device, which is not limited herein.
In another specific implementation scenario, the intelligent terminal 20 and the bluetooth device perform a cyclic connection according to a preset cycle time stored in the memory 22, and if the communication circuit 21 of the intelligent terminal 20 receives a bluetooth broadcast in a connection success state within the preset cycle time, the intelligent terminal 20 and the bluetooth device perform a bluetooth connection successfully, and the cyclic connection is ended; if the communication circuit 21 of the intelligent terminal 20 does not receive the bluetooth broadcast in the connection success state within the preset cycle time, the cycle connection is finished, and the intelligent terminal 20 repeats the steps of scanning the bluetooth device, judging whether to match and cycle-connecting the bluetooth device until the connection is finally finished.
For example, the cyclic connection time is set to 10 seconds, and if the intelligent terminal 20 and the bluetooth device are successfully connected in 10 seconds in a cyclic manner, the cyclic connection is ended; if the connection between the intelligent terminal 20 and the Bluetooth device is not successful in 10 seconds in a circulating connection mode, the circulating connection is finished, and the intelligent terminal 20 repeatedly scans the Bluetooth device, judges whether the Bluetooth device is matched and the Bluetooth device is connected in a circulating mode until the connection is finally finished. The cyclic connection time may be set according to an actual connection status between the intelligent terminal 20 and the bluetooth device, which is not limited herein.
In another specific implementation scenario, after the intelligent terminal 20 scans that the bluetooth device matches a preset bluetooth device, the processor 23 of the intelligent terminal 20 determines whether the intelligent terminal 20 is bound to the bluetooth device according to the bluetooth broadcast status received by the communication circuit 21. If the communication circuit 21 of the intelligent terminal 20 receives the bound bluetooth broadcast, the processor 23 determines that the intelligent terminal 20 and the bluetooth device are bound; if the communication circuit 21 of the intelligent terminal 20 receives the unbound bluetooth broadcast, the processor 23 of the intelligent terminal 20 determines that the intelligent terminal 20 is not bound to the bluetooth device.
In other implementation scenarios, the intelligent terminal 20 sends information to the bluetooth device, the bluetooth device feeds back information to the intelligent terminal 20, and whether the intelligent terminal 20 and the bluetooth device are bound or not can be determined through the fed-back information. The intelligent terminal 20 may also determine whether the intelligent terminal 20 is bound to the bluetooth device in other manners, which is not limited herein.
In a specific implementation scenario, if the intelligent terminal 20 and the bluetooth device are in a bound state, the intelligent terminal 20 does not know whether the binding process is manual binding or automatic binding, in order to avoid popping up a bluetooth manual connection dialog box when the bluetooth device and the intelligent terminal 20 are connected later, regardless of the previous binding process, the intelligent terminal 20 will firstly release the binding with the bluetooth device, and when the communication circuit 21 of the intelligent terminal 20 receives the bluetooth broadcast in the released binding state, the intelligent terminal 20 will again perform the bluetooth binding operation with the bluetooth device and complete the binding.
Therefore, manual operation of a user in the subsequent connection process can be avoided, and the user experience is improved.
In the above embodiment, the smart terminal 20 includes a display device, a smart phone, a tablet computer, and the like, which is not limited specifically. The bluetooth device includes a bluetooth remote controller, a bluetooth earphone, a bluetooth mouse, a bluetooth speaker, and the like, and is not limited specifically.
The invention has the beneficial effects that: different from the situation of the prior art, the intelligent terminal scans and discovers the Bluetooth information of the Bluetooth equipment, the intelligent terminal processor judges whether the Bluetooth equipment is matched with the Bluetooth equipment preset by the intelligent terminal, if the intelligent terminal processor judges that the Bluetooth equipment is matched, the intelligent terminal is bound and circularly connected with the Bluetooth equipment, and the situation that the intelligent terminal is circularly connected with the Bluetooth equipment can avoid a manual connection dialog box. By the mode, automatic connection of the intelligent terminal and the Bluetooth equipment can be achieved, manual connection of a user is avoided, and user experience is improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an embodiment of the bluetooth device of the present invention. The bluetooth device 30 includes: a communication circuit 31 for transmitting and transmitting instructions, a memory 32 for storing a computer program for execution by a processor 33, a processor 33 for executing a computer program, the communication circuit 31, the memory 32 and the processor 33 being coupled to each other; the processor 33 executes a computer program to implement any of the above-described methods for bluetooth connection.
Further, the bluetooth device and the intelligent terminal provided by the present invention perform bluetooth connection, and specific steps refer to the foregoing description, which is not described herein again.
The invention has the beneficial effects that: different from the situation of the prior art, the intelligent terminal scans and discovers the Bluetooth information of the Bluetooth equipment, judges whether the Bluetooth equipment is matched with the Bluetooth equipment information preset by the intelligent terminal, if the Bluetooth equipment is matched with the Bluetooth equipment information preset by the intelligent terminal, the intelligent terminal and the Bluetooth equipment are bound and circularly connected, and the intelligent terminal and the Bluetooth equipment are circularly connected, so that a manual connection dialog box can be avoided. By the mode, automatic connection of the intelligent terminal and the Bluetooth equipment can be achieved, manual connection of a user is avoided, and user experience is improved.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A bluetooth connection method, comprising:
the intelligent terminal scans and discovers Bluetooth information sent by the Bluetooth equipment;
the intelligent terminal judges whether the Bluetooth equipment is matched with preset Bluetooth equipment or not;
if the Bluetooth equipment is matched with the preset Bluetooth equipment, the intelligent terminal is in circulating connection with the Bluetooth equipment; wherein, the intelligent terminal with bluetooth equipment carries out the step of cyclic connection and specifically includes:
if the bluetooth device matches a preset bluetooth device,
the intelligent terminal judges whether the Bluetooth equipment is bound or not;
if the Bluetooth device is bound with the Bluetooth device, the Bluetooth device is unbound and then bound again;
and the intelligent terminal is circularly connected with the Bluetooth equipment.
2. The bluetooth connection method according to claim 1, wherein if the bluetooth device matches a preset bluetooth device, the step of cyclically connecting the smart terminal and the bluetooth device specifically comprises: and if the Bluetooth equipment is matched with the preset Bluetooth equipment, the intelligent terminal is in circulating connection with the Bluetooth equipment according to the preset circulating times.
3. The bluetooth connection method according to claim 1, wherein if the bluetooth device matches a preset bluetooth device, the step of cyclically connecting the smart terminal and the bluetooth device specifically comprises: and if the Bluetooth equipment is matched with the preset Bluetooth equipment, the intelligent terminal is in circulating connection with the Bluetooth equipment according to preset circulating time.
4. The bluetooth connection method according to claim 1, wherein the step of the intelligent terminal scanning and discovering the bluetooth information sent by the bluetooth device further comprises the following steps: after the intelligent terminal is started, a background program is started to perform initialization operation on the Bluetooth device of the intelligent terminal and perform Bluetooth broadcast registration, and a preset Bluetooth equipment mac address is stored in a Bluetooth device array.
5. The Bluetooth connection method according to claim 4, wherein the specific step of the intelligent terminal determining whether the Bluetooth device matches a preset Bluetooth device includes:
and judging whether the mac address of the Bluetooth equipment is matched with the mac address of the Bluetooth equipment stored in the Bluetooth device array.
6. The bluetooth connection method according to claim 1, wherein the smart terminal is a display device.
7. The bluetooth connection method according to claim 1, wherein the bluetooth device is a bluetooth remote controller, a bluetooth headset, a bluetooth mouse, or a bluetooth speaker.
8. An intelligent terminal, characterized in that, intelligent terminal includes: the Bluetooth device comprises a communication circuit, a processor and a communication circuit, wherein the communication circuit is used for acquiring and transmitting instructions, the memory is used for storing preset Bluetooth device information and computer programs executed by the processor, the processor is used for executing the computer programs, and the communication circuit, the memory and the processor are mutually coupled; the processor, when executing the computer program, performs the bluetooth connection method of any of claims 1-7.
9. A bluetooth device, characterized in that the bluetooth device comprises: communication circuit for transmitting and transmitting instructions, a memory for storing a computer program for execution by a processor, a processor for executing said computer program, said communication circuit, memory and processor being coupled to each other, said processor executing said computer program and performing the bluetooth connection method according to any of claims 1-7.
CN201711389277.8A 2017-12-20 2017-12-20 Bluetooth connection method, intelligent terminal and Bluetooth device Active CN109951829B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201711389277.8A CN109951829B (en) 2017-12-20 2017-12-20 Bluetooth connection method, intelligent terminal and Bluetooth device
PCT/CN2018/074739 WO2019119620A1 (en) 2017-12-20 2018-01-31 Bluetooth connection method, smart terminal and bluetooth device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711389277.8A CN109951829B (en) 2017-12-20 2017-12-20 Bluetooth connection method, intelligent terminal and Bluetooth device

Publications (2)

Publication Number Publication Date
CN109951829A CN109951829A (en) 2019-06-28
CN109951829B true CN109951829B (en) 2021-07-20

Family

ID=66994341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711389277.8A Active CN109951829B (en) 2017-12-20 2017-12-20 Bluetooth connection method, intelligent terminal and Bluetooth device

Country Status (2)

Country Link
CN (1) CN109951829B (en)
WO (1) WO2019119620A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111540458B (en) * 2020-04-02 2023-07-25 出门问问信息科技有限公司 Information processing method and device, electronic equipment and computer storage medium
CN112788579A (en) * 2020-12-31 2021-05-11 厦门亿联网络技术股份有限公司 Method and device for quickly pairing dual-mode Bluetooth equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539320A (en) * 2015-01-15 2015-04-22 北京深思数盾科技有限公司 Pairing method for Bluetooth devices
CN105392212A (en) * 2015-10-30 2016-03-09 上海卓易科技股份有限公司 Automatic Bluetooth reconnection method, system and intelligent terminal
CN106454713A (en) * 2016-12-07 2017-02-22 飞天诚信科技股份有限公司 Method and device for pairing and synchronizing mobile equipment and Bluetooth equipment
CN107172571A (en) * 2017-04-21 2017-09-15 上海掌门科技有限公司 A kind of smart machine automatic matching connection method and system
CN107197418A (en) * 2017-04-21 2017-09-22 上海掌门科技有限公司 A kind of intelligent control method worn based on wrist-watch and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517451B (en) * 2013-09-18 2017-02-08 广东欧珀移动通信有限公司 Device for achieving Bluetooth connecting request quick automatic sending and device for receiving connecting request
US10104699B2 (en) * 2015-02-10 2018-10-16 Sphero, Inc. Signal strength representation and automatic connection and control upon a self-propelled device
CN106102129A (en) * 2016-05-23 2016-11-09 深圳Tcl数字技术有限公司 Connect the method and device of bluetooth equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104539320A (en) * 2015-01-15 2015-04-22 北京深思数盾科技有限公司 Pairing method for Bluetooth devices
CN105392212A (en) * 2015-10-30 2016-03-09 上海卓易科技股份有限公司 Automatic Bluetooth reconnection method, system and intelligent terminal
CN106454713A (en) * 2016-12-07 2017-02-22 飞天诚信科技股份有限公司 Method and device for pairing and synchronizing mobile equipment and Bluetooth equipment
CN107172571A (en) * 2017-04-21 2017-09-15 上海掌门科技有限公司 A kind of smart machine automatic matching connection method and system
CN107197418A (en) * 2017-04-21 2017-09-22 上海掌门科技有限公司 A kind of intelligent control method worn based on wrist-watch and system

Also Published As

Publication number Publication date
CN109951829A (en) 2019-06-28
WO2019119620A1 (en) 2019-06-27

Similar Documents

Publication Publication Date Title
WO2022057557A1 (en) Household device control method and device
US10764898B2 (en) Media access control (MAC) address identification
CN110996405B (en) Earphone connection method, terminal, earphone box and computer readable storage medium
AU2013233646B2 (en) Communication apparatus, communication method, program, and communication system
CN108419226B (en) Method for connecting Bluetooth devices and Bluetooth devices
CN110839271B (en) Equipment connection method, system, platform and corresponding equipment
EP2206312A2 (en) Pairing exchange
WO2021104114A1 (en) Method for providing wireless fidelity (wifi) network access service, and electronic device
CN104837157B (en) Speaker adding method, device, mobile terminal and intelligent sound box
CN114208234A (en) Method for supporting multilink in bluetooth network environment and electronic device thereof
CN109951829B (en) Bluetooth connection method, intelligent terminal and Bluetooth device
CN105636041A (en) Networking method and apparatus for intelligent device
CN104955168A (en) Audio data transmitting method, receiving method and device
CN103546531B (en) The parameter rapid-setting method and system of a kind of intelligent television
CN110856086A (en) Method and device for controlling sound system and readable storage medium
CN109936840B (en) Communication method and device and electronic equipment
CN110601986A (en) Router supporting peripheral control over mobile terminal equipment, control method and device
CN111586521A (en) Auxiliary playing device, control method and control device thereof, and readable storage medium
CN111491278B (en) Method and terminal for playing audio through Bluetooth device
CN108880696B (en) Frequency configuration handshaking method and system, terminal and computer readable storage medium
CN113518331A (en) Communication method and device
CN114466230B (en) Display equipment function expanding method and device, screen projector and storage medium
CN103873682B (en) A kind of information processing method and electronic equipment
WO2024093597A1 (en) Method for configuring a plurality of devices, device, and system
WO2023134386A1 (en) Device connection method and apparatus, and 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