CN117354770A - Bluetooth search result display method and device, vehicle and storage medium - Google Patents
Bluetooth search result display method and device, vehicle and storage medium Download PDFInfo
- Publication number
- CN117354770A CN117354770A CN202210737299.3A CN202210737299A CN117354770A CN 117354770 A CN117354770 A CN 117354770A CN 202210737299 A CN202210737299 A CN 202210737299A CN 117354770 A CN117354770 A CN 117354770A
- Authority
- CN
- China
- Prior art keywords
- equipment
- search result
- list
- preset
- bluetooth
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 238000004590 computer program Methods 0.000 claims description 17
- 238000012163 sequencing technique Methods 0.000 claims description 14
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000004044 response Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention provides a Bluetooth search result display method, a Bluetooth search result display device, a vehicle and a storage medium, wherein the Bluetooth search result display method comprises the following steps: generating a first device identification list based on the searched at least one device; marking the equipment identifiers meeting the preset conditions in the first equipment identifier list to obtain a second equipment identifier list containing marks; and generating a search result list based on the second equipment identification list, and displaying the search result list. The embodiment of the invention can determine the paired equipment from the searched equipment and mark the paired equipment, so that the paired equipment but not searched equipment is not displayed in the search result list, the situation that the Bluetooth equipment still needs to execute connection operation although the user can not connect the paired equipment but not searched equipment in the list is avoided, and the Bluetooth resource of the system is saved; meanwhile, paired and unconfigured devices are displayed in one list, so that the display of search results is more simplified.
Description
Technical Field
The invention relates to the technical field of Bluetooth search result display, in particular to a Bluetooth search result display method and a Bluetooth search result display device.
Background
Automobiles have become an indispensable transportation means in the daily life of people, and with the development of technology, people can connect terminals with automobiles through bluetooth devices in the automobiles and then perform corresponding operations, such as playing music, navigating, etc.
In practical applications, the car may store paired terminal identifications, and the user may see all paired terminal identifications in the bluetooth device interface even if the paired terminal is not in the vicinity of the car. When the user connects the terminal with the Bluetooth device in the automobile, if the user clicks the paired terminal identification by mistake when the automobile cannot search the terminal, the Bluetooth device still can execute the connection operation even if the terminal is not connected until the connection fails, the Bluetooth resource is wasted, and the user experience is poor.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention are directed to providing a bluetooth search result display method and a corresponding bluetooth search result display apparatus that overcome or at least partially solve the foregoing problems.
In order to solve the above problems, an embodiment of the present invention discloses a bluetooth search result display method, including:
generating a first device identification list based on the searched at least one device;
marking the equipment identifiers meeting the preset conditions in the first equipment identifier list to obtain a second equipment identifier list containing marks;
and generating a search result list based on the second equipment identification list, and displaying the search result list.
Preferably, the generating a first device identification list based on the searched at least one device includes:
determining an attribute value of the searched preset attribute of at least one device;
and sequencing the equipment identifications of the at least one equipment based on the preset attribute and the attribute value to obtain a corresponding first equipment identification list.
Preferably, the sorting the device identifiers of the at least one device based on the preset attribute and the attribute value to obtain a corresponding first device identifier list includes:
sorting the equipment identifiers of the at least one equipment according to a first preset priority of the preset attribute to obtain a candidate sequence;
and sequencing the candidate sequences according to the second preset priority of the attribute values to obtain a first equipment identification list.
Preferably, the preset attribute comprises a pairing state of the equipment, and an attribute value of the pairing state comprises paired and unpaired equipment;
the determining the attribute value of the preset attribute of the searched at least one device comprises the following steps:
matching the at least one device with a preset database respectively; the preset database is used for determining pairing states corresponding to the at least one device respectively;
the pairing status of the successfully matched devices is determined to be paired, and the pairing status of the failed matched devices is determined to be unpaired.
Preferably, the preset database includes at least one preset MAC address;
the matching the at least one device with a preset database respectively includes:
acquiring an MAC address corresponding to the at least one device;
and respectively matching the MAC address with the at least one preset MAC address.
Preferably, the preset condition includes that the pairing state of the devices is paired.
Preferably, the generating a search result list based on the second device identification list includes:
and deleting preset information in the second equipment identification list to obtain a search result list.
Preferably, the search result list includes device identifications with tags and device identifications without tags;
the method further comprises the steps of:
responding to a connection instruction aiming at the equipment identification with the mark, and carrying out Bluetooth connection with a first equipment corresponding to the equipment identification with the mark;
and responding to a pairing instruction aiming at the equipment identification without the mark, and carrying out Bluetooth pairing on the second equipment corresponding to the equipment identification without the mark.
Preferably, the method further comprises:
when the Bluetooth pairing is successful, acquiring the MAC address of the second equipment;
and storing the MAC address into a preset database.
Correspondingly, the embodiment of the invention discloses a Bluetooth search result display device, which comprises:
the generation module is used for generating a first equipment identification list based on the searched at least one equipment;
the marking module is used for marking the equipment identifiers meeting the preset conditions in the first equipment identifier list to obtain a second equipment identifier list containing marks;
the generating module is further configured to generate a search result list based on the second device identifier list;
and the display module is used for displaying the search result list.
Preferably, the generating module includes:
the attribute value acquisition sub-module is used for determining the attribute value of the preset attribute of the searched at least one device;
and the sorting sub-module is used for sorting the equipment identifications of the at least one equipment based on the preset attribute and the attribute value to obtain a corresponding first equipment identification list.
Preferably, the sub-ordering module is specifically configured to:
sorting the equipment identifiers of the at least one equipment according to a first preset priority of the preset attribute to obtain a candidate sequence;
and sequencing the candidate sequences according to the second preset priority of the attribute values to obtain a first equipment identification list.
Preferably, the preset attribute comprises a pairing state of the equipment, and an attribute value of the pairing state comprises paired and unpaired equipment;
the attribute value acquisition sub-module includes:
the matching unit is used for respectively matching the at least one device with a preset database; the preset database is used for determining pairing states corresponding to the at least one device respectively;
and the determining unit is used for determining the pairing state of the successfully matched equipment as paired equipment and determining the pairing state of the equipment which fails to be matched as unpaired equipment.
Preferably, the preset database includes at least one preset MAC address;
the matching unit is specifically configured to:
acquiring an MAC address corresponding to the at least one device;
and respectively matching the MAC address with the at least one preset MAC address.
Preferably, the preset condition includes that the pairing state of the devices is paired.
Preferably, the generating module is specifically configured to:
generating a search result list based on the second device identification list, including:
and deleting preset information in the second equipment identification list to obtain a search result list.
Preferably, the search result list includes device identifications with tags and device identifications without tags;
the apparatus further comprises:
a connection module, configured to perform bluetooth connection with a first device corresponding to the device identifier with a tag in response to a connection instruction for the device identifier with a tag;
and the pairing module is used for responding to a pairing instruction aiming at the equipment identifier without the mark and carrying out Bluetooth pairing with the second equipment corresponding to the equipment identifier without the mark.
Preferably, the method further comprises:
the acquisition module is used for acquiring the MAC address of the second equipment when the Bluetooth pairing is successful;
and the storage module is used for storing the MAC address into a preset database.
Correspondingly, the embodiment of the invention discloses a vehicle, which comprises the following components: a processor, a memory, and a computer program stored on the memory and capable of running on the processor, which when executed by the processor, performs the steps of the bluetooth search result presentation method embodiments described above.
Accordingly, the embodiment of the invention discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program realizes the steps of the Bluetooth search result display method embodiment when being executed by a processor.
The embodiment of the invention has the following advantages:
after the bluetooth device in the vehicle searches at least one device, a first device identification list can be generated based on the searched at least one device, device identifications meeting preset conditions in the first device identification list are marked to obtain a second device identification list containing marks, a search result list is generated based on the second device identification list, and the search result list is displayed. By the method, the paired equipment can be determined from the searched equipment and marked, and then the marked search result list is displayed to the user, so that the paired equipment but not searched equipment cannot be displayed in the search result list, the situation that the Bluetooth equipment still needs to execute connection operation although the user can not connect the paired equipment but not searched equipment in the list by clicking mistakenly is avoided, bluetooth resources of a system are saved, and user experience is improved. Moreover, the paired devices displayed in one list can be distinguished from the unpaired devices in a sequencing and marking mode, so that the display of the search results is more simplified and efficient, and the user experience is further improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a first embodiment of a bluetooth search result display method according to the present invention;
FIG. 2 is a schematic illustration of a search result of the present invention;
fig. 3 is a flowchart illustrating steps of a second embodiment of a bluetooth search result display method according to the present invention;
fig. 4 is a block diagram illustrating an embodiment of a bluetooth search result display device according to the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
One of the core concepts of the embodiments of the present invention is that after a bluetooth device in a vehicle searches at least one device, a first device identifier list may be generated based on the at least one searched device, and device identifiers satisfying a preset condition in the first device identifier list are marked to obtain a second device identifier list including marks, and then a search result list is generated based on the second device identifier list, and the search result list is displayed. By the method, the paired equipment can be determined from the searched equipment and marked, and then the marked search result list is displayed to the user, so that the paired equipment but not searched equipment cannot be displayed in the search result list, the situation that the Bluetooth equipment still needs to execute connection operation although the user can not connect the paired equipment but not searched equipment in the list by clicking mistakenly is avoided, bluetooth resources of a system are saved, and user experience is improved. Moreover, the paired devices displayed in one list can be distinguished from the unpaired devices in a sequencing and marking mode, so that the display of the search results is more simplified and efficient, and the user experience is further improved.
Referring to fig. 1, a flowchart illustrating steps of a first embodiment of a bluetooth search result presentation method according to the present invention is shown, where the method may be applied to a vehicle, where a bluetooth device and an in-vehicle system are disposed, and a user may operate the bluetooth device through the in-vehicle system, including but not limited to: turning on/off bluetooth functions, bluetooth pairing/connection with other devices, etc. The method specifically comprises the following steps:
step 101, generating a first device identification list based on the searched at least one device.
After a user turns on a bluetooth device in a vehicle through an in-vehicle system, the bluetooth device may search for at least one device within a specified range and acquire a device identification of each device, and then generate a list (denoted as a "first device identification list") containing the device identification of each device.
In an embodiment of the present invention, the generating a first device identifier list based on the searched at least one device includes:
determining an attribute value of the searched preset attribute of at least one device;
and sequencing the equipment identifications of the at least one equipment based on the preset attribute and the attribute value to obtain a corresponding first equipment identification list.
Specifically, the preset attributes include, but are not limited to: device type, pairing status and RSSI (Received Signal Strength Indicator, received signal strength indication). Attribute values for device types include, but are not limited to: telephone, computer, video and audio, wearable and medical. Attribute values for pairing states include, but are not limited to: paired and unpaired. Attribute values of RSSI include, but are not limited to: RSSI value.
In the embodiment of the present invention, the determining the attribute value of the preset attribute of the searched at least one device includes:
matching the at least one device with a preset database respectively; the preset database is used for determining pairing states corresponding to the at least one device respectively;
the pairing status of the successfully matched devices is determined to be paired, and the pairing status of the failed matched devices is determined to be unpaired.
Specifically, since the attribute values of the device type and the RSSI may be directly obtained from the searched device, and the attribute values of the pairing states need to be detected and obtained, each device may be respectively matched with a preset database, where the preset database is used to determine the pairing states corresponding to each device.
If there is a successfully matched device, the pairing status of the successfully matched device is determined to be paired, and if there is a failed matched device, the pairing status of the failed matched device is determined to be unpaired. In this way, by means of matching, it can be determined which devices are matched and which are not matched.
In the embodiment of the present invention, the preset database includes at least one preset MAC address;
the matching the at least one device with a preset database respectively includes:
acquiring an MAC address corresponding to the at least one device;
and respectively matching the MAC address with the at least one preset MAC address.
Specifically, the preset database includes at least one stored MAC address. In the matching process, the MAC address of each device can be obtained, and then the MAC address of each device is matched with the MAC address in the database.
In the matching process, the MAC address may be successfully matched to be determined as matched. For example, the device identifier of the device a is a, the MAC address is 00:1b:44:11:3a:b7, and the database includes the MAC address, so that in the matching process, no matter what the device identifier of the device a is, the pairing state of the device a can be determined to be paired. Therefore, the method can determine which devices are matched and which are unpaired through the MAC matching mode, and the matching accuracy is improved because the MAC has uniqueness.
After each preset attribute and corresponding attribute value of each device are obtained, each device may be ranked according to each preset attribute and corresponding attribute value, and a ranked device tag list (denoted as a "first device tag list") is generated by using device tags of each device.
In the embodiment of the present invention, the sorting the device identifiers of the at least one device based on the preset attribute and the attribute value to obtain a corresponding first device identifier list includes:
sequencing the at least one device according to a first preset priority of the preset attribute to obtain a candidate sequence;
and sequencing the candidate sequences according to the second preset priority of the attribute values to obtain a first equipment identification list.
Specifically, each device may be ranked according to a preset priority (denoted as a "first preset priority") of each preset attribute, so as to obtain a candidate sequence ranked based on the preset attribute. The preset priorities of the preset attributes may be: device type > pairing status > RSSI.
After obtaining the candidate sequence, the candidate sequence may be further ordered according to a preset priority (denoted as a "second preset priority") of the attribute value of each preset attribute, to obtain a final sequence, and then a device identifier list (denoted as a "first device identifier list") corresponding to the final sequence is generated by using the device identifier of each device.
The priority of the attribute value of the device type may be: telephone > computer > video/audio > wearable > medical; the priority of the attribute values of the pairing state may be: paired > unpaired; the priority of the attribute value of RSSI may be: the higher the value, the higher the priority. In this way, the searched devices are ranked based on the device type, the pairing state and the attribute of the three dimensions of the RSSI and the attribute value of each attribute, so that the ranking rule of the devices is optimized, and the user experience is improved.
And 102, marking the equipment identifiers meeting the preset conditions in the first equipment identifier list to obtain a second equipment identifier list containing marks.
After the first device identifier list is obtained, device identifiers meeting preset conditions can be marked, so that paired devices and unpaired devices are distinguished, and a second device list containing marks is obtained.
In the embodiment of the present invention, the preset condition includes that the pairing state of the devices is paired.
Specifically, in order to distinguish the paired device from the unpaired device, the device identifiers in the first device identifier list may be marked according to a preset condition. The preset condition may include that the pairing state of the devices is paired, that is, the paired device identifiers in the first device identifier list are marked. Of course, in addition to marking the paired device identifier, the device identifier without the mark may also be marked based on other preset attributes, and may be set according to actual requirements in practical application, which is not limited in the embodiment of the present invention.
That is, the paired device identifiers in the first device identifier list can be marked, so that a second device identifier list containing marks is obtained, the paired device is clear for the user, and the user experience is improved.
If all the devices in the first device identifier list are unpaired, the first device identifier list is used as the second device identifier list without marking.
And step 103, generating a search result list based on the second equipment identification list, and displaying the search result list.
After the second equipment identification list is obtained, a search result list can be generated according to the second equipment identification list, and then the search result list is displayed to the user.
In an embodiment of the present invention, the generating a search result list based on the second device identifier list includes:
and deleting preset information in the second equipment identification list to obtain a search result list.
In particular, since some information in the second device identification list is not useful to the user, it is possible to delete such information. The information to be deleted (referred to as "preset information") may be a specified preset attribute and a corresponding attribute value, for example, a device type and a corresponding attribute value, RSSI and a corresponding RSSI value, and the like. In practical application, specific preset information may be set according to practical requirements, which is not limited in the embodiment of the present invention.
For example, the bluetooth device in the vehicle searches for A, B, C, D, E, F devices, and the preset attribute and attribute value of each device are shown in table 1:
TABLE 1
After each device is ordered based on the first preset priority of the preset attribute and the second preset priority of the attribute value, the obtained first device identification list is shown in table 2:
device identification | Device type | RSSI | Pairing state |
B | Telephone set | -76dBm | Paired already |
E | Telephone set | -80dBm | Paired already |
A | Telephone set | -76dBm | Unpaired with |
C | Computer with a computer program | -50dBm | Paired already |
D | Video and audio | -30dBm | Unpaired with |
F | Wearable device | -60dBm | Paired already |
TABLE 2
Marking the device identifier with the paired state in table 2 to obtain a second device identifier list containing the mark, as shown in table 3:
device identification | Device type | RSSI | Pairing state | Marking |
B | Telephone set | -76dBm | Paired already | Paired already |
E | Telephone set | -80dBm | Paired already | Paired already |
A | Telephone set | -76dBm | Unpaired with | |
C | Computer with a computer program | -50dBm | Paired already | Paired already |
D | Video and audio | -30dBm | Unpaired with | |
F | Wearable device | -60dBm | Paired already | Paired already |
TABLE 3 Table 3
Since the device type, RSSI, and pairing status need not be presented to the user, a list of search results may be generated with device identification and tagging, as shown in fig. 2, and then presented to the user.
In practical application, the paired devices may be labeled, the unpaired devices may be labeled, the paired devices and the unpaired devices may be labeled respectively, and the method and the device may be set according to practical requirements, which is not limited in the embodiments of the present invention.
In the prior art, there are two lists of bluetooth setup interfaces in the on-board system of an automobile:
1) Paired list: each device in the list is a list which is subjected to a pairing process and successfully paired;
2) Available list: a list of peripheral bluetooth devices that are searched for using the bluetooth search function by the current bluetooth is represented.
If the peripheral bluetooth device scanned by the bluetooth search function is in the paired list, the peripheral bluetooth device is not displayed in the available list.
However, the above solution has the following drawbacks:
1) When a user clicks the equipment identifier in the paired list by mistake, when the equipment is not near the automobile, the Bluetooth equipment on the automobile still executes connection operation, wastes Bluetooth resources of the system and has poor user experience;
2) The searched Bluetooth equipment is irregular in ordering, and the user experience is poor.
In the embodiment of the invention, after at least one device is searched by Bluetooth equipment in a vehicle, a first equipment identification list can be generated based on the searched at least one device, equipment identifications meeting preset conditions in the first equipment identification list are marked to obtain a second equipment identification list containing marks, a search result list is generated based on the second equipment identification list, and the search result list is displayed. By the method, the paired equipment can be determined from the searched equipment and marked, and then the marked search result list is displayed to the user, so that the paired equipment but not searched equipment cannot be displayed in the search result list, the situation that the Bluetooth equipment still needs to execute connection operation although the user can not connect the paired equipment but not searched equipment in the list by clicking mistakenly is avoided, bluetooth resources of a system are saved, and user experience is improved. Moreover, the paired devices displayed in one list can be distinguished from the unpaired devices in a sequencing and marking mode, so that the display of the search results is more simplified and efficient, and the user experience is further improved.
Referring to fig. 3, a flowchart illustrating steps of a second embodiment of a bluetooth search result display method according to the present invention may specifically include the following steps:
step 301, generating a first device identification list based on the searched at least one device.
And 302, marking the equipment identifiers meeting the preset conditions in the first equipment identifier list to obtain a second equipment identifier list containing marks.
And step 303, generating a search result list based on the second equipment identification list, and displaying the search result list.
Step 304, responding to a connection instruction for the device identifier with the mark, and performing Bluetooth connection with the first device corresponding to the device identifier with the mark.
And step 305, in response to a pairing instruction for the device identifier without the tag, performing bluetooth pairing with the second device corresponding to the device identifier without the tag.
Specifically, the search result list includes a device identifier with a flag and a device identifier without a flag, and since the device identifier with a flag is different from the pairing state corresponding to the device identifier without a flag, an instruction for the device identifier with a flag is also different from an instruction for the device identifier without a flag.
Since the pairing state corresponding to the device identifier with the tag is paired, when the user clicks any device identifier with the tag, a connection instruction can be initiated, and then the Bluetooth device in the vehicle performs Bluetooth connection with the first device corresponding to the device identifier with the tag in response to the connection instruction.
Correspondingly, when a user clicks any device identifier without a mark, a pairing instruction can be initiated, and Bluetooth equipment in the vehicle responds to the pairing instruction and performs Bluetooth pairing with a second device corresponding to the device identifier without the mark.
And 306, when the Bluetooth pairing is successful, acquiring the MAC address of the second device.
Step 307, storing the MAC address in a preset database.
Specifically, a HUT (Head Unit, central control vehicle-mounted domain controller) may be further disposed in the vehicle, and when the bluetooth device in the vehicle is successfully paired with any one of the second devices, the HUT may obtain the MAC address of the second device, and then store the MAC address in a preset database, so as to update the MAC address in the database. Thus, when the Bluetooth device in the vehicle searches for the second device next time, the matching state of the second device can be determined to be matched through matching.
In the embodiment of the invention, after at least one device is searched by Bluetooth equipment in a vehicle, a first equipment identification list can be generated based on the searched at least one device, equipment identifications meeting preset conditions in the first equipment identification list are marked to obtain a second equipment identification list containing marks, a search result list is generated based on the second equipment identification list, and the search result list is displayed. By the method, the paired equipment can be determined from the searched equipment and marked, and then the marked search result list is displayed to the user, so that the paired equipment but not searched equipment cannot be displayed in the search result list, the situation that the Bluetooth equipment still needs to execute connection operation although the user can not connect the paired equipment but not searched equipment in the list by clicking mistakenly is avoided, bluetooth resources of a system are saved, and user experience is improved. Moreover, the paired devices displayed in one list can be distinguished from the unpaired devices in a sequencing and marking mode, so that the display of the search results is more simplified and efficient, and the user experience is further improved.
Further, when the user clicks the equipment identifier without the mark in the search result list, the Bluetooth equipment in the vehicle can be paired with the equipment, and after the matching is successful, the MAC address of the equipment is obtained and stored in the database, so that the update of the database is realized.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 4, a block diagram illustrating an embodiment of a bluetooth search result display apparatus according to the present invention may specifically include the following modules:
a generating module 401, configured to generate a first device identifier list based on the searched at least one device;
a marking module 402, configured to mark device identifiers in the first device identifier list, where the device identifiers satisfy a preset condition, to obtain a second device identifier list including marks;
the generating module is further configured to generate a search result list based on the second device identifier list, and display the search result list;
and the display module 403 is configured to display the search result list.
Preferably, the generating module includes:
the attribute value acquisition sub-module is used for determining the attribute value of the preset attribute of the searched at least one device;
and the sorting sub-module is used for sorting the equipment identifications of the at least one equipment based on the preset attribute and the attribute value to obtain a corresponding first equipment identification list.
In the embodiment of the present invention, the sorting submodule is specifically configured to:
sequencing the at least one device according to a first preset priority of the preset attribute to obtain a candidate sequence;
and sequencing the candidate sequences according to the second preset priority of the attribute values to obtain a first equipment identification list.
In the embodiment of the invention, the preset attribute comprises a pairing state of the equipment, and an attribute value of the pairing state comprises paired and unpaired equipment;
the attribute value acquisition sub-module includes:
the matching unit is used for respectively matching the at least one device with a preset database; the preset database is used for determining pairing states corresponding to the at least one device respectively;
and the determining unit is used for determining the pairing state of the successfully matched equipment as paired equipment and determining the pairing state of the equipment which fails to be matched as unpaired equipment.
In the embodiment of the present invention, the preset database includes at least one preset MAC address;
the matching unit is specifically configured to:
acquiring an MAC address corresponding to the at least one device;
and respectively matching the MAC address with the at least one preset MAC address.
In the embodiment of the present invention, the preset condition includes that the pairing state of the devices is paired.
In an embodiment of the present invention, the generating module is specifically configured to:
generating a search result list based on the second device identification list, including:
and deleting preset information in the second equipment identification list to obtain a search result list.
In the embodiment of the invention, the search result list comprises equipment identifiers with marks and equipment identifiers without marks;
the apparatus further comprises:
a connection module, configured to perform bluetooth connection with a first device corresponding to the device identifier with a tag in response to a connection instruction for the device identifier with a tag;
and the pairing module is used for responding to a pairing instruction aiming at the equipment identifier without the mark and carrying out Bluetooth pairing with the second equipment corresponding to the equipment identifier without the mark.
In an embodiment of the present invention, the method further includes:
the acquisition module is used for acquiring the MAC address of the second equipment when the Bluetooth pairing is successful;
and the storage module is used for storing the MAC address into a preset database.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the invention also provides a vehicle, which comprises:
the Bluetooth search result display method comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein the computer program realizes the processes of the Bluetooth search result display method embodiment when being executed by the processor, can achieve the same technical effects, and is not repeated here.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, realizes the processes of the bluetooth search result display method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, 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, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above description of the present invention provides a bluetooth search result display method and a bluetooth search result display device, and specific examples are applied to illustrate the principles and embodiments of the present invention, where the above description of the examples is only used to help understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (12)
1. A bluetooth search result display method, the method comprising:
generating a first device identification list based on the searched at least one device;
marking the equipment identifiers meeting the preset conditions in the first equipment identifier list to obtain a second equipment identifier list containing marks;
and generating a search result list based on the second equipment identification list, and displaying the search result list.
2. The bluetooth search result presentation method according to claim 1, wherein the generating a first device identification list based on the searched at least one device comprises:
determining an attribute value of the searched preset attribute of at least one device;
and sequencing the equipment identifications of the at least one equipment based on the preset attribute and the attribute value to obtain a corresponding first equipment identification list.
3. The bluetooth search result display method according to claim 2, wherein the sorting the device identifiers of the at least one device based on the preset attribute and the attribute value to obtain a corresponding first device identifier list includes:
sorting the equipment identifiers of the at least one equipment according to a first preset priority of the preset attribute to obtain a candidate sequence;
and sequencing the candidate sequences according to the second preset priority of the attribute values to obtain a first equipment identification list.
4. The bluetooth search result display method according to claim 2, wherein the preset attribute includes a pairing state of the device, and an attribute value of the pairing state includes paired and unpaired;
the determining the attribute value of the preset attribute of the searched at least one device comprises the following steps:
matching the at least one device with a preset database respectively; the preset database is used for determining pairing states corresponding to the at least one device respectively;
the pairing status of the successfully matched devices is determined to be paired, and the pairing status of the failed matched devices is determined to be unpaired.
5. The bluetooth search result presentation method according to claim 4, wherein the preset database includes at least one preset MAC address;
the matching the at least one device with a preset database respectively includes:
acquiring an MAC address corresponding to the at least one device;
and respectively matching the MAC address with the at least one preset MAC address.
6. The bluetooth search result display method according to claim 1, wherein the preset condition includes that the pairing state of the devices is paired.
7. The bluetooth search result presentation method according to claim 1, wherein the generating a search result list based on the second device identification list comprises:
and deleting preset information in the second equipment identification list to obtain a search result list.
8. The bluetooth search result presentation method according to claim 1, wherein the search result list includes device identifications with tags and device identifications without tags;
the method further comprises the steps of:
responding to a connection instruction aiming at the equipment identification with the mark, and carrying out Bluetooth connection with a first equipment corresponding to the equipment identification with the mark;
and responding to a pairing instruction aiming at the equipment identification without the mark, and carrying out Bluetooth pairing on the second equipment corresponding to the equipment identification without the mark.
9. The bluetooth search result presentation method according to claim 8, further comprising:
when the Bluetooth pairing is successful, acquiring the MAC address of the second equipment;
and storing the MAC address into a preset database.
10. A bluetooth search result presentation device, the device comprising:
the generation module is used for generating a first equipment identification list based on the searched at least one equipment;
the marking module is used for marking the equipment identifiers meeting the preset conditions in the first equipment identifier list to obtain a second equipment identifier list containing marks;
the generating module is further configured to generate a search result list based on the second device identifier list;
and the display module is used for displaying the search result list.
11. A vehicle, characterized by comprising: a processor, a memory and a computer program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the bluetooth search result presentation method according to any one of claims 1 to 9.
12. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, which when executed by a processor, implements the steps of the bluetooth search result presentation method according to any of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210737299.3A CN117354770A (en) | 2022-06-27 | 2022-06-27 | Bluetooth search result display method and device, vehicle and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210737299.3A CN117354770A (en) | 2022-06-27 | 2022-06-27 | Bluetooth search result display method and device, vehicle and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117354770A true CN117354770A (en) | 2024-01-05 |
Family
ID=89365480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210737299.3A Pending CN117354770A (en) | 2022-06-27 | 2022-06-27 | Bluetooth search result display method and device, vehicle and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117354770A (en) |
-
2022
- 2022-06-27 CN CN202210737299.3A patent/CN117354770A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106445296B (en) | Method and device for displaying vehicle-mounted application program icons | |
CN107357787B (en) | Semantic interaction method and device and electronic equipment | |
CN108762240B (en) | Automobile diagnosis method and device | |
US20190033094A1 (en) | Navigation apparatus, navigation method, and navigation system | |
CN112035752A (en) | Resource searching method, apparatus, electronic device and readable storage medium | |
US20220277599A1 (en) | Supplementing Vehicle Service Content with Scan Tool Initialization Links | |
CN109299234B (en) | Information query method and device and computer readable storage medium | |
CN110868763A (en) | Method, device and system for establishing Bluetooth connection | |
CN112306040A (en) | Vehicle detection method, device, equipment and server | |
CN111221742A (en) | Test case updating method and device, storage medium and server | |
US12112589B2 (en) | Vehicle scan tool configured to receive automated initialization requests | |
CN113703868A (en) | Vehicle diagnostic software configuration method, electronic device and readable storage medium | |
CN110990519A (en) | Vehicle fault diagnosis method and device, electronic equipment and storage medium | |
CN110046009B (en) | Recording method, recording device, server and readable storage medium | |
CN111460232A (en) | Functional module searching method, device, terminal and computer readable storage medium | |
CN111930823A (en) | Data query method and device, data center station and storage medium | |
CN110108293A (en) | Information broadcasting method, broadcasting system, car-mounted terminal and the vehicle of guidance path | |
CN111625731A (en) | Vehicle owner birthday service method, system, storage medium and vehicle-mounted terminal based on vehicle-mounted terminal | |
CN116010347A (en) | Resource updating method, device, system, electronic equipment and storage medium | |
CN111324798A (en) | Equipment maintenance record viewing method, server and computer readable storage medium | |
CN117354770A (en) | Bluetooth search result display method and device, vehicle and storage medium | |
CN110366025B (en) | Configuration method of display content, intelligent terminal and computer readable storage medium | |
CN114115826A (en) | Code generation method, terminal and readable storage medium | |
CN110706035B (en) | Updating effect evaluation method and device, storage medium and electronic equipment | |
CN112000829A (en) | Consultation response method, device, equipment and storage medium |
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 |