A method, device, vehicle-mounted terminal and storage medium for disconnecting a connection
By determining the connection method and identifying the identity in the on-board terminal, the problem of misoperation when the on-board terminal is disconnected is solved, and the accuracy and user experience of disconnection are improved.
Patent Information
- Application Number
- CN202211333187.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-10-28
AI Technical Summary
When existing vehicle terminals are disconnected, due to the diversity of connection methods, they are prone to misoperation, which affects the user experience.
By determining the connection method between the target terminal device and the vehicle terminal and identifying the identity according to the connection method, the communication connection is disconnected only when the identity identification is successful.
Improves the accuracy of disconnection and improves the user experience.
Smart Images

Figure CN116112537B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle-mounted communication, and particularly to a method, a device, a vehicle-mounted terminal and a storage medium for disconnecting a connection. Background Art
[0002] Currently, existing vehicle-mounted mobile phone interconnection technologies are very rich, and there are various connection methods in these interconnection technologies, such as wired connection of Android devices, local area network connection of Apple devices, etc. After the vehicle-mounted terminal is connected to the terminal device, the device management interface of the vehicle-mounted terminal will display the device information (such as serial number) of the terminal device, so that the user can process the terminal device.
[0003] However, in some existing technical solutions, due to the diversity of connection methods, there may be a situation of wrongly disconnecting the terminal device, which affects the user experience. Summary of the Invention
[0004] The present invention provides a method, a device, a vehicle-mounted terminal and a storage medium for disconnecting a connection, so as to improve the accuracy of the disconnection method and enhance the user experience.
[0005] According to one aspect of the present invention, there is provided a method for disconnecting a connection, which is applied to a vehicle-mounted terminal, and the method includes:
[0006] Determine the connection method between the target terminal device to be disconnected and the vehicle-mounted terminal;
[0007] Perform identity recognition on the target terminal device according to the connection method;
[0008] If the identity recognition is successful, then disconnect the communication connection between the target terminal device and the vehicle-mounted terminal.
[0009] According to another aspect of the present invention, there is provided a device for disconnecting a connection, which is configured in a vehicle-mounted terminal, and includes:
[0010] A determination module, configured to determine the connection method between the target terminal device to be disconnected and the vehicle-mounted terminal;
[0011] An identification module, configured to perform identity recognition on the target terminal device according to the connection method;
[0012] A disconnection module, configured to, if the identity recognition is successful, disconnect the communication connection between the target terminal device and the vehicle-mounted terminal.
[0013] According to another aspect of the present invention, there is provided a vehicle-mounted terminal, and the vehicle-mounted terminal includes:
[0014] At least one processor; and
[0015] A memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the at least one processor is enabled to execute the disconnection method according to any embodiment of the present invention.
[0017] According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the disconnection method according to any embodiment of the present invention when executed.
[0018] Embodiments of the present invention provide a disconnection method, apparatus, vehicle-mounted terminal, and storage medium. The method is applied to a vehicle-mounted terminal and includes: determining a connection mode between a target terminal device to be disconnected and the vehicle-mounted terminal; performing identity recognition on the target terminal device according to the connection mode; and if the identity recognition is successful, disconnecting the communication connection between the target terminal device and the vehicle-mounted terminal. By using the above technical solution, by performing identity recognition on the target terminal device according to the connection mode, it is possible to disconnect the communication connection between the target terminal device and the vehicle-mounted terminal when the identity recognition is successful, improving the accuracy of the disconnection method and enhancing the user experience.
[0019] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.
[0021] Figure 1 is a flowchart of a disconnection method according to Embodiment 1 of the present invention;
[0022] Figure 2 is a flowchart of a disconnection method according to Embodiment 2 of the present invention;
[0023] Figure 3 is a flowchart of another disconnection method according to Embodiment 2 of the present invention;
[0024] Figure 4It is a schematic structural diagram of a disconnection device provided in Embodiment 3 of the present invention;
[0025] Figure 5 It is a schematic structural diagram of a vehicle-mounted terminal provided in Embodiment 4 of the present invention. Detailed implementation manners
[0026] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0028] Embodiment 1
[0029] Figure 1 It is a flowchart of a disconnection method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation where the vehicle-mounted terminal is disconnected from the terminal device. This method can be executed by a disconnection device, and the disconnection device can be implemented in the form of hardware and / or software, and the disconnection device can be configured in the vehicle-mounted terminal.
[0030] Existing vehicle-mounted mobile phone interconnection technologies are very rich. For example, they can include Carlife, CarPlay, HiCar, etc. There are various connection methods in these interconnection technologies, such as Android device wired connection, Android device Wi-Fi direct connection, Apple device local area network connection, etc. According to different interconnection types and connection methods, the device information can be correspondingly displayed in the device management interface of the vehicle-mounted device, and the displayed content mainly includes the device name, connection method icon, delete icon, etc.
[0031] Due to the diversity of connection methods, there may be a situation where the device information obtained during interconnection is incomplete. For example, the unique serial number of the mobile phone cannot be obtained. Therefore, when managing multiple devices, the interconnection module in the vehicle-mounted device cannot effectively distinguish whether the management operation is for the currently connected device, which may cause misoperations on the currently connected device. For example, the mobile phone device being connected may be wrongly disconnected, the already connected mobile phone device may be wrongly deleted, and the mobile phone device that should be deleted may not be deleted, thus affecting the user experience.
[0032] Based on this, this embodiment provides a method for disconnecting a connection, as Figure 1 shown. The method includes:
[0033] S110. Determine the connection method between the target terminal device to be disconnected and the vehicle-mounted terminal.
[0034] The target terminal device can be considered as the terminal device to be disconnected. The target terminal device can be determined by the vehicle-mounted terminal. For example, the target terminal device can be the terminal device currently connected to the vehicle-mounted terminal, or can be the terminal device that has been connected to the vehicle-mounted terminal.
[0035] In this step, the connection method between the target terminal device to be disconnected and the vehicle-mounted terminal can be determined. Exemplarily, the device type of the target terminal device can be judged first. For example, it is determined that the target terminal device is an Android mobile phone, and then the specific connection between the target terminal device and the vehicle-mounted terminal is determined, such as whether it is a wired connection, a Bluetooth connection, and / or a local area network connection, etc. The specific determination method is not limited as long as the connection method between the target terminal device and the vehicle-mounted terminal can be obtained.
[0036] Optionally, the timing for determining the connection method between the target terminal device and the vehicle-mounted terminal is not limited. For example, the connection method between the target terminal device and the vehicle-mounted terminal can be determined when an execution instruction is received, or can be determined after the connection state of the vehicle-mounted terminal is determined. This embodiment does not limit this.
[0037] In one embodiment, the determining the connection method between the target terminal device to be disconnected and the vehicle-mounted terminal includes:
[0038] If the target terminal device to be disconnected and the vehicle-mounted terminal are in a connected state or a connecting state, then determine the connection method between the target terminal device and the vehicle-mounted terminal.
[0039] In one embodiment, the connection status of the in-vehicle terminal can be detected first. For example, it can be determined whether the in-vehicle terminal is already connected first, and then whether it is in the process of connecting, so as to obtain the connection status of the in-vehicle terminal. Exemplarily, when it is detected that the in-vehicle terminal is in the connected state or the connecting state, the connection method between the target terminal device and the in-vehicle terminal can be determined for subsequent operations; when it is detected that the in-vehicle terminal is in the unconnected state and not in the process of connecting, it can be considered that there is no connection progress for the current in-vehicle terminal, and at this time, the background connection process of the in-vehicle terminal can be terminated to stop the connection processing. Among them, the steps of detecting the connection status of the in-vehicle terminal are not limited. For example, the interconnection module of the in-vehicle terminal can determine the connection progress value through information interaction, and then determine the connection status of the in-vehicle terminal according to the progress value.
[0040] S120. Identify the identity of the target terminal device according to the connection method.
[0041] After the connection method between the target terminal device and the in-vehicle terminal is determined in the above step, the identity of the target terminal device can be identified according to the determined connection method, that is, to determine whether the target terminal device is the device that the user really wants to disconnect. The specific identity identification process can be, for example, matching the device identification information of the target terminal device with the information contained in the device management instruction to determine the result of the identity identification according to the matching result. Optionally, different connection methods can correspond to different identity identification processes. The device identification information can refer to the identification information of the terminal device, which is used to characterize the terminal device.
[0042] S130. If the identity identification is successful, disconnect the communication connection between the target terminal device and the in-vehicle terminal.
[0043] It can be considered that when the identity identification is successful, it can be considered that the target terminal device is the device that the user really wants to disconnect. At this time, the communication connection between the target terminal device and the in-vehicle terminal needs to be disconnected. The disconnection method can be, for example, that the interconnection module of the in-vehicle terminal directly disconnects the connection with the target terminal device.
[0044] A disconnection method provided in Embodiment 1 of the present invention includes: determining the connection method between the target terminal device to be disconnected and the in-vehicle terminal; identifying the identity of the target terminal device according to the connection method; if the identity identification is successful, disconnect the communication connection between the target terminal device and the in-vehicle terminal. Using this method, by identifying the identity of the target terminal device according to the connection method, the communication connection between the target terminal device and the in-vehicle terminal can be disconnected when the identity identification is successful, improving the accuracy of the disconnection method and enhancing the user experience.
[0045] In one embodiment, the method further includes:
[0046] If the identity recognition fails, the communication connection between the target terminal device and the vehicle-mounted terminal is maintained.
[0047] When the identity recognition fails, it can be considered that the target terminal device is not the device that the user really wants to disconnect. At this time, there is no need to disconnect the communication connection between the target terminal device and the vehicle-mounted terminal, and no operation needs to be performed, that is, the communication connection between the target terminal device and the vehicle-mounted terminal is maintained.
[0048] Embodiment 2
[0049] Figure 2 FIG. is a flowchart of a method for disconnecting a connection according to Embodiment 2 of the present invention. Embodiment 2 is optimized on the basis of the above embodiments. In this embodiment, the situation before determining the connection method between the target terminal device to be disconnected and the vehicle-mounted terminal is further specified as: obtaining a device management instruction for the target terminal device.
[0050] For the content not detailed in this embodiment, please refer to Embodiment 1.
[0051] As Figure 2 shown, the method includes:
[0052] S210. Obtain a device management instruction for the target terminal device.
[0053] The device management instruction can be considered as an instruction for managing the terminal device. For example, the device management instruction can be a device information deletion instruction, which is used to instruct the vehicle-mounted terminal to disconnect the communication connection with the terminal device and delete the device information of the stored terminal device; the device management instruction can also be a device disconnection instruction, which is used to instruct the vehicle-mounted terminal to disconnect the communication connection with the terminal device. This embodiment does not limit this. Optionally, the device management instruction may include device identification information for subsequent identity recognition.
[0054] It can be considered that before determining the connection method between the target terminal device and the vehicle-mounted terminal, the device management instruction can be obtained so as to perform corresponding operations according to the device management instruction. The method and timing for obtaining the device management instruction are not limited. For example, when the user performs a management operation in the device management page of the vehicle-mounted terminal, the device management module of the vehicle-mounted terminal sends a device management instruction to the interconnection module, and then the interconnection module can obtain this device management instruction to perform subsequent operations. The device management module can refer to the module in the vehicle-mounted terminal for device management, and the interconnection module can refer to the module for connecting with the terminal device.
[0055] S220. Determine the connection method between the target terminal device to be disconnected and the vehicle-mounted terminal.
[0056] S230. Identify the target terminal device according to the connection method.
[0057] In one embodiment, the identifying the target terminal device according to the connection method includes:
[0058] If the connection method is a wired connection, obtain the first device identification information carried in the device management instruction;
[0059] Identify the target terminal device according to the first device identification information.
[0060] The first device identification information may refer to the device identification information corresponding to the wired connection in the device management instruction. For example, the first device identification information may be the USB serial number of the terminal device that the user wants to disconnect.
[0061] In one implementation, when the connection method is a wired connection, the first device identification information carried in the device management instruction can be obtained, and the target terminal device can be identified based on the first device identification information. The specific identification process can be, for example: match the first device identification information with the device identification information of the target terminal device to obtain a matching result, and determine the result of the identity identification based on the matching result.
[0062] In one embodiment, the identifying the target terminal device according to the connection method includes:
[0063] If the connection method is a Bluetooth connection, obtain the second device identification information carried in the device management instruction;
[0064] Identify the target terminal device according to the second device identification information.
[0065] The second device identification information may refer to the device identification information corresponding to the Bluetooth connection in the device management instruction. For example, the second device identification information may be the Bluetooth address of the terminal device that the user wants to disconnect.
[0066] In one implementation, when the connection method is a Bluetooth connection, the second device identification information carried in the device management instruction can be obtained, and the target terminal device can be identified based on the second device identification information. The specific identification process can be, for example: match the second device identification information with the device identification information of the target terminal device to obtain a matching result, and determine the result of the identity identification based on the matching result.
[0067] In one embodiment, the identifying the target terminal device according to the connection method includes:
[0068] If the connection method is a local area network connection, determine whether the device management instruction carries the first device identification information and / or the second device identification information, and generate a determination result;
[0069] Perform identity recognition on the target terminal device according to the determination result.
[0070] The determination result is used to indicate whether the device management instruction carries the first device identification information and / or the second device identification information.
[0071] It can be understood that when the connection method is a local area network connection, it is possible to determine whether the device management instruction carries the first device identification information and / or the second device identification information to generate a determination result, and perform identity recognition on the target terminal device according to the generated determination result.
[0072] In one embodiment, when the device management instruction carries the first device identification information and / or the second device identification information, it can be considered that the terminal device that the user wants to disconnect from the vehicle-mounted terminal is a wired connection or a Bluetooth connection. Then, when the current connection method is a local area network connection, it can be determined that the terminal device that the user wants to disconnect is not the target terminal device, that is, the identity recognition fails. At this time, only the communication connection between the target terminal device and the vehicle-mounted terminal needs to be maintained.
[0073] In one embodiment, when the device management instruction does not carry the first device identification information and the second device identification information, it can be considered that the terminal device that the user wants to disconnect from the vehicle-mounted terminal is a local area network connection. Then, it can be determined that the terminal device that the user wants to disconnect is the target terminal device, that is, the identity recognition is successful.
[0074] S240. If the identity recognition is successful, disconnect the communication connection between the target terminal device and the vehicle-mounted terminal.
[0075] A disconnection method provided by the second embodiment of the present invention can perform corresponding identity recognition on the target terminal device according to the connection method between the target terminal device and the vehicle-mounted terminal by obtaining different device management instructions, further improving the accuracy of the disconnection method.
[0076] In one embodiment, the device management instruction includes a device information deletion instruction. After disconnecting the communication connection between the target terminal device and the vehicle-mounted terminal, it further includes:
[0077] Delete the device information of the target terminal device stored in the vehicle-mounted terminal.
[0078] In one embodiment, when the device management instruction includes a device information deletion instruction, after disconnecting the communication connection between the target terminal device and the in-vehicle terminal, the device information of the target terminal device stored in the in-vehicle terminal can be deleted to complete the operation indicated by the device management instruction.
[0079] In one embodiment, when a mobile phone device (i.e., the terminal device) is first connected to the in-vehicle terminal, if the connection method is Android wired connection, the interconnection module can obtain the mobile phone device information (such as USB serial number (XXXX), device name "Tom’s Nova 9") and the connection status (such as connected, disconnected, connecting, or disconnecting), and transmit the mobile phone device information to the device management module, which saves the mobile phone device information.
[0080] When the user enters the device management page of the in-vehicle terminal, the corresponding mobile phone device information and connection status can be displayed. Subsequently, on the device management page, the user can manage the displayed terminal device, such as performing operations like connecting, disconnecting, and deleting.
[0081] The method for disconnecting provided in this embodiment will be described exemplarily below:
[0082] Figure 3 FIG. is a flowchart of another method for disconnecting according to Embodiment 2 of the present invention. When the user disconnects a device on the device management page, the device management module sends a disconnection notification to the interconnection application (i.e., the interconnection module). The interconnection application first determines whether the interconnection is already connected, then determines whether it is in the process of connecting, and performs corresponding processing according to the status of the interconnection itself and different interconnection types (i.e., connection methods).
[0083] Specifically, when the current interconnection application is in a state of not being connected and not in the process of connecting, the background connection process of the interconnection application can be terminated to end the operation.
[0084] When the current interconnection application is in a connected or connecting state, it is necessary to compare with the Bluetooth address information or USB serial number information carried in the deletion notification according to the following connection methods and perform corresponding processing.
[0085] (1) Android mobile phone wired connection
[0086] First, it is judged whether the connection method between the target terminal device and the vehicle-mounted terminal is a wired connection of an Android mobile phone. When it is determined that the connection method between the target terminal device and the vehicle-mounted terminal is a wired connection of an Android mobile phone, the specific connection process before can be as follows: When the Android mobile phone (i.e., the target terminal device) is wired-connected to the in-vehicle system, the vehicle-mounted system can obtain the type of the connected device through the USB protocol, such as an Android mobile phone. At this time, the vehicle-mounted system sends a broadcast notification carrying the USB insertion. After the interconnection module obtains this notification, it can check whether the target terminal device supports the AOA protocol. If it supports, the interconnection module switches to the USB accessory mode, then establishes a USB communication with the target terminal device, and through the USB protocol, the interconnection module can obtain the USB serial number and device name of the target terminal device. After the interconnection module successfully connects, it sends the obtained USB serial number and device name to the device management module, and the device management module saves the device information (i.e., the USB serial number and device name).
[0087] When the interconnection application receives the disconnection notification, it can judge whether the USB serial number carried in the notification matches the USB serial number obtained above (that is, if the connection method is a wired connection, obtain the first device identification information carried in the device management instruction; perform identity recognition on the target terminal device according to the first device identification information). If it matches, the current connection is stopped (that is, if the identity recognition is successful, the communication connection between the target terminal device and the vehicle-mounted terminal is disconnected), otherwise this deletion operation is ignored and the connection is maintained (that is, if the identity recognition fails, the communication connection between the target terminal device and the vehicle-mounted terminal is maintained).
[0088] (2) Android mobile phone WIFI direct connection
[0089] Then, it is judged whether the connection method between the target terminal device and the vehicle-mounted terminal is an Android mobile phone WIFI direct connection. When it is determined that the connection method between the target terminal device and the vehicle-mounted terminal is an Android mobile phone WIFI connection, the specific connection process before can be as follows: The interconnection module connects through a Bluetooth socket (such as the Bluetooth SPP protocol), and after the interaction is completed through the Bluetooth interaction protocol, the mobile phone side will actively send the mobile phone IP address to the interconnection module. The interconnection module establishes a WiFi-Direct connection and projection screen with the mobile phone by receiving the mobile phone IP address sent by the mobile phone side. After the interconnection module successfully connects, it can obtain the Bluetooth address and device name of the connected device through the Bluetooth protocol, and send the Bluetooth address and device name of the mobile phone to the device management module, and the device management module saves the device information.
[0090] After the interconnection application receives the disconnection notice, it determines the Bluetooth address information carried in the notice and compares it with the Bluetooth address used for the current WIFI direct connection (that is, if the connection method is Bluetooth connection, the second device identification information carried in the device management instruction is obtained; the target terminal device is identified according to the second device identification information). If they are the same, the current interconnection connection is stopped (that is, if the identity identification is successful, the communication connection between the target terminal device and the vehicle-mounted terminal is disconnected), otherwise this deletion operation is ignored and the interconnection connection is maintained (that is, if the identity identification fails, the communication connection between the target terminal device and the vehicle-mounted terminal is maintained).
[0091] (3) Android phone local area network connection or Apple local area network connection
[0092] Then it is determined whether the connection method between the target terminal device and the vehicle-mounted terminal is a phone local area network connection. When the in-vehicle unit and the phone are in the same WIFI local area network, the specific connection process can be: the interconnection module listens to a specific port to obtain the phone-side IP to achieve Socket communication with the phone side.
[0093] Since there is no direct interaction between the interconnection and the device, and the Baidu Carlife protocol does not provide the Bluetooth address and device name of the phone in this interconnection method, the Bluetooth address and device name of the device cannot be obtained in this interconnection method. After the interconnection module is successfully connected, it only sends the IP address of the phone to the device management module, and the device management module saves the device information.
[0094] Therefore, after the interconnection application receives the disconnection notice, it can determine the Bluetooth address information and USB serial number information carried in the notice (that is, if the connection method is a local area network connection, it is determined whether the device management instruction carries the first device identification information and / or the second device identification information, and a determination result is generated; the target terminal device is identified according to the determination result). If both of these values are empty, it means that the wireless local area network connection is deleted and the current interconnection connection needs to be disconnected (that is, if the identity identification is successful, the communication connection between the target terminal device and the vehicle-mounted terminal is disconnected), otherwise, this deletion operation is ignored and the interconnection connection is maintained (that is, if the identity identification fails, the communication connection between the target terminal device and the vehicle-mounted terminal is maintained).
[0095] (4) Apple wired connection
[0096] Finally, it is determined whether the connection method between the target terminal device and the vehicle-mounted terminal is Apple wired connection. When it is determined that the connection method between the target terminal device and the vehicle-mounted terminal is Apple wired connection, the specific connection process before can be as follows: When an Apple mobile phone (i.e., the target terminal device) is wired-connected to the vehicle head unit, the connection protocol can adopt the EAP protocol. When the interconnection module detects the insertion of an Apple device, it can check whether this device supports the EAP protocol. If it supports, it switches to the USB host mode of the device, and establishes USB communication with this device through IAP2 authentication. Subsequently, through the USB protocol, the interconnection module can obtain the USB serial number and device name of the Apple device and send the USB serial number and device name of the mobile phone to the device management module, and the device management module saves the device information.
[0097] After receiving the disconnection notice, the interconnection application can determine whether the USB serial number carried in the notice matches the USB serial number obtained above (that is, if the connection method is wired connection, obtain the first device identification information carried in the device management instruction; perform identity identification on the target terminal device according to the first device identification information). If they match, the current connection is stopped (that is, if the identity identification is successful, the communication connection between the target terminal device and the vehicle-mounted terminal is disconnected), otherwise, this deletion operation is ignored and the connection is maintained (that is, if the identity identification fails, the communication connection between the target terminal device and the vehicle-mounted terminal is maintained).
[0098] From the above description, it can be seen that when an Android mobile phone is already wired-connected or an Apple mobile phone is already wired-connected, by saving the USB unique serial number, the interconnection module can effectively distinguish the current inserted mobile phone model. Therefore, when the user deletes a device on the device management page, it can accurately determine whether it is the same mobile phone, and then perform the deletion or addition operation.
[0099] When the Android mobile phone's WiFi direct connection is already connected, by saving the Bluetooth unique address of the connected mobile phone, the interconnection module can effectively distinguish the device to be deleted or added currently. Therefore, when the user deletes a device on the device management page, it can accurately determine whether it is the same mobile phone and perform the deletion or addition operation.
[0100] When Android and Apple mobile phones are connected to the interconnection module through the local area network, since the interconnection module cannot effectively obtain the Bluetooth address and device name of the mobile phone, when the user deletes a device on the device management page, the interconnection module can determine whether it is a local area network connection by excluding other connection types and can perform the deletion operation.
[0101] In addition, when the interconnection module is in the process of connection (not yet successfully connected), by saving the USB unique serial number and the Bluetooth unique address, the interconnection module can also effectively distinguish the currently connected device. Therefore, when the user deletes a device on the device management page, the interconnection module can accurately determine whether it is the same mobile phone and perform the deletion operation.
[0102] Embodiment 3
[0103] Figure 4 is a schematic structural diagram of a disconnection device provided according to Embodiment 3 of the present invention. As Figure 4 shown, the device includes:
[0104] A determination module 310, configured to determine the connection method between a target terminal device to be disconnected and the vehicle-mounted terminal;
[0105] An identification module 320, configured to perform identity identification on the target terminal device according to the connection method;
[0106] A disconnection module 330, configured to disconnect the communication connection between the target terminal device and the vehicle-mounted terminal if the identity identification is successful.
[0107] A disconnection device provided by Embodiment 3 of the present invention determines the connection method between a target terminal device to be disconnected and the vehicle-mounted terminal through the determination module 310; performs identity identification on the target terminal device according to the connection method through the identification module 320; and disconnects the communication connection between the target terminal device and the vehicle-mounted terminal through the disconnection module 330 if the identity identification is successful. By using this device, identity identification is performed on the target terminal device according to the connection method, and the communication connection between the target terminal device and the vehicle-mounted terminal can be disconnected when the identity identification is successful, improving the accuracy of the disconnection method and enhancing the user experience.
[0108] Optionally, the target terminal device corresponds to a device management instruction. The disconnection device provided by the embodiment of the present invention further includes:
[0109] An acquisition module, configured to acquire a device management instruction for the target terminal device before determining the connection method between the target terminal device to be disconnected and the vehicle-mounted terminal.
[0110] Optionally, the identification module 320 is specifically configured to:
[0111] If the connection method is a wired connection, acquire the first device identification information carried in the device management instruction;
[0112] Perform identity identification on the target terminal device according to the first device identification information.
[0113] Optionally, the recognition module 320 is specifically configured to:
[0114] If the connection method is a Bluetooth connection, obtain the second device identification information carried in the device management instruction;
[0115] Perform identity recognition on the target terminal device according to the second device identification information.
[0116] Optionally, the recognition module 320 is specifically configured to:
[0117] If the connection method is a local area network connection, determine whether the device management instruction carries the first device identification information and / or the second device identification information, and generate a determination result;
[0118] Perform identity recognition on the target terminal device according to the determination result.
[0119] Optionally, the device management instruction includes a device information deletion instruction. The disconnection device provided in the embodiments of the present invention further includes:
[0120] A deletion module, configured to delete the device information of the target terminal device stored in the vehicle-mounted terminal after disconnecting the communication connection between the target terminal device and the vehicle-mounted terminal.
[0121] Optionally, the disconnection device provided in the embodiments of the present invention further includes:
[0122] A connection maintenance module, configured to maintain the communication connection between the target terminal device and the vehicle-mounted terminal if the identity recognition fails.
[0123] Optionally, the determination module 310 is specifically configured to:
[0124] If the target terminal device to be disconnected is in a connected state or a connecting state with the vehicle-mounted terminal, determine the connection method between the target terminal device and the vehicle-mounted terminal.
[0125] The disconnection device provided in the embodiments of the present invention can execute the disconnection method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.
[0126] Embodiment 4
[0127] Figure 5 It is a schematic structural diagram of a vehicle-mounted terminal according to Embodiment 4 of the present invention. As Figure 5 shown, the vehicle-mounted terminal includes a processor 40, a memory 41, an input device 42, and an output device 43; the number of processors 40 in the vehicle-mounted terminal can be one or more.Figure 5 Taking a processor 40 in the vehicle-mounted terminal as an example; the processor 40, the memory 41, the input device 42, and the output device 43 in the vehicle-mounted terminal can be connected through a bus or other means. Figure 5 Taking the connection through the bus as an example.
[0128] The memory 41, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the disconnection method in the first embodiment of the present disclosure (for example, the determination module 310, the identification module 320, and the disconnection module 330). The processor 40 executes various functional applications and data processing of the vehicle-mounted terminal by running the software programs, instructions, and modules stored in the memory 41, that is, implements the above-mentioned disconnection method.
[0129] The memory 41 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the terminal, etc. In addition, the memory 41 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some instances, the memory 41 can further include a memory remotely set relative to the processor 40, and these remote memories can be connected to the vehicle-mounted terminal through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0130] The input device 42 can be used to receive input digital or character information, and generate key signal inputs related to the user settings and function controls of the vehicle-mounted terminal. The output device 43 can include a display device such as a display screen.
[0131] Embodiment Five
[0132] The fifth embodiment of the present disclosure also provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute the disconnection method when executed by a computer processor. The method includes:
[0133] Determine the connection method between the target terminal device to be disconnected and the vehicle-mounted terminal;
[0134] Identify the identity of the target terminal device according to the connection method;
[0135] If the identity identification is successful, then disconnect the communication connection between the target terminal device and the vehicle-mounted terminal.
[0136] Of course, for a storage medium containing computer-executable instructions provided by an embodiment of the present disclosure, the computer-executable instructions are not limited to the method operations described above, and can also execute related operations in the disconnection method provided by the first embodiment of the present disclosure.
[0137] From the above description of the embodiments, those skilled in the art can clearly understand that the present disclosure can be implemented by means of software and the necessary general hardware. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. Based on this understanding, the technical solution of the present disclosure, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as a floppy disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (FLASH), a hard disk, or an optical disc of a computer, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present disclosure.
[0138] It should be noted that in the embodiments of the above-mentioned disconnection device, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction, and are not used to limit the protection scope of the present disclosure.
Claims
1. A method for disconnecting, characterized in that, Applied to an in-vehicle terminal, the method includes: Determine the connection method between the target terminal device to be disconnected and the in-vehicle terminal; Identify the target terminal device according to the connection method; If the identity identification is successful, disconnect the communication connection between the target terminal device and the in-vehicle terminal; The identifying the target terminal device according to the connection method includes: If the connection method is a wired connection, obtain the first device identification information carried in the device management instruction; the first device identification information is the USB serial number of the terminal device; Identify the target terminal device according to the first device identification information; If the connection method is a Bluetooth connection, obtain the second device identification information carried in the device management instruction; the second device identification information is the Bluetooth address of the terminal device; Identify the target terminal device according to the second device identification information; If the connection method is a local area network connection, determine whether the first device identification information and / or the second device identification information is carried in the device management instruction. If the values of both the first device identification information and the second device identification information are empty, the identity identification is successful; otherwise, the identity identification fails.
2. The method according to claim 1, wherein The target terminal device corresponds to the device management instruction. Before determining the connection method between the target terminal device to be disconnected and the in-vehicle terminal, it further includes: Obtain the device management instruction for the target terminal device.
3. The method according to claim 2, characterized in that, The device management instruction includes a device information deletion instruction. After disconnecting the communication connection between the target terminal device and the in-vehicle terminal, it further includes: Delete the device information of the target terminal device stored in the in-vehicle terminal.
4. The method according to claim 1, wherein It further includes: If the identity identification fails, keep the communication connection between the target terminal device and the in-vehicle terminal.
5. The method according to claim 1, wherein The determining the connection method between the target terminal device to be disconnected and the in-vehicle terminal includes: If the target terminal device to be disconnected and the in-vehicle terminal are in a connected state or a connecting state, determine the connection method between the target terminal device and the in-vehicle terminal.
6. A disconnection device, characterized in that, Configured in an in-vehicle terminal, it includes: A determining module, configured to determine the connection method between the target terminal device to be disconnected and the in-vehicle terminal; An identifying module, configured to identify the target terminal device according to the connection method; A disconnecting module, configured to disconnect the communication connection between the target terminal device and the in-vehicle terminal if the identity identification is successful; The identifying the target terminal device according to the connection method includes: If the connection method is a wired connection, obtain the first device identification information carried in the device management instruction; the first device identification information is the USB serial number of the terminal device; Identify the target terminal device according to the first device identification information; If the connection method is Bluetooth connection, obtain the second device identification information carried in the device management instruction; the second device identification information is the Bluetooth address of the terminal device; Perform identity recognition on the target terminal device according to the second device identification information; If the connection method is LAN connection, determine whether the device management instruction carries the first device identification information and / or the second device identification information, and generate a determination result; Perform identity recognition on the target terminal device according to the determination result; Among them, determining whether the device management instruction carries the first device identification information and / or the second device identification information, and generating a determination result; performing identity recognition on the target terminal device according to the determination result, includes: If the values of both the first device identification information and the second device identification information are empty, the identity recognition is successful; otherwise, the identity recognition fails.
7. A vehicle-mounted terminal, characterized in that, The vehicle-mounted terminal includes at least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the disconnection method according to any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the disconnection method according to any one of claims 1-5 when executed by a processor.
Citation Information
Patent Citations
Terminal and equipment connection management method
CN102999251A
Bluetooth connection method, terminal and Bluetooth device
CN107770775A