Device connection management method, related device, system, and storage medium
By obtaining the Bluetooth address of the terminal device and distinguishing and recording the terminal device in the device management list, it solves the problem of cumbersome connection management between the vehicle central control platform and the mobile phone, realizes the active management and connection switching of the vehicle device to the terminal device, and simplifies the operation process. .
Patent Information
- Application Number
- PCT/CN2024/081229
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-17
- Filing Date
- 2024-03-12
- Publication Date
- 2024-09-26
AI Technical Summary
The connection management between the existing vehicle central control platform and the mobile phone is cumbersome and cannot be managed uniformly by the vehicle terminal. It requires terminal equipment operation to switch the connection.
By obtaining the Bluetooth address of the terminal device, distinguishing and recording the terminal device in the device management list, the vehicle-mounted device can actively identify and manage the connection and disconnection of the terminal device.
It achieves accurate and reliable differentiation and unified management of terminal equipment by vehicle-mounted equipment, simplifies the connection switching process, and avoids passive connection states.
Smart Images

Figure CN2024081229_26092024_PF_FP
Abstract
Description
Device connection management method, related equipment, system and storage medium
Technical field
[0001] The present application relates to the field of communication connection technology, and in particular to a device connection management method, related equipment, system and storage medium. [Background Technology]
[0002] At present, products that provide interconnection and synchronization between the car's central control platform and mobile phones are becoming more and more popular. CarPlay, a software system released by Apple Inc. in the United States, can synchronize the car's central control system with the iPhone, and support the car's infotainment system to establish a CarPlay session connection with the iPhone in a wired or wireless manner.
[0003] However, in some existing solutions, the vehicle-mounted terminal is a passive connection party. When the terminal device needs to be switched, the operation needs to be performed from the terminal device. The switching connection is cumbersome and cannot be uniformly managed by the vehicle-mounted terminal.
[0004] [Summary of the invention]
[0005] This application at least provides a device connection management method, related equipment, system and storage medium to solve the above problems.
[0006] In a first aspect, the present application provides a device connection management method, which is applied to a vehicle-mounted device, the method comprising: obtaining a device management list, wherein the device management list records at least one terminal device, and the at least one terminal device is arranged according to its Bluetooth address, wherein the Bluetooth address of each terminal device is obtained in response to identifying that the terminal device supports the CarPlay function, during the process of the terminal device being connected to the vehicle-mounted device via a wired or wireless manner and before the CarPlay session connection corresponding to the CarPlay function is established; in response to any terminal device in the device management list being selected to be connected or disconnected, executing a connection or disconnection process to achieve unified management of any terminal device in the device management list.
[0007] In some embodiments, the at least one terminal device includes a first terminal device, wherein the first terminal device supports the CarPlay function; in response to identifying that the first terminal device supports the CarPlay function, obtaining the Bluetooth address of the first terminal device, including: in the process of the vehicle-mounted device and the first terminal device being connected wirelessly, performing a Bluetooth transmission protocol connection with the first terminal device, and receiving the Bluetooth connection result sent by the first terminal device; in response to the Bluetooth connection result being successful, establishing a first authentication session connection with the first terminal device, and receiving the first session connection result sent by the first terminal device; in response to the first session connection result being successful, recording the corresponding Bluetooth address to the device management list.
[0008] In some embodiments, the at least one terminal device includes a second terminal device, wherein the second terminal device supports the CarPlay function; in response to identifying that the second terminal device supports the CarPlay function, obtaining the Bluetooth address of the second terminal device, including: in the process of the vehicle-mounted device and the second terminal device being connected in a wired manner, in response to the second terminal device being connected to the vehicle-mounted device, establishing a second authentication session connection with the second terminal device, and receiving the second session connection result sent by the second terminal device; in response to the second session connection result being successful, receiving protocol information sent by the second terminal device, wherein the protocol information includes the Bluetooth address of the second terminal device.
[0009] In some embodiments, the second authentication session includes an iAP2 session connection and a CarPlay session connection, wherein the execution process of the iAP2 session connection is located before the execution process of the CarPlay session connection; establishing a second authentication session connection and receiving a second session connection result sent by the second terminal device includes: establishing the iAP2 session connection and receiving the iAP2 session connection result sent by the second terminal device; wherein the protocol information sent by the second terminal device is received in response to the iAP2 session connection result being successful.
[0010] In some embodiments, in response to any terminal device in the device management list being selected for connection, executing a connection process includes: in response to any terminal device in the device management list being selected for connection, and the terminal device is a trusted device, executing the connection process.
[0011] In some embodiments, before executing the connection process, the process also includes: determining whether a communication connection has been established with other terminal devices; if so, executing a disconnection process to disconnect the established communication connection.
[0012] In some embodiments, the at least one terminal device in the device management list is controlled to be displayed with a preset name.
[0013] A second aspect of the present application provides a vehicle-mounted device, comprising a memory and a processor coupled to each other, wherein the processor is configured to execute program instructions stored in the memory to implement the device connection management method in the first aspect.
[0014] A third aspect of the present application provides a control device, comprising a memory and a processor coupled to each other, wherein the processor is configured to execute program instructions stored in the memory to implement the device connection management method in the first aspect.
[0015] A fourth aspect of the present application provides a non-volatile computer-readable storage medium, which is used to store program instructions. When the program instructions are executed by a processor, they are used to implement the device connection management method in the first aspect above.
[0016] A fifth aspect of the present application provides a system, comprising the vehicle-mounted device in the second aspect and at least one terminal device, wherein the vehicle-mounted device is connected to the at least one terminal device via a wired or wireless manner.
[0017] The above solution is applied to a vehicle-mounted device to obtain a device management list, wherein the device management list records at least one terminal device, and at least one terminal device is arranged according to its Bluetooth address, wherein the Bluetooth address of each terminal device is obtained in response to identifying that the terminal device supports the CarPlay function, during the process of the terminal device being connected to the vehicle-mounted device via a wired or wireless manner and before the CarPlay session connection corresponding to the CarPlay function is established; by arranging at least one terminal device according to the Bluetooth address, the terminal devices can be accurately and reliably distinguished, and in response to any terminal device in the device management list being selected to be connected or disconnected, the connection or disconnection process is executed to control the connection or disconnection of any terminal device in the device management list, thereby facilitating switching between different terminal devices, thereby realizing unified management of the terminal devices.
[0018] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application.
Brief Description of the Drawings
[0019] The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, are used to illustrate the technical solutions of the present application.
[0020] FIG1 is a flow chart of a method for managing device connections in an embodiment of the present application;
[0021] FIG2 is a schematic diagram of a scenario in which a first terminal device is connected to an in-vehicle device in an embodiment of the present application;
[0022] FIG3 is a schematic diagram of a scenario in which a second terminal device is connected to an in-vehicle device in an embodiment of the present application;
[0023] FIG4 is a schematic structural diagram of a vehicle-mounted device according to an embodiment of the present application;
[0024] FIG5 is a schematic structural diagram of a control device in an embodiment of the present application;
[0025] FIG6 is a schematic diagram of the structure of the system in an embodiment of the present application;
[0026] FIG7 is a schematic diagram of the structure of a non-volatile computer-readable storage medium in an embodiment of the present application. [Specific implementation method]
[0027] The present application will be further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only intended to illustrate the present application and are not intended to limit the scope of the present application. Similarly, the following examples are only some examples of the present application and not all examples. All other examples obtained by those of ordinary skill in the art without creative work are intended to fall within the scope of protection of this application.
[0028] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0029] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the objects associated before and after are in an "or" relationship. In addition, "many" in this article means two or more than two. In addition, the term "at least one" in this article means any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C. In addition, the terms "first", "second", and "third" in this application are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
[0030] As mentioned above, in some existing solutions, the vehicle-mounted terminal is a passive connection party. When the terminal device needs to be switched, the operation needs to be performed from the terminal device. The switching connection is cumbersome and cannot be uniformly managed by the vehicle-mounted terminal.
[0031] To this end, the present application provides a device connection management method, related equipment, system and storage medium, so that the vehicle terminal can uniformly manage any terminal device in the device management list.
[0032] Compared with the prior art solution of transmitting relevant information via Bluetooth to achieve fast and automatic WiFi connection, the present application differs in that the present application obtains the Bluetooth address of the terminal device during the process of connecting the terminal device to the vehicle-mounted device in a wired or wireless manner, distinguishes the terminal devices by the Bluetooth address in the device management list, and thus uniformly manages any terminal device in the device management list.
[0033] Please refer to Figure 1, which is a flow chart of a method for managing device connections in an embodiment of the present application. The execution subject of this method may be a processor. For example, this method may be executed by a device with computing capabilities, such as a computing device or an in-vehicle device. In some possible implementations, the method for managing device connections may be implemented by the processor calling computer-readable instructions stored in a memory. Specifically, the method for managing device connections is applied to an in-vehicle device, and this method may include the following steps:
[0034] S1. Obtain a device management list, wherein the device management list records at least one terminal device, and the at least one terminal device is arranged according to its Bluetooth address, wherein the Bluetooth address of each terminal device is obtained in response to identifying that the terminal device supports the CarPlay function, during the process of the terminal device being connected to the vehicle-mounted device via a wired or wireless manner and before a CarPlay session connection corresponding to the CarPlay function is established.
[0035] In response to identifying that the terminal device supports the CarPlay function, it is understandable that the vehicle-mounted device can search for terminal devices that support the CarPlay function during the Bluetooth search, that is, it can identify that the terminal device supports the CarPlay function. During the process of the terminal device being connected to the vehicle-mounted device via a wired or wireless method, and before the CarPlay session connection corresponding to the CarPlay function is established, the vehicle-mounted device can obtain the Bluetooth address of the terminal device. The terminal device is recorded in the device management list, and the Bluetooth address is used as a unique identifier to distinguish the terminal device. At least one terminal device is recorded in the device management list, and each terminal device in the device management list is arranged by Bluetooth address.
[0036] Terminal devices are distinguished by Bluetooth addresses. Regardless of whether the same terminal device is connected to the vehicle-mounted device via wired or wireless means, the terminal device can be accurately located. For example, a terminal device is first connected to the vehicle-mounted device via wired means, and the vehicle-mounted device obtains the Bluetooth address of the terminal device. Then, it is connected to the vehicle-mounted device via wireless means, and the vehicle-mounted device obtains the Bluetooth address of the terminal device. Since the terminal device has a Bluetooth address, regardless of how the terminal device is connected to the vehicle-mounted device, the terminal device can be accurately located via the Bluetooth address. As a result, the vehicle-mounted device can actively identify and connect to the corresponding terminal device, so that the vehicle-mounted device can actively control the connection and disconnection of the corresponding terminal device.
[0037] S2. In response to any terminal device in the device management list being selected for connection or disconnection, executing a connection or disconnection process to achieve unified management of any terminal device in the device management list.
[0038] In response to any terminal device in the device management list being selected to connect or disconnect, the connection or disconnection process is executed to actively control the connection or disconnection of the corresponding terminal device, and then switch different terminal devices, so as to realize the unified management of any terminal device in the device management list by the vehicle-mounted device.
[0039] This application takes the CarPlay system as an example for explanation. The CarPlay system is installed in a vehicle-mounted device. Assume that there are three terminal devices (such as iPhones) A, B, and C. It is identified that the three terminal devices A, B, and C all support the CarPlay function. During the process of connecting the three terminal devices A, B, and C to the vehicle-mounted device via wired or wireless methods, and before the CarPlay session connection corresponding to the CarPlay function between the terminal device and the vehicle-mounted device is established, the vehicle-mounted device obtains the Bluetooth address of the terminal device and records it in the device management list, and arranges the three terminal devices according to the Bluetooth address in the device management list. For example, the vehicle-mounted device and the terminal device C in the device management list are in a CarPlay communication connection state. In response to the terminal device C being selected to disconnect, the disconnection process is executed to disconnect the CarPlay communication connection between the vehicle-mounted device and the terminal device C, thereby realizing that the vehicle-mounted device actively controls the disconnection of the CarPlay communication connection between the terminal device C and the vehicle-mounted device; in response to the terminal device B in the device management list being selected to be connected, the connection process is executed to establish a CarPlay communication connection between the vehicle-mounted device and the terminal device B, thereby realizing that the vehicle-mounted device actively controls the establishment of a CarPlay communication connection between the terminal device B and the vehicle-mounted device.
[0040] The above solution is applied to a vehicle-mounted device to obtain a device management list, wherein the device management list records at least one terminal device, and at least one terminal device is arranged according to its Bluetooth address, wherein the Bluetooth address of each terminal device is obtained in response to identifying that the terminal device supports the CarPlay function, during the process of the terminal device being connected to the vehicle-mounted device via a wired or wireless manner and before the CarPlay session connection corresponding to the CarPlay function is established; by arranging at least one terminal device according to the Bluetooth address, the terminal devices can be accurately and reliably distinguished, and in response to any terminal device in the device management list being selected to be connected or disconnected, the connection or disconnection process is executed to control the connection or disconnection of any terminal device in the device management list, thereby facilitating switching between different terminal devices, thereby realizing unified management of the terminal devices.
[0041] As described above, the Bluetooth address of each terminal device is obtained in response to identifying that the terminal device supports the CarPlay function, during the process of connecting the terminal device to the vehicle-mounted device via a wired or wireless method and before the CarPlay session connection corresponding to the CarPlay function is established. In one embodiment of the present application, the at least one terminal device includes a first terminal device, wherein the first terminal device supports the CarPlay function.
[0042] In one application scenario, the vehicle-mounted device searches for the first terminal device via Bluetooth. The number of the first terminal devices may be one or more, and the first terminal device supports the CarPlay function. The Bluetooth broadcast frame of the first terminal device carries the universally unique identifier (UUID) of iAP2, indicating that the first terminal device supports the iAP2 protocol; the Bluetooth broadcast frame of the first terminal device also carries the UUID of CarPlay, indicating that the first terminal device supports the CarPlay function. The Bluetooth address of the first terminal device is obtained, and the Bluetooth address of the first terminal device is recorded in the device management list. In response to any first terminal device in the device management list being selected to connect or disconnect, the connection or disconnection process is executed, thereby uniformly managing any first terminal device in the device management list.
[0043] In response to identifying that the first terminal device supports the CarPlay function, obtaining the Bluetooth address of the first terminal device, including: during the process of the vehicle-mounted device and the first terminal device being connected wirelessly, performing a Bluetooth transmission protocol connection with the first terminal device, and receiving the Bluetooth connection result sent by the first terminal device; in response to the Bluetooth connection result being successful, establishing a first authentication session connection with the first terminal device, and receiving the first session connection result sent by the first terminal device; in response to the first session connection result being successful, recording the corresponding Bluetooth address to the device management list.
[0044] The vehicle-mounted device scans via Bluetooth and records the Bluetooth address of the scanned first terminal device into the available list of the vehicle-mounted device. The available list is used to indicate that the recorded first terminal device supports the Bluetooth connection function. A Bluetooth transmission protocol (BT RFCOMM) connection is established between the vehicle-mounted device and the corresponding first terminal device according to the Bluetooth address, and the Bluetooth connection result sent by the first terminal device is received. In response to the Bluetooth connection result being successful, it indicates that the vehicle-mounted device and the first terminal device are successfully paired, and the successfully paired first terminal device is the trusted device of the vehicle-mounted device. After the vehicle-mounted device successfully establishes a Bluetooth transmission protocol connection with the first terminal device, it establishes a first authentication session connection with the first terminal device and receives the first session connection result sent by the first terminal device. In response to the first session connection result being successful, the corresponding Bluetooth address is recorded in the device management list.
[0045] Among them, the first authentication session includes an iAP2 session connection and a CarPlay session connection. The execution process of the iAP2 session connection is located before the execution process of the CarPlay session connection, and the execution process of the Bluetooth transmission protocol connection is located before the execution process of the iAP2 session connection; thus, during Bluetooth scanning, that is, before the Bluetooth transmission protocol connection, the Bluetooth address of the first terminal device can be obtained, and after the Bluetooth transmission protocol connection is successfully connected, the pairing between the first terminal device and the vehicle-mounted device is realized.
[0046] FIG2 is a schematic diagram of a scenario in which a first terminal device is connected to an in-vehicle device in an embodiment of the present application. As shown in FIG2 , in one application scenario, the in-vehicle device searches for a first terminal device that supports the CarPlay function through Bluetooth and records the Bluetooth address of the searched first terminal device in the in-vehicle device's available list. The first terminal device supports the iAP2 protocol and the CarPlay function, obtains the Bluetooth address of the first terminal device, establishes a Bluetooth transmission protocol connection with the first terminal device based on the Bluetooth address, and in response to a successful Bluetooth connection result, establishes a first authentication session connection with the first terminal device. The first authentication session connection includes an iAP2 session connection, and authentication between the in-vehicle device and the first terminal device is completed through the iAP2 session connection. The first session connection result is received from the first terminal device. In response to the first session connection result being successful, the Bluetooth address of the first terminal device is recorded in the device management list. In response to any first terminal device in the device management list being selected for connection or disconnection, a connection or disconnection process is executed, enabling the in-vehicle device to actively control the communication connection or disconnection between the in-vehicle device and the first terminal device, thereby uniformly managing the first terminal devices in the device management list.
[0047] As mentioned above, the Bluetooth address of each terminal device is obtained in response to identifying that the terminal device supports the CarPlay function, during the process of the terminal device being connected to the vehicle-mounted device via a wired or wireless manner and before the CarPlay session connection corresponding to the CarPlay function is established. In one embodiment of the present application, at least one terminal device includes a second terminal device, wherein the second terminal device supports the CarPlay function; in response to identifying that the second terminal device supports the CarPlay function, the Bluetooth address of the second terminal device is obtained, including: during the process of the vehicle-mounted device and the second terminal device being connected via a wired manner, in response to the second terminal device being connected to the vehicle-mounted device, establishing a second authentication session connection with the second terminal device, and receiving a second session connection result sent by the second terminal device; in response to the second session connection result being successful, receiving protocol information sent by the second terminal device, wherein the protocol information includes the Bluetooth address of the second terminal device.
[0048] At least one terminal device includes a second terminal device, the number of which can be one or more, and the second terminal device supports the CarPlay function. During the process of the second terminal device being connected to the vehicle-mounted device via a wired connection, in response to the second terminal device being connected to the vehicle-mounted device, the vehicle-mounted device establishes a second authentication session connection with the second terminal device, receives a second session connection result sent by the second terminal device, and responds to the second session connection result being successful to achieve an authentication connection between the vehicle-mounted device and the second terminal device. After the vehicle-mounted device establishes an authentication connection with the second terminal device, the vehicle-mounted device receives protocol information sent by the second terminal device, which includes the Bluetooth address of the second terminal device.
[0049] In one application scenario, the vehicle-mounted device identifies the second terminal device through the corresponding vendor ID (VID) and product identification code (PID) in the second terminal device, and then determines that the second terminal device supports the CarPlay function through a preset vendor command. In response to identifying that the second terminal device supports the CarPlay function, and in the process of the vehicle-mounted device and the second terminal device being connected via a wired connection, in response to the second terminal device being connected to the vehicle-mounted device, a second authentication session connection is established with the second terminal device, and a second session connection result sent by the second terminal device is received. It can be understood that the second terminal device is connected to the vehicle-mounted device via a wired connection, for example, via a Universal Serial Bus (USB) to Lightning data cable. The USB interface of the vehicle-mounted device is in host mode, and the second terminal device is in device mode. The vehicle-mounted device can enumerate the second terminal device and send a mode switch (USB Role switch) command to the second terminal device to switch the second terminal device to host mode. At the same time, the vehicle-mounted device switches to device mode, so that the vehicle-mounted device can be enumerated by the second terminal device. The vehicle-mounted device establishes a second authentication session connection with the second terminal device and receives a second session connection result from the second terminal device. In response to a successful second session connection result, the vehicle-mounted device receives protocol information proactively sent by the second terminal device. For example, the protocol information may be Device Transport Identifier Notification or CarPlay Availability. The protocol information includes the Bluetooth address of the second terminal device. The Bluetooth address of the second terminal device is recorded in the device management list. In response to any second terminal device in the device management list being selected for connection or disconnection, the vehicle-mounted device executes the connection or disconnection process, thereby uniformly controlling any second terminal device in the device management list.
[0050] In one embodiment of the present application, the second authentication session includes an iAP2 session connection and a CarPlay session connection, wherein the execution process of the iAP2 session connection is located before the execution process of the CarPlay session connection; establishing a second authentication session connection and receiving a second session connection result sent by the second terminal device includes: establishing an iAP2 session connection and receiving the iAP2 session connection result sent by the second terminal device; wherein the protocol information sent by the second terminal device is received in response to the iAP2 session connection result being successful.
[0051] The iAP2 session connection completes authentication between the vehicle-mounted device and the second terminal device. Furthermore, the protocol information sent by the second terminal device is received, where the protocol information includes the second terminal device's Bluetooth address. The iAP2 session connection process precedes the CarPlay session connection process.
[0052] Figure 3 is a schematic diagram of a scenario in which the second terminal device is connected to the vehicle-mounted device in an embodiment of the present application. As shown in Figure 3, in an application scenario, the vehicle-mounted device responds to recognizing that the second terminal device supports the CarPlay function, and in the process of the vehicle-mounted device and the second terminal device being connected in a wired manner, in response to the second terminal device being connected to the vehicle-mounted device, establishes an iAP2 session connection with the second terminal device, and receives the iAP2 session connection result sent by the second terminal device. It can be understood that the second terminal device is connected to the vehicle-mounted device in a wired manner, for example, via a USB to Lightning data cable. The USB interface of the vehicle-mounted device is in host mode, and the second terminal device is in device mode. The vehicle-mounted device can enumerate the second terminal device and send a mode switch (USB Role switch) command to the second terminal device to switch the second terminal device to the host mode. At the same time, the vehicle-mounted device switches to device mode, so that the vehicle-mounted device can be enumerated by the second terminal device. The vehicle-mounted device establishes an iAP2 session connection with the second terminal device and receives an iAP2 session connection result from the second terminal device. In response to a successful iAP2 session connection result, the vehicle-mounted device receives protocol information proactively sent by the second terminal device. For example, the protocol information may be a Device Transport Identifier Notification or CarPlay Availability Notification. The protocol information includes the Bluetooth address of the second terminal device.
[0053] As described above, the device management list is obtained. In one embodiment of the present application, in response to any terminal device in the device management list being selected for connection, executing the connection process includes: in response to any terminal device in the device management list being selected for connection, and the terminal device is a trusted device, executing the connection process.
[0054] In response to any terminal device in the device management list being selected for connection and the terminal device being a trusted device, a connection process is executed. The terminal device may include a first terminal device and a second terminal device, the first terminal device being connected to the vehicle-mounted device via a wireless connection, and the second terminal device being connected to the vehicle-mounted device via a wired connection.
[0055] For example, during the process of connecting the first terminal device to the vehicle-mounted device via Bluetooth, the vehicle-mounted device scans via Bluetooth and records the scanned Bluetooth address of the first terminal device that supports the CarPlay function into the available list of the vehicle-mounted device. The Bluetooth address of the first terminal device is obtained, a Bluetooth transmission protocol connection is established with the corresponding first terminal device according to the Bluetooth address, and the Bluetooth connection result sent by the first terminal device is received; in response to the Bluetooth connection result being successful, a first authentication session connection is established with the first terminal device. After completing the first authentication session connection, the first terminal device becomes a trusted device of the vehicle-mounted device, and the Bluetooth address of the first terminal device is recorded in the device management list. As long as the first terminal device does not choose to cancel pairing or ignore the vehicle-mounted device, the first terminal device is always a trusted device of the vehicle-mounted device, that is, as long as the first terminal device does not choose to cancel pairing or ignore the vehicle-mounted device, the Bluetooth address of the first terminal device will always be recorded in the device management list. During the process of connecting the second terminal device to the vehicle-mounted device via a USB data cable, a second authentication session connection is established between the vehicle-mounted device and the second terminal device that supports the CarPlay function. After completing the second authentication session connection, the second terminal device sends protocol information carrying the Bluetooth address to the vehicle-mounted device. At this time, the second terminal device is a trusted device of the vehicle-mounted device, and the Bluetooth address of the second terminal device is recorded in the device management list. And as long as the second terminal device does not choose to cancel pairing or ignore the vehicle-mounted device, the second terminal device is always a trusted device of the vehicle-mounted device, that is, as long as the second terminal device does not choose to cancel pairing or ignore the vehicle-mounted device, the Bluetooth address of the second terminal device will always be recorded in the device management list. In response to any first terminal device or second terminal device in the device management list being selected for connection, and the selected first terminal device or second terminal device is a trusted device, the connection process is executed.
[0056] As described above, in response to any terminal device in the device management list being selected for connection, a connection process is executed. In one embodiment of the present application, before executing the connection process, the process further includes: determining whether a communication connection has been established with other terminal devices; if so, executing a disconnection process to disconnect the established communication connection.
[0057] Before executing the connection process, it is determined whether a communication connection has been established between other terminal devices and the vehicle-mounted device. If there is a communication connection between other terminal devices and the vehicle-mounted device, a disconnection process is executed to disconnect the communication connection.
[0058] In one application scenario, a CarPlay system is installed in a vehicle-mounted device. Assume that there are three terminal devices (such as iPhones) A, B, and C, and terminal devices A, B, and C all support the CarPlay function. During the process of connecting the three terminal devices A, B, and C to the vehicle-mounted device via wired or wireless means, and before the CarPlay session connection corresponding to the CarPlay function between the terminal device and the vehicle-mounted device is established, the vehicle-mounted device obtains the Bluetooth address of the terminal device and records it in the device management list. The three terminal devices are distinguished and arranged by the Bluetooth address in the device management list. In response to the terminal device A in the device management list being selected for connection, it is determined whether a communication connection has been established with other terminal devices. For example, if the vehicle-mounted device is in a CarPlay communication connection state with terminal device B, the disconnection process is executed to disconnect the CarPlay communication connection between the vehicle-mounted device and terminal device B; then the connection process is executed to establish a CarPlay communication connection between the vehicle-mounted device and terminal device A, thereby realizing the vehicle-mounted device actively controlling the switching of terminal devices.
[0059] As described above, at least one terminal device in the device management list is arranged by Bluetooth address. In one embodiment of the present application, at least one terminal device in the device management list is controlled to be displayed by a preset name.
[0060] At least one terminal device in the control device management list is displayed with a preset name. It can be understood that the preset name can be the device name of the terminal device. By displaying the device name, the user can quickly find the terminal device to be connected or disconnected.
[0061] In some embodiments, the terminal device includes a first terminal device and a second terminal device, both of which support the CarPlay function. During the process of connecting the first terminal device and the second terminal device to the vehicle-mounted device via a wired or wireless method, and before the CarPlay session connection corresponding to the CarPlay function is established, the Bluetooth address of the first terminal device and the Bluetooth address of the second terminal device are obtained, and the corresponding Bluetooth addresses of the first terminal device and the second terminal device are recorded in a device management list for distinguishing and arranging the first terminal device and the second terminal device, and the first terminal device and the second terminal device are both displayed with preset names. The device management list is obtained, and in response to any one of the first terminal device or the second terminal device being selected to be connected or disconnected, a connection or disconnection process is executed to connect or disconnect the communication between the vehicle-mounted device and the selected first terminal device or second terminal device, thereby realizing unified management of any one of the first terminal device or the second terminal device in the device management list.
[0062] In addition, the terminal device can also actively initiate communication connection or disconnection with the vehicle-mounted device, supporting two-way control between the vehicle-mounted device and the terminal device.
[0063] In other embodiments, the solution of the present application can also be used for communication connections of non-CarPlay systems, that is, for customized interconnection, which can be understood as a preset interconnection protocol function between a customized vehicle-mounted device and a terminal device. The preset interconnection protocol function can be set according to actual usage requirements so that the vehicle-mounted device and the terminal device can be kept unified, or other achievable communication connections can be used without specific limitation. At least one terminal device is recorded in the device management list, at least one terminal device is connected to the vehicle-mounted device wirelessly or wired, and the vehicle-mounted device and the at least one terminal device support a preset interconnection protocol function, such as the terminal device has a BTSPP UUID (Bluetooth Serial Port Profile Universally Unique Identifier), or other achievable UUIDs can be used without specific limitation.
[0064] For example, the vehicle-mounted device discovers a terminal device through a Bluetooth search. The terminal device and the vehicle-mounted device have a preset interconnection protocol function. The vehicle-mounted device obtains the Bluetooth address of the terminal device and records it in the device management list, and then arranges the terminal devices according to the Bluetooth address. A Bluetooth connection is established between the vehicle-mounted device and the terminal device, and WiFi configuration information, such as WiFi AP information or WiFi P2P information, is transmitted through the Bluetooth connection channel. In response to any terminal device in the device management list being selected for connection, a connection process is executed. The connection process includes the vehicle-mounted device establishing a WiFi connection with the terminal device based on the WiFi configuration information and establishing a communication connection with the terminal device based on the WiFi connection. In response to any terminal device in the device management list being selected for disconnection, a disconnection process is executed, thereby achieving unified management of any terminal device in the device management list.
[0065] For example, a terminal device that supports a preset interconnection protocol function is connected to an on-board device via a USB data cable, wherein the terminal device can be equipped with an Android system, and the on-board system can be equipped with an Android system or a Linux system, or any other system that can be implemented, without specific limitation. The on-board device establishes a USB virtual network card based on the USB connection, and then according to the preset transmission protocol, the on-board device receives the Bluetooth address transmitted by the terminal device, records the Bluetooth address in the device management list, and then arranges the terminal devices according to the Bluetooth address. In response to any terminal device in the device management list being selected for connection, a connection process is executed, and the connection process includes establishing a communication connection between the on-board device and the terminal device through the network of the USB virtual network card; in response to any terminal device in the device management list being selected for disconnection, a disconnection process is executed, thereby realizing unified management of any terminal device in the device management list.
[0066] Please refer to Figure 4, which is a schematic diagram of the structure of an in-vehicle device according to an embodiment of the present application. In-vehicle device 200 includes a memory 201 and a processor 202 coupled to each other. Processor 202 is configured to execute program instructions stored in memory 201 to implement the steps of the aforementioned device connection management method embodiment. In a specific implementation scenario, in-vehicle device 200 may include, but is not limited to, a microcomputer or a server.
[0067] Specifically, the processor 202 is used to control itself and the memory 201 to implement the steps in the embodiment of the management method for the above-mentioned device connection. The processor 202 can also be called a CPU (Central Processing Unit), and the processor 202 may be an integrated circuit chip with signal processing capabilities. The processor 202 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 202 can be implemented by an integrated circuit chip.
[0068] Please refer to Figure 5, which is a schematic diagram of the structure of a control device in an embodiment of the present application. Control device 300 includes a memory 301 and a processor 302 coupled to each other. Processor 302 is configured to execute program instructions stored in memory 301 to implement the steps of the aforementioned device connection management method embodiment. In a specific implementation scenario, control device 300 may include, but is not limited to, a microcomputer or a server.
[0069] Specifically, the processor 302 is used to control itself and the memory 301 to implement the steps in the embodiment of the management method for the above-mentioned device connection. The processor 302 can also be called a CPU (Central Processing Unit). The processor 302 may be an integrated circuit chip with signal processing capabilities. The processor 302 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. In addition, the processor 302 can be implemented by an integrated circuit chip.
[0070] Please refer to Figure 6, which is a schematic diagram of the structure of the system in the embodiment of the present application. The system includes the above-mentioned vehicle-mounted device 200 and at least one terminal device 400, and the vehicle-mounted device 200 and the at least one terminal device 400 are connected via wired or wireless means.
[0071] It is understood that the system includes a terminal device 400 connected to the vehicle-mounted device 200 via a wired or wireless method, wherein the system installed on the terminal device 400 may be an iOS system, and the preset names of all terminal devices 400 in the control device management list are displayed in the form of a list for user selection. Among them, a preset icon can be used to mark the terminal device 400 currently in a communication connection state with the vehicle-mounted device 200, for example, a rectangular frame can be used to frame the preset name of the terminal device 400 for distinguishing display, or other achievable methods are all acceptable and are not specifically limited.
[0072] The in-vehicle device 200 obtains the device management list, and in response to any terminal device in the device management list being selected for connection or disconnection, executes a connection or disconnection process to achieve unified management of any terminal device 400 in the device management list.
[0073] 7 is a schematic diagram of the structure of a non-volatile computer-readable storage medium in an embodiment of the present application. The computer-readable storage medium 500 is used to store program instructions 501. When executed by the processor 202, the program instructions 501 are used to implement the steps of the device connection management method embodiment described above.
[0074] The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced with each other and will not be repeated herein for the sake of brevity.
[0075] In the several embodiments provided in this application, it should be understood that the disclosed methods and related devices can be implemented in other ways. For example, the above-described related device implementation methods are merely illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication disconnection shown or discussed can be through some interfaces, indirect coupling or communication disconnection of devices or units, which can be electrical, mechanical or other forms.
[0076] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0077] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
Claims
1. A method for managing device connections, characterized in that: Applied to an in-vehicle device, the method comprises: Obtaining a device management list, wherein the device management list records at least one terminal device, and the at least one terminal device is arranged by its Bluetooth address, wherein the Bluetooth address of each terminal device is obtained in response to identifying that the terminal device supports the CarPlay function, during a process in which the terminal device is connected to the vehicle-mounted device in a wired or wireless manner and before a CarPlay session connection corresponding to the CarPlay function is established; In response to any one of the terminal devices in the device management list being selected to be connected or disconnected, a connection or disconnection process is executed to achieve unified management of any one of the terminal devices in the device management list.
2. The method according to claim 1, characterized in that The at least one terminal device includes a first terminal device, wherein the first terminal device supports the CarPlay function; In response to identifying that the first terminal device supports the CarPlay function, obtaining a Bluetooth address of the first terminal device includes: During the process of the vehicle-mounted device being connected to the first terminal device in a wireless manner, performing a Bluetooth transmission protocol connection with the first terminal device, and receiving a Bluetooth connection result sent by the first terminal device; In response to the Bluetooth connection result being successful, establishing a first authentication session connection with the first terminal device, and receiving a first session connection result sent by the first terminal device; In response to the first session connection result being successful, the corresponding Bluetooth address is recorded in the device management list.
3. The method according to claim 1, characterized in that: The at least one terminal device includes a second terminal device, wherein the second terminal device supports a CarPlay function; In response to identifying that the second terminal device supports the CarPlay function, obtaining a Bluetooth address of the second terminal device includes: During the process of connecting the vehicle-mounted device and the second terminal device in a wired manner, in response to the second terminal device being connected to the vehicle-mounted device, establishing a second authentication session connection with the second terminal device, and receiving a second session connection result sent by the second terminal device; In response to the second session connection result being successful, receiving protocol information sent by the second terminal device, wherein the protocol information includes a Bluetooth address of the second terminal device.
4. The method according to claim 3, characterized in that The second authentication session includes an iAP2 session connection and a CarPlay session connection, wherein an execution process of the iAP2 session connection is before an execution process of the CarPlay session connection; The establishing of the second authentication session connection and receiving the second session connection result sent by the second terminal device includes: Establishing the iAP2 session connection, and receiving the iAP2 session connection result sent by the second terminal device; The protocol information sent by the second terminal device is received in response to a successful connection result of the iAP2 session.
5. The method according to claim 1, characterized in that In response to any terminal device in the device management list being selected for connection, executing a connection process, including: In response to any terminal device in the device management list being selected for connection, and the terminal device being a trusted device, the connection process is executed.
6. The method according to claim 5, characterized in that Before executing the connection process, the following steps are also included: Determining whether a communication connection has been established with other terminal devices; If yes, a disconnection procedure is executed to disconnect the established communication connection.
7. A vehicle-mounted device, characterized in that: It comprises a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the device connection management method according to any one of claims 1 to 6.
8. A control device, characterized in that: It comprises a memory and a processor coupled to each other, wherein the processor is used to execute program instructions stored in the memory to implement the device connection management method according to any one of claims 1 to 6.
9. A non-volatile computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program instructions, and when the program instructions are executed by a processor, they are used to implement the device connection management method according to any one of claims 1 to 6.
10. A system, characterized in that: It comprises the vehicle-mounted device as claimed in claim 7 and at least one terminal device, wherein the vehicle-mounted device is connected to the at least one terminal device via a wired or wireless method.
Citation Information
Patent Citations
Bluetooth name search method and device, electronic equipment and storage medium
CN110460983A
Vehicle, vehicle-mounted Bluetooth equipment thereof and automatic Bluetooth equipment connection method
CN110856150A
Automatic connection method based on vehicle-mounted Bluetooth and vehicle
CN110896568A
Bluetooth device automatic connection method and device, equipment and storage medium
CN113395690A
Bluetooth equipment identification method and device, electronic equipment and storage medium
CN115474181A
Cited By
Method for virtually accessing vehicle-mounted electronic equipment to vehicle-mounted function
CN119496801A
A method for virtually accessing a vehicle-mounted function by a vehicle-mounted electronic device
CN119496801B
