CN111556466A - Bluetooth vehicle-mounted equipment identification method and terminal - Google Patents

Bluetooth vehicle-mounted equipment identification method and terminal Download PDF

Info

Publication number
CN111556466A
CN111556466A CN201910110983.7A CN201910110983A CN111556466A CN 111556466 A CN111556466 A CN 111556466A CN 201910110983 A CN201910110983 A CN 201910110983A CN 111556466 A CN111556466 A CN 111556466A
Authority
CN
China
Prior art keywords
bluetooth
terminal
vehicle
device type
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910110983.7A
Other languages
Chinese (zh)
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201910110983.7A priority Critical patent/CN111556466A/en
Publication of CN111556466A publication Critical patent/CN111556466A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities

Abstract

The invention relates to the technical field of Bluetooth communication, in particular to a Bluetooth vehicle-mounted device identification method and a terminal, and aims to solve the problem that the terminal in the prior art cannot identify the Bluetooth vehicle-mounted device. After a terminal and a Bluetooth device supporting audio playing are initially paired and connected, acquiring a device type identifier of the Bluetooth device; judging whether the device type identifier of the Bluetooth device is contained in the device type identifier set stored in the first storage space; the set of the device type identifiers comprises device type identifiers of a plurality of Bluetooth vehicle-mounted devices, and the set of the device type identifiers stored in the first storage space is obtained by the terminal from the cloud server; if yes, determining that the Bluetooth equipment is Bluetooth vehicle-mounted equipment. After the Bluetooth device supporting audio playing is initially paired with the terminal and the connection is established, whether the Bluetooth device is a Bluetooth vehicle-mounted device or not can be quickly and accurately identified by the method provided by the embodiment of the invention.

Description

Bluetooth vehicle-mounted equipment identification method and terminal
Technical Field
The invention relates to the technical field of Bluetooth communication, in particular to a Bluetooth vehicle-mounted device identification method and a terminal.
Background
At present, the audio output mode of the terminal is more and more abundant. The terminal can output audio data through the inserted earphone; or the terminal can output audio data through the Bluetooth earphone after establishing connection with the Bluetooth earphone through the Bluetooth technology; or the terminal may also output the audio data directly through its own audio output device (e.g., directly through the handset or speaker of the terminal).
Along with the development of bluetooth communication technology, can connect through the bluetooth between terminal and the mobile unit, the bluetooth mobile unit can provide a plurality of functions such as audio playback, conversation, address book synchronization, and further the bluetooth mobile unit also plays more and more important application in the intelligent driving field. In the driving process, after the terminal is connected with the Bluetooth vehicle-mounted device, when the terminal is used for playing audio, the audio can be played through the Bluetooth vehicle-mounted device, when the terminal has short messages or conversation services, the terminal broadcasts through the Bluetooth vehicle-mounted device, the incoming call can be answered or hung up through voice control of the Bluetooth vehicle-mounted device, and potential safety hazards caused by the fact that a driver uses an earphone in the driving process are avoided. However, the current terminal cannot automatically distinguish whether the accessed bluetooth device is a bluetooth vehicle-mounted device, and how the terminal identifies the bluetooth vehicle-mounted device becomes an urgent problem to be solved.
Disclosure of Invention
The invention provides an identification method of Bluetooth vehicle-mounted equipment and a terminal, which are used for solving the problem that the terminal in the prior art cannot identify the Bluetooth vehicle-mounted equipment.
Based on the foregoing problems, in a first aspect, an embodiment of the present invention provides an identification method for a bluetooth vehicle-mounted device, including:
after a terminal is initially paired with a Bluetooth device supporting audio playing and connection is established, acquiring a device type identifier of the Bluetooth device;
the terminal judges whether the device type identifier of the Bluetooth device is contained in the set of the device type identifiers stored in the first storage space; the set of the device type identifiers comprises device type identifiers of a plurality of Bluetooth vehicle-mounted devices, and the set of the device type identifiers stored in the first storage space is obtained by the terminal from a cloud server;
if yes, the terminal determines that the Bluetooth equipment is Bluetooth vehicle-mounted equipment.
In a second aspect, an embodiment of the present invention provides a terminal, including:
the acquisition module is used for acquiring the equipment type identifier of the Bluetooth equipment after the terminal is initially paired with the Bluetooth equipment supporting audio playing and connection is established;
the processing module is used for judging whether the device type identifier of the Bluetooth device is contained in the device type identifier set stored in the first storage space; when the set of the device type identifiers contains the device type identifier of the Bluetooth device, determining that the Bluetooth device is a Bluetooth vehicle-mounted device; the set of the device type identifications comprises device type identifications of a plurality of Bluetooth vehicle-mounted devices, and the set of the device type identifications stored in the first storage space is obtained by the terminal from a cloud server.
The terminal of the embodiment of the invention locally stores a set of the device type identifiers, wherein the set comprises the device type identifiers of a plurality of Bluetooth vehicle-mounted devices; after the bluetooth device is initially paired with the terminal and establishes connection, if the device type identifier of the bluetooth device is in the set, the bluetooth device is represented as a bluetooth vehicle-mounted device. Therefore, the embodiment of the invention provides a method for identifying vehicle-mounted Bluetooth equipment, and after the Bluetooth equipment supporting audio playing is initially paired with a terminal and connected, whether the Bluetooth equipment is the vehicle-mounted Bluetooth equipment can be quickly and accurately identified by the method provided by the embodiment of the invention.
Drawings
FIG. 1 is a flowchart of an identification method of a Bluetooth vehicle-mounted device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a display interface of a first terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a display interface of a second terminal according to an embodiment of the present invention;
FIG. 4 is a complete flow chart of the identification method of the Bluetooth vehicle-mounted device according to the embodiment of the invention;
FIG. 5 is a flowchart of a processing procedure of a Bluetooth vehicular device in intelligent driving according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a first terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a second terminal according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an identification system of a bluetooth vehicle-mounted device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. 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.
Along with the development of bluetooth communication technology, can be through the equipment that bluetooth mode and terminal set up be connected more and more abundant, for example, bluetooth earphone, bluetooth speaker, bluetooth bracelet, bluetooth dialer, bluetooth mobile unit etc.. Different bluetooth devices may support the same Profile protocol, for example, bluetooth headsets, bluetooth speakers, bluetooth dialers, and bluetooth car-mounted devices all support A2DP (Advanced Audio Distribution Profile) and HFP (Hands-free Profile), and the bluetooth dialers and the bluetooth car-mounted devices also support PBAP, so it is difficult to accurately identify the bluetooth car-mounted devices based on the Profile protocol supported by the bluetooth devices.
The embodiment of the invention provides an identification method of Bluetooth vehicle-mounted equipment, which comprises the following steps of:
step 101, after a terminal and a Bluetooth device supporting audio playing are initially paired and connected, acquiring a device type identifier of the Bluetooth device;
102, the terminal judges whether the device type identifier of the Bluetooth device is contained in the set of the device type identifiers stored in the first storage space; the set of the device type identifiers comprises device type identifiers of a plurality of Bluetooth vehicle-mounted devices, and the set of the device type identifiers stored in the first storage space is obtained by the terminal from a cloud server;
and 103, if yes, the terminal determines that the Bluetooth device is a Bluetooth vehicle-mounted device.
According to the embodiment of the invention, the first storage space of the terminal stores a set of device type identifiers, the set comprises the device type identifiers of a plurality of Bluetooth vehicle-mounted devices, and the set of device type identifiers is obtained by the terminal from the cloud server; after the bluetooth device is initially paired with the terminal and establishes connection, if the device type identifier of the bluetooth device is in the set, the bluetooth device is represented as a bluetooth vehicle-mounted device. Therefore, the embodiment of the invention provides a method for identifying vehicle-mounted Bluetooth equipment, and after the Bluetooth equipment supporting audio playing is initially paired with a terminal and connected, whether the Bluetooth equipment is the vehicle-mounted Bluetooth equipment can be quickly and accurately identified by the method provided by the embodiment of the invention.
One optional way for the terminal to obtain the set of device type identifiers is that the terminal obtains the set of device type identifiers from the cloud server;
optionally, the terminal obtains the set of device type identifiers according to the following manner:
in the method 1, a terminal periodically sends a request to a cloud server to request to acquire a set of device type identifiers stored in the cloud server, and the acquired set of device type identifiers is stored in a first storage space; or
In the mode 2, after receiving an update notification sent by a cloud server, a terminal sends a request to the cloud server to request to acquire the set of the device type identifiers stored in the cloud server, and stores the acquired set of the device type identifiers in a first storage space.
Alternatively, an embodiment of the present invention may further provide a manner in which the terminal obtains the set of device type identifiers from the cloud server:
and after determining that the locally stored set of the equipment type identifiers is updated, the cloud server actively issues the updated set of the equipment type identifiers to the terminal.
The cloud server maintains a set of device type identifiers locally, wherein the set comprises the device type identifiers of the Bluetooth vehicle-mounted devices.
According to the mode 1, when data connection exists, the terminal periodically sends a request to the cloud server to request a set of device type identifiers stored by the cloud server; after the terminal acquires the set of the device type identifiers, updating the set of the device type identifiers stored in the first storage space when the fact that the set of the device type identifiers stored in the first storage space is different from the set of the device type identifiers acquired latest is determined;
one optional mode is that when the period that the terminal requests the set of the device type identifiers is reached, the terminal monitors the connection state of the WLAN, and when the terminal is connected with the WLAN, the terminal sends a request to the cloud server to obtain the set of the device type identifiers of the cloud server; for example, the period of sending the request by the terminal is 3 days, and after the period of requesting the set of device type identifiers arrives, the terminal starts to request the set of device type identifiers from the cloud server; and setting a repeating mechanism for the terminal, wherein if a single request fails (the terminal does not successfully acquire the set of the equipment type identifiers), the terminal can request for 3 times, and if the requests fail for 3 times, the terminal waits for the next period.
In the method 2, after determining that the set of the device type identifiers stored in the cloud server changes, the cloud server sends an update notification to the terminal; after receiving the update notification, the terminal may request the cloud server for an updated set of device type identifiers;
and after the terminal acquires the updated set of the device type identifiers, updating the set of the device type identifiers stored in the first storage space.
One optional mode is that the terminal monitors the connection state of the WLAN after receiving the update notification, and when the terminal is connected with the WLAN, the terminal sends a request to the cloud server to obtain a set of device type identifiers of the cloud server; and setting a repeat mechanism for the terminal, wherein if a single request fails (the terminal does not successfully acquire the set of the equipment type identifiers), the terminal can perform repeat requests.
Optionally, in the embodiment of the present invention, the device type identifier is the first three bytes in the MAC address of the bluetooth device and/or name information of the bluetooth device.
The MAC address of the bluetooth device is composed of LAP (lower part of 24-bit address), UAP (upper part of 8-bit address) and NAP (16-bit meaningless address part), the length of the MAC address is 48 bits, i.e. 6 bytes, the format of the MAC address is generally XX: for example 91: c5:7D:97:99: EE; NAP and UAP in the Bluetooth MAC address are unique identification codes of manufacturers, and are distributed to different manufacturers by a Bluetooth authority department; i.e., the first three bytes of the MAC address can uniquely identify a manufacturer. When the manufacturer is determined to be the automobile manufacturer according to the first three bytes of the MAC address, the Bluetooth device can be determined to be the Bluetooth vehicle-mounted device.
The name information of the Bluetooth equipment is the name set by a Bluetooth equipment manufacturer for the Bluetooth equipment when the Bluetooth equipment leaves a factory; in implementation, a bluetooth device manufacturer names based on the use of the bluetooth device, and when the bluetooth device is a bluetooth vehicle-mounted device, the name information of the bluetooth device includes the automobile brand information used by the bluetooth vehicle-mounted device; for example, when the bluetooth device is a bluetooth vehicle-mounted device applied to a bmw car, the name information of the bluetooth vehicle-mounted device includes information such as "BWM". Therefore, when the name information of the bluetooth device includes the car-related information, it can be determined that the bluetooth device is a bluetooth in-vehicle device.
The terminal determines that the locally stored device type identifier set includes the device type identifier of the bluetooth device, and after determining that the bluetooth device is the bluetooth vehicle-mounted device, directly displays an icon indicating that the bluetooth device is the bluetooth vehicle-mounted device in a display interface of the terminal, such as the bluetooth device Honda HFT shown in fig. 2, indicating that the bluetooth device is the bluetooth vehicle-mounted device.
It should be noted that the icon of the bluetooth vehicle-mounted device displayed on the display interface of the terminal shown in fig. 2 is only an example, and the example is not used to limit the present invention.
In addition, in step 102, if it is determined that the device type identifier of the bluetooth device is not included in the set of device type identifiers, the following operations are performed:
the terminal acquires a Profile protocol supported by the Bluetooth equipment; when the Bluetooth device is determined to simultaneously support A2DP and HFP and the Bluetooth device is determined not to support electric quantity display, the terminal prompts a user to perform auxiliary judgment; and after the judgment result of the user indicating that the Bluetooth device is the Bluetooth vehicle-mounted device is obtained, the terminal determines that the Bluetooth device is the vehicle-mounted Bluetooth device.
In implementation, the terminal acquires the Profile protocol supported by the bluetooth device, judges whether the bluetooth device supports both the A2DP protocol and the HFP protocol, and judges whether the bluetooth device supports electric quantity display; performing primary fuzzy recognition based on the terminal, and judging whether the Bluetooth equipment is possible to be Bluetooth vehicle-mounted equipment or not;
because the Bluetooth vehicle-mounted devices can support media audio and call audio, the Bluetooth vehicle-mounted devices simultaneously support the A2DP protocol and the HFP protocol; moreover, the power supply of the Bluetooth vehicle-mounted equipment is DC power supply, so that the Bluetooth vehicle-mounted equipment does not support electric quantity display;
therefore, when the terminal determines that the bluetooth device supports both the A2DP protocol and the HFP protocol and determines that the bluetooth device does not support the power display, it is determined that the bluetooth device is likely to be a bluetooth in-vehicle device.
In order to further determine whether the Bluetooth equipment is Bluetooth vehicle-mounted equipment, the terminal prompts a user to perform auxiliary judgment; specifically, the terminal pops up a dialog box on a display interface to prompt a user to confirm whether the Bluetooth equipment is Bluetooth vehicle-mounted equipment or not; for example, the terminal may pop up a dialog box as shown in fig. 3, and when the user clicks "ok", the terminal acquires a judgment result of the user indicating that the bluetooth device is a bluetooth vehicle-mounted device, and then the terminal determines that the bluetooth device is a bluetooth vehicle-mounted device; when the user clicks 'cancel', the terminal acquires the judgment result of the user indicating that the Bluetooth device is not the Bluetooth vehicle-mounted device, and then the terminal determines that the Bluetooth device is not the Bluetooth vehicle-mounted device.
After the terminal acquires the judgment result of the user, the terminal stores the related information of the Bluetooth equipment in a second storage space according to the judgment result of the user;
wherein, the relevant information of the Bluetooth device comprises at least one of the following information:
the device comprises an MAC address of the Bluetooth device, name information of the Bluetooth device, a first parameter indicating whether the Bluetooth device is a Bluetooth vehicle-mounted device or not, and a second parameter indicating whether the device type identifier of the Bluetooth device is reported to a cloud server or not.
In implementation, when the terminal acquires a judgment result of a user indicating that the Bluetooth device is the Bluetooth vehicle-mounted device, setting the first parameter as a parameter indicating that the Bluetooth device is the Bluetooth vehicle-mounted device; and when the terminal acquires the judgment result of the user indicating that the Bluetooth device is not the Bluetooth vehicle-mounted device, setting the first parameter as a parameter indicating that the Bluetooth device is not the Bluetooth vehicle-mounted device.
For example, the second storage space of the terminal is a local database btvehicle.db;
wherein, the saving format of bluetooth mobile unit's relevant information is: the field status is a value of 1 when the Bluetooth device is a Bluetooth vehicle-mounted device, and the field upload is a value of 0 when the Bluetooth device is not a Bluetooth vehicle-mounted device, and is false when the Bluetooth device is not a Bluetooth vehicle-mounted device.
It should be noted that the function of the terminal storing the relevant information of the bluetooth device in the second storage space is that, if the terminal establishes connection with the bluetooth device again, the terminal determines whether the bluetooth device is a bluetooth vehicle-mounted device according to the relevant information of the bluetooth device stored in the second storage space;
therefore, after the Bluetooth device is connected with the terminal next time, the terminal does not need to prompt a user to perform auxiliary judgment, and can directly judge whether the Bluetooth device is the Bluetooth vehicle-mounted device according to the first parameter which represents whether the Bluetooth device is the Bluetooth vehicle-mounted device or not in the second storage space.
After the terminal acquires a judgment result of a user indicating that the Bluetooth device is a Bluetooth vehicle-mounted device and determines that the Bluetooth device is the vehicle-mounted Bluetooth device, the terminal reports the device type identifier of the Bluetooth device to a cloud server, so that the cloud server updates a set of device type identifiers stored in the cloud server according to the device type identifier of the Bluetooth device reported by the terminal.
In implementation, the terminal formats the MAC address and the device name which are determined as the Bluetooth vehicle-mounted device and then reports the MAC address and the device name to the cloud server;
after the terminal formats the MAC address and the device name of the Bluetooth vehicle-mounted device and reports the MAC address and the device name to the cloud server, the terminal updates a second parameter which represents whether the device type identifier of the Bluetooth device is reported to the cloud server or not in a second storage space;
for example, the terminal updates the field upload in the relevant information of the bluetooth device in the local database btvehicle.db to true.
In order to improve the reliability of the data of the Bluetooth vehicle-mounted equipment collected by the cloud server and to be compatible with possible false alarm conditions, the cloud server side can also screen and judge the data of the Bluetooth vehicle-mounted equipment reported by the terminal; the cloud server firstly performs cache processing on all reported data, counts the Bluetooth vehicle-mounted equipment with the same MAC address once, and stores the first three bytes and/or equipment names of the MAC address into a set of equipment type identifiers of the Bluetooth vehicle-mounted equipment only when the times that the first three bytes are the same and/or the equipment names are consistent in the received MAC address exceed a set threshold value, so that the cloud server updates the set of the equipment type identifiers.
The following describes an identification method of a bluetooth vehicle-mounted device according to an embodiment of the present invention with reference to fig. 4.
As shown in fig. 4, a complete flowchart for identifying a bluetooth vehicle-mounted device in the embodiment of the present invention includes:
step 401, the terminal starts Bluetooth;
step 402, the terminal and the Bluetooth equipment which supports playing audio are primarily paired and connected;
step 403, the terminal determines whether the locally stored device type identifier set contains the device type identifier of the bluetooth device; if yes, go to step 404, if no, go to step 405;
step 404, the terminal determines that the Bluetooth device is a Bluetooth vehicle-mounted device;
step 405, the terminal acquires a Profile protocol supported by the Bluetooth device;
step 406, the terminal determines whether the bluetooth device supports both the A2DP protocol and the HFP protocol, and does not support power display; if yes, go to step 407, otherwise go to step 409;
step 407, the terminal prompts the user to perform auxiliary judgment;
step 408, the terminal judges whether a judgment result of the user indicating that the Bluetooth device is a Bluetooth vehicle-mounted device is obtained, if so, step 404 is executed, and if not, step 409 is executed;
and step 409, the terminal determines that the Bluetooth device is not a Bluetooth vehicle-mounted device.
After the terminal of the embodiment of the invention determines that the Bluetooth equipment is the Bluetooth vehicle-mounted equipment, the terminal can execute the following operations:
the terminal enters a driving mode; and/or when audio playing needs to be started, the terminal plays audio through the Bluetooth vehicle-mounted equipment;
after the Bluetooth vehicle-mounted equipment is determined to be disconnected from the terminal, the terminal exits from the driving mode; and generating parking position information according to the current geographic position, and presenting the parking position information to a user.
In implementation, when the terminal is connected with the Bluetooth vehicle-mounted equipment, the terminal is in a driving mode;
when the terminal is in a driving mode, if the terminal calls or short messages, voice prompt is carried out to determine whether to answer or read; the user can interact with the Bluetooth vehicle-mounted equipment through voice to answer a call or broadcast the short message content through the voice; the terminal refuses to receive the call in the driving mode and automatically replies short messages and other convenient operations. This operation has promoted the driving experience, has guaranteed the safety of driving in-process.
After the Bluetooth application determines that the Bluetooth vehicle-mounted equipment is disconnected from the terminal (generally, a driver leaves the vehicle), the terminal exits from a driving mode; when the terminal GPS is in an open state, the terminal acquires the current geographic position, generates parking position information according to the current geographic position (for example, generates a parking card), and presents the parking position information to a user, so that the user can quickly find the current parking position.
The application of the bluetooth vehicle-mounted device in intelligent driving is described below with reference to fig. 5.
As shown in fig. 5, a flowchart of processing of a bluetooth vehicle-mounted device in intelligent driving according to an embodiment of the present invention includes:
step 501, the terminal starts Bluetooth;
step 502, the terminal determines to establish connection with the Bluetooth vehicle-mounted equipment;
step 503, the terminal enters a driving mode;
step 504, when the terminal starts audio playing, audio is played through the Bluetooth vehicle-mounted equipment;
505, monitoring the connection state of the terminal and the Bluetooth vehicle-mounted equipment, judging whether the terminal is disconnected with the Bluetooth vehicle-mounted equipment, if so, executing step 506, and if not, returning to step 503;
step 506, the terminal exits from the driving mode;
and 507, generating parking position information by the terminal according to the current geographic position, and presenting the parking position information to the user.
Based on the same inventive concept, the embodiment of the present invention further provides a terminal, and as the principle of solving the problem of the terminal is similar to the method of playing the audio through the bluetooth device in the embodiment of the present invention, the implementation of the terminal may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 6, a terminal according to an embodiment of the present invention includes:
an obtaining module 601, configured to obtain a device type identifier of a bluetooth device after the terminal is initially paired with the bluetooth device supporting audio playing and a connection is established;
a processing module 602, configured to determine whether a set of device type identifiers stored in a first storage space includes a device type identifier of the bluetooth device; when the set of the device type identifiers contains the device type identifier of the Bluetooth device, determining that the Bluetooth device is a Bluetooth vehicle-mounted device; the set of the device type identifications comprises device type identifications of a plurality of Bluetooth vehicle-mounted devices, and the set of the device type identifications stored in the first storage space is obtained by the terminal from a cloud server.
Optionally, the processing module 602 is further configured to:
after determining that the set of the device type identifiers does not contain the device type identifier of the Bluetooth device, acquiring the Profile type supported by the Bluetooth device;
when the Bluetooth device is determined to simultaneously support A2DP and HFP and the Bluetooth device is determined not to support electric quantity display, prompting a user to perform auxiliary judgment;
and after a judgment result of the user indicating that the Bluetooth device is a Bluetooth vehicle-mounted device is obtained, determining that the Bluetooth device is the vehicle-mounted Bluetooth device.
Optionally, the processing module 602 is further configured to:
after prompting a user to perform auxiliary judgment, storing the related information of the Bluetooth equipment in a second storage space according to a judgment result of the user; wherein the relevant information of the Bluetooth device comprises at least one of the following information: the device comprises an MAC address of the Bluetooth device, name information of the Bluetooth device, a first parameter indicating whether the Bluetooth device is a Bluetooth vehicle-mounted device or not, and a second parameter indicating whether a device type identifier of the Bluetooth device is reported to a cloud server or not;
and if the terminal is connected with the Bluetooth equipment again, judging whether the Bluetooth equipment is Bluetooth vehicle-mounted equipment or not according to the relevant information of the Bluetooth equipment stored in the second storage space.
Optionally, as shown in fig. 7, the terminal according to the embodiment of the present invention further includes a sending module 603;
after the processing module 602 obtains a determination result indicating that the bluetooth device is a bluetooth vehicle-mounted device from the user and determines that the bluetooth device is a vehicle-mounted bluetooth device, the sending module 603 is further configured to:
and reporting the device type identifier of the Bluetooth device to the cloud server so that the cloud server updates the set of the device type identifiers stored in the cloud server according to the device type identifier of the Bluetooth device reported by the terminal.
Optionally, the processing module 602 is specifically configured to:
acquiring the set of device type identifiers according to the following modes:
periodically sending a request to the cloud server to request to acquire the set of the device type identifiers stored in the cloud server, and storing the acquired set of the device type identifiers in the first storage space; or
After receiving an update notification sent by the cloud server, sending a request to the cloud server to request to acquire the set of device type identifiers stored in the cloud server, and storing the acquired set of device type identifiers in the first storage space.
Optionally, the device type identifier is the first three bytes in the MAC address of the bluetooth device and/or name information of the bluetooth device.
Optionally, after determining that the bluetooth device is a bluetooth in-vehicle device, the processing module 602 is further configured to:
entering a driving mode, and/or playing audio through the Bluetooth vehicle-mounted equipment when audio playing needs to be started;
and after the Bluetooth vehicle-mounted equipment is disconnected with the terminal, the terminal exits from the driving mode, generates parking position information according to the current geographic position and presents the parking position information to a user.
As shown in fig. 8, an embodiment of the present invention further provides an identification system for a bluetooth vehicle-mounted device, including a terminal 801 and a cloud server 802;
the terminal 801 is configured to send a request to a cloud server, request to acquire a set of device type identifiers stored in the cloud server, and store the acquired set of device type identifiers in a first storage space;
the cloud server 802 is configured to, after receiving a request sent by a terminal, send a set of locally stored cloud device type identifiers to the terminal.
The device type identification set comprises device type identifications of a plurality of Bluetooth vehicle-mounted devices.
Optionally, the manner in which the terminal obtains the set of device type identifiers includes, but is not limited to:
the terminal periodically sends a request to the cloud server to acquire a set of equipment type identifications stored in the cloud server; or
The cloud server sends an update notification to the terminal after determining that the set of the device type identifiers stored in the cloud server is updated; and after receiving the updating notification sent by the cloud server, the terminal sends a request to the cloud server to request to acquire the set of the equipment type identifiers stored in the cloud server.
After the terminal acquires the set of the device type identifiers, after the terminal is initially paired with the Bluetooth device supporting audio playing and establishes connection with the Bluetooth device, the terminal further determines whether the Bluetooth device establishing connection with the terminal is a Bluetooth vehicle-mounted device by judging whether the set of the device type identifiers stored in the first storage space contains the device type identifier of the Bluetooth device.
Optionally, if the terminal determines that the set of device type identifiers stored in the first storage space does not include the device type identifier of the bluetooth device, the terminal reports the device type identifier of the bluetooth device to the cloud server after determining that the bluetooth device is a bluetooth vehicle-mounted device through auxiliary judgment of a user;
correspondingly, the cloud server updates the locally stored set of the device type identifiers according to the device type identifiers of the Bluetooth devices reported by the terminal.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for identifying Bluetooth vehicle-mounted equipment is characterized by comprising the following steps:
after a terminal is initially paired with a Bluetooth device supporting audio playing and connection is established, acquiring a device type identifier of the Bluetooth device;
the terminal judges whether the device type identifier of the Bluetooth device is contained in the set of the device type identifiers stored in the first storage space; the set of the device type identifiers comprises device type identifiers of a plurality of Bluetooth vehicle-mounted devices, and the set of the device type identifiers stored in the first storage space is obtained by the terminal from a cloud server;
if yes, the terminal determines that the Bluetooth equipment is Bluetooth vehicle-mounted equipment.
2. The method of claim 1, further comprising:
after determining that the set of the device type identifiers does not contain the device type identifier of the Bluetooth device, the terminal acquires a Profile protocol supported by the Bluetooth device;
when the Bluetooth device is determined to simultaneously support the A2DP protocol and the HFP protocol and the Bluetooth device is determined not to support the electric quantity display, the terminal prompts a user to perform auxiliary judgment;
and after the judgment result of the user indicating that the Bluetooth device is the Bluetooth vehicle-mounted device is obtained, the terminal determines that the Bluetooth device is the vehicle-mounted Bluetooth device.
3. The method of claim 2, wherein after the terminal prompts the user for the auxiliary determination, further comprising:
the terminal stores the related information of the Bluetooth equipment in a second storage space according to the judgment result of the user; wherein the relevant information of the Bluetooth device comprises at least one of the following information: the device comprises an MAC address of the Bluetooth device, name information of the Bluetooth device, a first parameter indicating whether the Bluetooth device is a Bluetooth vehicle-mounted device or not, and a second parameter indicating whether a device type identifier of the Bluetooth device is reported to a cloud server or not;
and if the terminal is connected with the Bluetooth equipment again, the terminal judges whether the Bluetooth equipment is the Bluetooth vehicle-mounted equipment or not according to the relevant information of the Bluetooth equipment stored in the second storage space.
4. The method of claim 2, wherein after obtaining the determination result of the user indicating that the bluetooth device is a bluetooth in-vehicle device and the terminal determines that the bluetooth device is an in-vehicle bluetooth device, the method further comprises:
and the terminal reports the device type identifier of the Bluetooth device to the cloud server so that the cloud server updates the set of the device type identifiers stored in the cloud server according to the device type identifier of the Bluetooth device reported by the terminal.
5. The method of claim 1, wherein the terminal obtains the set of device type identifiers according to:
the terminal periodically sends a request to the cloud server to request to acquire the set of the device type identifiers stored in the cloud server, and stores the acquired set of the device type identifiers in the first storage space; or
After receiving the update notification sent by the cloud server, the terminal sends a request to the cloud server to request to acquire the set of the device type identifiers stored in the cloud server, and stores the acquired set of the device type identifiers in the first storage space.
6. The method of any one of claims 1 to 5, wherein the device type identifier is the first three bytes in a Bluetooth device MAC address and/or name information of a Bluetooth device.
7. The method according to any one of claims 1 to 5, wherein after the terminal determines that the Bluetooth device is a Bluetooth vehicle-mounted device, the method further comprises:
the terminal enters a driving mode; and/or when audio playing needs to be started, the terminal plays audio through the Bluetooth vehicle-mounted equipment;
after the Bluetooth vehicle-mounted equipment is determined to be disconnected from the terminal, the terminal exits from the driving mode; and generating parking position information according to the current geographic position, and presenting the parking position information to a user.
8. A terminal, comprising:
the acquisition module is used for acquiring the equipment type identifier of the Bluetooth equipment after the terminal is initially paired with the Bluetooth equipment supporting audio playing and connection is established;
the processing module is used for judging whether the device type identifier of the Bluetooth device is contained in the device type identifier set stored in the first storage space; when the set of the device type identifiers contains the device type identifier of the Bluetooth device, determining that the Bluetooth device is a Bluetooth vehicle-mounted device; the set of the device type identifications comprises device type identifications of a plurality of Bluetooth vehicle-mounted devices, and the set of the device type identifications stored in the first storage space is obtained by the terminal from a cloud server.
9. The terminal of claim 8, wherein the processing module is further configured to:
after determining that the set of the device type identifiers does not contain the device type identifier of the Bluetooth device, acquiring a Profile protocol supported by the Bluetooth device;
when the Bluetooth device is determined to simultaneously support the A2DP protocol and the HFP protocol and the Bluetooth device is determined not to support the electric quantity display, prompting a user to perform auxiliary judgment;
and after a judgment result of the user indicating that the Bluetooth device is a Bluetooth vehicle-mounted device is obtained, determining that the Bluetooth device is the vehicle-mounted Bluetooth device.
10. The terminal of claim 9, wherein the processing module is further configured to:
after prompting a user to perform auxiliary judgment, storing the related information of the Bluetooth equipment in a second storage space according to a judgment result of the user; wherein the relevant information of the Bluetooth device comprises at least one of the following information: the device comprises an MAC address of the Bluetooth device, name information of the Bluetooth device, a first parameter indicating whether the Bluetooth device is a Bluetooth vehicle-mounted device or not, and a second parameter indicating whether a device type identifier of the Bluetooth device is reported to a cloud server or not;
and if the terminal is connected with the Bluetooth equipment again, judging whether the Bluetooth equipment is Bluetooth vehicle-mounted equipment or not according to the relevant information of the Bluetooth equipment stored in the second storage space.
CN201910110983.7A 2019-02-12 2019-02-12 Bluetooth vehicle-mounted equipment identification method and terminal Pending CN111556466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910110983.7A CN111556466A (en) 2019-02-12 2019-02-12 Bluetooth vehicle-mounted equipment identification method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910110983.7A CN111556466A (en) 2019-02-12 2019-02-12 Bluetooth vehicle-mounted equipment identification method and terminal

Publications (1)

Publication Number Publication Date
CN111556466A true CN111556466A (en) 2020-08-18

Family

ID=72002859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910110983.7A Pending CN111556466A (en) 2019-02-12 2019-02-12 Bluetooth vehicle-mounted equipment identification method and terminal

Country Status (1)

Country Link
CN (1) CN111556466A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257681A (en) * 2020-09-25 2022-03-29 深圳市万普拉斯科技有限公司 Method for controlling terminal to start driving mode, terminal and storage medium
CN116056011A (en) * 2023-01-10 2023-05-02 厦门中卡科技股份有限公司 Vehicle positioning method and system based on Bluetooth technology
CN116844375A (en) * 2023-08-29 2023-10-03 荣耀终端有限公司 Parking information display method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170142488A1 (en) * 2015-11-13 2017-05-18 Le Holdings (Beijing) Co., Ltd. Method for recommending videos through bluetooth, mobile terminal and vehicle-mounted video player
CN107770760A (en) * 2017-10-18 2018-03-06 维沃移动通信有限公司 A kind of method and mobile terminal of the type for identifying bluetooth equipment
CN108834122A (en) * 2018-07-02 2018-11-16 Oppo(重庆)智能科技有限公司 A kind of bluetooth recognition method, apparatus, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170142488A1 (en) * 2015-11-13 2017-05-18 Le Holdings (Beijing) Co., Ltd. Method for recommending videos through bluetooth, mobile terminal and vehicle-mounted video player
CN107770760A (en) * 2017-10-18 2018-03-06 维沃移动通信有限公司 A kind of method and mobile terminal of the type for identifying bluetooth equipment
CN108834122A (en) * 2018-07-02 2018-11-16 Oppo(重庆)智能科技有限公司 A kind of bluetooth recognition method, apparatus, equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114257681A (en) * 2020-09-25 2022-03-29 深圳市万普拉斯科技有限公司 Method for controlling terminal to start driving mode, terminal and storage medium
CN116056011A (en) * 2023-01-10 2023-05-02 厦门中卡科技股份有限公司 Vehicle positioning method and system based on Bluetooth technology
CN116056011B (en) * 2023-01-10 2023-09-15 厦门中卡科技股份有限公司 Vehicle positioning method and system based on Bluetooth technology
CN116844375A (en) * 2023-08-29 2023-10-03 荣耀终端有限公司 Parking information display method and electronic equipment
CN116844375B (en) * 2023-08-29 2023-11-10 荣耀终端有限公司 Parking information display method and electronic equipment

Similar Documents

Publication Publication Date Title
CN110996405B (en) Earphone connection method, terminal, earphone box and computer readable storage medium
CN111556466A (en) Bluetooth vehicle-mounted equipment identification method and terminal
JP5062210B2 (en) Mail operation device with short-range wireless communication function
US8260369B2 (en) Vehicle hands-free communication apparatus and vehicle hands-free communication method
JP2012070050A (en) On-vehicle apparatus
WO2010082334A1 (en) Communication device, communication system, and method for connecting devices
CN107018176B (en) Application control to primary connection device from secondary connection device
JP2010192985A (en) Mobile communication device
CN110784846B (en) Vehicle-mounted Bluetooth equipment identification method and device, electronic equipment and storage medium
CN104253636A (en) Mobile electronic device coordination system, information providing apparatus, mobile electronic device, and program for mobile electronic device
US9332397B2 (en) Method of communicating voice and data transmissions for telematics applications
CN105577943A (en) Bus stop reporting prompting method and system and mobile terminal
CN104247381A (en) Operation control method, operation control program product, mobile terminal, device for vehicle use, and communication system for vehicle use
EP2961143A1 (en) Method to display context dependent information to a user in or from a vehicle
CN109936840B (en) Communication method and device and electronic equipment
JP4924656B2 (en) Mail operation device with short-range wireless communication function
JP5683412B2 (en) Information processing system and e-mail notification method in information processing system
JP2013029976A (en) Display control apparatus and display control method for connection device list
CN110856142A (en) Instrument display control method and device for vehicle-mounted telephone
JPWO2017134816A1 (en) In-vehicle device and in-vehicle communication method
CN114268636A (en) TBOX data updating method, device, equipment and medium for automobile
CN105007589B (en) Parameter configuration method, machine-card integrated terminal device and server
CN113055847A (en) Audio playing method and related product
JP2001308984A (en) Navigation system and telephone terminal
JP5316613B2 (en) Mail operation device with short-range wireless communication function

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200818