Vehicle control method and vehicle
Patent Information
- Application Number
- CN202611051978.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-15
- Publication Date
- 2026-10-16
AI Technical Summary
[0004]本申请提供了一种车辆控制方法及车辆,以解决现有技术中无法有效区分用户的“有意操作”与“无意刮碰”或“机械抖动”,容易导致车辆非预期解锁的问题
[0026] Compared with the prior art, the technical solution provided in this application has the following advantages: The method provided in this application, after detecting that the unlock switch has switched to the triggered state, further detects whether it has switched back to the initial state, thus accurately identifying the user's complete "press and release" operation intention; simultaneously, by triggering a timer event, unlocking is only performed if no switch trigger is detected again within the time period, effectively eliminating interference caused by continuous accidental touches or switch bounce. The aforementioned dual judgment mechanism of return detection and delayed anti-re-triggering can accurately distinguish between intentional operation and unintentional scratches, avoiding unexpected unlocking due to accidental touches, and significantly improving the security and reliability of vehicle lock control.
Smart Images

Figure CN122919211A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and more particularly to a vehicle control method and a vehicle. Background Technology
[0002] Vehicle control is a crucial component of the vehicle body control system. The driver activates the door unlock switch, triggering the body control module to drive the door lock actuator and release the door from its locked state. Current vehicle unlock control methods typically involve the control module sampling the unlock switch's voltage level signal in real time. When a change in voltage level is detected, simple software filtering is used to determine if the switch has been triggered. If triggered, an unlock drive signal is directly output.
[0003] However, existing technical solutions cannot effectively distinguish between a user's "intentional operation" and "unintentional scratches" or "mechanical vibrations," which can easily lead to the vehicle unlocking unexpectedly and pose a safety hazard. Summary of the Invention
[0004] This application provides a vehicle control method and a vehicle to solve the problem in the prior art that it is impossible to effectively distinguish between the user's "intentional operation" and "unintentional scratches" or "mechanical vibrations", which can easily lead to the vehicle being unlocked unexpectedly.
[0005] In a first aspect, this application provides a vehicle control method, including: When the unlock switch is detected to switch from the initial state to the triggered state, it is detected whether the unlock switch switches back from the triggered state to the initial state; When the unlock switch switches from the triggered state back to the initial state, a timer event is triggered. When no change in the initial state of the unlock switch is detected within the time period corresponding to the timer timing event, an unlock drive signal is output to drive the vehicle door to unlock.
[0006] In one possible implementation, the method further includes: When the unlock switch is detected to switch from the initial state to the triggered state within the time period corresponding to the timer timing event, the timer timing event is terminated.
[0007] In one possible implementation, before detecting whether the unlock switch has switched back from the triggered state to the initial state, the method further includes: Perform accidental touch event detection to confirm whether the trigger state is valid; When the detection result of the accidental touch event indicates that the trigger state is valid, the step of detecting whether the unlock switch has switched back from the trigger state to the initial state is executed.
[0008] In one possible implementation, the execution of accidental touch event detection includes: Within a preset sampling time window, the state of the unlock switch is sampled multiple times consecutively. When the results of multiple consecutive samplings are all in the triggered state, the step of detecting whether the unlock switch has switched back from the triggered state to the initial state is executed.
[0009] In one possible implementation, the execution of accidental touch event detection includes: The pressure value applied to the unlocking switch is continuously sampled; When the pressure value obtained by continuous sampling exceeds the preset pressure threshold for a duration exceeding the preset duration threshold, the step of detecting whether the unlocking switch has switched back from the triggered state to the initial state is executed.
[0010] In one possible implementation, the method further includes: When a door lock command is received, the status of the cover of the enclosed storage space on the outside of the vehicle is determined; When the cover is in an open state, the door locking command is prohibited from being executed, and a first prompt message indicating that the cover is not closed is output. When the cover is in the closed state, the lock command is executed to lock the vehicle door.
[0011] In one possible implementation, the method further includes: When the cover is in the closed state, the location information of the vehicle key is obtained; When the location information indicates that the vehicle key is located in the external enclosed storage space, the locking command is prohibited from being executed, and a second prompt message indicating that the vehicle key is located in the external enclosed storage space is output. Otherwise, the door locking command is executed to lock the vehicle doors.
[0012] In one possible implementation, obtaining the location information of the vehicle key includes: The ultra-wideband signal sent by the vehicle key is detected by deploying multiple ultra-wideband positioning anchors inside the vehicle and in the external enclosed storage space. Based on the ultra-wideband signals detected by each of the ultra-wideband positioning anchor points, the location information of the vehicle key inside the vehicle is calculated.
[0013] In one possible implementation, determining the cover state of the enclosed storage space outside the vehicle includes: Collect the status signals output by the sensors installed on the cover plate; The status signal is compared with the reference signal of the cover plate closed state; When the status signal is consistent with the reference signal, the cover plate is determined to be in a closed state. When the status signal is inconsistent with the reference signal, the cover plate is determined to be in an unclosed state.
[0014] Secondly, this application provides a vehicle control device, comprising: The detection module is used to detect whether the unlock switch has switched back to the initial state when the unlock switch is detected to switch from the initial state to the triggered state. The trigger module is used to trigger a timer event when the unlock switch switches from the triggered state back to the initial state; The unlocking module is used to output an unlocking drive signal to drive the vehicle door to unlock when no change in the initial state of the unlocking switch is detected within the time period corresponding to the timer timing event.
[0015] In one possible implementation, the device further includes a termination module for: When the unlock switch is detected to switch from the initial state to the triggered state within the time period corresponding to the timer timing event, the timer timing event is terminated.
[0016] In one possible implementation, the apparatus further includes an execution module for: Perform accidental touch event detection to confirm whether the trigger state is valid; When the detection result of the accidental touch event indicates that the trigger state is valid, the step of detecting whether the unlock switch has switched back from the trigger state to the initial state is executed.
[0017] In one possible implementation, the execution module is specifically used for: Within a preset sampling time window, the state of the unlock switch is sampled multiple times consecutively. When the results of multiple consecutive samplings are all in the triggered state, the step of detecting whether the unlock switch has switched back from the triggered state to the initial state is executed.
[0018] In one possible implementation, the execution module is further configured to: The pressure value applied to the unlocking switch is continuously sampled; When the pressure value obtained by continuous sampling exceeds the preset pressure threshold for a duration exceeding the preset duration threshold, the step of detecting whether the unlocking switch has switched back from the triggered state to the initial state is executed.
[0019] In one possible implementation, the apparatus further includes a determining module for: When a door lock command is received, the status of the cover of the enclosed storage space on the outside of the vehicle is determined; When the cover is in an open state, the door locking command is prohibited from being executed, and a first prompt message indicating that the cover is not closed is output. When the cover is in the closed state, the lock command is executed to lock the vehicle door.
[0020] In one possible implementation, the device further includes an output module for: When the cover is in the closed state, the location information of the vehicle key is obtained; When the location information indicates that the vehicle key is located in the external enclosed storage space, the locking command is prohibited from being executed, and a second prompt message indicating that the vehicle key is located in the external enclosed storage space is output. Otherwise, the door locking command is executed to lock the vehicle doors.
[0021] In one possible implementation, the output module is further configured to: The ultra-wideband signal sent by the vehicle key is detected by deploying multiple ultra-wideband positioning anchors inside the vehicle and in the external enclosed storage space. Based on the ultra-wideband signals detected by each of the ultra-wideband positioning anchor points, the location information of the vehicle key inside the vehicle is calculated.
[0022] In one possible implementation, the determining module is further configured to: Collect the status signals output by the sensors installed on the cover plate; The status signal is compared with the reference signal of the cover plate closed state; When the status signal is consistent with the reference signal, the cover plate is determined to be in a closed state. When the status signal is inconsistent with the reference signal, the cover plate is determined to be in an unclosed state.
[0023] Thirdly, this application provides a vehicle, including: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; The processor, when executing a program stored in memory, implements any of the vehicle control methods described in the first aspect above.
[0024] Fourthly, this application provides a storage medium storing one or more programs that can be executed by one or more processors to implement the vehicle control method described in any one aspect.
[0025] Fifthly, this application provides a computer program product containing instructions that, when run on a computer, causes the computer to execute any of the vehicle control methods described above.
[0026] Compared with the prior art, the technical solution provided in this application has the following advantages: The method provided in this application, after detecting that the unlock switch has switched to the triggered state, further detects whether it has switched back to the initial state, thus accurately identifying the user's complete "press and release" operation intention; simultaneously, by triggering a timer event, unlocking is only performed if no switch trigger is detected again within the time period, effectively eliminating interference caused by continuous accidental touches or switch bounce. The aforementioned dual judgment mechanism of return detection and delayed anti-re-triggering can accurately distinguish between intentional operation and unintentional scratches, avoiding unexpected unlocking due to accidental touches, and significantly improving the security and reliability of vehicle lock control. Attached Figure Description
[0027] 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.
[0028] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0029] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0030] Figure 1 A flowchart illustrating an embodiment of a vehicle control method provided in this application; Figure 2 A flowchart illustrating an embodiment of another vehicle control method provided in this application; Figure 3 A schematic diagram of a vehicle control system architecture provided in this application embodiment; Figure 4 A block diagram illustrating an embodiment of a vehicle control device provided in this application; Figure 5 This is a structural schematic diagram of a vehicle provided in an embodiment of this application. Detailed Implementation
[0031] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0032] The following disclosure provides numerous different embodiments or examples for implementing various structures of this application. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of this application. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0033] Vehicle control is a crucial component of the vehicle body control system. The driver activates the door unlock switch, triggering the body control module to drive the door lock actuator and release the door from its locked state. Current vehicle unlock control methods typically involve the control module sampling the unlock switch's voltage level signal in real time. When a change in voltage level is detected, simple software filtering is used to determine if the switch has been triggered. If triggered, an unlock drive signal is directly output.
[0034] However, existing technical solutions cannot effectively distinguish between a user's "intentional operation" and "unintentional scratches" or "mechanical vibrations," which can easily lead to the vehicle unlocking unexpectedly and pose a safety hazard.
[0035] To address the aforementioned shortcomings, this application proposes a core inventive concept for anti-accidental touch unlock control based on complete action sequence timing discrimination: after detecting that the unlock switch has been pressed, it further detects whether a return release has occurred, and only outputs an unlock drive signal after confirming that there is no further triggering within a preset time after the return. Through the above-mentioned complete action sequence discrimination of "press-release-confirm no further triggering", the user's intentional operation is accurately identified, effectively avoiding unintended unlocking caused by accidental touch.
[0036] Based on the above inventive concept, such as Figure 1 The diagram shown is a schematic representation of the implementation flow of a vehicle control method provided in this application. This method is applied to a vehicle and may specifically include the following steps: S101. When the unlock switch is detected to switch from the initial state to the triggered state, detect whether the unlock switch switches back from the triggered state to the initial state.
[0037] Unlock switch: This refers to a switch device installed on the vehicle door handle or other operable location inside the vehicle, which is operated manually by the user to request the door to be unlocked. This switch can be a mechanical contact switch, a Hall effect electronic switch, or other types of trigger switches, and its output signal includes both high and low levels.
[0038] Initial state: This refers to the default output state when the unlock switch is not pressed by the user. For switch circuits using pull-up resistors, this state corresponds to a high-level signal; for switch circuits using pull-down resistors, this state corresponds to a low-level signal.
[0039] Trigger state: This refers to the output state of the unlock switch after it is pressed by the user, which is the opposite of the initial state. When the unlock switch is pressed, its internal contacts close or open, causing the output level to change, for example, from high level to low level.
[0040] Switching back to initial state: This means that after the user releases their finger after pressing the switch, the unlock switch automatically returns to the state it was in before being pressed, under the action of its internal reset spring or magnetic reset mechanism, and its output signal level changes from the triggered state back to the initial state.
[0041] In this embodiment, the body control module (such as BCM) reads the level signal of the unlock switch in real time through its input capture interface or general input / output interface in a continuous loop. The sampling period can be set to milliseconds, for example, reading once every 5 or 10 milliseconds. The body control module compares the read level signal with a preset threshold to determine the current state of the unlock switch. When the signal is detected to transition from the initial state to the triggered state, the body control module does not immediately output an unlock drive signal, but continues to detect changes in the level of the unlock switch. The system waits to detect another signal transition, that is, a switch back from the triggered state to the initial state, which indicates that the user has completed the "release" action. Only when this return switch is detected does it indicate that the user has performed a complete "press and release" operation, thus distinguishing it from a continuous trigger state caused by the user pressing and holding for a long time or by foreign objects getting stuck.
[0042] S102. When the unlock switch switches from the triggered state back to the initial state, a timer timing event is triggered.
[0043] Timer timing event: refers to a timing process instance generated after the internal timer of the control module is triggered. This event is triggered by the unlock switch returning to its original position and has a preset duration as the time boundary. During the timing process, the control module continuously monitors whether the unlock switch is triggered again.
[0044] In this embodiment, when the vehicle control module detects that the unlock switch has switched back to the initial state from the triggered state, it immediately triggers a timer event, that is, it starts an internal hardware timer or software timer, which counts down for a preset duration (e.g., 200 milliseconds). This timing process provides a brief time observation window for user operation, used to determine whether the user has performed continuous operation or accidental touch behavior in subsequent steps.
[0045] S103. When no change in the initial state of the unlocking switch is detected within the time period corresponding to the timer timing event, an unlocking drive signal is output to drive the vehicle door to unlock.
[0046] Unlock drive signal: This refers to an electrical pulse signal with a specific voltage and duration output by the body control module, used to drive the door lock actuator. This signal is typically a 12-volt or 5-volt positive pulse with a duration of 100 to 300 milliseconds.
[0047] In this embodiment, during the operation of the timer started in step S102, the vehicle body control module continues to monitor the level of the unlock switch. If the unlock switch is not detected to switch from the initial state to the triggered state again during the entire timing period, it indicates that the user did not perform a new pressing operation after releasing the switch, i.e., there is no continuous accidental touch behavior. When the timer countdown reaches zero, the vehicle body control module sends an unlock drive signal to the door lock actuator through its output interface. This signal drives the motor or electromagnetic mechanism in the actuator to move, causing the door lock mechanism to switch from the locked position to the unlocked position, thereby realizing the door unlocking operation.
[0048] The technical solution provided in this application, after detecting that the unlock switch has switched to the triggered state, further detects whether it has switched back to the initial state, thus accurately identifying the user's complete "press and release" operation intention. Simultaneously, by triggering a timer event, unlocking is only performed if no further switch triggering is detected within the time period, effectively eliminating interference from continuous accidental touches or switch bounce. This dual judgment mechanism of return-to-position detection and delayed anti-re-triggering can accurately distinguish between intentional operation and unintentional scratches, avoiding unexpected unlocking due to accidental touches and significantly improving the security and reliability of vehicle lock control.
[0049] In one embodiment, to achieve a rapid response to continuous user operations, the method may further include the following steps: when the unlock switch is detected to switch from the initial state to the triggered state within the time period corresponding to the timer timing event, the timer timing event is terminated.
[0050] Switch to Trigger State: This means that the unlock switch changes from the initial state to the trigger state again, that is, the user presses the unlock switch again within the preset time window.
[0051] The event to terminate the timer countdown refers to the vehicle control module forcibly stopping the running preset duration timer, reducing it to zero and ceasing the countdown.
[0052] In this embodiment, during the operation of the preset duration timer started in step S102, the vehicle control module continuously monitors the level state of the unlock switch. If, during this timekeeping period, the unlock switch is detected to switch from the initial state to the triggered state again, it indicates that the user has performed a new pressing operation shortly after releasing the switch, such as the user quickly pressing the unlock switch twice in succession. At this time, the vehicle control module immediately terminates the currently running timer, stops its countdown, and abandons the unfinished unlocking process. Subsequently, the control module uses this switch back to the triggered state as a new starting trigger event and re-executes the step of detecting whether the unlock switch has switched back from the triggered state to the initial state.
[0053] Through the aforementioned reset mechanism, when a user presses rapidly and continuously within the delay window, the system can immediately terminate the current process, thereby ensuring the response speed and smoothness of unlocking when the user performs continuous operations. This avoids unlocking delays or invalid operations caused by the previous operation's delay not having ended, thus improving the user experience.
[0054] In one embodiment, to avoid misjudging momentary interference or unintentional touch as a valid trigger, the method may further include the following steps before detecting whether the unlock switch has switched back from the triggered state to the initial state: performing accidental touch event detection to confirm whether the trigger state is valid; and when the detection result of the accidental touch event indicates that the trigger state is valid, performing the step of detecting whether the unlock switch has switched back from the triggered state to the initial state.
[0055] In this embodiment, after the vehicle control module detects that the unlock switch has switched from the initial state to the triggered state, it does not immediately perform the subsequent return-to-position detection. Instead, it first performs accidental touch event detection to confirm whether the currently detected triggered state is valid. Specifically, the vehicle control module judges the signal output by the unlock switch using a preset detection method. If the detection result shows that the trigger conforms to the characteristics of user active operation, the trigger state is considered valid, and the control module then performs the subsequent detection steps, namely, detecting whether the unlock switch has switched back from the triggered state to the initial state. If the detection result shows that the trigger is an invalid signal generated by momentary interference or unintentional touch, the control module ignores the trigger, does not perform the subsequent return-to-position detection steps, and continues to monitor the unlock switch state.
[0056] This solution, by adding a false touch event detection step before the return-to-position detection, can effectively eliminate momentary invalid triggers caused by signal interference, mechanical vibration, or unintentional touches, and prevent the control module from responding to signal changes that are not intended by the user. This improves the accuracy of unlock trigger judgment and anti-interference capability, and further enhances the security and reliability of vehicle lock control.
[0057] As one possible implementation, accidental touch event detection may include the following steps: within a preset sampling time window, continuously sampling the state of the unlock switch multiple times; when the result of multiple consecutive samplings is the triggered state, performing the step of detecting whether the unlock switch has switched back from the triggered state to the initial state.
[0058] Preset sampling time window: refers to a time length parameter pre-stored in the body control module, used to limit the total duration of continuous sampling of the unlock switch signal. This duration can be calibrated according to the mechanical characteristics of the switch, for example, set to 10 milliseconds.
[0059] Continuous multiple sampling: refers to reading the level signal of the unlock switch multiple times at a fixed sampling interval within a preset sampling time window. The interval between each sampling is equal, for example, sampling once every 1 millisecond or 2 milliseconds, for a total of several samplings (such as 5 or 10 times).
[0060] In this embodiment, the vehicle control module continuously samples the state of the unlock switch multiple times within a preset sampling time window (e.g., 10 milliseconds) at fixed sampling intervals (e.g., every 1 or 2 milliseconds). The system records and compares the results of each sampling. Only when the results of multiple consecutive samplings within the sampling time window are all in the triggered state is the triggered state confirmed as valid. If any sampling result is in the initial state, the triggered state is determined to be invalid, regarded as an interference signal and ignored, and the system waits for the next level transition.
[0061] This solution uses a continuous multiple sampling mechanism within a preset sampling time window to accurately filter out the mechanical jitter signal generated by the unlocking switch at the moment of contact closure, avoiding misjudging instantaneous interference as user operation, while retaining the user's normal pressing operation of the switch, thus improving the anti-interference capability and accuracy of unlocking control.
[0062] As another possible implementation, the accidental touch event detection may also include the following steps: continuously sampling the pressure value of the unlocking switch; when the pressure value obtained by continuous sampling exceeds the preset pressure threshold for a duration exceeding the preset duration threshold, the step of detecting whether the unlocking switch has switched back from the triggered state to the initial state is executed.
[0063] Pressure value: refers to the amount of force applied to the sensor surface of the switch when the user presses the unlock switch. It can be measured by the pressure sensing element integrated inside the unlock switch, and the unit is Newton or kilogram force.
[0064] Preset pressure threshold: This refers to a pressure threshold value pre-stored in the vehicle control module, used to distinguish between active pressing operations and unintentional slight touches by the user. Only when the detected pressure value exceeds this threshold is it considered a potentially intentional operation; for example, it can be set to 2 Newtons.
[0065] Preset duration threshold: refers to a time threshold value pre-stored in the vehicle control module, used to distinguish between a user's brief touch and a continuous intentional press operation, such as setting it to 50 milliseconds or 100 milliseconds.
[0066] In this embodiment, the unlocking switch uses a capacitive or resistive sensor with pressure sensing function. This sensor can output an electrical signal corresponding to the magnitude of the applied pressure in real time. The vehicle control module acquires this signal through an analog-to-digital converter interface and converts it into a pressure value. When the control module detects that the unlocking switch has switched from the initial state to the triggered state, it initiates a pressure detection process: continuously sampling the pressure value applied to the unlocking switch and determining in real time whether the currently sampled pressure value exceeds a preset pressure threshold (e.g., 2 Newtons). If it does not exceed the threshold, it is considered an unintentional slight touch by the user or external vibration interference, and no response is given. If it exceeds the preset pressure threshold, the duration for which the pressure value exceeds the preset pressure threshold is further recorded, and it is determined whether the duration exceeds a preset duration threshold (e.g., 50 milliseconds). Only when the duration for which the continuously sampled pressure value exceeds the preset pressure threshold exceeds the preset duration threshold is the triggered state confirmed to be valid, and subsequent return detection steps are executed. If the pressure value exceeds the preset pressure threshold but the duration is insufficient, it is considered a brief accidental touch by the user or a momentary pressure report, and no response is given.
[0067] This solution introduces a dual judgment mechanism based on pressure value and pressure duration, which can more accurately distinguish between the user's active pressing operation and unintentional slight scratches or momentary touches, further improving the anti-interference capability and security of the unlocking control, and is especially suitable for vehicle use scenarios with high requirements for preventing accidental touches.
[0068] Figure 2 A flowchart illustrating another embodiment of the vehicle control method provided in this application. Figure 2 The process shown is in Figure 1 Based on the illustrated process, the following steps are included: S201. When a door locking command is received, determine the status of the cover of the enclosed storage space outside the vehicle.
[0069] Locking command: refers to the control signal issued by the user through the lock button on the remote key, the lock sensor area on the door handle, or the central locking switch inside the vehicle to request the vehicle to enter the locked state.
[0070] External encloseable storage space: refers to storage areas located outside the passenger compartment of a vehicle with openable and closable covers, such as the cargo box of a pickup truck or van, or the toolbox of a construction vehicle. This type of space can be formed into an independent enclosed area by closing the cover.
[0071] Cover status: refers to the current open / closed state of the cover of the externally enclosed storage space, including both closed and open states. The closed state indicates that the cover is fully closed and the locking mechanism is in place, while the open state indicates that the cover is open, partially open, or not locked.
[0072] In this embodiment, the vehicle control module receives locking command signals from the remote key receiver, door handle control module, or central locking switch via an in-vehicle network (such as CAN bus or LIN bus). Upon receiving the locking command, the control module does not immediately execute the locking action. Instead, it first determines whether the cover is currently closed or open by reading the status sensor signal installed on the external sealable storage compartment cover. This determination process includes acquiring the sensor's output level signal and comparing it with a pre-stored cover closure status reference signal to obtain an accurate cover status judgment result.
[0073] S202. When the cover is in an open state, the door locking command is prohibited from being executed, and a first prompt message indicating that the cover is not closed is output. When the cover is in a closed state, the door locking command is executed to lock the vehicle door.
[0074] Prohibit the execution of the door lock command: This means that the body control module abandons the execution of the received door lock command, does not send a door lock drive signal to the door lock actuator, and the vehicle continues to remain in the current unlocked state.
[0075] First warning message: refers to a warning signal used to remind the user that the cover is not closed. Specifically, it can be one or more combinations of the following: the vehicle horn sounds once, the hazard lights flash once or several times, the buzzer sounds a warning sound, and the instrument panel displays a text message.
[0076] Execute the door lock command: This means that the body control module sends a door lock drive signal to the door lock actuator of each door according to the normal door lock procedure, so that the door lock mechanism switches from the unlock position to the locked position, thus completing the door locking operation.
[0077] In this embodiment, the vehicle body control module makes a branch judgment based on the cover status determined in step S201. If the cover is not closed, it indicates that the user may have temporarily placed the vehicle key or valuables in the cargo box or toolbox. If the door is locked at this time, the key or items will be locked in the storage space and cannot be retrieved after the user closes the cover. Therefore, the control module prohibits the execution of this door locking command and does not perform the door locking action. At the same time, it outputs the first prompt information, such as controlling the vehicle horn to sound once and controlling the hazard lights to flash twice, to remind the user to check whether the cover is closed. If the cover is closed, it indicates that the external sealable storage space is closed and there is no risk of accidentally locking the key or items inside. The control module executes the door locking command normally, sends door locking drive signals to the door lock actuators of each door, and completes the locking operation of the vehicle doors.
[0078] This solution first checks the status of the cover of the external enclosed storage space after receiving the lock command, and only executes the lock when the cover is closed. This effectively prevents users from accidentally locking their keys or important items in external storage spaces such as cargo boxes or toolboxes, eliminating the blind spots in traditional anti-locking solutions. At the same time, it promptly reminds users to check the cover status by outputting prompts, improving the vehicle's intelligence level and user experience.
[0079] In one embodiment, the state of the cover of the enclosed storage space outside the vehicle can be determined by the following steps: acquiring a state signal output by a sensor installed on the cover; comparing the state signal with a reference signal for the closed state of the cover; when the state signal matches the reference signal, determining that the cover is in a closed state; when the state signal does not match the reference signal, determining that the cover is in an open state.
[0080] Sensor: A status detection element installed on the cover of an external, sealable storage space to sense the open or closed state of the cover and convert that state into an electrical signal output. This sensor can specifically be a Hall effect sensor or a microswitch. A Hall effect sensor outputs a corresponding voltage signal by detecting the position of a magnet on the cover; a microswitch outputs a switching signal when the cover touches its mechanical contacts.
[0081] Status signal: refers to the electrical signal output by the sensor after detecting the current open or closed state of the cover. This signal can be a voltage value, a current value, or a digital level signal, and its specific value is related to the actual position of the cover.
[0082] Reference signal: This refers to a reference signal value pre-stored in the body control module. This value corresponds to the standard electrical signal that the sensor should output when the cover is fully closed and locked in place. This reference signal can be obtained through factory calibration, for example, by reading and storing the sensor output after the cover is fully closed.
[0083] In this embodiment, the vehicle control module first reads the status signal output by the sensor mounted on the cover plate through its input interface. For a Hall sensor-based solution, when the cover plate is closed, the magnet on the cover plate approaches the sensor, and the sensor outputs a high-level signal; when the cover plate is open, the magnet moves away from the sensor, and the sensor outputs a low-level signal. For a microswitch-based solution, when the cover plate is closed, the switch is pressed down and outputs a low-level signal; when the cover plate is open, the switch pops up and outputs a high-level signal. After reading the status signal, the control module compares it with a pre-stored reference signal for the cover plate's closed state. If the status signal matches the reference signal (e.g., both are high-level), it is determined that the cover plate is currently in a closed state; if the status signal does not match the reference signal (e.g., the status signal is low-level while the reference signal is high-level), it is determined that the cover plate is currently in an open state. This determination result will serve as the basis for subsequent judgment on whether to execute a door locking command.
[0084] This solution uses simple and inexpensive sensors such as Hall effect sensors or microswitches to collect cover status signals and compares them with pre-stored reference signals. This allows for accurate and reliable determination of the open and closed status of the cover of the external sealable storage space, providing accurate judgment basis for the anti-locking logic. At the same time, it reduces the overall system cost and has good engineering feasibility and economy.
[0085] In one embodiment, to further eliminate the risk of the key being accidentally locked in the storage space, the method may further include the following steps: when the cover is in a closed state, obtaining the location information of the vehicle key; when the location information indicates that the vehicle key is located in the external enclosed storage space, prohibiting the execution of the door locking command, and outputting a second prompt message that the vehicle key is located in the external enclosed storage space; otherwise, executing the door locking command to lock the vehicle door.
[0086] Location information: refers to the data on the location of the vehicle key inside or around the vehicle. This information can be obtained through various positioning technologies, such as detecting the signal strength or time difference of the key by low-frequency antennas placed inside and outside the vehicle's enclosed storage space, thereby determining the key's specific location.
[0087] The second warning message refers to a warning signal used to remind the user that the vehicle key is currently located in an external, enclosed storage space, and is distinct from the aforementioned first warning message. This warning message can specifically be one or a combination of the following: the vehicle horn sounds, hazard lights flash, a buzzer emits a specific frequency warning tone, or a text message displayed on the instrument panel.
[0088] In this embodiment, after determining the cover to be closed according to step S202, although the cover is closed, the vehicle key may have been placed in the cargo box or toolbox by the user beforehand. If the door is locked directly at this time, the key will be locked in the storage space and cannot be retrieved. Therefore, the vehicle control module further obtains the location information of the vehicle key. Specifically, a low-frequency antenna array arranged inside the vehicle and in external enclosed storage spaces such as the cargo box and toolbox detects the low-frequency signal emitted by the smart key. After receiving the signal, each antenna sends its strength or arrival time to the control module, which calculates the precise location of the key based on these parameters. When the location information indicates that the vehicle key is located in an external enclosed storage space (e.g., inside the cargo box or toolbox), it indicates that there is a risk of the key being accidentally locked. The control module prohibits the execution of the current lock command and does not perform the lock action. At the same time, it outputs a second prompt message, such as sounding the horn twice and controlling the hazard lights to flash rapidly, to clearly remind the user that the key is currently in the storage space and should be retrieved in time. If the location information indicates that the key is not in an externally enclosed storage space (such as in the passenger compartment, in the user's pocket, or outside the vehicle), there is no risk of accidental locking, and the control module will execute the locking command normally to complete the locking operation of the vehicle door.
[0089] This solution introduces a precise positioning function for the vehicle key, further determining whether the key has been placed in the storage space even when the cover is closed. This effectively solves the problem of the key being accidentally locked when the user puts the key in the cargo box or toolbox before closing the cover. It complements the aforementioned anti-locking solution based on the cover status, achieving full coverage anti-locking protection for all encloseable spaces in the vehicle, greatly improving the completeness of functions and user experience.
[0090] In one embodiment, the location information of a vehicle key can be obtained through the following steps: detecting the ultra-wideband signal sent by the vehicle key by deploying multiple ultra-wideband positioning anchors inside the vehicle and in the external enclosed storage space; and calculating the location information of the vehicle key inside the vehicle based on the ultra-wideband signal detected by each of the ultra-wideband positioning anchors.
[0091] Ultra-wideband (UWB) positioning anchors: These are wireless signal receiving devices fixedly deployed in specific locations inside a vehicle, operating in the ultra-wideband frequency band. UWB is a wireless communication technology that uses extremely wide spectrum bandwidth for data transmission, featuring high time resolution, strong resistance to multipath interference, and high ranging accuracy. Multiple anchors working collaboratively can achieve high-precision positioning of signal sources by measuring signal arrival time or time difference, with positioning accuracy down to the centimeter level.
[0092] Ultra-wideband signal: refers to a wireless pulse signal that conforms to the ultra-wideband technology standard and is actively sent by the ultra-wideband module in the vehicle key. This signal contains the key's unique identification information and is used for the detection and identification of the positioning anchor point.
[0093] Location information: refers to the specific spatial coordinates of the vehicle key in the vehicle coordinate system after calculation, such as the location of the key in the passenger compartment, trunk, cargo box, or toolbox.
[0094] In this embodiment, multiple ultra-wideband (UWB) positioning anchors are pre-deployed within the vehicle's interior and exterior enclosed storage spaces. For example, one or more anchors are installed in locations such as the passenger compartment ceiling, behind the dashboard, the cargo box interior wall, and inside the toolbox. The vehicle key integrates an UWB communication module capable of actively transmitting UWB signals. When a user approaches or enters the vehicle with the key, the key periodically or continuously transmits UWB signals. The UWB positioning anchors at each deployment location receive the signal and record the time or strength of the signal arrival at their respective anchors. Since the anchor positions are fixed and their coordinates are known, the time difference of arrival of the UWB signal at different anchors can be calculated, and the location coordinates of the signal source can be deduced using a time difference of arrival algorithm. For example, if the signal arrives at the anchor in the cargo box significantly earlier than at the anchor in the passenger compartment, it can be determined that the key is located in the cargo box. The vehicle control module obtains the aforementioned detection data through the communication interface with each anchor, executes the position calculation algorithm, and finally obtains the location information of the vehicle key inside the vehicle, accurately determining which specific area the key is in, such as the passenger compartment, trunk, cargo box, or toolbox.
[0095] This solution, by deploying ultra-wideband positioning anchors and utilizing the high-precision ranging characteristics of ultra-wideband signals, can achieve centimeter-level precise positioning of vehicle keys, accurately determining whether the key is located in the passenger compartment or in external enclosed storage spaces such as the cargo box or toolbox. This provides a precise location judgment basis for the anti-mislocking logic, effectively solving the technical problems of insufficient positioning accuracy and inability to accurately distinguish whether the key is in the passenger compartment or in storage space in traditional low-frequency antenna solutions.
[0096] To facilitate understanding of the technical solution of this application, the following will be combined with Figure 3 The vehicle control method provided in the embodiments of this application will be described in general.
[0097] like Figure 3 As shown, the system architecture of this embodiment includes three layers: an input signal detection layer, a core control logic layer, and an output execution layer. The input signal detection layer collects various vehicle status signals, specifically including: the status signals of the unlock switch, the left front door lock, the right front door lock, the cargo box rain cover, and the toolbox cover. The core control logic layer is a control module, such as a body control module, which acts as the logic processing center, comprehensively collecting, logically judging, and processing the input signals. The output execution layer includes door lock actuators and audible and visual alarms, used to execute unlock or lock commands issued by the control module and output prompt information.
[0098] In vehicle unlocking scenarios, the control module first detects the state of the vehicle unlock switch. When it detects that the unlock switch has switched from the initial state to the triggered state, the control module does not immediately output an unlock drive signal. Instead, it continues to detect whether the unlock switch has switched back from the triggered state to the initial state, i.e., whether the user has completed the "release" action. Only when a return switch is detected does it indicate that the user has performed a complete "press and release" operation. Subsequently, the control module triggers a timer event, i.e., starts a timer for a preset duration (e.g., 200 milliseconds). During this timer period, it continuously detects whether the unlock switch is triggered again. If the unlock switch is not detected to switch back to the triggered state again during the entire timer period, it indicates that the user has not performed a new pressing operation after releasing the switch. After the timer ends, the control module outputs an unlock drive signal to the door lock actuator, driving the door lock actuator to switch the door from the locked state to the unlocked state. If the unlock switch is detected to switch back to the triggered state again during the timer period, the timer event is terminated to respond to the user's rapid and continuous operations.
[0099] In a vehicle door locking scenario, when the control module receives a lock command, it first determines the status of the covers of the vehicle's external enclosed storage spaces. This involves reading the status sensor signals (such as Hall effect sensors or microswitches) of the cargo bed rain cover and toolbox cover. The collected status signals are compared with a reference signal indicating the cover is closed to determine whether the cover is closed or open. If the cover is open, it indicates that the user may have temporarily placed the vehicle key or valuables in the cargo bed or toolbox. If the door is locked at this time, the key will be locked inside the storage space after the user closes the cover and cannot be retrieved. Therefore, the control module prohibits the execution of this lock command and does not perform the locking action. At the same time, it outputs a first warning message that the cover is not closed through an audible and visual alarm, such as sounding the horn once and flashing the hazard lights twice, to remind the user to check whether the cover is closed. If the cover is closed, the control module further obtains the location information of the vehicle key, for example, by detecting the key's position using low-frequency antennas placed inside and outside the vehicle's enclosed storage spaces. If the location information indicates that the vehicle key is located in an externally enclosed storage space (such as inside the cargo box or toolbox), it means the key has been placed inside the storage space. The control module will prevent the door from locking and will output a second prompt message via an audible and visual alarm, such as sounding the horn twice and flashing the hazard lights rapidly, to remind the user that the key is in the storage space and should be retrieved promptly. If the location information indicates that the key is not in an externally enclosed storage space, there is no risk of accidental locking. The control module will execute the door locking command normally, sending a door locking drive signal to the door lock actuator to complete the locking operation of the vehicle door.
[0100] Through the dual judgment mechanism of "return detection → delayed unlocking" in the unlocking control process and the dual anti-mislocking mechanism of "cover plate status detection → key positioning detection" in the door locking control process, the vehicle control method provided in this application embodiment can effectively distinguish between the user's intentional operation and unintentional scratching, avoid unexpected unlocking caused by accidental touch, and eliminate the blind spot of the key being accidentally locked in the cargo box, toolbox and other external enclosed storage space in the traditional solution, which significantly improves the safety of vehicle control and user experience.
[0101] Figure 4 This is a block diagram illustrating an embodiment of a vehicle control device provided in this application. Figure 4 As shown, the device includes: The detection module 41 is used to detect whether the unlock switch has switched back from the trigger state to the initial state when the unlock switch is detected to switch from the initial state to the trigger state. Trigger module 42 is used to trigger a timer timing event when the unlock switch switches from the triggered state back to the initial state; The unlocking module 43 is used to output an unlocking drive signal to drive the vehicle door to unlock when no change in the initial state of the unlocking switch is detected within the time period corresponding to the timer timing event.
[0102] In one possible implementation, the device further includes a termination module for: When the unlock switch is detected to switch from the initial state to the triggered state within the time period corresponding to the timer timing event, the timer timing event is terminated.
[0103] In one possible implementation, the apparatus further includes an execution module for: Perform accidental touch event detection to confirm whether the trigger state is valid; When the detection result of the accidental touch event indicates that the trigger state is valid, the step of detecting whether the unlock switch has switched back from the trigger state to the initial state is executed.
[0104] In one possible implementation, the execution module is specifically used for: Within a preset sampling time window, the state of the unlock switch is sampled multiple times consecutively. When the results of multiple consecutive samplings are all in the triggered state, the step of detecting whether the unlock switch has switched back from the triggered state to the initial state is executed.
[0105] In one possible implementation, the execution module is further configured to: The pressure value applied to the unlocking switch is continuously sampled; When the pressure value obtained by continuous sampling exceeds the preset pressure threshold for a duration exceeding the preset duration threshold, the step of detecting whether the unlocking switch has switched back from the triggered state to the initial state is executed.
[0106] In one possible implementation, the apparatus further includes a determining module for: When a door lock command is received, the status of the cover of the enclosed storage space on the outside of the vehicle is determined; When the cover is in an open state, the door locking command is prohibited from being executed, and a first prompt message indicating that the cover is not closed is output. When the cover is in the closed state, the lock command is executed to lock the vehicle door.
[0107] In one possible implementation, the device further includes an output module for: When the cover is in the closed state, the location information of the vehicle key is obtained; When the location information indicates that the vehicle key is located in the external enclosed storage space, the locking command is prohibited from being executed, and a second prompt message indicating that the vehicle key is located in the external enclosed storage space is output. Otherwise, the door locking command is executed to lock the vehicle doors.
[0108] In one possible implementation, the output module is further configured to: The ultra-wideband signal sent by the vehicle key is detected by deploying multiple ultra-wideband positioning anchors inside the vehicle and in the external enclosed storage space. Based on the ultra-wideband signals detected by each of the ultra-wideband positioning anchor points, the location information of the vehicle key inside the vehicle is calculated.
[0109] In one possible implementation, the determining module is further configured to: Collect the status signals output by the sensors installed on the cover plate; The status signal is compared with the reference signal of the cover plate closed state; When the status signal is consistent with the reference signal, the cover plate is determined to be in a closed state. When the status signal is inconsistent with the reference signal, the cover plate is determined to be in an unclosed state.
[0110] like Figure 5As shown in the figure, this application provides a vehicle including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114. Memory 113 is used to store computer programs; In one embodiment of this application, when the processor 111 executes the program stored in the memory 113, it implements the vehicle control method provided in any of the foregoing method embodiments, including: Check the status of the vehicle unlock switch; When the unlock switch is detected to switch from the initial state to the triggered state, anti-shake processing is performed to confirm whether the triggered state is valid; When the trigger state is confirmed to be valid, it is detected whether the unlock switch has switched back from the trigger state to the initial state; When a switch back to the initial state is detected, a timer for a preset duration is started. If the unlock switch is not detected to switch to the trigger state again during the timing period, an unlock drive signal is output after the timing ends, so as to unlock the vehicle door through the unlock drive signal.
[0111] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the vehicle control method provided in any of the foregoing method embodiments.
[0112] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to execute any of the vehicle control methods described in the above embodiments.
[0113] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0114] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0115] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also include the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that additional or alternative steps may be used.
[0116] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A vehicle control method, characterized in that, The method includes: When the unlock switch is detected to switch from the initial state to the triggered state, it is detected whether the unlock switch switches back from the triggered state to the initial state; When the unlock switch switches from the triggered state back to the initial state, a timer event is triggered. When no change in the initial state of the unlock switch is detected within the time period corresponding to the timer timing event, an unlock drive signal is output to drive the vehicle door to unlock.
2. The method according to claim 1, characterized in that, The method further includes: When the unlock switch is detected to switch from the initial state to the triggered state within the time period corresponding to the timer timing event, the timer timing event is terminated.
3. The method according to claim 1, characterized in that, Before detecting whether the unlock switch has switched back to the initial state from the triggered state, the method further includes: Perform accidental touch event detection to confirm whether the trigger state is valid; When the detection result of the accidental touch event indicates that the trigger state is valid, the step of detecting whether the unlock switch has switched back from the trigger state to the initial state is executed.
4. The method according to claim 3, characterized in that, The execution of accidental touch event detection includes: Within a preset sampling time window, the state of the unlock switch is sampled multiple times consecutively. When the results of multiple consecutive samplings are all in the triggered state, the step of detecting whether the unlock switch has switched back from the triggered state to the initial state is executed.
5. The method according to claim 3, characterized in that, The execution of accidental touch event detection includes: The pressure value applied to the unlocking switch is continuously sampled; When the pressure value obtained by continuous sampling exceeds the preset pressure threshold for a duration exceeding the preset duration threshold, the step of detecting whether the unlocking switch has switched back from the triggered state to the initial state is executed.
6. The method according to claim 1, characterized in that, The method further includes: When a door lock command is received, the status of the cover of the enclosed storage space on the outside of the vehicle is determined; When the cover is in an open state, the door locking command is prohibited from being executed, and a first prompt message indicating that the cover is not closed is output. When the cover is in the closed state, the lock command is executed to lock the vehicle door.
7. The method according to claim 6, characterized in that, The method further includes: When the cover is in the closed state, the location information of the vehicle key is obtained; When the location information indicates that the vehicle key is located in the external enclosed storage space, the locking command is prohibited from being executed, and a second prompt message indicating that the vehicle key is located in the external enclosed storage space is output. Otherwise, the door locking command is executed to lock the vehicle doors.
8. The method according to claim 7, characterized in that, The acquisition of the vehicle key's location information includes: The ultra-wideband signal sent by the vehicle key is detected by deploying multiple ultra-wideband positioning anchors inside the vehicle and in the external enclosed storage space. Based on the ultra-wideband signals detected by each of the ultra-wideband positioning anchor points, the location information of the vehicle key inside the vehicle is calculated.
9. The method according to claim 6, characterized in that, Determining the state of the cover of the enclosed storage space on the outside of the vehicle includes: Collect the status signals output by the sensors installed on the cover plate; The status signal is compared with the reference signal of the cover plate closed state; When the status signal is consistent with the reference signal, the cover plate is determined to be in a closed state. When the status signal is inconsistent with the reference signal, the cover plate is determined to be in an unclosed state.
10. A vehicle, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 1-9.