Mouth cover locking control method, device, equipment, medium, product and vehicle
Patent Information
- Application Number
- CN202611094931.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-22
- Publication Date
- 2026-10-16
Smart Images

Figure CN122919214A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, specifically to a method, device, equipment, medium, product, and vehicle for controlling a lid locking mechanism. Background Technology
[0002] In the design of vehicle charging port covers, push-push type covers are widely used due to their ease of operation, compact structure, and cost advantages. In existing technologies, a motor typically drives a latch to lock the cover, preventing it from moving and thus achieving an electric locking function to meet the safety and sealing requirements of the charging port cover.
[0003] However, if the cover is pressed to the closed position when the drive latch is locked, it may cause the cover to jam between the cover and the motor latch, making it impossible for the cover to open normally. Summary of the Invention
[0004] Based on the defects and deficiencies of the prior art, this application proposes a method, device, equipment, medium, product, and vehicle for controlling the locking of a lid.
[0005] According to a first aspect of this application, a lid locking control method is provided, the method comprising: In response to the vehicle locking command, start timing; After the timing starts, monitor the opening and closing status of the lid; If the cover is detected to be open within the preset time period after the start of the timer, the timer will restart. If the lid is found to remain closed within a preset time period after the start of timing, the motor latch of the lid is controlled to lock.
[0006] According to a second aspect of the embodiments of this application, a lid locking control device is provided, the device comprising: The timing module is used to start timing in response to the vehicle locking command; The monitoring module is used to monitor the opening and closing status of the cap after the timing starts; The control module is used to restart the timing if the state of the cover is detected to be open within a preset time period after the timing starts. The control module is used to control the motor latch of the cover to lock if the cover is found to remain closed within a preset time period after the start of timing.
[0007] According to a third aspect of the embodiments of this application, an electronic device is provided, including a memory and a processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the lid locking control method as described in the first aspect by running a program in the memory.
[0008] According to a fourth aspect of the present application, a storage medium is provided, on which a computer program is stored, and when the computer program is run by a processor, it implements the lid locking control method as described in the first aspect.
[0009] According to a fifth aspect of the embodiments of this application, a computer program product is provided, wherein the computer program instructions, when executed by a processor, cause the processor to implement the lid locking control method as described in the first aspect.
[0010] According to a sixth aspect of the embodiments of this application, a vehicle is provided, the vehicle being provided with the cover locking control device described in the second aspect or the electronic device described in the third aspect.
[0011] In the aforementioned methods, devices, equipment, media, products, and vehicles for controlling the lid's locking mechanism, a timer is started upon receiving a vehicle locking command, and the opening and closing status of the lid is continuously monitored within a preset time period. If the lid is opened within this time period, the timer restarts. This staggers the timing of the motor latch's action from potential "go-back" operation windows by the user. The motor latch is only locked when the lid remains closed for the preset time period. Thus, even if the user repeatedly presses or opens the lid within a short period after the locking command is issued, the locking is only performed after confirming the lid is stably closed. This avoids interference and jamming of the latch with the mechanical structure during the mechanism's movement, significantly improving the reliability of the lid locking control and the user experience. Attached Figure Description
[0012] 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, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0013] Figure 1 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application.
[0014] Figure 2 This is a flowchart illustrating a lid locking control method according to an embodiment of this application.
[0015] Figure 3 This is a schematic diagram of a lid locking control process provided in an embodiment of this application.
[0016] Figure 4 This is a schematic diagram of a jamming monitoring process provided in an embodiment of this application.
[0017] Figure 5 This is a schematic diagram of the structure of a lid locking control device provided in an embodiment of this application.
[0018] Figure 6 This is a schematic diagram of the structure of an electronic device proposed in an embodiment of this application. Detailed Implementation
[0019] 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, and 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.
[0020] Overview In the field of charging port cover control, the commonly used technical solution for convenient opening and closing of the cover is a push-push type mechanical structure. Specifically, this solution integrates components such as springs, guide rails, and sliders inside the cover to achieve a press-type operation. Its basic working principle is that when the user presses the cover, the slider compresses the spring along the guide rail and triggers the locking mechanism, locking the cover in the closed position; when the user presses the cover again, the spring's stored energy is released, and the slider moves in the opposite direction, popping the cover out. This solution is widely used mainly because it provides a simple mechanical pressing operation experience, eliminating the need for an additional electric drive mechanism to open and close the cover.
[0021] However, this solution's performance is less than ideal when used in conjunction with a motor-driven locking system. A fundamental contradiction lies in the fact that, to achieve convenient pressing operation, the mechanical structure of this solution allows users to operate the cover at any time by pressing, including when the vehicle controller has issued a locking command but the motor has not yet fully executed it. However, the motor's locking action has a fixed action time, which may cause overlap and interference between the motor-driven latch and the mechanical locking mechanism inside the cover in terms of timing. Specifically, in vehicle locking scenarios, the user's action of pressing the cover to completely close it may occur simultaneously with the vehicle domain control module's action of driving the lock motor to extend the latch to lock the cover. This causes the latch to mechanically collide and jam with the moving cover locking mechanism as it moves towards the locked position. After jamming, the cover can neither be completely closed and locked nor can it be opened normally by pressing.
[0022] Through in-depth analysis, the inventors discovered that the root cause of the aforementioned contradiction lies in the fact that traditional locking control logic is an instantaneous response mechanism, meaning that the controller immediately drives the lock motor upon receiving the locking command. This mechanism does not provide a buffer period to handle possible manual operations by the user concurrent with the locking action. The mechanical action of the lid is triggered by the user's press, and the timing is random and unpredictable, while the action of the motor latch is triggered by the control command, and the timing is fixed. There is a time race window between these two action paths. During this window, if the user's finger is pressing the lid when the latch is extended, and the lid mechanism is in the middle of its movement trajectory, the latch cannot smoothly enter the locking groove, but instead abuts or gets stuck in a certain part of the lid mechanism, causing mechanical locking. Traditional logic cannot avoid this time race window, therefore this problem repeatedly occurs in push-push type lids.
[0023] To overcome the aforementioned contradictions, this invention proposes a different technical approach. The core inventive concept lies in constructing a buffer timing loop with status monitoring between receiving the vehicle locking command and the actual locking action of the cover lock motor. This manages the timing of command execution in the cover control logic, staggering the motor latch's action time from the user's manual operation time window without altering the cover's original mechanical structure or the user's pressing habits. In other words, it provides a mechanism combining locking action delay determination and status monitoring to solve the technical problem of latch and mechanism jamming caused by continuous or repeated manual pressing of the cover after the locking command is issued. This achieves the technical effect of allowing the user to operate the cover imperceptibly after the locking command is issued, while the system only executes the locking action after confirming the cover is stably closed.
[0024] Based on the above concept, this specification provides a lid locking control method, which will be described exemplarily below with reference to the accompanying drawings.
[0025] Exemplary application scenarios The cap locking control method provided in the embodiments of this specification is mainly applied in the charging cap locking control system, such as... Figure 1 As shown, the system includes a vehicle body domain control module, a cover motor, a latch, a cover status sensing module, and an internal mechanical structure of the cover.
[0026] When the vehicle body domain control module detects the unlocking / locking action, it drives the cover motor to rotate. When the cover motor rotates, it drives the latch (motor latch) to move, thereby realizing the locking and unlocking functions of the cover. Locking restricts the movement of the cover, while unlocking does not restrict the movement of the cover.
[0027] As the core control module, the body domain control module is responsible for receiving vehicle commands, performing logical operations, and sending control signals to the actuators. The body domain control module connects to other control units in the vehicle via an internal communication network, such as the controller area network, to obtain locking or unlocking commands from the central locking system or door locking system. At the communication level, the body domain control module can recognize and respond to these commands, treating them as input events to trigger internal logical processing.
[0028] The charging port cover motor is an actuator controlled by the vehicle body domain control module. The vehicle body domain control module outputs drive signals to the charging port cover motor to control the rotation direction and timing of the motor rotor. The rotation of the motor rotor drives the latch to perform linear or rotary motion through a mechanical transmission mechanism, causing the latch to switch between a locked position engaged with the charging port cover latch and an unlocked position disengaged from the latch, thereby locking and unlocking the charging port cover.
[0029] The lid contains a mechanical mechanism including a spring, guide rail, and slider. Pressing the lid closes the lid, causing the slider to compress the spring along the guide rail, triggering the locking mechanism to lock the lid at a critical point; pressing the lid again releases the spring's stored energy, causing the slider to move in the opposite direction, and the lid pops out.
[0030] The charging port cover status sensing module is used to detect the open / closed state of the charging port cover itself. Specifically, this sensing module can be a position switch or a microswitch, whose on / off state directly corresponds to the opening and closing of the cover. The sensor transmits the status information of whether the cover is in the open or closed position in real time to the vehicle body domain control module via hard-wired signals or electrical signals, providing input for the control module's logical judgment.
[0031] Exemplary methods Reference Figure 2 This application provides a lid locking control method, applicable to any electronic device or the aforementioned lid locking control system. For example... Figure 2 As shown, the cover locking control method includes steps S201-S204: S201. In response to the vehicle locking command, start timing.
[0032] When a user locks the vehicle by operating the central control screen, remote key, or lock button on the door handle, the vehicle control system generates a vehicle lock command. This command is routed to the body domain control module via the in-vehicle network, such as the controller area network.
[0033] After the vehicle domain control module recognizes the command, it treats it as a trigger event and starts the internal timer logic. The timing action here does not mean that the locking is executed immediately, but rather serves as the starting point of a buffered timing window.
[0034] Specifically, there are several ways to implement the timing function.
[0035] For example, the microprocessor inside the vehicle body domain control module can be configured with a dedicated timer peripheral. By setting a prescaler value and a count value that match the system clock, accurate measurement of a preset time period can be achieved.
[0036] Alternatively, timing can be achieved by maintaining a timestamp variable based on the system tick clock at the software level, and determining whether the preset duration has been reached by continuously comparing the difference between the current timestamp and the starting timestamp.
[0037] The timing mentioned in this embodiment can be achieved by any technical means that can measure the length of time elapsed from the start time.
[0038] S202. After the timing starts, monitor the opening and closing status of the cover.
[0039] Simultaneously with the initiation of the timing logic, the vehicle domain control module enters the status monitoring phase. During this phase, the vehicle domain control module collects signals from the cover status sensing module in real-time, periodically, or in an interrupt-triggered manner.
[0040] The hatch status sensing module converts the mechanical position of the hatch into an electrical signal. For example, when the hatch is closed, the sensor contacts are compressed, the circuit is activated, and a low-level signal is output; when the hatch is pressed open, the contacts separate, the circuit is deactivated, and a high-level signal is output. The vehicle body domain control module reads this level signal through its general-purpose input / output interface or analog-to-digital converter channel to sense whether the hatch is open or closed.
[0041] Specifically, the monitoring of the opening and closing status of the lid can be performed periodically at fixed intervals. For example, sampling can be performed every 10 milliseconds or every 100 milliseconds. This periodic monitoring can effectively capture the user's manual operation of the lid, that is, capture changes in the opening and closing status of the lid. It is understandable that, regardless of the sampling strategy used, the core purpose is to know whether the lid is open or closed during the entire buffer period (within the preset time period) before the timer reaches the preset duration.
[0042] S203. If the cover is detected to be open within a preset time period after the start of timing, the timing will restart.
[0043] This step defines the conditions under which the buffer timer is interrupted and reset, namely, the detection that the lid is open.
[0044] The vehicle body domain control module compares the time of the monitored cover status with the time of the preset time period to determine whether to restart the timing.
[0045] For example, the preset time period can be set to 10 seconds.
[0046] If, within a preset time period starting from the date the vehicle locking command is received, the signal from the cover status sensing module indicates that the cover is open, the vehicle body domain control module determines that the current timing is invalid and immediately terminates the timing operation.
[0047] Specifically, after the timing is stopped, the timing process restarts in response to the operation of the lid being closed again.
[0048] More specifically, during the restart process, the current timing value is first cleared, and a restart signal is awaited; or, the timer's count value is directly reset to zero and a new timing begins.
[0049] This provides users with significant flexibility in their brief operations after the vehicle issues a locking command. For example, a user might remember that the charging gun wasn't removed or need to retrieve something from the cover within a few seconds of locking the vehicle, and thus press the cover. Without this buffer and reset mechanism, the motor latch would actuate immediately after the delay period ends. The movement trajectory of the mechanical latch and the movement trajectory of the mechanism generated by the user manually pressing the cover might interfere at a certain spatial point, causing jamming. In this embodiment, by restarting the timing and staggering the time window of the motor executing the latch locking and the time window of the user's manual operation, the cause of spatial interference can be effectively eliminated, avoiding jamming.
[0050] S204. If the state of the cover remains closed during the preset time period after the start of timing, the motor latch of the cover is controlled to lock.
[0051] If the signal reported by the cover status sensing module consistently indicates that the cover is closed within a preset time period, meaning the user has not opened the cover during that period, the vehicle body domain control module, upon confirming that the buffer condition is met at the moment the timer reaches the preset time period, generates a motor drive command. This command is sent to the drive circuit of the charging port cover lock motor, controlling the motor to rotate, which in turn drives the latch from the unlocked position to the locked position via the transmission mechanism, thus locking the charging port cover.
[0052] Specifically, when controlling the lid to close, a level signal with a specific pulse width and polarity is sent to the motor drive chip to drive the motor to rotate forward or in reverse. For example, the locking action can correspond to an output of a positive drive current lasting 500 milliseconds, causing the latch to extend and engage with the latch. By using this method of driving the motor only after confirming that the lid has closed stably within a complete preset time period, the timing of the latch action can be precisely framed within a time window free from user interference. If the mechanical mechanism of the lid remains undisturbed throughout the buffer period, it indicates that it is in a stable closed state. At this time, the drive motor latch can ensure the smoothness and integrity of the mechanical engagement process, avoiding interference between the latch and the mechanical structure during the movement of the mechanism, thus improving the reliability of the system's locking action.
[0053] It should be noted that the aforementioned features of initiating timing and status monitoring in response to locking commands provide the necessary logical premise and judgment basis for determining whether to restart timing or execute locking based on the status. The coordinated operation of these three elements enables the system to construct a buffer decision loop with self-healing capabilities, jointly solving the problem of mechanical latch jamming caused by the conflict between user operation and motor action timing in the motor-driven locking control of push-push type covers.
[0054] To ensure the accuracy of the starting point for restarting the timing, in some embodiments, the aforementioned step S203 involves restarting the timing, specifically including: if the state of the lid is detected to have switched to closed, then the timing is restarted.
[0055] The timeline of the change in the state of the lid from open to closed is determined as the trigger point for restarting the timing.
[0056] When the timer detects that the cover has been opened during the timing process, the original timer is terminated and enters a waiting state, and the signal from the cover status sensing module is continuously monitored. If the signal changes from a level representing open to a level representing closed, this transition is instantly captured by the vehicle body domain control module and immediately used as the trigger point to start a new round of timing for the preset time period. This limitation is designed to avoid starting invalid timing while the cover is open or before it is fully closed, ensuring that the starting point of the timing window is precisely aligned with the actual, stable closed state of the cover.
[0057] This design forces the start of the new buffer timing window to be defined as the moment when the lid has entered a stable closed state. Thus, the locking logic is only allowed to restart after the lid has completed a full "open-close" cycle and finally returned to the closed position. If the user only presses it halfway or the lid bounces repeatedly under the spring, as long as a stable closed state is not formed, a new timing will not be triggered. This makes the starting point of the entire locking waiting logic clear and rigorous.
[0058] Specifically, when the opening of the cover is detected during the timing process, the process enters the waiting-to-close path. The falling edge of the voltage signal of the cover status sensing module changing from high to low level is the physical indicator that the cover status has switched to closed. The vehicle body domain control module can be configured to use an edge-triggered interrupt mode for its input channel. When this falling edge is detected, the hardware automatically generates an interrupt, and its corresponding interrupt service routine is responsible for clearing the timer and starting a new timer.
[0059] Furthermore, those skilled in the art will understand that alternative means of achieving the same purpose may include software polling. For example, the input pin status is actively queried in each control cycle and XORed with the status of the previous cycle. If the current level is low and the previous cycle was high, it is determined to be a switching event from open to closed, and then the timer is reset and started.
[0060] In this way, by using the moment when the lid is restored to closed as the starting point for restarting the timing, the technical effect of accurately synchronizing the starting point of the buffer window can be achieved. This helps to solve the problem that the effective buffer time may be partially consumed or the locking action may still conflict with repeated user operations due to the ambiguity of the timing starting point. Thus, the overall technical effect of avoiding locking jamming and improving the reliability of the system control logic is enhanced in a synergistic way.
[0061] To promptly diagnose potential mechanical failures that may occur after the interlock is executed, this embodiment... Figure 2 Based on the method shown, a solution for monitoring and alerting stuck objects is also provided.
[0062] The vehicle body domain control module monitors whether the first state switch and the second state switch are on. The first state switch being on indicates that the cover is closed and the motor latch is locked, meaning the motor latch is in the locked position. The second state switch being on indicates that the cover is open and the motor latch is unlocked, meaning the motor latch is in the unlocked position.
[0063] These two state switches can be microswitches, whose mechanical contacts are only pressed together when the latch moves to a precise fully locked or fully open position, thus forming a conductive loop in the circuit. The vehicle body domain control module collects the electrical connection status of these two switches through its specific input interface, and can sense whether the latch has reached a functional position, such as the aforementioned locked or unlocked position.
[0064] Based on whether the first state switch and the second state switch are connected, it is determined whether the cover and the motor latch are stuck.
[0065] If the charging port cover is determined to be stuck with the motor latch, a stuck warning will be issued. The stuck warning can be implemented in various ways. For example, the vehicle domain control module can send a specific alarm frame to the instrument cluster controller via the vehicle's internal CAN bus, illuminating the charging port cover malfunction indicator light on the instrument panel; alternatively, it can send a string of information to the central infotainment system, displaying the text "Charging port cover malfunction, please check" on the central control screen.
[0066] To clarify the unique logical boundary of the jamming determination, in some embodiments, the determination of whether the cover and the motor latch are jammed is based on whether the first state switch and the second state switch are on. Specifically, it is defined as follows: if the first state switch is on or the second state switch is on, then the cover and the motor latch are not jammed; if the first state switch is not on and the second state switch is not on, then the cover and the motor latch are jammed.
[0067] This judgment logic defines a mutually exclusive classification standard, classifying a state where the latch is stably stationary at either the fully locked or fully open extreme position as a normal, non-jamming condition. Only when the latch disengages from these two monitoring points defined as functional positions, causing both switches to fail to receive a conduction signal, is a jamming condition determined. This two-end determination method utilizes the characteristic that the latch must physically reach the conduction point to generate a normal operating signal, accurately and unambiguously identifying any signal loss caused by the latch reaching any unexpected intermediate position during its movement as a jamming fault.
[0068] Specifically, the program logic can be implemented through conditional statements. For example, IF(SW1==ON OR SW2==ON) indicates a normal state; ELSE IF(SW1==OFF AND SW2==OFF) indicates a stuck state. Here, SW1 and SW2 refer to the first and second state switches, respectively. SW1==ON indicates the first state switch is on, SW2==ON indicates the second state switch is on, SW1==OFF indicates the first state switch is off, and SW2==OFF indicates the second state switch is off. Physically, the normally open contacts of SW1 and SW2 are connected to different pins of the vehicle body domain control module. When the latch is at the intermediate stuck point, the contacts of both microswitches are in a free-release state, and both pins simultaneously read a high level indicating open circuit / non-conduction. The logic program then performs an AND operation based on this to determine the stuck state.
[0069] By defining the above-mentioned judgment logic, this embodiment provides a clear standard for jam diagnosis, eliminates the ambiguity that may arise from insufficient position accuracy of a single switch signal, and ensures the reliability and accuracy of the diagnosis results.
[0070] To further enhance the anti-interference capability of the above-mentioned jamming determination and avoid false alarms caused by vibration or switch jitter, in some embodiments, a time dimension constraint is added to the conditions for triggering the jamming determination: if the first state switch is not turned on and continues for a first preset time, and the second state switch is not turned on and continues for a second preset time, then the cover and the motor latch are determined to be jammed.
[0071] This introduces a duration judgment mechanism, which is equivalent to setting a confirmation filter for the disappearance of the switch signal. The first preset duration and the second preset duration can be set to the same value, such as 500 milliseconds; or they can be set to different values according to the physical characteristics of each switch. Only when the non-conducting state of the first state switch is stably maintained for more than the first preset duration, for example, the switch contact of the first state switch is indeed continuously open for more than 500 milliseconds, and at the same time the non-conducting state of the second state switch is also maintained for more than the second preset duration, does the system consider this not to be transient noise or a brief jump in the switching process, but a continuous loss of connection caused by the mechanical latch being physically jammed.
[0072] Specifically, a non-conducting counter can be set for each switch in the software of the vehicle body domain control module to time the non-conducting (not)-on state of the switch. For example, when a non-conducting switch in the first state is detected in any cycle, its corresponding non-conducting counter begins to accumulate; if conduction is detected, it is immediately reset to zero. Only when the non-conducting counter value of the first state switch is greater than the counting threshold corresponding to the first preset duration, and the non-conducting counter value of the second state switch is also greater than the counting threshold corresponding to the second preset duration, is the jamming flag set, thus confirming that the cover is jammed.
[0073] The first and second preset durations can be adjusted within a range of, for example, 50 milliseconds to 2 seconds, based on system inertia, etc.
[0074] By adding this time-based debouncing and confirmation mechanism, this embodiment can effectively filter out the transient and intermittent signal loss caused by mechanical vibration, switch contact bounce, or the rapid passing of the switch position during normal system operation. This significantly improves the anti-interference capability and alarm confidence of the jamming diagnosis function, ensuring that the alarm is triggered only when a real and continuous mechanical jamming fault occurs, effectively avoiding the trouble caused to users by frequent false alarms.
[0075] Furthermore, the specific values of the first and second preset durations are not limited to the aforementioned examples and can be adjusted within a wider range according to the mechanical transmission speed and vibration environment of different vehicle models. Those skilled in the art can easily combine the jamming diagnosis scheme in this embodiment with the aforementioned lockout control scheme based on buffer timing to form a comprehensive solution that can both prevent lockout caused by user operation conflicts and actively diagnose and alarm for jamming faults under any circumstances.
[0076] For example, the lid locking control process can be as follows: Figure 3 As shown. After receiving the vehicle's locking signal, the system monitors the opening and closing status of the charging port cover. If the cover is determined to be closed, a 10-second timer is started. If the cover opens during the timer, the system restarts the timer to determine if the cover is closed. If the cover remains closed during the timer, the system drives the motor latch of the charging port cover to lock.
[0077] For example, the sluggish monitoring process can be as follows: Figure 4 As shown. The system monitors whether the first state switch SW1 and the second state switch SW2 are on. If SW1 is on, the motor latch is in the fully locked position. At this time, the motor latch and the charging port cover are not stuck. The system controls the motor latch to lock, allowing operation without any prompt. If SW2 is on, the motor latch is in the fully open position. At this time, the motor latch and the charging port cover are not stuck. The system controls the motor latch to lock, allowing operation without any prompt. If SW1 and SW2 are not on, and the duration of both is greater than 1.5 seconds, it is determined that the motor latch and the charging port cover are stuck. A prompt is issued, such as sending a text message, or prompting the user to come to the store for repair.
[0078] Exemplary device like Figure 5 As shown in the figure, this application embodiment also provides a lid locking control device, including a timing module 501, a monitoring module 502 and a control module 503.
[0079] in, The timing module 501 is used to start timing in response to a vehicle locking command; The monitoring module 502 is used to monitor the opening and closing status of the cover after the timing starts; The control module 503 is used to restart the timing if the state of the cover is detected to be open within a preset time period after the timing starts; and to control the motor latch of the cover to lock if the state of the cover remains closed within the preset time period after the timing starts.
[0080] The lid locking control device provided in this embodiment belongs to the same concept as the lid locking control method provided in the above embodiments of this application. It can execute the lid locking control method provided in any of the above embodiments of this application and has the corresponding functional modules and beneficial effects of executing the method. Technical details not described in detail in this embodiment can be found in the specific processing content of the lid locking control method provided in the above embodiments of this application, and will not be repeated here.
[0081] Exemplary electronic devices Another embodiment of this application also provides an electronic device, see [link to relevant documentation] Figure 6 As shown, the electronic device includes a memory 600 and a processor 610.
[0082] The memory 600 is connected to the processor 610 and is used to store programs; The processor 610 is used to implement the lid locking control method disclosed in any of the above embodiments by running the program stored in the memory 600.
[0083] Specifically, the electronic device may also include: a bus, a communication interface 620, an input device 630, and an output device 640.
[0084] The processor 610, memory 600, communication interface 620, input device 630, and output device 640 are interconnected via a bus. Among them: A bus can include a pathway for transmitting information between various components of a computer system.
[0085] The processor 610 can be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0086] The processor 610 may include a main processor, as well as a baseband chip, modem, etc.
[0087] The memory 600 stores a program for executing the technical solution of this application, and may also store an operating system and other key business functions. Specifically, the program may include program code, which includes computer operation instructions. More specifically, the memory 600 may include read-only memory (ROM), other types of static storage devices capable of storing static information and instructions, random access memory (RAM), other types of dynamic storage devices capable of storing information and instructions, disk storage, flash memory, etc.
[0088] Input device 630 may include a device for receiving user input data and information, such as a keyboard, mouse, camera, scanner, light pen, voice input device, touch screen, pedometer, or gravity sensor.
[0089] Output device 640 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.
[0090] The communication interface 620 may include a device that uses any transceiver to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.
[0091] The processor 610 executes the program stored in the memory 600 and calls other devices, which can be used to implement the various steps of any of the lid locking control methods provided in the above embodiments of this application.
[0092] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0093] This application also proposes a chip, which includes a processor and a data interface. The processor reads and runs a program stored in a memory through the data interface to execute the lid locking control method described in any of the above embodiments. For details of the processing and its beneficial effects, please refer to the embodiments of the lid locking control method described above.
[0094] In addition to the methods and devices described above, embodiments of this application provide a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps of the mouth cover locking control method according to various embodiments of this application as described in the "Exemplary Methods" section of this specification.
[0095] The computer program product can be written in any combination of one or more programming languages to perform the operations of the embodiments of this application. The programming languages include object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0096] Furthermore, embodiments of this application also propose a storage medium storing a computer program thereon, the computer program being executed by a processor of the steps in the mouth cover locking control method according to various embodiments of this application as described in the "Exemplary Methods" section above.
[0097] The basic principles of the present invention have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in the present invention are merely examples and not limitations, and should not be considered as essential features of each embodiment of the present invention. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the present invention to the necessity of employing the aforementioned specific details.
[0098] The block diagrams of devices, apparatuses, and systems involved in this invention are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.
[0099] It should also be noted that in the apparatus and method of the present invention, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered as equivalent solutions of the present invention.
[0100] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of the invention. Therefore, the invention is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.
[0101] It should be understood that the qualifying terms "first", "second", "third", "fourth", "fifth" and "sixth" used in the description of the embodiments of the present invention are only used to more clearly illustrate the technical solutions and are not intended to limit the scope of protection of the present invention.
[0102] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the invention to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations therein.
Claims
1. A method for controlling lid locking, characterized in that, The method includes: In response to the vehicle locking command, the timer begins; After the timing starts, monitor the opening and closing status of the lid; If the cover is detected to be open within the preset time period after the start of the timer, the timer will restart. If the lid is found to remain closed within a preset time period after the start of timing, the motor latch of the lid is controlled to lock.
2. The lid locking control method according to claim 1, characterized in that, The restarting of the timing includes: If the lid is detected to be closed, the timer will restart.
3. The lid locking control method according to claim 1, characterized in that, The method further includes: Monitor whether the first state switch and the second state switch are connected. When the first state switch is connected, it indicates that the state of the cover is closed and the state of the motor latch is locked. When the second state switch is connected, it indicates that the state of the cover is open and the state of the motor latch is unlocked. Based on whether the first state switch and the second state switch are connected, determine whether the cover and the motor latch are stuck; If the cover gets stuck with the motor latch, a jamming warning will be issued.
4. The lid locking control method according to claim 3, characterized in that, The step of determining whether the cover and the motor latch are stuck based on whether the first state switch and the second state switch are connected includes: If the first state switch or the second state switch is turned on, it is determined that the cover and the motor latch are not stuck. If the first state switch is not turned on and the second state switch is not turned on, it is determined that the cover is stuck with the motor latch.
5. The lid locking control method according to claim 4, characterized in that, The step of determining that the cover is stuck with the motor latch if the first state switch is not turned on and the second state switch is not turned on includes: If the first state switch is not turned on for a first preset duration, and the second state switch is not turned on for a second preset duration, then it is determined that the cover and the motor latch are stuck.
6. A lid locking control device, characterized in that, The device includes: The timing module is used to start timing in response to the vehicle locking command; The monitoring module is used to monitor the opening and closing status of the cap after the timing starts; The control module is used to restart the timing if the state of the cover is detected to be open within a preset time period after the timing starts. The control module is used to control the motor latch of the cover to lock if the cover is found to remain closed within a preset time period after the start of timing.
7. An electronic device, characterized in that, Including memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the lid locking control method as described in any one of claims 1 to 5 by running the program in the memory.
8. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the lid locking control method as described in any one of claims 1-5.
9. A computer program product, characterized in that, It includes computer program instructions, which, when executed by a processor, cause the processor to implement the lid locking control method as described in any one of claims 1-5.
10. A vehicle, characterized in that, The vehicle is equipped with the cover locking control device as described in claim 6 or the electronic device as described in claim 7.