CN113507702A - Bluetooth connection method and device, vehicle-mounted Bluetooth equipment and storage medium - Google Patents

Bluetooth connection method and device, vehicle-mounted Bluetooth equipment and storage medium Download PDF

Info

Publication number
CN113507702A
CN113507702A CN202110591253.0A CN202110591253A CN113507702A CN 113507702 A CN113507702 A CN 113507702A CN 202110591253 A CN202110591253 A CN 202110591253A CN 113507702 A CN113507702 A CN 113507702A
Authority
CN
China
Prior art keywords
bluetooth
equipment
vehicle
signal intensity
bluetooth 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
Application number
CN202110591253.0A
Other languages
Chinese (zh)
Other versions
CN113507702B (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.)
Xian Wingtech Information Technology Co Ltd
Original Assignee
Xian Wingtech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wingtech Information Technology Co Ltd filed Critical Xian Wingtech Information Technology Co Ltd
Priority to CN202110591253.0A priority Critical patent/CN113507702B/en
Publication of CN113507702A publication Critical patent/CN113507702A/en
Application granted granted Critical
Publication of CN113507702B publication Critical patent/CN113507702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The present disclosure relates to the field of bluetooth technologies, and in particular, to a bluetooth connection method and apparatus, a vehicle-mounted bluetooth device, and a storage medium. Wherein the method comprises: when the vehicle-mounted Bluetooth equipment receives a Bluetooth connection request, acquiring the Bluetooth signal intensity of equipment to be connected corresponding to the Bluetooth connection request; under the condition that the vehicle-mounted Bluetooth device and the connected device establish a Bluetooth connection link, and the Bluetooth signal intensity of the device to be connected is greater than that of the connected device, the Bluetooth connection link is disconnected, and a new Bluetooth connection link is established with the device to be connected. By adopting the scheme, the problem that other devices cannot be connected with the vehicle-mounted Bluetooth device when other paired terminal devices exist in the prior art can be solved at one end of the vehicle-mounted Bluetooth device, so that the aims of simplifying the Bluetooth connection process, intelligently switching Bluetooth connection links and liberating both hands of a user can be fulfilled.

Description

Bluetooth connection method and device, vehicle-mounted Bluetooth equipment and storage medium
Technical Field
The present application relates to the field of bluetooth technologies, and in particular, to a bluetooth connection method and apparatus, a vehicle-mounted bluetooth device, and a storage medium.
Background
Bluetooth is a radio technology supporting short-range communication (generally within 10 m) of devices, and can exchange wireless information among a plurality of devices including mobile phones, PDAs (personal digital assistants), bluetooth sound, smart televisions, bracelets, vehicle-mounted bluetooth devices, and the like. When a user drives a vehicle, the user often wants to connect a portable terminal device with a vehicle-mounted bluetooth device so as to navigate, play music and the like through the vehicle-mounted bluetooth device.
In the prior art, if the vehicle-mounted bluetooth device is successfully connected with the vehicle-mounted bluetooth, other terminal devices cannot search signals of the vehicle-mounted bluetooth device, and if a user wants to connect other terminal devices with the vehicle-mounted bluetooth device, the user needs to manually disconnect the vehicle-mounted bluetooth device from the connected terminal devices and then connect other terminal devices.
Therefore, in the prior art, a connection link between the bluetooth terminal device and the vehicle-mounted bluetooth needs to be switched through manual intervention, and the bluetooth connection process is time-consuming and labor-consuming for a user.
Disclosure of Invention
Therefore, it is necessary to provide a bluetooth connection method, an apparatus, a vehicle-mounted bluetooth device, and a storage medium for solving the problem that other devices cannot be connected to the vehicle-mounted bluetooth device due to the existence of other paired terminal devices in the prior art.
The embodiment of the application provides a Bluetooth connection method, which comprises the following steps:
when the vehicle-mounted Bluetooth equipment receives a Bluetooth connection request, acquiring the Bluetooth signal intensity of equipment to be connected corresponding to the Bluetooth connection request;
under the condition that the vehicle-mounted Bluetooth device and the connected device establish a Bluetooth connection link, and the Bluetooth signal intensity of the device to be connected is greater than that of the connected device, the Bluetooth connection link is disconnected, and a new Bluetooth connection link is established with the device to be connected.
In one embodiment, the disconnecting the bluetooth connection link and establishing a new bluetooth connection link with the device to be connected includes:
and under the condition that the vehicle-mounted Bluetooth equipment receives Bluetooth connection requests of two or more devices to be connected, taking the device to be connected with the maximum Bluetooth signal intensity as target equipment, disconnecting the Bluetooth connection link, and establishing a new Bluetooth connection link with the target equipment.
In one embodiment, the method further comprises:
under the condition that a Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and connected equipment, and the Bluetooth signal intensity of the equipment to be connected is less than or equal to that of the connected equipment, receiving the illumination intensity acquired by a signal acquisition device;
and if the illumination intensity is smaller than a preset environment threshold value, disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected.
In one embodiment, the method further comprises:
under the condition that a Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and connected equipment, and the Bluetooth signal intensity of the equipment to be connected is less than or equal to that of the connected equipment, receiving the number of surrounding vehicles acquired by a signal acquisition device;
and if the number of the surrounding vehicles reaches the preset number, disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected.
In one embodiment, when no channel in the second remaining channels is to be avoided, the method further comprises:
under the condition that the vehicle-mounted Bluetooth device does not establish a Bluetooth connection link with the terminal device, acquiring historical connection records of two or more devices to be connected;
and screening out target equipment from the two or more equipment to be connected based on the Bluetooth signal intensity of the two or more equipment to be connected and the historical connection records, and establishing a Bluetooth connection link with the target equipment.
In one embodiment, the screening out the target device from the two or more devices to be connected based on the bluetooth signal strength and the historical connection records of the two or more devices to be connected includes:
if the historical connection records of two or more devices to be connected and the vehicle-mounted Bluetooth device exist, taking the Bluetooth signal intensity as the Bluetooth signal intensity of the current moment, and determining the Bluetooth signal intensity of the two or more devices to be connected at the last moment based on the historical connection records;
and screening out target equipment from two or more equipment to be connected based on the Bluetooth signal intensity at the previous moment and the Bluetooth signal intensity at the current moment.
In one embodiment, the screening out the target device from the two or more devices to be connected based on the bluetooth signal strength and the historical connection records of the two or more devices to be connected includes:
if two or more than two historical connection records of the to-be-connected equipment and the vehicle-mounted Bluetooth equipment exist, determining historical task types of the two or more than two to-be-connected equipment based on the historical connection records, wherein the historical task types comprise: at least one of a navigation task, a music playing task and a video playing task, a conversation task, a video conference task, a telephone conference task and a remote control task;
and screening out target equipment from the two or more to-be-connected equipment based on the Bluetooth signal intensity of the two or more to-be-connected equipment, the historical task types and the execution times of each historical task type.
The embodiment of the application provides a bluetooth connecting device, the device includes:
the Bluetooth signal intensity acquisition module is used for acquiring the Bluetooth signal intensity of equipment to be connected corresponding to the Bluetooth connection request when the vehicle-mounted Bluetooth equipment receives the Bluetooth connection request;
and the Bluetooth connection switching module is used for disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected under the condition that the Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and the connected equipment and the Bluetooth signal intensity of the equipment to be connected is greater than that of the connected equipment.
The embodiment of the application provides vehicle-mounted Bluetooth equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize the steps of the Bluetooth connection method provided by any embodiment of the application.
The embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of a bluetooth connection method provided in any embodiment of the present application.
In this embodiment, when the vehicle-mounted bluetooth device receives the bluetooth connection request, the vehicle-mounted bluetooth device obtains the bluetooth signal intensity of the device to be connected corresponding to the bluetooth connection request, so as to determine the bluetooth signal intensity of the device to be connected in real time, if the vehicle-mounted bluetooth device determines to establish a bluetooth connection link with the connected device, the bluetooth signal intensity of the connected device is compared with the bluetooth signal intensity of the device to be connected, and if the bluetooth signal intensity of the device to be connected is greater than the bluetooth signal intensity of the connected device, the bluetooth connection link established with the connected device can be automatically disconnected, and a new bluetooth connection link is established with the device to be connected. Above-mentioned bluetooth connected mode can solve among the prior art other terminal equipment that pair when existing at this one end of vehicle-mounted bluetooth equipment, leads to other equipment can not carry out the problem of being connected with vehicle-mounted bluetooth equipment, can reach when simplifying bluetooth connection process, and the intelligence switches the bluetooth and connects the link to the purpose of liberation user's both hands.
Drawings
FIG. 1 is an interaction diagram of a vehicle-mounted Bluetooth device and a terminal device;
FIG. 2 is a logic diagram of a Bluetooth connection in one embodiment;
FIG. 3 is a flowchart illustrating a Bluetooth connection method according to an embodiment;
FIG. 4 is a logic diagram of a Bluetooth connection method in one embodiment;
FIG. 5 is a flow diagram of another exemplary Bluetooth connection method;
FIG. 6 is a logic diagram of another Bluetooth connection method in one embodiment;
FIG. 7 is a block diagram of a Bluetooth connection device in one embodiment;
fig. 8 is a structural diagram of a vehicle-mounted bluetooth device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Bluetooth is a small-range wireless connection technology, can realize convenient, quick, flexible, safe, low-cost and low-power-consumption data communication and language communication among devices, and is one of the mainstream technologies for realizing wireless communication at present. In addition, the wireless communication system is a sophisticated open wireless communication system, which enables wireless communication between various terminal devices and also successfully simplifies communication between the devices and the Internet (Internet), thereby enabling data transmission to be more rapid and efficient and widening the way for wireless communication.
Because bluetooth is used as a short-distance communication mode, bluetooth is widely applied to various industries at present. For example, in recent years, a vehicle-mounted system is provided with a vehicle-mounted Bluetooth function, and in the process of driving a vehicle through quick connection of a mobile phone and vehicle-mounted Bluetooth, the function of the mobile phone is used through the vehicle-mounted Bluetooth, so that both hands of a user are liberated, and safe driving is guaranteed.
When a user drives a vehicle, a driver and a passenger want to connect the carried terminal equipment with the vehicle-mounted Bluetooth equipment, the vehicle-mounted Bluetooth equipment is used for navigation, music playing, video playing, call receiving and making and the like, and the vehicle-mounted Bluetooth equipment refers to a Bluetooth module configured on the vehicle. Fig. 1 shows an interaction diagram of a vehicle-mounted bluetooth device and a terminal device. Referring to fig. 1, a terminal device 10 sends a bluetooth connection request to a vehicle-mounted bluetooth device 20 according to a user operation, and the vehicle-mounted bluetooth device 20 obtains a bluetooth signal strength corresponding to the request based on the bluetooth connection request; if the bluetooth signal strength reaches the signal strength threshold, the vehicle-mounted bluetooth device 20 is paired with the terminal device 10, i.e. a bluetooth connection link is established with the terminal device 10.
Fig. 2 is a logic diagram of the bluetooth connection in one embodiment. Referring to fig. 2, when the vehicle-mounted bluetooth device Z is successfully connected to the terminal device a carried by the user, the terminal device B cannot search for a signal of the vehicle-mounted bluetooth device, that is, the terminal device B cannot establish a bluetooth connection link with the vehicle-mounted bluetooth device, and if the user wants to connect the terminal device B with the vehicle-mounted bluetooth device, the user needs to manually disconnect the vehicle-mounted bluetooth device from the connected terminal device a and then connect the terminal device B. However, this bluetooth connection method requires manual intervention to switch the connection link between the bluetooth terminal device and the vehicle-mounted bluetooth, and the bluetooth connection process is time-consuming and labor-consuming for the user.
In order to solve the problem that the Bluetooth connection process is time-consuming and labor-consuming, the Bluetooth connection method, the Bluetooth connection device, the vehicle-mounted Bluetooth equipment and the storage medium are provided. Can switch the bluetooth at this one end intelligence of on-vehicle bluetooth equipment and connect the link to solve among the prior art other terminal equipment that have paired and exist, lead to other equipment to carry out the problem of being connected with on-vehicle bluetooth equipment, simplify bluetooth connection process, liberate user's both hands.
In one embodiment, as shown in FIG. 3, a Bluetooth connection method is provided. The present embodiment is mainly exemplified by applying the method to the vehicle-mounted bluetooth device 20 in fig. 1, and the vehicle-mounted bluetooth device controls to execute the following steps.
As shown in fig. 3, the bluetooth connection method may include the following steps.
S110, when the vehicle-mounted Bluetooth device receives the Bluetooth connection request, the Bluetooth signal intensity of the device to be connected corresponding to the Bluetooth connection request is obtained.
The vehicle-mounted Bluetooth device refers to a Bluetooth connection module configured in a vehicle. The bluetooth connection request may carry a device identification of the device to be connected. The device to be connected may be a terminal device carried by the driver or a terminal device carried by the passenger. The device to be connected may include a mobile phone, a Personal Digital Assistant (PDA), a bluetooth sound device, a bracelet, and other terminal devices; the device identifier refers to an identifier uniquely identifying the terminal device, and has uniqueness, and the device identifier may include a Media Access Control (MAC) address of the device to be connected, an International Mobile Equipment Identity (IMEI) of the Mobile device, an International Mobile Subscriber Identity (IMSI), a Phone Number (Phone Number), and the like.
In this embodiment, the device to be connected may send a bluetooth connection request to the vehicle-mounted bluetooth device based on a bluetooth protocol, where the bluetooth protocol may be DLNA (Digital Living Network Alliance).
It can be understood that, when the vehicle-mounted bluetooth device receives the bluetooth connection request, the vehicle-mounted bluetooth device may determine a distance to the terminal device based on the device identifier carried in the bluetooth connection request, and determine the bluetooth signal strength of the device to be connected based on the distance.
S120, under the condition that the vehicle-mounted Bluetooth device and the connected device establish a Bluetooth connection link, and the Bluetooth signal intensity of the device to be connected is greater than that of the connected device, the Bluetooth connection link is disconnected, and a new Bluetooth connection link is established with the device to be connected.
The connected device refers to a terminal device which has established a connection link with the vehicle-mounted Bluetooth device, that is, has successfully connected with the vehicle-mounted Bluetooth device. The connected device may be a terminal device carried by the driver or a terminal device carried by the passenger.
In the embodiment, after acquiring the bluetooth signal intensity of the device to be connected, the vehicle-mounted bluetooth device determines the bluetooth signal intensity of the connected device, and compares the bluetooth signal intensity of the connected device with the bluetooth signal intensity of the device to be connected; if only one device to be connected exists and the Bluetooth signal intensity of the device to be connected is greater than that of the connected device, the Bluetooth connection link established with the connected device is disconnected, and a new Bluetooth connection link is established with the device to be connected.
In an optional embodiment, the disconnecting the bluetooth connection link and establishing a new bluetooth connection link with the device to be connected may include:
and under the condition that the vehicle-mounted Bluetooth equipment receives Bluetooth connection requests of two or more to-be-connected equipment, taking the to-be-connected equipment with the maximum Bluetooth signal intensity as target equipment, disconnecting the Bluetooth connection link, and establishing a new Bluetooth connection link with the target equipment.
Specifically, the vehicle-mounted bluetooth device may receive bluetooth connection requests of two or more devices to be connected, and determine the bluetooth signal strength of each device to be connected; if the Bluetooth signal intensity of each device to be connected is greater than the Bluetooth signal intensity of the connected device, determining the connection priority of each device to be connected based on the Bluetooth signal intensity of each device to be connected; and taking the device to be connected with the highest connection priority as the target device, namely taking the device to be connected with the highest Bluetooth signal intensity as the target device, disconnecting the Bluetooth connection link, and establishing a new Bluetooth connection link with the target device.
Illustratively, if the bluetooth device in the vehicle is device Z, the connected device is device a carried by the driver, and the devices to be connected are device B carried by passenger 1 and device C carried by passenger 2, respectively. If the device Z has established a Bluetooth connection link with the device A, the device Z receives Bluetooth connection requests respectively sent by the device B and the device C, and respectively determines the Bluetooth connection strengths corresponding to the device B and the device C; if the Bluetooth signal intensity of the equipment B and the Bluetooth signal intensity of the equipment C are both higher than that of the equipment A, and the Bluetooth signal intensity of the equipment B is higher than that of the equipment C, taking the equipment B as target equipment; further, device Z disconnects the bluetooth connection link with device a and establishes a new bluetooth connection link with device B.
In this way, the vehicle-mounted Bluetooth device can automatically disconnect the Bluetooth connection link and establish a new Bluetooth connection link with the device to be connected by comparing the Bluetooth signal intensity of the device to be connected with the Bluetooth signal intensity of the connected device, so that the Bluetooth connection link can be intelligently switched without manual intervention, the Bluetooth connection link is changed, and the connection process between the terminal device and the vehicle-mounted Bluetooth is simplified.
In another alternative embodiment, the disconnecting the bluetooth connection link and establishing a new bluetooth connection link with the device to be connected may include:
under the condition that the vehicle-mounted Bluetooth equipment receives Bluetooth connection requests of two or more to-be-connected equipment, determining connection priority based on the Bluetooth signal intensity of each to-be-connected equipment;
generating and displaying Bluetooth switching information based on the connection priority;
and receiving user touch operation, disconnecting the Bluetooth connection link based on the user touch operation, and establishing a new Bluetooth connection link with the equipment to be connected.
Specifically, the vehicle-mounted bluetooth device may receive bluetooth connection requests of two or more devices to be connected, and determine the bluetooth signal strength of each device to be connected; if the Bluetooth signal intensity of each device to be connected is greater than the Bluetooth signal intensity of the connected device, determining the connection priority of each device to be connected based on the Bluetooth signal intensity of each device to be connected, sequencing each device to be connected based on the connection priority, generating Bluetooth switching information according to the sequencing result, and displaying the Bluetooth switching information through a popup frame; and if the user touch operation is received, disconnecting the Bluetooth connection link based on the to-be-connected equipment corresponding to the user touch operation, and establishing a new Bluetooth connection link with the to-be-connected equipment.
Fig. 4 is a schematic logic diagram illustrating a bluetooth connection method according to the present application. As described above, the vehicle-mounted bluetooth device is the device Z, the connected device is the device a carried by the driver, and the devices to be connected are the device B carried by the passenger 1 and the device C carried by the passenger 2, respectively. If the device Z has established a Bluetooth connection link with the terminal device A, the device Z receives Bluetooth connection requests respectively sent by the device B and the device C, and respectively determines the Bluetooth connection strengths corresponding to the device B and the device C; if the Bluetooth signal intensity of the equipment B and the Bluetooth signal intensity of the equipment C are both higher than that of the equipment A, and the Bluetooth signal intensity of the equipment B is higher than that of the equipment C, the equipment Z generates the connection priority of the equipment B and the equipment C, ranks each equipment to be connected based on the connection priority, and generates Bluetooth switching information according to the ranking result; further, the device Z displays bluetooth switching information through a popup frame, and if a user touch operation is received and the device to be connected corresponding to the user touch operation is the device B, the device Z disconnects a bluetooth connection link with the device a and establishes a new bluetooth connection link with the device B.
Through the mode, the vehicle-mounted Bluetooth device can determine the connection priority of each device to be connected by comparing the Bluetooth signal intensity of the devices to be connected, and generates Bluetooth switching information based on the connection priority, so that a user can switch the Bluetooth connection link based on own will, the Bluetooth connection requirement of the user is met, and the Bluetooth connection experience of the user is further improved.
In an optional embodiment, the vehicle-mounted bluetooth device may further perform the following method:
under the condition that a Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and the connected equipment, and the Bluetooth signal intensity of the equipment to be connected is less than or equal to that of the connected equipment, receiving the illumination intensity acquired by the signal acquisition device;
and if the illumination intensity is smaller than the light intensity threshold value, disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected.
Wherein, signal acquisition device can include: and the optical sensor is used for acquiring the illumination intensity.
It will be appreciated that the light intensity may be used to determine whether the vehicle is driving at night, and whether the vehicle is driving in an underground parking lot.
Specifically, if the device to be connected is a terminal device providing a navigation function and the connected device is a terminal device providing a music playing function, if the bluetooth signal intensity of the device to be connected is less than or equal to the bluetooth signal intensity of the connected device, bluetooth switching connection cannot be achieved only based on the bluetooth signal intensity, and if the illumination intensity is less than a light intensity threshold value, it is determined that the vehicle is running at night or in an underground parking lot, the vehicle-mounted bluetooth device disconnects a bluetooth connection link with the terminal device providing the music playing function and establishes a new bluetooth connection link with the device to be connected providing the navigation function, so that the device to be connected providing the navigation function navigates the vehicle, and the running safety of the vehicle at night and in the underground parking lot is ensured.
In the embodiment of the present disclosure, in a case that the vehicle-mounted bluetooth device establishes the bluetooth connection link with the connected device, and the bluetooth signal intensity of the device to be connected is less than or equal to the bluetooth signal intensity of the connected device, and the illumination intensity is less than the light intensity threshold, the bluetooth switching prompt information may also be generated, the bluetooth connection link is disconnected based on the user operation, and a new bluetooth connection link is established with the device to be connected.
Through the mode, the Bluetooth connection link can be automatically switched based on the illumination intensity, and the Bluetooth connection link is established with the terminal equipment providing the navigation function, so that the effect of switching the Bluetooth connection link based on the driving environment of the driving vehicle is realized.
In this embodiment, the vehicle-mounted bluetooth device may further perform the following method:
under the condition that a Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and the connected equipment, and the Bluetooth signal intensity of the equipment to be connected is less than or equal to that of the connected equipment, receiving the number of the vehicles around acquired by the signal acquisition device;
and if the road condition data is more than or equal to the preset quantity, disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected.
Wherein, the signal acquisition device can include the camera.
It will be appreciated that the number of vehicles around the vehicle may be used to determine whether there are too many vehicles around the vehicle to determine the complexity of the environment around the vehicle.
Specifically, if the connected device is a terminal device providing a music playing function and the to-be-connected device is a terminal device providing a navigation function, the number of the vehicles around acquired by the signal acquisition device can be received if the bluetooth signal intensity of the to-be-connected device is less than or equal to the bluetooth signal intensity of the connected device; if the number of the vehicles around is larger than or equal to the preset number, the Bluetooth connection link between the terminal equipment providing the music playing function and the terminal equipment providing the navigation function is disconnected, and a new Bluetooth connection link between the terminal equipment providing the navigation function and the terminal equipment is established.
In the embodiment of the present disclosure, in a case where the vehicle-mounted bluetooth device establishes the bluetooth connection link with the connected device, and the bluetooth signal intensity of the device to be connected is less than or equal to the bluetooth signal intensity of the connected device, and the number of the vehicles around is greater than or equal to the preset number, the bluetooth switching prompt information may also be generated, the bluetooth connection link is disconnected based on the user operation, and a new bluetooth connection link is established with the device to be connected.
Through the mode, the Bluetooth connection link can be automatically switched based on the number of the vehicles around, so that the effect of switching the Bluetooth connection link based on the complexity of the surrounding environment of the vehicles is achieved.
In this embodiment, when the vehicle-mounted bluetooth device receives the bluetooth connection request, the vehicle-mounted bluetooth device obtains the bluetooth signal intensity of the device to be connected corresponding to the bluetooth connection request, so as to determine the bluetooth signal intensity of the device to be connected in real time, if the vehicle-mounted bluetooth device determines to establish a bluetooth connection link with the connected device, the bluetooth signal intensity of the connected device is compared with the bluetooth signal intensity of the device to be connected, and if the bluetooth signal intensity of the device to be connected is greater than the bluetooth signal intensity of the connected device, the bluetooth connection link established with the connected device can be automatically disconnected, and a new bluetooth connection link is established with the device to be connected. Above-mentioned bluetooth connected mode can solve among the prior art other terminal equipment that pair when existing at this one end of vehicle-mounted bluetooth equipment, leads to other equipment can not carry out the problem of being connected with vehicle-mounted bluetooth equipment, can reach when simplifying bluetooth connection process, and the intelligence switches the bluetooth and connects the link to the purpose of liberation user's both hands.
In another embodiment, as shown in FIG. 5, a Bluetooth connection method is provided. The present embodiment is mainly illustrated by applying the method to the vehicle-mounted bluetooth device 20 in fig. 1. As shown in fig. 5, the bluetooth connection method may specifically include the following steps.
S210, when the vehicle-mounted Bluetooth device receives the Bluetooth connection request, the Bluetooth signal intensity of the device to be connected corresponding to the Bluetooth connection request is obtained.
S220, under the condition that the vehicle-mounted Bluetooth device does not establish a Bluetooth connection link with the terminal device, historical connection records of two or more devices to be connected are obtained.
The historical connection record may include the device identifier of the device to be connected and the connection time of each device to be connected.
S230, screening out target equipment from the two or more equipment to be connected based on the Bluetooth signal strength and the historical connection records of the two or more equipment to be connected, and establishing a Bluetooth connection link with the target equipment.
The target device refers to a device to be connected, which needs to be connected with the vehicle-mounted Bluetooth device.
In an optional embodiment, the method for determining the target device includes: and if the historical connection record comprises the historical connection record of one of the devices to be connected and the Bluetooth signal intensity of the device to be connected is greater than the preset signal intensity, taking the device to be connected as the target device.
In another alternative embodiment, the method for determining the target device includes: if the historical connection records of two or more devices to be connected and the vehicle-mounted Bluetooth device exist, taking the Bluetooth signal intensity as the Bluetooth signal intensity of the current moment, and determining the Bluetooth signal intensity of the two or more devices to be connected at the last moment based on the historical connection records; and screening out the target equipment from the two or more equipment to be connected based on the Bluetooth signal intensity at the previous moment and the Bluetooth signal intensity at the current moment.
Specifically, if the vehicle-mounted bluetooth device has a history connection record of two or more devices to be connected and the vehicle-mounted bluetooth device, it indicates that the two or more devices to be connected and the vehicle-mounted bluetooth device both establish a bluetooth connection link before the current time; if the Bluetooth signal intensity of each device to be connected is increased or decreased, the vehicle-mounted Bluetooth device takes the Bluetooth signal intensity as the Bluetooth signal intensity at the current moment; the vehicle-mounted Bluetooth device determines the Bluetooth signal intensity of two or more devices to be connected at the last moment based on the historical connection record; and if the Bluetooth signal intensity of the previous moment of one of the devices to be connected is equal to the Bluetooth signal intensity of the previous moment of the other devices to be connected, and the Bluetooth signal intensity of the current moment of one of the devices to be connected is greater than the Bluetooth signal intensity of the previous moment of the other devices to be connected, taking the device to be connected with the maximum Bluetooth signal intensity corresponding to the current moment as the target device, so as to further establish a Bluetooth connection link with the target device.
For example, see another logic diagram of the bluetooth connection method shown in fig. 6. Fig. 6 includes three devices to be connected, which are a device a, a device B, and a device C, respectively, the device a being a terminal device of the driver, the device B being a terminal device of the passenger a, and the device C being a terminal device of the passenger B. Historical connection records of the device A, the device B and the device C are recorded on the vehicle-mounted Bluetooth device Z, and the Bluetooth signal intensity of the device A, the device B and the device C at the last moment is determined based on the historical connection records; if the bluetooth signal intensity of the device a, the device B and the device C is equal at the previous moment, and the bluetooth signal intensity of the device a is greater than the bluetooth signal intensity of the device B and the device C at the current moment, the device a is taken as a target device, that is, the vehicle-mounted bluetooth device Z establishes a bluetooth connection link with the terminal device carried by the driver.
By the above mode, when the distance between the device to be connected and the vehicle-mounted Bluetooth device changes, the target device can be automatically determined based on the Bluetooth signal intensity at the last moment and the Bluetooth signal intensity at the current moment, and the Bluetooth connection link is automatically established with the target device.
In yet another alternative embodiment, the method for determining the target device includes: if the historical connection records of the two or more devices to be connected and the vehicle-mounted Bluetooth device exist, determining the historical task types of the two or more devices to be connected based on the historical connection records, wherein the historical task types comprise: at least one of a navigation task, a music playing task and a video playing task, a conversation task, a video conference task, a telephone conference task and a remote control task; and screening out target equipment from the two or more equipment to be connected based on the Bluetooth signal intensity, the historical task types and the execution times of each historical task type of the two or more equipment to be connected.
In this disclosure, screening out a target device from two or more devices to be connected based on the bluetooth signal strength, the historical task types, and the number of times of execution of each historical task type of the two or more devices to be connected may include:
the vehicle-mounted Bluetooth device determines historical task types of two or more devices to be connected in a latest preset time period before the current time based on historical connection records, determines connection priority of the devices to be connected based on Bluetooth signal strength, the historical task types and execution times of the historical task types of the two or more devices to be connected, and takes the device to be connected with the highest priority as a target device so as to further establish a Bluetooth connection link with the target device. The most recent preset time period before the current time may be the previous day, the previous week, the previous two weeks, or the like of the current time.
Specifically, if the bluetooth signal strengths of two or more devices to be connected are equal, acquiring the historical task types of the two or more devices to be connected and the execution times of each historical task type, and determining the connection priority of the devices to be connected according to the historical task types and the execution times of each historical task type; and the device to be connected with the highest priority is taken as the target device to further establish a Bluetooth connection link with the target device.
Illustratively, historical connection records of a device A to be connected and a device B to be connected exist, if the Bluetooth signal intensities of two or more devices to be connected are equal, the historical task type of the device A to be connected within 10 days before the current time comprises a navigation task, the execution time of the navigation task is 20 times, the historical task type of the device B to be connected within 10 days before the current time comprises a video playing task, and the execution time of the video playing task is 5 times, the priority of the device A to be connected is higher than that of the device B to be connected according to the historical task types of the device A to be connected and the device B to be connected and the execution time of each historical task type, and the device A to be connected is used as a target device, so that a Bluetooth connection link is established between the vehicle-mounted Bluetooth device and the device A to be connected.
By the mode, when two or more devices to be connected and the vehicle-mounted Bluetooth device have historical connection records, the target device can be automatically determined based on the Bluetooth signal intensity, the historical task type and the execution times of the task type of the two or more devices to be connected, and can be automatically connected with the target device, so that the diversification of Bluetooth connection is realized.
In yet another alternative embodiment, the method for determining the target device includes: if the historical connection records of the two or more devices to be connected and the vehicle-mounted Bluetooth device exist, determining the historical illumination intensity when the two or more devices to be connected and the vehicle-mounted Bluetooth device are connected based on the historical connection records; and screening out target equipment from the two or more equipment to be connected based on the Bluetooth signal intensity, the historical illumination intensity and the illumination intensity at the current moment of the two or more equipment to be connected.
Specifically, the vehicle-mounted Bluetooth device determines historical illumination intensity in a latest preset time period before the current time based on the historical connection record; and if the Bluetooth signal intensities of two or more devices to be connected are equal, and the illumination intensity at the current moment is equal to the historical illumination intensity at a certain historical moment, determining the devices to be connected with the vehicle-mounted Bluetooth device at the historical moment as target devices so as to use the functions provided by the target devices.
By the mode, scene matching can be carried out based on historical illumination intensity, the target equipment is automatically determined and automatically connected with the target equipment, and diversification of Bluetooth connection is realized.
In yet another alternative embodiment, the method for determining the target device includes: if the historical connection records of the two or more devices to be connected and the vehicle-mounted Bluetooth device exist, determining the number of the vehicles around the two or more devices to be connected and the vehicle-mounted Bluetooth device when the two or more devices to be connected and the vehicle-mounted Bluetooth device are connected based on the historical connection records; and screening out target equipment from the two or more equipment to be connected based on the Bluetooth signal intensity of the two or more equipment to be connected, the number of the vehicles around at the historical moment and the number of the vehicles around at the current moment.
Specifically, the vehicle-mounted Bluetooth device determines the number of vehicles around in a latest preset time period before the current time based on the historical connection record; if the Bluetooth signal intensities of two or more devices to be connected are equal, the number of the vehicles around the current moment is equal to the number of the vehicles around the current moment at a certain historical moment, and the devices to be connected with the vehicle-mounted Bluetooth device at the historical moment are determined to be used as target devices so as to use the functions provided by the target devices.
Through the mode, the driving environment can be matched based on the number of the vehicles around at the historical moment, the target equipment is automatically determined and automatically connected with the target equipment, and the diversification of Bluetooth connection is realized.
In this embodiment, under the condition that the vehicle-mounted bluetooth device does not establish the bluetooth connection link with the terminal device, historical connection records with two or more devices to be connected are acquired, the historical connection records include device identifiers of the devices to be connected and connection time of each device to be connected, further based on bluetooth signal strength and the historical connection records of the two or more devices to be connected, the target device is automatically selected from the two or more devices to be connected, the bluetooth connection link is established with the target device, the bluetooth connection function is further expanded, and the purpose of intelligently connecting the bluetooth while simplifying the bluetooth connection process is achieved.
In one embodiment, as shown in fig. 7, there is provided a bluetooth connection apparatus including: a bluetooth signal strength acquisition module 310 and a bluetooth connection switching module 320. Wherein the content of the first and second substances,
the bluetooth signal strength acquisition module 310 is configured to, when a vehicle-mounted bluetooth device receives a bluetooth connection request, acquire bluetooth signal strength of a device to be connected corresponding to the bluetooth connection request;
and a bluetooth connection switching module 320, configured to disconnect the bluetooth connection link and establish a new bluetooth connection link with the device to be connected when the vehicle-mounted bluetooth device establishes a bluetooth connection link with the connected device and the bluetooth signal intensity of the device to be connected is greater than the bluetooth signal intensity of the connected device.
Optionally, the bluetooth connection switching module 320 is specifically configured to, when the vehicle-mounted bluetooth device receives a bluetooth connection request from two or more devices to be connected, use the device to be connected with the largest bluetooth signal strength as a target device, disconnect the bluetooth connection link, and establish a new bluetooth connection link with the target device.
Optionally, the apparatus further comprises:
the illumination intensity receiving module is used for receiving the illumination intensity acquired by the signal acquisition device under the condition that the vehicle-mounted Bluetooth device and the connected device establish a Bluetooth connection link and the Bluetooth signal intensity of the device to be connected is less than or equal to that of the connected device;
the bluetooth connection switching module 320 is specifically configured to disconnect the bluetooth connection link and establish a new bluetooth connection link with the device to be connected if the illumination intensity is smaller than the light intensity threshold.
Optionally, the apparatus further comprises:
the vehicle data acquisition module is used for receiving the number of the vehicles around acquired by the signal acquisition device under the condition that the vehicle-mounted Bluetooth device and the connected device establish a Bluetooth connection link, and the Bluetooth signal intensity of the device to be connected is less than or equal to that of the connected device;
the bluetooth connection switching module 320 is specifically configured to disconnect the bluetooth connection link and establish a new bluetooth connection link with the device to be connected if the number of the vehicles around is greater than or equal to a preset number.
Optionally, the apparatus further comprises:
the historical connection record acquisition module is used for acquiring historical connection records of two or more devices to be connected under the condition that the vehicle-mounted Bluetooth device does not establish a Bluetooth connection link with the terminal device;
the bluetooth connection switching module 320 is specifically configured to screen out a target device from the two or more devices to be connected based on the bluetooth signal strengths of the two or more devices to be connected and the historical connection records, and establish a bluetooth connection link with the target device.
Optionally, the bluetooth connection switching module 320 is specifically configured to, if there are historical connection records of two or more to-be-connected devices and the vehicle-mounted bluetooth device, use the bluetooth signal strength as the bluetooth signal strength at the current time, and determine the bluetooth signal strength of the two or more to-be-connected devices at the previous time based on the historical connection records;
and screening out target equipment from two or more equipment to be connected based on the Bluetooth signal intensity at the previous moment and the Bluetooth signal intensity at the current moment.
Optionally, the bluetooth connection switching module 320 is specifically configured to, if there are historical connection records of two or more to-be-connected devices and the vehicle-mounted bluetooth device, determine historical task types of the two or more to-be-connected devices based on the historical connection records, where the historical task types include: at least one of a navigation task, a music playing task and a video playing task, a conversation task, a video conference task, a telephone conference task and a remote control task;
and screening out target equipment from the two or more to-be-connected equipment based on the Bluetooth signal intensity of the two or more to-be-connected equipment, the historical task types and the execution times of each historical task type.
In this embodiment, when the vehicle-mounted bluetooth device receives the bluetooth connection request, the vehicle-mounted bluetooth device obtains the bluetooth signal intensity of the device to be connected corresponding to the bluetooth connection request, so as to determine the bluetooth signal intensity of the device to be connected in real time, if the vehicle-mounted bluetooth device determines to establish a bluetooth connection link with the connected device, the bluetooth signal intensity of the connected device is compared with the bluetooth signal intensity of the device to be connected, and if the bluetooth signal intensity of the device to be connected is greater than the bluetooth signal intensity of the connected device, the bluetooth connection link established with the connected device can be automatically disconnected, and a new bluetooth connection link is established with the device to be connected. Above-mentioned bluetooth connected mode can solve among the prior art other terminal equipment that pair when existing at this one end of vehicle-mounted bluetooth equipment, leads to other equipment can not carry out the problem of being connected with vehicle-mounted bluetooth equipment, can reach when simplifying bluetooth connection process, and the intelligence switches the bluetooth and connects the link to the purpose of liberation user's both hands.
For the specific definition of the bluetooth connection device, reference may be made to the above definition of the bluetooth connection method, which is not described herein again. The modules in the bluetooth connection device may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the vehicle-mounted Bluetooth device, and can also be stored in a memory in the vehicle-mounted Bluetooth device in a software form, so that the processor can call and execute the corresponding operations of the modules.
In one embodiment, a vehicle Bluetooth device is provided, which may be a vehicle Bluetooth module. The internal structure thereof may be as shown in fig. 8. The vehicle-mounted Bluetooth device comprises a processor, a memory and a network interface which are connected through a system bus. Wherein, the processor of the vehicle-mounted Bluetooth device is used for providing calculation and control capability. The memory of the vehicle-mounted Bluetooth device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, the communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be Bluetooth communication. The input device of the computer equipment can be a touch layer covered on a display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the structure shown in fig. 8 is a block diagram of only a portion of the structure relevant to the present application, and does not constitute a limitation on the computer device to which the present application is applied, and a particular vehicle-mounted bluetooth device may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
In one embodiment, the bluetooth connection apparatus provided in the present application may be implemented in the form of a computer program, and the computer program may be run on a vehicle-mounted bluetooth device as shown in fig. 8. The memory of the vehicle-mounted bluetooth device may store various program modules constituting the bluetooth connection apparatus, such as the bluetooth signal strength acquisition module 310 and the bluetooth connection switching module 320 shown in fig. 7. The respective program modules constitute computer programs that cause the processor to execute the steps in the bluetooth connection method of the respective embodiments of the present application described in the present specification.
For example, the vehicle-mounted bluetooth device shown in fig. 8 may perform S110 through the bluetooth signal strength acquisition module 310 in the bluetooth connection apparatus shown in fig. 7. The vehicle-mounted bluetooth device may perform S120 through the bluetooth connection switching module 320.
In one embodiment, a vehicle bluetooth device is provided, comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when the vehicle-mounted Bluetooth equipment receives a Bluetooth connection request, acquiring the Bluetooth signal intensity of equipment to be connected corresponding to the Bluetooth connection request;
under the condition that the vehicle-mounted Bluetooth device and the connected device establish a Bluetooth connection link, and the Bluetooth signal intensity of the device to be connected is greater than that of the connected device, the Bluetooth connection link is disconnected, and a new Bluetooth connection link is established with the device to be connected.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and under the condition that the vehicle-mounted Bluetooth equipment receives Bluetooth connection requests of two or more devices to be connected, taking the device to be connected with the maximum Bluetooth signal intensity as target equipment, disconnecting the Bluetooth connection link, and establishing a new Bluetooth connection link with the target equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
under the condition that a Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and connected equipment, and the Bluetooth signal intensity of the equipment to be connected is less than or equal to that of the connected equipment, receiving the illumination intensity acquired by a signal acquisition device;
and if the illumination intensity is smaller than the light intensity threshold value, disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
under the condition that a Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and connected equipment, and the Bluetooth signal intensity of the equipment to be connected is less than or equal to that of the connected equipment, receiving the number of surrounding vehicles acquired by a signal acquisition device;
and if the number of the surrounding vehicles is larger than or equal to the preset number, disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
under the condition that the vehicle-mounted Bluetooth device does not establish a Bluetooth connection link with the terminal device, acquiring historical connection records of two or more devices to be connected;
and screening out target equipment from the two or more equipment to be connected based on the Bluetooth signal intensity of the two or more equipment to be connected and the historical connection records, and establishing a Bluetooth connection link with the target equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the historical connection records of two or more devices to be connected and the vehicle-mounted Bluetooth device exist, taking the Bluetooth signal intensity as the Bluetooth signal intensity of the current moment, and determining the Bluetooth signal intensity of the two or more devices to be connected at the last moment based on the historical connection records;
and screening out target equipment from two or more equipment to be connected based on the Bluetooth signal intensity at the previous moment and the Bluetooth signal intensity at the current moment.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if two or more than two historical connection records of the to-be-connected equipment and the vehicle-mounted Bluetooth equipment exist, determining historical task types of the two or more than two to-be-connected equipment based on the historical connection records, wherein the historical task types comprise: at least one of a navigation task, a music playing task and a video playing task, a conversation task, a video conference task, a telephone conference task and a remote control task;
and screening out target equipment from the two or more to-be-connected equipment based on the Bluetooth signal intensity of the two or more to-be-connected equipment, the historical task types and the execution times of each historical task type.
In this embodiment, when the vehicle-mounted bluetooth device receives the bluetooth connection request, the vehicle-mounted bluetooth device obtains the bluetooth signal intensity of the device to be connected corresponding to the bluetooth connection request, so as to determine the bluetooth signal intensity of the device to be connected in real time, if the vehicle-mounted bluetooth device determines to establish a bluetooth connection link with the connected device, the bluetooth signal intensity of the connected device is compared with the bluetooth signal intensity of the device to be connected, and if the bluetooth signal intensity of the device to be connected is greater than the bluetooth signal intensity of the connected device, the bluetooth connection link established with the connected device can be automatically disconnected, and a new bluetooth connection link is established with the device to be connected. Above-mentioned bluetooth connected mode can solve among the prior art other terminal equipment that pair when existing at this one end of vehicle-mounted bluetooth equipment, leads to other equipment can not carry out the problem of being connected with vehicle-mounted bluetooth equipment, can reach when simplifying bluetooth connection process, and the intelligence switches the bluetooth and connects the link to the purpose of liberation user's both hands.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when the vehicle-mounted Bluetooth equipment receives a Bluetooth connection request, acquiring the Bluetooth signal intensity of equipment to be connected corresponding to the Bluetooth connection request;
under the condition that the vehicle-mounted Bluetooth device and the connected device establish a Bluetooth connection link, and the Bluetooth signal intensity of the device to be connected is greater than that of the connected device, the Bluetooth connection link is disconnected, and a new Bluetooth connection link is established with the device to be connected.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and under the condition that the vehicle-mounted Bluetooth equipment receives Bluetooth connection requests of two or more devices to be connected, taking the device to be connected with the maximum Bluetooth signal intensity as target equipment, disconnecting the Bluetooth connection link, and establishing a new Bluetooth connection link with the target equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
under the condition that a Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and connected equipment, and the Bluetooth signal intensity of the equipment to be connected is less than or equal to that of the connected equipment, receiving the illumination intensity acquired by a signal acquisition device;
and if the illumination intensity is smaller than the light intensity threshold value, disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
under the condition that a Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and connected equipment, and the Bluetooth signal intensity of the equipment to be connected is less than or equal to that of the connected equipment, receiving the number of surrounding vehicles acquired by a signal acquisition device;
and if the number of the surrounding vehicles is larger than or equal to the preset number, disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
under the condition that the vehicle-mounted Bluetooth device does not establish a Bluetooth connection link with the terminal device, acquiring historical connection records of two or more devices to be connected;
and screening out target equipment from the two or more equipment to be connected based on the Bluetooth signal intensity of the two or more equipment to be connected and the historical connection records, and establishing a Bluetooth connection link with the target equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the historical connection records of two or more devices to be connected and the vehicle-mounted Bluetooth device exist, taking the Bluetooth signal intensity as the Bluetooth signal intensity of the current moment, and determining the Bluetooth signal intensity of the two or more devices to be connected at the last moment based on the historical connection records;
and screening out target equipment from two or more equipment to be connected based on the Bluetooth signal intensity at the previous moment and the Bluetooth signal intensity at the current moment.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if two or more than two historical connection records of the to-be-connected equipment and the vehicle-mounted Bluetooth equipment exist, determining historical task types of the two or more than two to-be-connected equipment based on the historical connection records, wherein the historical task types comprise: at least one of a navigation task, a music playing task and a video playing task, a conversation task, a video conference task, a telephone conference task and a remote control task;
and screening out target equipment from the two or more to-be-connected equipment based on the Bluetooth signal intensity of the two or more to-be-connected equipment, the historical task types and the execution times of each historical task type.
In this embodiment, when the vehicle-mounted bluetooth device receives the bluetooth connection request, the vehicle-mounted bluetooth device obtains the bluetooth signal intensity of the device to be connected corresponding to the bluetooth connection request, so as to determine the bluetooth signal intensity of the device to be connected in real time, if the vehicle-mounted bluetooth device determines to establish a bluetooth connection link with the connected device, the bluetooth signal intensity of the connected device is compared with the bluetooth signal intensity of the device to be connected, and if the bluetooth signal intensity of the device to be connected is greater than the bluetooth signal intensity of the connected device, the bluetooth connection link established with the connected device can be automatically disconnected, and a new bluetooth connection link is established with the device to be connected. Above-mentioned bluetooth connected mode can solve among the prior art other terminal equipment that pair when existing at this one end of vehicle-mounted bluetooth equipment, leads to other equipment can not carry out the problem of being connected with vehicle-mounted bluetooth equipment, can reach when simplifying bluetooth connection process, and the intelligence switches the bluetooth and connects the link to the purpose of liberation user's both hands.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM is available in many forms, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), and the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A bluetooth connection method, comprising:
when the vehicle-mounted Bluetooth equipment receives a Bluetooth connection request, acquiring the Bluetooth signal intensity of equipment to be connected corresponding to the Bluetooth connection request;
under the condition that the vehicle-mounted Bluetooth device and the connected device establish a Bluetooth connection link, and the Bluetooth signal intensity of the device to be connected is greater than that of the connected device, the Bluetooth connection link is disconnected, and a new Bluetooth connection link is established with the device to be connected.
2. The method according to claim 1, wherein the disconnecting the bluetooth connection link and establishing a new bluetooth connection link with the device to be connected comprises:
and under the condition that the vehicle-mounted Bluetooth equipment receives Bluetooth connection requests of two or more devices to be connected, taking the device to be connected with the maximum Bluetooth signal intensity as target equipment, disconnecting the Bluetooth connection link, and establishing a new Bluetooth connection link with the target equipment.
3. The method of claim 1, further comprising:
under the condition that a Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and connected equipment, and the Bluetooth signal intensity of the equipment to be connected is less than or equal to that of the connected equipment, receiving the illumination intensity acquired by a signal acquisition device;
and if the illumination intensity is smaller than the light intensity threshold value, disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected.
4. The method of claim 1, further comprising:
under the condition that a Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and connected equipment, and the Bluetooth signal intensity of the equipment to be connected is less than or equal to that of the connected equipment, receiving the number of surrounding vehicles acquired by a signal acquisition device;
and if the number of the surrounding vehicles is larger than or equal to the preset number, disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected.
5. The method of claim 1, further comprising:
under the condition that the vehicle-mounted Bluetooth device does not establish a Bluetooth connection link with the terminal device, acquiring historical connection records of two or more devices to be connected;
and screening out target equipment from the two or more equipment to be connected based on the Bluetooth signal intensity of the two or more equipment to be connected and the historical connection records, and establishing a Bluetooth connection link with the target equipment.
6. The method according to claim 5, wherein the screening out target devices from the two or more devices to be connected based on the Bluetooth signal strength and the historical connection records of the two or more devices to be connected comprises:
if the historical connection records of two or more devices to be connected and the vehicle-mounted Bluetooth device exist, taking the Bluetooth signal intensity as the Bluetooth signal intensity of the current moment, and determining the Bluetooth signal intensity of the two or more devices to be connected at the last moment based on the historical connection records;
and screening out target equipment from two or more equipment to be connected based on the Bluetooth signal intensity at the previous moment and the Bluetooth signal intensity at the current moment.
7. The method according to claim 5, wherein the screening out target devices from the two or more devices to be connected based on the Bluetooth signal strength and the historical connection records of the two or more devices to be connected comprises:
if two or more than two historical connection records of the to-be-connected equipment and the vehicle-mounted Bluetooth equipment exist, determining historical task types of the two or more than two to-be-connected equipment based on the historical connection records, wherein the historical task types comprise: at least one of a navigation task, a music playing task and a video playing task, a conversation task, a video conference task, a telephone conference task and a remote control task;
and screening out target equipment from the two or more to-be-connected equipment based on the Bluetooth signal intensity of the two or more to-be-connected equipment, the historical task types and the execution times of each historical task type.
8. An apparatus for bluetooth connection, the apparatus comprising:
the Bluetooth signal intensity acquisition module is used for acquiring the Bluetooth signal intensity of equipment to be connected corresponding to the Bluetooth connection request when the vehicle-mounted Bluetooth equipment receives the Bluetooth connection request;
and the Bluetooth connection switching module is used for disconnecting the Bluetooth connection link and establishing a new Bluetooth connection link with the equipment to be connected under the condition that the Bluetooth connection link is established between the vehicle-mounted Bluetooth equipment and the connected equipment and the Bluetooth signal intensity of the equipment to be connected is greater than that of the connected equipment.
9. An onboard bluetooth device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110591253.0A 2021-05-28 2021-05-28 Bluetooth connection method and device, vehicle-mounted Bluetooth device and storage medium Active CN113507702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110591253.0A CN113507702B (en) 2021-05-28 2021-05-28 Bluetooth connection method and device, vehicle-mounted Bluetooth device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110591253.0A CN113507702B (en) 2021-05-28 2021-05-28 Bluetooth connection method and device, vehicle-mounted Bluetooth device and storage medium

Publications (2)

Publication Number Publication Date
CN113507702A true CN113507702A (en) 2021-10-15
CN113507702B CN113507702B (en) 2023-10-03

Family

ID=78008643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110591253.0A Active CN113507702B (en) 2021-05-28 2021-05-28 Bluetooth connection method and device, vehicle-mounted Bluetooth device and storage medium

Country Status (1)

Country Link
CN (1) CN113507702B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157701A (en) * 2021-11-19 2022-03-08 北京百度网讯科技有限公司 Task testing method, device, equipment and storage medium
CN116095800A (en) * 2023-04-10 2023-05-09 北京握奇智能科技有限公司 OBU Bluetooth low-power-consumption intelligent control method and device, electronic equipment and medium

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105025637A (en) * 2015-08-11 2015-11-04 宁波晶辉光电有限公司 Bluetooth intelligent lamp and control method thereof
CN105491635A (en) * 2015-11-19 2016-04-13 广州视睿电子科技有限公司 Wireless device matching method, device and system
US20160150066A1 (en) * 2014-11-26 2016-05-26 Hyundai Motor Company Method and Apparatus for Providing In-Vehicle Bluetooth Pairing
WO2017017395A1 (en) * 2015-07-30 2017-02-02 Ticatag Communication between a li-fi lamp and a communication terminal
CN206212367U (en) * 2016-09-26 2017-05-31 歌尔科技有限公司 A kind of intelligent lamp and Intelligent light system
WO2018053970A1 (en) * 2016-09-23 2018-03-29 歌尔科技有限公司 Connection method and connection device for bluetooth device
WO2018075139A1 (en) * 2016-10-21 2018-04-26 Qualcomm Incorporated Devices and methods for connecting wireless communication devices
WO2018145447A1 (en) * 2017-02-07 2018-08-16 中兴通讯股份有限公司 Terminal operation control method and apparatus, and terminal
WO2018166103A1 (en) * 2017-03-14 2018-09-20 华为技术有限公司 Wireless communication-based connection method and terminal
CN110234137A (en) * 2019-04-30 2019-09-13 努比亚技术有限公司 Communication control method, equipment, system and readable storage medium storing program for executing
CN110377316A (en) * 2019-07-23 2019-10-25 拉扎斯网络科技(上海)有限公司 Bluetooth equipment and its upgrade method, device and computer readable storage medium
CN110572805A (en) * 2019-09-10 2019-12-13 中化信息技术有限公司 Data transmission method and device, electronic equipment and computer readable medium
CN110972334A (en) * 2019-12-09 2020-04-07 上海传英信息技术有限公司 Bluetooth pairing connection method and device and readable storage medium
CN112135280A (en) * 2020-09-22 2020-12-25 海信视像科技股份有限公司 Bluetooth device playing control method and display device
CN112243220A (en) * 2019-07-18 2021-01-19 华为技术有限公司 Method for establishing communication connection and wearable device
CN112449331A (en) * 2019-09-05 2021-03-05 海信视像科技股份有限公司 Equipment connection method, Bluetooth remote controller and Bluetooth connection system
CN112492442A (en) * 2020-11-24 2021-03-12 江苏紫米电子技术有限公司 Connection switching method, device, equipment and storage medium of Bluetooth headset

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160150066A1 (en) * 2014-11-26 2016-05-26 Hyundai Motor Company Method and Apparatus for Providing In-Vehicle Bluetooth Pairing
WO2017017395A1 (en) * 2015-07-30 2017-02-02 Ticatag Communication between a li-fi lamp and a communication terminal
CN105025637A (en) * 2015-08-11 2015-11-04 宁波晶辉光电有限公司 Bluetooth intelligent lamp and control method thereof
CN105491635A (en) * 2015-11-19 2016-04-13 广州视睿电子科技有限公司 Wireless device matching method, device and system
WO2018053970A1 (en) * 2016-09-23 2018-03-29 歌尔科技有限公司 Connection method and connection device for bluetooth device
CN206212367U (en) * 2016-09-26 2017-05-31 歌尔科技有限公司 A kind of intelligent lamp and Intelligent light system
WO2018075139A1 (en) * 2016-10-21 2018-04-26 Qualcomm Incorporated Devices and methods for connecting wireless communication devices
WO2018145447A1 (en) * 2017-02-07 2018-08-16 中兴通讯股份有限公司 Terminal operation control method and apparatus, and terminal
WO2018166103A1 (en) * 2017-03-14 2018-09-20 华为技术有限公司 Wireless communication-based connection method and terminal
CN110234137A (en) * 2019-04-30 2019-09-13 努比亚技术有限公司 Communication control method, equipment, system and readable storage medium storing program for executing
CN112243220A (en) * 2019-07-18 2021-01-19 华为技术有限公司 Method for establishing communication connection and wearable device
CN110377316A (en) * 2019-07-23 2019-10-25 拉扎斯网络科技(上海)有限公司 Bluetooth equipment and its upgrade method, device and computer readable storage medium
CN112449331A (en) * 2019-09-05 2021-03-05 海信视像科技股份有限公司 Equipment connection method, Bluetooth remote controller and Bluetooth connection system
CN110572805A (en) * 2019-09-10 2019-12-13 中化信息技术有限公司 Data transmission method and device, electronic equipment and computer readable medium
CN110972334A (en) * 2019-12-09 2020-04-07 上海传英信息技术有限公司 Bluetooth pairing connection method and device and readable storage medium
CN112135280A (en) * 2020-09-22 2020-12-25 海信视像科技股份有限公司 Bluetooth device playing control method and display device
CN112492442A (en) * 2020-11-24 2021-03-12 江苏紫米电子技术有限公司 Connection switching method, device, equipment and storage medium of Bluetooth headset

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114157701A (en) * 2021-11-19 2022-03-08 北京百度网讯科技有限公司 Task testing method, device, equipment and storage medium
CN114157701B (en) * 2021-11-19 2023-11-28 北京百度网讯科技有限公司 Task testing method, device, equipment and storage medium
CN116095800A (en) * 2023-04-10 2023-05-09 北京握奇智能科技有限公司 OBU Bluetooth low-power-consumption intelligent control method and device, electronic equipment and medium
CN116095800B (en) * 2023-04-10 2023-09-01 北京握奇智能科技有限公司 OBU Bluetooth low-power-consumption intelligent control method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN113507702B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
EP2975821B1 (en) Network connection method and apparatus
CN112559098B (en) Card rendering method and electronic equipment
US8805351B2 (en) System and method for forming automatically launching user set default app from smartphone
CN113507702B (en) Bluetooth connection method and device, vehicle-mounted Bluetooth device and storage medium
CN106992953A (en) System information acquisition method and device
US20130169670A1 (en) Electronic device and method for transmitting slide file during slide file presentation
CN110187925B (en) Desktop pre-starting control method, device and computer readable storage medium
CN105644472B (en) Method for rapidly positioning and onboard system
CN111079034A (en) Shared navigation implementation method, terminal equipment and computer equipment
CN105208089A (en) Information display method, apparatus and system
CN105091894A (en) Navigation method, intelligent terminal device and wearable device
CN111262870B (en) Video call switching method and device, storage medium and terminal
CN113314120B (en) Processing method, processing apparatus, and storage medium
CN109417802B (en) Method and device for transmitting flight information
CN113660301A (en) Control method and device for automobile central control, automobile central control and storage medium
CN108134867B (en) Vehicle-mounted Bluetooth telephone processing method and device
CN106485335B (en) Service reservation processing method and device
CN111292138B (en) Vehicle-mounted advertisement updating method and device, electronic equipment and storage medium
CN114363654A (en) Video plug-flow method, device, terminal equipment and storage medium
CN106125595A (en) Control the method and device of terminal applies
CN105827279A (en) Communication method of bluetooth device applied to vehicle and communication system thereof and bluetooth device
CN115442468B (en) Voice call switching method and device, equipment and medium
CN115277928B (en) Processing method, intelligent terminal and storage medium
CN113424471B (en) Method, device and storage medium for determining resources
CN110896567A (en) Data transmission method and device based on WIFI

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