Connection method of mobile device, mobile device and storage medium

By obtaining relative positions in the car by mobile devices and automatically connecting to the target vehicle terminal, the problem of Bluetooth devices accidentally connecting to the main driving screen during operation by non-drivers is solved, and driving safety is improved.

CN119095198APending Publication Date: 2024-12-06GEER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411173023.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In cars, non-drivers are prone to mis-connecting the main driving screen when operating Bluetooth devices to connect to the on-board terminal, resulting in reduced driving safety.

Method used

After triggering the wireless connection process through the mobile device, obtain its relative position with the vehicle, determine the target vehicle terminal and establish a wireless connection to avoid non-drivers from mistakenly picking up the main driving screen. The method includes using a charging bin to detect the headphone access or the box opening action to trigger the wireless connection, determine the position using the UWB base station feedback distance information, and determine the wireless connection address of the target vehicle terminal based on the location to make the connection.

Benefits of technology

It improves driving safety during the connection process of mobile devices, avoids interference to drivers due to misoperation by non-drivers, and ensures the safety and accuracy of the connection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119095198A_ABST
    Figure CN119095198A_ABST
Patent Text Reader

Abstract

The invention discloses a connection method of a mobile device, the mobile device and a storage medium, relates to the technical field of wireless communication, and discloses connection of the mobile device, and the connection method comprises the following steps: after a wireless connection process is triggered, obtaining a relative position of the mobile device and a vehicle; and determining a target vehicle-mounted terminal corresponding to the relative position, and establishing wireless connection with the target vehicle-mounted terminal. According to the invention, through the position information of the mobile device, the target vehicle-mounted terminal conforming to the current position is selected and the wireless connection with the target vehicle-mounted terminal is established, so that the mobile device is ensured not to actively access the main driving vehicle-mounted terminal to cause interference to a driver, and the driving safety is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a connection method for a mobile device, a mobile device, and a storage medium. Background Art

[0002] With the continuous upgrading and iteration of intelligent driving, cars are usually equipped with at least two on-board terminals, including a main driver's screen and a co-driver's screen.

[0003] In the relevant access method of connecting the Bluetooth headset to the vehicle terminal, it is necessary to search and scan the available Bluetooth headset through the vehicle terminal, and then pair and connect. However, when a non-driver performs this operation, the Bluetooth headset will be connected to the main driving screen, which will not only cause unnecessary interference to the driver, but also reduce driving safety.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a connection method for a mobile device, a mobile device and a storage medium, aiming to solve the technical problem of reducing driving safety when the current Bluetooth device is connected to a vehicle-mounted terminal.

[0006] To achieve the above object, the present application proposes a connection method for a mobile device, the method comprising:

[0007] After triggering the wireless connection process, the relative position of the mobile device and the vehicle is obtained;

[0008] A target vehicle-mounted terminal corresponding to the relative position is determined, and a wireless connection is established with the target vehicle-mounted terminal.

[0009] In one embodiment, the mobile device includes a charging compartment and earphones, and after the wireless connection process is triggered, before the step of obtaining the relative position of the mobile device and the vehicle, it also includes:

[0010] The wireless connection process is triggered when it is detected that the earphone is connected to the charging case, or when the charging case detects an opening action.

[0011] In one embodiment, after the wireless connection process is triggered, the step of obtaining the relative position of the mobile device and the vehicle includes:

[0012] After the wireless connection process is triggered, the charging compartment determines the relative position between the charging compartment and the vehicle according to the distance information fed back by the UWB base station;

[0013] The relative position is sent to the headset.

[0014] In one embodiment, the step of determining the target vehicle-mounted terminal corresponding to the relative position and establishing a wireless connection with the target vehicle-mounted terminal includes:

[0015] Determine the target vehicle-mounted terminal corresponding to the relative position, and obtain the wireless connection address of the target vehicle-mounted terminal;

[0016] A wireless connection is established with the target vehicle-mounted terminal based on the wireless connection address.

[0017] In one embodiment, the step of determining the target vehicle-mounted terminal corresponding to the relative position and acquiring the wireless connection address of the target vehicle-mounted terminal includes:

[0018] Determine the current seating area according to the relative position;

[0019] The target vehicle-mounted terminal associated with the seating area is determined, and the wireless connection address of the target vehicle-mounted terminal is acquired.

[0020] In one embodiment, after the wireless connection process is triggered, the step of obtaining the relative position of the mobile device and the vehicle includes:

[0021] After the wireless connection process is triggered, the headset determines the relative position between the headset and the vehicle according to the distance information fed back by the UWB base station;

[0022] The step of determining the target vehicle-mounted terminal corresponding to the relative position and establishing a wireless connection with the target vehicle-mounted terminal comprises:

[0023] Based on the current seating area of ​​the relative position, determining the target vehicle-mounted terminal, and acquiring the wireless connection address of the target vehicle-mounted terminal;

[0024] A connection is established with the target vehicle-mounted terminal based on the wireless connection address.

[0025] In one embodiment, when the charging compartment detects the opening action, the charging information of the mobile device in the charging compartment is obtained;

[0026] When the charging information is not empty, triggering the wireless connection process;

[0027] Otherwise, maintain the current charging state.

[0028] In one embodiment, after the wireless connection process is triggered, after the step of obtaining the relative position of the mobile device and the vehicle, the method further includes:

[0029] determining whether the relative position is at a preset position;

[0030] When the relative position is at the preset position, executing the steps of determining the target vehicle-mounted terminal corresponding to the relative position and establishing a wireless connection with the target vehicle-mounted terminal;

[0031] When the relative position is not at the preset position, a prompt message is output, and in response to an operation instruction associated with the prompt message, a wireless connection is established with the vehicle-mounted terminal corresponding to the operation instruction.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a mobile device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the connection method of the mobile device as described above.

[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the mobile device connection method described above are implemented.

[0034] One or more technical solutions proposed in this application have at least the following technical effects:

[0035] After the wireless connection process is triggered, the target vehicle terminal that needs to be accessed is determined through the current location information of the mobile device, and a wireless connection is actively established with the vehicle terminal, thereby eliminating the need for the user to perform tedious operations on the vehicle terminal. When a non-driver establishes a connection with the vehicle terminal, a terminal other than the main driver's on-board terminal is selected based on the location of the non-driver and a connection is established between the two. Based on this, interference to the driver is avoided and driving safety during the mobile device connection process is improved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0038] Figure 1 A schematic diagram of the hardware structure of the charging box and Bluetooth headset provided for the connection method of the mobile device of the present application;

[0039] Figure 2 A schematic diagram of a flow chart of a first embodiment of a method for connecting a mobile device of the present application;

[0040] Figure 3 A schematic diagram of calculating the signal transmission time through a UWB signal provided for the connection method of the mobile device of the present application;

[0041] Figure 4 A schematic diagram of calculating the relative distance in a plane provided for the connection method of the mobile device of the present application;

[0042] Figure 5 A schematic diagram of a second embodiment of the process for connecting a mobile device of the present application;

[0043] Figure 6 An exemplary scene diagram of a user using a Bluetooth headset provided in this application;

[0044] Figure 7 A brief schematic diagram of the device connection process of the method for connecting a mobile device of the present application;

[0045] Figure 8 A schematic diagram of the device structure of the hardware operating environment involved in the connection method of the mobile device in the embodiment of the present application.

[0046] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0047] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0048] The main solution of the embodiment of the present application is: after triggering the wireless connection process, obtaining the relative position of the mobile device and the vehicle; determining the target vehicle terminal corresponding to the relative position, and establishing a wireless connection with the target vehicle terminal.

[0049] In this embodiment, for the convenience of description, the following description is made with a mobile device as the execution subject.

[0050] In the existing access method of connecting Bluetooth headsets to the vehicle terminal, it is necessary to search and scan the available Bluetooth headsets through the vehicle terminal, and then pair and connect them. However, when a non-driver performs this operation, the Bluetooth headset will be connected to the main driving screen, which will not only cause unnecessary interference to the driver, but also reduce driving safety.

[0051] The present application provides a solution. After the wireless connection process is triggered, the target vehicle terminal that needs to be accessed is determined through the current location information of the mobile device, and a wireless connection is actively established with the vehicle terminal. This ensures that when a non-driver establishes a connection with the vehicle terminal, a terminal other than the main driver's on-board terminal is selected based on the location of the non-driver and a connection is established between the two, avoiding interference with the driver and improving driving safety during the mobile device connection process.

[0052] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, program running and Bluetooth functions, such as a tablet computer and a mobile phone, or an electronic device or mobile device capable of realizing the above functions, such as a Bluetooth headset, a smart Bluetooth watch and a smart speaker, etc. The following takes a mobile device as an example to illustrate this embodiment and the following embodiments.

[0053] Exemplarily, the mobile device includes a charging compartment and a Bluetooth headset, the charging compartment is a charging box, and when the Bluetooth headset is connected to the charging box or the charging compartment is opened, entering the pairing / connection state triggers the wireless connection process. Based on this, in order to better understand the technical solution of the present application, the following will be described in detail in conjunction with the drawings and specific implementation methods of the specification.

[0054] Please refer to Figure 1 , the mobile device includes a Bluetooth headset and a charging case, and when the charging case is a charging box, the system architecture of the Bluetooth headset and its charging box is as follows Figure 1 As shown, the charging box includes a UWB (Ultra Wide Band) module, a Hall module and other peripheral modules, and the Bluetooth headset includes a Flash (flash memory) module and other peripheral modules. Among them, the UWB module is mounted on the charging box and is connected to the main MCU (Microcontroller Unit) of the charging box through a serial port. After accurate positioning, the location information is updated to the MCU, and other modules are used to support the normal functions of the charging box; the main SOC (System on Chip) of the headset has main functions such as Bluetooth connection, and the flash module is used to store the Bluetooth addresses of vehicle-mounted terminal devices such as the main / slave screen; the Bluetooth headset and the charging box communicate through the serial port. When the Bluetooth headset is placed in the charging box for charging, the charging box sends the location information to the headset through the serial port, so that the Bluetooth headset can connect to the corresponding vehicle-mounted screen according to the current position.

[0055] Optionally, a UWB module can be equipped in the Bluetooth headset so that when the wireless connection process is triggered and the user wears the Bluetooth headset, the actual position of the Bluetooth headset can be determined based on the distance information of the UWB module of the Bluetooth headset, thereby improving the accuracy of the selected target vehicle terminal and the accuracy of the relative position.

[0056] Based on this, the present application embodiment provides a connection method for a mobile device, referring to Figure 2 , Figure 2 This is a flow chart of a first embodiment of a method for connecting a mobile device of the present application.

[0057] In this embodiment, the connection method of the mobile device includes steps S10 to S20:

[0058] Step S10, after triggering the wireless connection process, obtaining the relative position of the mobile device and the vehicle;

[0059] The wireless connection process refers to the process of a mobile device entering the waiting state, which is usually triggered by the user. The relative position refers to the relative position of the mobile device in the vehicle. Mobile devices include mobile phones, Bluetooth headsets, tablets, and smart watches. The following takes Bluetooth headsets as an example.

[0060] As an optional implementation, the mobile device includes a headset and a charging case, and the headset is a Bluetooth headset. Based on this, when the user connects the Bluetooth headset to the charging case or the user opens the charging case, the wireless connection process is triggered. That is, when the headset is detected to be connected to the charging case or the charging case detects the opening action, the wireless connection process is triggered.

[0061] Optionally, when the charging compartment detects the opening action, it is also necessary to determine whether there is an earphone inside the charging compartment, and then determine whether to trigger the wireless connection process. For example, after the user connects the Bluetooth headset to the target vehicle terminal, when the charging compartment is opened due to an accidental touch, it is necessary to avoid the Bluetooth headset reselecting the vehicle terminal and connecting, thereby interfering with the driver. Therefore, when the charging compartment detects the opening action, the charging information of the mobile device in the charging compartment is obtained, and when the charging information is not empty, the wireless connection process is triggered, otherwise the current charging state is maintained. Optionally, if at least one of the charging information is empty, for example, when the user only uses one of the Bluetooth headsets, and the other is still placed in the charging compartment, the current charging state needs to be maintained. Based on this, it is effectively avoided that the mobile device is re-paired and connected due to accidental touch, thereby interfering with the driving process.

[0062] After triggering the wireless connection process, the mobile device can obtain its relative position with the vehicle through the positioning module, or obtain the charging position through the charging compartment. For example, after placing the Bluetooth headset in the charging compartment, the charging compartment obtains the relative position and sends the relative position to the Bluetooth headset.

[0063] Based on this, as an optional implementation method for obtaining location information, the mobile device includes headphones and a charging compartment. After the wireless connection process is triggered, the positioning data of the charging compartment can be obtained, and then the relative position is determined based on the positioning data, and the relative position is sent to the headphones based on the charging compartment. Optionally, the charging compartment can send the relative position confirmed by itself to the cloud, which is sent to the headphones by the cloud. Specifically, after the wireless connection process is triggered, the charging compartment determines the relative position of the charging compartment and the vehicle based on the distance information fed back by the UWB base station, and then sends the relative position to the headphones.

[0064] Optionally, at least three UWB base stations are arranged in different positions inside the vehicle. Based on this, the relative distance between the charging compartment and at least three UWB base stations can be determined first, and then the positioning data of the charging compartment is determined according to the relative distance, and the relative position is generated based on the positioning data. Among them, the positioning data is the positioning data of the charging compartment relative to the inside of the vehicle, which can be the positioning of the charging compartment in a certain period of time. According to the positioning data, the positional relationship between the charging compartment and the vehicle can be determined, and the positional relationship is the relative position.

[0065] Optionally, the relative distance between the charging compartment and the UWB base station can be calculated using a TOF (Time Of Flight) algorithm. Figure 3 , the UWB signal emitted by the UWB signal transmitter of the charging compartment will carry an independent timestamp mark. After the UWB receiving end, i.e., the UWB base station position, receives and processes the UWB signal, when the UWB signal is emitted again, the UWB signal will carry the timestamp emitted by the transmitter and the processing time interval Tr. Based on this, when the charging compartment receives the UWB signal again, the signal flight time can be obtained by subtracting the signal processing time interval Tr from the time interval Tt between emitting and receiving the UWB signal, and the one-way flight time of the UWB signal Tf = (Tt-Tr) / 2. Since the propagation speed of electromagnetic waves is the speed of light C, the relative distance between the charging compartment and the UWB base station can be calculated at this time, d = Tf*C. Among them, when processing ultra-wideband signals, one of the ultra-wideband base stations can be used as the main base station, and the main base station can be equipped with two sub-base stations, and the sub-base stations synchronize time with the main base station, thereby ensuring the clock synchronization of at least three UWB base stations.

[0066] Furthermore, within the same plane, the positioning data of the charging compartment can be calculated by triangulation, that is, the specific coordinates of the current position can be obtained by the relative distance between the current position and three different UWB base stations. Figure 4, in the same plane, the coordinates of the three UWB base stations are bs1 (x1, y1), bs2 (x2, y2) and bs3 (x3, y3). Through the TOF algorithm, the distance R1, R2 and R3 between the current point E of the charging warehouse and each UWB base station can be easily calculated. At this time, the relationship between the position coordinates (x0, y0) of the charging warehouse and the relative distances between the three UWB base stations satisfies the following formula:

[0067]

[0068] Furthermore, in space, based on the spatial coordinates of the three UWB base stations and the relative distance of the current position from each UWB base station, the unique spatial coordinates of the charging compartment in space can be calculated, and the spatial coordinates correspond to the positioning data of the charging compartment. The calculation formula is as follows:

[0069]

[0070] Substituting the coordinates of the three UWB base stations into the above formula can calculate the current positioning data of the charging compartment. It can be understood that the coordinate information of the three UWB base stations is pre-set.

[0071] Based on this, according to the calculated coordinate information, the relative position of the charging compartment in the car can be determined, such as whether it is currently in the main driver's seat, the co-driver's seat or the back seat, etc. The charging compartment then sends the relative position to the headset through the serial port.

[0072] The actual positioning data of the charging pod is calculated through the relative distance between the charging pod and at least three UWB base stations, and the user's current location is identified based on the positioning data. The location is sent to the mobile device so that the mobile device can select the target vehicle terminal that meets the requirements through the location and actively establish a wireless connection with the target vehicle terminal to avoid interference with the driver and improve driving safety.

[0073] In another optional embodiment, when the headset is configured with a UWB module, after the wireless connection process is triggered, the headset can directly determine the relative position of the headset and the vehicle based on the distance information fed back by the UWB base station, without the need for positioning and sending the position through the charging compartment. At the same time, when the wireless connection process is triggered and the user wears the headset, the user's position in the vehicle is determined, thereby improving the accuracy of determining the target vehicle-mounted terminal.

[0074] Step S20, determining a target vehicle-mounted terminal corresponding to the relative position, and establishing a wireless connection with the target vehicle-mounted terminal.

[0075] Wireless connections include Bluetooth connections, ZigBee connections, WiFi (Wireless Fidelity) connections, and NFC (Near Field Communication) connections, etc. The following description will take Bluetooth connection as an example, wherein the headset is a Bluetooth headset.

[0076] In this embodiment, the vehicle terminals of the vehicle system include the driver's vehicle terminal, the passenger's vehicle terminal and the rear seat vehicle terminal. In the process of determining the target vehicle terminal corresponding to the relative position, the target vehicle terminal that meets the requirements can be selected based on the seating area corresponding to the position, and a Bluetooth connection can be established with the vehicle terminal based on the Bluetooth address of the vehicle terminal. Optionally, the NFC tag associated with the position can be read, and the target vehicle terminal can be selected based on the tag, and a Bluetooth connection can be established with the vehicle terminal.

[0077] Therefore, when establishing a wireless connection, after determining the target vehicle terminal, the wireless connection address of the vehicle terminal can be obtained, and then a wireless connection is established with the target vehicle terminal based on the wireless connection address, for example, the Bluetooth address of the target vehicle terminal is obtained and a connection is established based on the Bluetooth address.

[0078] It is understandable that when the user needs to connect the Bluetooth headset to the target vehicle terminal, the Bluetooth headset needs to be placed in the charging compartment, and then the charging compartment obtains the relative position and returns the relative position to the Bluetooth headset. Based on this, the relative position can represent the current seating area of ​​the user.

[0079] As an optional implementation of determining the target vehicle-mounted terminal corresponding to the relative position, step S20 includes:

[0080] Step S21, determining the current seating area according to the relative position;

[0081] In this embodiment, if the relative position is the main driving seat, the corresponding current seating area is the main driving area.

[0082] Step S22, determining the target vehicle-mounted terminal associated with the seating area, and acquiring the wireless connection address of the target vehicle-mounted terminal;

[0083] Exemplarily, the seating area with relative position association is the co-pilot area, and the target vehicle-mounted terminal corresponding to this area is the co-pilot vehicle-mounted terminal. The Bluetooth headset then reads the Bluetooth address of the co-pilot vehicle-mounted terminal stored in its own flash memory, and initiates an active connection with it based on the Bluetooth address, and then establishes a Bluetooth connection after receiving access information confirming the access.

[0084] Optionally, after determining the current seating area, if the seating area is the main driving area, it is necessary to determine the moving status of the charging warehouse. If the charging warehouse is in a moving state, that is, the current vehicle is driving, a corresponding prompt message needs to be generated at this time to allow the driver to confirm whether a Bluetooth connection is required.

[0085] Optionally, after establishing a Bluetooth connection with the selected target vehicle terminal, if the user wants to switch the currently connected vehicle terminal, the user can connect the Bluetooth headset to the charging compartment at another location. Based on this, the charging compartment will update the current location information and update the updated location information to the Bluetooth headset. Specifically, when the Bluetooth headset receives a location information update instruction, it is necessary to determine the target location information associated with the location information update instruction, and then perform the action of step S20 based on the target location information.

[0086] Optionally, when the Bluetooth headset is provided with a UWB module, after obtaining the relative position based on the Bluetooth headset, the target vehicle terminal can be determined according to the current seating area of ​​the relative position, and then its wireless connection address, i.e., the wireless Bluetooth address, is obtained, and then a connection is established with it based on the address.

[0087] The present embodiment provides a connection method for a mobile device. When it is detected that the mobile device is connected to a charging compartment, the relative distance between the charging compartment and at least three UWB base stations equipped with ultra-wideband signal base stations is calculated, and the actual positioning data of the charging compartment is calculated based on the relative distance. Then, the current location is determined based on the positioning data, and the location is sent to the mobile device, so that the mobile device selects a vehicle-mounted terminal that meets the usage requirements based on the location and connects to it, thereby avoiding interference to the driver when the mobile device is connected to the vehicle-mounted terminal, thereby improving driving safety.

[0088] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can refer to the above introduction, and will not be repeated in the following. Figure 5 After step S10, the mobile device connection method further includes steps S30 to S40:

[0089] Step S30, determining whether the location information is at a preset location;

[0090] In this embodiment, the preset position refers to the position bound to the target vehicle terminal. For example, if the vehicle is equipped with two vehicle terminals for the main and co-pilot, if the area corresponding to the position of the headset when it is connected to the charging compartment is the main driving area, it will be connected to the vehicle terminal of the main driver, and if it is the co-pilot area, it will be connected to the vehicle terminal of the co-pilot. If the position is the rear area and there is no vehicle terminal associated with the area, the user needs to select the terminal to be connected.

[0091] Therefore, it is possible to determine whether the vehicle is in the preset position by the current seating area associated with the position information, or to determine the position based on the position coordinates relative to the vehicle associated with the position information and the coordinate area of ​​the preset position. As an optional implementation, the position coordinates associated with the position information and the coordinate area associated with the preset position can be determined. When the position coordinates are within the coordinate area, it is determined that the position information is in the preset position; otherwise, it is determined that the position information is not in the preset position.

[0092] It is understandable that the preset position can be set according to actual needs. For example, if the vehicle has two main / auxiliary on-board terminals, the corresponding preset areas are the main / auxiliary driver areas. If a terminal is installed in the back row, the preset area includes the back seat area.

[0093] Step S40, when the relative position is not at the preset position, outputting a prompt message, responding to an operation instruction associated with the prompt message, and establishing a wireless connection with the vehicle-mounted terminal corresponding to the operation instruction.

[0094] In this embodiment, when the location information is not at the preset position, the target terminal that the user needs to access is confirmed based on the prompt information, and a Bluetooth connection is established with the target terminal. Based on this, it can effectively prevent the user from accidentally connecting to the wrong vehicle terminal, thereby avoiding potential safety risks. At the same time, it ensures that only users in the appropriate position can connect the Bluetooth headset to the corresponding vehicle terminal, avoiding connecting to other vehicle terminals and causing interference to the driver.

[0095] Optionally, when the position information is at the preset position, S20 is executed to determine the target vehicle-mounted terminal corresponding to the relative position and establish a wireless connection with the target vehicle-mounted terminal.

[0096] This embodiment provides a connection method for a mobile device. After obtaining location information, it is determined whether the current location is in a preset location through the coordinates associated with the location information. If it is not in the preset location, a prompt message is output and the user selects a vehicle terminal, ensuring that only users at the appropriate location can connect the Bluetooth headset to the corresponding vehicle terminal, avoiding interference to the driver caused by connecting to other vehicle terminals, and improving driving safety.

[0097] For example, to help understand the implementation process of the connection method of the mobile device obtained in the first embodiment, please refer to Figure 6 and Figure 7 , Figure 6 The figure shows the calculation of the relative distance between three UWB base stations and the scenario of a user using a Bluetooth headset. Figure 7 A device connection flow diagram of a method for connecting a mobile device is provided, wherein the charging compartment is a charging box, and the mobile device is a Bluetooth headset, based on this:

[0098] When the user Figure 6 At point E shown, when the driver opens the charging box and connects the Bluetooth headset to the charging box, the Hall Sensor reports the box opening event, triggering the wireless connection process. After receiving this event, the MCU will send a command to the UWB module of the charging box, and then transmit signals with at least three UWB base stations A, B and C on the car based on the module, and then measure the distance information from the user to each base station. Among them, at point E, the distance between the charging box and the three base stations is EA, EB, and EC. After measurement, the UWB module of the charging box sends the distance information (the values ​​of EA, EB, and EC) to the main control MCU of the charging box.

[0099] When the main control MCU receives the location information, it starts to calculate the specific location of the current charging box, that is, the user in the car. After obtaining the location information, if the charging box recognizes that the current user is in the main driver's seat, the charging box will feedback the location information to the Bluetooth headset through the serial port. After the SOC of the Bluetooth headset receives the current connection instruction, it reads the corresponding main driver's screen Bluetooth address stored in the flash according to the location information reported by the charging box, and actively connects to the main driver's screen of the corresponding car system based on the Bluetooth address.

[0100] Similarly, when the user Figure 6 At point D shown, when the co-pilot opens the charging box and connects the Bluetooth headset to the charging box, the UWB module will update the current location information and send it to the headset. Based on the updated location information, the headset starts to read the co-pilot screen address and initiates an active connection.

[0101] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the connection method of the mobile device of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0102] The present application provides a mobile device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the connection method of the mobile device in the above-mentioned first embodiment.

[0103] Reference below Figure 8 , which shows a structural schematic diagram of a mobile device suitable for implementing an embodiment of the present application. Figure 8 The mobile device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0104] like Figure 8As shown, the mobile device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the mobile device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the mobile device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a mobile device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0105] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0106] The mobile device provided by the present application adopts the connection method of the mobile device in the above embodiment, which can solve the technical problem of reducing driving safety when the current Bluetooth device is connected to the vehicle-mounted terminal. Compared with the prior art, the beneficial effects of the mobile device provided by the present application are the same as the beneficial effects of the connection method of the mobile device provided by the above embodiment, and the other technical features in the mobile device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0107] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0108] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0109] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the connection method of the mobile device in the above-mentioned embodiment.

[0110] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0111] The computer-readable storage medium may be included in the mobile device; or may exist independently without being installed in the mobile device.

[0112] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by a mobile device, the mobile device:

[0113] After triggering the wireless connection process, the relative position of the mobile device and the vehicle is obtained;

[0114] A target vehicle-mounted terminal corresponding to the relative position is determined, and a wireless connection is established with the target vehicle-mounted terminal.

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

[0116] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0117] The modules involved in the embodiments of the present application may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.

[0118] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the connection method of the above-mentioned mobile device, and can solve the technical problem of reducing driving safety when the current Bluetooth device is connected to the vehicle-mounted terminal. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the connection method of the mobile device provided by the above-mentioned embodiment, and will not be repeated here.

[0119] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for connecting a mobile device, characterized in that: The method comprises: After triggering the wireless connection process, the relative position of the mobile device and the vehicle is obtained; A target vehicle-mounted terminal corresponding to the relative position is determined, and a wireless connection is established with the target vehicle-mounted terminal.

2. The method according to claim 1, characterized in that The mobile device includes a charging compartment and earphones. After the wireless connection process is triggered, before the step of obtaining the relative position of the mobile device and the vehicle, the method further includes: The wireless connection process is triggered when it is detected that the earphone is connected to the charging case, or when the charging case detects an opening action.

3. The method according to claim 2, characterized in that After the wireless connection process is triggered, the step of obtaining the relative position of the mobile device and the vehicle includes: After the wireless connection process is triggered, the charging compartment determines the relative position of the charging compartment and the vehicle according to the distance information fed back by the UWB base station; The relative position is sent to the headset.

4. The method according to claim 3, characterized in that The step of determining the target vehicle-mounted terminal corresponding to the relative position and establishing a wireless connection with the target vehicle-mounted terminal comprises: Determine the target vehicle-mounted terminal corresponding to the relative position, and obtain the wireless connection address of the target vehicle-mounted terminal; A wireless connection is established with the target vehicle-mounted terminal based on the wireless connection address.

5. The method according to claim 4, characterized in that The step of determining the target vehicle-mounted terminal corresponding to the relative position and obtaining the wireless connection address of the target vehicle-mounted terminal includes: Determine the current seating area according to the relative position; The target vehicle-mounted terminal associated with the seating area is determined, and the wireless connection address of the target vehicle-mounted terminal is acquired.

6. The method according to claim 2, characterized in that After the wireless connection process is triggered, the step of obtaining the relative position of the mobile device and the vehicle includes: After the wireless connection process is triggered, the headset determines the relative position between the headset and the vehicle according to the distance information fed back by the UWB base station; The step of determining the target vehicle-mounted terminal corresponding to the relative position and establishing a wireless connection with the target vehicle-mounted terminal comprises: Based on the current seating area of ​​the relative position, determining the target vehicle-mounted terminal, and acquiring the wireless connection address of the target vehicle-mounted terminal; A connection is established with the target vehicle-mounted terminal based on the wireless connection address.

7. The method according to claim 2, characterized in that When the charging compartment detects an opening action, acquiring charging information of the mobile device in the charging compartment; When the charging information is not empty, triggering the wireless connection process; Otherwise, maintain the current charging state.

8. The method according to any one of claims 1 to 7, characterized in that After the wireless connection process is triggered, after the step of obtaining the relative position of the mobile device and the vehicle, the method further includes: determining whether the relative position is at a preset position; When the relative position is at the preset position, executing the steps of determining the target vehicle-mounted terminal corresponding to the relative position and establishing a wireless connection with the target vehicle-mounted terminal; When the relative position is not at the preset position, a prompt message is output, and in response to an operation instruction associated with the prompt message, a wireless connection is established with the vehicle-mounted terminal corresponding to the operation instruction.

9. A mobile device, characterized in that: The mobile device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the connection method for the mobile device according to any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the connection method for a mobile device according to any one of claims 1 to 8 are implemented.