Method and device for interconnecting mobile terminal and vehicle-mounted terminal
The target vehicle terminal broadcasts Bluetooth information of multiple interconnection protocols and establishes connections with multiple mobile terminals, solving the needs of mobile terminals used by passengers to interconnect in-vehicle terminals, achieving fast interconnection and efficient user experience.
Patent Information
- Application Number
- CN202411527182.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-01-03
AI Technical Summary
The prior art is difficult to meet the interconnection needs of the mobile terminal used by passengers and the on-board terminal, and the existing methods require the interaction of multiple interconnection protocols when broadcasting the interconnection protocol, resulting in complex and inefficient interconnection processes.
The target vehicle terminal broadcasts Bluetooth broadcast information of multiple interconnection protocols and establishes a corresponding protocol connection with multiple mobile terminals according to the received requests, so as to realize the rapid interconnection between multiple mobile terminals and the vehicle terminal, and support the interconnection of different interconnection protocols. Improve applicability and user experience.
It realizes rapid interconnection between multiple mobile terminals and on-board terminals, simplifies the interconnection process, improves user experience and the applicability of interconnection, and meets the interconnection needs of mobile terminals and on-board terminals used by passengers.
Smart Images

Figure CN119255213A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a method, device, computer equipment and storage medium for interconnecting a mobile terminal with a vehicle-mounted terminal. Background Art
[0002] At present, the interconnection of mobile terminals and vehicle terminals has become an important function of intelligent driving. In the related art, the mobile terminal used by the driver of the vehicle is connected to the vehicle terminal through a USB data cable. However, the passengers of the vehicle often have the need to interconnect the mobile terminal used by the passengers with the vehicle terminal. How to meet the needs of the mobile terminal used by the passengers and the vehicle terminal to interconnect has become a problem that needs to be solved. Summary of the invention
[0003] One of the purposes of the present invention is to provide a method for interconnecting a mobile terminal with a vehicle-mounted terminal, so as to solve the problem of satisfying the demand for interconnecting a mobile terminal used by a passenger with a vehicle-mounted terminal.
[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0005] A method for interconnecting a mobile terminal with a vehicle-mounted terminal, applied to a vehicle, the method comprising:
[0006] The target vehicle terminal broadcasts Bluetooth broadcast information of each interconnection protocol among multiple interconnection protocols;
[0007] The target vehicle-mounted terminal is interconnected with each mobile terminal among multiple mobile terminals, including: when the target vehicle-mounted terminal receives an interconnection request corresponding to an interconnection protocol supported by the first mobile terminal sent by the first mobile terminal among the multiple mobile terminals, the target vehicle-mounted terminal and the first mobile terminal establish a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal between the target vehicle-mounted terminal and the first mobile terminal according to the interconnection protocol supported by the first mobile terminal, wherein the first mobile terminal is any one of the multiple mobile terminals, the interconnection request is generated based on the first mobile terminal receiving Bluetooth broadcast information of the interconnection protocol supported by the first mobile terminal, and each of the mobile terminals receives Bluetooth broadcast information of each interconnection protocol.
[0008] According to the above technical means, the target vehicle-mounted terminal is interconnected with multiple mobile terminals at the same time. The multiple mobile terminals may include a mobile terminal used by the driver of the target vehicle and a mobile terminal used by the passenger of the target vehicle, thereby satisfying the need for interconnection between the mobile terminal used by the passenger and the vehicle-mounted terminal. The multiple mobile terminals do not need to interact with the target vehicle-mounted terminal related to interconnection before broadcasting the Bluetooth broadcast information of each interconnection protocol in multiple interconnection protocols, thereby quickly establishing interconnection between the multiple mobile terminals and the target vehicle-mounted terminal. In addition, the interconnection between multiple mobile terminals supporting different interconnection protocols and the target vehicle-mounted terminal can be realized, thereby improving the applicability of the interconnection and improving the user experience.
[0009] Further, the broadcasting of Bluetooth broadcast information of each interconnection protocol in the plurality of interconnection protocols includes:
[0010] When there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, determining the first broadcast cycle duration of each interconnection protocol according to the most recent interconnection time of the first interconnection protocol among the multiple interconnection protocols, wherein the first interconnection protocol is an interconnection protocol with the most recent interconnection time, and the most recent interconnection time of the first interconnection protocol indicates the time when the mobile terminal supporting the first interconnection protocol and the target vehicle-mounted terminal last established a Bluetooth connection corresponding to the first interconnection protocol;
[0011] For each interconnection protocol, the Bluetooth broadcast information of the interconnection protocol is broadcast according to the first broadcast cycle duration of the interconnection protocol.
[0012] Further, the broadcasting of Bluetooth broadcast information of each interconnection protocol in the plurality of interconnection protocols includes:
[0013] When there is a second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, determining the second broadcast cycle duration of each interconnection protocol, wherein the second broadcast cycle duration of the interconnection protocol supported by the second mobile terminal is less than the second broadcast cycle duration of any second interconnection protocol, the interconnection protocol supported by the second mobile terminal is determined based on the model of the second mobile terminal extracted from the identity information of the second mobile terminal sent by the target vehicle-mounted terminal from the digital key function, and the second interconnection protocol is an interconnection protocol among the multiple interconnection protocols except for the interconnection protocol supported by the second mobile terminal;
[0014] For each interconnection protocol, the Bluetooth broadcast information of the interconnection protocol is broadcast according to the second broadcast cycle duration of the interconnection protocol.
[0015] Further, determining the second broadcast cycle duration of each interconnection protocol includes:
[0016] According to the most recent interconnection time of the target second interconnection protocol, the second broadcast cycle duration of each second interconnection protocol is determined, wherein the target second interconnection protocol is the second interconnection protocol having the most recent interconnection time.
[0017] Further, when the first mobile terminal is a mobile terminal that has not established a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal with the target vehicle-mounted terminal before broadcasting the Bluetooth broadcast information of each interconnection protocol among the multiple interconnection protocols, the interconnection request is generated based on the operation of the user of the first mobile terminal indicating that the first mobile terminal needs to be interconnected with the target vehicle-mounted terminal, and the fact that a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal has not been established with the target vehicle-mounted terminal is determined by the first mobile terminal based on the interconnection record stored by the first mobile terminal.
[0018] Furthermore, after the target vehicle-mounted terminal is interconnected with each of the multiple mobile terminals, the method further includes:
[0019] Establishing a WiFi connection corresponding to each mobile terminal, wherein the WiFi connection corresponding to the mobile terminal is a WiFi connection between the mobile terminal and a target vehicle-mounted terminal, and each mobile terminal corresponds to a different WiFi connection. Establishing a WiFi connection corresponding to each mobile terminal includes: the target vehicle-mounted terminal receives capability information sent by the mobile terminal through a Bluetooth connection corresponding to an interconnection protocol supported by the mobile terminal between the target vehicle-mounted terminal and the mobile terminal, and determines a channel corresponding to the mobile terminal and a role corresponding to the mobile terminal based on the capability information of the mobile terminal, and sends an identifier of the channel corresponding to the mobile terminal and an identifier of the role corresponding to the mobile terminal to the mobile terminal through the Bluetooth connection.
[0020] Furthermore, the capability information of the mobile terminal indicates whether the mobile terminal supports WiFi direct connection and the WiFi protocol supported by the mobile terminal.
[0021] Furthermore, each mobile terminal corresponds to a different channel, and the channel corresponding to the mobile terminal is selected from multiple channels corresponding to the frequency band adapted to the WiFi protocol supported by the mobile terminal, and the multiple channels are obtained by dividing the frequency band. The role corresponding to the mobile terminal is determined according to whether the mobile terminal supports WiFi direct connection.
[0022] Further, after establishing the WiFi connection corresponding to each mobile terminal, the method further includes:
[0023] Disconnecting the Bluetooth connection corresponding to each mobile terminal, wherein the Bluetooth connection corresponding to the mobile terminal is a Bluetooth connection between the target vehicle-mounted terminal and the mobile terminal corresponding to an interconnection protocol supported by the mobile terminal.
[0024] Furthermore, it also includes:
[0025] When the target vehicle-mounted terminal detects that the third mobile terminal is a device on the universal serial bus, the target vehicle-mounted terminal receives device information sent by the third mobile terminal, the device information including: the model of the third mobile terminal;
[0026] The target vehicle-mounted terminal determines the interconnection protocol corresponding to the model of the third mobile terminal as the interconnection protocol supported by the third mobile terminal;
[0027] The target vehicle terminal and the third mobile terminal establish a universal serial bus connection corresponding to the interconnection protocol supported by the third mobile terminal based on the interconnection protocol supported by the third mobile terminal, wherein the universal serial bus connection is used to transmit data related to the application on the third mobile terminal.
[0028] Furthermore, it also includes:
[0029] For each target mobile terminal, determine the display area of the screen of the target vehicle-mounted terminal corresponding to the target mobile terminal, wherein the target mobile terminal is a terminal that establishes a Bluetooth connection or a Universal Serial Bus connection corresponding to the interconnection protocol with the target vehicle-mounted terminal, and the display area corresponding to each target mobile terminal is different, and the display area corresponding to the target mobile terminal is used to display information related to the application on the target mobile terminal.
[0030] A device for interconnecting a mobile terminal with a vehicle-mounted terminal, characterized in that: it is installed in a target vehicle-mounted terminal, and the device for interconnecting a mobile terminal with a vehicle-mounted terminal comprises:
[0031] A broadcast unit, used for broadcasting Bluetooth broadcast information of each interconnection protocol in a plurality of interconnection protocols;
[0032] An interconnection unit interconnects with each of a plurality of mobile terminals, comprising: when receiving an interconnection request corresponding to an interconnection protocol supported by the first mobile terminal and sent by the first mobile terminal among the plurality of mobile terminals, establishing, with the first mobile terminal according to the interconnection protocol supported by the first mobile terminal, a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal between the target vehicle-mounted terminal and the first mobile terminal, wherein the first mobile terminal is any one of the plurality of mobile terminals, the interconnection request is generated based on the first mobile terminal receiving Bluetooth broadcast information of the interconnection protocol supported by the first mobile terminal, and each of the mobile terminals receives Bluetooth broadcast information of each interconnection protocol.
[0033] Furthermore, the broadcast unit is further used to determine the first broadcast cycle duration of each interconnection protocol according to the most recent interconnection time of the first interconnection protocol among the multiple interconnection protocols when there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, wherein the first interconnection protocol is an interconnection protocol with the most recent interconnection time, and the most recent interconnection time of the first interconnection protocol indicates the time when the mobile terminal supporting the first interconnection protocol and the target vehicle-mounted terminal last established a Bluetooth connection corresponding to the first interconnection protocol; for each interconnection protocol, the Bluetooth broadcast information of the interconnection protocol is broadcast according to the first broadcast cycle duration of the interconnection protocol.
[0034] Furthermore, the broadcast unit is further used to determine the second broadcast cycle duration of each interconnection protocol when there is a second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, wherein the second broadcast cycle duration of the interconnection protocol supported by the second mobile terminal is less than the second broadcast cycle duration of any second interconnection protocol, and the interconnection protocol supported by the second mobile terminal is determined based on the model of the second mobile terminal extracted from the identity information of the second mobile terminal sent by the target vehicle-mounted terminal from the digital key function, and the second interconnection protocol is an interconnection protocol among the multiple interconnection protocols except the interconnection protocol supported by the second mobile terminal; for each of the interconnection protocols, the Bluetooth broadcast information of the interconnection protocol is broadcast according to the second broadcast cycle duration of the interconnection protocol.
[0035] Furthermore, the broadcast unit is further used to determine the second broadcast cycle duration of each second interconnection protocol according to the most recent interconnection time of the target second interconnection protocol when there is a second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, wherein the target second interconnection protocol is the second interconnection protocol with the most recent interconnection time.
[0036] Further, when the first mobile terminal is a mobile terminal that has not established a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal with the target vehicle-mounted terminal before broadcasting the Bluetooth broadcast information of each interconnection protocol among the multiple interconnection protocols, the interconnection request is generated based on the operation of the user of the first mobile terminal indicating that the first mobile terminal needs to be interconnected with the target vehicle-mounted terminal, and the fact that a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal has not been established with the target vehicle-mounted terminal is determined by the first mobile terminal based on the interconnection record stored by the first mobile terminal.
[0037] Furthermore, the device for interconnecting the mobile terminal with the vehicle-mounted terminal also includes:
[0038] A WiFi connection establishing unit is used to establish a WiFi connection corresponding to each mobile terminal, wherein the WiFi connection corresponding to the mobile terminal is a WiFi connection between the mobile terminal and a target vehicle-mounted terminal, and each mobile terminal corresponds to a different WiFi connection. Establishing the WiFi connection corresponding to each mobile terminal includes: the target vehicle-mounted terminal receives capability information sent by the mobile terminal through a Bluetooth connection corresponding to an interconnection protocol supported by the mobile terminal between the target vehicle-mounted terminal and the mobile terminal, and determines a channel corresponding to the mobile terminal and a role corresponding to the mobile terminal according to the capability information of the mobile terminal, and sends an identifier of the channel corresponding to the mobile terminal and an identifier of the role corresponding to the mobile terminal to the mobile terminal through the Bluetooth connection.
[0039] Furthermore, the capability information of the mobile terminal indicates whether the mobile terminal supports WiFi direct connection and the WiFi protocol supported by the mobile terminal.
[0040] Furthermore, each mobile terminal corresponds to a different channel, and the channel corresponding to the mobile terminal is selected from multiple channels corresponding to the frequency band adapted to the WiFi protocol supported by the mobile terminal, and the multiple channels are obtained by dividing the frequency band. The role corresponding to the mobile terminal is determined according to whether the mobile terminal supports WiFi direct connection.
[0041] Furthermore, the device for interconnecting the mobile terminal with the vehicle-mounted terminal also includes:
[0042] A Bluetooth connection disconnection unit is used to disconnect the Bluetooth connection corresponding to each mobile terminal after establishing the WiFi connection corresponding to each mobile terminal, wherein the Bluetooth connection corresponding to the mobile terminal is a Bluetooth connection between the target vehicle terminal and the mobile terminal corresponding to the interconnection protocol supported by the mobile terminal.
[0043] Furthermore, the device for interconnecting the mobile terminal with the vehicle-mounted terminal also includes:
[0044] A universal serial bus connection establishing unit is used to receive device information sent by the third mobile terminal when the target vehicle-mounted terminal detects that the third mobile terminal is a device on the universal serial bus, the device information including: the model of the third mobile terminal; determining the interconnection protocol corresponding to the model of the third mobile terminal as the interconnection protocol supported by the third mobile terminal; and establishing a universal serial bus connection corresponding to the interconnection protocol supported by the third mobile terminal between the target vehicle-mounted terminal and the third mobile terminal according to the interconnection protocol supported by the third mobile terminal, wherein the universal serial bus connection is used to transmit data related to an application on the third mobile terminal.
[0045] Furthermore, the device for interconnecting the mobile terminal with the vehicle-mounted terminal also includes:
[0046] A display area determination unit is used to determine, for each target mobile terminal, a display area of the screen of a target vehicle-mounted terminal corresponding to the target mobile terminal, wherein the target mobile terminal is a terminal that establishes a Bluetooth connection or a Universal Serial Bus connection corresponding to an interconnection protocol with the target vehicle-mounted terminal, and the display area corresponding to each target mobile terminal is different, and the display area corresponding to the target mobile terminal is used to display information related to an application on the target mobile terminal.
[0047] A computer device comprising:
[0048] A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the above method by executing the computer instructions.
[0049] A computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the above method.
[0050] A computer program product, characterized in that it includes computer instructions, wherein the computer instructions are used to enable a computer to execute the above method.
[0051] Beneficial effects of the present invention:
[0052] The target vehicle-mounted terminal is interconnected with multiple mobile terminals at the same time. The multiple mobile terminals may include a mobile terminal used by the driver of the target vehicle and a mobile terminal used by the passenger of the target vehicle, thereby satisfying the need for interconnection between the mobile terminal used by the passenger and the vehicle-mounted terminal. The multiple mobile terminals do not need to interact with the target vehicle-mounted terminal related to interconnection before broadcasting the Bluetooth broadcast information of each interconnection protocol in multiple interconnection protocols, thereby quickly establishing interconnection between the multiple mobile terminals and the target vehicle-mounted terminal. In addition, the interconnection between multiple mobile terminals supporting different interconnection protocols and the target vehicle-mounted terminal can be realized, thereby improving the applicability of interconnection and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 A schematic diagram of a flow chart of a method for interconnecting a mobile terminal and a vehicle-mounted terminal provided by an embodiment of the present invention;
[0054] Figure 2 A flowchart of an example of interconnection between a target vehicle-mounted terminal and multiple mobile terminals;
[0055] Figure 3 A schematic flow chart of another method for interconnecting a mobile terminal and a vehicle-mounted terminal provided by an embodiment of the present invention;
[0056] Figure 4 A flowchart of an example of interconnection between a target vehicle-mounted terminal and a plurality of mobile terminals when the second mobile terminal does not exist among the plurality of mobile terminals;
[0057] Figure 5 A flowchart of an example of interconnection between a target vehicle-mounted terminal and multiple mobile terminals when a second mobile terminal exists among the multiple mobile terminals;
[0058] Figure 6 A schematic diagram of an example of establishing WIFI connections corresponding to multiple mobile terminals;
[0059] Figure 7 A schematic diagram of the hardware structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0060] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.
[0061] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0062] refer to Figure 1 , which shows a flow chart of a method for interconnecting a mobile terminal and a vehicle-mounted terminal provided by an embodiment of the present invention.
[0063] In step S101 , the target vehicle-mounted terminal broadcasts Bluetooth broadcast information of each interconnection protocol among a plurality of interconnection protocols.
[0064] As an example, multiple interconnection protocols include: HiCAR interconnection protocol, CarPlay interconnection protocol, CarLink interconnection protocol, etc.
[0065] It should be noted that step S101 may be executed in response to the target vehicle detecting that one of multiple trigger conditions is satisfied.
[0066] The target vehicle-mounted terminal belongs to the target vehicle.
[0067] In a possible implementation, trigger conditions such as the target vehicle being unlocked, the door of the target vehicle being opened, and the vehicle computer of the target vehicle being started are preset.
[0068] For interconnection protocol i, interconnection protocol i defines: all steps that need to be performed by the vehicle terminal during the first Bluetooth interconnection between the mobile terminal supporting interconnection protocol i and the vehicle terminal, all steps that need to be performed by the vehicle terminal during the non-first Bluetooth interconnection between the mobile terminal supporting interconnection protocol i and the vehicle terminal, all steps that need to be performed by the mobile terminal supporting interconnection protocol i during the first Bluetooth interconnection between the mobile terminal supporting interconnection protocol i and the vehicle terminal, all steps that need to be performed by the mobile terminal supporting interconnection protocol i during the non-first Bluetooth interconnection between the mobile terminal supporting interconnection protocol i and the vehicle terminal, and The type of data transmitted between a mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal during the first Bluetooth interconnection between the mobile terminal and the vehicle-mounted terminal, the type of data transmitted between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal during a non-first Bluetooth interconnection between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal, the format of data transmitted between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal during the first Bluetooth interconnection between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal, and the format of data transmitted between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal during a non-first Bluetooth interconnection between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal.
[0069] The interconnection protocol i may be any one of multiple interconnection protocols.
[0070] Each of the multiple interconnection protocols may have a different broadcast cycle duration.
[0071] In step S101, for each interconnection protocol among a plurality of interconnection protocols, Bluetooth broadcast information of the interconnection protocol may be broadcast at intervals of the broadcast cycle duration of the interconnection protocol.
[0072] It should be noted that the Bluetooth broadcast information of the interconnection protocol i is encapsulated in a Bluetooth data frame for broadcasting. The Bluetooth data frame including the Bluetooth broadcast information of the interconnection protocol i is broadcasted, thereby broadcasting the Bluetooth broadcast information of the interconnection protocol i.
[0073] In the disclosed embodiment, a plurality of preset broadcast cycle durations may be preset, and the number of the preset broadcast cycle durations is the number of the plurality of interconnection protocols.
[0074] In step S101, in order to determine the broadcast cycle duration of each interconnection protocol among a plurality of interconnection protocols, the broadcast cycle duration of each interconnection protocol among the plurality of interconnection protocols may be determined from a plurality of preset broadcast cycle durations.
[0075] For interconnection protocol i, the time interval between the moment when the Bluetooth broadcast information of the interconnection protocol is first broadcast during the execution of step S101 and the moment when step S101 starts to be executed is: the broadcast cycle duration of interconnection protocol i.
[0076] For the interconnection protocol i, the time interval between two adjacent broadcasting moments of the Bluetooth broadcast information of the interconnection protocol i during the execution of step S101 is: the broadcast cycle duration of the interconnection protocol i.
[0077] In a possible implementation, the broadcast cycle duration of each interconnection protocol is a prime number to prevent broadcast conflicts between Bluetooth broadcast information of different interconnection protocols.
[0078] As an example, the broadcast cycle duration of interconnection protocol 1 is 23 ms, the broadcast cycle duration of interconnection protocol 2 is 43 ms, the broadcast cycle duration of interconnection protocol 3 is 67 ms, and the broadcast cycle duration of interconnection protocol 4 is 79 ms.
[0079] In the embodiment of the present invention, the target vehicle-mounted terminal stores an interconnection record of each interconnection protocol among a plurality of interconnection protocols.
[0080] For interconnection protocol i, if the interconnection corresponding to the interconnection protocol i has not been performed between the mobile terminal and the target vehicle-mounted terminal within the target time period, the interconnection record of the interconnection protocol i is empty.
[0081] For interconnection protocol i, if the interconnection record of interconnection protocol i is not empty, the interconnection record of interconnection protocol i may include: the time of interconnection between the mobile terminal and the target vehicle terminal corresponding to the interconnection protocol i in the target time period, the identifier of the mobile terminal that has been interconnected with the target vehicle terminal corresponding to the interconnection protocol i in the target time period, and the number of interconnections between the mobile terminal and the target vehicle terminal corresponding to the interconnection protocol i in the target time period. The identifier of the mobile terminal may be: the MAC address of the mobile terminal.
[0082] The end time of the target time period may be: the current time, and the start time of the target time period may be: a time before the current time with a time interval of a preset duration between the current time and the current time.
[0083] In the disclosed embodiment, for an interconnection protocol i, the interconnection corresponding to the interconnection protocol i may refer to: a mobile terminal supporting the interconnection protocol i and a vehicle-mounted terminal establishing a Bluetooth connection corresponding to the interconnection protocol i between the mobile terminal supporting the interconnection protocol i and the vehicle-mounted terminal according to the interconnection protocol i.
[0084] For interconnection protocol i, the interconnection moment corresponding to the interconnection protocol i may refer to: the moment when the mobile terminal supporting the interconnection protocol i and the vehicle-mounted terminal establish a Bluetooth connection corresponding to the interconnection protocol i between the mobile terminal supporting the interconnection protocol i and the vehicle-mounted terminal according to the interconnection protocol i.
[0085] In a possible implementation, in step S101, in order to determine the broadcast cycle duration of each interconnection protocol, the number of interconnections between the mobile terminal and the target vehicle terminal corresponding to the interconnection protocol performed within the target time period may be determined for each interconnection protocol according to the interconnection record of the interconnection protocol. Multiple interconnection protocols may be sorted from most to least according to the number of interconnections between the mobile terminal and the target vehicle terminal corresponding to the interconnection protocol performed within the target time period. After sorting multiple interconnection protocols from most to least according to the number of interconnections between the mobile terminal and the target vehicle terminal corresponding to the interconnection protocol performed within the target time period, the more the number of interconnections between the mobile terminal and the target vehicle terminal corresponding to the interconnection protocol performed within the target time period, the more the position of the interconnection protocol is closer to the front, and the shorter the broadcast cycle duration of the interconnection protocol is. The fewer the number of interconnections between the mobile terminal and the target vehicle terminal corresponding to the interconnection protocol performed within the target time period, the later the position of the interconnection protocol is, and the longer the broadcast cycle duration of the interconnection protocol is. At the same time, multiple preset broadcast cycle durations are sorted from small to large. After sorting the multiple preset broadcast cycle durations from small to large, the i-th preset broadcast cycle duration is determined as the broadcast cycle duration of the i-th interconnection protocol.
[0086] As an example, the multiple interconnection protocols include: interconnection protocol 1, interconnection protocol 2, interconnection protocol 3, and interconnection protocol 4. The multiple interconnection protocols are sorted from most to least according to the number of interconnections corresponding to the interconnection protocols between the mobile terminal and the target vehicle terminal during the target time period. The number of interconnections corresponding to interconnection protocol 1 between the mobile terminal and the target vehicle terminal during the target time period is greater than the number of interconnections corresponding to interconnection protocol 2 between the mobile terminal and the target vehicle terminal during the target time period. The number of interconnections corresponding to interconnection protocol 2 between the mobile terminal and the target vehicle terminal during the target time period is greater than the number of interconnections corresponding to interconnection protocol 3 between the mobile terminal and the target vehicle terminal during the target time period. The number of interconnections corresponding to interconnection protocol 3 between the mobile terminal and the target vehicle terminal during the target time period is greater than the number of interconnections corresponding to interconnection protocol 4 between the mobile terminal and the target vehicle terminal during the target time period. After sorting, interconnection protocol 1 is the first interconnection protocol, interconnection protocol 2 is the second interconnection protocol, interconnection protocol 3 is the third interconnection protocol, and interconnection protocol 4 is the fourth interconnection protocol.
[0087] The preset broadcast cycle durations include: 23ms, 43ms, 67ms, and 79ms. The broadcast cycle duration of interconnection protocol 1 is 23ms, the broadcast cycle duration of interconnection protocol 2 is 43ms, the broadcast cycle duration of interconnection protocol 3 is 67ms, and the broadcast cycle duration of interconnection protocol 4 is 79ms.
[0088] In the embodiment of the present invention, in step S101, for interconnection protocol i, from the moment when step S201 is started, Bluetooth broadcast information of interconnection protocol i is broadcast at intervals of the broadcast cycle duration of interconnection protocol i.
[0089] In step S101, for interconnection protocol i, from the moment step S101 is started, the Bluetooth broadcast information of interconnection protocol i is broadcast after the broadcast cycle duration of interconnection protocol i, thereby broadcasting the Bluetooth broadcast information of interconnection protocol i for the first time during step S101.
[0090] In step S101, for interconnection protocol i, the time interval between the jth broadcasting time of Bluetooth broadcast information of interconnection protocol i during step S101 and the j+1th broadcasting time of Bluetooth broadcast information of interconnection protocol i during step S101 is: the broadcast cycle duration of interconnection protocol i.
[0091] It should be noted that, in the embodiment of the present invention, the shorter the broadcast cycle duration of the interconnection protocol, the earlier the time of the first broadcast of the Bluetooth broadcast information of the interconnection protocol, the higher the frequency of broadcasting the Bluetooth broadcast information of the interconnection protocol, and the faster the mobile terminal supporting the interconnection protocol can be interconnected with the target vehicle terminal.
[0092] In step S102, the target vehicle-mounted terminal is interconnected with each of the multiple mobile terminals.
[0093] Each of the multiple mobile terminals receives Bluetooth broadcast information of each interconnection protocol.
[0094] The multiple mobile terminals may include: a mobile terminal used by a driver of the target vehicle to which the target vehicle-mounted terminal belongs, and a mobile terminal used by a passenger of the target vehicle.
[0095] In step S102, the target vehicle-mounted terminal and the first mobile terminal are interconnected, including: when the target vehicle-mounted terminal receives an interconnection request corresponding to the interconnection protocol supported by the first mobile terminal sent by the first mobile terminal, the target vehicle-mounted terminal and the first mobile terminal establish a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal between the target vehicle-mounted terminal and the first mobile terminal according to the interconnection protocol supported by the first mobile terminal.
[0096] The first mobile terminal is any one of the multiple mobile terminals.
[0097] The target vehicle terminal and the first mobile terminal can transmit data related to the application on the first mobile terminal through a Bluetooth connection between the target vehicle terminal and the first mobile terminal corresponding to the interconnection protocol supported by the first mobile terminal. The data related to the application on the first mobile terminal includes: data of the application in the application interface displayed on the first mobile terminal.
[0098] It should be noted that the Bluetooth function of the first mobile terminal may be enabled before the user using the first mobile terminal enters the target vehicle, or may be enabled after the user using the first mobile terminal enters the target vehicle.
[0099] The format of the Bluetooth broadcast information of the interconnection protocol supported by the first mobile terminal is defined by the interconnection protocol supported by the first mobile terminal. The first mobile terminal receives the Bluetooth broadcast information of each interconnection protocol.
[0100] The first mobile terminal may determine that the first mobile terminal receives the Bluetooth broadcast information of the interconnection protocol supported by the first mobile terminal according to the format of the Bluetooth broadcast information of the interconnection protocol supported by the first mobile terminal.
[0101] The first mobile terminal may generate an interconnection request corresponding to the interconnection protocol supported by the first mobile terminal based on the MAC address of the target vehicle terminal, the identifier of the target vehicle terminal, etc. in the Bluetooth broadcast information of the interconnection protocol supported by the first mobile terminal. The format of the interconnection request corresponding to the interconnection protocol supported by the first mobile terminal is defined by the interconnection protocol supported by the first mobile terminal. After generating the interconnection request corresponding to the interconnection protocol supported by the first mobile terminal, the first mobile terminal may send the interconnection request corresponding to the interconnection protocol supported by the first mobile terminal to the target vehicle terminal.
[0102] The format of the interconnection request corresponding to the interconnection protocol supported by the first mobile terminal is the format of the interconnection request defined by the interconnection protocol supported by the first mobile terminal.
[0103] In step S102, after the target vehicle-mounted terminal receives the interconnection request corresponding to the interconnection protocol supported by the first mobile terminal and sent by the first mobile terminal, the interconnection protocol supported by the first mobile terminal can be determined based on the fact that the format of the interconnection request for the interconnection protocol supported by the first mobile terminal is the format of the interconnection request defined by the interconnection protocol supported by the first mobile terminal.
[0104] The target vehicle-mounted terminal may determine, based on the interconnection record of the first mobile terminal, whether the first mobile terminal has been interconnected with the target vehicle-mounted terminal before executing step S101.
[0105] In step S102, if it is determined that the first mobile terminal has not been interconnected with the target vehicle-mounted terminal before executing step S101, the target vehicle-mounted terminal and the first mobile terminal establish a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal based on the interconnection protocol supported by the first mobile terminal, including: the target vehicle-mounted terminal executes all steps defined by the interconnection protocol supported by the first mobile terminal that need to be executed by the vehicle-mounted terminal during the first Bluetooth interconnection; the first mobile terminal executes all steps that need to be executed by the mobile terminal during the first Bluetooth interconnection.
[0106] In step S102, if it is determined that the first mobile terminal has been interconnected with the target vehicle-mounted terminal before executing step S101, the target vehicle-mounted terminal and the first mobile terminal establish a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal based on the interconnection protocol supported by the first mobile terminal, including: the target vehicle-mounted terminal executes all steps that need to be executed by the target vehicle-mounted terminal during non-first Bluetooth interconnection defined by the interconnection protocol supported by the first mobile terminal; the first mobile terminal executes all steps that need to be executed by the mobile terminal during non-first Bluetooth interconnection.
[0107] In one possible implementation, when the first mobile terminal is a mobile terminal that has not established a Bluetooth connection corresponding to an interconnection protocol supported by the first mobile terminal with the target vehicle-mounted terminal before executing step S101, the interconnection request sent by the first mobile terminal is generated based on an operation of the user of the first mobile terminal indicating that the first mobile terminal needs to be interconnected with the target vehicle-mounted terminal, and the fact that a Bluetooth connection corresponding to an interconnection protocol supported by the first mobile terminal has not been established with the target vehicle-mounted terminal before executing step S101 is determined by the first mobile terminal based on an interconnection record stored in the first mobile terminal.
[0108] When the first mobile terminal determines that there is no mobile terminal that has established a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal with the target vehicle-mounted terminal before executing step S101 based on the interconnection record stored in the first mobile terminal, the first mobile terminal can display information for the user using the first mobile terminal to confirm whether the first mobile terminal needs to be interconnected with the target vehicle-mounted terminal. When the user of the first mobile terminal performs an operation indicating that the first mobile terminal needs to be interconnected with the target vehicle-mounted terminal, the first mobile terminal generates an interconnection request corresponding to the interconnection protocol supported by the first mobile terminal.
[0109] refer to Figure 2 , which shows a flowchart of an example of interconnection between a target vehicle-mounted terminal and multiple mobile terminals.
[0110] In this example, the driver of the target vehicle uses the car key to unlock the target vehicle to which the target vehicle terminal belongs, and the target vehicle terminal responds to the driver of the target vehicle using the car key to unlock the target vehicle and starts to execute step S101. In step S101, Bluetooth broadcast information of interconnection protocol 1 is broadcast, Bluetooth broadcast information of interconnection protocol 2 is broadcast, Bluetooth broadcast information of interconnection protocol 3 is broadcast, and Bluetooth broadcast information of interconnection protocol 4 is broadcast.
[0111] After the driver of the target vehicle unlocks the target vehicle using the vehicle key, the driver of the target vehicle, the passenger A of the target vehicle, and the passenger B of the target vehicle enter the target vehicle.
[0112] In this example, the mobile terminal used by the driver of the target vehicle, the mobile terminal used by passenger A of the target vehicle, and the mobile terminal used by passenger B of the target vehicle are all mobile terminals that have established a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal with the target vehicle-mounted terminal before executing step S101.
[0113] In this example, the Bluetooth function of the mobile terminal used by the driver of the target vehicle may be turned on before the driver of the target vehicle enters the target vehicle, or it may be turned on after the driver of the target vehicle enters the target vehicle. The Bluetooth function of the mobile terminal used by passenger A of the target vehicle may be turned on before passenger A of the target vehicle enters the target vehicle, or it may be turned on after passenger A of the target vehicle enters the target vehicle. The Bluetooth function of the mobile terminal used by passenger B of the target vehicle may be turned on before passenger B of the target vehicle enters the target vehicle, or it may be turned on after passenger B of the target vehicle enters the target vehicle.
[0114] In this example, the mobile terminal used by the driver of the target vehicle supports interconnection protocol 1, the mobile terminal used by passenger A of the target vehicle supports interconnection protocol 2, and the mobile terminal used by passenger B of the target vehicle supports interconnection protocol 3.
[0115] In this example, the target vehicle-mounted terminal and the mobile terminal used by the driver of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 1 between the target vehicle-mounted terminal and the mobile terminal used by the driver of the target vehicle. The target vehicle-mounted terminal and the mobile terminal used by passenger A of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 2 between the target vehicle-mounted terminal and the mobile terminal used by passenger A of the target vehicle according to interconnection protocol 2. The target vehicle-mounted terminal and the mobile terminal used by passenger B of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 3 between the target vehicle-mounted terminal and the mobile terminal used by passenger B of the target vehicle according to interconnection protocol 3.
[0116] In a possible implementation, the method further includes: step S103.
[0117] In step S103, for each of the multiple mobile terminals, a display area of the screen of the target vehicle-mounted terminal corresponding to the mobile terminal is determined.
[0118] The display area corresponding to each mobile terminal is different. The display area corresponding to the mobile terminal is used to display information related to the application on the mobile terminal.
[0119] Thus, each mobile terminal can simultaneously use the display area corresponding to the mobile terminal to display information related to the application on the mobile terminal. The user of each mobile terminal can simultaneously see the information related to the application on the mobile terminal, thereby improving the user experience.
[0120] refer to Figure 3 , which shows a flow chart of another method for interconnecting a mobile terminal and a vehicle-mounted terminal provided by an embodiment of the present invention.
[0121] In step S301, the first broadcast cycle duration of each interconnection protocol is determined, and the Bluetooth broadcast information of each interconnection protocol is broadcast according to the first broadcast cycle duration of each interconnection protocol, or the second broadcast cycle duration of each interconnection protocol is determined, and the Bluetooth broadcast information of each interconnection protocol is broadcast according to the second broadcast cycle duration of each interconnection protocol.
[0122] Step S301 includes: step S3011-step S3012.
[0123] In step S3011, when there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, the first broadcast cycle duration of each interconnection protocol is determined based on the most recent interconnection time of the first interconnection protocol among the multiple interconnection protocols; for each interconnection protocol, the Bluetooth broadcast information of the interconnection protocol is broadcast according to the first broadcast cycle duration of the interconnection protocol.
[0124] In one possible implementation, the target vehicle to which the target vehicle-mounted terminal belongs is unlocked by a user of one of the multiple mobile terminals using a car key, so that there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function.
[0125] In step S3011, when there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, for interconnection protocol i, from the moment step S301 is started, the Bluetooth broadcast information of interconnection protocol i is broadcast every first broadcast cycle duration of interconnection protocol i.
[0126] In step S3011, when there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, for interconnection protocol i, from the moment step S301 is started, the Bluetooth broadcast information of interconnection protocol i is broadcast for the first time after the first broadcast cycle duration of interconnection protocol i.
[0127] In step S3011, when there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, for interconnection protocol i, the time interval between the moment of broadcasting the Bluetooth broadcast information of interconnection protocol i for the jth time during the execution of step S301 and the moment of broadcasting the Bluetooth broadcast information of interconnection protocol i for the j+1th time during the execution of step S301 is: the first broadcast cycle duration of interconnection protocol i.
[0128] In step S3011, when there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, for the interconnection protocol i, the time interval between the moment when the Bluetooth broadcast information of the interconnection protocol i is first broadcast during the execution of S301 and the moment when step S301 is started is: the first broadcast cycle duration of the interconnection protocol i.
[0129] In step S3011, when there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, for the interconnection protocol i, the time interval between two adjacent broadcasts of Bluetooth broadcast information of the interconnection protocol i during S301 is: the first broadcast cycle duration of the interconnection protocol i.
[0130] As an example, the first broadcast cycle duration of interconnection protocol 1 is 23 ms, the first broadcast cycle duration of interconnection protocol 2 is 43 ms, the broadcast cycle duration of interconnection protocol 3 is 67 ms, and the first broadcast cycle duration of interconnection protocol 4 is 79 ms.
[0131] In this example, from the moment when step S301 is started, the Bluetooth broadcast information of the interconnection protocol 1 is broadcast every first broadcast cycle duration of the interconnection protocol 1, that is, 23 ms.
[0132] The time interval between the moment of first broadcasting the Bluetooth broadcast information of the interconnection protocol 1 during the execution of S301 and the moment of starting to execute step S301 is: 23 ms.
[0133] That is, after 23 ms from the moment when step S301 is started, the Bluetooth broadcast information of the interconnection protocol 1 is broadcast, and thus, the Bluetooth broadcast information of the interconnection protocol 1 is broadcast for the first time during the execution of S301.
[0134] During the execution of S301 , the time interval between the time of broadcasting the Bluetooth broadcast information of the interconnection protocol 1 for the jth time and the time of broadcasting the Bluetooth broadcast information of the interconnection protocol 1 for the j+1th time is 23 ms.
[0135] In this example, from the moment when step S301 is started, the Bluetooth broadcast information of the interconnection protocol 2 is broadcast every interval of the first broadcast cycle duration of the interconnection protocol 2, that is, 43 ms.
[0136] The time interval between the moment of first broadcasting the Bluetooth broadcast information of the interconnection protocol 2 during the execution of S301 and the moment of starting to execute step S301 is: 43 ms.
[0137] That is, after 43 ms from the time when step S301 is started, the Bluetooth broadcast information of the interconnection protocol 2 is broadcast, thereby broadcasting the Bluetooth broadcast information of the interconnection protocol 2 for the first time during the execution of S301.
[0138] During the execution of S301 , the time interval between the j-th broadcasting of the Bluetooth broadcast information of the interconnection protocol 2 and the j+1-th broadcasting of the Bluetooth broadcast information of the interconnection protocol 2 is 43 ms.
[0139] In this example, from the moment when step S301 is started, the Bluetooth broadcast information of the interconnection protocol 3 is broadcast every first broadcast cycle of the interconnection protocol 3, that is, 67 ms.
[0140] The time interval between the moment of first broadcasting the Bluetooth broadcast information of the interconnection protocol 3 during the execution of S301 and the moment of starting to execute step S301 is: 67 ms.
[0141] That is, after 67 ms from the time when step S301 is started, the Bluetooth broadcast information of the interconnection protocol 3 is broadcast, thereby broadcasting the Bluetooth broadcast information of the interconnection protocol 3 for the first time during the execution of S301.
[0142] During the execution of S301 , the time interval between the j-th broadcasting of the Bluetooth broadcast information of the interconnection protocol 3 and the j+1-th broadcasting of the Bluetooth broadcast information of the interconnection protocol 3 is 67 ms.
[0143] In this example, from the moment when step S301 is started, the Bluetooth broadcast information of the interconnection protocol 4 is broadcast every first broadcast cycle duration of the interconnection protocol 4, that is, 79 ms.
[0144] In this example, the time interval between the moment when the Bluetooth broadcast information of the interconnection protocol 4 is first broadcast during the execution of S301 and the moment when the execution of step S301 begins is 79 ms.
[0145] That is, after 79 ms from the moment when step S301 is started, the Bluetooth broadcast information of the interconnection protocol 4 is broadcast, thereby, the Bluetooth broadcast information of the interconnection protocol 4 is broadcast for the first time during the execution of S301.
[0146] During the execution of S301 , the time interval between the j-th broadcasting of the Bluetooth broadcast information of the interconnection protocol 4 and the j+1-th broadcasting of the Bluetooth broadcast information of the interconnection protocol 4 is 79 ms.
[0147] In the embodiment of the present invention, for the interconnection protocol i, if the interconnection protocol i has the most recent interconnection time, the interconnection protocol i is a first interconnection protocol.
[0148] For a first interconnection protocol, the most recent interconnection time of the first interconnection protocol indicates: the time when the mobile terminal supporting the first interconnection protocol and the target vehicle-mounted terminal last established a Bluetooth connection corresponding to the first interconnection protocol.
[0149] Among them, the time when the mobile terminal supporting the first interconnection protocol and the target vehicle terminal last established a Bluetooth connection corresponding to the first interconnection protocol can specifically refer to: the time when the mobile terminal supporting the first interconnection protocol and the target vehicle terminal last established a Bluetooth connection corresponding to the first interconnection protocol before executing step S301.
[0150] In one possible implementation, in step S3011, when there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, determining the first broadcast cycle duration of each interconnection protocol based on the most recent interconnection time of the first interconnection protocol among the multiple interconnection protocols includes: generating a first sequence consisting of multiple interconnection protocols based on the most recent interconnection time of the first interconnection protocol among the multiple interconnection protocols; sorting the pre-set multiple broadcast cycle durations from small to large according to the preset broadcast cycle durations; and determining the i-th preset broadcast cycle duration as the first broadcast cycle duration of the i-th interconnection protocol in the first sequence.
[0151] Wherein, the position of any first interconnection protocol in the first sequence is before the position of any interconnection protocol other than the first interconnection protocol in the first sequence. If there are multiple first interconnection protocols in the first sequence, the order of the multiple first interconnection protocols in the first sequence is: the order of the latest interconnection time of the multiple first interconnection protocols from the latest to the earliest, and the order of the latest interconnection time of the multiple first interconnection protocols from the latest to the earliest is obtained by sorting the multiple first interconnection protocols from the latest to the earliest according to the latest interconnection time of the first interconnection protocols.
[0152] In step S3011, when there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle terminal belongs through the digital key function, the first broadcast cycle duration of the interconnection protocol supported by the mobile terminal that has established a Bluetooth connection corresponding to the interconnection protocol with the target vehicle terminal is shorter than the first broadcast cycle duration of the interconnection protocol supported by the mobile terminal that has not established a Bluetooth connection corresponding to the interconnection protocol with the target vehicle terminal.
[0153] In step S3011, when there is no second mobile terminal among multiple mobile terminals that unlocks the target vehicle to which the target vehicle terminal belongs through the digital key function, the later the time when the mobile terminal and the target vehicle terminal last established a Bluetooth connection corresponding to the interconnection protocol, and the closer the time when the mobile terminal and the target vehicle terminal last established a Bluetooth connection corresponding to the interconnection protocol is to the current time, the shorter the first broadcast cycle duration of the interconnection protocol supported by the mobile terminal.
[0154] It should be noted that whether the mobile terminal has established a Bluetooth connection corresponding to the interconnection protocol with the target vehicle terminal, and the time when the mobile terminal and the target vehicle terminal last established a Bluetooth connection corresponding to the interconnection protocol can reflect the degree of demand for the interconnection between the mobile terminal and the target vehicle terminal by the user using the mobile terminal. The degree of demand for the interconnection between the mobile terminal and the target vehicle terminal by the user who has established a Bluetooth connection corresponding to the interconnection protocol with the target vehicle terminal is higher than that of the user who has not established a Bluetooth connection corresponding to the interconnection protocol with the target vehicle terminal.
[0155] For a mobile terminal that has established a Bluetooth connection corresponding to the interconnection protocol with a target vehicle-mounted terminal, the later the time when the mobile terminal and the target vehicle-mounted terminal last established a Bluetooth connection corresponding to the interconnection protocol, the higher the degree of demand for interconnection between the mobile terminal and the target vehicle-mounted terminal by a user who uses the mobile terminal that has established a Bluetooth connection corresponding to the interconnection protocol with the target vehicle-mounted terminal.
[0156] Since the shorter the first broadcast cycle of the interconnection protocol, the earlier the first broadcast of the Bluetooth broadcast information of the interconnection protocol, and the higher the frequency of broadcasting the Bluetooth broadcast information of the interconnection protocol, the faster the mobile terminal supporting the interconnection protocol can be connected to the target vehicle terminal. Therefore, when there is no second mobile terminal among multiple mobile terminals that unlocks the target vehicle to which the target vehicle terminal belongs through the digital key function, the first broadcast cycle of each interconnection protocol is determined according to the most recent interconnection time of the first interconnection protocol among multiple interconnection protocols, and the Bluetooth broadcast information of each interconnection protocol is broadcast according to the first broadcast cycle of each interconnection protocol, so that the mobile terminal used by users who have a higher demand for the interconnection between the mobile terminal and the target vehicle terminal can be connected to the target vehicle terminal faster, thereby improving the user experience.
[0157] refer to Figure 4 , which shows a flowchart of an example of interconnection between a target vehicle-mounted terminal and multiple mobile terminals when there is no second mobile terminal among the multiple mobile terminals.
[0158] In this example, the multiple mobile terminals interconnected with the target vehicle-mounted terminal include: a mobile terminal used by the driver of the target vehicle, a terminal used by passenger A of the target vehicle, and a terminal used by passenger B of the target vehicle.
[0159] In this example, the driver of the target vehicle unlocks the target vehicle using the vehicle key.
[0160] After the driver of the target vehicle unlocks the target vehicle using the vehicle key, the driver of the target vehicle, passenger A of the target vehicle, passenger B of the target vehicle, and passenger C of the target vehicle enter the target vehicle.
[0161] In this example, the mobile terminal used by the driver of the target vehicle supports interconnection protocol 2, the terminal used by passenger A of the target vehicle supports interconnection protocol 1, and the terminal used by passenger B of the target vehicle supports interconnection protocol 3.
[0162] In this example, interconnection protocol 1, interconnection protocol 2, and interconnection protocol 3 are all first interconnection protocols. The last interconnection time of interconnection protocol 1 is earlier than the last interconnection time of interconnection protocol 2, and the last interconnection time of interconnection protocol 2 is earlier than the last interconnection time of interconnection protocol 3.
[0163] In this example, the broadcast cycle duration of interconnection protocol 1 is 23 ms, the broadcast cycle duration of interconnection protocol 2 is 43 ms, the broadcast cycle duration of interconnection protocol 3 is 67 ms, and the broadcast cycle duration of interconnection protocol 4 is 79 ms.
[0164] In this example, after 23 ms from the time when step S301 is started, the Bluetooth broadcast information of interconnection protocol 1 is broadcast. After 43 ms from the time when step S301 is started, the Bluetooth broadcast information of interconnection protocol 2 is broadcast. After 67 ms from the time when step S301 is started, the Bluetooth broadcast information of interconnection protocol 3 is broadcast. After 79 ms from the time when step S301 is started, the Bluetooth broadcast information of interconnection protocol 4 is broadcast.
[0165] In this example, the mobile terminal used by the driver of the target vehicle, the mobile terminal used by passenger A of the target vehicle, the mobile terminal used by passenger B of the target vehicle, and the mobile terminal used by passenger C of the target vehicle all send interconnection requests due to receiving Bluetooth broadcast information of the interconnection protocol supported by the mobile terminal that was broadcast for the first time.
[0166] In this example, the time when passenger A of the target vehicle receives the Bluetooth broadcast information of interconnection protocol 1 is earlier than the time when the mobile terminal used by the driver of the target vehicle receives the Bluetooth broadcast information of interconnection protocol 2. The time when the mobile terminal used by the driver of the target vehicle receives the Bluetooth broadcast information of interconnection protocol 2 is earlier than the time when passenger B of the target vehicle receives the Bluetooth broadcast information of interconnection protocol 3.
[0167] In this example, the target vehicle-mounted terminal and the mobile terminal used by passenger A of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 1 according to interconnection protocol 1. The target vehicle-mounted terminal and the mobile terminal used by the driver of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 2 according to interconnection protocol 2. The target vehicle-mounted terminal and the mobile terminal used by passenger B of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 3 according to interconnection protocol 3.
[0168] In this example, the time when the target vehicle-mounted terminal and the mobile terminal used by passenger A of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 1 is earlier than the time when the target vehicle-mounted terminal and the mobile terminal used by the driver of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 2.
[0169] In this example, the time when the target vehicle-mounted terminal and the mobile terminal used by the driver of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 2 is earlier than the time when the target vehicle-mounted terminal and the mobile terminal used by passenger B of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 3.
[0170] In step 3012, when there is a second mobile terminal among multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, the second broadcast cycle duration of each interconnection protocol is determined, wherein the second broadcast cycle duration of the interconnection protocol supported by the second mobile terminal is less than the second broadcast cycle duration of any second interconnection protocol, and the interconnection protocol supported by the second mobile terminal is determined based on the model of the second mobile terminal extracted from the identity information of the second mobile terminal sent by the target vehicle-mounted terminal from the digital key function, and the second interconnection protocol is an interconnection protocol other than the interconnection protocol supported by the second mobile terminal among the multiple interconnection protocols.
[0171] In the embodiment of the present invention, the mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function is called the second mobile terminal.
[0172] In step S3012, when there is a second mobile terminal among multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, for interconnection protocol i, from the moment step S301 is started, the Bluetooth broadcast information of interconnection protocol i is broadcast every second broadcast cycle duration of interconnection protocol i.
[0173] In step S3012, when there is a second mobile terminal among multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, for interconnection protocol i, from the moment step S301 is started, the Bluetooth broadcast information of interconnection protocol i is broadcast for the first time after the second broadcast cycle duration of interconnection protocol i.
[0174] When there is a second mobile terminal among multiple mobile terminals that unlocks the target vehicle belonging to the target vehicle-mounted terminal through the digital key function, for interconnection protocol i, the time interval between the moment of broadcasting the Bluetooth broadcast information of interconnection protocol i for the jth time during the execution of step S301 and the moment of broadcasting the Bluetooth broadcast information of interconnection protocol i for the j+1th time during the execution of step S301 is the second broadcast cycle duration of interconnection protocol i.
[0175] In step S3012, when there is a second mobile terminal among multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, for interconnection protocol i, the time interval between the moment when the Bluetooth broadcast information of interconnection protocol i is first broadcast during execution of S301 and the moment when step S301 is started is: the second broadcast cycle duration of interconnection protocol i.
[0176] In step S3012, when there is a second mobile terminal among multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, for the interconnection protocol i, the time interval between two adjacent broadcasts of Bluetooth broadcast information of the interconnection protocol i during S301 is: the second broadcast cycle duration of the interconnection protocol i.
[0177] Since the shorter the broadcast cycle of the interconnection protocol, the earlier the first broadcast of the Bluetooth broadcast information of the interconnection protocol, and the higher the frequency of broadcasting the Bluetooth broadcast information of the interconnection protocol, the faster the mobile terminal supporting the interconnection protocol can be connected to the target vehicle terminal.
[0178] Therefore, when there is a second mobile terminal among multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, the second broadcast cycle duration of each interconnection protocol is determined, and the second broadcast cycle duration of the interconnection protocol supported by the second mobile terminal is less than the second broadcast cycle duration of any second interconnection protocol. This allows the second mobile terminal of the target vehicle to which the target vehicle-mounted terminal belongs that is unlocked through the digital key function to be interconnected with the target vehicle-mounted terminal as quickly as possible. The second mobile terminal is usually a mobile terminal used by the driver of the target vehicle, and the driver of the target vehicle usually has the highest demand for the mobile terminal used by the driver of the target vehicle to be interconnected with the target vehicle-mounted terminal, thereby improving the user experience.
[0179] In one possible implementation, in step S3012, when there is a second mobile terminal among multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, the second broadcast cycle duration of each second interconnection protocol is determined according to the most recent interconnection time of the target second interconnection protocol, wherein the target second interconnection protocol is the second interconnection protocol with the most recent interconnection time.
[0180] In step S3012, the smallest preset broadcast cycle duration among the multiple preset broadcast cycle durations is determined as the second broadcast cycle duration of the interconnection protocol supported by the second mobile terminal.
[0181] In one possible implementation, determining the second broadcast cycle duration of each second interconnection protocol based on the most recent interconnection time of the target second interconnection protocol may include: generating a second sequence consisting of all second interconnection protocols based on the most recent interconnection time of the target second interconnection protocol among multiple interconnection protocols; sorting all other preset broadcast cycle durations except the smallest preset broadcast cycle duration from small to large among multiple preset broadcast cycle durations; and determining the jth other preset broadcast cycle duration as the broadcast cycle duration of the jth second interconnection protocol in the second sequence.
[0182] Wherein, the position of any target second interconnection protocol in the second sequence is before the position of any second interconnection protocol other than the target second interconnection protocol in the second sequence. If there are multiple target second interconnection protocols in the second sequence, the order of the multiple target second interconnection protocols in the second sequence is: the order of the latest interconnection time of the multiple target second interconnection protocols from late to early, and the order of the latest interconnection time of the multiple target second interconnection protocols from late to early is obtained by sorting the multiple target second interconnection protocols according to the latest interconnection time of the target second interconnection protocols from late to early.
[0183] The later the time when the mobile terminal supporting the second interconnection protocol and the target vehicle terminal last established a Bluetooth connection corresponding to the interconnection protocol, and the closer the time when the mobile terminal supporting the second interconnection protocol and the target vehicle terminal last established a Bluetooth connection corresponding to the interconnection protocol is to the current time, the shorter the second broadcast cycle duration of the second interconnection protocol.
[0184] refer to Figure 5 , which shows a flowchart of an example of interconnection between a target vehicle-mounted terminal and multiple mobile terminals when a second mobile terminal exists among the multiple mobile terminals.
[0185] In this example, the multiple mobile terminals interconnected with the target vehicle-mounted terminal include: a mobile terminal used by the driver of the target vehicle, a terminal used by passenger A of the target vehicle, and a terminal used by passenger B of the target vehicle.
[0186] In this example, the driver of the target vehicle unlocks the target vehicle using the digital key function of the mobile terminal used by the driver of the target vehicle, triggering the execution of step S301.
[0187] After the driver of the target vehicle unlocks the target vehicle using the digital key function of the mobile terminal used by the driver of the target vehicle, the driver of the target vehicle, passenger A of the target vehicle, and passenger B of the target vehicle enter the target vehicle.
[0188] In this example, the mobile terminal used by the driver of the target vehicle supports interconnection protocol 2, the terminal used by passenger A of the target vehicle supports interconnection protocol 1, and the terminal used by passenger B of the target vehicle supports interconnection protocol 3.
[0189] In this example, the most recent interconnection time of interconnection protocol 1 is earlier than the most recent interconnection time of interconnection protocol 2, and the most recent interconnection time of interconnection protocol 2 is earlier than the most recent interconnection time of interconnection protocol 3.
[0190] In this example, the mobile terminal used by the driver of the target vehicle is the second mobile terminal. The second mobile terminal supports an interconnection protocol, namely, interconnection protocol 2, with the shortest second broadcast cycle duration.
[0191] Interconnection Protocol 1, Interconnection Protocol 3, and Interconnection Protocol 4 are all second interconnection protocols.
[0192] In this example, the broadcast cycle duration of interconnection protocol 2 is 23 ms, the broadcast cycle duration of interconnection protocol 1 is 43 ms, the broadcast cycle duration of interconnection protocol 3 is 67 ms, and the broadcast cycle duration of interconnection protocol 4 is 79 ms.
[0193] In this example, after 23 ms from the time when step S301 is started, the Bluetooth broadcast information of interconnection protocol 2 is broadcast. After 43 ms from the time when step S301 is started, the Bluetooth broadcast information of interconnection protocol 1 is broadcast. After 67 ms from the time when step S301 is started, the Bluetooth broadcast information of interconnection protocol 3 is broadcast. After 79 ms from the time when step S301 is started, the Bluetooth broadcast information of interconnection protocol 4 is broadcast.
[0194] In this example, the mobile terminal used by the driver of the target vehicle, the mobile terminal used by passenger A of the target vehicle, the mobile terminal used by passenger B of the target vehicle, and the mobile terminal used by passenger C of the target vehicle all send interconnection requests due to receiving Bluetooth broadcast information of the interconnection protocol supported by the mobile terminal that was broadcast for the first time.
[0195] In this example, the time when the mobile terminal used by the driver of the target vehicle receives the Bluetooth broadcast information of interconnection protocol 2 is earlier than the time when passenger A of the target vehicle receives the Bluetooth broadcast information of interconnection protocol 1. The time when passenger A of the target vehicle receives the Bluetooth broadcast information of interconnection protocol 1 is earlier than the time when passenger B of the target vehicle receives the Bluetooth broadcast information of interconnection protocol 3.
[0196] In this example, the target vehicle-mounted terminal and the mobile terminal used by passenger A of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 1 between the target vehicle-mounted terminal and the mobile terminal used by passenger A of the target vehicle according to interconnection protocol 1. The target vehicle-mounted terminal and the mobile terminal used by the driver of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 2 between the target vehicle-mounted terminal and the mobile terminal used by the driver of the target vehicle according to interconnection protocol 2. The target vehicle-mounted terminal and the mobile terminal used by passenger B of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 3 between the target vehicle-mounted terminal and the mobile terminal used by passenger B of the target vehicle according to interconnection protocol 3.
[0197] In this example, the time when the target vehicle-mounted terminal and the mobile terminal used by the driver of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 2 between the target vehicle-mounted terminal and the mobile terminal used by the driver of the target vehicle is earlier than the time when the target vehicle-mounted terminal and the mobile terminal used by passenger A of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 1 between the target vehicle-mounted terminal and the mobile terminal used by passenger A of the target vehicle.
[0198] In this example, the time when the target vehicle-mounted terminal and the mobile terminal used by passenger A of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 1 between the target vehicle-mounted terminal and the mobile terminal used by passenger A of the target vehicle is earlier than the time when the target vehicle-mounted terminal and the mobile terminal used by passenger B of the target vehicle establish a Bluetooth connection corresponding to interconnection protocol 3 between the target vehicle-mounted terminal and the mobile terminal used by passenger B of the target vehicle.
[0199] In step S302, the target vehicle-mounted terminal is interconnected with each of the multiple mobile terminals.
[0200] The process of step S302 is the same as that of step S302 , refer to the process of step S102 .
[0201] In step S303, a wireless fidelity connection corresponding to each of the multiple mobile terminals is established.
[0202] For one mobile terminal among the multiple mobile terminals, the wireless fidelity (Wireless Fidelity, WIFI for short) connection corresponding to the mobile terminal is a WIFI connection between the mobile terminal and the target vehicle-mounted terminal.
[0203] Each of the multiple mobile terminals corresponds to a different WIFI connection.
[0204] For one mobile terminal among the multiple mobile terminals, the WIFI connection between the target vehicle-mounted terminal and the mobile terminal is used to transmit data related to the application on the mobile terminal, and the data related to the application on the mobile terminal includes: data of the application in the application interface displayed on the mobile terminal.
[0205] In an embodiment of the present invention, a WIFI connection is established between the target vehicle-mounted terminal and the mobile terminal through a Bluetooth connection corresponding to the interconnection protocol supported by the mobile terminal between the target vehicle-mounted terminal and the mobile terminal. The data transmission capability of the WIFI connection is higher than the data transmission capability of Bluetooth. By utilizing the WIFI connection between the target vehicle-mounted terminal and the mobile terminal, data related to the application on the mobile terminal can be transmitted faster, thereby improving the user experience.
[0206] The establishment of a WIFI connection corresponding to each of the multiple mobile terminals in the embodiment of the present invention can achieve the following beneficial effects:
[0207] 1) For each of the multiple mobile terminals interconnected with the target vehicle terminal, since a Bluetooth connection corresponding to the interconnection protocol supported by the mobile terminal has been established between the target vehicle terminal and the mobile terminal, the target vehicle terminal and the mobile terminal know each other's identities, and the target vehicle terminal and the mobile terminal can directly transmit the data required to be transmitted when the target vehicle terminal and the mobile terminal establish a WIFI connection between the target vehicle terminal and the mobile terminal through the Bluetooth connection corresponding to the interconnection protocol supported by the mobile terminal. In the related art, before the data required to be transmitted to establish a WIFI connection between the vehicle terminal and the mobile terminal is transmitted, the vehicle terminal and the mobile terminal need to know each other's identities, and the vehicle terminal needs to broadcast a WIFI message indicating the identity of the vehicle terminal, and the mobile terminal that receives the broadcasted WIFI message needs to feed back feedback information indicating the identity of the mobile terminal to the vehicle terminal.
[0208] In the process of establishing a WIFI connection corresponding to each of the multiple mobile terminals in the embodiment of the present invention, the target vehicle terminal does not need to broadcast a WIFI message indicating the identity of the target vehicle terminal, and for each of the multiple mobile terminals interconnected with the target vehicle terminal, the mobile terminal does not need to send a feedback message to the target vehicle terminal. Thus, for each of the multiple mobile terminals interconnected with the target vehicle terminal, the mobile terminal and the target vehicle terminal quickly establish a WIFI connection between the mobile terminal and the target vehicle terminal, and the mobile terminal can quickly send data related to the application on the mobile terminal to the target vehicle terminal, and the user using the mobile terminal can see the data related to the application on the mobile terminal as soon as possible, thereby improving the user experience.
[0209] 2) The following issues are considered: multiple mobile terminals interconnected with the target vehicle terminal simultaneously establish WIFI connections with the target vehicle terminal. If the multiple mobile terminals interconnected with the target vehicle terminal correspond to the same channel, after the multiple mobile terminals interconnected with the target vehicle terminal establish WIFI connections with the target vehicle terminal, signal interference will occur when the multiple mobile terminals interconnected with the target vehicle terminal transmit data with the target vehicle terminal. The signal interference will cause the data transmission speed between the mobile terminal and the target vehicle terminal to be slow for each of the multiple mobile terminals interconnected with the target vehicle terminal, and the WIFI connection between the mobile terminal and the target vehicle terminal will be unstable.
[0210] In the embodiment of the present invention, each of the multiple mobile terminals interconnected with the target vehicle terminal corresponds to a different channel, that is, after the multiple mobile terminals interconnected with the target vehicle terminal establish a WIFI connection with the target vehicle terminal, each of the multiple mobile terminals interconnected with the target vehicle terminal uses a separate channel to transmit data with the target vehicle terminal to avoid signal interference. For each of the multiple mobile terminals interconnected with the target vehicle terminal, the data transmission speed between the mobile terminal and the target vehicle terminal is faster, and the WIFI connection between the mobile terminal and the target vehicle terminal is more stable. Improve user experience.
[0211] 3) In an embodiment of the present invention, the channel corresponding to the mobile terminal interconnected with the target vehicle-mounted terminal is selected from a plurality of channels corresponding to the frequency band of the WiFi protocol supported by the mobile terminal, and the plurality of channels corresponding to the frequency band of the WiFi protocol supported by the mobile terminal are obtained by dividing the frequency band of the WiFi protocol supported by the mobile terminal. As an example, 2.4GHZ is divided into a plurality of channels corresponding to 2.4GHZ, and 5GHZ is divided into a plurality of channels corresponding to 5GHZ. Thus, for each of the plurality of mobile terminals interconnected with the target vehicle-mounted terminal, no matter what frequency band is adapted to the WiFi protocol supported by the mobile terminal, the channel corresponding to the mobile terminal can be determined. Improve the applicability of establishing a WIFI connection between the mobile terminal interconnected with the target vehicle-mounted terminal and the target vehicle-mounted terminal.
[0212] 4) The following issues are considered: the WiFi connection capability of each of the multiple mobile terminals interconnected with the target vehicle-mounted terminal.
[0213] In an embodiment of the present invention, the target vehicle terminal can determine the capability of the mobile terminal based on the capability information of the mobile terminal. If the mobile terminal interconnected with the target vehicle terminal supports WiFi direct connection (peer-to-peer, referred to as P2P), a WiFi P2P connection between the mobile terminal interconnected with the target vehicle terminal and the target vehicle terminal can be established. The WiFi P2P connection has higher data transmission efficiency than the ordinary WiFi connection, thereby improving the data transmission efficiency of the data transmission between the mobile terminal interconnected with the target vehicle terminal and the target vehicle terminal. Thus, the WIFI connection capability of the mobile terminal supporting WiFi P2P interconnected with the target vehicle terminal is fully utilized. The mobile terminal supporting WiFi P2P interconnected with the target vehicle terminal can send data related to the application on the mobile terminal to the target vehicle terminal more quickly, and the mobile terminal supporting WiFi P2P interconnected with the target vehicle terminal can see the data related to the application on the mobile terminal more quickly, thereby improving the user experience.
[0214] In a possible implementation, step S303 may include: step S3031 - step S3032.
[0215] In step S3031, for each mobile terminal among the multiple mobile terminals interconnected with the target vehicle terminal, the target vehicle terminal receives the capability information sent by the mobile terminal through a Bluetooth connection between the target vehicle terminal and the mobile terminal corresponding to the interconnection protocol supported by the mobile terminal.
[0216] In step S3032, for each mobile terminal among the multiple mobile terminals interconnected with the target vehicle terminal, the target vehicle terminal determines the channel corresponding to the mobile terminal and the role corresponding to the mobile terminal, and the role corresponding to the target vehicle terminal relative to the mobile terminal based on the capability information of each mobile terminal.
[0217] In step S3032, for each mobile terminal among the multiple mobile terminals interconnected with the target vehicle terminal, the target vehicle terminal sends the identifier of the channel corresponding to the mobile terminal and the identifier of the role corresponding to the mobile terminal to the mobile terminal through a Bluetooth connection corresponding to the interconnection protocol supported by the mobile terminal between the target vehicle terminal and the mobile terminal, so that the mobile terminal determines the channel corresponding to the mobile terminal and the role corresponding to the mobile terminal.
[0218] It should be noted that the channel corresponding to the mobile terminal may refer to the channel corresponding to the mobile terminal.
[0219] In a possible implementation, for a mobile terminal among multiple mobile terminals interconnected with the target vehicle terminal, the capability information of the mobile terminal indicates the WiFi protocol supported by the mobile terminal. In step S3032, for a mobile terminal interconnected with the target vehicle terminal, the target vehicle terminal determines the frequency band adapted to the WiFi protocol supported by the mobile terminal according to the WiFi protocol supported by the mobile terminal, and the target vehicle terminal determines the preset channel among the multiple channels corresponding to the frequency band adapted to the WiFi protocol supported by the mobile terminal as the channel corresponding to the mobile terminal, wherein the multiple channels corresponding to the frequency band adapted to the WiFi protocol supported by the mobile terminal are obtained by dividing the frequency band adapted to the WiFi protocol supported by the mobile terminal. The target vehicle terminal determines the AP role as the role corresponding to the mobile terminal.
[0220] In a possible implementation, for a mobile terminal among multiple mobile terminals interconnected with the target vehicle-mounted terminal, the capability information of the mobile terminal indicates whether the mobile terminal supports WiFi P2P, the WiFi protocol supported by the mobile terminal, etc. In step S3032, for a mobile terminal interconnected with the target vehicle-mounted terminal, according to the WiFi protocol supported by the mobile terminal, a frequency band adapted to the WiFi protocol supported by the mobile terminal is determined, and a preset channel among multiple channels corresponding to the frequency band adapted to the WiFi protocol supported by the mobile terminal is determined as a channel corresponding to the mobile terminal.
[0221] In a possible implementation, for a mobile terminal among multiple mobile terminals interconnected with the target vehicle terminal, the capability information of the mobile terminal indicates whether the mobile terminal supports WiFi P2P, the WiFi protocol supported by the mobile terminal, etc. If the mobile terminal supports WiFi P2P, it is determined to establish a WiFi P2P connection between the target vehicle terminal and the mobile terminal. If the mobile terminal does not support WiFi P2P, it is determined to establish a WiFi connection between the target vehicle terminal and the mobile terminal. The WiFi connection between the target vehicle terminal and the mobile terminal established when the mobile terminal does not support WiFi P2P may specifically refer to an ordinary WiFi connection other than the WiFi P2P connection. If a WiFi P2P connection is established between the target vehicle terminal and the mobile terminal, the role corresponding to the mobile terminal is the GC role, and the role corresponding to the target vehicle terminal relative to the mobile terminal is the GO role. If a WiFi connection is established between the target vehicle terminal and the mobile terminal, the role corresponding to the mobile terminal is the STA role, and the role corresponding to the target vehicle terminal relative to the mobile terminal is the AP role.
[0222] In a possible implementation, the capability information of a mobile terminal interconnected with the target vehicle-mounted terminal may indicate whether the mobile terminal supports WiFi P2P, the WiFi protocols supported by the mobile terminal, etc. If the WiFi P2P channel is not full, that is, the number of determined WiFi P2P channels has not reached the maximum number and the mobile terminal supports WiFi P2P, it is determined to establish a WiFi P2P connection between the target vehicle-mounted terminal and the mobile terminal. For a mobile terminal, if the WiFi P2P channel is full, that is, the number of determined WiFi P2P channels has reached the maximum number and / or the mobile terminal does not support WiFi P2P, it is determined to establish a WiFi connection between the target vehicle-mounted terminal and the mobile terminal.
[0223] In one possible implementation, each of the multiple mobile terminals interconnected with the target vehicle-mounted terminal corresponds to a different channel. For a mobile terminal interconnected with the target vehicle-mounted terminal, the channel corresponding to the mobile terminal is selected from multiple channels corresponding to the frequency band of the WiFi protocol supported by the mobile terminal. The multiple channels corresponding to the frequency band of the WiFi protocol supported by the mobile terminal are obtained by dividing the frequency band of the WiFi protocol supported by the mobile terminal.
[0224] For a mobile terminal interconnected with the target vehicle-mounted terminal, the frequency band adapted to the WiFi protocol supported by the mobile terminal may be 2.4 GHZ or 5 GHZ.
[0225] In a possible implementation, step S3032 may include: the target vehicle-mounted terminal assigning an Internet Protocol Address (IP) address corresponding to each of a plurality of mobile terminals interconnected with the target vehicle-mounted terminal.
[0226] Among them, each of the multiple mobile terminals interconnected with the target vehicle-mounted terminal corresponds to a different IP address.
[0227] In one possible implementation, step S3032 may include: for each of the multiple mobile terminals interconnected with the target vehicle-mounted terminal, the target vehicle-mounted terminal receives the media access control address (MAC) of the mobile terminal sent by the mobile terminal through a Bluetooth connection between the target vehicle-mounted terminal and the mobile terminal corresponding to the interconnection protocol supported by the mobile terminal.
[0228] In one possible implementation, step S3032 may include: for each mobile terminal among the multiple mobile terminals interconnected with the target vehicle-mounted terminal, the target vehicle-mounted terminal, sending the connection information corresponding to the mobile terminal to the mobile terminal through a Bluetooth connection between the target vehicle-mounted terminal and the mobile terminal corresponding to the interconnection protocol supported by the mobile terminal.
[0229] For a mobile terminal among multiple mobile terminals interconnected with the target vehicle-mounted terminal, the connection information corresponding to the mobile terminal includes: the identifier of the channel corresponding to the mobile terminal, the IP address corresponding to the mobile terminal, the SSID of the WIFI network joined by the target vehicle-mounted terminal and multiple mobile terminals, and the MAC address of the target vehicle-mounted terminal.
[0230] For a mobile terminal among multiple mobile terminals interconnected with the target vehicle terminal, after a WIFI connection is established between the mobile terminal and the target vehicle terminal, the mobile terminal and the target vehicle terminal transmit data related to the application on the mobile terminal through the WIFI connection between the target vehicle terminal and the mobile terminal.
[0231] For a mobile terminal among multiple mobile terminals interconnected with the target vehicle-mounted terminal, during the period when the mobile terminal and the target vehicle-mounted terminal transmit data related to an application on the mobile terminal through the WIFI connection between the target vehicle-mounted terminal and the mobile terminal, the mobile terminal and the target vehicle-mounted terminal transmit data related to the application on the mobile terminal on the channel corresponding to the mobile terminal, and the mobile terminal generates a data packet including the MAC address of the mobile terminal and the IP address corresponding to the mobile terminal.
[0232] In a possible implementation, after step S303, the method further includes: step S304.
[0233] In step S304, the Bluetooth connection corresponding to each of the multiple mobile terminals interconnected with the target vehicle-mounted terminal is disconnected.
[0234] For a mobile terminal among the multiple mobile terminals interconnected with the target vehicle-mounted terminal, the Bluetooth connection corresponding to the mobile terminal is: a Bluetooth connection between the target vehicle-mounted terminal and the mobile terminal corresponding to the interconnection protocol supported by the mobile terminal.
[0235] Since the WIFI connection between the target vehicle-mounted terminal and the mobile terminal can be used to transmit data related to the application on the mobile terminal, the Bluetooth connection between the target vehicle-mounted terminal and the mobile terminal corresponding to the interconnection protocol supported by the mobile terminal can be disconnected to save resources of the target vehicle.
[0236] refer to Figure 6 , which shows a schematic diagram of an example of establishing WIFI connections corresponding to multiple mobile terminals.
[0237] In this example, the mobile terminal used by the driver of the target vehicle establishes a WIFI connection 1 between the mobile terminal used by the driver of the target vehicle and the target vehicle-mounted terminal. The mobile terminal used by passenger A of the target vehicle establishes a WIFI connection 2 between the mobile terminal used by passenger A of the target vehicle and the target vehicle-mounted terminal. The mobile terminal used by passenger B of the target vehicle establishes a WIFI connection 3 between the mobile terminal used by passenger B of the target vehicle and the target vehicle-mounted terminal.
[0238] In this example, the mobile terminal used by the driver of the target vehicle sends the capability information of the mobile terminal used by the driver of the target vehicle via a Bluetooth connection corresponding to interconnection protocol 2. In this example, the mobile terminal used by passenger A of the target vehicle sends the capability information of the mobile terminal used by passenger A of the target vehicle via a Bluetooth connection corresponding to interconnection protocol 1. The mobile terminal used by passenger B of the target vehicle sends the capability information of the mobile terminal used by passenger B of the target vehicle via a Bluetooth connection corresponding to interconnection protocol 3.
[0239] In this example, the target vehicle terminal determines the role corresponding to the mobile terminal used by the driver of the target vehicle, the role corresponding to the target vehicle terminal relative to the mobile terminal used by the driver of the target vehicle, and the channel corresponding to the mobile terminal used by the driver of the target vehicle based on the capability information of the mobile terminal used by the driver of the target vehicle. The target vehicle terminal determines the role corresponding to the mobile terminal used by passenger A of the target vehicle, the role corresponding to the target vehicle terminal relative to the mobile terminal used by passenger A of the target vehicle, and the channel corresponding to passenger A of the target vehicle based on the capability information of the mobile terminal used by passenger A of the target vehicle. The target vehicle terminal determines the role corresponding to the mobile terminal used by passenger B of the target vehicle, the role corresponding to the target vehicle terminal relative to the mobile terminal used by passenger B of the target vehicle, and the channel corresponding to passenger B of the target vehicle based on the capability information of the mobile terminal used by passenger B of the target vehicle.
[0240] In this example, the target vehicle terminal sends the name of the character corresponding to the mobile terminal used by the driver of the target vehicle via a Bluetooth connection corresponding to interconnection protocol 2. The target vehicle terminal sends the name of the character corresponding to the mobile terminal used by passenger A of the target vehicle via a Bluetooth connection corresponding to interconnection protocol 1. The target vehicle terminal sends the name of the character corresponding to the mobile terminal used by passenger B of the target vehicle via a Bluetooth connection corresponding to interconnection protocol 3.
[0241] In this example, the mobile terminal used by the driver of the target vehicle determines the role corresponding to the mobile terminal used by the driver of the target vehicle. The mobile terminal used by passenger A of the target vehicle determines the role corresponding to the mobile terminal used by passenger A of the target vehicle. The mobile terminal used by passenger B of the target vehicle determines the role corresponding to the mobile terminal used by passenger B of the target vehicle. In this example, the target vehicle-mounted terminal sends the connection information corresponding to the mobile terminal used by the driver of the target vehicle to the mobile terminal used by the driver of the target vehicle via a Bluetooth connection corresponding to interconnection protocol 2. In this example, the target vehicle-mounted terminal sends the connection information corresponding to the mobile terminal used by passenger A of the target vehicle to the mobile terminal used by passenger A of the target vehicle via a Bluetooth connection corresponding to interconnection protocol 1. In this example, the target vehicle-mounted terminal sends the connection information corresponding to the mobile terminal used by passenger B of the target vehicle to the mobile terminal used by passenger B of the target vehicle via a Bluetooth connection corresponding to interconnection protocol 2.
[0242] In one possible implementation, it also includes: when the target vehicle-mounted terminal detects that the third mobile terminal is a device on the universal serial bus, the target vehicle-mounted terminal receives device information sent by the third mobile terminal, and the device information includes: the model of the third mobile terminal; the target vehicle-mounted terminal determines the interconnection protocol corresponding to the model of the third mobile terminal as the interconnection protocol supported by the third mobile terminal; the target vehicle-mounted terminal and the third mobile terminal establish a universal serial bus connection corresponding to the interconnection protocol supported by the third mobile terminal between the target vehicle-mounted terminal and the third mobile terminal according to the interconnection protocol supported by the third mobile terminal, wherein the universal serial bus connection corresponding to the interconnection protocol supported by the third mobile terminal between the target vehicle-mounted terminal and the third mobile terminal is used to transmit data related to an application on the third mobile terminal.
[0243] The third mobile terminal is connected to the target vehicle terminal via a USB data cable. The target vehicle terminal detects that the third mobile terminal is a device on a universal serial bus. Thus, the target vehicle terminal detects that the third mobile terminal is a device on a universal serial bus.
[0244] For interconnection protocol i, interconnection protocol i defines: all steps that need to be performed by the vehicle terminal during the first USB interconnection between the mobile terminal supporting interconnection protocol i and the vehicle terminal, all steps that need to be performed by the vehicle terminal during the non-first USB interconnection between the mobile terminal supporting interconnection protocol i and the vehicle terminal, all steps that need to be performed by the mobile terminal supporting interconnection protocol i during the first USB interconnection between the mobile terminal supporting interconnection protocol i and the vehicle terminal, all steps that need to be performed by the mobile terminal supporting interconnection protocol i during the non-first USB interconnection between the mobile terminal supporting interconnection protocol i and the vehicle terminal, and The type of data transmitted between a mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal during the first USB interconnection between the mobile terminal and the vehicle-mounted terminal, the type of data transmitted between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal during a non-first USB interconnection between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal, the format of data transmitted between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal during the first USB interconnection between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal, and the format of data transmitted between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal during a non-first USB interconnection between the mobile terminal supporting interconnection protocol i and the vehicle-mounted terminal.
[0245] As an example, for the interconnection protocol supported by the third mobile terminal, all the steps that the mobile terminal needs to perform during any one USB interconnection between the mobile terminal supporting the interconnection protocol and the vehicle terminal include: the mobile terminal enables the NCM function; the mobile terminal sends information indicating that the mobile terminal enables the NCM function to the vehicle terminal; the mobile terminal sets a static IP; the mobile terminal negotiates a channel with the vehicle terminal. All the steps that the vehicle terminal needs to perform during any one USB interconnection between the mobile terminal supporting the interconnection protocol and the vehicle terminal include: the vehicle terminal enables the NCM; the vehicle terminal sets a static IP; the vehicle terminal negotiates a channel with the first mobile terminal.
[0246] In step S304, for each target mobile terminal, a display area of the screen of the target vehicle-mounted terminal corresponding to the target mobile terminal is determined, wherein the target mobile terminal is a terminal that establishes a Bluetooth connection or a Universal Serial Bus connection corresponding to the interconnection protocol with the target vehicle-mounted terminal, and the display area corresponding to each target mobile terminal is different, and the display area corresponding to the target mobile terminal is used to display information related to the application on the target mobile terminal.
[0247] In an embodiment of the present invention, a device for interconnecting a mobile terminal with a vehicle-mounted terminal is also provided. The device for interconnecting a mobile terminal with a vehicle-mounted terminal is installed on a vehicle. The device for interconnecting a mobile terminal with a vehicle-mounted terminal is used to implement the above-mentioned method embodiments and preferred implementation modes, and those that have been explained will not be repeated. As used below, the term "unit" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived. The device in the embodiment of the present invention is presented in the form of a functional unit, where the functional unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.
[0248] The device for interconnecting the mobile terminal and the vehicle terminal includes:
[0249] A broadcast unit, used for broadcasting Bluetooth broadcast information of each interconnection protocol in a plurality of interconnection protocols;
[0250] An interconnection unit interconnects with each of a plurality of mobile terminals, comprising: when receiving an interconnection request corresponding to an interconnection protocol supported by the first mobile terminal and sent by the first mobile terminal among the plurality of mobile terminals, establishing, with the first mobile terminal according to the interconnection protocol supported by the first mobile terminal, a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal between the target vehicle-mounted terminal and the first mobile terminal, wherein the first mobile terminal is any one of the plurality of mobile terminals, the interconnection request is generated based on the first mobile terminal receiving Bluetooth broadcast information of the interconnection protocol supported by the first mobile terminal, and each of the mobile terminals receives Bluetooth broadcast information of each interconnection protocol.
[0251] Furthermore, the broadcast unit is further used to determine the first broadcast cycle duration of each interconnection protocol according to the most recent interconnection time of the first interconnection protocol among the multiple interconnection protocols when there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, wherein the first interconnection protocol is an interconnection protocol with the most recent interconnection time, and the most recent interconnection time of the first interconnection protocol indicates the time when the mobile terminal supporting the first interconnection protocol and the target vehicle-mounted terminal last established a Bluetooth connection corresponding to the first interconnection protocol; for each interconnection protocol, the Bluetooth broadcast information of the interconnection protocol is broadcast according to the first broadcast cycle duration of the interconnection protocol.
[0252] Furthermore, the broadcast unit is further used to determine the second broadcast cycle duration of each interconnection protocol when there is a second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, wherein the second broadcast cycle duration of the interconnection protocol supported by the second mobile terminal is less than the second broadcast cycle duration of any second interconnection protocol, and the interconnection protocol supported by the second mobile terminal is determined based on the model of the second mobile terminal extracted from the identity information of the second mobile terminal sent by the target vehicle-mounted terminal from the digital key function, and the second interconnection protocol is an interconnection protocol among the multiple interconnection protocols except the interconnection protocol supported by the second mobile terminal; for each of the interconnection protocols, the Bluetooth broadcast information of the interconnection protocol is broadcast according to the second broadcast cycle duration of the interconnection protocol.
[0253] Furthermore, the broadcast unit is further used to determine the second broadcast cycle duration of each second interconnection protocol according to the most recent interconnection time of the target second interconnection protocol when there is a second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, wherein the target second interconnection protocol is the second interconnection protocol with the most recent interconnection time.
[0254] Further, when the first mobile terminal is a mobile terminal that has not established a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal with the target vehicle-mounted terminal before broadcasting the Bluetooth broadcast information of each interconnection protocol among the multiple interconnection protocols, the interconnection request is generated based on the operation of the user of the first mobile terminal indicating that the first mobile terminal needs to be interconnected with the target vehicle-mounted terminal, and the fact that a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal has not been established with the target vehicle-mounted terminal is determined by the first mobile terminal based on the interconnection record stored by the first mobile terminal.
[0255] Furthermore, the device for interconnecting the mobile terminal with the vehicle-mounted terminal also includes:
[0256] A WiFi connection establishing unit is used to establish a WiFi connection corresponding to each mobile terminal, wherein the WiFi connection corresponding to the mobile terminal is a WiFi connection between the mobile terminal and a target vehicle-mounted terminal, and each mobile terminal corresponds to a different WiFi connection. Establishing the WiFi connection corresponding to each mobile terminal includes: the target vehicle-mounted terminal receives capability information sent by the mobile terminal through a Bluetooth connection corresponding to an interconnection protocol supported by the mobile terminal between the target vehicle-mounted terminal and the mobile terminal, and determines a channel corresponding to the mobile terminal and a role corresponding to the mobile terminal according to the capability information of the mobile terminal, and sends an identifier of the channel corresponding to the mobile terminal and an identifier of the role corresponding to the mobile terminal to the mobile terminal through the Bluetooth connection.
[0257] Furthermore, the capability information of the mobile terminal indicates whether the mobile terminal supports WiFi direct connection and the WiFi protocol supported by the mobile terminal.
[0258] Furthermore, each mobile terminal corresponds to a different channel, and the channel corresponding to the mobile terminal is selected from multiple channels corresponding to the frequency band adapted to the WiFi protocol supported by the mobile terminal, and the multiple channels are obtained by dividing the frequency band. The role corresponding to the mobile terminal is determined according to whether the mobile terminal supports WiFi direct connection.
[0259] Furthermore, the device for interconnecting the mobile terminal with the vehicle-mounted terminal also includes:
[0260] A Bluetooth connection disconnection unit is used to disconnect the Bluetooth connection corresponding to each mobile terminal after establishing the WiFi connection corresponding to each mobile terminal, wherein the Bluetooth connection corresponding to the mobile terminal is a Bluetooth connection between the target vehicle terminal and the mobile terminal corresponding to the interconnection protocol supported by the mobile terminal.
[0261] Furthermore, the device for interconnecting the mobile terminal with the vehicle-mounted terminal also includes:
[0262] A universal serial bus connection establishing unit is used to receive device information sent by the third mobile terminal when the target vehicle-mounted terminal detects that the third mobile terminal is a device on the universal serial bus, the device information including: the model of the third mobile terminal; determining the interconnection protocol corresponding to the model of the third mobile terminal as the interconnection protocol supported by the third mobile terminal; and establishing a universal serial bus connection corresponding to the interconnection protocol supported by the third mobile terminal between the target vehicle-mounted terminal and the third mobile terminal according to the interconnection protocol supported by the third mobile terminal, wherein the universal serial bus connection is used to transmit data related to an application on the third mobile terminal.
[0263] Furthermore, the device for interconnecting the mobile terminal with the vehicle-mounted terminal also includes:
[0264] A display area determination unit is used to determine, for each target mobile terminal, a display area of the screen of a target vehicle-mounted terminal corresponding to the target mobile terminal, wherein the target mobile terminal is a terminal that establishes a Bluetooth connection or a Universal Serial Bus connection corresponding to an interconnection protocol with the target vehicle-mounted terminal, and the display area corresponding to each target mobile terminal is different, and the display area corresponding to the target mobile terminal is used to display information related to an application on the target mobile terminal.
[0265] refer to Figure 7 , Figure 71 is a schematic diagram of the hardware structure of a computer device provided by an embodiment of the present invention. The computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common motherboard or installed in other ways as needed. The processor can process instructions executed in the computer device, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used with multiple memories and multiple memories. Similarly, multiple vehicles can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above-mentioned hardware chip can be a dedicated integrated circuit, a programmable logic device, or a combination thereof. The above-mentioned programmable logic device can be a complex programmable logic device, a field programmable gate array, a general array logic, or any combination thereof. The memory 20 stores instructions executable by at least one processor 10 so that the at least one processor 10 executes the method shown in the above embodiment. The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created according to the use of the vehicle, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid-state hard disk; the memory 20 may also include a combination of the above-mentioned types of memory. The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30, and the output device 40 may be connected via a bus or in other ways. The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touch pad, an indicator stick, one or more mouse buttons, a trackball, a joystick, etc.The output device 40 may include a display device, an auxiliary lighting device (e.g., LED), a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display, and a plasma display. In some optional embodiments, the display device may be a touch screen.
[0266] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0267] A portion of the embodiments of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in a computer-readable medium includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which the computer program instructions are executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0268] The above embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present invention is within the protection scope of the present invention.
Claims
1. A method for interconnecting a mobile terminal with a vehicle-mounted terminal, characterized in that: Applied to a vehicle, the method comprises: The target vehicle terminal broadcasts Bluetooth broadcast information of each interconnection protocol among multiple interconnection protocols; The target vehicle-mounted terminal is interconnected with each of the multiple mobile terminals, including: when the target vehicle-mounted terminal receives an interconnection request corresponding to an interconnection protocol supported by the first mobile terminal sent by the first mobile terminal among the multiple mobile terminals, the target vehicle-mounted terminal and the first mobile terminal establish a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal between the target vehicle-mounted terminal and the first mobile terminal according to the interconnection protocol supported by the first mobile terminal, wherein the first mobile terminal is any one of the multiple mobile terminals, the interconnection request is generated based on the first mobile terminal receiving Bluetooth broadcast information of the interconnection protocol supported by the first mobile terminal, and each of the mobile terminals receives Bluetooth broadcast information of each interconnection protocol.
2. The method according to claim 1, characterized in that: The broadcasting of the Bluetooth broadcast information of each interconnection protocol in the plurality of interconnection protocols includes: When there is no second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, determining the first broadcast cycle duration of each interconnection protocol according to the most recent interconnection time of the first interconnection protocol among the multiple interconnection protocols, wherein the first interconnection protocol is an interconnection protocol with the most recent interconnection time, and the most recent interconnection time of the first interconnection protocol indicates the time when the mobile terminal supporting the first interconnection protocol and the target vehicle-mounted terminal last established a Bluetooth connection corresponding to the first interconnection protocol; For each interconnection protocol, the Bluetooth broadcast information of the interconnection protocol is broadcast according to the first broadcast cycle duration of the interconnection protocol.
3. The method according to claim 1, characterized in that: The broadcasting of the Bluetooth broadcast information of each interconnection protocol in the plurality of interconnection protocols includes: When there is a second mobile terminal among the multiple mobile terminals that unlocks the target vehicle to which the target vehicle-mounted terminal belongs through the digital key function, determining the second broadcast cycle duration of each interconnection protocol, wherein the second broadcast cycle duration of the interconnection protocol supported by the second mobile terminal is less than the second broadcast cycle duration of any second interconnection protocol, the interconnection protocol supported by the second mobile terminal is determined based on the model of the second mobile terminal extracted from the identity information of the second mobile terminal sent by the target vehicle-mounted terminal from the digital key function, and the second interconnection protocol is an interconnection protocol among the multiple interconnection protocols except for the interconnection protocol supported by the second mobile terminal; For each interconnection protocol, the Bluetooth broadcast information of the interconnection protocol is broadcast according to the second broadcast cycle duration of the interconnection protocol.
4. The method according to claim 3, characterized in that: Determining the second broadcast cycle duration of each interconnection protocol includes: According to the most recent interconnection time of the target second interconnection protocol, the second broadcast cycle duration of each second interconnection protocol is determined, wherein the target second interconnection protocol is the second interconnection protocol having the most recent interconnection time.
5. The method according to claim 1, characterized in that: When the first mobile terminal is a mobile terminal that has not established a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal with the target vehicle terminal before broadcasting the Bluetooth broadcast information of each interconnection protocol in multiple interconnection protocols, the interconnection request is generated based on the operation of the user of the first mobile terminal indicating that the first mobile terminal needs to be interconnected with the target vehicle terminal, and the Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal that has not been established with the target vehicle terminal is determined by the first mobile terminal based on the interconnection record stored by the first mobile terminal.
6. The method according to claim 1, characterized in that: After the target vehicle-mounted terminal is interconnected with each of the multiple mobile terminals, the method further includes: Establishing a WiFi connection corresponding to each mobile terminal, wherein the WiFi connection corresponding to the mobile terminal is a WiFi connection between the mobile terminal and the target vehicle-mounted terminal, each mobile terminal corresponds to a different WiFi connection, and establishing the WiFi connection corresponding to each mobile terminal includes: The target vehicle-mounted terminal receives the capability information sent by the mobile terminal through a Bluetooth connection corresponding to the interconnection protocol supported by the mobile terminal between the target vehicle-mounted terminal and the mobile terminal, and determines the channel corresponding to the mobile terminal and the role corresponding to the mobile terminal based on the capability information of the mobile terminal, and sends the identifier of the channel corresponding to the mobile terminal and the identifier of the role corresponding to the mobile terminal to the mobile terminal through the Bluetooth connection.
7. The method according to claim 6, characterized in that: The capability information of the mobile terminal indicates whether the mobile terminal supports WiFi direct connection and the WiFi protocol supported by the mobile terminal.
8. The method according to claim 6, characterized in that: Each mobile terminal corresponds to a different channel, and the channel corresponding to the mobile terminal is selected from multiple channels corresponding to the frequency band adapted to the WiFi protocol supported by the mobile terminal, and the multiple channels are obtained by dividing the frequency band. The role corresponding to the mobile terminal is determined according to whether the mobile terminal supports WiFi direct connection.
9. The method according to claim 6, characterized in that: After establishing the WiFi connection corresponding to each mobile terminal, the method further includes: Disconnecting the Bluetooth connection corresponding to each mobile terminal, wherein the Bluetooth connection corresponding to the mobile terminal is a Bluetooth connection between the target vehicle-mounted terminal and the mobile terminal corresponding to an interconnection protocol supported by the mobile terminal.
10. The method according to claim 1, characterized in that: The method further comprises: When the target vehicle-mounted terminal detects that the third mobile terminal is a device on the universal serial bus, the target vehicle-mounted terminal receives device information sent by the third mobile terminal, the device information including: the model of the third mobile terminal; The target vehicle-mounted terminal determines the interconnection protocol corresponding to the model of the third mobile terminal as the interconnection protocol supported by the third mobile terminal; The target vehicle-mounted terminal and the third mobile terminal establish a universal serial bus connection corresponding to the interconnection protocol supported by the third mobile terminal based on the interconnection protocol supported by the third mobile terminal, wherein the universal serial bus connection is used to transmit data related to the application on the third mobile terminal.
11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: For each target mobile terminal, determine the display area of the screen of the target vehicle-mounted terminal corresponding to the target mobile terminal, wherein the target mobile terminal is a terminal that establishes a Bluetooth connection or a Universal Serial Bus connection corresponding to the interconnection protocol with the target vehicle-mounted terminal, and the display area corresponding to each target mobile terminal is different, and the display area corresponding to the target mobile terminal is used to display information related to the application on the target mobile terminal.
12. A device for interconnecting a mobile terminal with a vehicle-mounted terminal, characterized in that: Installed on the target vehicle terminal, the device includes: A broadcast unit, used for broadcasting Bluetooth broadcast information of each interconnection protocol in a plurality of interconnection protocols; An interconnection unit interconnects with each of a plurality of mobile terminals, comprising: when receiving an interconnection request corresponding to an interconnection protocol supported by the first mobile terminal and sent by the first mobile terminal among the plurality of mobile terminals, establishing, with the first mobile terminal according to the interconnection protocol supported by the first mobile terminal, a Bluetooth connection corresponding to the interconnection protocol supported by the first mobile terminal between the target vehicle-mounted terminal and the first mobile terminal, wherein the first mobile terminal is any one of the plurality of mobile terminals, the interconnection request is generated based on the first mobile terminal receiving Bluetooth broadcast information of the interconnection protocol supported by the first mobile terminal, and each of the mobile terminals receives Bluetooth broadcast information of each interconnection protocol.
13. A computer device installed in a vehicle, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 11 by executing the computer instructions.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 11.
15. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the method according to any one of claims 1 to 11.