Control method, device, medium and computer device of anti-pinch electric window

By detecting the stall and magnetic flux signals of the rocker arm motor, a reversal command is generated, which solves the problem of electric windows pinching users and achieves safe and convenient operation in various environments.

CN116856820BActive Publication Date: 2026-05-15SHENZHEN HOPO WINDOW CONTROL TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN HOPO WINDOW CONTROL TECH CO LTD
Filing Date
2023-08-03
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Existing electric windows cannot effectively prevent safety risks when hands or foreign objects are caught in them, and may cause injury to users. Existing improvement measures cannot fundamentally solve the problem.

Method used

By detecting the stall of the rocker arm motor and the magnetic flux signal of the window frame magnetic chuck, a reversal command is generated, causing the electric window to move in the opposite direction within a preset time to release the trapped object. The closing force of the window is adjusted according to the number of stalls and the power to avoid safety hazards caused by continuous attempts to close.

Benefits of technology

It effectively prevents electric windows from pinching users, improves the safety and ease of use of electric windows, and ensures normal operation in various environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116856820B_ABST
    Figure CN116856820B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a control method of an anti-pinch electric window. First, when the system receives a window closing instruction, the rocker motor starts to drive the window to close. The system continuously monitors the state of the motor. If the rocker motor is locked, the system detects whether a magnetic flux signal generated by a magnetic attraction element on the window frame is received. If the signal is not received, it means that the window is not completely closed, and it may be because an object is clamped in the window. At this time, the system generates and executes a reverse instruction to make the window move reversely for a period of time, so as to release the clamped object. If the system cannot detect the magnetic flux signal, it means that the window is not completely closed, and it may be because an object is clamped. At this time, the system immediately generates and executes a reverse instruction to make the electric window move reversely for a period of time, so as to release the clamped object and protect the safety of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electric window technology, and in particular to a control method, device, medium, and computer equipment for an anti-pinch electric window. Background Technology

[0002] Electric windows are increasingly used in modern buildings, especially in high-rise buildings and large commercial facilities. They have won widespread praise for their convenient operation and excellent environmental adaptability. However, electric windows may pose some safety hazards during operation, particularly when the windows are opened and closed rapidly using high-powered motors.

[0003] Electric windows provide excellent ventilation and lighting. However, some windows are large and require high-powered motors to ensure rapid opening and closing. In such cases, if someone's hand or other foreign object accidentally enters the window's movement path, it could be trapped and potentially cause serious injury.

[0004] To avoid this safety risk, existing motorized window systems have undergone some design improvements: once the window detects a foreign object or a hand being trapped during operation, the motor inside the window immediately stops. However, this design does not fundamentally solve the problem, because when the motorized window stops after detecting resistance, the trapped hand or foreign object remains trapped. In this situation, professional intervention may be required, such as disassembling or breaking the window to release the trapped part, which undoubtedly affects the normal use of the motorized window and the user experience. Secondly, prolonged trapping of the hand can lead to poor blood circulation, thus affecting the health of the injured person.

[0005] Therefore, there is an urgent need for a control method, device, medium, and computer equipment for anti-pinch electric windows to solve the problem of users being pinched during use. Summary of the Invention

[0006] Based on this, it is necessary to propose a control method, device, medium, and computer equipment for anti-pinch electric windows to address the above problems and solve the problem of users being pinched by electric windows during use.

[0007] A method for controlling an anti-pinch electric window, the method comprising:

[0008] S1. Obtain the first closed window command;

[0009] S2. Execute the first window closing instruction;

[0010] S3. Detect whether the rocker arm motor stalls while executing the first window closing command;

[0011] If a stall occurs, it is detected whether a magnetic flux signal generated by the magnetic attraction on the window frame is received; if no magnetic flux signal is received, a first reverse command is generated and executed, causing the rocker arm motor to reverse within a preset time T.

[0012] According to one aspect of the invention, step S3 further includes:

[0013] S4. If no magnetic flux signal is received, obtain the number of stall times N1 of the rocker arm motor during the execution of the first window closing command;

[0014] S5. Compare the number of stalling attempts N1 with the threshold number N0;

[0015] If N1 < N0, then a first reverse instruction is generated and executed to cause the rocker arm motor to reverse within a preset time T.

[0016] According to one aspect of the invention, the method further includes:

[0017] S6. After the rocker arm motor reverses within a preset time T, it returns to step S2.

[0018] According to one aspect of the invention, step S5 further includes:

[0019] If N1≥N0, a stop motion command is generated, which is a command to stop the rocker arm motor from rotating.

[0020] According to one aspect of the invention, step S3 further includes:

[0021] If a magnetic flux signal is received;

[0022] Then a window sash locking command is generated, and the locking point motor executes the window sash locking command. The window sash locking command is a signal that controls the locking point motor to lock the window sash to the lock position on the window frame.

[0023] According to one aspect of the present invention, the first reversal command is a command to control the rocker arm motor to reverse within a preset time T.

[0024] According to one aspect of the present invention, the step of the first reversal command being a command to control the rocker arm motor to reverse within a preset time T further includes:

[0025] Parse the first window closing instruction to generate the rocker motor operating power A1 in the first window closing instruction;

[0026] The adjusted power value A2 is calculated based on the working power A1 and the number of stalls N1;

[0027] Based on the adjusted power value A2 and the first window closing instruction, a modified first window closing instruction is generated and executed.

[0028] A control device for an anti-pinch electric window, the device comprising:

[0029] The instruction acquisition module is used to acquire the first window closing instruction;

[0030] The execution module is used to execute the first window closing instruction or the first inversion instruction;

[0031] The detection module is used to detect stall signals or magnetic flux signals.

[0032] The instruction generation module is used to generate the first inversion instruction;

[0033] The device performs the following steps:

[0034] Get the first closed window command;

[0035] Execute the first window closing instruction;

[0036] Detect whether the rocker arm motor stalls during the execution of the first window closing command;

[0037] If a stall occurs, it is detected whether a magnetic flux signal generated by the magnetic attraction on the window frame is received; if no magnetic flux signal is received, a first reverse command is generated and executed, causing the rocker arm motor to reverse within a preset time T.

[0038] A computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the steps of the method as described in any of the preceding claims.

[0039] A computer device includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of any of the methods described above.

[0040] The implementation of this invention has the following beneficial effects:

[0041] This invention proposes a control method for an anti-pinch electric window. First, when the system receives a window closing command, the rocker arm motor begins to drive the window to close. The system continuously monitors the motor's status. If the rocker arm motor stalls, the system checks whether it receives a magnetic flux signal generated by the magnetic attraction on the window frame. If this signal is not received, it indicates that the window is not completely closed, possibly because an object is trapped inside. In this case, the system generates and executes a reverse command, causing the window to move in the opposite direction for a period of time to release the trapped object.

[0042] If the system cannot detect a magnetic flux signal, it indicates that the window is not fully closed, possibly due to an object being trapped. In this case, the system will immediately generate and execute a reverse command, causing the electric window to move in the opposite direction for a period of time, thereby releasing the trapped object and protecting the user's safety. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention 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 some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0044] in:

[0045] Figure 1 This is a flowchart of a control method for an anti-pinch electric window in one embodiment;

[0046] Figure 2 A flowchart of a control method for an anti-pinch electric window in another embodiment;

[0047] Figure 3 Here is a flowchart of a control method for an anti-pinch electric window in another embodiment;

[0048] Figure 4 This is a structural block diagram of the control device for an anti-pinch electric window in one embodiment;

[0049] Figure 5 This is a structural block diagram of a computer device in one embodiment.

[0050] 100. Control device for anti-pinch electric window; 110. Instruction acquisition module; 120. Execution module; 130. Detection module; 140. Instruction generation module. Detailed Implementation

[0051] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. 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 are within the scope of protection of the present invention.

[0052] A method for controlling an anti-pinch electric window, the method comprising:

[0053] S1. Obtain the first closed window command;

[0054] S2. Execute the first window closing instruction;

[0055] S3. Detect whether the rocker arm motor stalls while executing the first window closing command;

[0056] S301. If a stall occurs, check whether a magnetic flux signal generated by the magnetic attraction on the window frame is received.

[0057] S302. If no magnetic flux signal is received, a first reverse command is generated and executed to cause the rocker arm motor to reverse within a preset time T.

[0058] Example 1:

[0059] Please refer to Figure 1 In this embodiment, a first window closing command is obtained; the first window closing command is executed; it is detected whether the rocker arm motor stalls during the execution of the first window closing command; if stalling occurs, it is detected whether a magnetic flux signal generated by the magnetic suction device on the window frame is received; if no magnetic flux signal is received, a first reversal command is generated and executed, causing the rocker arm motor to reverse within a preset time T.

[0060] First, when the system receives a window-closing command, the rocker arm motor begins to drive the window to close. The system continuously monitors the motor's status. If the rocker arm motor stalls, the system checks for a magnetic flux signal generated by the magnetic catch on the window frame. If this signal is not received, it indicates that the window is not fully closed, possibly because an object is trapped inside. In this case, the system generates and executes a reverse command, causing the window to move in the opposite direction for a period of time to release the trapped object.

[0061] If the system cannot detect a magnetic flux signal, it indicates that the window is not fully closed, possibly due to an object being trapped. In this case, the system will immediately generate and execute a reverse command, causing the electric window to move in the opposite direction for a period of time, thereby releasing the trapped object and protecting the user's safety.

[0062] It should be noted that S1: Receive the first window closing command. When the user or remote control sends a window closing command, the system will immediately receive and process the command.

[0063] S2: Execute the first window closing command. This initiates the closing action of the electric window. The rocker arm motor drives the window to close.

[0064] S3: Detect whether the rocker arm motor stalls during the execution of the first window closing command. If the motor cannot operate normally due to a hand or other object being trapped in the window during the window closing process, the system will immediately detect the stall of the rocker arm motor.

[0065] If a stall occurs, the system checks whether a magnetic flux signal is received from the magnetic attraction on the window frame. If the rocker arm motor stalls, the system further checks whether a magnetic flux signal is received from the magnetic attraction on the window frame. This signal can provide additional information about the window's position and status, i.e., whether the window sash has moved to the closed position.

[0066] If no magnetic flux signal is received, a first reverse command is generated and executed, causing the rocker arm motor to reverse within a preset time T. If the system cannot detect a magnetic flux signal, it indicates that the window is not fully closed, possibly due to an object being trapped. In this case, the system will immediately generate and execute a reverse command, causing the electric window to move in the opposite direction for a period of time, thereby releasing the trapped object and protecting the user's safety.

[0067] According to one aspect of the invention, step S3 further includes:

[0068] S4. If no magnetic flux signal is received, obtain the number of stall times N1 of the rocker arm motor during the execution of the first window closing command;

[0069] S5. Compare the number of stalling attempts N1 with the threshold number N0;

[0070] If N1 < N0, then a first reverse instruction is generated and executed to cause the rocker arm motor to reverse within a preset time T.

[0071] According to one aspect of the invention, the method further includes:

[0072] S6. After the rocker arm motor reverses within a preset time T, it returns to step S2.

[0073] According to one aspect of the invention, step S5 further includes:

[0074] S501. If N1≥N0, then a stop motion command is generated, which is a command to stop the rocker arm motor from rotating.

[0075] S1. Obtain the first closed window command;

[0076] S2. Execute the first window closing instruction;

[0077] S3. Detect whether the rocker arm motor stalls while executing the first window closing command;

[0078] If a stall occurs, it is detected whether a magnetic flux signal generated by the magnetic attraction on the window frame is received; if no magnetic flux signal is received, a first reverse command is generated and executed, causing the rocker arm motor to reverse within a preset time T. After the rocker arm motor reverses within the preset time T, it returns to step S2.

[0079] S4. If no magnetic flux signal is received, obtain the number of stall times N1 of the rocker arm motor during the execution of the first window closing command;

[0080] S5. Compare the number of stalling attempts N1 with the threshold number N0;

[0081] If N1 < N0, then a first reverse instruction is generated and executed to cause the rocker arm motor to reverse within a preset time T.

[0082] Example 2:

[0083] Please refer to Figures 1-3 In this embodiment, the system first obtains the first window-closing command from the user, that is, the command from the user to close the window.

[0084] After receiving the instruction to close the window, the system will begin to execute the window closing action according to the instruction. At this time, the system will control the rocker arm motor to execute the first window closing instruction.

[0085] During the window closing process, the system continuously monitors whether the rocker arm motor stalls, indicating whether the window encounters any obstruction during closing.

[0086] If the system detects that the rocker arm motor is stalled and does not receive a magnetic flux signal from the magnetic clasp on the window frame (i.e., the edge of the window is not fully in contact with the window frame), the system will generate a first reverse command, causing the rocker arm motor to start rotating in the opposite direction, thus beginning to open the window. This is to prevent safety hazards caused by obstructions when the window is closing, such as pinching the user's fingers.

[0087] After the rocker arm motor completes its reverse rotation within a preset time T, the system will return to step S2, which executes the window closing command, and attempt to close the window again.

[0088] If no magnetic flux signal is received, the system will also obtain the number of stalls N1 of the rocker arm motor and compare it with a preset threshold N0 (steps S4 and S5). If the number of stalls is less than the threshold, the system will generate a first reverse command again to reverse the rocker arm motor within a preset time T; if the number of stalls is greater than or equal to the threshold, it indicates that there is a continuous obstruction during the window closing process, and the system will generate a stop command to stop the rocker arm motor from rotating, thus avoiding safety hazards caused by continuous attempts to close the window.

[0089] After the rocker arm motor completes its reverse rotation within a preset time T, the system will return to the step of executing the window closing command (step S2) and attempt to close the window again.

[0090] On the other hand, if no magnetic flux signal is received, the system will also obtain the number of stalls N1 of the rocker arm motor and compare it with a preset threshold N0 (steps S4 and S5). If the number of stalls is less than the threshold, the system will generate a first reverse command again to reverse the rocker arm motor within a preset time T; if the number of stalls is greater than or equal to the threshold, it indicates that there is a continuous obstruction during the window closing process, and the system will generate a stop command to stop the rocker arm motor from rotating, thus avoiding safety hazards caused by continuous attempts to close the window.

[0091] According to one aspect of the invention, step S3 further includes:

[0092] S301. If a magnetic flux signal is received;

[0093] Then a window sash locking command is generated, and the locking point motor executes the window sash locking command. The window sash locking command is a signal that controls the locking point motor to lock the window sash to the lock position on the window frame.

[0094] According to one aspect of the present invention, the first reversal command is a command to control the rocker arm motor to reverse within a preset time T.

[0095] According to one aspect of the present invention, the step of the first reversal command being a command to control the rocker arm motor to reverse within a preset time T further includes:

[0096] S701. Parse the first window closing instruction to generate the rocker motor working power A1 in the first window closing instruction;

[0097] S702. Calculate the adjusted power value A2 based on the working power A1 and the number of stall times N1;

[0098] S703. Generate a modified first window closing instruction based on the adjusted power value A2 and the first window closing instruction, and execute the modified first window closing instruction.

[0099] Example 3:

[0100] Please refer to Figures 1-3 In this embodiment, if the system detects a stall in the rocker arm motor when executing the first window-closing command, it will further detect whether it receives a magnetic flux signal generated by the magnetic attraction on the window frame. If a magnetic flux signal is received, it indicates that the window is completely closed. At this time, a window sash locking command will be generated, which will be executed by the locking point motor to lock the window sash to the lock position on the window frame. This ensures that the window can be locked after it is completely closed, preventing accidental opening due to external forces (such as wind), further improving the safety and stability of the window.

[0101] Additionally, the first reverse command is a command that controls the rocker arm motor to reverse within a preset time T. When the window encounters an obstruction during closing, causing the rocker arm motor to stall, the system generates this reverse command to open the window and prevent the user from being pinched. Its function is to quickly take action when a potential safety risk is detected, changing the window from a closed state to an open state, thus reducing the risk of user injury.

[0102] The system adjusts the first window closing command based on the rocker arm motor's operating power A1 and the number of stalls N1. First, the system analyzes the rocker arm motor's operating power A1 in the first window closing command, then calculates an adjusted power value A2 based on A1 and the number of stalls N1. Next, the system generates a modified first window closing command based on this adjusted power value A2 and the first window closing command, and then executes this modified command. This dynamically adjusts the window's closing force based on the system's real-time operating conditions, preventing safety issues caused by excessive force and avoiding situations where the window cannot be closed due to insufficient force. Through this dynamic adjustment, the window can operate in the best possible condition while ensuring safety.

[0103] Specifically, the formula for calculating the adjusted power value A2 is: A2 = A1 * (1 + 0.5 * N1). In windy weather, when using the first window-closing command to drive the window to close, the wind force may cause insufficient output power from the rocker arm motor. In this case, adjusting the output power of the rocker arm motor is used to close the window to prevent insufficient power from preventing it from closing.

[0104] N1 means that if the window is blocked during its attempt to close and cannot continue, the rocker arm motor will stall, and N1 will increment by 1. The more times the window stalls during closing (i.e., the greater the external force hindering the window from closing, such as strong winds), the greater the motor's output power will be. This ensures that even in windy weather, the electric window has sufficient power to close.

[0105] When the first window-closing command is executed and the system attempts to close the window, it monitors whether the rocker arm motor has stalled. If, due to wind, the rocker arm motor's output power is insufficient to close the window, causing it to stall, the stall count N1 will increase. Next, the system calculates a new motor output power A2 using the formula A2 = A1 * (1 + 0.5 * N1), and then uses the power of A2 to drive the rocker arm motor to attempt to close the window again. If it still fails to close, N1 is increased, and A2 is recalculated, repeating this process until the window is successfully closed.

[0106] This ensures that the electric windows can still close normally even in the event of strong winds, increasing the convenience of using electric windows. On the other hand, by dynamically adjusting the motor's output power, it avoids potential hazards to the electric window system or the user caused by excessive output power, thus improving the safety of using electric windows.

[0107] It should be noted that N0 is 4, and A2 is less than the maximum power of the rocker arm motor.

[0108] The preset time T is a manually set time, such as the time to close the window.

[0109] A control device 100 for an anti-pinch electric window, the device comprising:

[0110] Instruction acquisition module 110 is used to acquire the first window closing instruction;

[0111] Execution module 120 is used to execute the first window closing instruction or the first inversion instruction;

[0112] Detection module 130 is used to detect stall signal or magnetic flux signal.

[0113] Instruction generation module 140 is used to generate the first inversion instruction;

[0114] The device 100 performs the following steps:

[0115] Get the first closed window command;

[0116] Execute the first window closing instruction;

[0117] Detect whether the rocker arm motor stalls while executing the first window closing command;

[0118] If a stall occurs, it checks whether a magnetic flux signal generated by the magnetic attraction on the window frame is received; if no magnetic flux signal is received, a first reverse command is generated and executed, causing the rocker arm motor to reverse within a preset time T.

[0119] Example 4:

[0120] Please refer to Figure 4 In this embodiment, firstly, the instruction acquisition module 110 acquires a first window-closing instruction, and then the execution module 120 executes this instruction, causing the rocker arm motor to drive the window to begin closing. During this process, the detection module 130 monitors in real time whether the rocker arm motor stalls and whether it receives a magnetic flux signal. If a stall is detected and no magnetic flux signal is received, the instruction generation module 140 generates a first reversal instruction, which is then executed by the execution module 120, causing the rocker arm motor to reverse within a preset time T, thereby preventing injury to the user's hand due to the sudden closing of the window.

[0121] With real-time detection and automatic reversal functions, hand injuries caused by improper operation of electric windows can be greatly reduced.

[0122] By monitoring and controlling the rocker arm motor in real time, the normal operation of the window can be ensured under various environments and conditions, improving the convenience and safety of electric windows.

[0123] It should be noted that the instruction acquisition module 110 receives the first window closing instruction issued by the user through manual button or voice control, and then transmits this instruction to the subsequent modules.

[0124] The execution module 120 executes the received first window closing command or first reverse command, causing the rocker arm motor to perform corresponding actions, such as closing or reversing the window.

[0125] The detection module 130 monitors in real time whether the rocker arm motor stalls (i.e., whether the window cannot be closed normally due to obstruction) or whether it receives a magnetic flux signal generated by the magnetic attraction on the window frame (i.e., whether the window is completely closed) during the execution of the first window closing command.

[0126] When the detection module 130 detects that the rocker arm motor is stalled and no magnetic flux signal is received, the instruction generation module 140 will generate a first reverse instruction and transmit this instruction to the execution module 120.

[0127] like Figure 5 As shown, a computer device includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, causes the processor to perform the following steps:

[0128] S1. Obtain the first closed window command;

[0129] S2. Execute the first window closing instruction;

[0130] S3. Detect whether the rocker arm motor stalls while executing the first window closing command;

[0131] If a stall occurs, it checks whether a magnetic flux signal generated by the magnetic attraction on the window frame is received; if no magnetic flux signal is received, a first reverse command is generated and executed, causing the rocker arm motor to reverse within a preset time T.

[0132] In this embodiment, a first window closing command is obtained; the first window closing command is executed; it is detected whether the rocker arm motor stalls during the execution of the first window closing command; if stalling occurs, it is detected whether a magnetic flux signal generated by the magnetic suction device on the window frame is received; if no magnetic flux signal is received, a first reversal command is generated and executed, causing the rocker arm motor to reverse within a preset time T.

[0133] First, when the system receives a window-closing command, the rocker arm motor begins to drive the window to close. The system continuously monitors the motor's status. If the rocker arm motor stalls, the system checks for a magnetic flux signal generated by the magnetic catch on the window frame. If this signal is not received, it indicates that the window is not fully closed, possibly because an object is trapped inside. In this case, the system generates and executes a reverse command, causing the window to move in the opposite direction for a period of time to release the trapped object.

[0134] If the system cannot detect a magnetic flux signal, it indicates that the window is not fully closed, possibly due to an object being trapped. In this case, the system will immediately generate and execute a reverse command, causing the electric window to move in the opposite direction for a period of time, thereby releasing the trapped object and protecting the user's safety.

[0135] Figure 5 An internal structural diagram of a computer device in one embodiment is shown. This computer device can specifically be a terminal or a server. Figure 5 As shown, the computer device includes a processor, memory, and network interface connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement a control method for the anti-pinch power window. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to implement the anti-pinch power window control method. Those skilled in the art will understand that… Figure 5 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 computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0136] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the following steps:

[0137] A computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the following steps:

[0138] S1. Obtain the first closed window command;

[0139] S2. Execute the first window closing instruction;

[0140] S3. Detect whether the rocker arm motor stalls while executing the first window closing command;

[0141] If a stall occurs, it is detected whether a magnetic flux signal generated by the magnetic attraction on the window frame is received; if no magnetic flux signal is received, a first reverse command is generated and executed, causing the rocker arm motor to reverse within a preset time T.

[0142] In this embodiment, a first window closing command is obtained; the first window closing command is executed; it is detected whether the rocker arm motor stalls during the execution of the first window closing command; if stalling occurs, it is detected whether a magnetic flux signal generated by the magnetic suction device on the window frame is received; if no magnetic flux signal is received, a first reversal command is generated and executed, causing the rocker arm motor to reverse within a preset time T.

[0143] First, when the system receives a window-closing command, the rocker arm motor begins to drive the window to close. The system continuously monitors the motor's status. If the rocker arm motor stalls, the system checks for a magnetic flux signal generated by the magnetic catch on the window frame. If this signal is not received, it indicates that the window is not fully closed, possibly because an object is trapped inside. In this case, the system generates and executes a reverse command, causing the window to move in the opposite direction for a period of time to release the trapped object.

[0144] If the system cannot detect a magnetic flux signal, it indicates that the window is not fully closed, possibly due to an object being trapped. In this case, the system will immediately generate and execute a reverse command, causing the electric window to move in the opposite direction for a period of time, thereby releasing the trapped object and protecting the user's safety.

[0145] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.

[0146] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0147] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims. Please enter the specific implementation details.

Claims

1. A control method for an anti-pinch electric window, characterized in that, include: S1. Obtain the first closed window command; S2. Execute the first window closing instruction; S3. Detect whether the rocker arm motor stalls while executing the first window closing command; If a stall occurs, check whether a magnetic flux signal generated by the magnetic attraction on the window frame is received; If no magnetic flux signal is received, a first reverse command is generated and executed to cause the rocker arm motor to reverse within a preset time T. S4. If no magnetic flux signal is received, obtain the number of stall times N1 of the rocker arm motor during the execution of the first window closing command; S5. Compare the number of stalling attempts N1 with the threshold number N0; If N1 < N0, then a first reverse instruction is generated and executed to cause the rocker arm motor to reverse within a preset time T. The first reversal command is a command to control the rocker arm motor to reverse within a preset time T; Parse the first window closing instruction to generate the rocker motor operating power A1 in the first window closing instruction; The adjusted power value A2 is calculated based on the working power A1 and the number of stalls N1; Based on the adjusted power value A2 and the first window closing instruction, a modified first window closing instruction is generated and executed.

2. The control method for anti-pinch electric windows according to claim 1, characterized in that, The method further includes: S6. After the rocker arm motor reverses within a preset time T, it returns to step S2.

3. The control method for anti-pinch electric windows according to claim 1, characterized in that, Step S5 further includes: If N1≥N0, a stop motion command is generated, which is a command to stop the rocker arm motor from rotating.

4. The control method for anti-pinch electric windows according to claim 1, characterized in that, Step S3 further includes: If a magnetic flux signal is received; Then a window sash locking command is generated, and the locking point motor executes the window sash locking command. The window sash locking command is a signal that controls the locking point motor to lock the window sash to the lock position on the window frame.

5. A control device for an anti-pinch electric window, characterized in that, The device includes: The instruction acquisition module is used to acquire the first window closing instruction; The execution module is used to execute the first window closing instruction or the first inversion instruction; The detection module is used to detect stall signals or magnetic flux signals. The instruction generation module is used to generate the first inversion instruction; The device performs the following steps: Get the first closed window command; Execute the first window closing instruction; Detect whether the rocker arm motor stalls during the execution of the first window closing command; If a stall occurs, it is detected whether a magnetic flux signal generated by the magnetic attraction on the window frame is received; if no magnetic flux signal is received, a first reverse command is generated and executed to cause the rocker arm motor to reverse within a preset time T. If no magnetic flux signal is received, obtain the number of stall times N1 of the rocker arm motor during the execution of the first window closing command; Compare the number of stall attempts N1 with the threshold number N0. If N1 < N0, then a first reverse instruction is generated and executed to cause the rocker arm motor to reverse within a preset time T. The first reversal command is a command to control the rocker arm motor to reverse within a preset time T; Parse the first window closing instruction to generate the rocker motor operating power A1 in the first window closing instruction; The adjusted power value A2 is calculated based on the working power A1 and the number of stalls N1; Based on the adjusted power value A2 and the first window closing instruction, a modified first window closing instruction is generated and executed.

6. A computer-readable storage medium, characterized in that, The device stores a computer program that, when executed by a processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 4.

7. A computer device, characterized in that, It includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 4.