CN109219031B - Bluetooth priority connection method and device - Google Patents

Bluetooth priority connection method and device Download PDF

Info

Publication number
CN109219031B
CN109219031B CN201811337923.0A CN201811337923A CN109219031B CN 109219031 B CN109219031 B CN 109219031B CN 201811337923 A CN201811337923 A CN 201811337923A CN 109219031 B CN109219031 B CN 109219031B
Authority
CN
China
Prior art keywords
user terminal
information
priority
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.)
Active
Application number
CN201811337923.0A
Other languages
Chinese (zh)
Other versions
CN109219031A (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.)
CH Auto Technology Co Ltd
Original Assignee
CH Auto 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 CH Auto Technology Co Ltd filed Critical CH Auto Technology Co Ltd
Priority to CN201811337923.0A priority Critical patent/CN109219031B/en
Publication of CN109219031A publication Critical patent/CN109219031A/en
Application granted granted Critical
Publication of CN109219031B publication Critical patent/CN109219031B/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
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • H04W76/34Selective release of ongoing connections
    • H04W76/36Selective release of ongoing connections for reassigning the resources associated with the released connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/50Connection management for emergency connections

Landscapes

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

Abstract

The invention provides a Bluetooth preferential connection method and a Bluetooth preferential connection device, which are applied to a vehicle-mounted navigation terminal and comprise the following steps: under the condition that the Bluetooth device of the first user terminal is detected, receiving first connection request information sent by the Bluetooth device of the first user terminal; judging whether to establish connection with the Bluetooth equipment of the second user terminal; if the connection is established, second connection request information of a second user terminal is obtained; judging whether the priority of the first user terminal is higher than that of the second user terminal according to the first priority information and the second priority information; if the current time is higher than the preset time, disconnecting the Bluetooth device of the second user terminal and automatically connecting the Bluetooth device of the first user terminal; if the current time is less than the preset time, the vehicle-mounted navigation terminal is continuously connected with the Bluetooth device of the second user terminal, the vehicle-mounted navigation terminal can be preferentially used in a priority mode, the situation that a driver wants to use the vehicle-mounted navigation terminal in an emergency and is occupied by other mobile phones is solved, and therefore driving safety is improved.

Description

Bluetooth priority connection method and device
Technical Field
The invention relates to the technical field of vehicle-mounted control, in particular to a Bluetooth priority connection method and device.
Background
When people drive a car, in order to drive safely, the mobile phone and the vehicle-mounted navigation terminal (or other vehicle-mounted Bluetooth devices) are connected together by the Bluetooth device, and the vehicle-mounted navigation terminal is used for communication.
Because bluetooth equipment has abundant function, not only can make a call, can also listen to music, pass the file to lead to vehicle navigation terminal can be connected by many people, under this kind of condition, there is emergency when the driver in the driving process, when wanting to use vehicle navigation terminal to carry out the bluetooth conversation, vehicle navigation terminal is nevertheless occupied by other cell-phones, thereby can't use vehicle navigation terminal.
Disclosure of Invention
In view of the above, the present invention is directed to a bluetooth priority connection method and apparatus, which can use a car navigation terminal preferentially in a priority manner, so as to solve the problem that a driver wants to use the car navigation terminal in an emergency and is occupied by other mobile phones, thereby improving driving safety.
In a first aspect, an embodiment of the present invention provides a bluetooth priority connection method, which is applied to a vehicle navigation terminal, and the method includes:
detecting Bluetooth equipment of a first user terminal;
if the Bluetooth device of the first user terminal is detected, receiving first connection request information sent by the Bluetooth device of the first user terminal, wherein the first connection request information comprises first priority information and address information of the Bluetooth device of the first user terminal;
judging whether to establish connection with the Bluetooth equipment of the second user terminal;
if the connection with the Bluetooth equipment of the second user terminal is established, second connection request information of the second user terminal is obtained, wherein the second connection request information comprises second priority information;
judging whether the priority of the first user terminal is higher than that of the second user terminal according to the first priority information and the second priority information;
if the priority of the first user terminal is higher than that of the second user terminal, disconnecting the Bluetooth equipment of the second user terminal, and automatically connecting the Bluetooth equipment of the first user terminal according to the address information of the Bluetooth equipment of the first user terminal;
and if the priority of the first user terminal is lower than that of the second user terminal, continuing to keep connection with the Bluetooth equipment of the second user terminal.
Further, the determining whether to establish a connection with a bluetooth device of the second user terminal further includes:
and if the connection with the Bluetooth equipment of the second user terminal is not established, establishing connection with the Bluetooth equipment of the first user terminal according to the address information of the Bluetooth equipment of the first user terminal.
Further, the first priority information and the second priority information are set by:
acquiring driving position information, wherein the driving position information comprises driver position information, co-driver position information and rear passenger position information;
the priority of the driver position information is higher than that of the secondary driver position information, and the secondary driver position information is higher than that of the rear passenger position information.
Further, the first priority information and the second priority information are further set by:
acquiring driving frequency information of the user at each driving position according to the driving position information;
and determining the first priority information or the second priority information according to the driving frequency information.
Further, the method further comprises:
sending user name information and password information to a cloud end so that the cloud end searches corresponding priority information and corresponding Bluetooth device address information according to the user name information and the password information;
and receiving the corresponding priority information and the Bluetooth equipment address information sent by the cloud.
In a second aspect, an embodiment of the present invention provides a bluetooth preferential connection apparatus, which is applied to a vehicle navigation terminal, and includes:
the detection unit is used for detecting the Bluetooth equipment of the first user terminal;
a first receiving unit, configured to receive first connection request information sent by a bluetooth device of the first user terminal when the bluetooth device of the first user terminal is detected, where the first connection request information includes first priority information and address information of the bluetooth device of the first user terminal;
the first judgment unit is used for judging whether to establish connection with the Bluetooth equipment of the second user terminal;
a first obtaining unit, configured to obtain second connection request information of the second user terminal when a connection is established with a bluetooth device of the second user terminal, where the second connection request information includes second priority information;
a second judging unit, configured to judge whether the priority of the first user terminal is higher than that of the second user terminal according to the first priority information and the second priority information;
the disconnection unit is used for disconnecting the connection with the Bluetooth equipment of the second user terminal under the condition that the priority of the first user terminal is higher than that of the second user terminal, and automatically connecting the Bluetooth equipment of the first user terminal according to the address information of the Bluetooth equipment of the first user terminal;
and the connection unit is used for continuing to maintain connection with the Bluetooth equipment of the second user terminal under the condition that the priority of the first user terminal is lower than that of the second user terminal.
Further, the first determining unit further includes:
and if the connection with the Bluetooth equipment of the second user terminal is not established, establishing connection with the Bluetooth equipment of the first user terminal according to the address information of the Bluetooth equipment of the first user terminal.
Further, the first priority information and the second priority information are set by:
a second acquisition unit configured to acquire driving position information including driver position information, co-driver position information, and rear passenger position information; the priority of the driver position information is higher than that of the secondary driver position information, and the secondary driver position information is higher than that of the rear passenger position information.
Further, the first priority information and the second priority information are further set by:
the third acquisition unit is used for acquiring the driving frequency information of the user at each driving position according to the driving position information;
a determination unit configured to determine the first priority information or the second priority information according to the driving frequency information.
Further, the apparatus further comprises:
the sending unit is used for sending the user name information and the password information to a cloud end so that the cloud end searches corresponding priority information and corresponding Bluetooth equipment address information according to the user name information and the password information;
and the second receiving unit is used for receiving the corresponding priority information and the Bluetooth equipment address information sent by the cloud.
The embodiment of the invention provides a Bluetooth priority connection method and a Bluetooth priority connection device, which are applied to a vehicle navigation terminal and comprise the following steps: detecting Bluetooth equipment of a first user terminal; if the Bluetooth device of the first user terminal is detected, receiving first connection request information sent by the Bluetooth device of the first user terminal, wherein the first connection request information comprises first priority information and address information of the Bluetooth device of the first user terminal; judging whether to establish connection with the Bluetooth equipment of the second user terminal; if the connection with the Bluetooth equipment of the second user terminal is established, second connection request information of the second user terminal is obtained, wherein the second connection request information comprises second priority information; judging whether the priority of the first user terminal is higher than that of the second user terminal according to the first priority information and the second priority information; if the priority of the first user terminal is higher than that of the second user terminal, the connection with the Bluetooth equipment of the second user terminal is disconnected, and the Bluetooth equipment of the first user terminal is automatically connected; if the priority of the first user terminal is lower than that of the second user terminal, the first user terminal is continuously connected with the Bluetooth device of the second user terminal, the vehicle-mounted navigation terminal can be preferentially used in a priority mode, the situation that a driver wants to use the vehicle-mounted navigation terminal and is occupied by other mobile phones in an emergency situation is solved, and therefore driving safety is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a bluetooth connection priority method according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for setting priority information according to an embodiment of the present invention;
fig. 3 is a flowchart of another setting method of priority information according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a bluetooth preferred connection apparatus according to a second embodiment of the present invention.
Icon:
10-a detection unit; 20-a first receiving unit; 30-a first judging unit; 40-a first acquisition unit; 50-a second judging unit; 60-a disconnection unit; 70-connecting unit.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For the understanding of the present embodiment, the following detailed description will be given of the embodiment of the present invention.
The first embodiment is as follows:
fig. 1 is a flowchart of a bluetooth connection priority method according to an embodiment of the present invention.
Referring to fig. 1, the execution subject is a car navigation terminal, and the method includes the following steps:
step S101, detecting Bluetooth equipment of a first user terminal;
here, the first user terminal is a device currently required to be connected with the car navigation terminal, and the second user terminal is the rest of devices which are connected with the car navigation terminal or are not connected with the car navigation terminal.
Step S102, if the Bluetooth device of the first user terminal is detected, first connection request information sent by the Bluetooth device of the first user terminal is received, wherein the first connection request information comprises first priority information and address information of the Bluetooth device of the first user terminal;
specifically, after the user clicks the connection of the first user terminal and starts the bluetooth device, the vehicle-mounted navigation terminal starts to detect the bluetooth device. And when the Bluetooth equipment of the first user terminal is detected, receiving first connection request information sent by the first user terminal, and determining whether to establish connection with the first user terminal.
Step S103, judging whether to establish connection with the Bluetooth equipment of the second user terminal; if the connection with the Bluetooth device of the second user terminal is established, executing step S104; if no connection is established with the bluetooth device of the second user terminal, executing step S105;
step S104, acquiring second connection request information of a second user terminal, wherein the second connection request information comprises second priority information;
step S105, establishing connection with the Bluetooth device of the first user terminal according to the address information of the Bluetooth device of the first user terminal;
step S106, judging whether the priority of the first user terminal is higher than that of the second user terminal according to the first priority information and the second priority information, and executing step S107 if the priority of the first user terminal is higher than that of the second user terminal; if the priority of the first user terminal is lower than that of the second user terminal, executing step S108;
here, if the vehicle-mounted navigation terminal establishes a connection with the second user terminal, the first user terminal sends the first connection request information, and the vehicle-mounted navigation terminal needs to determine whether to disconnect from the second user terminal, establish a connection with the first user terminal again, or continue to establish a connection with the second user terminal according to the priority.
Step S107, disconnecting the Bluetooth device of the second user terminal, and automatically connecting the Bluetooth device of the first user terminal according to the address information of the Bluetooth device of the first user terminal;
and step S108, if the priority of the first user terminal is lower than that of the second user terminal, continuing to keep connection with the Bluetooth device of the second user terminal.
Further, referring to fig. 2, the first priority information and the second priority information are set by:
step S201, acquiring driving position information, wherein the driving position information comprises driver position information, co-driver position information and rear passenger position information;
in step S202, the priority of the driver position information is higher than that of the passenger position information, and the passenger position information is higher than that of the rear passenger.
Specifically, when all users in the vehicle need to use the car navigation terminal, which user uses the car navigation terminal first can be determined according to the driving position information of the user. For example, there are a user a, a user B, and a user C in the vehicle, where the user a sits at a driver position, the user B sits at a co-driver position, and the user C sits at a back-row position, and then, when the user a, the user B, and the user C all send connection request information to the vehicle-mounted navigation terminal, the vehicle-mounted navigation terminal determines which user terminal to establish connection with according to priority information in the connection request information, where according to the driving position information, the connection should be established with the user terminal of the user a first, then the user terminal of the user B, and finally the user terminal of the user C.
Further, referring to fig. 3, the first priority information and the second priority information are also set by:
step S301, acquiring driving frequency information of a user at each driving position according to the driving position information;
step S302, determining first priority information or second priority information according to the driving frequency information.
Specifically, the driving position information includes driver position information, co-driver position information, and rear passenger position information. The method comprises the steps of firstly respectively obtaining driving frequency information of a user on driver position information, co-driver position information or rear passenger position information, and then determining a priority relation according to the driving frequency information. For example, users who often use the vehicle are user a and user B, the driving frequency of user a at the driver position is 9, the driving frequency of user B at the driver position is 8, and the driving frequency of user a is higher than that of user B, so the car navigation terminal establishes a connection with the user terminal of user a first. In addition, if the driving frequency of the user A at the position of the co-driver is 8, and the driving frequency of the user B at the rear row position is 3, the vehicle-mounted navigation terminal establishes connection with the user terminal of the user A firstly.
Further, the method comprises the following steps:
step S401, user name information and password information are sent to a cloud end, so that the cloud end searches corresponding priority information and corresponding Bluetooth device address information according to the user name information and the password information;
step S402, receiving corresponding priority information and Bluetooth device address information sent by the cloud.
Specifically, when the user is using his vehicle, user name information and password information may be stored in the in-vehicle navigation terminal. When a user uses other vehicles, the vehicle-mounted navigation terminal stores user name information and password information in the cloud end, so that the user directly inputs the user name information and the password information into the vehicle-mounted navigation terminal, the vehicle-mounted navigation terminal sends the user name information and the password information to the cloud end for verification, and after the verification is passed, the cloud end sends verification success response information to the vehicle-mounted navigation terminal, so that the user can use the vehicle-mounted navigation terminal of other vehicles without checking whether the user terminal is connected with the vehicle-mounted navigation terminal, the time is saved, and the driving safety is improved.
The embodiment of the invention provides a Bluetooth preferential connection method, which is applied to a vehicle navigation terminal and comprises the following steps: detecting Bluetooth equipment of a first user terminal; if the Bluetooth device of the first user terminal is detected, receiving first connection request information sent by the Bluetooth device of the first user terminal, wherein the first connection request information comprises first priority information and address information of the Bluetooth device of the first user terminal; judging whether to establish connection with the Bluetooth equipment of the second user terminal; if the connection with the Bluetooth equipment of the second user terminal is established, second connection request information of the second user terminal is obtained, wherein the second connection request information comprises second priority information; judging whether the priority of the first user terminal is higher than that of the second user terminal according to the first priority information and the second priority information; if the priority of the first user terminal is higher than that of the second user terminal, the connection with the Bluetooth equipment of the second user terminal is disconnected, and the Bluetooth equipment of the first user terminal is automatically connected; if the priority of the first user terminal is lower than that of the second user terminal, the first user terminal is continuously connected with the Bluetooth device of the second user terminal, the vehicle-mounted navigation terminal can be preferentially used in a priority mode, the situation that a driver wants to use the vehicle-mounted navigation terminal and is occupied by other mobile phones in an emergency situation is solved, and therefore driving safety is improved.
Example two:
fig. 4 is a schematic diagram of a bluetooth preferred connection apparatus according to a second embodiment of the present invention.
Referring to fig. 4, the apparatus includes a detecting unit 10, a first receiving unit 20, a first judging unit 30, a first acquiring unit 40, a second judging unit 50, a disconnecting unit 60, and a connecting unit 70.
A detection unit 10, configured to detect a bluetooth device of a first user terminal;
a first receiving unit 20, configured to receive first connection request information sent by a bluetooth device of a first user terminal when the bluetooth device of the first user terminal is detected, where the first connection request information includes first priority information and address information of the bluetooth device of the first user terminal;
a first judging unit 30, configured to judge whether to establish a connection with a bluetooth device of a second user terminal;
a first obtaining unit 40, configured to obtain second connection request information of the second user terminal when a connection is established with a bluetooth device of the second user terminal, where the second connection request information includes second priority information;
a second judging unit 50, configured to judge whether the priority of the first user terminal is higher than that of the second user terminal according to the first priority information and the second priority information;
a disconnection unit 60, configured to disconnect the bluetooth device of the second user terminal when the priority of the first user terminal is higher than that of the second user terminal, and automatically connect the bluetooth device of the first user terminal according to the address information of the bluetooth device of the first user terminal;
a connection unit 70, configured to continue to maintain connection with the bluetooth device of the second user terminal if the priority of the first user terminal is lower than that of the second user terminal.
Further, the first judging unit 30 further includes:
and if the connection with the Bluetooth equipment of the second user terminal is not established, the connection with the Bluetooth equipment of the first user terminal is established according to the address information of the Bluetooth equipment of the first user terminal.
Further, the first priority information and the second priority information are set by:
a second acquisition unit (not shown) for acquiring driving position information including driver position information, passenger position information, and rear passenger position information; the priority of the driver position information is higher than that of the passenger position information, and the passenger position information is higher than that of the rear passenger.
Further, the first priority information and the second priority information are further set by:
a third acquisition unit (not shown) for acquiring driving frequency information of the user at each driving position from the driving position information;
a determination unit (not shown) for determining the first priority information or the second priority information according to the driving frequency information.
Further, the apparatus further comprises:
a sending unit (not shown) configured to send the user name information and the password information to the cloud, so that the cloud searches for corresponding priority information and corresponding bluetooth device address information according to the user name information and the password information;
and a second receiving unit (not shown) for receiving the corresponding priority information and bluetooth device address information sent by the cloud.
The embodiment of the invention provides a Bluetooth preferential connection device, which is applied to a vehicle navigation terminal and comprises the following components: detecting Bluetooth equipment of a first user terminal; if the Bluetooth device of the first user terminal is detected, receiving first connection request information sent by the Bluetooth device of the first user terminal, wherein the first connection request information comprises first priority information and address information of the Bluetooth device of the first user terminal; judging whether to establish connection with the Bluetooth equipment of the second user terminal; if the connection with the Bluetooth equipment of the second user terminal is established, second connection request information of the second user terminal is obtained, wherein the second connection request information comprises second priority information; judging whether the priority of the first user terminal is higher than that of the second user terminal according to the first priority information and the second priority information; if the priority of the first user terminal is higher than that of the second user terminal, the connection with the Bluetooth equipment of the second user terminal is disconnected, and the Bluetooth equipment of the first user terminal is automatically connected; if the priority of the first user terminal is lower than that of the second user terminal, the first user terminal is continuously connected with the Bluetooth device of the second user terminal, the vehicle-mounted navigation terminal can be preferentially used in a priority mode, the situation that a driver wants to use the vehicle-mounted navigation terminal and is occupied by other mobile phones in an emergency situation is solved, and therefore driving safety is improved.
The embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the bluetooth priority connection method provided in the foregoing embodiment are implemented.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the bluetooth priority connection method in the foregoing embodiment are executed.
The computer program product provided in the embodiment of the present invention includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (6)

1. A Bluetooth preferential connection method is applied to a vehicle navigation terminal, and comprises the following steps:
detecting Bluetooth equipment of a first user terminal;
if the Bluetooth device of the first user terminal is detected, receiving first connection request information sent by the Bluetooth device of the first user terminal, wherein the first connection request information comprises first priority information and address information of the Bluetooth device of the first user terminal;
judging whether to establish connection with the Bluetooth equipment of the second user terminal;
if the connection with the Bluetooth equipment of the second user terminal is established, second connection request information of the second user terminal is obtained, wherein the second connection request information comprises second priority information;
judging whether the priority of the first user terminal is higher than that of the second user terminal according to the first priority information and the second priority information;
if the priority of the first user terminal is higher than that of the second user terminal, disconnecting the Bluetooth equipment of the second user terminal, and automatically connecting the Bluetooth equipment of the first user terminal according to the address information of the Bluetooth equipment of the first user terminal;
if the priority of the first user terminal is lower than that of the second user terminal, continuing to be connected with the Bluetooth equipment of the second user terminal;
wherein the first priority information and the second priority information are set by:
acquiring driving position information, wherein the driving position information comprises driver position information, co-driver position information and rear passenger position information;
the priority of the driver position information is higher than that of the secondary driver position information, and the secondary driver position information is higher than that of the rear passenger position information;
the first priority information and the second priority information are further set by the following method;
acquiring driving frequency information of the user at each driving position according to the driving position information;
determining the first priority information or the second priority information according to the driving frequency information;
the first user terminal is a device which needs to be connected with the vehicle-mounted navigation terminal at present, and the second user terminal is the rest device which is connected with the vehicle-mounted navigation terminal or is not connected with the vehicle-mounted navigation terminal.
2. The method of claim 1, wherein the determining whether to establish a connection with a bluetooth device of the second user terminal further comprises:
and if the connection with the Bluetooth equipment of the second user terminal is not established, establishing connection with the Bluetooth equipment of the first user terminal according to the address information of the Bluetooth equipment of the first user terminal.
3. The method of claim 1, further comprising:
sending user name information and password information to a cloud end so that the cloud end searches corresponding priority information and corresponding Bluetooth device address information according to the user name information and the password information;
and receiving the corresponding priority information and the Bluetooth equipment address information sent by the cloud.
4. The utility model provides a priority connecting device of bluetooth which characterized in that, is applied to vehicle navigation terminal, the device includes:
the detection unit is used for detecting the Bluetooth equipment of the first user terminal;
a first receiving unit, configured to receive first connection request information sent by a bluetooth device of the first user terminal when the bluetooth device of the first user terminal is detected, where the first connection request information includes first priority information and address information of the bluetooth device of the first user terminal;
the first judgment unit is used for judging whether to establish connection with the Bluetooth equipment of the second user terminal;
a first obtaining unit, configured to obtain second connection request information of the second user terminal when a connection is established with a bluetooth device of the second user terminal, where the second connection request information includes second priority information;
a second judging unit, configured to judge whether the priority of the first user terminal is higher than that of the second user terminal according to the first priority information and the second priority information;
the disconnection unit is used for disconnecting the connection with the Bluetooth equipment of the second user terminal under the condition that the priority of the first user terminal is higher than that of the second user terminal, and automatically connecting the Bluetooth equipment of the first user terminal according to the address information of the Bluetooth equipment of the first user terminal;
the connection unit is used for continuing to keep connection with the Bluetooth equipment of the second user terminal under the condition that the priority of the first user terminal is lower than that of the second user terminal;
the first priority information and the second priority information are set by:
a second acquisition unit configured to acquire driving position information including driver position information, co-driver position information, and rear passenger position information; the priority of the driver position information is higher than that of the secondary driver position information, and the secondary driver position information is higher than that of the rear passenger position information;
the first priority information and the second priority information are further set by:
the third acquisition unit is used for acquiring the driving frequency information of the user at each driving position according to the driving position information;
a determination unit configured to determine the first priority information or the second priority information according to the driving frequency information;
the first user terminal is a device which needs to be connected with the vehicle-mounted navigation terminal at present, and the second user terminal is the rest device which is connected with the vehicle-mounted navigation terminal or is not connected with the vehicle-mounted navigation terminal.
5. The bluetooth connection priority apparatus according to claim 4, wherein the first determining unit further comprises:
and if the connection with the Bluetooth equipment of the second user terminal is not established, establishing connection with the Bluetooth equipment of the first user terminal according to the address information of the Bluetooth equipment of the first user terminal.
6. The bluetooth preferential connection apparatus according to claim 4, further comprising:
the sending unit is used for sending the user name information and the password information to a cloud end so that the cloud end searches corresponding priority information and corresponding Bluetooth equipment address information according to the user name information and the password information;
and the second receiving unit is used for receiving the corresponding priority information and the Bluetooth equipment address information sent by the cloud.
CN201811337923.0A 2018-11-09 2018-11-09 Bluetooth priority connection method and device Active CN109219031B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811337923.0A CN109219031B (en) 2018-11-09 2018-11-09 Bluetooth priority connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811337923.0A CN109219031B (en) 2018-11-09 2018-11-09 Bluetooth priority connection method and device

Publications (2)

Publication Number Publication Date
CN109219031A CN109219031A (en) 2019-01-15
CN109219031B true CN109219031B (en) 2021-07-16

Family

ID=64996198

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811337923.0A Active CN109219031B (en) 2018-11-09 2018-11-09 Bluetooth priority connection method and device

Country Status (1)

Country Link
CN (1) CN109219031B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726790B (en) * 2019-03-22 2022-10-04 上海汽车集团股份有限公司 Vehicle-mounted Bluetooth sound and vehicle
CN114079893B (en) * 2020-08-13 2023-10-13 华为技术有限公司 Bluetooth communication method, terminal device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499824A (en) * 2008-02-01 2009-08-05 中兴通讯股份有限公司 Method for connecting Bluetooth audio equipment
EP2701411A1 (en) * 2012-08-21 2014-02-26 BlackBerry Limited Smart proximity priority pairing
CN108307365A (en) * 2017-09-30 2018-07-20 宇龙计算机通信科技(深圳)有限公司 Connection method of Bluetooth device, device and user terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499824A (en) * 2008-02-01 2009-08-05 中兴通讯股份有限公司 Method for connecting Bluetooth audio equipment
EP2701411A1 (en) * 2012-08-21 2014-02-26 BlackBerry Limited Smart proximity priority pairing
CN108307365A (en) * 2017-09-30 2018-07-20 宇龙计算机通信科技(深圳)有限公司 Connection method of Bluetooth device, device and user terminal

Also Published As

Publication number Publication date
CN109219031A (en) 2019-01-15

Similar Documents

Publication Publication Date Title
US9674683B2 (en) Method and system for transmitting vehicle data using an automated voice
CN105101115B (en) Method and system for starting application
CN105100192B (en) Method and system for starting application
US10002467B2 (en) Apparatus and method of error monitoring with a diagnostic module
CN107027089B (en) Vehicle-mounted Bluetooth connection method and device
CN109219031B (en) Bluetooth priority connection method and device
US8655503B2 (en) Short range communication apparatus
CN110784846B (en) Vehicle-mounted Bluetooth equipment identification method and device, electronic equipment and storage medium
US20230336959A1 (en) Vehicle and emergency call method, apparatus and system thereof
CN102014211A (en) Bluetooth mobile phone and anti-theft method thereof
CN112203179B (en) TWS earphone, automatic reconnection method and device thereof, and computer storage medium
CN110891256A (en) Vehicle-mounted system account login method and device based on Bluetooth key identification
US10841765B2 (en) Method and apparatus for vehicle to mobile phone communication
US20170324854A1 (en) A method for operating a communication system, and communication system
US10547730B2 (en) Method and apparatus for vehicular emergency call
CN108769427B (en) Safe driving method and device, storage medium and vehicle-mounted equipment
CN107005825B (en) Automobile emergency call method, vehicle-mounted terminal and system
KR102316652B1 (en) Apparatus and method for notifying accident of vehicle using telephone
CN106494326A (en) A kind of vehicle-carrying communication control method and equipment
JP6398268B2 (en) Emergency call system and service center
CN107205241B (en) Wireless communication detection method and equipment thereof
CN106658501B (en) Method and equipment for establishing PDN (packet data network) connection based on verification
CN206155355U (en) Automobile
CN110933736B (en) Vehicle-mounted controller communication method, device, equipment and storage medium
US10419916B1 (en) Method and apparatus for multi-network simultaneous emergency calling

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