Pull-in lock anti-pinch control method, device, equipment, medium, product and vehicle
By collecting the switch signal of the magnetic lock and the Hall signal of the motor to calculate the energy increment, setting a threshold, and combining the door handle capacitance signal, the anti-pinch control of the magnetic lock is realized, which solves the risk of pinching hands during the magnetic lock driving process and improves user safety.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING CO WHEELS TECH CO LTD
- Filing Date
- 2024-10-24
- Publication Date
- 2026-04-24
AI Technical Summary
Existing car magnetic locks pose a risk of hands, clothing, or items getting caught during operation, lacking effective anti-pinch functionality.
By collecting the switch signal of the latching lock and the Hall signal of the motor, the current latching position is determined, the energy increment is calculated, and an energy threshold is set. If the energy increment exceeds the threshold, the latching action stops. Combined with the capacitor signal inside the door handle, human action is judged to achieve anti-pinch control.
Accurately assess the risk of finger pinching when the magnetic lock engages, using energy increment and capacitance signal analysis to achieve rapid response, prevent finger pinching, and improve user safety.
Smart Images

Figure CN121915871A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle technology, and in particular to a method, device, equipment, medium, product, and vehicle for controlling the anti-pinch function of a magnetic lock. Background Technology
[0002] A magnetic door lock is a type of automatic closing door lock, commonly found on many car doors. Its working principle is as follows: when the door is manually closed to the half-closed position, the door lock sends a half-lock signal to the magnetic control module. The magnetic control module then instructs the magnetic motor to execute the magnetic command, at which point the door will automatically close to the fully closed position under the motor's pull.
[0003] While magnetic door locks offer convenience to users, current automotive magnetic door locks lack anti-pinch functionality. Under normal use, there is a risk that hands, clothing, or other items may be caught in the car door during the magnetic door's operation. Summary of the Invention
[0004] This invention provides a method, device, equipment, medium, product, and vehicle for preventing pinching of a magnetic lock, in order to solve the problem of the risk of users' hands, clothing, items, etc. being pinched during the magnetic lock's operation.
[0005] According to one aspect of the present invention, a method for preventing pinching of a magnetic lock is provided, comprising:
[0006] The switch signal of the target latching lock and the Hall signal of the motor are collected, and the current latching position of the target latching lock is determined based on the switch signal and the Hall signal of the motor.
[0007] Determine the energy increment of the target latching lock from the start of latching to the current latching position, and determine the energy threshold corresponding to the current latching position;
[0008] If the energy increment is greater than the energy threshold corresponding to the current engagement position, then the engagement action of the target engagement lock is stopped.
[0009] Further, determining the current engagement position of the target latching lock based on the switch signal and the Hall signal includes:
[0010] The engaging state of the target latching lock is determined based on the switch signal; wherein, the engaging state includes fully open, fully closed, and in the process of engaging;
[0011] Determine the first Hall signal value and the second Hall signal value of the target latching lock in the fully open and fully closed states, respectively;
[0012] If the target latching lock is in the latching state, the current latching position of the target latching lock is determined based on the motor Hall signal, the first Hall signal value, and the second Hall signal value.
[0013] Further, determining the energy increment of the target latching lock from the start of latching to reaching the current latching position includes:
[0014] Collect the motor current signal of the target latching lock from the start of latching to the current latching position;
[0015] The energy increment is determined based on the motor current signal.
[0016] Further, determining the energy threshold corresponding to the current engagement position includes:
[0017] Obtain at least two engagement intervals by dividing the entire engagement process of the target latching lock from fully open to fully closed;
[0018] Determine the target attraction interval to which the current attraction position belongs among the at least two attraction intervals;
[0019] The energy threshold corresponding to the target attraction interval is determined as the energy threshold corresponding to the current attraction position, wherein each attraction interval in the at least two attraction intervals corresponds to an energy threshold.
[0020] Furthermore, the method also includes:
[0021] If a capacitor switching signal is detected inside the door handle, the closing action of the target latching lock will be stopped.
[0022] Furthermore, the method also includes:
[0023] When the number of times the target latching lock stops latching is greater than a set threshold, the target latching lock is controlled to complete the latching action.
[0024] According to another aspect of the present invention, a suction lock anti-pinch control device is provided, comprising:
[0025] The current engagement position determination module is used to collect the switch signal and motor Hall signal of the target engagement lock, and determine the current engagement position of the target engagement lock based on the switch signal and motor Hall signal;
[0026] An energy increment determination module is used to determine the energy increment of the target latching lock from the start of latching to the current latching position, and to determine the energy threshold corresponding to the current latching position;
[0027] The anti-pinch control module is used to stop the latching action of the target latching lock if the energy increment is greater than the energy threshold corresponding to the current latching position.
[0028] Optionally, the current engagement position determination module is also used for:
[0029] The engaging state of the target latching lock is determined based on the switch signal; wherein, the engaging state includes fully open, fully closed, and in the process of engaging;
[0030] Determine the first Hall signal value and the second Hall signal value of the target latching lock in the fully open and fully closed states, respectively;
[0031] If the target latching lock is in the latching state, the current latching position of the target latching lock is determined based on the motor Hall signal, the first Hall signal value, and the second Hall signal value.
[0032] Optionally, the energy increment determination module is also used for:
[0033] Collect the motor current signal of the target latching lock from the start of latching to the current latching position;
[0034] The energy increment is determined based on the motor current signal.
[0035] Optionally, the energy increment determination module is also used for:
[0036] Obtain at least two engagement intervals by dividing the entire engagement process of the target latching lock from fully open to fully closed;
[0037] Determine the target attraction interval to which the current attraction position belongs among the at least two attraction intervals;
[0038] The energy threshold corresponding to the target attraction interval is determined as the energy threshold corresponding to the current attraction position, wherein each attraction interval in the at least two attraction intervals corresponds to an energy threshold.
[0039] Optionally, the device also includes a second anti-pinch control module, which stops the closing action of the target latching lock if a capacitor switching signal is detected inside the door handle.
[0040] Optionally, the device also includes a false alarm module, which controls the target latching lock to complete the latching action when the number of times the latching action of the target latching lock is stopped exceeds a set threshold number.
[0041] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0042] At least one processor; and
[0043] A memory communicatively connected to the at least one processor; wherein,
[0044] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the anti-pinch control method for the suction lock according to any embodiment of the present invention.
[0045] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions, the computer instructions being configured to cause a processor to execute and implement the anti-pinch control method for the magnetic latch as described in any embodiment of the present invention.
[0046] According to another aspect of the present invention, a computer program product is provided, the computer program product comprising a computer program / instructions, which, when executed by a processor, implement the steps of the anti-pinch control method for the suction lock described in any embodiment of the present invention.
[0047] According to another aspect of the present invention, a vehicle is provided, the vehicle including one or more controllers and a storage device, the storage device being used to store one or more programs, which, when executed by the one or more controllers, cause the one or more controllers to implement the anti-pinch control method for the suction lock as described in any embodiment of the present invention.
[0048] The anti-pinch control method for a suction lock disclosed in this invention first acquires the switch signal and motor Hall signal of the target suction lock, and determines the current suction position of the target suction lock based on the switch signal and motor Hall signal; then, it determines the energy increment of the target suction lock from the start of suction to reaching the current suction position, and determines the energy threshold corresponding to the current suction position; if the energy increment is greater than the energy threshold corresponding to the current suction position, the suction action of the target suction lock is stopped. This anti-pinch control method for a suction lock, by calculating the energy increment during the suction process and using the magnitude of the energy increment as the anti-pinch trigger condition, and determining the corresponding energy threshold based on the real-time suction position of the suction lock, can accurately determine the anti-pinch effect, solving the problem of hand pinching risk during the use of suction locks, and by judging human action through the capacitive signal inside the door handle, it achieves rapid response to user actions.
[0049] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0050] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0051] Figure 1 This is a flowchart of a suction lock anti-pinch control method provided in Embodiment 1 of the present invention;
[0052] Figure 2 This is a flowchart of a suction lock anti-pinch control method provided in Embodiment 2 of the present invention;
[0053] Figure 3 This is a schematic diagram of signal acquisition in the anti-pinch control of a suction lock according to Embodiment 2 of the present invention;
[0054] Figure 4 This is a schematic diagram of the structure of a suction lock anti-pinch control device according to Embodiment 3 of the present invention;
[0055] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the anti-pinch control method for the suction lock in Embodiment 4 of the present invention;
[0056] Figure 6 This is a structural schematic diagram of a vehicle that implements the anti-pinch control method for the suction lock in Embodiment 5 of the present invention. Detailed Implementation
[0057] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0058] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0059] Example 1
[0060] Figure 1 This is a flowchart of a suction lock anti-pinch control method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of anti-pinch control of automotive suction locks. The method can be executed by a suction lock anti-pinch control device, which can be implemented in hardware and / or software, and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0061] S110. Acquire the switch signal and motor Hall signal of the target latching lock, and determine the current latching position of the target latching lock based on the switch signal and motor Hall signal.
[0062] The suction lock is an automatically closing door lock that can be installed on a car door. The target suction lock is the controlled object of this suction lock anti-pinch control method. The switch signal is a signal indicating the open / closed state of the target suction lock, and may include a suction lock pawl signal, a ratchet signal, and a door open signal, etc. The motor Hall signal is the rotor position signal of the motor driving the target suction lock.
[0063] In this embodiment, the switching signal of the target locking mechanism and the Hall signal of the motor can be acquired in real time through a signal acquisition device.
[0064] Preferably, the control device for the target latching lock can acquire the pawl signal, ratchet signal and door opening signal of the target latching lock in real time through a set signal acquisition module, and acquire the Hall signal of the motor of the target latching lock in real time through a Hall acquisition module.
[0065] Furthermore, the current engagement position refers to the position of the target latch during its entire journey from fully open to fully closed. Throughout the entire journey from fully open to fully closed, the switch signal and motor Hall effect signal differ for each engagement position. For example, when the target latch is fully open, the pawl signal, ratchet signal, and door open signal are all triggered; when the target latch is fully closed, only the pawl and ratchet signals are triggered. The magnitude of the motor Hall effect signal varies depending on the position of the target latch between fully open and fully closed. Therefore, the current engagement position of the target latch can be determined based on the switch signal and the motor Hall effect signal.
[0066] S120. Determine the energy increment of the target latching lock from the start of latching to the current latching position, and determine the energy threshold corresponding to the current latching position.
[0067] The closing process of the target latch lock involves an increase in energy. Under normal circumstances, the energy increment during closing should be within a stable range. If there is resistance during closing, the energy increment will jump. Therefore, by tracking the changes in the magnitude of the energy increment during the closing process of the target latch lock, it is possible to determine whether a user's hand is trapped.
[0068] In this embodiment, the energy increment is the accumulated energy increment when the target latching lock reaches the current latching position during the latching process, and the energy threshold is the maximum value of the preset energy increment corresponding to the current latching position. The target latching lock can correspond to different energy thresholds at different latching positions.
[0069] Preferably, to determine the energy increment of the target latching lock from the start of latching to the current latching position, the energy increment can be characterized by acquiring the current signal of the motor driving the target latching lock.
[0070] S130. If the energy increment is greater than the energy threshold corresponding to the current engagement position, then stop the engagement action of the target engagement lock.
[0071] In this embodiment, if the energy increment is greater than the energy threshold corresponding to the current engagement position, it can be determined that a pinching situation may occur. When this situation occurs, anti-pinch processing can be triggered, and the control device of the target engagement lock can send a control signal to the motor of the target engagement lock to stop the engagement action of the target engagement lock.
[0072] Furthermore, if a capacitor switching signal is detected inside the door handle, the closing action of the target latching lock will be stopped.
[0073] In this embodiment, the capacitor switching signal inside the door handle is the capacitor switching signal collected from the door handle of the vehicle door on which the target magnetic lock is installed. When the capacitor switching signal inside the door handle is collected, it can be determined that there may be a situation where the door handle is being pulled. Therefore, if the energy increment is greater than the energy threshold corresponding to the current magnetic position, it can be determined that a pinch situation may occur; if the capacitor switching signal inside the door handle is collected, it can be determined that there may be a situation where the door handle is being pulled. When one of the above two situations occurs, the anti-pinch processing can be triggered, and the control device of the target magnetic lock can send a control signal to the motor of the target magnetic lock to stop the magnetic lock's magnetic action.
[0074] Furthermore, when the number of times the target latching lock stops latching exceeds a set threshold, the target latching lock is controlled to complete the latching action.
[0075] In this embodiment, to avoid misjudgment that could prevent the door from closing properly, logic can be added to the anti-pinch control method of the latching lock to force the target latching lock to close after two consecutive anti-pinch triggers.
[0076] Specifically, a cumulative count variable can be set, with an initial value of 0. During the closing process of the target latching lock, the cumulative count variable is incremented by 1 each time the anti-pinch function is triggered. When the value of the variable is greater than or equal to 2, the target latching lock is controlled to complete the closing action and reach the fully closed state.
[0077] The anti-pinch control method for a suction lock provided in this invention first acquires the switch signal and motor Hall signal of the target suction lock, and determines the current suction position of the target suction lock based on the switch signal and motor Hall signal; then, it determines the energy increment of the target suction lock from the start of suction to reaching the current suction position, and determines the energy threshold corresponding to the current suction position; if the energy increment is greater than the energy threshold corresponding to the current suction position, the suction action of the target suction lock is stopped. This invention discloses an anti-pinch control method for suction locks that calculates the energy increment during the suction process, uses the magnitude of the energy increment as the anti-pinch trigger condition, and determines the corresponding energy threshold based on the real-time suction position of the suction lock. This allows for accurate anti-pinch judgment, solving the problem of hand pinching risk during the use of suction locks, and also uses the capacitive signal inside the door handle to judge human actions, achieving rapid response to user actions.
[0078] Example 2
[0079] Figure 2 This is a flowchart of a suction lock anti-pinch control method provided in Embodiment 2 of the present invention. This embodiment is a refinement of the above embodiment, such as... Figure 2 As shown, the method includes:
[0080] S210. Collect the switch signal of the target latching lock and the Hall signal of the motor, and determine the latching state of the target latching lock based on the switch signal.
[0081] The engagement state includes fully open, fully closed, and engaged. The switching signals can include the pawl signal, ratchet signal, and door open signal of the target engagement lock.
[0082] In this embodiment, the control device for the target latching lock can acquire the pawl signal, ratchet signal, and door opening signal of the target latching lock in real time through a signal acquisition module, and acquire the Hall signal of the target latching lock's motor in real time through a Hall acquisition module. When the target latching lock is in different latching states, the corresponding acquisition of switch signals is different. Based on the acquired switch signals, the current latching state of the target latching lock can be determined.
[0083] Preferably, the switching signals include a latching pawl signal, a ratchet signal, and a door opening signal. When the target latching lock is in the fully open state, the pawl signal, ratchet signal, and door opening signal are all triggered. When the target latching lock is in the fully closed state, the pawl signal and ratchet signal are triggered.
[0084] Furthermore, before acquiring the switch signal and motor Hall signal of the target latching lock, it is also possible to: obtain at least two latching intervals by dividing the overall latching process of the target latching lock from fully open to fully closed.
[0085] In this embodiment, the engagement interval can be pre-calibrated based on the switch signal of the target engagement lock and the Hall signal of the motor. Specifically, during calibration, when the target engagement lock is determined to be in the fully closed state based on the switch signal, one Hall signal value is recorded; when the target engagement lock is determined to be in the fully open state based on the switch signal, another Hall signal value is recorded. The signal value interval between these two signal values represents the Hall signal change during the entire engagement process of the target engagement lock from fully open to fully closed. By dividing this signal value interval, the engagement interval of the target engagement lock can be obtained.
[0086] Optionally, the number of engagement intervals can be set according to requirements. For example, the entire engagement process of the target engagement lock from fully open to fully closed can be divided into five segments, resulting in five engagement intervals.
[0087] S220. Determine the first Hall signal value and the second Hall signal value of the target locking lock in the fully open and fully closed states respectively. If the target locking lock is in the locking state, determine the current locking position of the target locking lock based on the motor Hall signal, the first Hall signal value and the second Hall signal value.
[0088] In this embodiment, the Hall signal of the motor of the target locking lock is collected in real time by the Hall acquisition module. According to the pre-divided locking interval of the target locking lock, the first Hall signal value and the second Hall signal value of the target locking lock in the fully open and fully closed states can be determined. In the locking state of the target locking lock, the current locking position of the target locking lock can be determined according to the motor Hall signal, the first Hall signal value and the second Hall signal value.
[0089] Optionally, the absolute value of the difference between the first Hall signal value and the second Hall signal value can be calculated, and the ratio of the acquired motor Hall signal to this absolute value can be calculated. This ratio can then be used to characterize the current engagement position of the target locking mechanism.
[0090] S230: Collect the motor current signal of the target latch from the start of latching to the current latching position, and determine the energy increment based on the motor current signal.
[0091] Among them, the motor current signal is the current signal of the motor that drives the target locking mechanism.
[0092] In this embodiment, the control device of the target latch can collect the motor current signal of the target latch in real time through the current acquisition module, and calculate the energy increment in real time based on the collected motor current signal.
[0093] Optionally, the energy increment can be obtained by integrating the motor current signal.
[0094] S240. Obtain at least two engagement intervals by dividing the overall engagement process of the target engagement lock from fully open to fully closed, determine the target engagement interval to which the current engagement position belongs in the at least two engagement intervals, and determine the energy threshold corresponding to the target engagement interval as the energy threshold corresponding to the current engagement position.
[0095] Among them, each of the at least two attraction intervals corresponds to an energy threshold.
[0096] In this embodiment, after determining the current engagement position of the target latching lock, the engagement interval to which the current engagement position belongs can be used as the target engagement interval based on the pre-defined engagement intervals. Preferably, when dividing the engagement intervals of the target latching lock, an energy threshold can be set for each interval, with different energy thresholds corresponding to different engagement intervals. Therefore, after determining the target engagement interval corresponding to the current engagement position, the energy threshold corresponding to the target engagement interval can be obtained and set as the energy threshold corresponding to the current engagement position. Thus, the anti-pinch determination of the target latching lock is performed based on the relationship between the energy increment during the process of the target latching lock from the start of engagement to reaching the current engagement position and the corresponding energy threshold.
[0097] S250. If the energy increment is greater than the energy threshold corresponding to the current engagement position, then stop the engagement action of the target engagement lock.
[0098] In this embodiment, if the energy increment is greater than the energy threshold corresponding to the current engagement position, it can be determined that a pinching situation may occur. When this situation occurs, anti-pinch processing can be triggered, and the control device of the target engagement lock can send a control signal to the motor of the target engagement lock to stop the engagement action of the target engagement lock.
[0099] Furthermore, if a capacitor switching signal is detected inside the door handle, the closing action of the target latching lock will be stopped.
[0100] In this embodiment, the capacitor switching signal inside the door handle is the capacitor switching signal collected from the door handle of the vehicle door on which the target magnetic lock is installed. When the capacitor switching signal inside the door handle is collected, it can be determined that there may be a situation where the door handle is being pulled. Therefore, if the energy increment is greater than the energy threshold corresponding to the current magnetic position, it can be determined that a pinch situation may occur; if the capacitor switching signal inside the door handle is collected, it can be determined that there may be a situation where the door handle is being pulled. When one of the above two situations occurs, the anti-pinch processing can be triggered, and the control device of the target magnetic lock can send a control signal to the motor of the target magnetic lock to stop the magnetic lock's magnetic action.
[0101] Figure 3 This is a schematic diagram of signal acquisition in the anti-pinch control of a suction lock according to Embodiment 2 of the present invention. As shown in the figure, the control device of the target suction lock sends a drive signal to the motor of the target suction lock through the motor drive unit, thereby controlling the target suction lock. The control device acquires the switch signals of the target suction lock through the switch signal acquisition module, including the pawl signal, ratchet signal, and door open signal, and acquires the motor current signal and motor Hall signal of the target suction lock through the current signal acquisition module and the Hall signal acquisition module, respectively. At the same time, the control device also acquires the capacitance signal inside the door handle through the capacitance signal acquisition module.
[0102] The anti-pinch control method for a magnetic lock provided in this invention calculates the energy increment during the magnetic closing process and uses the magnitude of the energy increment as the anti-pinch trigger condition. This allows for accurate anti-pinch determination, solving the risk of hand pinching during the use of magnetic locks. Furthermore, it uses the capacitance signal inside the door handle to detect human action, enabling rapid response to user actions. Further, by collecting the switch signal and motor Hall signal of the magnetic lock to determine its current position, the corresponding energy threshold can be determined based on the real-time magnetic closing position, thereby achieving more precise anti-pinch judgment and improving accuracy.
[0103] Example 3
[0104] Figure 4 This is a schematic diagram of the structure of a suction lock anti-pinch control device provided in Embodiment 3 of the present invention, as shown below. Figure 4 As shown, the device includes: a current engagement position determination module 310, an energy increment determination module 320, and an anti-pinch control module 330.
[0105] The current engagement position determination module 310 is used to collect the switch signal and motor Hall signal of the target engagement lock, and determine the current engagement position of the target engagement lock based on the switch signal and motor Hall signal.
[0106] The energy increment determination module 320 is used to determine the energy increment of the target latching lock from the start of latching to the current latching position, and to determine the energy threshold corresponding to the current latching position.
[0107] The anti-pinch control module 330 is used to stop the target latching lock's latching action if the energy increment is greater than the energy threshold corresponding to the current latching position.
[0108] Optionally, the current engagement position determination module 310 is also used for:
[0109] The engaging state of the target locking lock is determined based on the switch signal; wherein the engaging state includes fully open, fully closed, and engaging; the first Hall signal value and the second Hall signal value of the target locking lock are determined respectively in the fully open and fully closed states; if the engaging state of the target locking lock is engaging, the current engaging position of the target locking lock is determined based on the motor Hall signal, the first Hall signal value, and the second Hall signal value.
[0110] Optionally, the energy increment determination module 320 is also used for:
[0111] Collect the motor current signal of the target latch from the start of latching to the current latching position; determine the energy increment based on the motor current signal.
[0112] Optionally, the energy increment determination module 320 is also used for:
[0113] Obtain at least two engagement intervals by dividing the overall engagement process of the target engagement lock from fully open to fully closed; determine the target engagement interval to which the current engagement position belongs in the at least two engagement intervals; determine the energy threshold corresponding to the target engagement interval as the energy threshold corresponding to the current engagement position, wherein each engagement interval in the at least two engagement intervals corresponds to an energy threshold.
[0114] Optionally, the device also includes a second anti-pinch control module 340, which stops the closing action of the target latching lock if a capacitor switching signal is detected inside the door handle.
[0115] Optionally, the device also includes a false alarm module 350, which controls the target locking lock to complete the locking action when the number of times the locking action of the target locking lock is stopped exceeds a set threshold number.
[0116] The anti-pinch control device for the suction lock provided in the embodiments of the present invention can execute the anti-pinch control method for the suction lock provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method.
[0117] Example 4
[0118] Figure 5 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0119] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0120] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0121] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the latching lock anti-pinch control method.
[0122] In some embodiments, the latching anti-pinch control method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the latching anti-pinch control described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the latching anti-pinch control method by any other suitable means (e.g., by means of firmware).
[0123] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0124] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0125] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0126] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0127] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0128] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0129] Example 5
[0130] Figure 6 A schematic diagram of the structure of a vehicle that can be used to implement embodiments of the present invention is shown, such as... Figure 6 As shown, the vehicle includes a controller 41, a storage device 42, an input device 43, and an output device 44; the number of controllers 41 in the vehicle can be one or more. Figure 6 Taking a controller 41 as an example; the controller 41, storage device 42, input device 43, and output device 44 in the vehicle can be connected via a bus or other means. Figure 6 Taking the example of a connection between China and Israel via a bus.
[0131] Storage device 42, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the anti-pinch control method of the latching lock in this embodiment of the invention (e.g., current latching position determination module 310, energy increment determination module 320, and anti-pinch control module 330). Controller 41 executes various functional applications and data processing of the vehicle by running the software programs, instructions, and modules stored in storage device 42, thereby realizing the aforementioned anti-pinch control method of the latching lock.
[0132] Storage device 42 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a given function; the data storage area may store data created based on terminal usage. Furthermore, storage device 42 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory, or other non-volatile solid-state storage device. In some instances, storage device 42 may further include memory remotely configured relative to controller 41, which can be connected to the vehicle via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0133] Input device 43 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the vehicle. Output device 44 may include display devices such as a display screen.
[0134] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0135] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for preventing pinching with a magnetic lock, characterized in that, include: The switch signal of the target latching lock and the Hall signal of the motor are collected, and the current latching position of the target latching lock is determined based on the switch signal and the Hall signal of the motor. Determine the energy increment of the target latching lock from the start of latching to the current latching position, and determine the energy threshold corresponding to the current latching position; If the energy increment is greater than the energy threshold corresponding to the current engagement position, then the engagement action of the target engagement lock is stopped.
2. The method according to claim 1, characterized in that, Determining the current engagement position of the target latching lock based on the switch signal and the Hall signal includes: The engaging state of the target latching lock is determined based on the switch signal; wherein, the engaging state includes fully open, fully closed, and in the process of engaging; Determine the first Hall signal value and the second Hall signal value of the target latching lock in the fully open and fully closed states, respectively; If the target latching lock is in the latching state, the current latching position of the target latching lock is determined based on the motor Hall signal, the first Hall signal value, and the second Hall signal value.
3. The method according to claim 1, characterized in that, Determining the energy increment of the target latching lock from the start of latching to reaching the current latching position includes: Collect the motor current signal of the target latching lock from the start of latching to the current latching position; The energy increment is determined based on the motor current signal.
4. The method according to claim 1, characterized in that, Determining the energy threshold corresponding to the current engagement position includes: Obtain at least two engagement intervals by dividing the entire engagement process of the target latching lock from fully open to fully closed; Determine the target attraction interval to which the current attraction position belongs among the at least two attraction intervals; The energy threshold corresponding to the target attraction interval is determined as the energy threshold corresponding to the current attraction position, wherein each attraction interval in the at least two attraction intervals corresponds to an energy threshold.
5. The method according to claim 1, characterized in that, The method further includes: If a capacitor switching signal is detected inside the door handle, the closing action of the target latching lock will be stopped.
6. The method according to claim 1, characterized in that, The method further includes: When the number of times the target latching lock stops latching is greater than a set threshold, the target latching lock is controlled to complete the latching action.
7. A suction lock anti-pinch control device, characterized in that, include: The current engagement position determination module is used to collect the switch signal and motor Hall signal of the target engagement lock, and determine the current engagement position of the target engagement lock based on the switch signal and motor Hall signal; An energy increment determination module is used to determine the energy increment of the target latching lock from the start of latching to the current latching position, and to determine the energy threshold corresponding to the current latching position; The anti-pinch control module is used to stop the latching action of the target latching lock if the energy increment is greater than the energy threshold corresponding to the current latching position.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the anti-pinch control method for the suction lock as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the anti-pinch control method for the magnetic locking mechanism as described in any one of claims 1-6.
10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the anti-pinch control method for the magnetic lock as described in any one of claims 1-6.
11. A vehicle, characterized in that, The vehicles include: One or more controllers; Storage device for storing one or more programs; When the one or more programs are executed by the one or more controllers, the one or more controllers implement the anti-pinch control method for the suction lock as described in any one of claims 1-6.