Vehicle control method, device and program product
By acquiring and analyzing the communication quality data of the vehicle control channel, the optimal channel is selected for vehicle control, which solves the problem of vehicle control failure caused by signal instability and multi-party interference, and improves the success rate and user experience of vehicle control.
Patent Information
- Application Number
- CN202411164878.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-15
AI Technical Summary
When selecting a vehicle control communication channel with the existing technology, it is easy to fail to control the vehicle due to signal instability or interference from multiple parties, affecting the user experience.
By obtaining target communication quality data of short-range and long-range channels, including signal strength and communication efficiency, a better channel is selected for vehicle control to avoid signal instability and interference problems, and channels are switched when necessary to ensure successful command transmission.
It improves the success rate of vehicle control, optimizes user experience, and ensures the stability and reliability of vehicle control in different scenarios.
Smart Images

Figure CN118770122A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a vehicle control method, device and program product. Background Art
[0002] With the development of communication technology, users can unlock and simply control their vehicles through mobile phone APP and other methods. Among the related technologies of vehicle control, long-range network and short-range communication are the main vehicle control channels. These two communication methods have their own advantages and limitations. How to more reasonably select the communication channel for vehicle control will help improve the user experience. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a vehicle control method, device and program product to achieve the technical effect of reasonably selecting a communication channel for vehicle control.
[0004] A first aspect of an embodiment of the present application provides a vehicle control method, which is applied to a control device, and the method includes:
[0005] In response to a vehicle control instruction, acquiring target communication quality data with the vehicle; wherein the target communication quality data is used to characterize the signal strength of the short-range channel and to characterize the communication efficiency between the short-range channel and the long-range channel;
[0006] determining a target channel from the short-range channel and the long-range channel according to the target communication quality data;
[0007] The vehicle control instruction is sent to the vehicle through the target channel.
[0008] In the above implementation process, by referring to the signal strength, the situation where the short-range channel fails to send control instructions due to unstable signals in the critical area of the connection when it is just connected is avoided. By referring to the communication efficiency of the dual channels, the situation where the near-field communication is unstable and the communication efficiency is low due to the presence of multiple devices or channel interference near the vehicle is avoided. This improves the vehicle control success rate and optimizes the user experience.
[0009] Furthermore, the method further comprises:
[0010] Acquiring communication quality data with the vehicle according to a preset period;
[0011] The step of acquiring target communication quality data with the vehicle in response to the vehicle control instruction includes:
[0012] In response to the vehicle control command, the communication quality data of the latest cycle is determined as the target communication quality data.
[0013] In the above implementation process, by periodically acquiring the communication quality data between the control device and the vehicle, and when a vehicle control command needs to be sent, a better target channel is selected based on the communication quality data of the latest cycle, thereby improving the vehicle control success rate and optimizing the user experience.
[0014] Further, the communication quality data includes signal strength data of the short-range channel, and the acquiring of the communication quality data with the vehicle according to a preset period includes:
[0015] According to a preset first period, acquiring the signal strength data through the short-range channel; or
[0016] According to a preset first cycle, the signal strength data is acquired by scanning the broadcast data of the vehicle.
[0017] In the above implementation process, the signal strength data of the short-range channel is periodically obtained through the short-range channel or vehicle broadcasting, and then the change of the short-range channel signal strength can be grasped to help select a better communication channel.
[0018] Further, the acquiring of the communication quality data with the vehicle according to a preset period includes:
[0019] According to a preset second period, obtaining first data sent by the vehicle through the short-range channel and second data sent by the vehicle through the long-range channel;
[0020] The acquiring target communication quality data with the vehicle comprises:
[0021] The relationship between the communication efficiency of the short-range channel and the long-range channel is determined by comparing the sequence of the first time information carried by the first data of the latest cycle and the second time information carried by the second data of the latest cycle.
[0022] In the above implementation process, by comparing the sequence of the first data and the second data of the latest cycle, the relationship between the communication time of the short-range channel and the long-range channel can be learned, and then the relationship between the communication efficiency of the two channels can be inferred, avoiding the situation where the short-range communication is unstable due to the presence of multiple corresponding control devices near the vehicle or the presence of channel interference, resulting in the failure of control command sending.
[0023] Further, determining a target channel from the short-range channel and the long-range channel according to the target communication quality data includes:
[0024] If the target communication quality data indicates that the signal strength of the short-range channel is greater than a preset strength threshold, and the communication efficiency of the short-range channel is better than the communication efficiency of the long-range channel, the short-range channel is determined to be the target channel.
[0025] In the above implementation process, a strict selection strategy is formulated for the selection of short-range channels. When the signal strength and communication efficiency meet the requirements at the same time and the communication quality of the short-range channel is ensured to be better, the short-range channel will be selected for vehicle control.
[0026] Further, determining a target channel from the short-range channel and the long-range channel according to the target communication quality data includes:
[0027] If the target communication quality data indicates that the signal strength of the short-range channel is less than a preset strength threshold, and / or the communication efficiency of the long-range channel is better than the communication efficiency of the short-range channel, the long-range channel is determined to be the target channel.
[0028] In the above implementation process, when it cannot be ensured that the communication quality of the short-range channel is better than that of the long-range channel, in order to ensure the user experience, the long-range channel is still selected for vehicle control, thereby improving the success rate of vehicle control and optimizing the user experience.
[0029] Furthermore, the method further comprises:
[0030] In the case where the target channel is the short-range channel, determining a first timeout period of the short-range channel; if the vehicle control instruction fails to be sent within the first timeout period, determining the long-range channel as the next target channel, and returning to execute the vehicle control instruction sending step;
[0031] In the case where the target channel is the remote channel, determining a second timeout period of the remote channel; if the vehicle control instruction fails to be sent within the second timeout period, determining the short-range channel as the next target channel, and returning to execute the vehicle control instruction sending step;
[0032] The first timeout period is smaller than the second timeout period.
[0033] In the above implementation process, the timeout period is flexibly set based on the selected target channel, and in the event of a vehicle control timeout, the system promptly switches to another channel to resend the command, thereby further improving the vehicle control success rate and optimizing the user experience.
[0034] Furthermore, the short-range channel is a Bluetooth channel, and the long-range channel is a network channel.
[0035] A second aspect of an embodiment of the present application provides a control device, including:
[0036] processor;
[0037] a memory for storing processor-executable instructions;
[0038] Wherein, when the processor calls the executable instruction, any one of the methods described in the first aspect is implemented.
[0039] A third aspect of the embodiments of the present application provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, any method described in the first aspect is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 An application scenario of a vehicle control method provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of a vehicle control method provided in an embodiment of the present application;
[0043] Figure 3 A flow chart of another vehicle control method provided in an embodiment of the present application;
[0044] Figure 4 A flow chart of another vehicle control method provided in an embodiment of the present application;
[0045] Figure 5 A hardware structure diagram of a control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0046] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0047] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0048] Long-range communication and short-range communication each have their own advantages and limitations. For example, long-range communication is not limited by the distance from the vehicle, which is convenient for operation. However, long-range communication needs to rely on vehicle networking. In the case of unstable network, there will be problems of unstable transmission or control delay. Short-range communication is not limited by the vehicle network and has a shorter delay. However, short-range communication is limited by the connection distance and can only communicate within a range of tens of meters.
[0049] At present, most vehicle manufacturers have a selection strategy for these two communication methods: when short-range communication is not established, use long-range communication to control the vehicle. After short-range communication is established, switch to short-range communication for vehicle control. However, in actual scenarios, when the user approaches the vehicle from far to near, the control device, such as a mobile phone, will establish short-range communication with the vehicle somewhere. At this time, since the control device has just established short-range communication with the vehicle, the control device is still in the critical connection area, resulting in a weak communication signal. If you switch to short-range communication in the critical connection area, the vehicle will not be able to receive control instructions due to unstable signals, which will lead to failure in vehicle control and affect the user experience.
[0050] In addition, current short-range communication technology supports one party to establish a connection with multiple parties at the same time. If there are multiple corresponding control devices near the vehicle, or there is signal interference in the short-range channel, it is easy to cause the short-range communication to be unstable, which will lead to the failure of vehicle control and affect the user experience.
[0051] It can be seen that short-range communication should be used with caution in vehicle control. In order to more reasonably select a communication method for vehicle control, the present application provides a vehicle control method, device, and program product. Based on the target communication quality data between the control device and the vehicle, the signal strength of the short-range channel and the communication efficiency of the dual channels can be analyzed, so that the current communication quality of the short-range channel can be judged. Finally, a better target channel is selected based on the signal strength of the short-range channel and the communication efficiency of the dual channels, and the vehicle is controlled through the target channel, thereby improving the success rate of vehicle control and optimizing the user experience.
[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] It should be understood that the vehicle described in the embodiments of the present application may be a pure electric vehicle, or a hybrid vehicle, a gas-electric hybrid vehicle, a fuel cell vehicle, or a vehicle of other energy types with a motor, and the embodiments of the present application are not limited thereto. The types of vehicles in the embodiments of the present application may include sedans, off-road vehicles, trucks, buses, etc., and the embodiments of the present application are not limited thereto. The vehicles in the embodiments of the present application may be vehicles with automatic intelligent driving, manned vehicles, or manned vehicles with assisted intelligent driving functions, and the embodiments of the present application are not limited thereto.
[0054] Combine the following Figure 1-Figure 5 A vehicle control method provided by the present application is described. The method is applied to a control device. Among them, the control device includes, for example, but is not limited to, a mobile terminal with vehicle control software installed, a personal computer (PC), a tablet computer, or a wearable device, a virtual reality device or an augmented display device, etc., or any combination thereof. In some embodiments, the mobile terminal may include a smart phone. In some embodiments, the wearable device includes a smart bracelet, a smart watch, smart glasses, smart glass, a smart helmet, smart clothing, a smart backpack, a smart accessory, etc., or any combination thereof. In some embodiments, the virtual reality device and / or the augmented reality device may include a virtual reality helmet, virtual reality glass, a virtual reality patch, an augmented reality helmet, augmented reality glass, or an augmented reality patch, etc., or any combination thereof. For example, the virtual reality device and / or the augmented reality device may include various virtual reality products, etc.
[0055] Figure 1 FIG. 4 shows an application scenario of the vehicle control method. Figure 1 As shown, the control device 110 is connected to the vehicle 120 for communication. The number of control devices 110 may include multiple, that is, the vehicle 120 supports simultaneous communication with multiple control devices 110, and each control device 110 has control authority over the vehicle 120. The control authority of different control devices 110 over the vehicle 120 may be the same or different. Only one control device 110 is shown in the figure as an example, and there is no limit on the number of control devices.
[0056] The communication modes supported between the control device 110 and the vehicle 120 include at least two. Figure 1 As shown, the control device 110 and the vehicle 120 support communication based on a short-range channel, and at this time, the control device 110 is directly connected to the vehicle 120. The short-range channel includes, for example, but is not limited to, Bluetooth, Bluetooth Low Energy (BLE), RFID (Radio Frequency Identification), ZigBee, and the like.
[0057] In addition, the control device 110 and the vehicle 120 also support communication based on a remote channel. The remote channel may be a network channel, for example, including but not limited to a 4G network, a 5G network, etc. At this time, the control device 110 and the vehicle 120 communicate with each other through data forwarding by a base station and a telematics service provider (TSP).
[0058] The present application provides a vehicle control method, which is applied to Figure 1 The control device 110 shown includes Figure 2 Steps 210 to 230 are shown.
[0059] Step 210: In response to the vehicle control instruction, obtain target communication quality data with the vehicle.
[0060] The target communication quality data is used to characterize the signal strength of the short-range channel and to characterize the communication efficiency between the short-range channel and the long-range channel.
[0061] When the control device 110 receives the vehicle control instruction, it triggers the execution of step 210. The vehicle control instruction may be input by a user through the control device 110, or may be automatically generated by other devices such as the control device 110, and this application does not limit this.
[0062] When receiving the vehicle control command, the communication quality of the short-range channel between the control device 110 and the vehicle 120 can be represented by the target communication quality data. The target communication quality data can characterize two aspects of the dual-channel properties, one is the signal strength of the short-range channel, and the other is the communication efficiency between the short-range channel and the long-range channel.
[0063] As mentioned above, when there are multiple corresponding control devices near the vehicle, or there is signal interference in the short-range channel, the communication efficiency of the short-range channel will be affected. Therefore, the comparison of the communication efficiency between the short-range channel and the long-range channel can actually reflect whether there is signal interference in the short-range channel and / or the connection status of the vehicle in the short-range channel; the connection status includes a single connection state or a multi-connection state.
[0064] If the vehicle 120 is in a single connection state in the short-range channel, it means that the vehicle 120 is currently connected to only one control device 110 through the short-range channel. If the vehicle 120 is in a multi-connection state in the short-range channel, it means that the vehicle 120 is currently connected to multiple control devices 110 through the same short-range channel at the same time. For example, the vehicle is connected to the mobile phones of a couple through a Bluetooth channel at the same time. At this time, multiple control devices 110 communicate and interact with the vehicle 120 in a time-division multiplexing manner based on the same short-range channel, which will affect the communication efficiency of the short-range channel.
[0065] Step 220: Determine a target channel from the short-range channel and the long-range channel according to the target communication quality data.
[0066] That is, based on the signal strength of the short-range channel and the communication efficiency between the two channels, the communication quality of the short-range channel is determined, and then the target channel with better communication quality is determined between the short-range channel and the long-range channel.
[0067] Step 230: Send the vehicle control instruction to the vehicle through the target channel.
[0068] Finally, the vehicle control command is sent to the vehicle 120 using the target channel with better communication quality, thereby improving the success rate of command sending.
[0069] It can be seen that the present application combines the signal strength of the short-range channel and the communication efficiency between the short-range channel and the long-range channel to judge the current communication quality of the short-range channel. Based on this, a better target channel is selected for vehicle control. By referring to the signal strength, the situation in which the short-range channel fails to send control instructions due to signal instability caused by being in the critical connection area when it is just connected is avoided. By referring to the communication efficiency of the dual channels, the situation in which the near-field communication is unstable and the communication efficiency is low due to the presence of multiple devices or channel interference near the vehicle is avoided. This improves the success rate of vehicle control and optimizes the user experience.
[0070] In some embodiments, a vehicle control method provided by the present application may include: Figure 3 Steps 310 to 340 are shown.
[0071] Step 310: Acquire communication quality data with the vehicle according to a preset period;
[0072] Step 320: In response to the vehicle control instruction, determine the communication quality data of the latest cycle as the target communication quality data;
[0073] Step 330: Determine a target channel from the short-range channel and the long-range channel according to the target communication quality data;
[0074] Step 340: Send the vehicle control instruction to the vehicle through the target channel.
[0075] Among them, the specific implementation process of step 330-step 340 can refer to the above step 220-step 230, which will not be repeated here.
[0076] Exemplarily, after the vehicle 120 establishes a short-range channel with the control device 110, step 310 is executed to periodically obtain communication quality data. When executing step 310, the control device 110 may have only established a short-range channel with the vehicle, but has not yet obtained the vehicle control command. That is, step 310 is executed after the short-range channel is established and before the vehicle control command is obtained.
[0077] Since the communication quality of the short-range channel will change continuously, when the control device 110 obtains the vehicle control instruction and needs to send the vehicle control instruction to the vehicle 120, the communication quality data of the latest cycle is determined as the target communication quality data, and the target channel is selected according to the communication quality data of the latest cycle.
[0078] It can be seen that in this embodiment, by periodically acquiring the communication quality data between the control device and the vehicle, and when a vehicle control instruction needs to be sent, a better target channel is selected based on the communication quality data of the latest cycle, thereby improving the vehicle control success rate and optimizing the user experience.
[0079] In some embodiments, the communication quality data includes signal strength data of a short-range channel. Based on this, the above step 310 may specifically include step 311 or step 312 .
[0080] Step 311: Acquire the signal strength data through the short-range channel according to a preset first period.
[0081] For example, after the control device 110 establishes a short-range channel with the vehicle 120, the vehicle 120 needs to periodically send a heartbeat packet to the control device 110 to maintain the connection, for example, the heartbeat packet can be sent according to the first period. When receiving the heartbeat packet, the control device can obtain the signal strength data of the short-range channel, for example, the signal strength value RSSI (Received Signal Strength Indicator).
[0082] Of course, in addition to the heartbeat packet, the control device 110 can also obtain signal strength data based on other periodic data packets sent by the vehicle 120. It is understandable that the control device 110 can obtain the signal strength data through the antenna when receiving the data packet sent by the vehicle 120.
[0083] Based on this, when the control device 110 receives a vehicle control instruction, the current signal strength of the short-range channel can be determined from the signal strength data of the latest cycle.
[0084] Step 312: According to a preset first cycle, the signal strength data is obtained by scanning the broadcast data of the vehicle.
[0085] For example, after the control device 110 establishes a short-range channel with the vehicle 120, the vehicle 120 broadcasts. The control device 110 can obtain signal strength data of the short-range channel, such as a signal strength value RSSI, by scanning the broadcast data of the vehicle 120.
[0086] Based on this, when the control device 110 receives the vehicle control instruction, the current signal strength of the short-range channel can be determined from the broadcast data of the latest cycle.
[0087] It can be seen that this embodiment periodically obtains the signal strength data of the short-range channel through the short-range channel or vehicle broadcast, and then can grasp the change of the short-range channel signal strength to help select a better communication channel.
[0088] In some embodiments, step 310 may include step 313 in addition to step 311 or step 312 .
[0089] Step 313: According to a preset second period, the first data sent by the vehicle through the short-range channel and the second data sent by the vehicle through the long-range channel are obtained.
[0090] Since the control device 110 and the vehicle 120 support short-range channel communication and long-range channel communication, this embodiment enables the vehicle 120 to send first data carrying first time information to the control device 110 through the short-range channel and send second data carrying second time information to the control device 110 through the long-range channel according to a preset second period. The communication quality data includes the first data and the second data.
[0091] Based on this, in response to the vehicle control instruction, the first data of the latest cycle and the second data of the latest cycle can be determined as the target communication quality data. The first data of the latest cycle and the second data of the latest cycle refer to the first data and the second data last received by the control device 110 when receiving the vehicle control instruction. Based on this, the acquisition of the target communication quality data may include:
[0092] The relationship between the communication efficiency of the short-range channel and the long-range channel is determined by comparing the sequence of the first time information carried by the first data of the latest cycle and the second time information carried by the second data of the latest cycle.
[0093] Generally, in communication based on short-range channels, the data of the vehicle 120 is directly sent to the control device 110 without being forwarded by other intermediate devices, so the communication time based on short-range channels is shorter. In communication based on long-range channels, the data of the vehicle 120 needs to be forwarded by other intermediate devices, such as base stations, so the communication time based on long-range channels is longer.
[0094] However, in the case where the vehicle is connected to multiple control devices in the short-range channel, since multiple control devices 110 communicate and interact with the vehicle 120 in a time-division multiplexing manner based on the same short-range channel, and session layer encryption is also required in the short-range communication, this will cause communication delays in the short-range channel in the multi-connection state, and its communication time is even longer than that of the long-range channel. In addition, in the case of signal interference in the short-range channel, the communication efficiency of the short-range channel will be lower than that of the long-range channel.
[0095] Therefore, by comparing the time information of the latest cycle data of the two channels in chronological order, the relationship between the communication efficiency of the two channels can be determined, and then the connection status of the vehicle in the short-range channel and whether there is signal interference in the short-range channel can be inferred from the side.
[0096] Exemplarily, the first time information represents the sending time of the first data, for example, the first time information can be carried in the first data in the form of a timestamp. The second time information represents the sending time of the second data, for example, the second time information can be carried in the second data in the form of a timestamp. Since the sending period of the first data and the second data, that is, the second period, is shorter, that is, the sending frequency of the first data and the second data is higher, the relationship between the communication efficiency between the short-range channel and the long-range channel can be determined by directly comparing the sending order of the first data of the latest period and the second data of the latest period.
[0097] Specifically, if the first time information of the latest cycle is later than the second time information of the latest cycle, that is, the first data of the latest cycle is sent later than the second data of the latest cycle, since the first data sent later has already reached the control device 110, it means that the communication time of the short-range channel is shorter than the communication time of the long-range channel at this time, and the communication efficiency of the short-range channel is better than the communication efficiency of the long-range channel. At this time, it can be inferred that the connection state of the vehicle 120 in the short-range channel is a single connection state, and there is no signal interference in the short-range channel.
[0098] On the contrary, if the second time information of the latest cycle is later than the first time information of the latest cycle, that is, the second data of the latest cycle is sent later than the first data of the latest cycle, since the sending frequency of the first data and the second data is high, that is, the sending interval between two adjacent first data is very short, and the sending interval between two adjacent second data is very short, it means that the first data of the next cycle of the latest cycle has not yet reached the control device 110, or the control device 110 receives the earlier first data. Therefore, it can be inferred that the communication time of the short-range channel is longer than the communication time of the long-range channel, and the communication efficiency of the long-range channel is better than the communication efficiency of the short-range channel, then the connection state of the vehicle 120 in the short-range channel is a multi-connection state or there is signal interference in the short-range channel.
[0099] For example, the first data and the second data are packaged in the vehicle 120 based on the same ECU (Electronic Control Unit) and are provided with a time stamp.
[0100] Exemplarily, the first data and the second data are vehicle status data, such as but not limited to vehicle door lock status data, window status data, etc. It is understandable that the vehicle 120 needs to periodically feed back the vehicle status data to the control device 110, and this embodiment uses the time information carried by the existing vehicle status data to infer the connection status of the vehicle, without changing the existing communication interaction strategy between the vehicle and the control device, thereby improving the universality of the method.
[0101] Exemplarily, the first period and the second period may have the same value or different values, and this application does not impose any limitation thereto.
[0102] In addition, as described above, since the control device 110 can obtain the signal strength data through the antenna when receiving the data packet sent by the vehicle, the control device 110 can optionally determine the signal strength data of the short-range channel based on the first data.
[0103] In addition, in addition to inferring the connection status of the vehicle 120 by comparing the sequence of the first data and the second data of the latest cycle, in some embodiments, the vehicle 120 can also directly send its own connection status to the control device 110 periodically. In this way, the control device 110 can directly know the connection status of the vehicle 120 and can infer the relationship between the communication efficiency of the two channels based on the connection status without comparing the time sequence.
[0104] It can be seen that in this embodiment, by comparing the sequence of the first data and the second data of the latest cycle, the relationship between the communication efficiency between the short-range channel and the long-range channel can be known, and then the connection status of the vehicle in the short-range channel and whether there is signal interference can be inferred, thereby avoiding the situation where the short-range communication is unstable due to the presence of multiple corresponding control devices near the vehicle or the presence of signal interference, resulting in the failure of control command sending.
[0105] Based on any of the above embodiments, regarding step 220, in some embodiments, step 221 or step 222 may be included.
[0106] Step 221: If the target communication quality data indicates that the signal strength of the short-range channel is greater than a preset strength threshold, and the communication efficiency of the short-range channel is better than the communication efficiency of the long-range channel, determine that the short-range channel is the target channel.
[0107] The strength threshold can be set according to actual needs, such as including but not limited to -80dBm. In this way, when the short-range channel signal is strong and the communication efficiency of the short-range channel is better than the communication efficiency of the long-range channel (such as the second time information of the latest cycle is earlier than the first time information of the latest cycle), it can be ensured that the communication quality of the short-range channel is better than the communication quality of the long-range channel, so the short-range channel is selected as the target channel.
[0108] Step 222: If the target communication quality data indicates that the signal strength of the short-range channel is less than a preset strength threshold, and / or the communication efficiency of the long-range channel is better than the communication efficiency of the short-range channel, determine that the long-range channel is the target channel.
[0109] When the signal of the short-range channel is weak, it means that the control device 110 is currently far away from the vehicle 120, and communication is unstable, which may easily lead to vehicle control failure. Therefore, when the signal strength of the short-range channel is less than the strength threshold, the long-range channel is determined as the target channel with better communication quality.
[0110] When the vehicle 120 communicates with multiple control devices 110 in the short-range channel or there is signal interference in the short-range channel (such as the first time information of the latest cycle is earlier than the second time information of the latest cycle), it will cause communication delay in the short-range channel. In order to avoid the failure of vehicle control due to unstable communication in the short-range channel, the long-range channel is determined as the target channel with better communication quality.
[0111] It can be seen that this embodiment has formulated a strict selection strategy for the selection of the short-range channel. When the signal strength and communication efficiency meet the requirements at the same time and the communication quality of the short-range channel is ensured to be better, the short-range channel is selected for vehicle control. When it cannot be ensured that the communication quality of the short-range channel is better than that of the long-range channel, in order to ensure the user experience, the long-range channel is still selected for vehicle control, thereby improving the success rate of vehicle control and optimizing the user experience.
[0112] Based on any of the above embodiments, the method further includes: Figure 4 Steps 410 - 420 are shown.
[0113] Step 410: When the target channel is the short-range channel, determine a first timeout period of the short-range channel; if the vehicle control instruction fails to be sent within the first timeout period, determine the remote channel as the next target channel, and return to execute the vehicle control instruction sending step.
[0114] Step 420: When the target channel is the remote channel, determine the second timeout period of the remote channel; if the vehicle control instruction fails to be sent within the second timeout period, determine the short-range channel as the next target channel, and return to execute the vehicle control instruction sending step.
[0115] The first timeout period is smaller than the second timeout period.
[0116] When the target channel is a short-range channel, it means that the communication quality of the current short-range channel is better and the communication time is shorter, so the first timeout period can be set to be less than the second timeout period. The specific size of the first timeout period and the second timeout period can be set by the technician according to the actual situation, and this application does not limit it. Whenever the control device 110 determines the target channel, different timeout periods are set according to different channels, and the vehicle control command is monitored to see whether it is sent successfully within the timeout period.
[0117] Specifically, when the target channel is the short-range channel, if the vehicle control command is successfully sent within the first timeout period, the process ends. Otherwise, the long-range channel is determined as the next target channel, and the vehicle control command is resent using the long-range channel.
[0118] Optionally, based on step 410, the method may further include: determining a third timeout period, and if the vehicle control instruction fails to be sent within the third timeout period, outputting a prompt message for prompting the user that the vehicle control fails. The third timeout period is greater than or equal to the sum of the first timeout period and the first time interval.
[0119] The third timeout period is the total timeout of the vehicle control, which is greater than or equal to the sum of the first timeout period and the first time interval. The first time interval can be set as needed, for example, 5 seconds. When the vehicle control instruction is sent through the short-range channel and fails to be sent within the first timeout period, the vehicle control instruction is switched to the remote channel to resend. If the vehicle control instruction fails to be sent within the third timeout period, that is, the resending through the remote channel within the first time interval fails, a prompt message informing the user of the vehicle control failure can be output on the control device 110.
[0120] In addition, when the target channel is the long-distance channel, if the vehicle control command is successfully sent within the second timeout period, the process ends. Otherwise, the short-distance channel is determined as the next target channel, and the vehicle control command is resent using the short-distance channel.
[0121] Optionally, based on step 420, the method may further include: determining a fourth timeout period, and if the vehicle control instruction fails to be sent within the fourth timeout period, outputting a prompt message for prompting the user that the vehicle control fails. The fourth timeout period is greater than or equal to the sum of the second timeout period and the second time interval.
[0122] The fourth timeout period is the total timeout of the vehicle control, which is greater than or equal to the sum of the second timeout period and the second time interval. The second time interval can be set as needed, and can be greater than, equal to, or less than the first time interval. When a vehicle control instruction is sent through a remote channel and fails to be sent within the second timeout period, the vehicle control instruction is switched to a short-range channel to resend the vehicle control instruction. If the vehicle control instruction fails to be sent within the fourth timeout period, that is, the retransmission fails within the second time interval through the short-range channel, a prompt message informing the user of the vehicle control failure can be output on the control device 110.
[0123] It can be seen that in this embodiment, the timeout period is flexibly set based on the selected target channel, and in the event of a vehicle control timeout, the channel is promptly switched to another channel for command resending, thereby further improving the vehicle control success rate and optimizing the user experience.
[0124] In addition, the present application also provides a vehicle control method, which is applied to a control device, such as a smart phone. The control device is installed with a vehicle control APP (Application). When the vehicle control APP is placed in the foreground and the current page is the vehicle control page, the control terminal first determines whether to establish a connection with the vehicle via Bluetooth.
[0125] When the control device establishes a Bluetooth connection with the vehicle, the vehicle's Bluetooth signal strength RSSI value is obtained according to a preset period. Specifically, the vehicle's Bluetooth signal strength RSSI value can be obtained through the Bluetooth connection channel according to a preset first period, for example, by obtaining the vehicle's Bluetooth signal strength RSSI value through a heartbeat packet transmitted in the Bluetooth connection channel according to the first period. Alternatively, the control device can obtain the vehicle's Bluetooth signal strength RSSI value by scanning the vehicle according to the broadcast data of the first period.
[0126] At the same time, the control device also receives vehicle status data through dual channels based on the remote channel and the Bluetooth channel in the second cycle, including but not limited to vehicle door lock status data, window status data, etc. The vehicle status data is packaged in the vehicle based on the same ECU and carries a timestamp of the sending time.
[0127] When the user inputs a vehicle control command in the control device, such as clicking a control button in the vehicle control APP, a target channel with better communication quality is selected from the Bluetooth channel or the remote channel according to the following strategy to control the vehicle.
[0128] Re-determine whether the control device currently has a Bluetooth connection with the vehicle. If not, determine the remote channel as the target channel, and send a vehicle control command through the remote channel to control the vehicle.
[0129] Determine whether the vehicle is offline. If the vehicle is offline, it means that there is no remote channel between the control device and the vehicle. At this time, determine the target channel of the Bluetooth channel and send vehicle control instructions through the Bluetooth channel to control the vehicle.
[0130] If the control device and the vehicle have completed Bluetooth connection authentication, and the vehicle is online, that is, the two currently support Bluetooth channel and remote channel communication, then obtain the latest cycle of Bluetooth signal strength RSSI value, the latest cycle of the first vehicle status data obtained through the remote channel, and the latest cycle of the second vehicle status data obtained through the Bluetooth channel. And based on the vehicle's Bluetooth signal strength and the newness and oldness of the timestamps carried by the two vehicle status data, comprehensively decide on the target channel.
[0131] Case 1: The Bluetooth signal strength RSSI value of the latest period is greater than or equal to the preset strength threshold, for example -80dBm, and the timestamp carried by the first vehicle status data of the latest period is later than the timestamp carried by the second vehicle status data of the latest period, that is, the timestamp carried by the first vehicle status data of the latest period is newer. It is inferred that the communication quality of the Bluetooth channel is better at this time, and therefore the Bluetooth channel is determined as the target channel.
[0132] At the same time, the first timeout time T1 and the third timeout time T3 of the control device are set. The first timeout time T1 is the timeout time of the Bluetooth channel, the third timeout time T3 is the total timeout time of the vehicle control, and the third timeout time T3 is greater than or equal to the sum of the first timeout time T1 and the first time interval Δt1, that is, T3≥T1+Δt1.
[0133] Subsequently, the vehicle control command is sent to the vehicle through the Bluetooth channel, and it is monitored whether the Bluetooth vehicle control is successful within the first timeout period T1. If so, the process ends; if not, the vehicle control command is resent through the remote channel, and it is monitored whether the vehicle control is successful within the third timeout period T3, that is, whether the remote channel can complete the retransmission of the vehicle control command within the first time interval Δt1, and realize dual-channel standby control. If the retransmission is completed, the process ends. Otherwise, a prompt message indicating that the vehicle control failed is output to the user through the control device.
[0134] Case 2: If the Bluetooth signal strength RSSI value of the latest cycle is less than the preset strength threshold, such as -80dBm, it is inferred that the control device and the vehicle are in the Bluetooth connection area, resulting in unstable signal. Alternatively, the timestamp carried by the first vehicle status data of the latest cycle is earlier than the timestamp carried by the second vehicle status data of the latest cycle, that is, the timestamp carried by the first vehicle status data of the latest cycle is older, then it is inferred that the vehicle is in a multi-connection state in the Bluetooth channel at this time, that is, there are currently multiple control devices connected to the vehicle via Bluetooth, or there is signal interference in the Bluetooth channel, which may cause data transmission delays. Therefore, the remote channel is determined to be the target channel.
[0135] At the same time, the second timeout T2 and the fourth timeout T4 of the control device are set. The second timeout T2 is the timeout of the remote channel, the fourth timeout T4 is the total timeout of the vehicle control, and the fourth timeout T4 is greater than or equal to the sum of the second timeout T2 and the second time interval Δt2, that is, T4≥T2+Δt2.
[0136] Subsequently, a vehicle control command is sent to the vehicle through the remote channel, and it is monitored whether the remote control of the vehicle is successful within the second timeout period T2. If so, the process ends; if not, the vehicle control command is resent through the Bluetooth channel, and it is monitored whether the vehicle control is successful within the fourth timeout period T4, that is, whether the Bluetooth channel can complete the retransmission of the vehicle control command within the second time interval Δt2, and realize dual-channel standby control. If the retransmission is completed, the process ends. Otherwise, a prompt message indicating that the vehicle control failed is output to the user through the control device.
[0137] It can be seen that the vehicle control method provided in this embodiment, after the Bluetooth connection is completed, combines the Bluetooth signal strength and the new and old comparisons of the vehicle status obtained by the control device through dual channels to determine a better vehicle control channel, thereby ensuring the use of a channel with better quality for vehicle control, reducing the control response time, and optimizing the user experience.
[0138] At the same time, when dual channels are available, if one channel fails to control the vehicle, it will automatically switch to the other channel, realizing mutual backup control of the dual channels, improving the success rate of vehicle control, and optimizing user experience.
[0139] Based on a vehicle control method described in any of the above embodiments, the present application also provides Figure 5 A structural diagram of a control device is shown in FIG. Figure 5 At the hardware level, the control device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement a vehicle control method described in any of the above embodiments.
[0140] The vehicle control method described in any of the above embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it may be implemented in whole or in part in the form of a computer program product.
[0141] Therefore, the present application also provides a computer program product, which includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the present application is performed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM or other programmable device.
[0142] The computer program or instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0143] The present application also provides a computer storage medium, which stores a computer program. When the computer program is executed by a processor, it can be used to execute a vehicle control method described in any of the above embodiments.
[0144] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple 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 a code contains one or more executable instructions for implementing 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 consecutive boxes 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 action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0145] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0146] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0147] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0148] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the 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.
[0149] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A vehicle control method, characterized in that: Applied to a control device, the method comprises: In response to a vehicle control instruction, acquiring target communication quality data with the vehicle; wherein the target communication quality data is used to characterize the signal strength of the short-range channel and to characterize the communication efficiency between the short-range channel and the long-range channel; determining a target channel from the short-range channel and the long-range channel according to the target communication quality data; The vehicle control instruction is sent to the vehicle through the target channel.
2. The method according to claim 1, characterized in that: The method further comprises: Acquiring communication quality data with the vehicle according to a preset period; The step of acquiring target communication quality data with the vehicle in response to the vehicle control instruction includes: In response to the vehicle control command, the communication quality data of the latest cycle is determined as the target communication quality data.
3. The method according to claim 2, characterized in that The communication quality data includes signal strength data of the short-range channel, and the acquiring of the communication quality data with the vehicle according to a preset period includes: According to a preset first period, acquiring the signal strength data through the short-range channel; or According to a preset first cycle, the signal strength data is acquired by scanning the broadcast data of the vehicle.
4. The method according to claim 2, characterized in that: The acquiring the communication quality data with the vehicle according to a preset period includes: According to a preset second period, obtaining first data sent by the vehicle through the short-range channel and second data sent by the vehicle through the long-range channel; The acquiring target communication quality data with the vehicle comprises: The relationship between the communication efficiency of the short-range channel and the long-range channel is determined by comparing the sequence of the first time information carried by the first data of the latest cycle and the second time information carried by the second data of the latest cycle.
5. The method according to claim 1, characterized in that The step of determining a target channel from the short-range channel and the long-range channel according to the target communication quality data comprises: If the target communication quality data indicates that the signal strength of the short-range channel is greater than a preset strength threshold, and the communication efficiency of the short-range channel is better than the communication efficiency of the long-range channel, the short-range channel is determined to be the target channel.
6. The method according to claim 1, characterized in that The step of determining a target channel from the short-range channel and the long-range channel according to the target communication quality data comprises: If the target communication quality data indicates that the signal strength of the short-range channel is less than a preset strength threshold, and / or the communication efficiency of the long-range channel is better than the communication efficiency of the short-range channel, the long-range channel is determined to be the target channel.
7. The method according to claim 1, characterized in that The method further comprises: In the case where the target channel is the short-range channel, determining a first timeout period of the short-range channel; if the vehicle control instruction fails to be sent within the first timeout period, determining the long-range channel as the next target channel, and returning to execute the vehicle control instruction sending step; In the case where the target channel is the remote channel, determining a second timeout period of the remote channel; if the vehicle control instruction fails to be sent within the second timeout period, determining the short-range channel as the next target channel, and returning to execute the vehicle control instruction sending step; The first timeout period is smaller than the second timeout period.
8. The method according to any one of claims 1 to 7, characterized in that: The short-range channel is a Bluetooth channel, and the long-range channel is a network channel.
9. A control device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, when the processor calls the executable instruction, the method described in any one of claims 1-8 is implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Plug-and-play avionics remote operation device and method
CN119723858A
Brake signal relay method and device
CN122293135A
Braking signal relay method and device
CN122293135B
