Method for switching vehicle based on vehicle-connected application, electronic device and storage medium
By synchronously processing the location information of mobile terminals and vehicles through cloud servers, grouping and selecting the nearest vehicle group, the response time and accuracy issues when switching vehicles in vehicle-to-everything (V2X) applications are resolved, simplifying user operations and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENYANG ONE DRIVE TECH CO LTD
- Filing Date
- 2022-06-20
- Publication Date
- 2026-05-29
AI Technical Summary
Existing vehicle connectivity applications have excessively long response times and slow response speeds when switching vehicles, resulting in inaccurate distance calculations between the mobile terminal and the vehicle, which affects the accuracy of vehicle control. Furthermore, users need to manually select and switch vehicles, leading to a poor user experience.
The location information of mobile terminals and bound vehicles is synchronously obtained through cloud servers, grouped, and the nearest vehicle group is selected. The user is automatically or prompted by a pop-up window to select a vehicle, simplifying the user operation.
It improves the accuracy of distance calculation between the vehicle and the mobile terminal, ensures the accuracy of switching commands, eliminates or simplifies the manual selection steps for users, and enhances the user experience.
Smart Images

Figure CN117311917B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle-related technology, and in particular to a method, electronic device and storage medium for switching vehicles based on a vehicle connectivity application. Background Technology
[0002] With the development of technology, vehicle-to-everything (V2X) technology is becoming increasingly mature, and the interaction between V2X applications and vehicles is becoming more and more sophisticated. However, some scenarios have not yet reached full intelligence. For example, when a user owns multiple vehicles and needs to switch between them, the user needs to manually select and switch the currently controlled vehicle through the V2X application.
[0003] According to the existing method of manually switching vehicles based on vehicle connectivity applications, the vehicle connectivity application on the mobile terminal sends a command to request the current location of the vehicle. The GPS on the vehicle receives the command and sends the current location of the vehicle to the vehicle connectivity application. The vehicle connectivity application obtains the current location of the mobile terminal and calculates the distance between the mobile terminal and the vehicle based on the current locations of the mobile terminal and the vehicle. The user then manually selects and switches the currently controlled vehicle based on the distance.
[0004] In the process of calculating the distance between the mobile terminal and the vehicle, there are problems such as excessively long response times and slow response speeds, which can easily affect the accuracy of the distance calculation and thus the accuracy of the currently controlled vehicle. Furthermore, since the current positions of both the mobile terminal and the vehicle are acquired during movement, there is a time discrepancy between the current positions of the mobile terminal and the vehicle obtained by the vehicle-to-everything (V2X) application. This mismatch in the acquisition times of the mobile terminal's current position and the vehicle's current position leads to a calculation error in the distance between the mobile terminal and the vehicle, affecting the accuracy of the distance calculation and consequently the accuracy of the currently controlled vehicle. Summary of the Invention
[0005] One aspect of this application is to provide a method, electronic device, and storage medium for switching vehicles based on a vehicle-to-everything (V2X) application. By synchronizing the location information of the mobile terminal and the vehicle bound to the mobile terminal, the response time and speed are improved, and the consistency of the location information of the mobile terminal and the vehicle bound to the mobile terminal is ensured. This, in turn, improves the accuracy of the distance calculation between the vehicle and the mobile terminal, thereby ensuring the accuracy of the sent instructions for switching the currently controlled vehicle.
[0006] Another aspect of this application is to provide a method, electronic device, and storage medium for switching vehicles based on a vehicle connectivity application. This method can group all vehicles based on the distance between the vehicle and the mobile terminal, select the group of vehicles closest to the mobile terminal as the target vehicle group, and send an instruction to the vehicle connectivity application to switch the currently controlled vehicle based on the distance between each vehicle in the target vehicle group and the mobile terminal. This eliminates the need for users to manually select the switching step or simplifies the user selection process, thereby improving the user experience.
[0007] According to a first aspect of this application, a method for switching vehicles based on a vehicle connectivity application is provided. The method includes: synchronously acquiring location information of a mobile terminal with the vehicle connectivity application installed and location information of each vehicle bound to the mobile terminal; determining the distance between the vehicle and the mobile terminal based on the location information, and dividing all vehicles bound to the mobile terminal into at least one vehicle group based on the distance; determining the vehicle group closest to the mobile terminal from all vehicle groups as the target vehicle group, and calculating the distance between each vehicle in the target vehicle group and the mobile terminal; and sending an instruction to the vehicle connectivity application for switching the currently controlled vehicle based on the distance between each vehicle in the target vehicle group and the mobile terminal.
[0008] In some implementations, dividing all vehicles bound to the mobile terminal into at least one vehicle group based on the distance includes: dividing all vehicles bound to the mobile terminal and whose distance to the mobile terminal is within a first preset range into a first vehicle group; and dividing all vehicles bound to the mobile terminal and whose distance to the mobile terminal is within an Nth preset range into an Nth vehicle group, where N≥2; wherein any two preset ranges do not overlap.
[0009] In some implementations, determining the vehicle group closest to the mobile terminal from all vehicle groups as the target vehicle group includes: selecting the vehicle group whose distance to the mobile terminal is less than a first threshold as the target vehicle group.
[0010] In some implementations, sending an instruction to the vehicle-to-everything (V2X) application to switch the currently controlled vehicle based on the distance between each vehicle in the target vehicle group and the mobile terminal includes: in response to only one vehicle in the target vehicle group having a distance less than a second threshold between it and the mobile terminal, sending an instruction to the V2X application to switch the currently controlled vehicle to that single vehicle.
[0011] In some implementations, sending an instruction to the vehicle-to-everything (V2X) application to switch the currently controlled vehicle based on the distance between each vehicle in the target vehicle group and the mobile terminal includes: in response to a second threshold being met by sending an instruction to the V2X application including vehicle information of the multiple vehicles, so that the user selects one of the multiple vehicles as the currently controlled vehicle based on the vehicle information.
[0012] In some implementations, sending an instruction to the vehicle connectivity application including vehicle information of the plurality of vehicles, so that a user selects one of the plurality of vehicles as the currently controlled vehicle based on the vehicle information of the plurality of vehicles, includes: sending an instruction to the vehicle connectivity application for displaying vehicle information of the plurality of vehicles in a pop-up window, so that a user selects one of the plurality of vehicles as the currently controlled vehicle based on the vehicle information of the plurality of vehicles in the pop-up window.
[0013] In some implementations, synchronously acquiring the location information of a mobile terminal with the vehicle connectivity application installed and the location information of each vehicle bound to the mobile terminal includes: in response to a user activating the vehicle connectivity application, synchronously acquiring the real-time location information of the mobile terminal and the real-time location information of each vehicle bound to the mobile terminal.
[0014] According to a second aspect of this application, an electronic device is provided, comprising at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the vehicle-to-everything (V2X) application-based vehicle switching method of the first aspect of this application.
[0015] According to a third aspect of this application, a non-transient computer-readable storage medium is provided, on which machine-executable instructions are stored, which, when executed, cause the machine to perform the vehicle-to-everything (V2X) application-based vehicle switching method of the first aspect of this application.
[0016] According to a fourth aspect of this application, a method for switching vehicles based on a vehicle connectivity application is provided. The method includes: sending location information of a mobile terminal with a vehicle connectivity application installed to a cloud server in real time, wherein the cloud server determines a switching instruction based on the distance between each vehicle in a target vehicle group bound to the mobile terminal and the mobile terminal, and the target vehicle group is the group of vehicles closest to the mobile terminal as determined based on the location information; and switching the currently controlled vehicle according to the switching instruction received from the cloud server.
[0017] In some implementations, in response to the switching instruction received from the cloud server, switching the currently controlled vehicle according to the switching instruction includes: in response to the first switching instruction issued by the cloud server based on the fact that only one vehicle in the target vehicle group is less than a second threshold distance from the mobile terminal, switching the currently controlled vehicle to the only vehicle.
[0018] In some implementations, in response to the switching instruction received from the cloud server, switching the currently controlled vehicle according to the switching instruction includes: in response to a second switching instruction issued by the cloud server based on the distance between multiple vehicles in the target vehicle group and the mobile terminal being less than a second threshold, selecting one of the multiple vehicles and switching it to the currently controlled vehicle, wherein the second switching instruction includes vehicle information of the multiple vehicles.
[0019] In some implementations, in response to a received second switching instruction, selecting one of the plurality of vehicles and switching it to the currently controlled vehicle includes: in response to the received second switching instruction, displaying vehicle information of the plurality of vehicles in a pop-up window, and selecting one of the plurality of vehicles in the pop-up window and switching it to the currently controlled vehicle.
[0020] According to a fifth aspect of this application, an electronic device is provided, comprising at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the vehicle-to-everything (V2X) application-based vehicle switching method of the fourth aspect of this application.
[0021] According to a sixth aspect of this application, a non-transient computer-readable storage medium is provided, on which machine-executable instructions are stored, which, when executed, cause the machine to perform the vehicle-to-everything (V2X) application-based method for switching vehicles according to the fourth aspect of this application.
[0022] It should be understood that the descriptions in this section are not intended to identify key or important features of the embodiments of this application, nor are they intended to limit the scope of this application. Other features of this application will become readily apparent from the descriptions below. Attached Figure Description
[0023] Other features, objects, and advantages involved in the embodiments of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings. Wherein:
[0024] Figure 1A schematic diagram of a method for switching vehicles based on a vehicle connectivity application according to an exemplary embodiment of this application is shown;
[0025] Figure 2 A schematic diagram illustrating the binding relationship between a user account and a vehicle according to an exemplary embodiment of this application is shown;
[0026] Figure 3 A schematic diagram illustrating the operation of a method for switching vehicles based on a vehicle connectivity application according to an exemplary embodiment of this application is shown.
[0027] Figure 4 A schematic diagram of a method for switching vehicles based on a vehicle connectivity application according to an exemplary embodiment of this application is shown;
[0028] Figure 5 A schematic diagram of the structure of an electronic device according to an exemplary embodiment of this application is shown. Detailed Implementation
[0029] To better understand this application, various aspects of this application will be described in more detail with reference to the accompanying drawings. It should be understood that these detailed descriptions are merely illustrative of exemplary embodiments of this application and are not intended to limit the scope of this application in any way. Throughout the specification, the same reference numerals refer to the same elements. The expression "and / or" includes any and all combinations of one or more of the associated listed items.
[0030] It should be noted that in this specification, the terms "first," "second," etc., are used only to distinguish one feature from another and do not imply any limitation on the features, especially not any order of precedence. Therefore, without departing from the teachings of this application, the first switching instruction discussed below may be referred to as the second switching instruction, and vice versa.
[0031] It should also be understood that expressions such as “comprising,” “including,” “having,” “containing,” and / or “comprising” are open-ended rather than closed expressions in this specification, indicating the presence of the stated features, elements, and / or components, but not excluding the presence of one or more other features, elements, components, and / or combinations thereof. Additionally, the use of “exemplary” is intended to refer to an example or illustration.
[0032] Unless otherwise specified, all terms used in this application (including technical and scientific terms) shall have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. It should also be understood that terms (e.g., those defined in common dictionaries) should be understood to have a meaning consistent with their meaning in the context of the relevant art, and should not be interpreted in an idealized or overly formal sense, unless expressly so defined in this application.
[0033] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. Furthermore, unless explicitly limited or contradicted by the context, the specific steps included in the methods described in this application are not limited to the order in which they are described, but can be performed in any order or in parallel. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0034] Figure 1 This is a flowchart illustrating a method 100 for switching vehicles based on a vehicle connectivity application, according to an exemplary embodiment of this application. This method 100 for switching vehicles based on a vehicle connectivity application can be executed, for example, by an electronic device such as a cloud server. Figure 1 As shown, the method 100 for switching vehicles based on a vehicle connectivity application includes:
[0035] S110. Synchronously obtain the location information of the mobile terminal with the vehicle connectivity application installed, as well as the location information of each vehicle bound to the mobile terminal.
[0036] S120. Determine the distance between the vehicle and the mobile terminal based on the location information, and divide all vehicles bound to the mobile terminal into at least one vehicle group based on the distance.
[0037] S130. Determine the vehicle group closest to the mobile terminal from all vehicle groups as the target vehicle group, and calculate the distance between each vehicle in the target vehicle group and the mobile terminal.
[0038] S140. Based on the distance between each vehicle in the target vehicle group and the mobile terminal, send an instruction to the vehicle-to-everything (V2X) application to switch the currently controlled vehicle.
[0039] The method provided in this application can synchronize the location information of mobile terminals and vehicles bound to them via a cloud server, improving response time and speed, and ensuring the consistency of location information between the mobile terminals and their bound vehicles. This, in turn, improves the accuracy of distance calculation between the vehicle and the mobile terminal, ensuring the accuracy of the commands sent by the cloud server to switch the currently controlled vehicle. Furthermore, this method can group all vehicles based on the distance between them and the mobile terminal, selecting the group of vehicles closest to the mobile terminal as the target vehicle group. Based on the distance between each vehicle in the target vehicle group and the mobile terminal, a command to switch the currently controlled vehicle is sent to the vehicle-to-everything (V2X) application, eliminating the need for manual switching or simplifying the user's switching process and improving the user experience.
[0040] The steps S110 to S140 of the exemplary embodiments of this application are described below by way of example.
[0041] Step S110
[0042] In an exemplary embodiment, synchronously acquiring the location information of a mobile terminal with a vehicle connectivity application installed, as well as the location information of each vehicle bound to the mobile terminal, includes:
[0043] In response to a user activating the vehicle connectivity application, the system synchronously acquires the real-time location information of the mobile terminal and the real-time location information of each vehicle bound to the mobile terminal. For example, in response to a user activating the vehicle connectivity application, the cloud server synchronously acquires the real-time location information of the mobile terminal and the real-time location information of each vehicle bound to the mobile terminal, and stores the real-time location information of the mobile terminal and vehicles on the cloud server so that the above location information can be directly retrieved when calculating the distance between the mobile terminal and the vehicle later.
[0044] By synchronizing the location information of mobile terminals and vehicles bound to them through cloud servers, response time and speed are improved, and the consistency of location information of mobile terminals and vehicles bound to them is ensured, thereby improving the accuracy of distance calculation between vehicles and mobile terminals.
[0045] It should be understood that, without departing from the teachings of this application, the location information of the mobile terminal and the location information of each vehicle bound to the mobile terminal can also be obtained in real time under other response conditions, and this application does not limit this.
[0046] Step S120
[0047] In an exemplary embodiment, during the movement of the vehicle and the mobile terminal, the distance between the vehicle and the mobile terminal at the same moment is determined based on the vehicle's location information and the mobile terminal's location information at the same moment. This can avoid calculation deviations in the distance between the vehicle and the mobile terminal and ensure the accuracy of the distance calculation between the vehicle and the mobile terminal.
[0048] In an exemplary embodiment, dividing all vehicles bound to the mobile terminal into at least one vehicle group based on the aforementioned distance includes:
[0049] All vehicles that are within a first preset range of distance from the mobile terminal and are bound to the mobile terminal are assigned to the first vehicle group; and
[0050] All vehicles that are within the Nth preset range of distance from the mobile terminal and are bound to the mobile terminal are assigned to the Nth vehicle group, where N≥2; and no two preset ranges overlap.
[0051] The following example illustrates this using the scenario of a user owning n vehicles linked to a mobile device:
[0052] If the distance between all vehicles and the mobile terminal is within the same preset range, then all vehicles are assigned to the same vehicle group. For example, if the distance between n vehicles and the mobile terminal is within a first preset range, then the n vehicles are assigned to the first vehicle group. The first preset range can be, for example, 0 to 100 meters. The first preset range is merely exemplary and is not limited thereto in this application.
[0053] If the distances between some vehicles and the mobile terminal are all within the same preset range, then these vehicles are all assigned to the same vehicle group. For example, if the distances between *a* vehicles and the mobile terminal are all within a first preset range, then *a* vehicles are all assigned to the first vehicle group; if the distances between *b* vehicles and the mobile terminal are all within a second preset range, then *b* vehicles are all assigned to the second vehicle group; where *a* + *b* = *n*, and the first and second preset ranges do not overlap. The first preset range may be, for example, 0–100 m, and the second preset range may be, for example, 100 m–1000 m. The first and second preset ranges are merely illustrative and are not intended to limit the scope of this application.
[0054] It should be understood that, without departing from the teachings of this application, vehicles bound to mobile terminals can be grouped in other ways, and this application does not limit this.
[0055] Step S130
[0056] In an exemplary embodiment, determining the vehicle group closest to the mobile terminal from all vehicle groups as the target vehicle group includes: selecting vehicle groups whose distances to the mobile terminal are all less than a first threshold as the target vehicle group. The first threshold is the highest limit of a first preset range, for example, the first threshold may be 100m. The target vehicle group is the first vehicle group.
[0057] It should be understood that, without departing from the teachings of this application, the target vehicle group may be determined by other means, and this application does not limit this.
[0058] In an exemplary embodiment, the real-time distance between each vehicle in the target vehicle group and the mobile terminal is calculated based on the real-time location information of each vehicle in the target vehicle group and the mobile terminal. This can avoid calculation deviations in the distance between the vehicle and the mobile terminal and ensure the accuracy of the distance calculation between the vehicle and the mobile terminal.
[0059] Step S140
[0060] In an exemplary implementation, sending instructions to the vehicle-to-everything (V2X) application to switch the currently controlled vehicle, based on the distance between each vehicle in the target vehicle group and the mobile terminal, includes:
[0061] In response to the situation where only one vehicle in the target vehicle group is less than a second threshold in distance from the mobile terminal, a command is sent to the vehicle-to-everything (V2X) application to switch the currently controlled vehicle to that single vehicle. For example, if only one vehicle in the target vehicle group is less than the second threshold in distance from the mobile terminal, the cloud server sends a command to the V2X application to switch the currently controlled vehicle to that single vehicle whose distance from the mobile terminal is less than the second threshold. The second threshold is less than the first threshold; for example, the second threshold may be less than 20 meters.
[0062] Based on the instructions sent from the cloud server to the vehicle connectivity application, the application can automatically switch the currently controlled vehicle, eliminating the need for the user to manually select and switch, thus improving the user experience.
[0063] In an exemplary implementation, sending instructions to the vehicle-to-everything (V2X) application to switch the currently controlled vehicle, based on the distance between each vehicle in the target vehicle group and the mobile terminal, includes:
[0064] In response to multiple vehicles in the target vehicle group being less than a second threshold distance from the mobile terminal, an instruction including vehicle information of the multiple vehicles is sent to the vehicle connectivity application, enabling the user to select one of the multiple vehicles as the currently controlled vehicle based on this information. For example, if multiple vehicles in the target vehicle group are less than the second threshold distance from the mobile terminal, the cloud server sends an instruction to the vehicle connectivity application to display the vehicle information of these multiple vehicles in a pop-up window, allowing the user to select one of the multiple vehicles as the currently controlled vehicle based on this information. The multiple vehicles refer to vehicles in the target vehicle group whose distance from the mobile terminal is less than the second threshold. The second threshold is less than the first threshold, and for example, the second threshold may be less than 20 meters.
[0065] Based on the instructions sent from the cloud server to the vehicle connectivity application, the application can directly display a pop-up window showing all vehicles in the target vehicle group whose distance from the mobile terminal is less than the second threshold. Users can select one of these vehicles as the currently controlled vehicle based on their own preferences, simplifying the user's selection and switching steps and improving the user experience.
[0066] The following example illustrates the above method 100 for switching vehicles based on a vehicle connectivity application, using a specific application scenario as an example.
[0067] like Figure 2 As shown, the application scenario is as follows: A user owns multiple vehicles, for example, three vehicles, specifically vehicle A, vehicle B, and vehicle C. Vehicle A and vehicle B are located in the same parking area, while vehicle C is located in a different parking area than the one where vehicles A and B are parked.
[0068] Combination Figure 3 This paper describes the workflow of method 100 for switching vehicles based on a vehicle connectivity application in the above application scenario. The detailed workflow is as follows:
[0069] In response to the user activating the vehicle connectivity application, the cloud server synchronously receives the location information of the mobile terminal, vehicle A, vehicle B, and vehicle C in real time.
[0070] Based on the location information mentioned above, the distances between vehicles A, B, and C and the mobile terminal are calculated, and vehicles A, B, and C are grouped according to these distances. For example, if the distances between vehicles A and B and the mobile terminal are both within a first preset range, then vehicles A and B are both assigned to the first vehicle group; if the distance between vehicle C and the mobile terminal is within a second preset range, then vehicle C is assigned to the second vehicle group. The second preset range does not overlap with the first preset range. The first preset range can be, for example, 0–100m, and the second preset range can be, for example, 100m–1000m.
[0071] The vehicle group closest to the mobile terminal from all vehicle groups is identified as the target vehicle group, specifically the first vehicle group containing vehicles A and B. The real-time distances between vehicles A, B, and the mobile terminal are calculated based on their real-time location information.
[0072] Based on the real-time distance between vehicle A, vehicle B, and the mobile terminal, the cloud server sends a command to the vehicle connectivity application to switch the currently controlled vehicle. When the real-time distance between only vehicle A or vehicle B and the mobile terminal is less than a second threshold, the cloud server sends a command to the vehicle connectivity application to switch the currently controlled vehicle to the vehicle (vehicle A or vehicle B) whose real-time distance to the mobile terminal is less than the second threshold. When the distances between both vehicle A and vehicle B and the mobile terminal are less than the second threshold, the cloud server sends a command to the vehicle connectivity application to display vehicle information for vehicle A and vehicle B in a pop-up window. This allows the vehicle connectivity application to display vehicle information for vehicle A and vehicle B in a pop-up window based on the vehicle information and the user's preferences, enabling the user to select vehicle A or vehicle B as the currently controlled vehicle based on the vehicle information and their own preferences. The second threshold is less than the first threshold, and the second threshold may be, for example, less than 20m.
[0073] Figure 4 This is a flowchart illustrating a method 400 for switching vehicles based on a vehicle connectivity application, according to an exemplary embodiment of this application. This method 400 for switching vehicles based on a vehicle connectivity application can, for example, be executed by a vehicle connectivity application on a mobile terminal. Figure 4 As shown, the method 400 for switching vehicles based on a vehicle connectivity application includes:
[0074] S410. Send the location information of the mobile terminal with the vehicle connectivity application installed to the cloud server in real time, wherein the cloud server determines the switching command based on the distance between the mobile terminal and each vehicle in the target vehicle group bound to the mobile terminal, and the target vehicle group is the group of vehicles closest to the mobile terminal determined based on the aforementioned location information; and
[0075] S420, in response to a switching command received from the cloud server, switches the currently controlled vehicle according to the switching command.
[0076] The cloud server can also obtain the location information of each vehicle in the target vehicle group. By synchronizing the location information of the mobile terminal and the vehicles through the cloud server, response time and speed can be improved, and the consistency of the location information of the mobile terminal and the vehicles can be ensured. This, in turn, improves the accuracy of distance calculation between the vehicle and the mobile terminal, ensuring the accuracy of the switching commands sent by the cloud server. In addition, by sending switching commands to the vehicle-to-everything (V2X) application, the cloud server can eliminate the need for users to manually select the switching step or simplify the switching process, thus improving the user experience.
[0077] The steps S410 to S420 of the exemplary embodiments of this application are described below by way of example.
[0078] Step S410
[0079] In an exemplary embodiment, in response to a user activating a vehicle connectivity application, the location information of the mobile terminal with the vehicle connectivity application installed is sent to the cloud server in real time. The cloud server can also simultaneously acquire the location information of each vehicle in the target vehicle group bound to the mobile terminal in real time, and determine a switching command based on the distance between each vehicle in the target vehicle group and the mobile terminal. The target vehicle group is the group of vehicles closest to the mobile terminal determined based on the aforementioned location information.
[0080] The methods used by the cloud server to determine the aforementioned target vehicle group include:
[0081] The location information of the mobile terminal with the vehicle-to-everything (V2X) application installed, as well as the location information of each vehicle bound to the mobile terminal, are obtained synchronously. The method for obtaining the location information is the same as step S110 in the exemplary embodiment described above, and will not be repeated here.
[0082] Based on the location information, the distance between the vehicle and the mobile terminal is determined, and all vehicles bound to the mobile terminal are divided into at least one vehicle group based on the distance. The method for calculating the distance between the vehicle and the mobile terminal and the method for grouping the vehicles bound to the mobile terminal are the same as step S120 in the exemplary embodiment described above, and will not be repeated here.
[0083] The vehicle group closest to the mobile terminal from all vehicle groups is selected as the target vehicle group. The method for selecting the target vehicle group from all vehicle groups is the same as step S130 in the exemplary embodiment described above, and will not be repeated here.
[0084] Step S420
[0085] In an exemplary implementation, responding to a switching instruction received from a cloud server, switching the currently controlled vehicle according to the switching instruction includes:
[0086] In response to a first handover command received from the cloud server based on the fact that only one vehicle in the target vehicle group is less than a second threshold distance from the mobile terminal, the currently controlled vehicle is switched to that single vehicle. For example, if only one vehicle in the target vehicle group is less than the second threshold distance from the mobile terminal, the cloud server sends a first handover command to the vehicle connectivity application. In response to the received first handover command, the vehicle connectivity application switches the currently controlled vehicle to the single vehicle whose distance from the mobile terminal is less than the second threshold. The second threshold is less than the first threshold, and the second threshold may be, for example, less than 20m.
[0087] Based on the first switching command sent from the cloud server to the vehicle application, the vehicle connectivity application can automatically switch the currently controlled vehicle, eliminating the need for the user to manually select and switch, thus improving the user experience.
[0088] In an exemplary implementation, responding to a switching instruction received from a cloud server, switching the currently controlled vehicle according to the switching instruction includes:
[0089] In response to a second handover command received from the cloud server based on the fact that the distance between multiple vehicles in the target vehicle group and the mobile terminal is less than a second threshold, the user selects one of the multiple vehicles and switches it to the currently controlled vehicle. The second handover command includes vehicle information of the multiple vehicles. For example, if multiple vehicles in the target vehicle group are less than the second threshold in distance from the mobile terminal, the cloud server sends the second handover command to the vehicle connectivity application. In response to the received second handover command, the vehicle connectivity application displays the vehicle information of the multiple vehicles in a pop-up window. The user then selects one of the multiple vehicles in the pop-up window based on the vehicle information and switches it to the currently controlled vehicle. The multiple vehicles refer to vehicles in the target vehicle group whose distance from the mobile terminal is less than the second threshold. The second threshold is less than the first threshold, and the second threshold may be, for example, less than 20 meters.
[0090] Based on the first switching command sent by the cloud server to the vehicle application, the vehicle-to-everything (V2X) application can directly display a pop-up window showing all vehicles in the target vehicle group whose distance from the mobile terminal is less than the second threshold. Users can select one of these vehicles as the currently controlled vehicle based on their own preferences, simplifying the user's selection and switching steps and improving the user experience.
[0091] An exemplary embodiment of this application also provides an electronic device, which includes at least one processor and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the above-described method for switching vehicles based on a vehicle connectivity application.
[0092] An exemplary embodiment of this application also provides a non-transient computer-readable storage medium storing machine-executable instructions thereon, which, when executed, cause the machine to perform the above-described method for switching vehicles based on a vehicle connectivity application.
[0093] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement exemplary embodiments of this application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the application described and / or claimed herein.
[0094] like Figure 5As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. The RAM 503 may also store various programs and data required for the operation of the electronic device 500. The computing unit 501, ROM 502, and RAM 503 are interconnected via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0095] Multiple components in electronic device 500 are connected to I / O interface 505, including: input unit 506, such as keyboard, mouse, etc.; output unit 507, such as various types of monitors, speakers, etc.; storage unit 508, such as disk, optical disk, etc.; and communication unit 509, such as network card, modem, wireless transceiver, etc. Communication unit 509 allows electronic device 500 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0096] The computing unit 501 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as the method of switching vehicles based on a vehicle connectivity application. For example, in some embodiments, the method of switching vehicles based on a vehicle connectivity application can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the method of switching vehicles based on a vehicle connectivity application described above can be performed. Alternatively, in other embodiments, computing unit 501 may be configured by any other suitable means (e.g., by means of firmware) to perform a method for switching vehicles based on a vehicle connectivity application.
[0097] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.
[0098] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0099] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0100] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user, such as a CRT (cathode ray tube) or LCD (liquid crystal display) monitor; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0101] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0102] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.
[0103] The above description is merely an exemplary embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of protection involved in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the technical concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
Claims
1. A method for switching vehicles based on a vehicle-to-everything (V2X) application, characterized in that, The method includes: The location information of the mobile terminal with the vehicle connectivity application installed and the location information of each vehicle bound to the mobile terminal are obtained simultaneously. The distance between the vehicle and the mobile terminal is determined based on the location information, and all vehicles bound to the mobile terminal are divided into at least one vehicle group based on the distance. From all vehicle groups, the vehicle group closest to the mobile terminal is determined as the target vehicle group; the distance between each vehicle in the target vehicle group and the mobile terminal is calculated; and Based on the distance between each vehicle in the target vehicle group and the mobile terminal, an instruction is sent to the vehicle connectivity application to switch the currently controlled vehicle.
2. The method according to claim 1, wherein, Based on the distance, all vehicles bound to the mobile terminal are divided into at least one vehicle group, including: All vehicles that are within a first preset range of distance from the mobile terminal and are bound to the mobile terminal are assigned to a first vehicle group; and All vehicles that are within the Nth preset range of distance from the mobile terminal and are bound to the mobile terminal are assigned to the Nth vehicle group, where N≥2; wherein, no two preset ranges overlap.
3. The method according to claim 2, wherein, Determining the target vehicle group from all vehicle groups as the vehicle group closest to the mobile terminal includes: The group of vehicles whose distances from the vehicle to the mobile terminal are all less than a first threshold are designated as the target vehicle group.
4. The method according to claim 1, wherein, Based on the distance between each vehicle in the target vehicle group and the mobile terminal, sending instructions to the vehicle connectivity application to switch the currently controlled vehicle includes: In response to the fact that only one vehicle in the target vehicle group is less than a second threshold distance from the mobile terminal, an instruction is sent to the vehicle connectivity application to switch the currently controlled vehicle to the only vehicle.
5. The method according to claim 1, wherein, Based on the distance between each vehicle in the target vehicle group and the mobile terminal, sending instructions to the vehicle connectivity application to switch the currently controlled vehicle includes: In response to the distance between multiple vehicles in the target vehicle group and the mobile terminal being less than a second threshold, an instruction including vehicle information of the multiple vehicles is sent to the vehicle connectivity application, so that the user can select one of the multiple vehicles as the currently controlled vehicle based on the vehicle information of the multiple vehicles.
6. The method according to claim 5, wherein, Sending an instruction to the vehicle connectivity application, including vehicle information of the plurality of vehicles, so that the user selects one of the plurality of vehicles as the currently controlled vehicle based on the vehicle information of the plurality of vehicles, includes: Send an instruction to the vehicle connectivity application to display vehicle information of the multiple vehicles in a pop-up window, so that the user can select one of the multiple vehicles as the currently controlled vehicle based on the vehicle information of the multiple vehicles in the pop-up window.
7. The method according to claim 1, wherein, The synchronous acquisition of location information of mobile terminals with the vehicle connectivity application installed, as well as location information of each vehicle bound to the mobile terminal, includes: In response to the user activating the vehicle connectivity application, the real-time location information of the mobile terminal and the real-time location information of each vehicle bound to the mobile terminal are simultaneously obtained.
8. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 7.
9. A non-transient computer-readable storage medium having stored thereon machine-executable instructions, which, when executed, cause a machine to perform the method of any one of claims 1 to 7.
10. A method for switching vehicles based on a vehicle-to-everything (V2X) application, characterized in that, The method includes: The location information of the mobile terminal with the vehicle connectivity application installed is sent to the cloud server in real time. The cloud server determines a switching command based on the distance between the mobile terminal and each vehicle in the target vehicle group bound to it. The target vehicle group is the group of vehicles closest to the mobile terminal, determined based on the location information. In response to the switching instruction received from the cloud server, the currently controlled vehicle is switched according to the switching instruction.
11. The method according to claim 10, wherein, In response to the switching instruction received from the cloud server, switching the currently controlled vehicle according to the switching instruction includes: In response to a first switching command issued by the cloud server based on the fact that only one vehicle in the target vehicle group is less than a second threshold distance from the mobile terminal, the currently controlled vehicle is switched to the only vehicle.
12. The method according to claim 10, wherein, In response to the switching instruction received from the cloud server, switching the currently controlled vehicle according to the switching instruction includes: In response to a second switching instruction issued by the cloud server based on the distance between multiple vehicles in the target vehicle group and the mobile terminal being less than a second threshold, one of the multiple vehicles is selected and switched to the currently controlled vehicle, wherein the second switching instruction includes vehicle information of the multiple vehicles.
13. The method according to claim 12, wherein, In response to a received second switching instruction, selecting one of the plurality of vehicles and switching it to the currently controlled vehicle includes: In response to the received second switching instruction, a pop-up window displays vehicle information of the plurality of vehicles, and one of the plurality of vehicles is selected in the pop-up window and switched to the currently controlled vehicle.
14. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 10 to 13.
15. A non-transient computer-readable storage medium having stored thereon machine-executable instructions, which, when executed, cause a machine to perform the method of any one of claims 10 to 13.