Vehicle state control method and device, storage medium and electronic device
By dynamically adjusting the antenna's operating state and ranging strategy, the high power consumption problem caused by increasing the transmission power of wearable devices is solved. This enables the extension of communication distance and improvement of connection reliability without increasing power, while reducing system power consumption and enhancing user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAQIN TECH CO LTD
- Filing Date
- 2026-03-31
- Publication Date
- 2026-06-26
AI Technical Summary
Existing technologies extend communication distance and improve connection reliability by increasing transmission power, which leads to a sharp increase in power consumption of wearable devices and severely shortens battery life.
The operating status of the main antenna and the secondary antenna is dynamically adjusted according to the scenario type of the target device and vehicle. The radiation mode is switched to omnidirectional or directional. Combined with different ranging strategies, the distance between the device and the vehicle is calculated, and the vehicle's unlocking or locking status is triggered according to the distance.
Without increasing transmission power, the system power consumption is reduced, environmental adaptability and user experience are improved by matching adaptive radiation mode with ranging strategy, thus solving the battery life problem of wearable devices.
Smart Images

Figure CN122275804A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle control, and more specifically, to a method and apparatus for controlling the state of a vehicle, a storage medium, and an electronic device. Background Technology
[0002] Currently, in IoT security unlocking applications, seamless unlocking between wearable devices (such as smartwatches) and vehicles often employs Short Link Efficiency (SLE) or Ultra Wide Band (UWB) wireless communication technologies. Traditional solutions generally use a fixed antenna radiation pattern, meaning that regardless of whether the device and vehicle are in the far field, mid field, or near field, a single omnidirectional antenna is used for communication. Communication distance and connection reliability are extended by increasing transmit power or optimizing software algorithms (Over-The-Air Firmware Update, OTA). To address non-line-of-sight (NLOS) obstruction issues in complex environments such as garages, existing solutions often rely on increasing the Total Radiated Power (TRP) to compensate for signal attenuation, for example, increasing the transmit power from -15dBm to a higher value to achieve a longer detection distance or a more stable welcome response.
[0003] However, while continuously increasing the transmission power of the aforementioned technologies can enhance the communication distance, it directly leads to a sharp increase in the power consumption of wearable devices, severely shortening battery life and making it difficult to meet users' core demand for long battery life.
[0004] There is currently no effective solution to the problem that the method of increasing transmission power to extend communication distance and improve connection reliability in related technologies leads to a sharp increase in power consumption of wearable devices and a serious reduction in battery life.
[0005] Therefore, it is necessary to improve the relevant technology to overcome the aforementioned defects. Summary of the Invention
[0006] This application provides a vehicle status control method and device, storage medium, and electronic device to at least solve the problem in the related art where increasing transmission power to extend communication distance and improve connection reliability leads to a sharp increase in power consumption of wearable devices and a serious reduction in battery life.
[0007] According to one embodiment of this application, a method for controlling vehicle status is provided, comprising: determining the current scene type based on a coarse distance between a target device and a target vehicle, determining a ranging strategy for the target device based on the current scene type, and controlling the operating state of the main antenna and the secondary antenna of the target device according to the current scene type to control the radiation state of an antenna module, wherein the antenna module includes the main antenna and the secondary antenna; when only the main antenna is working, the radiation state of the antenna module is omnidirectional; when both the main antenna and the secondary antenna are working, the radiation state of the antenna module is directional; determining the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy; and controlling the vehicle status of the target vehicle according to the distance between the target device and the target vehicle, wherein the vehicle status includes: an unlocked state and a locked state.
[0008] In an exemplary embodiment, controlling the operating state of the main antenna and the secondary antenna of the target device according to the current scenario type includes: when the current scenario type is a disconnection scenario or a reconnection scenario, controlling the main antenna to operate and disabling the secondary antenna; when the current scenario type is a pre-wake-up scenario, controlling the main antenna to operate and periodically controlling the secondary antenna to operate; when the current scenario type is a pre-unlock scenario, controlling the main antenna to operate and controlling the secondary antenna to operate; when the current scenario type is an unlock scenario, controlling the main antenna to operate and disabling the secondary antenna, wherein the distance between the target device and the target vehicle corresponding to the reconnection scenario is greater than the distance between the target device and the target vehicle corresponding to the pre-wake-up scenario, the distance between the target device and the target vehicle corresponding to the pre-unlock scenario is greater than the distance between the target device and the target vehicle corresponding to the unlock scenario, and the distance between the target device and the target vehicle corresponding to the pre-unlock scenario is greater than the distance between the target device and the target vehicle corresponding to the unlock scenario.
[0009] In one exemplary embodiment, controlling the operation of the secondary antenna includes: controlling the closure of a target switch disposed between the radio frequency signal input terminal and the secondary antenna, so that the secondary antenna receives and transmits radio frequency signals output from the radio frequency signal input terminal.
[0010] In an exemplary embodiment, when the current scenario type is a disconnection scenario or a reconnection scenario, determining the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy includes: controlling the antenna module to transmit a radio frequency signal to the target space based on the radiation state, and determining a first signal strength of the radio frequency signal; receiving the reflected echo signal through the antenna module, and determining a second signal strength of the echo signal; determining path loss based on the first signal strength and the second signal strength, and determining the distance between the target device and the target vehicle based on the path loss.
[0011] In an exemplary embodiment, when the current scene type is a pre-wake-up scene type or a pre-unlock scene type, determining the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy includes: controlling the antenna module to transmit a radio frequency pulse signal to the target space based on the radiation state, and determining a first timestamp of the rising edge and a second timestamp of the falling edge of the radio frequency pulse signal; receiving the reflected echo radio frequency pulse signal through the antenna module, and determining a third timestamp of the rising edge and a fourth timestamp of the falling edge of the echo radio frequency pulse signal; calculating the rising edge flight time based on the first timestamp and the third timestamp, and determining the falling edge flight time based on the second timestamp and the fourth timestamp; and calculating the distance between the target device and the target vehicle based on the rising edge flight time and the falling edge flight time.
[0012] In an exemplary embodiment, when the current scene type is an unlocked scene type, determining the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy includes: controlling the antenna module to transmit a radio frequency signal into the target space based on the radiation state, and determining the transmission timestamp of the radio frequency signal; receiving the reflected echo signal through the antenna module, and determining the reception timestamp of the echo signal; determining the two-way flight time of the radio frequency signal in space based on the transmission timestamp and the reception timestamp; and calculating the distance between the target device and the target vehicle based on the two-way flight time.
[0013] In one exemplary embodiment, before or after determining the ranging strategy of the target device based on the current scene type, the method further includes: determining the target number of communication channels for the target device to communicate with the target vehicle based on the current scene type; and communicating with the target vehicle based on the target number of communication channels.
[0014] According to another embodiment of this application, a vehicle state control device is provided, comprising: a first determining module, configured to determine the current scene type based on a coarse distance between a target device and a target vehicle, determine a ranging strategy for the target device based on the current scene type, and control the operating state of the main antenna and the secondary antenna of the target device according to the current scene type to control the radiation state of an antenna module, wherein the antenna module includes the main antenna and the secondary antenna, and when only the main antenna is working, the radiation state of the antenna module is omnidirectional radiation, and when both the main antenna and the secondary antenna are working, the radiation state of the antenna module is directional radiation; a second determining module, configured to determine the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy; and a control module, configured to control the vehicle state of the target vehicle according to the distance between the target device and the target vehicle, wherein the vehicle state includes: an unlocked state and a locked state.
[0015] According to yet another embodiment of this application, a computer-readable storage medium is also provided, wherein a computer program is stored therein, and the computer program is configured to perform the steps in any of the above method embodiments when it is run.
[0016] According to yet another embodiment of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0017] According to yet another embodiment of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0018] This application dynamically determines the ranging strategy of the target device based on the current scenario type and simultaneously controls the working state of the main antenna and the secondary antenna. When only the main antenna is working, the antenna module exhibits omnidirectional radiation to cover wide-area near-field communication needs. When both the main antenna and the secondary antenna are working simultaneously, it switches to directional radiation to enhance the directivity and signal strength of far-field communication. Thus, without changing the transmission power, it achieves adaptive matching between the radiation mode and the communication scenario. Based on this dynamically adjusted radiation state and the corresponding ranging strategy, the distance between the target device and the target vehicle is calculated, and the vehicle's unlocking or locking state is intelligently triggered according to the distance result. Therefore, it can solve the problem that increasing the transmission power to extend the communication distance and improve the connection reliability leads to a sharp increase in the power consumption of wearable devices and a serious reduction in battery life. This achieves the effect of significantly reducing system power consumption, improving environmental adaptability and user experience while ensuring the reliability of secure unlocking. Attached Figure Description
[0019] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0020] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, those skilled in the art can obtain other drawings based on these drawings without creative effort.
[0021] Figure 1 This is a hardware structure block diagram of a wearable device for a vehicle state control method according to an embodiment of this application;
[0022] Figure 2 This is a flowchart of a vehicle state control method according to an embodiment of this application;
[0023] Figure 3 This is a schematic diagram of the main / sub antenna according to an embodiment of this application (I);
[0024] Figure 4 This is a schematic diagram (II) of the main / sub-antenna according to an embodiment of this application;
[0025] Figure 5 This is a measured directional gain pattern of dual antennas operating according to an embodiment of this application;
[0026] Figure 6 This is an omnidirectional measured gain pattern of a single antenna operating according to an embodiment of this application;
[0027] Figure 7 This is a schematic diagram of a vehicle status control system according to an embodiment of this application;
[0028] Figure 8 This is a schematic diagram illustrating the switching of scene mode, ranging mode, and antenna mode according to an embodiment of this application;
[0029] Figure 9 This is a diagram showing multiple mode switching states according to embodiments of this application;
[0030] Figure 10 This is a structural block diagram of a vehicle state control device according to an embodiment of this application. Detailed Implementation
[0031] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.
[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0033] The methods and embodiments provided in this application can be executed in wearable devices or similar computing devices. Taking running on a wearable device as an example, Figure 1 This is a hardware structure block diagram of a wearable device for a vehicle state control method according to an embodiment of this application. Figure 1 As shown, wearable devices may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor (MPU) or a programmable logic device (PLD)) and a memory 104 for storing data are also shown. The wearable device may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the wearable device described above. For example, the wearable device may also include components that are larger than... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0034] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the vehicle state control method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the wearable device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0035] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the wearable device's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0036] It should be noted that "wearable devices" refer to smart electronic devices that can be worn on the human body (usually on the wrist, waist, or clothing). They possess wireless communication, environmental awareness, and low-power operation capabilities, and are primarily used to achieve seamless interaction with vehicles or other IoT terminals. This includes, but is not limited to, the following types: smartwatches, smart bracelets, smart rings, smart keychains, smart armbands / wristbands, and smart glasses / headwear.
[0037] This embodiment provides a vehicle status control method, applied to the aforementioned wearable device. Figure 2 This is a flowchart of a vehicle state control method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps:
[0038] Step S202: Determine the current scene type based on the coarse distance between the target device and the target vehicle, determine the ranging strategy of the target device according to the current scene type, and control the working state of the main antenna and the working state of the sub-antenna of the target device according to the current scene type to control the radiation state of the antenna module. The antenna module includes the main antenna and the sub-antenna. When only the main antenna is working, the radiation state of the antenna module is omnidirectional. When both the main antenna and the sub-antenna are working, the radiation state of the antenna module is directional.
[0039] During operation, the wearable device continuously monitors the distance or signal strength between itself and the target vehicle to determine the current scene type corresponding to the current distance. Based on the identification results, it selects the appropriate ranging strategy and simultaneously controls the on / off state of the main and secondary antennas, thereby setting the radiation state of the antenna module.
[0040] The antenna module consists of a main antenna and a secondary antenna. When only the main antenna is active and the secondary antenna is in a dormant state, the antenna module exhibits omnidirectional radiation, with the signal uniformly covering 360° of space. This is suitable for long-distance coarse ranging, low-power standby scenarios, or close-range unobstructed scenarios. When the main antenna and the secondary antenna are activated simultaneously and form a directional coupling structure through a single-pole double-throw switch (SPDT) at the RF front end, the antenna module forms a directional radiation beam, exhibiting directional radiation. The energy is concentrated in a specific direction (such as the 6 o'clock and 12 o'clock directions), which can enhance signal penetration and anti-interference performance.
[0041] Step S204: Determine the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy;
[0042] For example, if the current state is omnidirectional radiation and the ranging strategy is Received Signal Strength Indicator (RSSI), then the distance is estimated by the received signal strength and a preset attenuation model (such as the free space loss formula + non-line-of-sight (NLOS) compensation factor) to achieve long-distance positioning.
[0043] If the current state is directional radiation and the ranging strategy is Double-Sided Two-Way Ranging (DDR), then the distance is estimated using the Double-Sided Two-Way Ranging protocol to achieve mid-range positioning.
[0044] If the current state is omnidirectional and the ranging strategy is time of flight (TOF), then the distance is estimated by measuring the time difference of signal propagation, thus achieving near-field positioning.
[0045] Step S206: Control the vehicle status of the target vehicle according to the distance between the target device and the target vehicle, wherein the vehicle status includes: unlocked state and locked state.
[0046] Once the distance between the wearable device and the target vehicle is obtained, control commands corresponding to the vehicle's status are triggered based on a preset distance threshold range.
[0047] If the distance is greater than 13m, it is determined to be a reconnection scenario, and the vehicle remains locked and does not respond;
[0048] If the distance is between 3m and 13m, it is determined to be a pre-wake-up scenario and a pre-unlock scenario, and the vehicle starts the welcome mode (such as the headlights gradually brightening and the door handles automatically extending).
[0049] If the distance is ≤3m, it is determined to be an unlocking scenario, and the vehicle executes the electronic lock unlocking command;
[0050] If the distance increases from ≤3m to >3.5m (with a 0.5m back-cut delay), the locking command is triggered to achieve safe vehicle locking.
[0051] Optionally, state switching can be achieved by sending control frames to the vehicle via wireless communication protocols such as Short Link Efficiency (SLE) or Ultra Wide Band (UWB) to ensure command synchronization and security authentication.
[0052] Through the above steps, the ranging strategy of the target device is dynamically determined according to the current scenario type, and the working state of the main antenna and the secondary antenna is controlled simultaneously. When only the main antenna is working, the antenna module presents an omnidirectional radiation state to cover the wide-area near-field communication needs. When both the main antenna and the secondary antenna are working, it switches to a directional radiation state to enhance the directivity and signal strength of far-field communication. Thus, without changing the transmission power, the radiation mode and the communication scenario are adaptively matched. Based on this dynamically adjusted radiation state and the corresponding ranging strategy, the distance between the target device and the target vehicle is calculated, and the vehicle's unlocking or locking state is intelligently triggered according to the distance result. Therefore, this solves the problem that increasing the transmission power to extend the communication distance and improve the connection reliability leads to a sharp increase in the power consumption of wearable devices and a serious reduction in battery life. This achieves the effect of significantly reducing system power consumption, improving environmental adaptability and user experience while ensuring the reliability of secure unlocking.
[0053] Optionally, controlling the operating state of the main antenna and the secondary antenna of the target device according to the current scenario type includes: controlling the main antenna to operate and disabling the secondary antenna when the current scenario type is a disconnection scenario or a reconnection scenario; controlling the main antenna to operate and periodically controlling the secondary antenna to operate when the current scenario type is a pre-wake-up scenario; controlling the main antenna to operate and the secondary antenna to operate when the current scenario type is a pre-unlock scenario; and controlling the main antenna to operate and disabling the secondary antenna when the current scenario type is an unlock scenario, wherein the distance between the target device and the target vehicle corresponding to the reconnection scenario is greater than the distance between the target device and the target vehicle corresponding to the pre-wake-up scenario, the distance between the target device and the target vehicle corresponding to the pre-unlock scenario is greater than the distance between the target device and the target vehicle corresponding to the unlock scenario.
[0054] In this embodiment, the current scenario type is determined based on the real-time distance between the target device (such as a smartwatch) and the target vehicle, and the operating states of the main antenna and the secondary antenna are controlled accordingly to achieve synergistic improvement in power consumption and communication performance. Specifically, the wearable device presets five scenario types: reconnection scenario, pre-wake-up scenario, pre-unlock scenario, and unlock scenario. The device and vehicle distance ranges corresponding to each scenario can be as follows:
[0055] Scenario for loss of contact: The distance between the target device and the vehicle is greater than 45 meters;
[0056] Backlink scenario: The distance between the target device and the vehicle is between 13 meters and 45 meters;
[0057] Pre-wake-up scenario: The distance between the target device and the vehicle is between 10 and 13 meters;
[0058] Pre-unlock scenario: The distance between the target device and the vehicle is between 3 meters and 10 meters;
[0059] Unlock scenario: The distance between the target device and the vehicle is less than or equal to 3 meters.
[0060] When the scenario type is either a disconnection scenario or a reconnection scenario, it is determined that the user is far away from the vehicle and in a low-power standby state. At this time, the main antenna remains on and operates in omnidirectional radiation mode to maintain a long-distance, low-speed broadcast connection; the secondary antenna is disabled. The communication module uses 3–4 channels to ensure maximum battery life.
[0061] When the scenario type is a pre-wake-up scenario, it is determined that the user is approaching the vehicle. The main antenna remains omnidirectional, while the secondary antenna is periodically woken up (e.g., activated every 500ms for 10ms) and the beamforming algorithm is activated to form a directional radiation beam pointing towards the vehicle. The communication protocol is switched to all channels (e.g., 79 channels).
[0062] When the scenario type is pre-unlock scenario, it is determined that the user has entered the close-range critical zone, and the unlocking success rate must be reliably guaranteed. At this time, the main antenna and the secondary antenna work continuously at the same time to form a stable directional radiation combined beam, with the radiation direction aligned with the expected location of the vehicle (such as the 6 o'clock and 12 o'clock directions).
[0063] When the scenario type is unlocking, the secondary antenna is turned off, and only the main antenna works in omnidirectional mode. The number of communication channels is halved (e.g., 40 channels), and the ranging strategy is switched to TOF mode to achieve high-precision positioning, reducing power consumption while ensuring reliable unlocking.
[0064] The antenna state switching strategy described above, combined with the coordinated adjustment of ranging mode and communication parameters, effectively solves the problems of excessive power consumption, NLOS failure, or unlocking delay caused by the fixed antenna mode in traditional solutions.
[0065] Optionally, controlling the operation of the secondary antenna includes: controlling the closing of a target switch disposed between the radio frequency signal input terminal and the secondary antenna, so that the secondary antenna receives and transmits the radio frequency signal output from the radio frequency signal input terminal.
[0066] In this embodiment, the target switching device is a single-pole double-throw (SPDT) RF switch. The first throw terminal is connected to the feed point of the main antenna, and the second throw terminal is connected to the coupled feed structure of the secondary antenna. When it is determined that a directional radiation mode needs to be entered (such as a pre-wake-up or pre-unlock scenario), the mode control unit sends a control command to the power management module to drive the SPDT switch to the "secondary antenna on" state, so that the main antenna and the secondary antenna share the same RF signal source.
[0067] For example, in the case of a wearable device that is a round watch, such as Figure 3 As shown, the main antenna uses the metal frame of the wearable device as the overall radiator. Its structure is a closed or nearly closed ring-shaped conductive structure, covering the side and part of the bottom surface of the device. The main feed point of the main antenna is located at the four azimuth points of the device; G1 and G2 are the grounding networks of the main antenna, which can be switches or grounding matching networks; M1 is the matching network of the main antenna.
[0068] The secondary antenna is a non-physically connected parasitic stub located at the 6 o'clock position of the device. It is a metallic coupled stub with a resonant frequency in the operating frequency band. G3 is the grounding network for the secondary antenna, which can be a switch or a grounding matching network. M2 is the matching network for the secondary antenna. For example... Figure 4 As shown, M2 can also be positioned close to the secondary antenna, thus avoiding the introduction of additional losses and interference. The length, width, and spacing between the secondary antenna and the main antenna were optimized through electromagnetic simulation, enabling the secondary antenna to generate a strong resonant response in the 2.4GHz band and form a directional synthetic effect with the radiation field of the main antenna.
[0069] The secondary antenna is controlled by a single-pole double-throw (SPDT) RF switch K, which is located between the RF signal input (RF_in) and the antenna feed network. When switch K is open, the secondary antenna is completely isolated, and only the primary antenna operates. When switch K is closed, the RF signal is input via RF_in, and the power is evenly distributed through an integrated Wilkinson power divider to drive both the primary and secondary antennas.
[0070] Upon entering a pre-unlock or pre-wake-up scenario, the trigger switch K closes, simultaneously activating both the main and secondary antennas. Through phase coordination, they form a bidirectional directional beam with 6-point and 12-point main lobes, achieving directional enhancement in the vehicle's direction. The measured directional gain pattern of the dual antennas is shown below. Figure 5 As shown.
[0071] In reconnection or unlocking scenarios, switch K remains open, and only the main antenna operates in omnidirectional radiation mode. The measured omnidirectional gain pattern of a single antenna is shown below. Figure 6 As shown.
[0072] In the case of a square-shaped wearable device, the main antenna is the metal frame around which the radiators are located; the secondary antenna is a parasitic radiating stub added at the 6 o'clock position (bottom center), which is connected to the radio frequency front end via a switch.
[0073] The embodiments of this application can achieve flexible switching between the main and secondary antennas using only a single RF front-end and switch control, reducing hardware complexity and system cost, while meeting the requirements of wearable devices for miniaturization and low power consumption.
[0074] Optionally, when the current scenario type is a disconnection scenario or a reconnection scenario, determining the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy includes: controlling the antenna module to transmit a radio frequency signal to the target space based on the radiation state, and determining a first signal strength of the radio frequency signal; receiving the reflected echo signal through the antenna module, and determining a second signal strength of the echo signal; determining the path loss based on the first signal strength and the second signal strength, and determining the distance between the target device and the target vehicle based on the path loss.
[0075] In this embodiment of the application, when the current scenario type is a disconnection scenario or a reconnection scenario, the distance between the target device and the target vehicle is estimated through the RSSI mechanism based on the omnidirectional radiation state of the antenna module and the low-power ranging strategy. Specifically, the following steps are included:
[0076] First, the antenna module is controlled to operate in omnidirectional radiation mode, with the main antenna continuously transmitting low-power radio frequency signals. These signals can be transmitted to the target space in a periodic broadcast manner (e.g., once every 1 second).
[0077] Subsequently, during each broadcast cycle, the antenna module switches to receiving mode to listen for reflected echo signals from the target vehicle (i.e., response frames returned by the vehicle or environmental reflection signals). The first signal strength Ptx of the transmitted signal and the second signal strength Prx of the sampled received signal are recorded.
[0078] Based on the free-space path loss model, the system calculates the path loss value Lpath during signal propagation, and its calculation formula is as follows: .
[0079] Further combining known wireless propagation environment parameters (such as operating frequency f=2.45GHz, vehicle-side antenna gain Gr=0dBi, and device-side antenna gain Gt=0dBi), the propagation distance d is calculated by using the free space loss formula:
[0080] Lpath=32.45+20log 10 (f)+20log 10 (d), where f is in MHz and d is in km.
[0081] Optionally, to improve the robustness of distance estimation, a moving average filter or a weighted exponential smoothing algorithm is used to smooth multiple consecutive RSSI sample values, reducing instantaneous fluctuations caused by environmental interference. Furthermore, the preset NLOS compensation factor (e.g., an additional 15dB attenuation) in the path loss model is dynamically calibrated: when an RSSI fluctuation amplitude exceeding 10dB and a duration less than 200ms is detected, it is determined to be a brief obstruction, and mode switching is not triggered; only the receiver sensitivity tolerance is increased to avoid misjudgment.
[0082] Optionally, when the current scenario type is a pre-wake-up scenario or a pre-unlock scenario, determining the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy includes: controlling the antenna module to transmit a radio frequency pulse signal to the target space based on the radiation state, and determining a first timestamp of the rising edge and a second timestamp of the falling edge of the radio frequency pulse signal; receiving the reflected echo radio frequency pulse signal through the antenna module, and determining a third timestamp of the rising edge and a fourth timestamp of the falling edge of the echo radio frequency pulse signal; calculating the rising edge flight time based on the first timestamp and the third timestamp, and determining the falling edge flight time based on the second timestamp and the fourth timestamp; and calculating the distance between the target device and the target vehicle based on the rising edge flight time and the falling edge flight time.
[0083] Optionally, when the current scenario type is a pre-wake-up scenario type or a pre-unlock scenario type, a double-sided two-way time-of-flight (DDR) ranging strategy is adopted. Combined with the directional radiation state of the antenna module, the distance is measured by accurately extracting the rising and falling timestamps of the radio frequency pulse signal.
[0084] Specifically, when it is determined that the current scenario is a pre-wake-up scenario or a pre-unlock scenario, the system switches to DDR ranging mode and drives the antenna module to start directional radiation: the main antenna and the secondary antenna work simultaneously to form a directional beam pointing in the direction of the vehicle.
[0085] The target device (such as a smartwatch) sends a Gaussian pulse modulated radio frequency pulse signal (center frequency 2.45 GHz, pulse width ≤ 5 ns, bandwidth ≥ 500 MHz) to the target vehicle. The first timestamp, Trise,tx, when the rising edge of the pulse signal arrives at the antenna output, and the second timestamp, Tfall,tx, when the falling edge leaves the antenna output, are recorded. This can be determined using a high-precision timestamp unit (such as an on-chip high-resolution counter).
[0086] After receiving the pulse signal, the vehicle sends an identical radio frequency pulse response frame back to the target device via its internal low-latency processing unit after a preset fixed response delay Tdelay (e.g., 500 ns). The target device's antenna module receives the echo signal and records the third timestamp, Trie,rx, when the rising edge arrives at the receiver, and the fourth timestamp, Tfall,rx, when the falling edge arrives at the receiver.
[0087] The rise time is calculated using the following formula: TToF,rise=[(Trise,rx-Trise,tx)-Tdelay] / 2.
[0088] The descent time is calculated using the following formula: TToF,fall=[(Tfall,rx-Tfall,tx)-Tdelay] / 2.
[0089] Calculate the corresponding distances based on the flight times at the rise and fall edges respectively:
[0090] drise=c TToF,rise; dfall=c TToF,fall.
[0091] Where c is the speed of light (3 × 10⁻⁶) 8 (m / s). Finally, the average of the two is taken as the current distance estimate: d = (drise + dfall) / 2.
[0092] By using dual-edge timestamp sampling, the effects of pulse signal delay jitter, nonlinear response, and RF link group delay at the transceiver end are offset, thereby improving ranging accuracy.
[0093] Optionally, if an abnormal change in the pulse width is detected (such as waveform distortion caused by multipath interference), an anti-interference correction mechanism is automatically activated, that is, abnormal samples are deleted and the median of five consecutive valid measurements is used as the final distance.
[0094] Optionally, when the current scene type is an unlocked scene type, determining the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy includes: controlling the antenna module to transmit a radio frequency signal to the target space based on the radiation state, and determining the transmission timestamp of the radio frequency signal; receiving the reflected echo signal through the antenna module, and determining the reception timestamp of the echo signal; determining the two-way flight time of the radio frequency signal in space based on the transmission timestamp and the reception timestamp; and calculating the distance between the target device and the target vehicle based on the two-way flight time.
[0095] Optionally, when the current scenario type is the unlocking scenario type, close-range positioning is performed based on the omnidirectional radiation state of the antenna module and a high-precision time-of-flight ranging strategy to ensure that the user can unlock the vehicle door quickly, without any noticeable delay, without any standing in the way, and with low latency.
[0096] Specifically, the target device transmits a narrow-pulse modulated radio frequency signal under preset triggering conditions (such as detecting a user's hand approaching or receiving an active inquiry signal from a vehicle). The transmission timestamp Ttx of this pulse signal leaving the antenna output is recorded by a high-precision timestamp unit (such as one based on a ring oscillator or a dedicated TOF ASIC).
[0097] The radio frequency signal propagates through free space to the target vehicle, is received by the vehicle's receiving antenna, and then generates a response signal through a low-delay processing circuit (delay Tdrv = 100 ± 5 ns), which immediately returns along the same path. The target device's antenna module receives this returned echo signal and records the reception timestamp Trx at the receiving end.
[0098] The two-way flight time (TRTT) of the radio frequency signal is calculated using the following formula: TRTT = Trx - Ttx - Tdrv.
[0099] According to the speed of light c = 3 × 10 8 m / s, calculate the one-way distance between the target equipment and the target vehicle: d = (c TRTT) / 2.
[0100] Optionally, embodiments of this application may also employ a multi-pulse continuous sampling + median filtering strategy: five pulses are continuously emitted to obtain five sets of distance values, the maximum / minimum outliers are deleted, and the median of the remaining values is taken as the final distance output. Furthermore, when the calculated distance is less than 0.8 meters, an "unlock confirmation" logic is triggered, sending an encrypted unlock command to the vehicle to improve accuracy and security.
[0101] Optionally, before or after determining the ranging strategy of the target device according to the current scene type, the method further includes: determining the target number of communication channels for the target device to communicate with the target vehicle according to the current scene type; and communicating with the target vehicle according to the target number of communication channels.
[0102] Optionally, before or after determining the ranging strategy of the target device based on the current scenario type, the number of target communication channels used for communication between the target device and the target vehicle can be dynamically configured according to the scenario type, so as to maximize power efficiency and anti-interference capability while ensuring communication reliability.
[0103] Specifically, the five scenario types correspond to different channel usage strategies:
[0104] Reconnection scenario type and disconnection scenario type (distance > 13m): adopt low channel density mode, and use only 3-4 preset low frequency channels (such as channel 1, 10, 20, 25) for periodic broadcasting.
[0105] Pre-wake scenario type (distance 10–13m): Switch to medium channel density mode, enable 20–30 channels (e.g., channel 5–35), and shorten the broadcast interval to 200–500ms.
[0106] Pre-unlock scenario type (distance 3–10m): Enter full-channel scanning mode and enable all available channels (e.g., 79 channels). At this time, the communication frame interval is further shortened to 50ms.
[0107] Unlock scenario type (distance ≤ 3m): Switch to half-channel simplified mode, using only 40 center band channels (e.g., channels 20–59) to reduce RF front-end switching overhead.
[0108] When switching the number of channels, physical layer parameters (such as preamble length, data rate, and retransmission count) are adjusted synchronously to ensure that protocol layer compatibility and bit error rate remain controllable under different channel densities.
[0109] This application embodiment significantly reduces average power consumption and extends device battery life by scheduling channel resources, while ensuring high-precision ranging and low-latency unlocking.
[0110] To better understand the process of the above vehicle state control method, the implementation flow of the above vehicle state control method will be described below in conjunction with optional embodiments, but this is not intended to limit the technical solution of the embodiments of this application.
[0111] This embodiment provides a vehicle status control system. Figure 7 This is a schematic diagram of the vehicle status control system in an embodiment of this application, such as... Figure 7 As shown, it includes: a distance detection module, a distance judgment unit, a scene recognition module, a mode control unit, a vehicle wake-up module, a communication mode control unit, a power consumption management module, a signal parsing unit, and an antenna module. The modules synchronize their states and operate collaboratively through preset input / output signal triggering relationships.
[0112] Table 1 below details the core input / output mapping relationships between each module and their triggering conditions:
[0113] Table 1
[0114]
[0115] This embodiment provides a method for switching between scene mode, ranging mode, and antenna mode, such as... Figure 8As shown in Table 2 below, specifically:
[0116] 1. Initialization phase:
[0117] After the system is powered on, it enters reconnection mode to maximize battery life.
[0118] The power management module supplies power only to the main antenna, while the secondary antenna is powered off via the SPDT switch and is in sleep mode. The communication module initiates a low-power broadcast mode, using a first number (e.g., 3–4) channels (e.g., channels 1, 10, 20, 25), with a broadcast interval of 1000ms and a fixed transmit power of -15dBm, for RSSI ranging to determine whether the device is within the vehicle's effective communication range. The scene perception module continuously acquires a 125kHz low-frequency wake-up signal sent by the vehicle, which is broadcast by the vehicle every 5 seconds after the engine is turned off, to wake up the wearable device in ultra-low power mode.
[0119] 2. The process of switching from the back-connection scenario to the start-up test scenario (i.e., the pre-wake-up scenario):
[0120] When a user wearing a wearable device approaches a vehicle and the distance decreases to 10–13m, the RSSI signal strength rises to the -85dBm to -75dBm range, triggering the following handover process:
[0121] The scene perception module detects an increase in the received strength of the 125kHz wake-up frame, and three consecutive RSSI readings are stable in the range of -85dBm to -75dBm, thus determining it to be a "test start scene". It sends a "scene switching request: reconnect → test start" signal to the mode control unit. Upon receiving the request, the mode control unit instructs the distance detection module to switch from RSSI ranging mode to DDR ranging mode. Simultaneously, it sends a "secondary antenna power enable" command to the power management module. The power management module responds to the command, closing the secondary antenna SPDT switch and powering the secondary antenna. The static operating current of the SPDT switch is approximately 10μA. Simultaneously, it sends a "enable beamforming algorithm" command to the communication module. The communication module initiates the beamforming algorithm, calibrating the phase difference between the main antenna and the secondary antenna to form a directional radiation beam. The transmit power is gradually increased from -20dBm to 2.5dBm to ensure a stable bidirectional link is maintained even in NLOS environments (such as human obstruction or garage pillars). The number of communication channels is expanded from the first number to the second number (e.g., all channels, 79 channels).
[0122] 3. The process of switching from the initial testing scene to the welcoming scene (i.e., the pre-unlocked scene):
[0123] When a user wearing a wearable device approaches a vehicle and the distance decreases to 10–13m, the RSSI signal strength rises to the -85dBm to -75dBm range, triggering the following handover process:
[0124] The scene perception module detects an increase in the received strength of the 125kHz wake-up frame, and three consecutive RSSI readings are stable within the range of -85dBm to -75dBm, thus determining it to be a "test start scene." It sends a "Scene Switching Request: Backlink → Test Start" signal to the mode control unit. Upon receiving the request, the mode control unit instructs the distance detection module to switch from RSSI ranging mode to DDR ranging mode. Simultaneously, it sends a "Secondary Antenna Power Enable" command to the power management module. The power management module responds to the command, closing the secondary antenna SPDT switch to power the secondary antenna; the SPDT switch's static operating current is approximately 10μA. Simultaneously, it sends a "Enable Beamforming Algorithm" command to the communication module. The communication module initiates the beamforming algorithm, calibrating the phase difference between the main antenna and the secondary antenna to form a directional radiation beam. The communication channels remain open with a third number of channels (e.g., 3 / 4 of the channels, 60 channels, all channels, or 79 channels). It should be noted that the second and third numbers can be the same or different; this embodiment does not limit this.
[0125] 3. The process of switching from the welcoming scene to the unlocking scene:
[0126] As the user continues to approach, the DDR ranging value drops below 3m, indicating an "unlocked scenario," and a "switch to unlocked mode" command is sent to the mode control unit.
[0127] The mode control unit responds to the command and performs the following operations: sends a "power off secondary antenna" command to the power management module to turn off the power supply to the secondary antenna, saving approximately 10μA of power consumption; sends a "reduce transmit power" command to the communication module and reduces the number of communication channels from the third to the fourth (e.g., half-channel, 40 channels), shortens the broadcast interval to 10ms, and enables the TOF ranging protocol; simultaneously, the antenna module uses a single main antenna for omnidirectional radiation, and the communication module initiates a request to reduce the transmit power to -9dBm to maintain omnidirectional communication and ensure that unlocking can be triggered from any position on the vehicle; after confirming that the distance is less than or equal to the target distance, it sends an encrypted unlock command to the vehicle; after the vehicle sends a "unlock successful" signal, the scene perception module receives and confirms the response, triggers the state machine to enter the "unlock complete" state, and prepares for the subsequent reconnection process.
[0128] 4. Exception handling coordination mechanism:
[0129] 1) Communication timeout recovery mechanism: If the communication module fails to receive a response from the vehicle to the DDR or TOF ranging frame multiple times (e.g., 5 times) (e.g., due to vehicle signal shielding, battery depletion, or interference), the mode control unit immediately triggers the "timeout reconnection" logic: disconnects the power supply to the secondary antenna and reduces the transmission power.
[0130] 2) Low battery protection mechanism: The power management module monitors the battery voltage in real time. When the voltage is detected to be below 3.0V three times consecutively, it enters the ultra-low power back-connection mode.
[0131] The secondary antenna was forcibly powered off;
[0132] The communication broadcast interval has been extended to 5000 ms;
[0133] All ranging modes are paused, and only 125 kHz wake-up signal monitoring is maintained;
[0134] At the same time, the system will prompt the user with "low battery, please charge" via LED or vibration to avoid the inability to unlock the device due to depleted battery.
[0135] Table 2
[0136]
[0137] Regarding the switching of ranging modes, according to Figure 8 A corresponding switching distance threshold is set, and different modes are switched based on the measured distance. During the switch from unlocked mode to disconnected mode, a return cutoff line is set, typically 0.5m, to prevent frequent switching due to measurement fluctuations. Figure 9 As shown.
[0138] Based on the IoT security unlocking application scenarios and the above embodiments, Table 3 below shows the system architecture diagram and corresponding design goals of a typical IoT security unlocking design based on 2.4G communication in this application. Table 3 below also shows the design architecture of specific implementation cases.
[0139] Table 3
[0140]
[0141] Regarding the attenuation model for ranging:
[0142] For 2.4G communication applications, the free space attenuation formula is as follows:
[0143] .
[0144] Where f: operating frequency in MHz, 2.45 GHz = 2450 MHz; d: propagation distance in km; c: speed of light, 3 × 10⁻⁶ 8 m / s.
[0145] Generally, for NLOS mode, occlusion sources include: arm occlusion, human body occlusion, reflections from car door metal / pillars, garage pillars, walls, pockets, etc., which are more numerous compared to LOS. 8–25 dB.
[0146] The power received by the locomotive is modeled using the following formula:
[0147] .
[0148] .
[0149] Among them, P t For the watch (IoT security unlocking) transmission power, G t For the antenna gain of the watch (IoT security unlock), G r This is the gain of the locomotive-side antenna (default is an omnidirectional antenna, typically there are 4-5 antennas, with a gain of 0dBi). =15~25dB. Table 4 below is a typical ranging attenuation model table. By setting the power threshold, the power switching of various scenarios can be controlled in real time to match the architecture requirements of Table 3.
[0150] Table 4
[0151]
[0152] Specific typical field test data are shown in Table 5 below. The data shows that under various LOS / NLOS scenarios, the start / welcome success rate is 100%, the reconnection success rate is 100%, the unlock latency is ≤100ms, and there is no standby delay; the vehicle locking success rate is 100%. This represents a significant improvement over traditional solutions.
[0153] Table 5
[0154]
[0155] The above embodiments achieve the requirements of high-precision, contactless, fast unlocking and secure vehicle locking, while reducing power consumption by 10%; they ensure connectivity at long distances, success rates at medium distances, and convenience at close distances, fully adapting to user habits.
[0156] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0157] This embodiment also provides a vehicle state control device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0158] Figure 10 This is a structural block diagram of a vehicle state control device according to an embodiment of this application, such as... Figure 10 As shown, the device includes:
[0159] The first determining module 12 is used to determine the current scene type based on the coarse distance between the target device and the target vehicle, determine the ranging strategy of the target device according to the current scene type, and control the working state of the main antenna and the working state of the sub-antenna of the target device according to the current scene type, so as to control the radiation state of the antenna module. The antenna module includes the main antenna and the sub-antenna. When only the main antenna is working, the radiation state of the antenna module is omnidirectional. When both the main antenna and the sub-antenna are working, the radiation state of the antenna module is directional.
[0160] The second determining module 14 is used to determine the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy.
[0161] The control module 16 is used to control the vehicle status of the target vehicle based on the distance between the target device and the target vehicle, wherein the vehicle status includes: unlocked state and locked state.
[0162] The aforementioned device dynamically determines the ranging strategy for the target device based on the current scenario type and simultaneously controls the operating states of the main and secondary antennas. When only the main antenna is operational, the antenna module exhibits omnidirectional radiation to cover wide-area near-field communication needs. When both the main and secondary antennas are operational, it switches to directional radiation to enhance the directivity and signal strength of far-field communication. This achieves adaptive matching of the radiation mode to the communication scenario without altering the transmission power. Based on this dynamically adjusted radiation state and the corresponding ranging strategy, the distance between the target device and the target vehicle is calculated, and the vehicle's unlocking or locking status is intelligently triggered according to the distance result. Therefore, this addresses the problem of a sharp increase in wearable device power consumption and a significant reduction in battery life caused by increasing transmission power to extend communication distance and improve connection reliability. This achieves the effect of significantly reducing system power consumption, improving environmental adaptability, and enhancing user experience while ensuring secure unlocking reliability.
[0163] In an exemplary embodiment, the first determining module is configured to: control the main antenna to operate and disable the secondary antenna when the current scenario type is a disconnection scenario or a reconnection scenario; control the main antenna to operate and periodically control the secondary antenna to operate when the current scenario type is a pre-wake-up scenario; control the main antenna to operate and control the secondary antenna to operate when the current scenario type is a pre-unlock scenario; and control the main antenna to operate and disable the secondary antenna when the current scenario type is an unlock scenario, wherein the distance between the target device and the target vehicle corresponding to the reconnection scenario is greater than the distance between the target device and the target vehicle corresponding to the pre-wake-up scenario, the distance between the target device and the target vehicle corresponding to the pre-unlock scenario is greater than the distance between the target device and the target vehicle corresponding to the unlock scenario, and the distance between the target device and the target vehicle corresponding to the pre-unlock scenario is greater than the distance between the target device and the target vehicle corresponding to the unlock scenario.
[0164] In an exemplary embodiment, a first determining module is configured to control the closing of a target switch disposed between a radio frequency signal input terminal and the sub-antenna, so that the sub-antenna receives and transmits radio frequency signals output from the radio frequency signal input terminal.
[0165] In an exemplary embodiment, when the current scenario type is a disconnection scenario or a reconnection scenario, the second determining module is configured to control the antenna module to transmit a radio frequency signal to the target space based on the radiation state and determine a first signal strength of the radio frequency signal; receive the reflected echo signal through the antenna module and determine a second signal strength of the echo signal; determine path loss based on the first signal strength and the second signal strength, and determine the distance between the target device and the target vehicle based on the path loss.
[0166] In an exemplary embodiment, when the current scene type is a pre-wake-up scene type or a pre-unlock scene type, the second determining module is configured to control the antenna module to transmit a radio frequency pulse signal to the target space based on the radiation state, and determine a first timestamp of the rising edge and a second timestamp of the falling edge of the radio frequency pulse signal; receive the reflected echo radio frequency pulse signal through the antenna module, and determine a third timestamp of the rising edge and a fourth timestamp of the falling edge of the echo radio frequency pulse signal; calculate the rising edge flight time based on the first timestamp and the third timestamp, and determine the falling edge flight time based on the second timestamp and the fourth timestamp; and calculate the distance between the target device and the target vehicle based on the rising edge flight time and the falling edge flight time.
[0167] In an exemplary embodiment, when the current scene type is an unlocked scene type, the second determining module is configured to control the antenna module to transmit a radio frequency signal to the target space based on the radiation state and determine the transmission timestamp of the radio frequency signal; receive the reflected echo signal through the antenna module and determine the reception timestamp of the echo signal; determine the two-way flight time of the radio frequency signal in space based on the transmission timestamp and the reception timestamp; and calculate the distance between the target device and the target vehicle based on the two-way flight time.
[0168] In one exemplary embodiment, the above-described apparatus further includes: a third determining module, configured to determine a target number of communication channels for communication between the target device and the target vehicle based on the current scenario type; and to communicate with the target vehicle based on the target number of communication channels.
[0169] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0170] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.
[0171] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:
[0172] S1, determine the current scene type based on the coarse distance between the target device and the target vehicle, determine the ranging strategy of the target device according to the current scene type, and control the working state of the main antenna and the working state of the sub-antenna of the target device according to the current scene type, so as to control the radiation state of the antenna module. The antenna module includes the main antenna and the sub-antenna. When only the main antenna is working, the radiation state of the antenna module is omnidirectional. When both the main antenna and the sub-antenna are working, the radiation state of the antenna module is directional.
[0173] S2, determine the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy;
[0174] S3, control the vehicle status of the target vehicle according to the distance between the target device and the target vehicle, wherein the vehicle status includes: unlocked state and locked state.
[0175] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0176] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0177] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0178] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0179] S1, determine the current scene type based on the coarse distance between the target device and the target vehicle, determine the ranging strategy of the target device according to the current scene type, and control the working state of the main antenna and the working state of the sub-antenna of the target device according to the current scene type, so as to control the radiation state of the antenna module. The antenna module includes the main antenna and the sub-antenna. When only the main antenna is working, the radiation state of the antenna module is omnidirectional. When both the main antenna and the sub-antenna are working, the radiation state of the antenna module is directional.
[0180] S2, determine the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy;
[0181] S3, control the vehicle status of the target vehicle according to the distance between the target device and the target vehicle, wherein the vehicle status includes: unlocked state and locked state.
[0182] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0183] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0184] Embodiments of this application also provide a computer program that includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in any of the above method embodiments.
[0185] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0186] S1, determine the current scene type based on the coarse distance between the target device and the target vehicle, determine the ranging strategy of the target device according to the current scene type, and control the working state of the main antenna and the working state of the sub-antenna of the target device according to the current scene type, so as to control the radiation state of the antenna module. The antenna module includes the main antenna and the sub-antenna. When only the main antenna is working, the radiation state of the antenna module is omnidirectional. When both the main antenna and the sub-antenna are working, the radiation state of the antenna module is directional.
[0187] S2, determine the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy;
[0188] S3, control the vehicle status of the target vehicle according to the distance between the target device and the target vehicle, wherein the vehicle status includes: unlocked state and locked state.
[0189] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0190] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0191] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method for controlling vehicle status, characterized in that, include: The current scene type is determined based on the coarse distance between the target device and the target vehicle, and the ranging strategy of the target device is determined according to the current scene type. The working state of the main antenna and the working state of the sub-antenna of the target device are controlled according to the current scene type to control the radiation state of the antenna module. The antenna module includes the main antenna and the sub-antenna. When only the main antenna is working, the radiation state of the antenna module is omnidirectional. When both the main antenna and the sub-antenna are working, the radiation state of the antenna module is directional. The distance between the target device and the target vehicle is determined based on the radiation state of the antenna module and the ranging strategy. The vehicle status of the target vehicle is controlled based on the distance between the target device and the target vehicle, wherein the vehicle status includes: unlocked state and locked state.
2. The method according to claim 1, characterized in that, Controlling the operating states of the main antenna and the secondary antenna of the target device according to the current scenario type includes: If the current scenario type is a disconnection scenario or a reconnection scenario, control the main antenna to work and disable the secondary antenna; When the current scene type is a pre-wake-up scene type, control the main antenna to work, and periodically control the secondary antenna to work; When the current scene type is a pre-unlocked scene type, control the main antenna to work, and control the secondary antenna to work; When the current scenario type is the unlock scenario type, the main antenna is controlled to work, and the secondary antenna is disabled. Specifically, the distance between the target device and the target vehicle corresponding to the back-connection scenario type is greater than the distance between the target device and the target vehicle corresponding to the pre-wake-up scenario type, the distance between the target device and the target vehicle corresponding to the pre-unlock scenario type, and the distance between the target device and the target vehicle corresponding to the pre-unlock scenario type is greater than the distance between the target device and the target vehicle corresponding to the unlock scenario type.
3. The method according to claim 2, characterized in that, Controlling the operation of the sub-antenna includes: The target switch located between the radio frequency signal input terminal and the secondary antenna is closed to enable the secondary antenna to receive and transmit the radio frequency signal output from the radio frequency signal input terminal.
4. The method according to claim 1, characterized in that, When the current scenario type is a disconnection scenario or a reconnection scenario, the distance between the target device and the target vehicle is determined based on the radiation state of the antenna module and the ranging strategy, including: The control antenna module transmits radio frequency signals into the target space based on the radiation state and determines the first signal strength of the radio frequency signals; The antenna module receives the reflected echo signal and determines the second signal strength of the echo signal. The path loss is determined based on the first signal strength and the second signal strength, and the distance between the target device and the target vehicle is determined based on the path loss.
5. The method according to claim 1, characterized in that, When the current scenario type is a pre-wake-up scenario or a pre-unlock scenario, the distance between the target device and the target vehicle is determined based on the radiation state of the antenna module and the ranging strategy, including: The control antenna module transmits radio frequency pulse signals to the target space based on the radiation state, and determines the first timestamp of the rising edge and the second timestamp of the falling edge of the radio frequency pulse signal; The antenna module receives the reflected echo radio frequency pulse signal and determines the third timestamp of the rising edge and the fourth timestamp of the falling edge of the echo radio frequency pulse signal. The rising edge flight time is calculated based on the first timestamp and the third timestamp, and the falling edge flight time is determined based on the second timestamp and the fourth timestamp; The distance between the target device and the target vehicle is calculated based on the flight time at the rise edge and the flight time at the fall edge.
6. The method according to claim 1, characterized in that, When the current scenario type is an unlocked scenario, the distance between the target device and the target vehicle is determined based on the radiation state of the antenna module and the ranging strategy, including: The control antenna module transmits radio frequency signals to the target space based on the radiation state and determines the transmission timestamp of the radio frequency signals; The reflected echo signal is received by the antenna module, and the timestamp of the received echo signal is determined. The two-way flight time of the radio frequency signal in space is determined based on the transmission timestamp and the reception timestamp; The distance between the target device and the target vehicle is calculated based on the round-trip flight time.
7. The method according to claim 1, characterized in that, Before or after determining the ranging strategy for the target device based on the current scenario type, the method further includes: The target number of communication channels for communication between the target device and the target vehicle is determined based on the current scenario type. Communicate with the target vehicle through the target number of communication channels.
8. A vehicle status control device, characterized in that, include: The first determining module is used to determine the current scene type based on the coarse distance between the target device and the target vehicle, determine the ranging strategy of the target device according to the current scene type, and control the working state of the main antenna and the working state of the sub-antenna of the target device according to the current scene type, so as to control the radiation state of the antenna module. The antenna module includes the main antenna and the sub-antenna. When only the main antenna is working, the radiation state of the antenna module is omnidirectional. When both the main antenna and the sub-antenna are working, the radiation state of the antenna module is directional. The second determining module is used to determine the distance between the target device and the target vehicle based on the radiation state of the antenna module and the ranging strategy. The control module is used to control the vehicle status of the target vehicle based on the distance between the target device and the target vehicle, wherein the vehicle status includes: unlocked state and locked state.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 7 through the computer program.