Processing method and device of bluetooth connection and vehicle

After receiving a Bluetooth connection request, the system obtains the number and type of connected devices, and dynamically adjusts the connection strategy based on device parameters and signal quality. This solves the problem of poor user experience and improves stability and resource utilization.

CN122294301APending Publication Date: 2026-06-26XIAOMI EV TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
XIAOMI EV TECH CO LTD
Filing Date
2026-05-09
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

When a user is using an electronic device, other devices may initiate Bluetooth connection requests, causing the connection to be automatically rejected or disconnected, resulting in a poor user experience.

Method used

After receiving a Bluetooth connection request, the system obtains the number and type of connected devices, and dynamically adjusts the connection strategy based on device parameters and signal quality, including signal strength, signal-to-noise ratio, and connection latency. It then uses a preset evaluation model to determine the connection command and provides user feedback and historical record support.

Benefits of technology

It improves the user experience, avoids low-quality Bluetooth links, enhances connection stability and device resource utilization, and adapts to different scenarios and device types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122294301A_ABST
    Figure CN122294301A_ABST
Patent Text Reader

Abstract

This disclosure relates to a Bluetooth connection processing method, apparatus, and vehicle, applied in the field of smart cockpits. The method includes: receiving a Bluetooth connection request from a second device; obtaining a first number of connected devices and the device type of the first device; when the first number is greater than or equal to a first preset value, obtaining device parameters of the second device based on the Bluetooth connection request, the device parameters indicating the signal connection status of the second device, the first preset value being the maximum number of Bluetooth connections of the first device; obtaining a connection instruction from the second device based on the device type and device parameters of the first device, the connection instruction being used to determine whether to establish a Bluetooth connection between the second device and the first device; and processing the Bluetooth connection request based on the connection instruction from the second device. This allows the user to determine whether to connect based on the signal connection status of the second device when the maximum connection limit has been reached, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of smart cockpits, and more particularly to a Bluetooth connectivity processing method, device, and vehicle. Background Technology

[0002] With the widespread adoption of IoT devices, Bluetooth technology has become the core communication protocol for interconnecting smart devices.

[0003] In related technologies, when a user is using an electronic device (such as a car navigation system), if another device (such as a mobile phone headset) suddenly initiates a connection request, the connection request may be automatically rejected or the old connection may be automatically disconnected due to default rules, resulting in the interruption of the current critical task and a poor user experience. Summary of the Invention

[0004] To overcome the problems existing in related technologies, this disclosure provides a Bluetooth connection processing method, apparatus, and vehicle to improve the user experience.

[0005] According to some embodiments of this disclosure, a Bluetooth connection processing method is provided, applied to a first device, including:

[0006] Receive a Bluetooth connection request sent by a second device;

[0007] Obtain the first number of connected devices and the device type of the first device;

[0008] When the first number is greater than or equal to the first preset value, the device parameters of the second device are obtained according to the Bluetooth connection request. The device parameters are used to indicate the signal connection status of the second device. The first preset value is the maximum number of Bluetooth connections of the first device.

[0009] Based on the device type and device parameters of the first device, obtain the connection command of the second device. The connection command of the second device is used to determine whether to connect the second device to the first device via Bluetooth.

[0010] The Bluetooth connection request is processed according to the connection instructions from the second device.

[0011] In the above embodiments, when the number of device connections of the first device has reached the maximum number of Bluetooth connections, and a new Bluetooth connection request from the second device is received, it can determine whether to connect the second device to the first device based on the signal connection status of the second device and the device type of the first device, and based on the connection command fed back by the user, thereby improving the user experience.

[0012] In some embodiments, obtaining the connection instructions for the second device based on the device type and device parameters of the first device includes:

[0013] Determine the signal quality of the second device based on the device parameters;

[0014] When the signal quality is greater than or equal to the second preset value, the connection command of the second device is obtained according to the device type and signal quality of the first device;

[0015] When the signal quality is less than the second preset value, the connection command of the second device is determined to be a connection rejection.

[0016] In the above embodiments, devices with low signal quality can be automatically rejected from connecting, while connection commands can be obtained for devices with good signal quality. This effectively avoids low-quality Bluetooth links and improves connection stability and device resource utilization.

[0017] In some embodiments, determining the signal quality of the second device based on device parameters includes:

[0018] Based on the device parameters, determine the Bluetooth signal strength of the second device, the signal-to-noise ratio of the second device, and the Bluetooth connection delay of the second device;

[0019] The signal quality of the second device is determined by a preset evaluation model based on the Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection delay of the second device.

[0020] In the above embodiments, multiple key indicators such as Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection delay are combined, and a preset evaluation model is used to comprehensively determine the signal quality, so that the signal quality evaluation is comprehensive, objective, and accurate, providing a reliable basis for the reasonable management of Bluetooth connections.

[0021] In some embodiments, the signal quality of the second device is determined by a preset evaluation model based on the Bluetooth signal strength of the second device, the signal-to-noise ratio of the second device, and the Bluetooth connection delay of the second device, including:

[0022] Obtain the first weight corresponding to Bluetooth signal strength, the second weight corresponding to signal-to-noise ratio, and the third weight corresponding to Bluetooth connection delay;

[0023] The signal quality of the second device is determined by a preset evaluation model based on the Bluetooth signal strength, signal-to-noise ratio, Bluetooth connection delay, first weight, second weight, and third weight of the second device.

[0024] In the above embodiments, differentiated weights are used to match three types of communication indicators: signal strength, signal-to-noise ratio, and connection delay. The signal quality is determined by weighted calculation based on a preset evaluation model. The influence ratio of each indicator can be flexibly adjusted to fit the actual use scenario, thereby improving the rationality and accuracy of signal quality assessment.

[0025] In some embodiments, the signal quality of the second device is determined by a preset evaluation model based on the Bluetooth signal strength of the second device, the signal-to-noise ratio of the second device, the Bluetooth connection latency of the second device, a first weight, a second weight, and a third weight, including:

[0026] Signal quality satisfies the following formula:

[0027] Q = w1 * RSSI + w2 * SNR - w3 * Latency

[0028] Where Q represents signal quality, w1 represents the first weight, w2 represents the second weight, w3 represents the third weight, RSSI represents the Bluetooth signal strength of the second device, SNR represents the signal-to-noise ratio of the second device, and Latency represents the Bluetooth connection delay of the second device.

[0029] In the above embodiments, the signal quality rules can be dynamically adjusted by setting a first weight corresponding to Bluetooth signal strength, a second weight corresponding to signal-to-noise ratio, and a third weight corresponding to Bluetooth connection delay, thereby adapting to various scenarios and improving scenario adaptability and user experience.

[0030] In some embodiments, obtaining the connection command for the second device based on the device type and signal quality of the first device includes:

[0031] Get the timestamp of the Bluetooth connection request and the device type of the second device;

[0032] Based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp, obtain the connection command for the second device.

[0033] In the above embodiments, the connection command of the second device can be obtained based on the device type of the first device, the device type of the second device, the Bluetooth signal strength, and the timestamp, thereby adapting the connection command of the second device and improving the user experience.

[0034] In some embodiments, obtaining the connection command for the second device based on the device type of the first device, the device type of the second device, signal quality, and timestamp includes:

[0035] The interaction strategy is determined based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp. The interaction strategy is used to indicate the interaction method between the first device and the user.

[0036] According to the interaction strategy, obtain the connection command of the second device.

[0037] In the above embodiments, the interaction strategy with the user can be adaptively determined based on the type of the first device, thereby adapting to different types of first devices and improving the user experience.

[0038] In some embodiments, determining an interaction strategy based on the device type of the first device, the device type of the second device, signal quality, and timestamp includes:

[0039] Based on the device type, signal quality, and timestamp of the second device, a first statement is generated, which is used to describe the Bluetooth information of the second device.

[0040] When the device type of the first device is terminal type, an interactive pop-up window is generated on the display module of the first device. The interactive pop-up window includes a first statement and a first control. The first control is used to respond to the user's selection operation on the interactive pop-up window to obtain the connection instruction of the second device.

[0041] When the device type of the first device is a vehicle type, the first statement is converted into speech according to the first statement, and the first speech corresponding to the first statement is generated and played through the speech module of the first device.

[0042] In the above embodiments, different interaction strategies can be determined according to different device types, thereby facilitating user operation and improving the user experience.

[0043] In some embodiments, obtaining the connection instruction for the second device based on the device type and device parameters of the first device further includes:

[0044] Obtain the device identifier of the second device and the Bluetooth connection records of the first device in the historical time period. The device identifier is used to uniquely identify the second device.

[0045] In the Bluetooth connection log, determine if there are any historical connection commands corresponding to the device identifier;

[0046] When a historical connection command exists in the Bluetooth connection record, the historical connection command is identified as the connection command for the second device.

[0047] In the above embodiments, decisions can be made automatically based on historical records, eliminating the need for repeated confirmations for frequently connected devices, thereby facilitating user operation and improving the user experience.

[0048] In some embodiments, receiving a Bluetooth connection request sent by a second device further includes:

[0049] When the first quantity is less than a first preset value, connect the second device via Bluetooth.

[0050] In the above embodiments, the device is connected directly when there is still free time, which facilitates user operation and improves the user experience.

[0051] In some embodiments, after receiving the Bluetooth connection request sent by the second device, the method further includes:

[0052] Determine if there are any pending connection requests;

[0053] When there are pending connection requests, wait for the pending connection requests to be completed before processing the Bluetooth connection request.

[0054] In the above embodiments, the requests are processed only after the pending requests have been executed, thereby ensuring the order in which the requests are processed.

[0055] According to some embodiments of this disclosure, a Bluetooth connection processing apparatus is provided, applied to a first device. The apparatus includes: a receiving module, a first acquiring module, a second acquiring module, a third acquiring module, and a processing module, wherein...

[0056] The receiving module is used to receive Bluetooth connection requests sent by the second device;

[0057] The first acquisition module is used to acquire the first number of connected devices of the first device and the device type of the first device;

[0058] The second acquisition module is used to acquire device parameters of the second device according to the Bluetooth connection request when the first number is greater than or equal to the first preset value. The device parameters are used to indicate the signal connection status of the second device. The first preset value is the maximum number of Bluetooth connections of the first device.

[0059] The third acquisition module is used to acquire the connection instruction of the second device according to the device type and device parameters of the first device. The connection instruction of the second device is used to determine whether to connect the second device to the first device via Bluetooth.

[0060] The processing module is used to process Bluetooth connection requests according to the connection instructions of the second device.

[0061] In some embodiments, the third acquisition module is specifically used for,

[0062] Determine the signal quality of the second device based on the device parameters;

[0063] When the signal quality is greater than or equal to the second preset value, the connection command of the second device is obtained according to the device type and signal quality of the first device;

[0064] When the signal quality is less than the second preset value, the connection command of the second device is determined to be a connection rejection.

[0065] In some embodiments, the third acquisition module is specifically used for,

[0066] Based on the device parameters, determine the Bluetooth signal strength of the second device, the signal-to-noise ratio of the second device, and the Bluetooth connection delay of the second device;

[0067] The signal quality of the second device is determined by a preset evaluation model based on the Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection delay of the second device.

[0068] In some embodiments, the third acquisition module is specifically used for,

[0069] Obtain the first weight corresponding to Bluetooth signal strength, the second weight corresponding to signal-to-noise ratio, and the third weight corresponding to Bluetooth connection delay;

[0070] The signal quality of the second device is determined by a preset evaluation model based on the Bluetooth signal strength, signal-to-noise ratio, Bluetooth connection delay, first weight, second weight, and third weight of the second device.

[0071] In some embodiments, the third acquisition module is specifically used for,

[0072] Signal quality satisfies the following formula:

[0073] Q = w1 * RSSI + w2 * SNR - w3 * Latency

[0074] Where Q represents signal quality, w1 represents the first weight, w2 represents the second weight, w3 represents the third weight, RSSI represents the Bluetooth signal strength of the second device, SNR represents the signal-to-noise ratio of the second device, and Latency represents the Bluetooth connection delay of the second device.

[0075] In some embodiments, the third acquisition module is specifically used for,

[0076] Get the timestamp of the Bluetooth connection request and the device type of the second device;

[0077] Based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp, obtain the connection command for the second device.

[0078] In some embodiments, the third acquisition module is specifically used for,

[0079] The interaction strategy is determined based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp. The interaction strategy is used to indicate the interaction method between the first device and the user.

[0080] According to the interaction strategy, obtain the connection command of the second device.

[0081] In some embodiments, the third acquisition module is specifically used for,

[0082] Based on the device type, signal quality, and timestamp of the second device, a first statement is generated, which is used to describe the Bluetooth information of the second device.

[0083] When the device type of the first device is terminal type, an interactive pop-up window is generated on the display module of the first device. The interactive pop-up window includes a first statement and a first control. The first control is used to respond to the user's selection operation on the interactive pop-up window to obtain the connection instruction of the second device.

[0084] When the device type of the first device is a vehicle type, the first statement is converted into speech according to the first statement, and the first speech corresponding to the first statement is generated and played through the speech module of the first device.

[0085] In some embodiments, the third acquisition module is further configured to,

[0086] Obtain the device identifier of the second device and the Bluetooth connection records of the first device in the historical time period. The device identifier is used to uniquely identify the second device.

[0087] In the Bluetooth connection log, determine if there are any historical connection commands corresponding to the device identifier;

[0088] When a historical connection command exists in the Bluetooth connection record, the historical connection command is identified as the connection command for the second device.

[0089] In some embodiments, the receiving module is further configured to,

[0090] When the first quantity is less than a first preset value, connect the second device via Bluetooth.

[0091] In some embodiments, the receiving module is further configured to,

[0092] Determine if there are any pending connection requests;

[0093] When there are pending connection requests, wait for the pending connection requests to be completed before processing the Bluetooth connection request.

[0094] According to some embodiments of this disclosure, a Bluetooth-connected processing electronic device is provided, including:

[0095] Receive a Bluetooth connection request sent by a second device;

[0096] Obtain the first number of connected devices and the device type of the first device;

[0097] When the first number is greater than or equal to the first preset value, the device parameters of the second device are obtained according to the Bluetooth connection request. The device parameters are used to indicate the signal connection status of the second device. The first preset value is the maximum number of Bluetooth connections of the first device.

[0098] Based on the device type and device parameters of the first device, obtain the connection command of the second device. The connection command of the second device is used to determine whether to connect the second device to the first device via Bluetooth.

[0099] The Bluetooth connection request is processed according to the connection instructions from the second device.

[0100] According to some embodiments of this disclosure, a computer-readable storage medium is provided, comprising:

[0101] Receive a Bluetooth connection request sent by a second device;

[0102] Obtain the first number of connected devices and the device type of the first device;

[0103] When the first number is greater than or equal to the first preset value, the device parameters of the second device are obtained according to the Bluetooth connection request. The device parameters are used to indicate the signal connection status of the second device. The first preset value is the maximum number of Bluetooth connections of the first device.

[0104] Based on the device type and device parameters of the first device, obtain the connection command of the second device. The connection command of the second device is used to determine whether to connect the second device to the first device via Bluetooth.

[0105] The Bluetooth connection request is processed according to the connection instructions from the second device.

[0106] According to some embodiments of this disclosure, a computer program product is provided, comprising:

[0107] Receive a Bluetooth connection request sent by a second device;

[0108] Obtain the first number of connected devices and the device type of the first device;

[0109] When the first number is greater than or equal to the first preset value, the device parameters of the second device are obtained according to the Bluetooth connection request. The device parameters are used to indicate the signal connection status of the second device. The first preset value is the maximum number of Bluetooth connections of the first device.

[0110] Based on the device type and device parameters of the first device, obtain the connection command of the second device. The connection command of the second device is used to determine whether to connect the second device to the first device via Bluetooth.

[0111] The Bluetooth connection request is processed according to the connection instructions from the second device.

[0112] According to some embodiments of this disclosure, a chip system is provided, including:

[0113] Receive a Bluetooth connection request sent by a second device;

[0114] Obtain the first number of connected devices and the device type of the first device;

[0115] When the first number is greater than or equal to the first preset value, the device parameters of the second device are obtained according to the Bluetooth connection request. The device parameters are used to indicate the signal connection status of the second device. The first preset value is the maximum number of Bluetooth connections of the first device.

[0116] Based on the device type and device parameters of the first device, obtain the connection command of the second device. The connection command of the second device is used to determine whether to connect the second device to the first device via Bluetooth.

[0117] The Bluetooth connection request is processed according to the connection instructions from the second device.

[0118] The technical solution provided by the embodiments of this disclosure may include the following beneficial effects: receiving a Bluetooth connection request sent by a second device; obtaining a first number of connected devices and the device type of the first device; when the first number is greater than or equal to a first preset value, obtaining device parameters of the second device according to the Bluetooth connection request, the device parameters being used to indicate the signal connection status of the second device, the first preset value being the maximum number of Bluetooth connections of the first device; obtaining a connection instruction of the second device according to the device type and device parameters of the first device, the connection instruction of the second device being used to determine whether to connect the second device to the first device via Bluetooth; and processing the Bluetooth connection request according to the connection instruction of the second device. Thus, through the above method, when the number of connected devices of the first device has reached the maximum number of Bluetooth connections, upon receiving a new Bluetooth connection request from the second device, it is possible to determine whether to connect the second device to the first device based on the signal connection status of the second device and the device type of the first device, and based on the connection instruction fed back by the user, thereby improving the user experience.

[0119] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0120] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0121] Figure 1 This is a schematic diagram of the system architecture provided for an embodiment of this application;

[0122] Figure 2 A flowchart illustrating a Bluetooth connection processing method provided in an embodiment of this application;

[0123] Figure 3This is a schematic diagram illustrating the process of determining the signal quality of a second device based on device parameters, provided in an embodiment of this application.

[0124] Figure 4 This is a schematic diagram illustrating the process of obtaining a connection command for a second device, provided in an embodiment of this application.

[0125] Figure 5 A schematic diagram of an interactive pop-up window provided in an embodiment of this application;

[0126] Figure 6 A schematic diagram illustrating the playback of first voice through the voice module of a first device, as provided in an embodiment of this application;

[0127] Figure 7 This is a schematic diagram of the structure of a Bluetooth connection processing device provided in an embodiment of this application;

[0128] Figure 8 This is a block diagram illustrating a vehicle according to an exemplary embodiment;

[0129] Figure 9 This is a block diagram of another Bluetooth connectivity processing device according to some embodiments disclosed in a book;

[0130] Figure 10 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation

[0131] Some embodiments of this disclosure will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. Various changes, modifications, and equivalents of the methods, apparatus, and / or systems described herein will become apparent upon understanding this disclosure. For example, the order of operations described herein is merely illustrative and is not limited to those orders set forth herein, but can be changed as will become apparent upon understanding this disclosure, except for operations that must be performed in a particular order. Furthermore, for clarity and brevity, descriptions of features known in the art may be omitted.

[0132] The embodiments described in the following examples of this disclosure are not representative of all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0133] First, let's explain the terms used in this disclosure:

[0134] Bluetooth Protocol: Bluetooth is a standardized technical specification for short-range wireless communication, used to achieve low-power, low-cost wireless data transmission and device control between devices, such as mobile phones, headsets, sensors, and smart home devices. The core of the Bluetooth protocol is to solve the interoperability problem between different devices through unified communication rules.

[0135] Logical Link Control and Adaptation Protocol (L2CAP): The Logical Link Control and Adaptation Protocol is a core middleware protocol in the Bluetooth protocol stack. It is located above the link layer and below the host controller layer or upper-layer protocols. It plays a key role in data adaptation and link multiplexing and serves as a bridge between different upper-layer applications and the lower-layer links.

[0136] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.

[0137] To facilitate understanding, the following will be combined with... Figure 1 The system architecture applicable to the embodiments of this application will be described.

[0138] Figure 1 This is a schematic diagram of the system architecture provided for an embodiment of this application. Please refer to [link / reference]. Figure 1 The system includes a first device and a second device. The first device can be a device that receives a Bluetooth connection, such as a vehicle or a terminal device. The second device can be a device that initiates a Bluetooth connection, such as a mobile phone, Bluetooth headset, or Bluetooth mouse. The second device can send a Bluetooth connection request to the first device. After receiving the Bluetooth connection request from the second device, the first device can choose to accept the connection to establish a Bluetooth connection between the first and second devices, or it can choose to refuse the connection, in which case the second device will not connect to the first device via Bluetooth.

[0139] In related technologies, when a user is using an electronic device (such as a car navigation system), if another device (such as a mobile phone headset) suddenly initiates a connection request, the system may automatically reject or disconnect the old connection due to default rules, causing the current critical task to be interrupted and resulting in a poor user experience.

[0140] To address the aforementioned issues, this embodiment of the application receives a Bluetooth connection request from a second device; obtains a first number of connected devices and the device type of the first device; when the first number is greater than or equal to a first preset value, obtains device parameters of the second device based on the Bluetooth connection request. These device parameters indicate the signal connection status of the second device, and the first preset value is the maximum number of Bluetooth connections the first device can have; obtains a connection command from the second device based on the device type and device parameters of the first device. This connection command determines whether to establish a Bluetooth connection between the second device and the first device; and processes the Bluetooth connection request based on the connection command from the second device. Thus, by using the above method, when the number of connected devices on the first device has reached the maximum number of Bluetooth connections, upon receiving a new Bluetooth connection request from the second device, it can determine whether to connect the second device to the first device based on the signal connection status of the second device, the device type of the first device, and the connection command provided by the user, thereby improving the user experience.

[0141] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0142] Figure 2 This is a flowchart illustrating a Bluetooth connection processing method provided in an embodiment of this application. Please refer to... Figure 2 As shown, the method may include the following steps:

[0143] S201, Receive a Bluetooth connection request sent by the second device.

[0144] The executing entity in this application embodiment can be a first device, which can be a device receiving a Bluetooth connection, such as a vehicle, a terminal device, etc. The executing entity in this application embodiment can also be a Bluetooth connection processing device located in the first device. This Bluetooth connection processing device can be implemented in software or through a combination of software and hardware.

[0145] The second device can be the device that initiated the Bluetooth connection, such as a mobile phone, Bluetooth headset, etc.

[0146] A Bluetooth connection request can be a signal sent by a second device to a first device to establish Bluetooth communication. Optionally, the Bluetooth connection request may include the identifier of the second device, Bluetooth application specifications, etc. Specifically, the identifier of the second device may refer to the device name, media access control address, etc., and the Bluetooth application specifications may refer to the Advanced Audio Distribution Protocol (AIP), hands-free protocol, etc.

[0147] Understandably, the first device can be equipped with a Bluetooth module. The first device can use the Bluetooth module to monitor the surrounding wireless signals in real time. When the second device actively initiates a Bluetooth connection to the first device (i.e., the second device sends a Bluetooth connection request to the first device), the first device can receive the Bluetooth connection request sent by the second device.

[0148] In one possible implementation, receiving a Bluetooth connection request sent by the second device further includes: obtaining a first number of connected devices of the first device; and connecting to the Bluetooth of the second device when the first number is less than a first preset value.

[0149] The first preset value can be the maximum number of Bluetooth connections for the first device, that is, the first device can connect to a maximum of the first preset number of devices via Bluetooth. For example, the first preset value can be 3.

[0150] Understandably, when the number of devices already connected to the first device is less than a first preset value, it means that there are enough available devices for connection to the first device, meaning the second device can be connected directly. When the number of devices already connected to the first device is greater than or equal to the first preset value, it means that there are insufficient available devices for connection to the first device, and it is necessary to judge the second device to be connected to determine whether to connect the second device.

[0151] In one possible implementation, after receiving the Bluetooth connection request sent by the second device, the method further includes: determining whether there is a pending connection request; if there is a pending connection request, waiting for the pending connection request to be completed before processing the Bluetooth connection request.

[0152] Understandably, after receiving a Bluetooth connection request from the second device, if there are no pending requests in the first device's current queue, the first device can directly process the Bluetooth connection request sent by the second device; if there are pending connection requests in the first device's current queue, the Bluetooth connection request sent by the second device needs to be suspended until there are no pending connection requests in the first device's current queue before the Bluetooth connection request sent by the second device is processed.

[0153] Optionally, when the Bluetooth connection request sent by the second device is suspended, the second device can synchronously transmit its device parameters to the first device. These parameters may include the second device's identifier, Bluetooth signal strength, and remaining wait timestamp. The remaining wait timestamp can be a user-preset value. When the remaining wait timestamp of the second device reaches zero, the first device will reject the Bluetooth connection request sent by the second device and remove it from the suspended queue.

[0154] S202, Obtain the first number of connected devices and the device type of the first device.

[0155] The first quantity can refer to the number of Bluetooth devices that the first device has currently connected to. For example, if the first device has already connected to 3 Bluetooth devices, then the first quantity is 3.

[0156] The device type of the first device may include terminal type and vehicle type. For example, if the device type of the first device is terminal type, the first device can be a mobile phone, computer, tablet or other device. If the device type of the first device is vehicle type, the first device can be a vehicle. The vehicle can be a hybrid vehicle, or a non-hybrid vehicle, electric vehicle, fuel cell vehicle or other type of vehicle. The vehicle can be a driver-assisted vehicle, a semi-driver-assisted vehicle or a driver-unassisted vehicle.

[0157] S203. When the first quantity is greater than or equal to the first preset value, obtain the device parameters of the second device according to the Bluetooth connection request.

[0158] The first preset value can be the maximum number of Bluetooth connections for the first device. For example, the first preset value can be 2.

[0159] Device parameters can be used to indicate the signal connection status of the second device. For example, the device parameters of the second device may include the Bluetooth signal strength, the signal-to-noise ratio, and the Bluetooth connection latency of the second device. The device parameters of the second device may also include the device type, the timestamp of the Bluetooth connection request, etc.

[0160] The Bluetooth signal strength of the second device can refer to the strength of the Bluetooth signal received by the first device from the second device. The closer the Bluetooth signal strength of the second device is to 0, the stronger the Bluetooth signal strength of the second device is. For example, the Bluetooth signal strength of the second device can be -30dBm.

[0161] The signal-to-noise ratio (SNR) of a second device can refer to the ratio of the signal of the second device to the interference noise. The higher the SNR of the second device, the clearer the signal of the second device. For example, the SNR of the second device can be 20dB.

[0162] The Bluetooth connection latency of the second device can refer to the time it takes for Bluetooth data to be transmitted from the second device to the first device. The lower the Bluetooth connection latency of the second device, the faster the Bluetooth connection response of the second device. For example, the Bluetooth connection latency of the second device can be 100ms.

[0163] The device type of the second device can include audio device types, such as Bluetooth headsets and Bluetooth speakers, as well as input device types, such as Bluetooth keyboards and Bluetooth mice, and IoT sensor types, such as heart rate wristbands, temperature sensors, and smart door locks.

[0164] The timestamp of a Bluetooth connection request can refer to the current moment when the second device sends the Bluetooth connection request. For example, the timestamp of a Bluetooth connection request could be 10:52 AM on March 5th.

[0165] Understandably, after receiving a Bluetooth connection request, the first device can parse the request data packet through its Bluetooth module, while simultaneously monitoring the wireless communication status of the second device in real time, and extracting device parameters such as Bluetooth signal strength, signal-to-noise ratio, and connection latency, thereby providing data support for subsequent processing.

[0166] S204. Obtain the connection command for the second device based on the device type and device parameters of the first device.

[0167] The connection command from the second device can be used to determine whether to establish a Bluetooth connection between the second device and the first device. That is, the connection command from the second device can include agreeing to connect and rejecting the connection.

[0168] In one possible implementation method, the connection command of the second device can be obtained as follows: determine the signal quality of the second device based on the device parameters; when the signal quality is greater than or equal to a second preset value, obtain the connection command of the second device based on the device type and signal quality of the first device; when the signal quality is less than the second preset value, determine that the connection command of the second device is to refuse connection.

[0169] Understandably, after receiving a Bluetooth connection request from the second device, if the signal quality of the second device is poor (i.e., the signal quality is less than the second preset value), there is no need to further confirm with the user whether to connect via Bluetooth. The Bluetooth connection request from the second device can be directly rejected. Only when the signal quality of the second device is good (signal quality is greater than or equal to the second preset value) will the connection command from the second device be obtained, thereby improving the user experience.

[0170] In one possible implementation, obtaining the connection command for the second device based on the device type and device parameters of the first device further includes: obtaining the device identifier of the second device and the Bluetooth connection records of the first device in a historical period, wherein the device identifier is used to uniquely identify the second device; determining whether there is a corresponding historical connection command for the device identifier in the Bluetooth connection records; and determining the historical connection command as the connection command for the second device when there is a historical connection command in the Bluetooth connection records.

[0171] Understandably, automated decision-making can be made based on historical connection records. That is, if the second device has requested a Bluetooth connection from the first device within a historical period, then when the second device requests a Bluetooth connection from the first device again, the second device can be processed directly according to the historical connection instructions.

[0172] For example, suppose the second device has requested a Bluetooth connection from the first device during a historical period, and the historical connection command was to connect via Bluetooth. Then the first device can directly connect to the second device without waiting for the user's operation, thereby solving the problem of repeated operations required for high-frequency connections.

[0173] S205. Process the Bluetooth connection request according to the connection instruction from the second device.

[0174] When the second device's connection command is "agree to connect," the first device will agree to the second device's Bluetooth connection request.

[0175] When the second device's connection command is "reject connection," the first device will reject the second device's Bluetooth connection request.

[0176] In this embodiment, when the second device needs to establish a Bluetooth connection with the first device, the first device can receive a Bluetooth connection request sent by the second device. The first device can be the receiving device for the Bluetooth connection, and the second device can be the initiating device for the Bluetooth connection. The Bluetooth connection request can be a signal sent by the second device to the first device requesting the establishment of Bluetooth communication. The system obtains a first number of connected devices and the device type of the first device. The first number can refer to the number of Bluetooth devices currently connected to the first device, and the device type can include terminal type and vehicle type. When the first number is greater than or equal to a first preset value, the system obtains device parameters of the second device according to the Bluetooth connection request. The first preset value can be the maximum number of Bluetooth connections of the first device, and the device parameters can be used to indicate the signal connection status of the second device. Based on the device type and device parameters of the first device, the system obtains a connection instruction from the second device. The connection instruction of the second device can be used to determine whether to establish a Bluetooth connection between the second device and the first device. Based on the connection instruction of the second device, the system processes the Bluetooth connection request. When the connection instruction of the second device is "agree to connect," the first device will agree to the Bluetooth connection request of the second device; when the connection instruction of the second device is "reject to connect," the first device will reject the Bluetooth connection request of the second device. In this way, by using the above method, when the number of connected devices of the first device has reached the maximum number of Bluetooth connections, when a new Bluetooth connection request from the second device is received, it can determine whether to connect the second device to the first device based on the signal connection status of the second device and the device type of the first device, and based on the connection command fed back by the user, thereby improving the user experience.

[0177] Based on any of the above embodiments, the following, in conjunction with Figure 3 The process of determining the signal quality of the second device based on the device parameters is explained in detail.

[0178] Figure 3 This is a schematic diagram illustrating the process of determining the signal quality of a second device based on device parameters, as provided in an embodiment of this application. Please refer to... Figure 3 The method may include:

[0179] S301. Based on the device parameters, determine the Bluetooth signal strength of the second device, the signal-to-noise ratio of the second device, and the Bluetooth connection delay of the second device.

[0180] The Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection delay of the second device can be found from the acquired device parameters, thereby determining the Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection delay of the second device.

[0181] For example, assuming the first device is a vehicle and the second device is a mobile phone, after the first device obtains the device parameters of the second device, it can determine from the device parameters that the Bluetooth signal strength of the second device is -55dBm, the signal-to-noise ratio of the second device is 18dB, and the Bluetooth connection latency of the second device is 40ms.

[0182] S302. Determine the signal quality of the second device based on the Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection delay of the second device using a preset evaluation model.

[0183] The preset evaluation model can be a model pre-trained by the user. The preset evaluation model can be used to determine the signal quality of the second device based on the Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection delay of the second device.

[0184] In one possible implementation, the signal quality of the second device can be determined as follows: obtain a first weight corresponding to the Bluetooth signal strength, a second weight corresponding to the signal-to-noise ratio, and a third weight corresponding to the Bluetooth connection delay; and determine the signal quality of the second device by using a preset evaluation model based on the Bluetooth signal strength, the signal-to-noise ratio, the Bluetooth connection delay, the first weight, the second weight, and the third weight.

[0185] Understandably, the larger the weight value, the greater the influence of the parameter on the signal quality; conversely, the larger the weight value, the smaller the influence of the parameter on the signal quality.

[0186] For example, the first weight can be 0.4, the second weight can be 0.5, and the third weight can be 0.2.

[0187] In one possible implementation, the signal quality satisfies the following formula:

[0188] Q = w1 * RSSI + w2 * SNR - w3 * Latency

[0189] Where Q represents signal quality, w1 represents the first weight, w2 represents the second weight, w3 represents the third weight, RSSI represents the Bluetooth signal strength of the second device, SNR represents the signal-to-noise ratio of the second device, and Latency represents the Bluetooth connection delay of the second device.

[0190] Understandably, in the above formula, the Bluetooth signal strength and signal-to-noise ratio of the second device have a positive impact on signal quality, while the Bluetooth connection delay of the second device has a negative impact on signal quality.

[0191] In one possible implementation, the weights can be adjusted to suit different scenarios.

[0192] For example, in a vehicle scenario, the first weight corresponding to the Bluetooth signal strength can be increased to prioritize the signal connection of the navigation device; in a medical scenario, the second weight corresponding to the signal-to-noise ratio can be increased to ensure the communication stability of the monitoring device.

[0193] In one possible implementation, machine learning can be used to learn and train the algorithm model by studying historical data. This allows for timely prediction of future Bluetooth connection states based on the Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection latency of the second device, dynamically adjusting the first, second, and third weights accordingly. In this way, by predicting signal quality trends and dynamically adjusting weight parameters through a machine learning model, the problem of lag in dynamic signal quality decision-making in existing technologies is solved.

[0194] exist Figure 3 In the illustrated embodiment, when it is necessary to determine the signal quality of the second device based on device parameters, the first device can determine the Bluetooth signal strength, signal-to-noise ratio (SNR), and Bluetooth connection delay of the second device based on these parameters. Then, based on the Bluetooth signal strength, SNR, and connection delay, the signal quality of the second device is determined using a preset evaluation model, which can be a model pre-trained by the user. Thus, by combining the Bluetooth signal strength, SNR, and connection delay of the second device, the accuracy of signal quality assessment is achieved. Furthermore, by setting the preset model and weights, it can adapt to the personalized needs of different users and scenarios, further improving the effectiveness and scenario adaptability of signal quality determination, thereby enhancing the user experience.

[0195] Based on any of the above embodiments, the following, in conjunction with Figure 4 The process of obtaining the connection command for the second device is described in detail.

[0196] Figure 4 This is a schematic diagram illustrating the process of obtaining a connection command for a second device, as provided in an embodiment of this application. Please refer to [link / reference]. Figure 4 The method may include:

[0197] S401. Obtain the device type and Bluetooth connection request timestamp of the second device.

[0198] The execution steps of step S401 can be found in step S203 above, and will not be repeated here.

[0199] S402. Obtain the connection command for the second device based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp.

[0200] The connection instructions of the second device can be used to indicate the final decision obtained from the user's operation. For example, the connection instructions of the second device can include agreeing to connect and rejecting the connection.

[0201] In one possible implementation, the connection command of the second device can be obtained as follows: an interaction strategy is determined based on the device type of the first device, the device type of the second device, the Bluetooth signal strength, and the timestamp, wherein the interaction strategy can be used to indicate the interaction method with the user; and the connection command of the second device is obtained based on the interaction strategy.

[0202] The device type of the first device may include terminal type and vehicle type. For example, when the first device is a mobile phone, tablet, computer or other device, the device type of the first device is terminal type, and when the first device is a vehicle, the device type of the first device is vehicle type.

[0203] In one possible implementation, the interaction strategy can be determined as follows: A first statement is generated based on the device type, Bluetooth signal strength, and timestamp of the second device. This first statement indicates the Bluetooth information of the second device. When the device type of the first device is a terminal type, an interactive pop-up window is generated on the display module of the first device. This pop-up window includes the first statement and a first control. The first control is used to respond to the user's selection operation on the interactive pop-up window to determine the connection command of the second device. When the device type of the first device is an in-vehicle type, the first statement is converted into speech to generate a first voice corresponding to the first statement, which is then played through the voice module of the first device.

[0204] Understandably, the first statement can refer to integrating the device type, signal quality, and timestamp of the second device into a statement that is easy for the user to understand. For example, assuming that the device type of the second device is a Bluetooth headset, the signal quality of the second device is excellent, and the timestamp is 10:00, then the integrated first statement can be "The Bluetooth headset with excellent signal strength requests connection at 10:00".

[0205] In one possible implementation, the first control may include a connect control and a reject control. Understandably, when the user clicks the connect control, the first device can respond to the user's selection of the connect control and thus determine that the second device's connection instruction is to agree to the connection. When the user clicks the reject control, the first device can respond to the user's selection of the reject control and thus determine that the second device's connection instruction is to reject the connection.

[0206] Below, in conjunction with Figure 5 The interactive pop-up window will be explained through specific examples.

[0207] Figure 5 For a schematic diagram of the interactive pop-up window provided in the embodiments of this application, please refer to [link / reference]. Figure 5 It includes an interactive pop-up window, a first statement display control, a connection control, and a rejection control. The first statement display control can display a first statement. Users can click the connection control or the rejection control based on the first statement to determine the connection instruction for the second device. Specifically, when the user clicks the connection control, a "agree to connect" connection instruction is generated. When the user clicks the rejection control, a "reject connection" connection instruction is generated.

[0208] Below, in conjunction with Figure 6 The first example illustrates how the first voice is played through the voice module of the first device.

[0209] Figure 6 For a schematic diagram illustrating the playback of first speech through the voice module of the first device provided in this application embodiment, please refer to [link / reference]. Figure 6 The system includes a first device, which may have a voice module. The first device can play a first voice converted from a first statement through the voice module. At the same time, the first device can also receive a second voice from the user. The second voice can be used to instruct the second device to connect. After receiving the second voice from the user, the first device can perform a voice transcription operation on the second voice to obtain a second statement corresponding to the second voice. Then, it can perform semantic recognition processing on the second statement to obtain the connection instruction of the second device corresponding to the second statement.

[0210] exist Figure 4In the illustrated embodiment, when a connection command for a second device is needed, the device type of the second device and the timestamp of the Bluetooth connection request can be obtained. Based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp, the connection command for the second device is obtained. Specifically, an interaction strategy can be determined based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp. The connection command for the second device is then obtained according to the interaction strategy. Thus, through the above method and the interaction strategy, the user can clearly understand the information of the second device to be connected, making the decision-making process more visual and solving the problem of important connections being unexpectedly rejected due to user unawareness. Simultaneously, the differentiated interaction strategy adaptable to different devices enables multi-scenario adaptation, improving the scenario-based adaptability of connection decisions and solving the problem of the limited interaction methods in existing technologies across different device types.

[0211] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0212] Figure 7 This is a schematic diagram of a Bluetooth connection processing device provided in an embodiment of this application. Please refer to... Figure 7 The Bluetooth connection processing device 10 includes: a receiving module 11, a first acquisition module 12, a second acquisition module 13, a third acquisition module 14, and a processing module 15, wherein,

[0213] The receiving module 11 is used to receive a Bluetooth connection request sent by the second device;

[0214] The first acquisition module 12 is used to acquire the first number of connected devices of the first device and the device type of the first device;

[0215] The second acquisition module 13 is used to acquire device parameters of the second device according to the Bluetooth connection request when the first quantity is greater than or equal to the first preset value. The device parameters are used to indicate the signal connection status of the second device. The first preset value is the maximum number of Bluetooth connections of the first device.

[0216] The third acquisition module 14 is used to acquire the connection instruction of the second device according to the device type and device parameters of the first device. The connection instruction of the second device is used to determine whether to connect the second device to the first device via Bluetooth.

[0217] The processing module 15 is used to process the Bluetooth connection request according to the connection instruction of the second device.

[0218] In some embodiments, the third acquisition module 13 is specifically used for,

[0219] Determine the signal quality of the second device based on the device parameters;

[0220] When the signal quality is greater than or equal to the second preset value, the connection command of the second device is obtained according to the device type and signal quality of the first device;

[0221] When the signal quality is less than the second preset value, the connection command of the second device is determined to be a connection rejection.

[0222] In some embodiments, the third acquisition module 13 is specifically used for,

[0223] Based on the device parameters, determine the Bluetooth signal strength of the second device, the signal-to-noise ratio of the second device, and the Bluetooth connection delay of the second device;

[0224] The signal quality of the second device is determined by a preset evaluation model based on the Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection delay of the second device.

[0225] In some embodiments, the third acquisition module 13 is specifically used for,

[0226] Obtain the first weight corresponding to Bluetooth signal strength, the second weight corresponding to signal-to-noise ratio, and the third weight corresponding to Bluetooth connection delay;

[0227] The signal quality of the second device is determined by a preset evaluation model based on the Bluetooth signal strength, signal-to-noise ratio, Bluetooth connection delay, first weight, second weight, and third weight of the second device.

[0228] In some embodiments, the third acquisition module 13 is specifically used for,

[0229] Signal quality satisfies the following formula:

[0230] Q = w1 * RSSI + w2 * SNR - w3 * Latency

[0231] Where Q represents signal quality, w1 represents the first weight, w2 represents the second weight, w3 represents the third weight, RSSI represents the Bluetooth signal strength of the second device, SNR represents the signal-to-noise ratio of the second device, and Latency represents the Bluetooth connection delay of the second device.

[0232] In some embodiments, the third acquisition module 13 is specifically used for,

[0233] Get the timestamp of the Bluetooth connection request and the device type of the second device;

[0234] Based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp, obtain the connection command for the second device.

[0235] In some embodiments, the third acquisition module 13 is specifically used for,

[0236] The interaction strategy is determined based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp. The interaction strategy is used to indicate the interaction method between the first device and the user.

[0237] According to the interaction strategy, obtain the connection command of the second device.

[0238] In some embodiments, the third acquisition module 13 is specifically used for,

[0239] Based on the device type, signal quality, and timestamp of the second device, a first statement is generated, which is used to describe the Bluetooth information of the second device.

[0240] When the device type of the first device is terminal type, an interactive pop-up window is generated on the display module of the first device. The interactive pop-up window includes a first statement and a first control. The first control is used to respond to the user's selection operation on the interactive pop-up window to obtain the connection instruction of the second device.

[0241] When the device type of the first device is a vehicle type, the first statement is converted into speech according to the first statement, and the first speech corresponding to the first statement is generated and played through the speech module of the first device.

[0242] In some embodiments, the third acquisition module 13 is further configured to,

[0243] Obtain the device identifier of the second device and the Bluetooth connection records of the first device in the historical time period. The device identifier is used to uniquely identify the second device.

[0244] In the Bluetooth connection log, determine if there are any historical connection commands corresponding to the device identifier;

[0245] When a historical connection command exists in the Bluetooth connection record, the historical connection command is identified as the connection command for the second device.

[0246] In some embodiments, the receiving module 11 is further configured to,

[0247] When the first quantity is less than a first preset value, connect the second device via Bluetooth.

[0248] In some embodiments, the receiving module 11 is further configured to,

[0249] Determine if there are any pending connection requests;

[0250] When there are pending connection requests, wait for the pending connection requests to be completed before processing the Bluetooth connection request.

[0251] Figure 8This is a block diagram illustrating a vehicle 600 according to an exemplary embodiment. For example, vehicle 600 may be a hybrid vehicle, a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle, or other types of vehicle. Vehicle 600 may be a driver-assisted vehicle, a semi-driver-assisted vehicle, or a driver-free vehicle.

[0252] Reference Figure 8 The vehicle 600 may include various subsystems, such as an infotainment system 610, a perception system 620, a decision control system 630, a drive system 640, and a computing platform 650. The vehicle 600 may also include more or fewer subsystems, and each subsystem may include multiple components. Furthermore, each subsystem and each component of the vehicle 600 can be interconnected via wired or wireless means.

[0253] In some embodiments, the infotainment system 610 may include a communication system, an entertainment system, and a navigation system, etc.

[0254] The perception system 620 may include several sensors for sensing information about the environment surrounding the vehicle 600. For example, the perception system 620 may include a global positioning system (which may be GPS, BeiDou, or other positioning systems), an inertial measurement unit (IMU), lidar, millimeter-wave radar, ultrasonic radar, and a camera device.

[0255] The decision control system 630 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.

[0256] The drive system 640 may include components that provide powered motion to the vehicle 600. In one embodiment, the drive system 640 may include an engine, an energy source, a transmission system, and wheels. The engine may be one or a combination of internal combustion engines, electric motors, and compressed air engines. The engine is capable of converting energy provided by the energy source into mechanical energy.

[0257] Some or all of the functions of vehicle 600 are controlled by computing platform 650. Computing platform 650 may include at least one processor 651 and memory 652, and processor 651 may execute instructions 653 stored in memory 652.

[0258] Processor 651 can be any conventional processor, such as a commercially available CPU. Processors may also include graphics processing units (GPUs), field-programmable gate arrays (FPGAs), systems-on-chips (SoCs), application-specific integrated circuits (ASICs), or combinations thereof.

[0259] The memory 652 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0260] In addition to instruction 653, memory 652 can also store data, such as road maps, route information, vehicle position, direction, speed, and other data. The data stored in memory 652 can be used by computing platform 650.

[0261] In this embodiment of the disclosure, the processor 651 may execute instructions 653 to complete all or part of the steps of the Bluetooth connection processing method described above.

[0262] In some embodiments of this disclosure, a computer-readable storage medium including instructions is also provided, such as a memory including instructions that can be executed by a processor of a device to perform the methods described above. For example, the computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0263] A computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to perform a Bluetooth connection processing method, the method comprising: receiving a Bluetooth connection request sent by a second device;

[0264] Obtain the first number of connected devices and the device type of the first device;

[0265] When the first number is greater than or equal to the first preset value, the device parameters of the second device are obtained according to the Bluetooth connection request. The device parameters are used to indicate the signal connection status of the second device. The first preset value is the maximum number of Bluetooth connections of the first device.

[0266] Based on the device type and device parameters of the first device, obtain the connection command of the second device. The connection command of the second device is used to determine whether to connect the second device to the first device via Bluetooth.

[0267] The Bluetooth connection request is processed according to the connection instructions from the second device.

[0268] Figure 9 This is a block diagram illustrating another Bluetooth connectivity processing device 900 according to some embodiments disclosed in a publication. For example, device 900 may be provided as a server. See also... Figure 9 The device 900 includes a processing component 922, which further includes one or more processors, and memory resources represented by memory 932 for storing instructions, such as applications, that can be executed by the processing component 922. The applications stored in memory 932 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 922 is configured to execute instructions to perform the Bluetooth connection processing method described above.

[0269] Device 900 may also include a power supply component 926 configured to perform power management of device 900, a wired or wireless network interface 950 configured to connect device 900 to a network, and an input / output (I / O) interface 958. Device 900 may operate on an operating system stored in memory 932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or similar.

[0270] This disclosure also provides a computer program product, including a computer program executed by a processor, which performs a Bluetooth connection processing method, the method comprising:

[0271] Receive a Bluetooth connection request sent by a second device;

[0272] Obtain the first number of connected devices and the device type of the first device;

[0273] When the first number is greater than or equal to the first preset value, the device parameters of the second device are obtained according to the Bluetooth connection request. The device parameters are used to indicate the signal connection status of the second device. The first preset value is the maximum number of Bluetooth connections of the first device.

[0274] Based on the device type and device parameters of the first device, obtain the connection command of the second device. The connection command of the second device is used to determine whether to connect the second device to the first device via Bluetooth.

[0275] The Bluetooth connection request is processed according to the connection instructions from the second device.

[0276] Some embodiments of this disclosure also provide a chip system. Figure 10 A schematic diagram of a chip system provided in an embodiment of this application is shown below. Figure 10 As shown, the chip system includes at least one processor 1001 and at least one interface circuit 1002. The processor 1001 and the interface circuit 1002 are interconnected via a line. For example, the interface circuit 1002 can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit 1002 can be used to send signals to other devices (e.g., the processor 1001). Exemplarily, the interface circuit 1002 can read instructions stored in memory and send those instructions to the processor 1001. When the instructions are executed by the processor 1001, a Bluetooth-connected processing device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete components, and some embodiments of this disclosure do not specifically limit this.

[0277] In some embodiments of this disclosure, the interface circuit 1002 can acquire data, program instructions, and / or information from the internal storage area of ​​the chip system; it can also acquire data, program instructions, and / or information from outside the chip system.

[0278] Optionally, the chip system also includes a memory 1003 for storing necessary computer programs and data.

[0279] Those skilled in the art will also understand that the various illustrative logical blocks and steps listed in the embodiments of this application can be implemented by electronic hardware, computer software, or a combination of both. Whether such functionality is implemented through hardware or software depends on the specific application and the overall system design requirements. Those skilled in the art can implement the functionality using various methods for each specific application, but such implementation should not be construed as exceeding the scope of protection of the embodiments of this application.

[0280] Furthermore, the term “exemplary” is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “exemplary” is not necessarily to be construed as advantageous compared to other aspects or designs. Rather, the use of the term “exemplary” is intended to present the concept in a concrete manner. As used herein, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or.” That is, unless otherwise specified or clear from the context, “X applies A or B” is intended to mean any of the natural inclusive arrangements. That is, “X applies A or B” satisfies any of the foregoing instances if X applies A; X applies B; or both X applies A and B. Additionally, unless otherwise specified or clear from the context to refer to the singular form, the articles “a” and “an” as used in this application and the appended claims are generally understood to mean “one or more.”

[0281] Similarly, although this disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding this specification and the accompanying drawings. This disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, the terminology used to describe such components is intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if structurally not equivalent to the disclosed structure. Furthermore, although specific features of this disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations, as may be desired and advantageous to any given or particular application. Moreover, with regard to the terms “comprising,” “owning,” “having,” “having,” or variations thereof as used in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term “including.”

[0282] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0283] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

[0284] It should be understood that, unless otherwise expressly specified and limited, the terms "joining," "attaching," "installing," "connecting," "linking," "fixing," etc., used in the embodiments of this disclosure should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection, an electrical connection, or a connection that allows communication between them; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise expressly limited. Those skilled in the art can understand the specific meaning of the above terms herein based on the specific circumstances.

[0285] Although terms such as “first,” “second,” and “third” may be used herein to describe various components, parts, regions, layers, or sections, these components, parts, regions, layers, or sections are not limited to these terms. Rather, these terms are used only to distinguish one component, part, region, layer, or section from another. Therefore, without departing from the teachings of the examples described herein, the first component, part, region, layer, or section mentioned in the examples may also be referred to as the second component, part, region, layer, or section. Furthermore, the terms “first” and “second” are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as “first” or “second” may explicitly or implicitly include at least one of that feature. In the description herein, “a plurality” means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0286] It should be understood that spatial relative terms, such as “above,” “upper,” “below,” and “lower,” are used herein to describe the relationship between one element and another shown in the figures. In addition to the orientation depicted in the figures, these spatial relative terms are also intended to encompass different orientations of the device in use or operation. For example, if the device in the figures is flipped, an element described as “above” or “upper” relative to another element would be “below” or “lower” relative to that other element. Thus, depending on the spatial orientation of the device, the term “above” encompasses both above and below orientations. Devices may have other orientations (e.g., rotated 90 degrees or in other orientations), and the spatial relative terms used herein should be interpreted accordingly.

[0287] Furthermore, the term “exemplary” is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as “exemplary” is not necessarily to be construed as advantageous compared to other aspects or designs. Rather, the use of the term “exemplary” is intended to present the concept in a concrete manner. As used herein, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or.” That is, unless otherwise specified or clear from the context, “X applies A or B” is intended to mean any of the natural inclusive arrangements. That is, “X applies A or B” satisfies any of the foregoing instances if X applies A; X applies B; or both X applies A and B. Additionally, unless otherwise specified or clear from the context to refer to the singular form, the articles “a” and “an” as used in this application and the appended claims are generally understood to mean “one or more.”

[0288] Similarly, although this disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding this specification and the accompanying drawings. This disclosure includes all such modifications and variations and is limited only by the scope of the claims. In particular, with respect to the various functions performed by the components described above (e.g., elements, resources, etc.), unless otherwise indicated, the terminology used to describe such components is intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if structurally not equivalent to the disclosed structure. Furthermore, although specific features of this disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations, as may be desired and advantageous to any given or particular application. Moreover, with regard to the terms “comprising,” “owning,” “having,” “having,” or variations thereof as used in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term “including.”

[0289] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0290] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for processing Bluetooth connections, characterized in that, Applied to a first device, the method includes: Receive a Bluetooth connection request sent by a second device; Obtain the first number of connected devices and the device type of the first device; When the first number is greater than or equal to the first preset value, the device parameters of the second device are obtained according to the Bluetooth connection request. The device parameters are used to indicate the signal connection status of the second device. The first preset value is the maximum number of Bluetooth connections of the first device. Based on the device type and device parameters of the first device, the connection command of the second device is obtained. The connection command of the second device is used to determine whether to connect the second device to the first device via Bluetooth. The Bluetooth connection request is processed according to the connection command from the second device.

2. The method according to claim 1, characterized in that, Based on the device type and parameters of the first device, obtain the connection instructions for the second device, including: Based on the device parameters, determine the signal quality of the second device; When the signal quality is greater than or equal to a second preset value, the connection command of the second device is obtained according to the device type of the first device and the signal quality; When the signal quality is less than the second preset value, the connection command of the second device is determined to be a connection rejection.

3. The method according to claim 2, characterized in that, Determining the signal quality of the second device based on the device parameters includes: Based on the device parameters, determine the Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection delay of the second device; The signal quality of the second device is determined by a preset evaluation model based on the Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection delay of the second device.

4. The method according to claim 3, characterized in that, Based on the Bluetooth signal strength, signal-to-noise ratio, and Bluetooth connection latency of the second device, the signal quality of the second device is determined using a preset evaluation model, including: Obtain the first weight corresponding to the Bluetooth signal strength, the second weight corresponding to the signal-to-noise ratio, and the third weight corresponding to the Bluetooth connection delay; The signal quality of the second device is determined by a preset evaluation model based on the Bluetooth signal strength, signal-to-noise ratio, Bluetooth connection delay, first weight, second weight, and third weight of the second device.

5. The method according to claim 4, characterized in that, Based on the Bluetooth signal strength of the second device, the signal-to-noise ratio of the second device, the Bluetooth connection latency of the second device, the first weight, the second weight, and the third weight, the signal quality of the second device is determined through a preset evaluation model, including: The signal quality satisfies the following formula: Q = w1 * RSSI + w2 * SNR - w3 * Latency Wherein, Q is the signal quality, w1 is the first weight, w2 is the second weight, w3 is the third weight, RSSI is the Bluetooth signal strength of the second device, SNR is the signal-to-noise ratio of the second device, and Latency is the Bluetooth connection delay of the second device.

6. The method according to any one of claims 2-5, characterized in that, Based on the device type of the first device and the signal quality, obtain the connection command for the second device, including: Obtain the timestamp of the Bluetooth connection request and the device type of the second device; The connection command for the second device is obtained based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp.

7. The method according to claim 6, characterized in that, Based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp, the connection command for the second device is obtained, including: An interaction strategy is determined based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp. The interaction strategy is used to indicate the interaction method between the first device and the user. According to the interaction strategy, obtain the connection command of the second device.

8. The method according to claim 7, characterized in that, Based on the device type of the first device, the device type of the second device, the signal quality, and the timestamp, an interaction strategy is determined, including: Based on the device type of the second device, the signal quality, and the timestamp, a first statement is generated, which is used to describe the Bluetooth information of the second device. When the device type of the first device is terminal type, an interactive pop-up window is generated on the display module of the first device. The interactive pop-up window includes the first statement and the first control. The first control is used to respond to the user's selection operation on the interactive pop-up window to obtain the connection instruction of the second device. When the device type of the first device is a vehicle type, the first statement is converted into speech according to the first statement to generate the first speech corresponding to the first statement, and the first speech is played through the speech module of the first device.

9. The method according to any one of claims 1-5, characterized in that, Based on the device type of the first device and the device parameters, the method further includes obtaining the connection command for the second device, and further includes: Obtain the device identifier of the second device and the Bluetooth connection records of the first device in a historical time period, wherein the device identifier is used to uniquely identify the second device; In the Bluetooth connection record, determine whether there is a corresponding historical connection command for the device identifier; When the historical connection instruction exists in the Bluetooth connection record, the historical connection instruction is determined as the connection instruction of the second device.

10. The method according to any one of claims 1-5, characterized in that, Receiving a Bluetooth connection request from a second device also includes: When the first quantity is less than the first preset value, connect the second device via Bluetooth.

11. The method according to any one of claims 1-5, characterized in that, After receiving the Bluetooth connection request from the second device, it also includes: Determine if there are any pending connection requests; When a pending connection request exists, the Bluetooth connection request is processed after the pending connection request has been completed.

12. A Bluetooth connection processing device, characterized in that, Applied to a first device, the apparatus includes: a receiving module, a first acquiring module, a second acquiring module, a third acquiring module, and a processing module, wherein, The receiving module is used to receive a Bluetooth connection request sent by the second device; The first acquisition module is used to acquire the first number of connected devices of the first device and the device type of the first device; The second acquisition module is used to acquire device parameters of the second device according to the Bluetooth connection request when the first quantity is greater than or equal to the first preset value. The device parameters are used to indicate the signal connection status of the second device, and the first preset value is the maximum number of Bluetooth connections of the first device. The third acquisition module is used to acquire the connection instruction of the second device according to the device type of the first device and the device parameters. The connection instruction of the second device is used to determine whether to connect the second device to the first device via Bluetooth. The processing module is used to process the Bluetooth connection request according to the connection instruction of the second device.

13. A vehicle, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that, The storage medium stores a computer program or instructions that, when executed by a processor of an electronic device, enable the electronic device to perform a Bluetooth connection processing method, the method comprising: Receive a Bluetooth connection request sent by a second device; Obtain the first number of connected devices and the device type of the first device; When the first number is greater than or equal to the first preset value, the device parameters of the second device are obtained according to the Bluetooth connection request. The device parameters are used to indicate the signal connection status of the second device. The first preset value is the maximum number of Bluetooth connections of the first device. Based on the device type and device parameters of the first device, the connection command of the second device is obtained. The connection command of the second device is used to determine whether to connect the second device to the first device via Bluetooth. The Bluetooth connection request is processed according to the connection command from the second device.

15. A computer program product, characterized in that, include: A computer program, which is executed by a processor to implement the Bluetooth connection processing method as described in any one of claims 1 to 11.