A wireless communication connection method, an electronic device, and a storage medium

The wireless communication method in vehicle infotainment systems addresses connection disruptions by prioritizing reconnection of target protocols, ensuring uninterrupted connectivity for multiple devices.

CN115442920BActive Publication Date: 2025-07-15SHANGHAI PATEO INTERNET TECH SERVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110626861.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-04
Publication Date
2025-07-15
Estimated Expiration
2041-06-04

AI Technical Summary

Technical Problem

In the prior art, when multiple mobile phones are connected to the vehicle at the same time, there is a lack of an effective return solution after communication is interrupted, resulting in unstable communication connections and affecting user experience.

Method used

After detecting the communication connection interruption, determine the terminal to be connected, send the connection request according to the status of other communication connections, and stop the request when the preset number reaches. Use the timer and wireless communication physical link status information to optimize the connection process to ensure that other connections are not interrupted, and support multiple terminals to connect to the vehicle at the same time.

Benefits of technology

It realizes quick and reliable connection recovery when communication is interrupted, avoids other connection interruptions, shortens the waiting time for back connections, and improves the stability and user experience of multi-terminal connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115442920B_ABST
    Figure CN115442920B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a wireless communication connection method, an electronic device, and a storage medium, which relate to the field of communication technologies. The method includes: detecting that a first communication connection is interrupted; determining a terminal to be connected; detecting the status of other communication connections except the first communication connection; sending a communication connection request to the terminal to be connected according to the status of other communication connections; stopping sending the communication connection request when a communication connection is established with the terminal to be connected; and stopping sending the communication connection request when the number of times of sending the communication connection request reaches a preset number. The solution of the present invention will perform reconnection according to the status of other communication connections when a communication connection is interrupted, avoid the disconnection of other connected devices, provide a reconnection solution that supports multiple terminals to be connected to the vehicle-mounted device simultaneously, ensure the normal use of multiple communication connections, and meet the usage requirements of multiple terminals to be connected to the vehicle-mounted device simultaneously.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the continuous development of communication technology, currently there are solutions where the in-vehicle device supports multiple mobile phones to connect to different communication protocols of the in-vehicle device simultaneously to meet the usage needs of different users. After a mobile phone is connected to the in-vehicle device, if the mobile phone is out of the range of the in-vehicle device or the Bluetooth of the mobile phone has an abnormality, the communication between the in-vehicle device and the mobile phone will be interrupted and a reconnection is required. However, currently there is no reconnection solution for the case where multiple mobile phones are connected to the in-vehicle device simultaneously, and this problem needs to be solved urgently. Summary of the Invention

[0003] One advantage of the present invention is to provide a wireless communication connection method, an electronic device, and a storage medium. When a communication connection is interrupted, it will perform a reconnection according to the status of other communication connections, avoiding the disconnection of the communication of other connected devices, providing a reconnection solution for supporting multiple terminals to connect to the in-vehicle device simultaneously, ensuring the normal use of multiple communication connections, and meeting the usage needs of multiple terminals to connect to the in-vehicle device simultaneously.

[0004] Another advantage of the present invention is to provide a wireless communication connection method, an electronic device, and a storage medium. When a communication connection is interrupted, only the corresponding target communication protocol is reconnected, which can ensure the rapid recovery of the interrupted communication connection and will not disconnect the communication connections of other connected devices.

[0005] Another advantage of the present invention is to provide a wireless communication connection method, an electronic device, and a storage medium. When a communication connection is interrupted, the target terminal where the interruption occurs is determined for reconnection, which can ensure the rapid recovery of the communication connection of the previously interrupted terminal for normal use.

[0006] Another advantage of the present invention is to provide a wireless communication connection method, an electronic device, and a storage medium. When a communication connection is interrupted, the historical terminal list is traversed for reconnection, which can ensure a quick connection to an available terminal for rapid recovery of use.

[0007] Another advantage of the present invention is to provide a wireless communication connection method, an electronic device, and a storage medium. When a terminal with priority connection is set, the terminal with priority connection is used as the first terminal to be tried for connection during the reconnection process, enabling the user to flexibly set the terminal for reconnection and improving convenience.

[0008] Another advantage of the present invention is to provide a wireless communication connection method, an electronic device, and a storage medium. By using a timer to periodically detect the status of establishing a communication connection for reconnection, the waiting time for reconnection can be shortened to achieve efficient and rapid reconnection.

[0009] Another advantage of the present invention lies in providing a wireless communication connection method, an electronic device, and a storage medium. By using the change information of the connection state of the wireless communication physical link, the state of establishing a communication connection can be accurately and quickly determined, improving the processing efficiency.

[0010] Other advantages and features of the present invention are fully embodied by the following detailed description and can be achieved by the combination of means specifically pointed out in the appended claims.

[0011] According to one aspect of the present invention, a wireless communication connection method of the present invention capable of achieving the foregoing and other objects and advantages includes:

[0012] Detecting that a first communication connection is interrupted;

[0013] Determining a terminal to be connected;

[0014] Detecting the states of other communication connections except the first communication connection;

[0015] Sending a communication connection request to the terminal to be connected according to the states of the other communication connections;

[0016] Stopping sending the communication connection request when a communication connection is established with the terminal to be connected;

[0017] Stopping sending the communication connection request when the number of times of sending the communication connection request reaches a preset number of times.

[0018] According to another aspect of the present invention, an electronic device of the present invention capable of achieving the foregoing and other objects and advantages includes: a processor, a communication interface, a memory, and a communication bus; wherein, the processor, the communication interface, and the memory complete communication with each other through the communication bus;

[0019] The memory is used for storing a computer program;

[0020] The processor is used for implementing the steps in the wireless communication connection method as described above when executing the program stored in the memory.

[0021] According to another aspect of the present invention, a computer-readable storage medium of the present invention capable of achieving the foregoing and other objects and advantages has a computer program stored thereon, and when the program is executed by a processor, it implements the wireless communication connection method as described above.

[0022] These and other objects, features, and advantages of the present invention are fully embodied by the following detailed description, the drawings, and the claims. Description of the Drawings

[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments.

[0024] Figure 1 It is a schematic flowchart of a wireless communication connection method provided by an embodiment of the present invention;

[0025] Figure 2 It is another schematic flowchart of a wireless communication connection method provided by an embodiment of the present invention;

[0026] Figure 3 It is yet another schematic flowchart of a wireless communication connection method provided by an embodiment of the present invention;

[0027] Figure 4 It is a schematic diagram of an application scenario of a wireless communication connection method provided by an embodiment of the present invention;

[0028] Figure 5 It is a schematic block diagram of an electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0029] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments in the following description are only examples, and those skilled in the art can think of other obvious variations. The basic principles defined in the following description can be applied to other implementation schemes, variant schemes, improvement schemes, equivalent schemes, and other technical schemes that do not deviate from the spirit and scope of the present invention.

[0030] It can be understood that the term "one" should be understood as "at least one" or "one or more". That is, in one embodiment, the number of an element can be one, while in other embodiments, the number of this element can be multiple. The term "one" cannot be understood as a limitation on the number.

[0031] Referring to Figure 1 As shown, a wireless communication connection method of a preferred embodiment of the present invention includes:

[0032] Step 101: Detect that the first communication connection is interrupted.

[0033] Here, the in-vehicle device supports multiple terminals (such as mobile phones) to connect to different communication protocols of the in-vehicle device at the same time. When detecting that the first communication connection is interrupted, it can quickly respond for reconnection.

[0034] Step 102: Determine the terminal to be connected.

[0035] Here, when detecting that the first communication connection is interrupted, first determine the terminal to be connected for reconnection with it.

[0036] Among them, the embodiments of the present invention support multiple ways to determine the terminal to be connected to adapt to different requirements, which will be introduced in detail later.

[0037] Step 103: Detect the status of other communication connections except the first communication connection.

[0038] Here, after determining the terminal to be connected, it is necessary to detect the status of other communication connections except the disconnected first communication connection, so as to perform reconnection according to the status of other communication connections, so as to avoid interference and interruption of other communication connections during reconnection.

[0039] Step 104: Send a communication connection request to the terminal to be connected according to the status of the other communication connections.

[0040] Here, after detecting the status of other communication connections, reconnection will be performed according to the status of other communication connections, so as to avoid disconnection of the communication of other connected devices, ensure the normal use of multiple communication connections, and meet the usage requirements of multiple terminals (such as mobile phones) connecting to the in-vehicle unit through different communication protocols.

[0041] Step 105: Stop sending the communication connection request when establishing a communication connection with the terminal to be connected.

[0042] Here, when establishing a communication connection with the terminal to be connected, that is, when the reconnection is successful, stop sending the communication connection request to release resources.

[0043] Step 106: Stop sending the communication connection request when the number of times of sending the communication connection request reaches a preset number of times.

[0044] Here, in the embodiments of the present invention, multiple attempts can be made to send a communication connection request during reconnection, but the communication connection request is not sent without limit. Instead, an upper limit on the number of send times is set. When the number of times of sending the communication connection request reaches the preset number of times, stop sending the communication connection request to ensure the reliability of reconnection while avoiding unlimited sending and optimizing the solution.

[0045] Among them, the preset number of times can be set to any value according to requirements. For example, the preset number of times can be 90 times.

[0046] The wireless communication connection method of the embodiments of the present invention will perform reconnection according to the status of other communication connections when a communication connection is interrupted, avoiding disconnection of the communication of other connected devices, providing a reconnection solution that supports multiple terminals to connect to the in-vehicle unit at the same time, ensuring the normal use of multiple communication connections, and meeting the usage requirements of multiple terminals (such as mobile phones) connecting to the in-vehicle unit at the same time.

[0047] As an alternative embodiment, the above step 104 includes:

[0048] Step 1041: When the other communication connection is established, determine the communication protocol occupied by the other communication connection.

[0049] Here, when the first communication connection is disconnected and the other communication connection is established, first determine the communication protocol occupied by the other communication connection to avoid interference with the communication protocol occupied by the other communication connection and ensure connectivity.

[0050] Step 1042: Determine other communication protocols except the occupied communication protocol.

[0051] Here, after determining the communication protocol occupied by the other communication connection, further determine other communication protocols except the occupied communication protocol to send a communication connection request using other communication protocols and avoid interference with the occupied communication protocol.

[0052] Step 1043: Send a communication connection request to the terminal to be connected through the other communication protocol.

[0053] Here, send a communication connection request to the terminal to be connected through other communication protocols except the occupied communication protocol for reconnection, avoiding interference and interruption to other communication connections during reconnection, ensuring the normal use of multiple communication connections, and meeting the usage requirements of multiple terminals (such as mobile phones) connecting to the in-vehicle head unit through different communication protocols simultaneously.

[0054] For example, assume that the in-vehicle head unit supports multiple mobile phones connecting to the in-vehicle head unit through HFP (Hands-Free Profile) and A2DP (Advanced Audio Distribution Profile) simultaneously. When the communication connection corresponding to the A2DP protocol is interrupted and the communication connection corresponding to the HFP protocol is established, determine that the other communication protocol except the HFP protocol is A2DP. Then send a communication connection request to the terminal to be connected through the A2DP protocol to ensure that the communication connection corresponding to the HFP protocol is not interrupted and meet the usage requirements of multiple mobile phones connecting to the in-vehicle head unit through different communication protocols simultaneously. When the communication connection corresponding to the A2DP protocol is interrupted and the communication connection corresponding to the HFP protocol is not established, a communication connection request can be sent to the terminal to be connected through either the HFP or A2DP protocol.

[0055] At this time, when a communication connection is interrupted, perform reconnection through other unoccupied communication protocols to avoid interference and interruption to other communication connections.

[0056] As an optional implementation manner, the above Step 1042 includes:

[0057] Step 10421: Determine the target communication protocol used by the first communication connection.

[0058] Here, when the first communication connection is disconnected and other communication connections are established, the target communication protocol used by the interrupted first communication connection is determined, so as to send a communication connection request using the target communication protocol, avoiding interference with other occupied communication protocols.

[0059] The above step 1043 includes:

[0060] Step 10431: Send a communication connection request to the to-be-connected terminal through the target communication protocol.

[0061] Here, when a communication connection is interrupted, only the corresponding target communication protocol is reconnected, ensuring that the interrupted communication connection can be quickly restored and the communication connections of other connected devices will not be disconnected, ensuring the normal use of multiple communication connections and meeting the usage requirements of multiple terminals (such as mobile phones) connecting to the vehicle head unit through different communication protocols at the same time.

[0062] As mentioned above, the embodiments of the present invention can be adapted to different requirements and support multiple ways to determine the to-be-connected terminal. The following is an introduction.

[0063] Method 1. Optionally, the above step 102 includes:

[0064] Step 1021: Determine the target terminal corresponding to the first communication connection.

[0065] Here, when the first communication connection is disconnected, the target terminal corresponding to the first communication connection is determined to be used as the to-be-connected terminal for reconnection.

[0066] Step 1022: Use the target terminal as the to-be-connected terminal.

[0067] Here, using the target terminal where the interruption occurs as the to-be-connected terminal for reconnection can ensure that the previously interrupted terminal quickly restores the communication connection for normal use.

[0068] For example, assume that mobile phone A and mobile phone B are connected to the vehicle head unit through different communication protocols. When the first communication connection between mobile phone A and the vehicle head unit is disconnected, the target terminal corresponding to the first communication connection, that is, mobile phone A, is determined as the to-be-connected terminal for reconnection, so that mobile phone A can quickly restore the communication connection with the vehicle head unit for normal use.

[0069] Method 2. Optionally, the above step 102 includes:

[0070] Step 1023: Traverse the list of historical terminals that have been connected.

[0071] Here, when the first communication connection is disconnected, according to requirements, the entire list of historical terminals can also be reconnected. First, traverse the list of historical terminals to find connectable terminals.

[0072] Among them, the historical terminal list refers to a list that records all the terminals that have been connected. Whenever a communication connection occurs, the connected terminal can be recorded in this historical terminal list.

[0073] Among them, in order to maintain the accuracy of the historical terminal list, the terminals that have not been connected for a long time (such as exceeding a preset time) in the historical terminal list can also be cleared regularly, or a clearing operation of the user is received, and the corresponding terminal is cleared according to the clearing operation of the user.

[0074] Among them, the MAC (Media Access Control Address) of different terminals can be recorded in the historical terminal list. When sending a communication connection request to the terminal to be connected, it can be sent based on the MAC address of the terminal, but not limited to this.

[0075] Step 1024: Use the traversed terminal as the terminal to be connected in turn.

[0076] Here, using the terminals traversed from the historical terminal list as the terminals to be connected in turn to attempt to connect can ensure quickly connecting to the available terminals to quickly resume use.

[0077] For example, assume that the historical terminal list includes five mobile phones, namely mobile phone A, mobile phone B, mobile phone C, mobile phone D, and mobile phone E. The historical terminal list can be traversed, and the traversed mobile phones A, B, C, D, and E are used as the terminals to be connected in turn to send communication connection requests to attempt to connect.

[0078] In an embodiment of the present invention, in order to improve the flexibility of the setting, optionally, before the above step 1023, the method further includes:

[0079] Step 1001: Detect whether a terminal with a preferred connection is set;

[0080] Step 1002: When a terminal with a preferred connection is set, set the terminal with the preferred connection as the first terminal to be traversed in the historical terminal list.

[0081] Here, the mobile phones that the user may often use are relatively fixed for the user. Therefore, it can be set as the terminal with a preferred connection. Every time a communication interruption occurs, the terminal with the preferred connection is used as the first terminal to be traversed in the historical terminal list, that is, the first terminal to attempt to connect during the reconnection process, to facilitate the user's use, so that the user can flexibly set the reconnected terminal and improve the convenience.

[0082] In the prior art, when the mobile phone is out of the range of the in-vehicle unit or the Bluetooth of the mobile phone is abnormal, the time of the data packet reported to the in-vehicle unit is usually within 4-5 seconds. The reconnection occurs after receiving the data packet, and the next connection will be initiated within 6-10 seconds. Therefore, the next connection occurs 15 seconds after the first connection, with a relatively long interval time and a long reconnection waiting time, which affects the experience.

[0083] To shorten the reconnection waiting time, optionally, step 104 includes:

[0084] Step 1044: Start a timer.

[0085] Here, when detecting the interruption of the first communication connection, start a timer to use the timer for timed reconnection and shorten the reconnection waiting time.

[0086] Among them, the timing time of the timer can be set to any value according to requirements. For example, the timing time of the timer can be 2 seconds.

[0087] Step 1045: According to the status of the other communication connection, send a communication connection request to the terminal to be connected.

[0088] Here, after starting the timer, according to the status of the other communication connection, send a communication connection request to the terminal to be connected for reconnection.

[0089] Step 1046: Every time the timing time of the timer is reached, detect whether a communication connection is established with the terminal to be connected.

[0090] Here, every time the timing time of the timer is reached, detect whether a communication connection is established with the terminal to be connected, that is, whether the reconnection is successful. According to the detection result, when the reconnection fails, try to reconnect again.

[0091] Step 1047: When a communication connection is not established with the terminal to be connected, re-execute the step of sending a communication connection request to the terminal to be connected.

[0092] Here, when a communication connection is not established with the terminal to be connected, that is, when the reconnection fails, resend the next communication connection request and try to reconnect again, so as to reconnect once every interval of the timing time of the timer, and the reconnection waiting time can be controlled within a short time.

[0093] Step 1048: When a communication connection is established with the terminal to be connected, turn off the timer.

[0094] Here, when a communication connection is established with the terminal to be connected, that is, when the reconnection is successful, turn off the timer to release resources.

[0095] Step 1049: When the number of times of sending the communication connection request reaches the preset number of times, turn off the timer.

[0096] Here, when the number of times of sending communication connection requests reaches a preset number of times, the timer is turned off and the sending of communication connection requests is stopped, which can ensure the reliability of the reconnection while avoiding unlimited sending and optimizing the solution.

[0097] Among them, the embodiments of the present invention also support setting an upper limit on the automatic reconnection time. Based on this upper limit and the timing time of the timer, the upper limit on the number of times of sending communication connection requests, that is, the preset number of times, can be calculated. For example, assuming that the upper limit on the automatic reconnection time is set to 3 minutes and the timing time of the timer is 2 seconds, the preset number of times can be calculated to be 90 times.

[0098] At this time, by timing the reconnection through the timer, the reconnection waiting time can be shortened, and efficient and fast reconnection can be achieved.

[0099] Optionally, in the above step 1046, the step of detecting whether a communication connection is established with the terminal to be connected includes:

[0100] Step 10461: Detect whether change information on the connection state of the wireless communication physical link is received.

[0101] Here, the premise for establishing a communication connection is the successful connection of the wireless communication physical link. Therefore, every time the timing time of the timer arrives, it is detected whether change information on the connection state of the wireless communication physical link is received to determine whether the communication connection is successfully established.

[0102] Among them, the wireless communication physical link can be, for example, ACL (Asynchronous Connection less), but is not limited thereto.

[0103] Step 10462: When the change information is received, determine whether a communication connection is established with the terminal to be connected according to the change information.

[0104] Here, if change information on the connection state of the wireless communication physical link (such as ACL) is received, it can be determined whether a communication connection is established with the terminal to be connected according to the change information, that is, whether the reconnection is successful.

[0105] Among them, if change information on the connection state of the wireless communication physical link is received and the change information indicates that the wireless communication physical link is successfully connected, it can be determined that a communication connection is established with the terminal to be connected; if the change information indicates that the wireless communication physical link connection fails, it can be determined that a communication connection is not established with the terminal to be connected.

[0106] Taking the wireless communication physical link as an ACL as an example, if the change information of the ACL connection state indicates that the ACL connection is successful, it can be determined that a communication connection is established with the terminal to be connected. If the change information of the ACL connection state indicates that the ACL connection fails, it can be determined that no communication connection is established with the terminal to be connected.

[0107] Step 10463: When the change information is not received, each time the timing time of the timer is reached, the number of times of sending a communication connection request is increased by one, and the step of detecting whether the change information of the wireless communication physical link connection state is received is executed again.

[0108] Here, generally, regardless of whether a communication connection is established with the terminal to be connected, the change information of the wireless communication physical link connection state will be received. If not, there is often a fault or error. In this step, when the change information of the wireless communication physical link connection state is not received, each time the timing time of the timer is reached, it is detected again whether the change information of the wireless communication physical link connection state is received. When the fault or error is recovered, the change information will be received to determine whether the communication connection is successfully established. If the fault or error cannot be recovered, the step of detecting the change information is looped, and the number of times of sending a communication connection request is increased until the number of times of sending a communication connection request accumulates to a preset number, the timer is turned off, and the reconnection is exited.

[0109] At this time, using the change information of the wireless communication physical link connection state, the state of establishing a communication connection can be accurately and quickly determined, improving the processing efficiency.

[0110] The wireless communication connection method of the embodiment of the present invention, as Figure 4 shown, can be applied to the wireless communication connection between the vehicle head unit and the mobile phone, but is not limited thereto.

[0111] A specific application process of the wireless communication connection method of the embodiment of the present invention is illustrated as follows.

[0112] As Figure 2 shown, an application process of the wireless communication connection method of the embodiment of the present invention includes:

[0113] Step 201: Detect that the first communication connection is interrupted.

[0114] Step 202: Start the timer and set the timer timing time to 2 seconds.

[0115] Step 203: According to the requirement, determine whether the vehicle head unit supports multiple terminals to simultaneously connect to different communication protocols of the vehicle head unit. If so, enter Step 204A; if not, enter Step 204B.

[0116] Step 204A: Determine whether there is any other communication connection except the first communication connection currently. If so, proceed to Step 205A; if not, proceed to Step 204B.

[0117] Step 205A: According to the requirement, determine whether it is necessary to reconnect the entire historical terminal list when a communication connection interruption occurs at the in-vehicle unit. If so, proceed to Step 206A1; if not, proceed to Step 206A2.

[0118] Step 206A1: Traverse the historical terminal list, and use the terminals traversed to be the terminals to be connected for each reconnection request in turn, and then proceed to Step 207A.

[0119] Step 206A2: Determine the target terminal corresponding to the first communication connection, and use the target terminal as the terminal to be connected, and then proceed to Step 207A.

[0120] Step 207A: Determine whether the number of times of sending the communication connection request has reached the preset number of times. If so, proceed to Step 2015A; if not, proceed to Step 208A.

[0121] Step 208A: Determine whether the communication protocol occupied by other communication connections is HFP. If so, proceed to Step 209A; if not, proceed to Step 2010A.

[0122] Here, it is assumed that the in-vehicle unit supports simultaneous connection of multiple mobile phones to the in-vehicle unit for HFP and A2DP.

[0123] Step 209A: Send a communication connection request to the terminal to be connected through A2DP, and then proceed to Step 2011A.

[0124] Step 2010A: Send a communication connection request to the terminal to be connected through HFP, and then proceed to Step 2011A.

[0125] Step 2011A: Increment the number of times of sending the communication connection request by 1, and then proceed to Step 2012A.

[0126] Step 2012A: When the timing time of the timer is reached, detect whether the change information of the ACL connection status is received. If so, proceed to Step 2014A; if not, proceed to Step 2013A.

[0127] Step 2013A: Wait for the next 2 seconds, and then proceed to Step 2011A.

[0128] Step 2014A: According to the change information of the ACL connection status, determine whether the ACL connection is successful. If so, proceed to Step 2015A; if not, return to Step 205A.

[0129] Step 2015A: Turn off the timer and then proceed to Step 2016A.

[0130] Step 2016A: The reconnection is over. Stop sending communication connection requests.

[0131] Step 204B: According to the requirement, when a communication connection interruption occurs at the in-vehicle device end, determine whether it is necessary to reconnect to the entire historical terminal list. If so, proceed to Step 205B1; if not, proceed to Step 205B2.

[0132] Step 205B1: Traverse the historical terminal list, and use the terminals traversed to be the terminals to be connected for each reconnection request in turn. Then proceed to Step 206B.

[0133] Step 205B2: Determine the target terminal corresponding to the first communication connection, and use the target terminal as the terminal to be connected. Then proceed to Step 206B.

[0134] Step 206B: Determine whether the number of times of sending communication connection requests has reached the preset number of times. If so, proceed to Step 2013B; if not, proceed to Step 207B.

[0135] Step 207B: Send a communication connection request to the terminal to be connected via HFP. Then proceed to Step 208B.

[0136] Step 208B: Increment the number of times of sending communication connection requests by 1. Then proceed to Step 209B.

[0137] Step 209B: When the timing time of the timer is reached, detect whether the change information of the ACL connection status is received. If so, proceed to Step 2011B; if not, proceed to Step 2010B.

[0138] Step 2010B: Wait for the next 2 seconds. Then proceed to Step 208B.

[0139] Step 2011B: According to the change information of the ACL connection status, determine whether the ACL connection is successful. If so, proceed to Step 2012B; if not, return to Step 204B.

[0140] Step 2012B: Send a communication connection request to the terminal to be connected via A2DP. Then proceed to Step 2013B.

[0141] Step 2013B: Turn off the timer. Then proceed to Step 2014B.

[0142] Step 2014B: The reconnection is over. Stop sending communication connection requests.

[0143] The wireless communication connection method according to the embodiment of the present invention will perform reconnection according to the status of other communication connections when a communication connection is interrupted, avoiding disconnection of other connected devices, providing a reconnection solution that supports simultaneous connection of multiple terminals to the in-vehicle unit, ensuring the normal use of multiple communication connections, and meeting the usage requirements of multiple terminals (such as mobile phones) to simultaneously connect to the in-vehicle unit.

[0144] In the embodiment of the present invention, the solution of shortening the reconnection waiting time by timing reconnection through a timer can also be applied when the in-vehicle unit is powered on and connected to the terminal (such as a mobile phone) for the first time to quickly connect to the terminal.

[0145] Such as Figure 3 shown, it is another application process of the wireless communication connection method according to the embodiment of the present invention, including:

[0146] Step 301: Turn on Bluetooth.

[0147] Step 302: Start a timer and set the timer timing time to 2 seconds.

[0148] Step 303: According to the requirement, determine whether a terminal with priority connection is set. If so, enter Step 3041; if not, enter Step 3042.

[0149] Step 3041: Use the terminal with priority connection as the first terminal to be traversed in the historical terminal list, and then enter Step 3042.

[0150] Here, the terminal with priority connection can be directly set at the top of the historical terminal list.

[0151] Step 3042: Traverse the historical terminal list, and use the traversed terminal as the terminal to be connected for each connection request in turn, and then enter Step 305.

[0152] Step 305: Determine whether the number of times of sending a communication connection request reaches the preset number of times. If so, enter Step 3012; if not, enter Step 306.

[0153] Step 306: Send a communication connection request to the terminal to be connected through HFP, and then enter Step 307.

[0154] Step 307: Increment the number of times of sending a communication connection request by 1, and then enter Step 308.

[0155] Step 308: When the timing time of the timer is reached, detect whether the change information of the ACL connection status is received. If so, enter Step 3010; if not, enter Step 309.

[0156] Step 309: Wait for the next 2 seconds, and then enter Step 307.

[0157] Step 3010: Determine whether the ACL is successfully connected according to the change information of the ACL connection status. If so, proceed to Step 3011; if not, return to Step 3042.

[0158] Step 3011: Send a communication connection request to the terminal to be connected via A2DP, and then proceed to Step 3012.

[0159] Step 3012: Turn off the timer, and then proceed to Step 3013.

[0160] Step 3013: The Bluetooth automatic connection is completed, and the communication connection request stops being sent.

[0161] In the wireless communication connection method according to the embodiment of the present invention, by timing the connection with a timer, the reconnection waiting time can be controlled within a short time, achieving a more efficient and rapid reconnection to the terminal.

[0162] Those skilled in the art of the relevant technical field know that various aspects of the present invention can be implemented as a system, a method, or a computer program product. Therefore, various aspects of the present invention can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, resident software, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuit", "module", or "system" herein. In addition, in some embodiments, various aspects of the present invention can also be implemented in the form of a computer program product in one or more computer-readable media, which contain computer-readable program codes.

[0163] Any combination of one or more computer-readable media can be adopted. The computer-readable media can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the computer-readable storage medium include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in combination with an instruction execution system, apparatus, or device.

[0164] A computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which computer-readable program code is carried. Such a propagated data signal can take many forms, including - but not limited to - electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.

[0165] The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including - but not limited to - wireless, wireline, optical fiber cable, RF, and the like, or any suitable combination of the foregoing.

[0166] The computer program code for performing the operations of the present invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or, alternatively, can be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0167] It should be understood that each block of the flowchart and / or block diagram of the embodiments of the present invention, and combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, thereby producing a machine such that when the computer program instructions are executed by the processor of the computer or other programmable data processing apparatus, a means for implementing the functions / acts specified in one or more blocks of the flowchart and / or block diagram is produced.

[0168] These computer program instructions can also be stored in a computer-readable medium, which can direct a computer, other programmable data processing apparatus, or other device to operate in a particular manner, such that the instructions stored in the computer-readable medium produce an article of manufacture including instructions for implementing the functions / acts specified in one or more blocks of the flowchart and / or block diagram.

[0169] Computer program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other devices, causing a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other devices to generate a computer-implemented process, so that the instructions executed on the computer or other programmable apparatus provide a process for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0170] Figure 5 FIG. shows a block diagram of an exemplary electronic device suitable for implementing embodiments of the present invention. The electronic device can be, for example, a computer system / server 12. Figure 5 The shown computer system / server 12 is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present invention.

[0171] As Figure 5 shown, the computer system / server 12 is presented in the form of a general-purpose computing device. The components of the computer system / server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 connecting different system components (including the system memory 28 and the processing unit 16), and a communication interface.

[0172] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the multiple bus structures. By way of example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0173] The computer system / server 12 typically includes a variety of computer system-readable media. These media can be any available media accessible by the computer system / server 12, including volatile and non-volatile media, removable and non-removable media.

[0174] The system memory 28 can include computer system-readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer system / server 12 can further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 34 can be used for reading and writing on non-removable, non-volatile magnetic media ( Figure 5 not shown, typically referred to as a "hard disk drive"). Although Figure 5Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading and writing a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) can be provided. In these cases, each drive can be connected to the bus 18 through one or more data medium interfaces. The memory 28 may include at least one program product having a set (such as at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0175] A program / utility 40 having a set (at least one) of program modules 42 can be stored, for example, in the memory 28. Such program modules 42 include - but are not limited to - an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment. The program modules 42 generally perform the functions and / or methods in the embodiments described in the present invention.

[0176] The computer system / server 12 can also communicate with one or more external devices 14 (such as a keyboard, a pointing device, a display 24, etc.), and can also communicate with one or more devices that enable a user to interact with the computer system / server 12, and / or communicate with any device that enables the computer system / server 12 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 22. Moreover, the computer system / server 12 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN) and / or a public network, such as the Internet) through the network adapter 20. As shown in the figure, the network adapter 20 communicates with other modules of the computer system / server 12 through the bus 18. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the computer system / server 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0177] In yet another embodiment provided by the present invention, a computer-readable storage medium is also provided. Instructions are stored in the computer-readable storage medium, and when running on a computer, cause the computer to execute the wireless communication connection method described in the above embodiments.

[0178] In yet another embodiment provided by the present invention, a computer program product containing instructions is also provided. When running on a computer, cause the computer to execute the wireless communication connection method described in the above embodiments.

[0179] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present invention are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)).

[0180] It should be noted that in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including", or any other variation thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device that includes a series of elements includes not only those elements but also other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article, or device that includes the element.

[0181] Each embodiment in this specification is described in a related manner. For the same or similar parts among the embodiments, reference can be made to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.

[0182] The above are only the preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A wireless communication connection method, characterized in that, Including: When multiple terminals are simultaneously connected to different communication protocols of the vehicle head unit, it is detected that the first communication connection is interrupted; Determine the terminal to be connected; Detect the status of other communication connections except the first communication connection; According to the status of the other communication connections, send a communication connection request to the terminal to be connected; When establishing a communication connection with the terminal to be connected, stop sending the communication connection request; When the number of times of sending the communication connection request reaches a preset number of times, stop sending the communication connection request; Wherein, the step of sending a communication connection request to the terminal to be connected according to the status of the other communication connections includes: When the other communication connection is established, determine the communication protocol occupied by the other communication connection; Determine other communication protocols except the occupied communication protocol; Send a communication connection request to the terminal to be connected through the other communication protocols, so as to avoid interfering with the communication connections of other terminals and causing the communication connections of other terminals to be interrupted.

2. The wireless communication connection method according to claim 1, wherein the step of determining other communication protocols except the occupied communication protocol includes: Determine the target communication protocol used by the first communication connection; The step of sending a communication connection request to the terminal to be connected through the other communication protocols includes: Send a communication connection request to the terminal to be connected through the target communication protocol.

3. The wireless communication connection method according to claim 1, wherein the step of determining the terminal to be connected includes: Determine the target terminal corresponding to the first communication connection; Use the target terminal as the terminal to be connected.

4. The wireless communication connection method according to claim 1, wherein the step of determining the terminal to be connected includes: Traverse the list of historical terminals that have been connected; Use the terminals traversed in turn as the terminal to be connected.

5. The wireless communication connection method according to claim 4, before traversing the list of historical terminals that have been connected, the method further includes: Detect whether a terminal with priority connection is set; When a terminal with priority connection is set, set the terminal with priority connection as the first terminal to be traversed in the list of historical terminals.

6. The wireless communication connection method according to claim 1, wherein the step of sending a communication connection request to the terminal to be connected according to the status of the other communication connections includes: Start a timer; Send a communication connection request to the terminal to be connected according to the status of the other communication connections; Every time the timing time of the timer is reached, detect whether a communication connection is established with the terminal to be connected; When a communication connection is not established with the terminal to be connected, re-execute the step of sending a communication connection request to the terminal to be connected; When a communication connection is established with the terminal to be connected, turn off the timer; When the number of times of sending the communication connection request reaches the preset number of times, turn off the timer.

7. The wireless communication connection method according to claim 6, wherein the step of detecting whether a communication connection is established with the terminal to be connected includes: Detect whether change information of the connection state of the wireless communication physical link is received; When receiving the change information, determine whether to establish a communication connection with the to-be-connected terminal according to the change information; When not receiving the change information, every time the timing time of the timer is reached, increase the number of times of sending communication connection requests by one, and re-execute the step of detecting whether there is a change in the wireless communication physical link connection status.

8. An electronic device, characterized in that, It includes: A processor, a communication interface, a memory, and a communication bus; wherein, the processor, the communication interface, and the memory complete mutual communication through the communication bus; The memory is used for storing computer programs; The processor, when executing the programs stored on the memory, implements the steps in the wireless communication connection method described in any one of claims 1 to 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the wireless communication connection method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Short range wireless communication apparatus

    CN102857610A

  • Bluetooth equipment, Bluetooth preemption method and device thereof, and computer readable storage medium

    CN111741456A