Bluetooth device sorting method, controller and vehicle

By determining the target search scenario and signal reception strength within the vehicle, external Bluetooth devices are reordered, resolving the sorting bias caused by multiple in-vehicle Bluetooth devices and improving user experience and sorting accuracy.

CN121509960APending Publication Date: 2026-02-10GREAT WALL MOTOR CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511850201.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-09
Publication Date
2026-02-10

AI Technical Summary

Technical Problem

When multiple in-vehicle Bluetooth devices are present in a vehicle, the existing technology of sorting external Bluetooth devices by signal strength indicator (RSSI) may result in biased results, failing to prioritize the devices that the user wants to connect to, thus reducing the user experience.

Method used

By determining the target search scene and the signal reception strength of external Bluetooth devices, the signal strength of external Bluetooth devices is re-determined based on the target search scene and signal reception strength, and then sorted and the sorting results are output.

Benefits of technology

It enables accurate sorting of external Bluetooth devices when there are multiple in-vehicle Bluetooth devices, improves user experience, ensures that the sorting results match the screen usage scenario and prioritizes displaying the devices that the user wants to connect to.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121509960A_ABST
    Figure CN121509960A_ABST
Patent Text Reader

Abstract

The invention provides a Bluetooth device sorting method, a controller and a vehicle, and relates to the technical field of communication. The method comprises the steps that under the condition that a plurality of external Bluetooth devices are searched, a target search scene and the signal receiving strength of all the external Bluetooth devices are determined, and the target search scene represents a use scene of a screen for triggering Bluetooth device search; determining the target signal strength of each external Bluetooth device based on the target search scene and the signal receiving strength corresponding to each external Bluetooth device; based on the target signal intensity of each external Bluetooth device, sorting the plurality of external Bluetooth devices to obtain a sorting result, the target signal intensity being in positive correlation with a sorting order in the sorting result; and outputting a sorting result. Based on the scheme, the external Bluetooth devices can be accurately sorted when a plurality of vehicle-mounted Bluetooth devices exist.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, in particular to a method for sorting Bluetooth devices, a controller and a vehicle in the technical field of communication. BACKGROUND

[0002] In-vehicle Bluetooth devices can be deployed in a smart cockpit of a vehicle to facilitate establishing a connection with an external Bluetooth device through the in-vehicle Bluetooth devices, thereby enriching the use functions of the smart cockpit.

[0003] When establishing a connection with an external Bluetooth device through an in-vehicle Bluetooth device, if the in-vehicle Bluetooth device is a single in-vehicle Bluetooth device, the external Bluetooth device can be sorted by a received signal strength indicator (RSSI), and the single in-vehicle Bluetooth device can be connected to the external Bluetooth device with the strongest signal strength determined according to the sorting result. However, if the in-vehicle Bluetooth device is a plurality of in-vehicle Bluetooth devices, using the RSSI to sort the external Bluetooth devices can cause deviation in the sorting result, and the external Bluetooth device that the user wants to connect cannot be displayed preferentially, thereby reducing the user's Bluetooth use experience.

[0004] Therefore, how to accurately sort external Bluetooth devices when there are a plurality of in-vehicle Bluetooth devices is a problem to be solved at present. SUMMARY

[0005] The present application provides a method for sorting Bluetooth devices, a controller and a vehicle, which can accurately sort external Bluetooth devices when there are a plurality of in-vehicle Bluetooth devices.

[0006] In a first aspect, the present application provides a method for sorting Bluetooth devices, applied to a vehicle, the method comprising: In the case of searching for a plurality of external Bluetooth devices, determining a target search scene and signal reception strength of each external Bluetooth device, wherein the target search scene represents a use scene of a screen triggering Bluetooth device search; determining a target signal strength of each external Bluetooth device based on the target search scene and the signal reception strength corresponding to each external Bluetooth device; sorting the plurality of external Bluetooth devices based on the target signal strength of each external Bluetooth device to obtain a sorting result, wherein the target signal strength is positively correlated with the sorting position in the sorting result; and outputting the sorting result.

[0007] Among them, the vehicle includes a plurality of in-vehicle Bluetooth devices, and the plurality of in-vehicle Bluetooth devices search for external Bluetooth devices, and the plurality of external Bluetooth devices are determined by the search results of each in-vehicle Bluetooth device.

[0008] In a second aspect, the application provides a device for sorting Bluetooth devices, configured in a vehicle, comprising: a determining module configured to determine a target search scene and a signal receiving strength of each external Bluetooth device when a plurality of external Bluetooth devices are searched, wherein the target search scene represents a use scene of a screen triggering the Bluetooth device search; a processing module configured to determine a target signal strength of each external Bluetooth device based on the target search scene and the signal receiving strength corresponding to each external Bluetooth device, sort the plurality of external Bluetooth devices based on the target signal strength of each external Bluetooth device to obtain a sorting result, wherein the target signal strength is positively correlated with a sorting position in the sorting result, and output the sorting result.

[0009] In a third aspect, the application provides a controller, comprising a storage module and a processing module. The storage module is configured to store executable program code, and the processing module is configured to call and run the executable program code from the storage module, so that the controller executes the method in the first aspect or any possible implementation manner of the first aspect.

[0010] In a fourth aspect, the application provides a vehicle, comprising a storage and a processor. The storage is configured to store executable program code, and the processor is configured to call and run the executable program code from the storage, so that the vehicle executes the method in the first aspect or any possible implementation manner of the first aspect.

[0011] In a fifth aspect, the application provides a computer program product, comprising computer program code, which, when executed on a computer, causes the computer to execute the method in the first aspect or any possible implementation manner of the first aspect.

[0012] In a sixth aspect, the application provides a computer readable storage medium, which stores computer program code, which, when executed on a computer, causes the computer to execute the method in the first aspect or any possible implementation manner of the first aspect.

[0013] In this embodiment, when multiple external Bluetooth devices are detected, it is necessary to first determine the usage scenario of the screen that triggered the Bluetooth device search (i.e., the target search scenario) and the signal reception strength of each external Bluetooth device. Then, the signal strength of each external Bluetooth device is re-determined based on the screen's usage scenario and the signal reception strength of each external Bluetooth device to obtain the determined signal strength of each external Bluetooth device (i.e., the target signal strength). Finally, the multiple external Bluetooth devices are sorted based on their determined signal strengths, and the sorting result is output. In the prior art, if multiple external Bluetooth devices detected by multiple vehicle Bluetooth devices are directly sorted based on signal strength, the sorting result may be biased. However, in this application, based on the signal reception strength of multiple external Bluetooth devices, the usage scenario of the screen that triggered the Bluetooth device search is introduced. By considering both the signal reception strength of the external Bluetooth devices and the screen's usage scenario, the sorting result of multiple external Bluetooth devices can ensure the communication quality of vehicle Bluetooth communication while also conforming to the screen's usage scenario. This achieves accurate sorting of external Bluetooth devices when multiple vehicle Bluetooth devices are present, improving the accuracy of the sorting result. Furthermore, with more accurate sorting results, the system can prioritize displaying the external Bluetooth devices that the user wants to connect to, thereby improving the user's Bluetooth experience. Attached Figure Description

[0014] Figure 1 This is a schematic diagram illustrating a scenario of the Bluetooth device sorting method provided in an embodiment of this application; Figure 2 This is a schematic diagram of the sorted display of Bluetooth devices provided in an embodiment of this application; Figure 3 This is another scenario illustration of the Bluetooth device sorting method provided in the embodiments of this application; Figure 4 This is a flowchart illustrating a method for sorting Bluetooth devices according to an embodiment of this application; Figure 5 This is yet another schematic diagram illustrating the sorting and display of Bluetooth devices provided in this application embodiment; Figure 6 This is another flowchart illustrating a method for sorting Bluetooth devices provided in an embodiment of this application; Figure 7 This is another schematic flowchart illustrating a method for sorting Bluetooth devices provided in an embodiment of this application; Figure 8 This is another schematic diagram illustrating the sorting and display of Bluetooth devices provided in the embodiments of this application; Figure 9 This is a schematic diagram of the structure of the Bluetooth device sorting device provided in the embodiments of this application; Figure 10is a structural schematic diagram of a controller provided by an embodiment of the present application. Figure 11 is a structural schematic diagram of a vehicle provided by an embodiment of the present application. DETAILED DESCRIPTION

[0015] The technical solutions in the present application will be described in detail below with reference to the drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " represents the meaning of or, for example, A / B can represent A or B: "and / or" in the text only describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist together, and B exists alone, in addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0016] Hereinafter, the terms "first" and "second" are only for descriptive purposes, and cannot be understood as implying or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" can explicitly or implicitly include one or more features.

[0017] In order to enrich the use function of the intelligent cabin of the vehicle, a Bluetooth device (which can be referred to as "vehicle-mounted Bluetooth device") can be deployed in the intelligent cabin of the vehicle, so as to establish a connection with an external Bluetooth device through the vehicle-mounted Bluetooth device (for example, a Bluetooth car machine), so as to make the use function of the intelligent cabin more abundant.

[0018] Among them, the intelligent cabin (Intelligent Cabin) represents a digital interactive platform in the vehicle that can integrate vehicle infotainment systems, instrument panels, and advanced driver assistance systems (ADAS), artificial intelligence, Internet of Vehicles and other technologies. Deep integration. In addition, the external Bluetooth device represents a Bluetooth device that is not deployed in the vehicle itself, such as at least one of a mobile phone, a remote control, a headset, a gamepad, an Internet of Things device (IOT Device, IOT), etc. It should be understood that the vehicle-mounted Bluetooth device and the external Bluetooth device are both configured with a Bluetooth chip, which can be used as a hardware carrier of the Bluetooth protocol, and on the basis of the Bluetooth chip, combined with hardware such as power supply, antenna, etc. And software such as driving software, together constitute a Bluetooth device with independent communication capability, that is, a wireless communication module supporting Bluetooth protocol.

[0019] For example, the Bluetooth protocol may include, but is not limited to, at least one of the following: Hands-Free Profile (HFP), Advanced Audio Distribution Profile (Sink) (A2DPSINK), Human Interface Device Profile (HID), SerialPort Profile (SPP), Generic Attribute Profile (LowEnergy) (GATT(LE)), and Advanced Audio Distribution Profile (Source) (A2DP Source).

[0020] Figure 1 This is a schematic diagram of a scenario illustrating the Bluetooth device sorting method provided in this application embodiment.

[0021] For example, such as Figure 1 As shown, Figure 1 The system includes a vehicle 101, in which a vehicle-mounted Bluetooth device A is deployed in the smart cockpit, and the number of vehicle-mounted Bluetooth devices A is only one. In this embodiment of the application, the vehicle-mounted Bluetooth device, which is only one in number, can be referred to as a "single vehicle-mounted Bluetooth device".

[0022] When establishing a connection with an external Bluetooth device via the vehicle's Bluetooth device A, if the vehicle's Bluetooth device A only detects one external Bluetooth device (e.g., a mobile phone), the mobile phone can be displayed directly (e.g., ...). Figure 2 As shown in (a) above, it is not necessary to sort the phones. For example, Figure 2 The display interface of the Bluetooth switch shown in (a) can include Bluetooth devices discovered by the in-vehicle Bluetooth device A: a mobile phone. Conversely, if the in-vehicle Bluetooth device A discovers multiple external Bluetooth devices, such as a mobile phone, headphones, game controller, and remote control, then these external Bluetooth devices need to be sorted using RSSI. Assuming that the signal strength of the multiple external Bluetooth devices, after sorting, is in the order of strongest to weakest as: mobile phone, headphones, game controller, remote control, then the multiple external Bluetooth devices can be displayed in this order, such as... Figure 2 As shown in (b) above. RSSI is used to measure the signal strength of Bluetooth devices, typically ranging from -100 dBm (decibel-milliwatts) to 0 dBm. The closer to 0 dBm, the stronger the signal and the stronger the Bluetooth signal; conversely, the closer to -100 dBm, the weaker the signal and the weaker the Bluetooth signal. For example,Figure 2 The display interface of the Bluetooth switch shown in (b) can include Bluetooth devices searched through the vehicle's Bluetooth device A: mobile phone, headphones, game controller, remote control.

[0023] Figure 3 This is another scenario illustration of the Bluetooth device sorting method provided in the embodiments of this application.

[0024] For example, such as Figure 3 As shown, Figure 3 The document includes vehicle 102, whose smart cockpit is equipped with in-vehicle Bluetooth devices A, B, and C. It should be understood that other in-vehicle Bluetooth devices besides A, B, and C can also be deployed in the smart cockpit of vehicle 102. This embodiment only uses A, B, and C as examples, meaning that the number of in-vehicle Bluetooth devices deployed in the smart cockpit of vehicle 102 is greater than or equal to two. In this embodiment, two or more in-vehicle Bluetooth devices can be referred to as "multiple in-vehicle Bluetooth devices." These multiple in-vehicle Bluetooth devices can be the same or different; this embodiment does not limit this.

[0025] When in-vehicle Bluetooth devices A, B, and C establish connections with external Bluetooth devices, each device will search for the external Bluetooth device. If all three devices find the same external Bluetooth device (e.g., a mobile phone), the phone will be displayed directly. Figure 2 As shown in (a) in the figure, it is not necessary to sort the phones.

[0026] For example, when the search results for in-vehicle Bluetooth devices A, B, and C are obtained, these results can be displayed in the external Bluetooth device list, with each in-vehicle Bluetooth device in the external Bluetooth device list corresponding one-to-one with its search results. For instance, the search results for in-vehicle Bluetooth device A are: mobile phone, headphones. The search results for in-vehicle Bluetooth device B are: mobile phone, headphones, remote control. The search results for in-vehicle Bluetooth device C are: mobile phone, headphones, game controller. However, if at least one of the vehicle Bluetooth devices A, B, and C finds a different external Bluetooth device than the others; or if all three devices find the same or different external Bluetooth devices, the incomparability between them may cause a discrepancy in the sorting results when using RSSI to sort the devices, preventing the display of the user's desired external Bluetooth device from being prioritized, thus reducing the user's Bluetooth experience.

[0027] For example, the external Bluetooth devices that the user wants to connect to are ranked towards the end of the sorting results, requiring the user to manually search for them. For instance, if the user wants to connect to headphones, but the headphones are ranked 10th and not at the beginning of the sorting results, the user would have to search manually to find them.

[0028] The incomparability between multiple in-vehicle Bluetooth devices is mainly due to one or more of the following reasons: differences in hardware parameters, inconsistent algorithms for calculating signal strength, mutual interference during communication, differences in antenna location and type, and differences in software adaptation. Specifically, significant performance differences in core RF components such as low-noise amplifiers (LNAs) and mixers among different in-vehicle Bluetooth devices lead to variations in hardware parameters, resulting in differences in signal strength when receiving signals from the same external Bluetooth device. Furthermore, different in-vehicle Bluetooth devices use different algorithms to calculate signal strength; for example, some devices incorporate partial loss compensation for the RF link, while others do not, leading to differences in signal strength when receiving signals from the same external Bluetooth device. Finally, the communication between in-vehicle Bluetooth devices can also affect each other; for example, electromagnetic interference generated by in-vehicle Bluetooth device A during communication can affect the signal strength received by in-vehicle Bluetooth device B. Furthermore, each in-vehicle Bluetooth device requires an antenna for communication. The location and type of the antenna may differ between these devices, leading to variations in signal strength when receiving signals from the same external Bluetooth device. Additionally, some in-vehicle Bluetooth devices may optimize noise filtering, while others may not, resulting in software compatibility differences. This also causes variations in signal strength when receiving signals from the same external Bluetooth device. For example, if in-vehicle Bluetooth device A finds a mobile phone, device B finds headphones, and device C finds a game controller, or vice versa, the signal strength of the phone and headphones cannot be ranked using RSSI. For example, if car Bluetooth device A, car Bluetooth device B, and car Bluetooth device C all detect the mobile phone, headphones, and game controller, or if car Bluetooth device A detects the mobile phone and headphones, car Bluetooth device B detects the mobile phone and game controller, and car Bluetooth device C detects the mobile phone, headphones, and game controller, then it is impossible to sort the signal strength between the mobile phone, headphones, and game controller using RSSI.

[0029] The following is combined with Figures 4 to 7 The method for sorting Bluetooth devices provided in the embodiments of this application will be described in detail.

[0030] Figure 4This is a flowchart illustrating a method for sorting Bluetooth devices according to an embodiment of this application. The method can be executed by a vehicle (e.g., vehicle 102) including multiple in-vehicle Bluetooth devices, or by a controller within the vehicle. For example, as shown... Figure 4 As shown, the method 400 includes the following implementation process: S410, when multiple external Bluetooth devices are found, determines the signal reception strength of the target search scene and each external Bluetooth device.

[0031] The target search scenario refers to the usage scenario of the screen that triggers the Bluetooth device search. This usage scenario can be termed the "search scenario." For example, if the screen triggering the Bluetooth device search is the driver's side screen, the corresponding search scenario is "driver's side screen usage scenario"; if the screen triggering the Bluetooth device search is the passenger's side screen, the corresponding search scenario is "passenger's side screen usage scenario"; and if the screen triggering the Bluetooth device search is a ceiling-mounted screen, the corresponding search scenario is "ceiling-mounted screen usage scenario".

[0032] For example, when an in-vehicle Bluetooth device needs to establish a Bluetooth communication connection with at least one external Bluetooth device, a user in the vehicle can trigger a Bluetooth device search (hereinafter referred to as "trigger search") on the vehicle screen. Upon detecting a trigger search, the user can respond to the search and search for the presence of an external Bluetooth device using multiple in-vehicle Bluetooth devices. The vehicle screen can refer to at least one display screen deployed on the vehicle, such as at least one of a driver's side screen, a passenger side screen, a ceiling-mounted screen, or a rear-view screen.

[0033] Optionally, a user can trigger a search on the vehicle screen by clicking a search control configured on the screen. Alternatively, a user can trigger a search via voice, for example, by saying, "Trigger a search on the driver's side screen."

[0034] Furthermore, if no external Bluetooth device is found through multiple in-vehicle Bluetooth devices, the search result can be displayed on the vehicle screen that triggered the search. For example, a "No external Bluetooth device found" message can be displayed on the driver's side screen. If an external Bluetooth device is found through multiple in-vehicle Bluetooth devices, the number of found external Bluetooth devices can be determined first. If only one external Bluetooth device is found, for example, if in-vehicle Bluetooth device A, in-vehicle Bluetooth device B, and in-vehicle Bluetooth device C each found only one mobile phone, the phone can be directly displayed (e.g., ...). Figure 2As shown in (a) above), there is no need to sort the phones. Alternatively, if both car Bluetooth devices A and B only found one phone, while car Bluetooth device C did not find any external Bluetooth devices, the phone can still be displayed directly (e.g., ...). Figure 2 As shown in (a) above, there is no need to sort the phones. It can be understood that multiple external Bluetooth devices represent the union of the search results from each in-vehicle Bluetooth device searching for external Bluetooth devices. That is, multiple external Bluetooth devices are determined through the search results of each in-vehicle Bluetooth device; the search results for each in-vehicle Bluetooth device can be the same or different. If multiple external Bluetooth devices are found through multiple in-vehicle Bluetooth devices, due to the incomparability between these devices, it is necessary to first determine the signal reception strength of each external Bluetooth device, i.e., the signal strength of the external Bluetooth device received by the vehicle.

[0035] For example, first, the external Bluetooth devices searched by each vehicle Bluetooth device are obtained. Then, it is determined whether there are duplicate external Bluetooth devices searched by each vehicle Bluetooth device. If duplicate external Bluetooth devices are found, a maximum signal reception strength needs to be determined by the signal reception strength (which can be called the "original signal reception strength") of the duplicate external Bluetooth devices searched by different vehicle Bluetooth devices. This maximum signal reception strength is then determined as the final signal reception strength of the duplicate external Bluetooth devices. Table 1 below provides an example illustration: Table 1

[0036] In Table 1, the external Bluetooth devices detected by vehicle Bluetooth device A are: mobile phone, headset, and game controller. The original signal reception strength of the mobile phone is -60dBm, the original signal reception strength of the headset is -70dBm, and the original signal reception strength of the game controller is -80dBm. The external Bluetooth devices detected by vehicle Bluetooth device B are: mobile phone, headset, and remote control. The original signal reception strength of the mobile phone is -50dBm, the original signal reception strength of the headset is -70dBm, and the original signal reception strength of the game controller is -78dBm.

[0037] Analysis of Table 1 shows that the external Bluetooth devices that in-vehicle Bluetooth devices A and B can detect are: mobile phones, earphones, game controllers, and remote controls. Furthermore, both in-vehicle Bluetooth devices A and B detected mobile phones and earphones, indicating that these are repeatedly detected external Bluetooth devices. Next, to determine the signal strength of the mobile phone, we can compare the original signal strength of -60dBm detected by in-vehicle Bluetooth device A and -50dBm detected by in-vehicle Bluetooth device B. If -50dBm > -60dBm, then -50dBm can be determined as the signal strength of the mobile phone. Alternatively, we can calculate the average of the original signal strengths of -60dBm detected by in-vehicle Bluetooth device A and -50dBm detected by in-vehicle Bluetooth device B, obtaining an average of -50dBm and -60dBm, which is -55dBm. This -55dBm can then be determined as the signal strength of the mobile phone. Furthermore, to determine the signal reception strength of the headphones, the original signal reception strength of the headphones detected by car Bluetooth device A (-70dBm) and the original signal reception strength of the headphones detected by car Bluetooth device B (-70dBm) can be compared. If -70dBm = -70dBm, then -70dBm can be determined as the signal reception strength of the headphones. Alternatively, the average value of the original signal reception strength of the headphones detected by car Bluetooth device A (-70dBm) and the original signal reception strength of the headphones detected by car Bluetooth device B (-70dBm) can be calculated to obtain the average value of -70dBm, which can then be determined as the signal reception strength of the headphones. For game controllers and remote controls, which are non-repeating external Bluetooth devices, the original signal reception strength of the game controller (-80dBm) detected by vehicle Bluetooth device A can be directly used as the game controller's signal reception strength, and the original signal reception strength of the remote control (-78dBm) detected by vehicle Bluetooth device B can be used as the remote control's signal reception strength. It should be understood that when the vehicle Bluetooth device searches for external Bluetooth devices, it searches based on the device type and device identifier. Therefore, once an external Bluetooth device is found, its device type, device identifier, and signal reception strength can be obtained.

[0038] In one implementation, when a screen usage scenario is detected, the target search scenario can be determined by the number of search scenarios. If only one screen usage scenario is detected, that single screen usage scenario can be directly identified as the target search scenario. However, if multiple screen usage scenarios are detected, to avoid conflicts between them, the screen usage scenario with the earliest timestamp among the multiple screen usage scenarios can be identified as the target search scenario. This ensures the proper sorting of multiple external Bluetooth devices, thus achieving successful sorting of external Bluetooth devices even when multiple in-vehicle Bluetooth devices are present.

[0039] For example, when a search trigger is detected, if multiple external Bluetooth devices are found through multiple in-vehicle Bluetooth devices, the number of vehicle screens triggering the search can be determined first. If only one vehicle screen triggers the search, it indicates only one search trigger exists, and there is no conflict between the usage scenarios of multiple screens. The search trigger can be responded to directly, and the usage scenario of the screen corresponding to the search trigger is called the "target search scenario." However, if multiple vehicle screens trigger the search, the search trigger cannot be responded to directly, indicating multiple searches and conflicts between the usage scenarios of multiple screens. To avoid conflicts between the usage scenarios of multiple screens, the timestamps corresponding to each search trigger need to be obtained. These timestamps are then sorted to obtain the earliest timestamp search trigger, and the earliest timestamp search trigger is responded to. The usage scenario of the screen corresponding to the earliest timestamp search trigger is called the "target search scenario," meaning the target search scenario represents the usage scenario of the screen that first triggered the Bluetooth device search.

[0040] It's important to note that when searching for external in-vehicle Bluetooth devices, multiple in-vehicle Bluetooth devices will perform the search. This is because a single in-vehicle Bluetooth device may encounter blind spots due to the complex structure of the vehicle's cabin (e.g., seat obstructions, metal body panels, occupant body obstructions). This means a single device may not be able to completely detect all external Bluetooth devices within the vehicle's cabin. For example, when using a single in-vehicle Bluetooth device, it may only detect devices in the driver's and passenger's cabins, not those in the rear cabin. Furthermore, complex signal interference can exist within the vehicle (e.g., engine electromagnetic interference, vehicle-to-everything (V2X) interference, lidar interference, etc.), which can easily interfere with a single in-vehicle Bluetooth device's search, leading to search failures or lost devices. Therefore, to ensure a more comprehensive and accurate search for all external Bluetooth devices within the vehicle's cabin, multiple in-vehicle Bluetooth devices will perform the search. Furthermore, there is no binding relationship between the various in-vehicle Bluetooth devices and the vehicle screens. In other words, there is no one-to-one correspondence between the in-vehicle Bluetooth devices and the vehicle screens; they can be used flexibly to facilitate future expansion of the in-vehicle Bluetooth device's functionality. For example, in-vehicle Bluetooth device A is not bound to the trigger search on the driver's side screen, but can also be used for trigger searches on the passenger side screen and the ceiling-mounted screen.

[0041] For example, when multiple in-vehicle Bluetooth devices in a vehicle search for multiple external Bluetooth devices, the usage scenario of the screen that triggered the search for the external Bluetooth devices (i.e., the target search scenario) can be determined, as well as the signal reception strength of each external Bluetooth device among the multiple external Bluetooth devices, so that the multiple in-vehicle Bluetooth devices can be sorted according to the target search scenario and the signal reception strength of each external Bluetooth device.

[0042] S420 determines the target signal strength of each external Bluetooth device based on the target search scenario and the corresponding signal reception strength of each external Bluetooth device.

[0043] For example, the signal reception strength of each external Bluetooth device is adjusted based on the target search scenario to obtain the adjusted signal reception strength of each external Bluetooth device (which can be referred to as the "target signal strength of each external Bluetooth device").

[0044] S430 sorts multiple external Bluetooth devices based on the target signal strength of each device, and obtains the sorting result.

[0045] The target signal strength is positively correlated with its ranking in the sorting results. That is, the stronger the target signal strength, the higher the ranking of the corresponding external Bluetooth device in the sorting results; conversely, the weaker the target signal strength, the lower the ranking of the corresponding external Bluetooth device in the sorting results. For example, if the target signal strength of the mobile phone is greater than that of the headphones, then the mobile phone will rank higher than the headphones in the sorting results.

[0046] For example, when obtaining the target signal strength of each external Bluetooth device, the target signal strength of each external Bluetooth device can be sorted according to a sorting rule from strongest to weakest to obtain a sorting result. This sorting result can then be used as the sorting result for multiple external Bluetooth devices, thus achieving the sorting of multiple external Bluetooth devices. Table 2 below provides an example illustration: Table 2

[0047] Table 2 lists several external Bluetooth devices, including mobile phones, headphones, game controllers, and remote controls. The target signal strength for each device is as follows: mobile phone -52dBm, headphones -65dBm, game controller -79dBm, and remote control -76dBm. Sort the target signal strengths of the mobile phone, headphones, game controller, and remote control according to the order from strongest to weakest. The results are: -52dBm > -65dBm > -76dBm > -79dBm. The order of the target signal strengths from strongest to weakest is: mobile phone 1st, headphones 2nd, remote control 3rd, and game controller 4th. This order can be used as the overall order of the target signal strengths of the mobile phone, headphones, game controller, and remote control.

[0048] S440, output the sorting results.

[0049] For example, a display interface corresponding to the sorting results of multiple external Bluetooth devices is generated and displayed on the vehicle screen corresponding to the target search scenario, allowing the user to select the desired external Bluetooth device based on the sorting results. For instance, if the vehicle screen corresponding to the target search scenario is the driver's screen, the display interface corresponding to the sorting results can be displayed on the driver's screen. Optionally, when obtaining the sorting results of multiple external Bluetooth devices, the sorting results can also be output through the vehicle's voice module.

[0050] It should be understood that sorting multiple external Bluetooth devices using only the target search scenario only yields a sorting result that matches the screen's usage scenario, but cannot guarantee that the sorting result will prioritize the communication quality of the vehicle's Bluetooth communication. The ultimate goal of sorting multiple external Bluetooth devices is still to establish a Bluetooth connection with the vehicle. The signal reception strength of multiple external Bluetooth devices needs to be considered. Signal reception strength can filter out external Bluetooth devices that match the screen's usage scenario but have weak signal reception. However, sorting solely by signal reception strength may lead to biased sorting results that do not match the target search scenario. Therefore, this application's embodiment introduces the screen's usage scenario that triggers the Bluetooth device search, in addition to signal reception strength. This allows for a sorting result that better matches the screen's usage scenario while ensuring the vehicle's Bluetooth communication quality. This makes the final sorting result more aligned with the user's intent, prioritizing the external Bluetooth devices the user wants to connect to, thus improving the user's Bluetooth experience. Communication quality can include at least one of Bluetooth communication smoothness, Bluetooth communication stability, and Bluetooth communication efficiency.

[0051] It should be noted that S410~S440 above is a simplified description of the Bluetooth device sorting method provided in the embodiments of this application. The following will further explain... Figure 4 The specific implementation methods shown in the embodiments are described in detail below: In S420, when determining the target signal strength of each external Bluetooth device by matching the signal reception strength of each external Bluetooth device with the target search scenario, the weight corresponding to the device type of each external Bluetooth device (which can be called the "first weight") can be determined firstly based on the target search scenario to obtain the first weight corresponding to each external Bluetooth device. After obtaining the first weight, the signal reception strength of each external Bluetooth device can be weighted based on this first weight to obtain the weighted signal reception strength, which is the target signal strength of each external Bluetooth device. This transforms the signal reception strength of each external Bluetooth device into the target signal strength under the screen's usage scenario dimension. This ensures that the ranking result of multiple external Bluetooth devices obtained through the target signal strength prioritizes the communication quality of vehicle Bluetooth communication while also conforming to the screen's usage scenario. Therefore, when multiple in-vehicle Bluetooth devices exist, accurate ranking of external Bluetooth devices is achieved, improving the accuracy of the ranking results.

[0052]

[0053] In formula (1), i represents the i-th external Bluetooth device among multiple external Bluetooth devices, and i is a positive integer. R (i) P represents the target signal strength of the i-th external Bluetooth device. d(i) r represents the first weight of the i-th external Bluetooth device. (i) This represents the signal reception strength of the i-th external Bluetooth device.

[0054] In one implementation, when determining the first weight corresponding to each external Bluetooth device through the target search scenario, the target Bluetooth protocol corresponding to each external Bluetooth device can be determined first based on the device type of each external Bluetooth device. Further, when determining the target Bluetooth protocol corresponding to each external Bluetooth device, the aforementioned determination of the first weight corresponding to each external Bluetooth device based on the target search scenario can include: determining the priority of each Bluetooth protocol within the target Bluetooth protocol corresponding to each external Bluetooth device based on the target search scenario; determining the initial weight corresponding to each Bluetooth protocol based on the priority of each Bluetooth protocol; and summing the initial weights corresponding to each Bluetooth protocol to obtain the first weight corresponding to each external Bluetooth device.

[0055] For example, by determining the priority of each Bluetooth protocol in the target Bluetooth protocol corresponding to each external Bluetooth device, the configuration weight (which can be called the "initial weight") of each Bluetooth protocol in the target Bluetooth protocol corresponding to each external Bluetooth device can be determined. This makes the initial weight of the Bluetooth protocol corresponding to each external Bluetooth device more closely match the usage scenario of the screen. When obtaining the initial weight of each Bluetooth protocol in the target Bluetooth protocol corresponding to each external Bluetooth device, the initial weights of each Bluetooth protocol in the target Bluetooth protocol corresponding to each external Bluetooth device can be summed to obtain the summed weight of the target Bluetooth protocol corresponding to each external Bluetooth device. Using the summed weight of the target Bluetooth protocol corresponding to each external Bluetooth device as the first weight of each external Bluetooth device makes the first weight of each external Bluetooth device obtained through the initial weight more closely match the usage scenario of the screen, thereby making the target signal strength of each external Bluetooth device more closely match the usage scenario of the screen. This makes the ranking result of multiple external Bluetooth devices more closely match the usage scenario of the screen and further improves the accuracy of the ranking result. In this embodiment, the initial weight of the Bluetooth protocol can be denoted as "P0".

[0056]

[0057] In formula (2), P 0(i,1) P represents the initial weight of the first Bluetooth protocol in the target Bluetooth protocol of the i-th external Bluetooth device. 0(i,2) P represents the initial weight of the second Bluetooth protocol in the target Bluetooth protocol of the i-th external Bluetooth device... 0(i,j) This represents the initial weight of the j-th Bluetooth protocol in the target Bluetooth protocol of the i-th external Bluetooth device, where j is a positive integer.

[0058] The target Bluetooth protocol refers to the Bluetooth protocol supported by the external Bluetooth device in Bluetooth communication. The target Bluetooth protocol may include at least one Bluetooth protocol. Furthermore, the target Bluetooth protocols of various external Bluetooth devices can be the same or different, determined primarily by the technical specifications established by the Bluetooth Special Interest Group (Bluetooth SIG), while also considering the hardware and functional requirements of the external Bluetooth device and Bluetooth communication. It should be understood that different external Bluetooth devices generally have different target Bluetooth protocols, and the initial weights of the various Bluetooth protocols within the target Bluetooth protocol may also differ. Table 3 below provides an example illustration: Table 3

[0059] Table 3 lists various external Bluetooth devices, including mobile phones, headphones, game controllers, remote controls, IoT devices, and other external Bluetooth devices. Specifically, the device type for mobile phones is "Multi-functional Smart Terminal," with target Bluetooth protocols of HFP and A2DPSINK. The device type for remote controls is "Remote Control Input Peripheral," with target Bluetooth protocols of HID and GATT. The device type for headphones is "Audio Output / Input Peripheral," with target Bluetooth protocol of A2DP Source. The device type for game controllers is "Human-Computer Interaction Input Peripheral," with target Bluetooth protocols of HID and GATT. The device type for IoT devices is "Internet of Things Terminal," with target Bluetooth protocol of GATT. Other external Bluetooth devices are categorized as "Other Types," with target Bluetooth protocol of SPP. "Other external Bluetooth devices" refers to external Bluetooth devices other than mobile phones, remote controls, headphones, game controllers, and IoT devices (e.g., smart water bottles, car air fresheners), such as smartwatches and Bluetooth speakers. For example, other external Bluetooth devices are smart bracelets, the corresponding device type of smart bracelets is: smart wearable sensing peripherals, and the corresponding target Bluetooth protocol is: SPP; or, other external Bluetooth devices are Bluetooth speakers, the corresponding device type of Bluetooth speakers is: audio output peripherals, and the corresponding target Bluetooth protocol is: SPP.

[0060] For example, since there is a mapping relationship between search scenarios and Bluetooth protocol priorities, multiple mapping relationships between search scenarios and Bluetooth protocol priorities can be pre-configured to obtain a set (which can be called the "first set") representing the mapping relationship between search scenarios and Bluetooth protocol priorities. Therefore, in the first set, the priority of the Bluetooth protocol corresponding to the target search scenario can be mapped from the target search scenario. This is illustrated in Table 4 below: Table 4

[0061] In Table 4, for the search scenario of the driver's side screen, the Bluetooth protocol priorities, from highest to lowest, are: HFP, A2DP SINK, HID, SPP, GATT(LE), A2DP Source. For the search scenario of the passenger side screen, the Bluetooth protocol priorities, from highest to lowest, are: A2DP Source, HID, SPP, GATT(LE), HFP, A2DP SINK. For the search scenario of the ceiling-mounted screen, the Bluetooth protocol priorities, from highest to lowest, are: HID, A2DP Source, SPP, GATT(LE), HFP, A2DP SINK. For the search scenario of other screens, the Bluetooth protocol priorities, from highest to lowest, are: HFP, HID, A2DPSource, SPP, GATT(LE), A2DP SINK. Other screen usage scenarios can be any usage scenario in the vehicle other than the driver's side screen, passenger side screen, and ceiling-mounted screen, such as the rear-side screen. It should be understood that the priority of the Bluetooth protocol corresponding to the search scenario can be pre-configured by the vehicle's infotainment system and can be dynamically adjusted according to Bluetooth communication needs; it is not static.

[0062] Among them, HFP corresponds to the call scenario, such as at least one of call answering, call hanging up, volume adjustment, caller ID, and voice acquisition and transmission. A2DP SINK corresponds to the voice output scenario, such as at least one of playing mobile phone music through car audio and navigation voice. HID corresponds to the interactive control scenario, such as at least one of Bluetooth keyboard input, game controller control, and remote control control. SPP corresponds to the data transmission scenario, such as at least one of Bluetooth OBD (On-Board Diagnostics) diagnostic data upload and vehicle device configuration parameter transmission. GATT(LE) corresponds to the low-power data interaction scenario, such as at least one of Bluetooth key unlocking, smart wearable device data synchronization, temperature sensor data acquisition, and humidity sensor data acquisition. A2DP Source corresponds to the audio output scenario, such as at least one of local screen music and video audio output.

[0063] Since the driver's screen is typically used by the driver, to ensure driver safety during mobile calls and prevent distraction while driving, HFP can be set to the highest priority. Drivers usually require navigation voice and basic driving audio (e.g., navigation voice prompts, driving voice announcements). To prevent this from being consumed by game controller data transmission and affecting driving, A2DP SINK can be set to the second priority. Drivers need to concentrate on driving and generally do not use Bluetooth interactive control devices (e.g., Bluetooth steering wheel buttons, minimalist remote controls), meaning their need for interactive control is low, but the usability of interactive control Bluetooth devices must be ensured. Therefore, HID can be set to the third priority. Drivers generally do not actively transmit data while driving, meaning their need for data transmission is low; SPP can be set to the fourth priority. Drivers generally do not perform low-power data interaction while driving, meaning their need for low-power data interaction is low; GATT(LE) can be set to the fifth priority. The driver needs to focus on driving the vehicle rather than actively playing local audio. This is generally used by the front passenger and rear passenger. The priority of the A2DP Source can be set to the sixth priority.

[0064] Since the passenger-side screen is typically used by the passenger, primarily for entertainment such as playing local audio, the A2DP Source priority can be set to the highest priority to meet their entertainment needs. The passenger will frequently use Bluetooth devices for interactive control; to ensure ease of use, the HID priority can be set to the second highest priority. The passenger may sometimes need to transmit data; to facilitate data transfer, the SPP priority can be set to the third highest priority. The passenger may sometimes need low-power data interaction; the GATT(LE) priority can be set to the fourth highest priority. The passenger can hold the device directly during mobile calls without safety concerns and without consuming vehicle Bluetooth resources; therefore, the HFP priority can be set to the fifth highest priority. The passenger generally does not need navigation voice or basic driving audio; therefore, the A2DP SINK priority can be set to the sixth highest priority.

[0065] Since ceiling-mounted screens are generally designed for rear-wheel-drive users and primarily used for interactive control, meaning they have high demands for interactive control, the HID priority can be set to the highest priority. Rear-wheel-drive users also have high entertainment needs for the ceiling-mounted screen; to meet these needs, the A2DP Source priority can be set to the second highest priority. Rear-wheel-drive users may sometimes have data transmission needs; to facilitate data transmission, the SPP priority can be set to the third highest priority. Rear-wheel-drive users may sometimes have low-power data interaction needs; the GATT(LE) priority can be set to the fourth highest priority. Rear-wheel-drive users can directly hold the device while making mobile calls, which does not involve security issues and does not occupy vehicle Bluetooth resources; therefore, the HFP priority can be set to the fifth highest priority. Rear-wheel-drive users generally do not have needs for navigation voice and basic driving audio; therefore, the A2DP SINK priority can be set to the sixth highest priority. The priority of Bluetooth protocols for other screen usage scenarios can be adaptively adjusted according to user needs. For example, the priority of Bluetooth protocols from high to low can be: HFP, HID, A2DP Source, SPP, GATT(LE), A2DP SINK. This application embodiment does not limit this.

[0066] For example, since there is a mapping relationship between the priority and initial weight of a Bluetooth protocol, this mapping relationship can be pre-configured to obtain a set (which can be called the "second set") representing the mapping relationship between the priority and initial weight of the Bluetooth protocols. Therefore, in the second set, the initial weight of a Bluetooth protocol corresponding to its priority can be mapped. The priority of each Bluetooth protocol is positively correlated with its corresponding initial weight; that is, the higher the priority of a Bluetooth protocol, the larger its initial weight, and vice versa. This is illustrated in Table 5 below. Table 5

[0067] In Table 5, when the search scenario is the driver's side screen and the Bluetooth protocol priority is from high to low as HFP, A2DP SINK, HID, SPP, GATT(LE), A2DP Source, the initial weights are: HFP 1.0, A2DP SINK 0.8, HID 0.5, SPP 0.3, GATT(LE) 0.2, and A2DP Source 0.1. When the search scenario is the passenger's side screen and the Bluetooth protocol priority is from high to low as A2DP Source, HID, SPP, GATT(LE), HFP, A2DP SINK, the initial weights are: A2DP Source 1.0, HID 0.8, SPP 0.5, GATT(LE) 0.3, HFP 0.2, and A2DP SINK 0.1. When searching for a ceiling-mounted screen, and the Bluetooth protocol priorities are from highest to lowest as follows: HID, A2DP Source, SPP, GATT(LE), HFP, A2DP SINK, the initial weights are: HID 1.0, A2DP Source 0.8, SPP 0.5, GATT(LE) 0.3, HFP 0.2, and A2DP SINK 0.1. When searching for other screens, and the Bluetooth protocol priorities are from highest to lowest as follows: HFP, HID, A2DP Source, SPP, GATT(LE), A2DP SINK, the initial weights are: HFP 1.0, HID 0.8, A2DP Source 0.5, SPP 0.3, GATT(LE) 0.2, and A2DP SINK 0.1. It should be understood that the initial weight corresponding to the priority of the Bluetooth protocol can be pre-configured by the vehicle's infotainment system, and can be dynamically adjusted according to Bluetooth communication needs later; it is not static.

[0068] For example, taking a search scenario as the main user screen, and considering external Bluetooth devices such as mobile phones, remote controls, headphones, game controllers, IoT devices, and other external Bluetooth devices, the first weight of each external Bluetooth device is calculated as follows: The first weight of the mobile phone is the sum of the initial weights of HFP and A2DP SINK, i.e., the first weight of the mobile phone = 1 + 0.8 = 1.8. The first weight of the remote control is the sum of the initial weights of HID and GATT, i.e., the first weight of the remote control = 0.5 + 0.2 = 0.7. The first weight of the headphones is the initial weight of A2DP Source, i.e., the first weight of the headphones = 0.1. The first weight of the game controller is the sum of the initial weights of HID and GATT, i.e., the first weight of the game controller = 0.5 + 0.2 = 0.7. The first weight of the IoT is the initial weight of GATT, i.e., the first weight of the IoT = 0.2. The first weight of other external Bluetooth devices is the initial weight of SPP, i.e., the first weight of the IoT = 0.3. It should be understood that the calculation of the first weight of each external Bluetooth device, based on the usage scenarios of the passenger screen, ceiling screen, or other screens, and the external Bluetooth device being a mobile phone, remote control, headphones, game controller, IoT, or other external Bluetooth device, can refer to the above calculation method, which will not be repeated here.

[0069] In one implementation, when weighting the signal reception strength of each external Bluetooth device using a first weight corresponding to each external Bluetooth device, a second weight corresponding to each external Bluetooth device can be determined based on the device identifier of each external Bluetooth device, and / or a third weight corresponding to each external Bluetooth device can be determined based on the vehicle's historical communication information. Further, when determining the second weight and / or the third weight corresponding to each external Bluetooth device, the aforementioned weighting of the signal reception strength of each external Bluetooth device based on the first weight to obtain the target signal strength of each external Bluetooth device includes: weighting the signal reception strength of each external Bluetooth device based on the second weight, and / or the third weight, and the first weight, thereby obtaining the target signal strength of each external Bluetooth device. Based on determining the weights of each external Bluetooth device through the usage scenario of the screen that triggers Bluetooth device search, the weights of each external Bluetooth device, determined by the device identifier of each external Bluetooth device and / or the vehicle's historical communication information, are introduced. By weighting the signal reception strength of each external Bluetooth device through the weights corresponding to multi-dimensional features, the signal reception strength of each external Bluetooth device can be transformed into the target signal strength under the screen's usage scenario dimension. At the same time, the influence of the device identifier of each external Bluetooth device and / or the vehicle's historical communication information on the target signal strength is also taken into account, thereby improving the accuracy of the target signal strength corresponding to each external Bluetooth device.

[0070] Specifically, the total weight of each external Bluetooth device is first determined using its second weight, and / or third weight, and first weight. Then, the signal reception strength of each external Bluetooth device is weighted using this total weight to obtain the target signal strength of each device. For example, when determining the total weight of each external Bluetooth device using its second and first weights, the product of the second and first weights can be used to determine the total weight of each external Bluetooth device.

[0071]

[0072] In formula (3), P total(i) P represents the total weight of the i-th external Bluetooth device. w(i) This represents the second weight of the i-th external Bluetooth device.

[0073] Alternatively, when determining the total weight of each external Bluetooth device by combining the third weight corresponding to each external Bluetooth device with the first weight corresponding to each external Bluetooth device, the product of the third weight corresponding to each external Bluetooth device and the first weight corresponding to each external Bluetooth device can be used to determine the total weight of each external Bluetooth device.

[0074]

[0075] In formula (4), P total(i) P represents the total weight of the i-th external Bluetooth device. h(i) This represents the third weight of the i-th external Bluetooth device.

[0076] Alternatively, when determining the total weight of each external Bluetooth device by using the second weight, the third weight, and the first weight corresponding to each external Bluetooth device, the product of the second weight, the third weight, and the first weight corresponding to each external Bluetooth device can be used to determine the total weight of each external Bluetooth device.

[0077]

[0078] In formula (5), P total(i) This represents the total weight of the i-th external Bluetooth device.

[0079]

[0080] In formula (6), R (i) Indicates that through P total(i) Calculate the target signal strength of the i-th external Bluetooth device.

[0081] The historical communication information refers to the identification information of the Bluetooth device that last communicated with the vehicle via Bluetooth before the current time. For example, if the last Bluetooth device to communicate with the vehicle via Bluetooth before the current time was a mobile phone, then the historical communication information would be the identification information of the mobile phone. The identification information of the Bluetooth device may include at least one of the following: the Bluetooth device's name, the Bluetooth device's physical address (Media Access Control Address, MAC Address), etc. The second weight is related to whether each external Bluetooth device is on the vehicle's Bluetooth communication whitelist; that is, the second weight of each external Bluetooth device can be determined by whether it is on the vehicle's Bluetooth communication whitelist. The third weight is related to whether each external Bluetooth device is the last Bluetooth device to communicate with the vehicle via Bluetooth before the current time; that is, the third weight of each external Bluetooth device can be determined by whether it is the last Bluetooth device to communicate with the vehicle via Bluetooth before the current time.

[0082] In one implementation, when determining the second weight corresponding to each external Bluetooth device using the device identifier of each external Bluetooth device, it can first be determined whether each external Bluetooth device is a whitelisted device based on a preset whitelist and the device identifier of each external Bluetooth device. If the first external Bluetooth device among the multiple external Bluetooth devices is a whitelisted device, the first preset weight is determined as the second weight corresponding to the first external Bluetooth device; if the second external Bluetooth device among the multiple external Bluetooth devices is not a whitelisted device, the second preset weight is determined as the second weight corresponding to the second external Bluetooth device.

[0083] If the device identifiers of a portion of multiple external Bluetooth devices exist in the preset whitelist, it indicates that these external Bluetooth devices (referred to as "the first external Bluetooth device") belong to the whitelist, and the first preset weight can be determined as the second weight corresponding to the first external Bluetooth device. If the device identifiers of another portion of multiple external Bluetooth devices do not exist in the preset whitelist, it indicates that this other portion of external Bluetooth devices (referred to as "the second external Bluetooth device") does not belong to the whitelist, and the second preset weight can be determined as the second weight corresponding to the first external Bluetooth device.

[0084] In this system, the first preset weight is greater than the second preset weight. For example, if a mobile phone is a whitelisted device but a headset is not, then the first preset weight corresponding to the mobile phone is greater than the first preset weight corresponding to the headset. For example, the first preset weight corresponding to the mobile phone is 0.9, and the first preset weight corresponding to the headset is 0.8. The first and second preset weights can be pre-configured weights, and this application embodiment does not limit this. This is because external Bluetooth devices in the whitelist may be trusted devices frequently used by the user. Therefore, setting the weight of whitelisted devices among multiple external Bluetooth devices to be greater than the weight of non-whitelisted devices prioritizes displaying external Bluetooth devices in the whitelist, giving priority to trusted external Bluetooth devices frequently used by the user, avoiding the need for the user to search through the output sorting results and thus improving the convenience of user operation. It should be understood that the second external Bluetooth device is any external Bluetooth device other than the first external Bluetooth device among multiple external Bluetooth devices. Furthermore, the preset whitelist includes device identifiers that are allowed to communicate with the vehicle via Bluetooth, indicating pre-authorized trusted devices, which ensures the security of vehicle Bluetooth communication.

[0085] In one implementation, when determining the third weight corresponding to each external Bluetooth device based on the vehicle's historical communication information, it can be first determined whether each external Bluetooth device is the last Bluetooth device that communicated with the vehicle via Bluetooth before the current time, based on the historical communication information and the device identifier of each external Bluetooth device. If the third external Bluetooth device among multiple external Bluetooth devices is the last Bluetooth device that communicated with the vehicle via Bluetooth before the current time, the third preset weight is determined as the third weight corresponding to the third external Bluetooth device; if the fourth external Bluetooth device among multiple external Bluetooth devices is not the last Bluetooth device that communicated with the vehicle via Bluetooth before the current time, the fourth preset weight is determined as the third weight corresponding to the fourth external Bluetooth device.

[0086] If some of the external Bluetooth devices are the last Bluetooth devices to have communicated with the vehicle before the current moment, then these external Bluetooth devices (referred to as "third external Bluetooth devices") are likely the external Bluetooth devices the user wants to connect to at the current moment, and a third preset weight can be determined as the third weight corresponding to the third external Bluetooth device. If other external Bluetooth devices are not the last Bluetooth devices to have communicated with the vehicle before the current moment, then these other external Bluetooth devices (referred to as "fourth external Bluetooth devices") are likely not the external Bluetooth devices the user wants to connect to at the current moment, and a fourth preset weight can be determined as the third weight corresponding to the fourth external Bluetooth device.

[0087] In this embodiment, the third preset weight is greater than the fourth preset weight. For example, if the mobile phone is the Bluetooth device that last communicated with the vehicle via Bluetooth before the current moment, and the headset is not, then the third preset weight corresponding to the mobile phone is greater than the fourth preset weight corresponding to the headset. For example, the first preset weight corresponding to the mobile phone is 0.95, and the first preset weight corresponding to the headset is 0.7. The third and fourth preset weights can be pre-configured weights, and this embodiment does not limit this. This is because the Bluetooth device that last communicated with the vehicle via Bluetooth before the current moment may be an external Bluetooth device that the user still wants to use at the current moment, which is a commonly used external Bluetooth device and better meets the user's needs for using external Bluetooth devices. Therefore, the weight of the Bluetooth device that last communicated with the vehicle via Bluetooth before the current moment is set greater than that of the Bluetooth device that did not last communicate with the vehicle via Bluetooth before the current moment, so as to prioritize the display of the Bluetooth device that last communicated with the vehicle via Bluetooth before the current moment, and to prioritize the display of commonly used external Bluetooth devices as much as possible, so that the user does not have to search through the output sorting results, which would lead to a lengthy user operation path and improve the convenience of user operation. It should be understood that the fourth external Bluetooth device is any external Bluetooth device other than the third external Bluetooth device among multiple external Bluetooth devices.

[0088] In S440, when outputting the sorting results of multiple external Bluetooth devices, the sorting result is not output directly. Instead, it checks whether there are any duplicate sorting positions. If no duplicate sorting positions are found, the sorting result can be output directly. If duplicate sorting positions are found, the sorting position of each fifth external Bluetooth device is determined based on the signal reception strength of each device corresponding to that position. The sorting result is then adjusted based on the sorting positions of each fifth external Bluetooth device to obtain the adjusted sorting result; the adjusted sorting result is then output. For example, if the sorting positions in the result, from first to last, are: mobile phone (1st), headphones (2nd), remote control (3rd), and game controller (4th), then the sorting result can be output directly. Figure 5 As shown in (a) of the diagram.

[0089] In cases where identical rankings exist within the sorting results, the sorting result cannot be directly output. Instead, the ranking of each fifth external Bluetooth device is determined based on its signal reception strength. Devices with stronger signal reception are prioritized for display, allowing users to see them first for Bluetooth connection and ensuring smooth and efficient communication between the in-vehicle Bluetooth device and external Bluetooth devices. In this embodiment, different external Bluetooth devices with the same ranking can be referred to as "fifth external Bluetooth devices." For example, if a remote control and a game controller have the same ranking, then the remote control and game controller are the fifth external Bluetooth devices.

[0090] For example, when determining the ranking of each fifth external Bluetooth device based on its signal reception strength, the ranking can be determined by the relationship between their signal reception strengths. Devices with stronger signal reception strength are ranked higher, and those with weaker signal strength are ranked lower. The ranking of other external Bluetooth devices remains unchanged. The signal reception strength of each fifth external Bluetooth device is positively correlated with its ranking because devices with stronger signal reception strength are more likely to be the ones the user wants to connect to.

[0091] For example, the sorting order in the sorting result, from first to last, is: mobile phone 1st, headphones 2nd, remote control 3rd, game controller 3rd. To determine the order of the remote control and game controller, we can use their signal reception strengths. Specifically, first determine the relationship between their signal reception strengths. For example, if the remote control's signal reception strength is -85dBm and the game controller's is -80dBm, then -85dBm < -80dBm. Therefore, the game controller's sorting order can be adjusted to precede the remote control's. The sorting order of the other external Bluetooth devices remains unchanged, resulting in the adjusted sorting result, where the order from first to last is: mobile phone 1st, headphones 2nd, game controller 3rd, remote control 4th. Figure 5As shown in (b) above. It should be noted that the ranking of each fifth external Bluetooth device is determined by the signal reception strength of each device because different in-vehicle Bluetooth devices receive different signal reception strengths from external Bluetooth devices due to factors such as Bluetooth signal transmission distance, Bluetooth signal transmission delay, Bluetooth signal stability, the number and location of antennas, and Bluetooth protocol compatibility. Therefore, the signal reception strength of each fifth external Bluetooth device can be used to determine its ranking.

[0092] Optionally, if there are devices with the same ranking in the sorting result, the ranking of each fifth external Bluetooth device can be determined based on the signal reception stability of each device with the same ranking. Devices with stronger signal reception stability are ranked higher to prioritize displaying them. This allows users to see devices with stronger signal reception stability first for Bluetooth connection, ensuring stable Bluetooth communication between the in-vehicle Bluetooth device and external Bluetooth devices, and enabling better Bluetooth communication. The sorting result is adjusted based on the ranking of each fifth external Bluetooth device to obtain an adjusted sorting result; the adjusted sorting result is then output. When there are devices with the same ranking in the sorting result, the external Bluetooth devices with the same ranking can be ranked based on the signal reception stability of the devices with the same ranking. Among them, the signal reception stability of each fifth external Bluetooth device is positively correlated with the ranking of each fifth external Bluetooth device. This is because the stronger the signal reception stability of the fifth external Bluetooth device, the more stable the communication with the vehicle Bluetooth device can be. Therefore, the signal reception stability of each fifth external Bluetooth device is positively correlated with the ranking of each fifth external Bluetooth device.

[0093] For example, the sorting order in the sorting result, from first to last, is: mobile phone 1st, headphones 2nd, remote control 3rd, game controller 3rd. To determine the order of the remote control and game controller, we can use the signal reception stability of the remote control and the game controller. Specifically, we first determine the relative stability of the remote control's signal reception compared to the game controller's. For example, if the remote control's signal reception stability is higher than the game controller's, then the game controller's sorting order can be adjusted to after the remote control's. The sorting order of the other external Bluetooth devices (excluding the remote control and game controller) remains unchanged, resulting in the adjusted sorting result. The sorting order in the adjusted result, from first to last, is: mobile phone 1st, headphones 2nd, remote control 3rd, game controller 4th. Figure 5 As shown in (a) above. It should be noted that the ranking of each fifth external Bluetooth device is determined by the stability of its signal reception. This is because different vehicle Bluetooth devices receive signals from external Bluetooth devices at different times due to factors such as Bluetooth signal transmission distance, Bluetooth signal transmission delay, the number and location of antennas, and Bluetooth protocol compatibility. Therefore, the stability of the signal reception of each fifth external Bluetooth device can be used to determine its ranking.

[0094] Figure 6 This is another flowchart illustrating a method for sorting Bluetooth devices provided in this application. This method can be executed by a vehicle (e.g., vehicle 102) including multiple in-vehicle Bluetooth devices, or by a controller within the vehicle. For example, as shown... Figure 6 As shown, the method 600 includes the following implementation process: S601: Obtain the list of external Bluetooth devices searched by each vehicle Bluetooth device, thus obtaining multiple external Bluetooth devices.

[0095] For example, upon detecting a triggered search, the system can respond by searching for the existence of external Bluetooth devices using multiple in-vehicle Bluetooth devices. If an external Bluetooth device is found using these multiple in-vehicle Bluetooth devices, a list of external Bluetooth devices found by each in-vehicle Bluetooth device (e.g., in-vehicle Bluetooth device A, in-vehicle Bluetooth device B, and in-vehicle Bluetooth device C) can be obtained (i.e., the search results of the aforementioned multiple in-vehicle Bluetooth devices). When obtaining the lists of external Bluetooth devices found by each in-vehicle Bluetooth device, the union of these lists can be used to obtain the deduplicated external Bluetooth devices, i.e., the aforementioned multiple external Bluetooth devices.

[0096] For example, the list of external Bluetooth devices searched by car Bluetooth device A includes: mobile phone, headphones, and game controller. The list of external Bluetooth devices searched by car Bluetooth device B includes: mobile phone, headphones, and remote control. The list of external Bluetooth devices searched by car Bluetooth device C includes: mobile phone, headphones, remote control, and game controller.

[0097] S602 determines the pre-configured weights corresponding to the device types of each external Bluetooth device.

[0098] For example, the pre-configured weights (i.e. the first weights) corresponding to the device types of each external Bluetooth device are first determined by triggering the search scenario corresponding to the search (i.e. the target search scenario mentioned above).

[0099] S603 determines the signal reception strength of each external Bluetooth device.

[0100] It should be understood that S602 and S603 can be executed simultaneously or sequentially, and the embodiments of this application do not limit this.

[0101] S604 performs weighted processing on the signal reception strength of each external Bluetooth device by using the pre-configured weights corresponding to the device type of each external Bluetooth device, and obtains the weighted signal strength of each external Bluetooth device.

[0102] For example, the signal reception strength of each external Bluetooth device is weighted by the pre-configured weights corresponding to the device type of each external Bluetooth device to obtain the weighted signal strength of each external Bluetooth device (i.e. the target signal strength mentioned above), as shown in the above formula (1).

[0103] S605 sorts the weighted signal strengths of multiple external Bluetooth devices in descending order of strength to obtain the sorting results of the multiple external Bluetooth devices.

[0104] For example, the weighted signal strengths of multiple external Bluetooth devices are sorted from strongest to weakest to obtain a sorting result. Once the sorting result is obtained, it can be rendered to produce a corresponding display interface, such as a UI (User Interface / User Experience).

[0105] S606, outputs the display interface corresponding to the sorting results.

[0106] For example, the display interface corresponding to the sorting results of the output rendering.

[0107] It should be noted that, Figure 6 All steps are in Figures 3 to 5 The corresponding embodiments are described in detail, and will not be repeated here.

[0108] Figure 7 This is another flowchart illustrating a method for sorting Bluetooth devices provided in this application. This method can be executed by a vehicle (e.g., vehicle 102) including multiple in-vehicle Bluetooth devices, or by a controller within the vehicle. For example, as shown... Figure 7 As shown, this method 700 can be divided into two stages: S701, initiate Bluetooth device search.

[0109] For example, upon detecting a triggered search, a Bluetooth device search can be initiated via multiple in-vehicle Bluetooth devices in response to the triggered search.

[0110] S702: Has an external Bluetooth device been detected? If yes, proceed to S703. If no, end the process.

[0111] For example, when multiple in-vehicle Bluetooth devices in a vehicle initiate a Bluetooth device search, it can be determined whether the multiple in-vehicle Bluetooth devices have searched for external Bluetooth devices.

[0112] S703, usage scenario recognition for screens that trigger Bluetooth device searches.

[0113] For example, when multiple in-vehicle Bluetooth devices find an external Bluetooth device via S702, the usage scenario of the screen where the Bluetooth device search is performed can be identified to obtain the usage scenario of the screen that triggered the Bluetooth device search (i.e., the search scenario described above). For example, when multiple in-vehicle Bluetooth devices fail to find an external Bluetooth device via S702, the search for the Bluetooth device can be terminated.

[0114] S704, determine whether the identified screen usage scenario is a valid scenario. If yes, proceed to S705. If no, proceed to S710.

[0115] For example, when identifying a screen's usage scenario, it can be determined whether that scenario is valid. A valid scenario refers to a search scenario that existed before the current moment, not a newly added search scenario or one that did not exist before the current moment. For instance, search scenarios that existed before the current moment include: the driver's side screen usage scenario, the passenger's side screen usage scenario, and the ceiling-mounted screen usage scenario. If the search scenario that did not exist before the current moment is the rear-side screen usage scenario, then the driver's side screen usage scenario, the passenger's side screen usage scenario, and the ceiling-mounted screen usage scenario are valid scenarios, while the rear-side screen usage scenario is invalid.

[0116] S705, query the pre-configured weights of various Bluetooth protocols corresponding to the usage scenarios of the screen.

[0117] For example, when the screen usage scenario identified by S704 is a valid scenario, the pre-configured weights (i.e. the initial weights mentioned above) of each Bluetooth protocol corresponding to the screen usage scenario can be queried.

[0118] S706 performs multi-dimensional weighted scoring on the signal reception strength of each external Bluetooth device to obtain the weighted signal strength of each external Bluetooth device (i.e., the target signal strength mentioned above).

[0119] For example, through the above P d(i) P w(i) P h(i) The signal reception strength of each external Bluetooth device is scored using a multi-dimensional weighted method to obtain the weighted signal strength of each external Bluetooth device.

[0120] S707 sorts the weighted signal strengths of multiple external Bluetooth devices to obtain the sorting results of the multiple external Bluetooth devices.

[0121] For example, the weighted signal strengths of multiple external Bluetooth devices are sorted in descending order of strength to obtain the sorting results of the multiple external Bluetooth devices.

[0122] S708 renders the display interface of the sorting results.

[0123] For example, when the sorting results of multiple external Bluetooth devices are obtained, the sorting results can be rendered to display the corresponding sorting results.

[0124] S709 outputs the display interface of the rendered sorting results.

[0125] S710 sorts the signal reception strength of each external Bluetooth device to obtain the sorting results of multiple external Bluetooth devices.

[0126] For example, if the screen usage scenario identified by S704 is an invalid scenario, the signal reception strength of each external Bluetooth device can be directly sorted to obtain a sorting result of multiple external Bluetooth devices. Then, S708 and S709 can continue to be executed.

[0127] It should be noted that, Figure 7 All steps are in Figures 3 to 6 The corresponding embodiments are described in detail, and will not be repeated here.

[0128] For example, when multiple external Bluetooth devices are detected around the vehicle via multiple in-vehicle Bluetooth devices, such as mobile phones, headphones, game controllers, and remote controls, and the vehicle screens include the driver's screen, the passenger's screen, and the ceiling-mounted screen, if the passenger wants to connect headphones to listen to music to avoid disturbing the driver, but the headphones are placed on the back seat while the mobile phone, game controller, and remote control are placed in the driver's cabin, and the devices are sorted directly according to their respective signal reception strength, the sorting result from front to back might be: mobile phone, game controller, remote control, headphones, etc. Figure 8 As shown in (a) above. This is because in-vehicle Bluetooth devices are usually deployed in a hidden location under the armrest box in the driver's cabin. This results in the signal reception strength of external Bluetooth devices that are closer to the in-vehicle Bluetooth device being stronger, and the signal reception strength of external Bluetooth devices that are farther away being weaker. Therefore, sorting external Bluetooth devices solely based on signal reception strength may not perfectly match the user's needs, resulting in the headphones being ranked relatively low. Even worse, if there are many external Bluetooth devices with stronger signal reception than the headphones, the headphones may not be prioritized for display, causing them to not appear on the homepage. Users would then have to manually search for the headphones and operate the in-vehicle Bluetooth device to establish a Bluetooth connection with them, thus reducing the user experience of using the headphones.

[0129] If the Bluetooth device sorting method provided in this application is used to sort the mobile phone, game controller, remote control, and headphones, the sorting result from first to last may be: headphones, mobile phone, game controller, remote control, as follows. Figure 8 As shown in (b), the headphones are prioritized and displayed first, making the sorting result more in line with the user's needs. Users do not need to manually search for the headphones and can find them directly. This makes it easier for users to operate the car's Bluetooth device to establish a Bluetooth connection with the headphones, thus improving the user experience.

[0130] For example, when displaying the sorting results, if a user's connection instruction to an external Bluetooth device in the display interface is detected, such as when the user clicks on a mobile phone in the display interface, the system can respond to the connection instruction and control the in-vehicle Bluetooth device to connect to the mobile phone via Bluetooth for Bluetooth communication.

[0131] Optionally, when controlling the in-vehicle Bluetooth device to connect to the mobile phone via Bluetooth, the device with the strongest signal strength among multiple in-vehicle Bluetooth devices can be controlled to connect to the mobile phone, ensuring smooth Bluetooth communication between the in-vehicle Bluetooth device and the mobile phone. For example, if both in-vehicle Bluetooth device A and in-vehicle Bluetooth device B detect the mobile phone, but the signal strength of in-vehicle Bluetooth device A is greater than that of in-vehicle Bluetooth device B, then in-vehicle Bluetooth device A can be controlled to connect to the mobile phone via Bluetooth.

[0132] Optionally, when controlling the in-vehicle Bluetooth device to connect to the mobile phone via Bluetooth, the device with the most stable signal reception among multiple in-vehicle Bluetooth devices can be selected to connect to the mobile phone. This ensures the stability of the Bluetooth connection between the in-vehicle Bluetooth device and the mobile phone, thereby ensuring the stability of Bluetooth communication between the two devices and preventing Bluetooth communication interruptions due to poor stability. For example, if both in-vehicle Bluetooth device A and in-vehicle Bluetooth device B detect the mobile phone, but the signal reception stability of in-vehicle Bluetooth device A is lower than that of in-vehicle Bluetooth device B, then in-vehicle Bluetooth device B can be selected to connect to the mobile phone via Bluetooth.

[0133] In summary, this application's embodiments introduce a usage scenario (also known as "scene awareness") that triggers Bluetooth device searches, based on the signal reception strength of multiple external Bluetooth devices. By dynamically adjusting the signal reception strength of each external Bluetooth device according to this usage scenario, the ranking of multiple external Bluetooth devices prioritizes the communication quality of the vehicle's Bluetooth communication while also conforming to the screen's usage scenario. This achieves accurate ranking of external Bluetooth devices when multiple in-vehicle Bluetooth devices are present, improving the accuracy of the ranking results. By proactively predicting the user's intentions based on the signal reception strength of each external Bluetooth device and the usage scenario of the user's current Bluetooth device search screen, the system prioritizes the external Bluetooth devices the user wants to connect to, improving the user's Bluetooth experience.

[0134] It should be understood that the above examples are provided to help those skilled in the art understand the embodiments of this application, and are not intended to limit the embodiments of this application to the specific values ​​or scenarios exemplified. Those skilled in the art can obviously make various equivalent modifications or variations based on the above examples, and such modifications or variations also fall within the scope of the embodiments of this application.

[0135] The above text combined Figures 1 to 8 The method for sorting Bluetooth devices provided in the embodiments of this application is described in detail below; the following will be combined with Figure 9 and Figure 11 The apparatus embodiments of this application are described in detail below. It should be understood that the apparatus in the embodiments of this application can perform the various methods described in the foregoing embodiments of this application, that is, the specific working processes of the various products described below can be referred to the corresponding processes in the foregoing method embodiments.

[0136] Figure 9 This is a schematic diagram of the Bluetooth device sorting apparatus provided in the embodiments of this application.

[0137] For example, such as Figure 9 As shown, the device 900 is configured in a vehicle and includes: The determination module 910 is used to determine the signal reception strength of the target search scene and each external Bluetooth device when multiple external Bluetooth devices are found. The target search scene refers to the usage scenario of the screen that triggers the Bluetooth device search. The processing module 920 is used to determine the target signal strength of each external Bluetooth device based on the target search scenario and the signal reception strength of each external Bluetooth device; to sort the multiple external Bluetooth devices based on the target signal strength of each external Bluetooth device and obtain a sorting result, wherein the target signal strength is positively correlated with the sorting position in the sorting result; and to output the sorting result.

[0138] In one possible implementation, the processing module 920 is specifically used to: determine the first weight corresponding to each external Bluetooth device based on the target search scenario; and perform weighted processing on the signal reception strength of each external Bluetooth device based on each first weight to obtain the target signal strength of each external Bluetooth device.

[0139] In one possible implementation, the processing module 920 is further configured to: determine a second weight corresponding to each external Bluetooth device based on the device identifier of each external Bluetooth device; and / or, determine a third weight corresponding to each external Bluetooth device based on the vehicle's historical communication information, wherein the historical communication information represents the identifier information of the Bluetooth device that last communicated with the vehicle via Bluetooth before the current moment; specifically, the processing module 920 is configured to: perform weighted processing on the signal reception strength of each external Bluetooth device based on each second weight and / or each third weight, as well as each first weight, to obtain the target signal strength corresponding to each external Bluetooth device.

[0140] In one possible implementation, the processing module 920 is further configured to: determine whether each external Bluetooth device is a whitelisted device based on a preset whitelist and the device identifier of each external Bluetooth device; if the first external Bluetooth device among the multiple external Bluetooth devices is a whitelisted device, determine the first preset weight as the second weight corresponding to the first external Bluetooth device; if the second external Bluetooth device among the multiple external Bluetooth devices is not a whitelisted device, determine the second preset weight as the second weight corresponding to the second external Bluetooth device; wherein the first preset weight is greater than the second preset weight.

[0141] In one possible implementation, the processing module 920 is further configured to: determine whether each external Bluetooth device is the Bluetooth device that last communicated with the vehicle via Bluetooth before the current time, based on historical communication information and the device identifier of each external Bluetooth device; if the third external Bluetooth device among the multiple external Bluetooth devices is the Bluetooth device that last communicated with the vehicle via Bluetooth before the current time, determine the third preset weight as the third weight corresponding to the third external Bluetooth device; if the fourth external Bluetooth device among the multiple external Bluetooth devices is not the Bluetooth device that last communicated with the vehicle via Bluetooth before the current time, determine the fourth preset weight as the third weight corresponding to the fourth external Bluetooth device; wherein, the third preset weight is greater than the fourth preset weight.

[0142] In one possible implementation, the processing module 920 is further configured to: determine the target Bluetooth protocol corresponding to each external Bluetooth device based on the device type of each external Bluetooth device; specifically, the processing module 920 is configured to: determine the priority of each Bluetooth protocol in the target Bluetooth protocol corresponding to each external Bluetooth device based on the target search scenario; determine the initial weight corresponding to each Bluetooth protocol based on the priority of each Bluetooth protocol, wherein the priority of each Bluetooth protocol is positively correlated with the initial weight corresponding to each Bluetooth protocol; and sum the initial weights corresponding to each Bluetooth protocol to obtain the first weight corresponding to each external Bluetooth device.

[0143] In one possible implementation, the processing module 920 is specifically used to: output the sorting result if there are no identical sorting positions in the sorting result; if there are identical sorting positions in the sorting result, determine the sorting position of each fifth external Bluetooth device based on the signal reception strength of each fifth external Bluetooth device corresponding to the identical sorting position, wherein the signal reception strength of each fifth external Bluetooth device is positively correlated with the sorting position of each fifth external Bluetooth device; adjust the sorting result based on the sorting position of each fifth external Bluetooth device to obtain the adjusted sorting result; and output the adjusted sorting result.

[0144] In one possible implementation, the processing module 920 is specifically used to: determine the usage scenario of one screen as the target search scenario when a usage scenario of one screen is detected; and determine the usage scenario of the screen with the earliest timestamp among the usage scenarios of multiple screens as the target search scenario when a usage scenario of multiple screens is detected.

[0145] It should be noted that the aforementioned device 900 is embodied in the form of a functional module. The term "module" here can be implemented in software and / or hardware, without specific limitations.

[0146] For example, a "module" can be a software program, hardware circuit, or a combination of both that implements the above functions. Hardware circuits may include application-specific integrated circuits (ASICs), electronic circuits, processors (e.g., shared processors, proprietary processors, or combined processors) and memory for executing one or more software or firmware programs, combined logic circuits, and / or other suitable components that support the described functions.

[0147] Therefore, the modules of the various examples described in the embodiments of this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0148] Figure 10 This is a schematic diagram of the controller provided in the embodiments of this application.

[0149] For example, such as Figure 10As shown, the vehicle includes a controller 1000, which comprises a storage module 1010 and a processing module 1020. The storage module 1010 stores executable program code 1011, and the processing module 1020 is used to call and execute the executable program code 1011 to perform a method for sorting Bluetooth devices. For example, the controller 1000 may represent any of the following in the vehicle: Vehicle Control Unit (VCU), Domain Controller, Infotainment Controller (IC), Telematics Control Unit (TCU), etc.

[0150] Figure 11 This is a schematic diagram of the vehicle structure provided in the embodiments of this application.

[0151] For example, such as Figure 11 As shown, the vehicle 1100 includes a memory 1110 and a processor 1120, wherein the memory 1110 stores executable program code 1111, and the processor 1120 is used to call and execute the executable program code 1111 to perform a method for sorting Bluetooth devices.

[0152] This application can divide the vehicle into functional modules based on the above method example. For example, each module can correspond to a separate function module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0153] When each functional module is divided according to its corresponding function, the vehicle may include: a determination module and a processing module, etc. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.

[0154] The vehicle provided in this application is used to execute the above-described method for sorting Bluetooth devices, and thus can achieve the same effect as the above-described implementation method.

[0155] When using integrated units, the vehicle may include a processing module and a storage module. The processing module is used to control and manage the vehicle's movements. The storage module is used to support the vehicle in executing relevant program code and data.

[0156] The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits shown in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and microprocessors, etc., and the storage module may be a memory.

[0157] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described in the foregoing embodiments. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs (Digital Video Discs), CD-ROMs (Compact Disc Read-Only Memory), microdrives, magneto-optical disks, ROMs (Read-Only Memory), RAMs (Random Access Memory), EPROMs (Erasable Programmable Read-Only Memory), EEPROMs (Electrically Erasable Programmable Read Only Memory), DRAMs (Dynamic Random Access Memory), VRAMs (Video Random Access Memory), flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.

[0158] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement a Bluetooth device sorting method as described in the above embodiments.

[0159] In addition, the vehicle provided in the embodiments of this application may specifically be a chip, component or module. The vehicle may include a connected processor and a memory. The memory is used to store instructions. When the vehicle is running, the processor may call and execute the instructions to make the chip execute a Bluetooth device sorting method in the above embodiments.

[0160] The vehicle, computer-readable storage medium, computer program product or chip provided in this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0161] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0162] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0163] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for sorting Bluetooth devices, characterized in that, Applied to vehicles, the method includes: When multiple external Bluetooth devices are found, the target search scenario and the signal reception strength of each of the external Bluetooth devices are determined, wherein the target search scenario refers to the usage scenario of the screen that triggers the Bluetooth device search; Based on the target search scenario and the signal reception strength of each of the external Bluetooth devices, the target signal strength of each of the external Bluetooth devices is determined. Based on the target signal strength of each of the external Bluetooth devices, the multiple external Bluetooth devices are sorted to obtain a sorting result, wherein the target signal strength is positively correlated with the sorting position in the sorting result; Output the sorting results.

2. The method according to claim 1, characterized in that, The step of determining the target signal strength of each external Bluetooth device based on the target search scenario and the signal reception strength corresponding to each external Bluetooth device includes: Based on the target search scenario, a first weight is determined for each of the external Bluetooth devices; The signal reception strength of each of the external Bluetooth devices is weighted based on each of the first weights to obtain the target signal strength of each of the external Bluetooth devices.

3. The method according to claim 2, characterized in that, The method further includes: Based on the device identifier of each of the external Bluetooth devices, a second weight corresponding to each of the external Bluetooth devices is determined; and / or, based on the historical communication information of the vehicle, a third weight corresponding to each of the external Bluetooth devices is determined, wherein the historical communication information represents the identifier information of the Bluetooth device that last communicated with the vehicle via Bluetooth before the current time. The step of weighting the signal reception strength of each of the external Bluetooth devices based on each of the first weights to obtain the target signal strength of each of the external Bluetooth devices includes: The signal reception strength of each external Bluetooth device is weighted based on each of the second weights and / or each of the third weights, as well as each of the first weights, to obtain the target signal strength corresponding to each of the external Bluetooth devices.

4. The method according to claim 3, characterized in that, The step of determining the second weight corresponding to each of the external Bluetooth devices based on the device identifier of each external Bluetooth device includes: Based on a preset whitelist and the device identifier of each external Bluetooth device, determine whether each external Bluetooth device is a whitelisted device; If the first external Bluetooth device among the multiple external Bluetooth devices is a whitelisted device, the first preset weight is determined as the second weight corresponding to the first external Bluetooth device; If the second external Bluetooth device among the multiple external Bluetooth devices is not a whitelisted device, the second preset weight is determined as the second weight corresponding to the second external Bluetooth device; Wherein, the first preset weight is greater than the second preset weight.

5. The method according to claim 3, characterized in that, The step of determining the third weight corresponding to each of the external Bluetooth devices based on the vehicle's historical communication information includes: Based on the historical communication information and the device identifiers of each external Bluetooth device, determine whether each external Bluetooth device is the Bluetooth device that last communicated with the vehicle via Bluetooth before the current time. If the third external Bluetooth device among the multiple external Bluetooth devices is the Bluetooth device that last communicated with the vehicle via Bluetooth before the current time, the third preset weight will be determined as the third weight corresponding to the third external Bluetooth device. If the fourth external Bluetooth device among the multiple external Bluetooth devices is not the Bluetooth device that last communicated with the vehicle via Bluetooth before the current time, the fourth preset weight will be determined as the third weight corresponding to the fourth external Bluetooth device. The third preset weight is greater than the fourth preset weight.

6. The method according to any one of claims 2 to 5, characterized in that, The method further includes: Based on the device type of each external Bluetooth device, determine the target Bluetooth protocol corresponding to each external Bluetooth device; The step of determining the first weight corresponding to each of the external Bluetooth devices based on the target search scenario includes: Based on the target search scenario, the priority of each Bluetooth protocol in the target Bluetooth protocol corresponding to each external Bluetooth device is determined; Based on the priority of each Bluetooth protocol, the initial weight corresponding to each Bluetooth protocol is determined, wherein the priority of each Bluetooth protocol is positively correlated with the initial weight corresponding to each Bluetooth protocol; The initial weights corresponding to each Bluetooth protocol are summed to obtain the first weights corresponding to each external Bluetooth device.

7. The method according to any one of claims 1 to 5, characterized in that, The output of the sorting result includes: If no two individuals have the same sorting order in the sorting results, output the sorting results. In the case where there are the same ranking positions in the ranking results, the ranking position of each fifth external Bluetooth device is determined based on the signal reception strength of each fifth external Bluetooth device corresponding to the same ranking position, wherein the signal reception strength of each fifth external Bluetooth device is positively correlated with the ranking position of each fifth external Bluetooth device. The sorting result is adjusted based on the sorting position of each of the fifth external Bluetooth devices to obtain the adjusted sorting result; Output the adjusted sorting result.

8. The method according to any one of claims 1 to 5, characterized in that, The method further includes: If a usage scenario of one screen is detected, the usage scenario of that screen is determined as the target search scenario; When multiple screen usage scenarios are detected, the usage scenario of the screen with the earliest timestamp among the multiple screen usage scenarios is determined as the target search scenario.

9. A controller, characterized in that, The controller includes: The storage module is used to store executable program code; A processing module is configured to call and run the executable program code from the storage module, causing the controller to perform the method as described in any one of claims 1 to 8.

10. A vehicle, characterized in that, The vehicles include: Memory, used to store executable program code; A processor for calling and running the executable program code from the memory, causing the vehicle to perform the method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Bluetooth device automatic connection method and device, equipment and storage medium

    CN113395690A

  • Vehicle Bluetooth switching control method and device

    CN117460093A

  • Audio transmission method and device, vehicle and storage medium

    CN118317274A

  • Bluetooth device rapid pairing method and system based on multiple scenes

    CN120916137A

  • Method and Apparatus for Providing In-Vehicle Bluetooth Pairing

    US20160150066A1