Intelligent window control method and system based on protocol communication and current direct drive control
Through the dual-drive mode of protocol communication and current direct drive control, combined with the motor operating current and bus protocol, the power window controller has improved compatibility with different motor types, solving the problem of single drive mode in existing technologies and improving user experience and system integration.
Patent Information
- Application Number
- CN202510827250.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-19
- Publication Date
- 2025-09-16
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing electric window controllers have a single driving mode and are unable to meet the diverse needs of home scenarios, especially the lack of compatibility with different types of motors such as brushed DC motors, servo motors or brushless DC motors.
It adopts a dual-drive mode of protocol communication and current direct drive control. It determines the window status by real-time acquisition of the motor operating current value and combining it with time parameters. It adapts to the RS-485/CAN bus protocol of the servo motor or brushless DC motor for precise control. It integrates a high-efficiency gallium nitride power module and a control box with a main control module.
It achieves improved compatibility with different motor types, enhances the integration of electric window controllers and user experience, and has higher communication capabilities and precise motor drive technology to meet the convenience and safety requirements of modern smart home systems.
Smart Images

Figure CN120652885A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric window controllers, and in particular to an intelligent window control method and system using protocol communication and current direct drive control. Background Art
[0002] With the rapid development of smart home technology, electric windows, as a key home automation component, are gradually evolving from traditional mechanical switches or remote controls to intelligent control. Modern smart home systems strive for convenience, remote control, multi-device linkage, and security, requiring electric window controllers to possess higher levels of integration, more flexible communication capabilities, and more precise motor drive technology. Currently, electric window controllers have a single drive method, and most controllers are only compatible with a single motor type. Electric windows in the furniture market use motors including brushed DC motors, servo motors, or brushless DC motors. Existing electric window controllers with a single drive method are unable to accommodate the diverse needs of home scenarios. Summary of the Invention
[0003] In order to overcome the deficiencies of the prior art, the present invention provides a smart window control method and system with protocol communication and current direct drive control to solve or partially solve the problems in the background technology.
[0004] To achieve the above objectives, the present invention provides the following technical solutions: A smart window control method using protocol communication and current direct drive control, comprising: Different drive modes are selected according to different motor drive requirements, and the drive modes include a first mode and a second mode. If the motor is a brushed DC motor, the first mode is selected; if the motor is a servo motor or a brushless DC motor, the second mode is selected. The first mode includes: real-time acquisition of the motor operating current value, and judging the operating status of the window based on the current value; wherein, when the current value reaches a second threshold and lasts for more than a preset time, it is determined that the window has reached the end of its travel or is in a stalled state and the power supply is cut off, thereby achieving accurate judgment and control of the window status; The second mode includes: marking the stroke and end position positioning, recording the number of motor revolutions, and controlling the motor's motion state through the RS-485 / CAN bus protocol to achieve position control of the window state.
[0005] Furthermore, judging the operating state of the window according to the current value includes: If the current value is greater than the first threshold, the window is marked as being in an accelerating state or in a stalled state; if the current value continues to rise to reach the second threshold and the duration exceeds the preset time, it is determined that the window has reached the end of its travel or is in a stalled state; If the current value is less than the first threshold, it is determined whether it is in the first preset current range; if so, it is determined that the window is in a uniform motion state; if not, it is determined that the window is in a terminal deceleration state.
[0006] Furthermore, when the window is in a uniform motion state, the uniform running time is recorded by a timer, and the real-time opening and closing angle of the window is calculated in combination with the preset total travel time of the window.
[0007] Furthermore, when the window reaches the end of its travel, it is determined whether the window has reached the opening end or the closing end in combination with the forward and reverse rotation directions of the motor.
[0008] Furthermore, the control of the motion state of the motor through the RS-485 / CAN bus protocol includes: The controller sends the window opening and closing angles to the motor via RS-485 / CAN bus protocol; The motor responds to commands and feeds back real-time position data; The controller adjusts the command based on the real-time position data fed back by the motor.
[0009] The present invention also provides a smart window control system with protocol communication and current direct drive control, comprising a control box having a built-in gallium nitride high-efficiency power supply module and a main control module, and being provided with a parallel current direct drive circuit and a protocol communication circuit; The main control module is used to select different drive modes according to different motor drive requirements. The drive modes include a first mode and a second mode. The first mode corresponds to the current direct drive circuit, and the second mode corresponds to the protocol communication circuit. If the motor is a brushed DC motor, the first mode is selected; if the motor is a servo motor or a brushless DC motor, the second mode is selected. The first mode includes: real-time acquisition of the motor operating current value, and judging the operating status of the window based on the current value; wherein, when the current value reaches a second threshold and lasts for more than a preset time, it is determined that the window has reached the end of its travel or is in a stalled state and the power supply is cut off, thereby achieving accurate judgment and control of the window status; The second mode includes: marking the stroke and end position positioning, recording the number of motor revolutions, and controlling the motor's motion state through the RS-485 / CAN bus protocol to achieve position control of the window state.
[0010] Furthermore, judging the operating state of the window according to the current value includes: If the current value is greater than the first threshold, the window is marked as being in an accelerating state or in a stalled state; if the current value continues to rise to reach the second threshold and the duration exceeds the preset time, it is determined that the window has reached the end of its travel or is in a stalled state; If the current value is less than the first threshold, it is determined whether it is in the first preset current range; if so, it is determined that the window is in a uniform motion state; if not, it is determined that the window is in a terminal deceleration state.
[0011] Furthermore, when the window is in a uniform motion state, the uniform running time is recorded by a timer, and the real-time opening and closing angle of the window is calculated in combination with the preset total travel time of the window.
[0012] Furthermore, when the window reaches the end of its travel, it is determined whether the window has reached the opening end or the closing end in combination with the forward and reverse rotation directions of the motor.
[0013] Furthermore, the control of the motion state of the motor through the RS-485 / CAN bus protocol includes: The controller sends the window opening and closing angles to the motor via RS-485 / CAN bus protocol; The motor responds to commands and feeds back real-time position data; The controller adjusts the command based on the real-time position data fed back by the motor.
[0014] Compared with the existing technology, the beneficial effects of the present invention are as follows: the present invention designs an intelligent window control method and system with dual driving modes (current direct drive + protocol communication), and integrates the motor adapter power supply, protocol communication control module and current direct drive control module into a standardized control box to form sensorless status detection, thereby solving the problem that electric window controllers with a single driving mode are unable to be compatible with the diverse needs of home scenes, and significantly improving compatibility and user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic diagram of the current direct drive circuit logic provided by an embodiment of the present invention; Figure 2 A schematic diagram of the protocol communication circuit logic provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0016] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0017] As people continue to pursue a better life, the demand for smart, digital homes continues to grow. Within a home, different people and different living environments require different door and window systems. With the rapid development of smart home technology, electric windows, as a key home automation component, are gradually evolving from traditional mechanical switches or remote controls to intelligent control. Modern smart home systems strive for convenience, remote control, multi-device linkage, and security, requiring electric window controllers to possess higher levels of integration, more flexible communication capabilities, and more precise motor drive technology.
[0018] Currently, electric window controllers have a single driving mode, and most controllers are only compatible with a single motor type. The motors used in electric windows in the furniture market include brushed DC motors, servo motors, or brushless DC motors. The existing electric window controllers with a single driving mode are not compatible with the diverse needs of home scenarios.
[0019] Based on this, the present invention provides a smart window control method with protocol communication and current direct drive control, including: Different drive modes are selected according to different motor drive requirements. The drive modes include a first mode and a second mode. If the motor is a brushed DC motor, the first mode is selected; if the motor is a servo motor or a brushless DC motor, the second mode is selected. The first mode includes: real-time acquisition of the motor's operating current value, and judging the window's operating status based on the current value. When the current value reaches a second threshold and persists for longer than a preset time, the window is determined to have reached the end of its travel or is in a stalled state, and the power supply is cut off, thereby enabling accurate judgment and control of the window's status. Specifically, by collecting real-time motor operating current values (such as the peak current when the window is fully opened or closed) and combining them with time parameters, accurate judgment and control of the window state can be achieved. The correspondence between the motor current characteristics and the window state is determined. The different motor motion states are combined with the power supply operating state to determine whether the window state and control objectives have been achieved. The process of the motor pushing the window state through the transmission gear changes has different current characteristics at different stages. The specific logic is as follows: If the current value is greater than the first threshold, the window is marked as being in an accelerating state or a stalled state; if the current value continues to rise to reach the second threshold and the duration exceeds the preset time, it is determined that the window has reached the end of its travel or is in a stalled state.
[0020] If the current value is less than the first threshold, it is determined whether it is in the first preset current range; if so, it is determined that the window is in a uniform motion state; if not, it is determined that the window is in a terminal deceleration state.
[0021] When the window is in a uniform motion state, the uniform running time is recorded by a timer, and the real-time opening and closing angle of the window is calculated based on the preset total travel time of the window.
[0022] When the window reaches the end of its travel, the direction of the motor's forward and reverse rotation is combined to determine whether the window has reached the opening end or the closing end.
[0023] The second mode includes: marking the stroke and end position positioning, recording the number of motor revolutions, and controlling the motor's motion state through the RS-485 / CAN bus protocol to achieve position control of the window state.
[0024] Specifically, by supporting RS-485 / CAN bus protocols and adapting to servo and brushless motors, precise control is achieved, including adjustment of opening and closing angles. Servo and brushless motors have encoders and other functions that record the number of revolutions. During power-up initialization, travel distance and end-of-line positioning are marked, enabling precise position control.
[0025] An exemplary control method is proposed, in which the controller sends the window opening and closing angle to the motor via the RS-485 / CAN bus protocol; the motor responds to the instruction and feeds back real-time position data; and the controller adjusts the instruction based on the real-time position data fed back by the motor.
[0026] This embodiment designs an intelligent window control method with dual drive modes (direct current drive + protocol communication). By adapting the motor to the power supply, sensorless state detection is formed, which solves the problem that electric window controllers with a single drive mode are not compatible with the diverse needs of home scenarios, and significantly improves compatibility and user experience.
[0027] Based on any of the above-mentioned smart window control methods for protocol communication and current direct drive control, this embodiment also proposes a smart window control system for protocol communication and current direct drive control, including a control box, which is a standardized 86-type switch box, which integrates a gallium nitride high-efficiency power supply module and a main control module, as well as a protocol communication control module and a current direct drive control module. The current direct drive control module is a current direct drive circuit corresponding to the above-mentioned first mode, and the protocol communication control module is a protocol communication circuit corresponding to the above-mentioned second mode. The main control module is used to select different drive modes according to the drive requirements of different motors.
[0028] Among them, the current direct drive circuit logic is as follows Figure 1 As shown, the current direct drive circuit accurately determines and controls the window's status by collecting real-time motor operating current (e.g., peak current when the window is fully opened or closed) and combining it with time parameters. This allows the window's current characteristics to be accurately determined and controlled, determining the correspondence between the motor's current characteristics and the window's status. If the current value exceeds a first threshold (e.g., 3.2A), the window is marked as accelerating or stalled. If the current value continues to rise, reaching a second threshold (e.g., 4A) and persists for longer than a preset time (e.g., 100ms) (this step is not shown in the diagram), the window is determined to have reached the end of its travel or is stalled.
[0029] If the current value is less than the first threshold value (such as 3.2A), it is determined whether it is in the first preset current range (such as 0.9A-1.5A); if so, it is determined that the window is in a uniform motion state; if not, it is determined that the window is in a terminal deceleration state.
[0030] When the window is in a uniform motion state, the uniform running time is recorded by a timer, and the real-time opening and closing angle of the window is calculated based on the preset total travel time of the window.
[0031] When the window reaches the end of its travel, the direction of the motor's forward and reverse rotation is combined to determine whether the window has reached the opening end or the closing end.
[0032] The different motor motion states combined with the power supply working state determine whether the window state and control objectives are achieved. The process of the motor pushing the window state through the transmission gear has different current characteristics at different stages. The current characteristics of the window motion stage of the current direct drive circuit are as follows: Startup phase (0-10 seconds): During the acceleration process at the start, the motor runs in a high torque state and the motor operating current is large. The high current in this stage is the acceleration phase of the startup. The current rises rapidly to the peak value and lasts for about 1-10 seconds to complete the acceleration. During this process, the control power supply must maintain the rated power supply.
[0033] Uniform speed stage (10 seconds - T-10 seconds): Entering the second stage is the uniform speed stage, the motor operating power is reduced, the current index will decrease and drop to a stable value, the uniform speed running time is recorded by the timer, and the real-time opening and closing angle is calculated based on the preset total window travel time (T).
[0034] Stopping Phase (Last 10 Seconds): When the window reaches its travel position, its speed slows until it stops. The motor enters a high-torque state again, and the operating current increases again, reaching 3-5 times the current during the stopping phase compared to the constant-speed operation. If the current value during this period exceeds the set threshold, the power supply is shut off to protect the motor and determine that the window has reached the fully open / closed state.
[0035] The system's direct current drive circuit, which utilizes the aforementioned protocol communication and direct current control, detects the motor's operating current based on the window's motion patterns. Furthermore, the system incorporates infrared and pressure sensors within the window to detect nearby creatures and prevent accidents such as hand pinching.
[0036] When driving the window motor of a brushed DC motor, the present invention can choose a method of directly connecting the motor power supply and the current acquisition chip, and judge the operating status of the window based on the current value. Because the window has a fixed stroke whether it is a handle or a window opening and closing. The two ends of the stroke correspond to the two states of the window. Therefore, we know whether the two motors of the window have run to the two ends of the stroke by judging the current of the motor. At the same time, combined with the direction of movement of the motor, we can judge which side of the stroke the motor has reached. Finally, based on these two judgment conditions, we know the position to which the window is pushed by the motor. Finally, we achieve our goal of controlling the window. The specific process of moving the window throughout the stroke is as described in the invention content, and the corresponding current-position relationship is as follows: When driving the window motor of the servo motor, the control box adopts a protocol communication circuit. The logic of the protocol communication circuit is as follows: Figure 2 As shown, the system includes a master MCU, a protocol switching module, and jumper-configured RS-485 and CAN transceivers. The core master MCU is the STM32F4 series (with a built-in CAN controller and multiple UARTs, supporting floating-point operations). Protocol switching within the protocol switching module can be manually configured or controlled by the chip. Bus transceivers include the ISO3082 (isolated, 5Mbps support) for RS-485 and the ISO1050 (isolated, compliant with ISO11898) for CAN. Signal isolation uses the ADuM3151 (magnetically coupled isolation for PWM and encoder signals).
[0037] The foregoing descriptions of specific exemplary embodiments of the present invention are for the purpose of illustration and description. These descriptions are not intended to limit the invention to the precise form disclosed, and it is obvious that many changes and variations can be made based on the above teachings. Although an embodiment of the present invention has been shown and described, this specific embodiment is only an explanation of the present invention and is not a limitation of the invention. The specific features, structures, materials or characteristics described can be combined in an appropriate manner in any one or more embodiments or examples. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can make modifications, substitutions, variations and various different selections and changes to the embodiments as needed without departing from the principles and purpose of the present invention after reading this specification, but they are protected by patent law as long as they are within the scope of the claims of the present invention.
Claims
1. A smart window control method with protocol communication and current direct drive control, characterized in that: include: Different drive modes are selected according to different motor drive requirements, and the drive modes include a first mode and a second mode. If the motor is a brushed DC motor, the first mode is selected; if the motor is a servo motor or a brushless DC motor, the second mode is selected. The first mode includes: real-time acquisition of the motor operating current value, and judging the operating status of the window based on the current value; wherein, when the current value reaches a second threshold and lasts for more than a preset time, it is determined that the window has reached the end of its travel or is in a stalled state and the power supply is cut off, thereby achieving accurate judgment and control of the window status; The second mode includes: marking the stroke and end position positioning, recording the number of motor revolutions, and controlling the motor's motion state through the RS-485 / CAN bus protocol to achieve position control of the window state.
2. The smart window control method of protocol communication and current direct drive control according to claim 1, characterized in that: Determining the operating state of the window according to the current value includes: If the current value is greater than the first threshold, the window is marked as being in an accelerating state or in a stalled state; if the current value continues to rise to reach the second threshold and the duration exceeds the preset time, it is determined that the window has reached the end of its travel or is in a stalled state; If the current value is less than the first threshold, it is determined whether it is in the first preset current range; if so, it is determined that the window is in a uniform motion state; if not, it is determined that the window is in a terminal deceleration state.
3. The smart window control method of protocol communication and current direct drive control according to claim 2, characterized in that: When the window is in a uniform motion state, the uniform running time is recorded by a timer, and the real-time opening and closing angle of the window is calculated based on the preset total travel time of the window.
4. The smart window control method of protocol communication and current direct drive control according to claim 2, characterized in that: When the window reaches the end of its travel, the direction of the motor's forward and reverse rotation is combined to determine whether the window has reached the opening end or the closing end.
5. The smart window control method of protocol communication and current direct drive control according to claim 1, characterized in that: The control of the motion state of the motor through the RS-485 / CAN bus protocol includes: The controller sends the window opening and closing angles to the motor via RS-485 / CAN bus protocol; The motor responds to commands and feeds back real-time position data; The controller adjusts the command based on the real-time position data fed back by the motor.
6. A smart window control system with protocol communication and current direct drive control, characterized in that: The control box includes a built-in gallium nitride high-efficiency power supply module and a main control module, and is provided with a parallel current direct drive circuit and a protocol communication circuit; The main control module is used to select different drive modes according to different motor drive requirements. The drive modes include a first mode and a second mode. The first mode corresponds to the current direct drive circuit, and the second mode corresponds to the protocol communication circuit. If the motor is a brushed DC motor, the first mode is selected; if the motor is a servo motor or a brushless DC motor, the second mode is selected. The first mode includes: real-time acquisition of the motor operating current value, and judging the operating status of the window based on the current value; wherein, when the current value reaches a second threshold and lasts for more than a preset time, it is determined that the window has reached the end of its travel or is in a stalled state and the power supply is cut off, thereby achieving accurate judgment and control of the window status; The second mode includes: marking the stroke and end position positioning, recording the number of motor revolutions, and controlling the motor's motion state through the RS-485 / CAN bus protocol to achieve position control of the window state.
7. The smart window control system with protocol communication and current direct drive control according to claim 6, characterized in that: Determining the operating state of the window according to the current value includes: If the current value is greater than the first threshold, the window is marked as being in an accelerating state or in a stalled state; if the current value continues to rise to reach the second threshold and the duration exceeds the preset time, it is determined that the window has reached the end of its travel or is in a stalled state; If the current value is less than the first threshold, it is determined whether it is in the first preset current range; if so, it is determined that the window is in a uniform motion state; if not, it is determined that the window is in a terminal deceleration state.
8. The smart window control system with protocol communication and current direct drive control according to claim 7, characterized in that: When the window is in a uniform motion state, the uniform running time is recorded by a timer, and the real-time opening and closing angle of the window is calculated based on the preset total travel time of the window.
9. The smart window control system with protocol communication and current direct drive control according to claim 7, characterized in that: When the window reaches the end of its travel, the direction of the motor's forward and reverse rotation is combined to determine whether the window has reached the opening end or the closing end.
10. The smart window control system with protocol communication and current direct drive control according to claim 6, characterized in that: The control of the motion state of the motor through the RS-485 / CAN bus protocol includes: The controller sends the window opening and closing angles to the motor via RS-485 / CAN bus protocol; The motor responds to commands and feeds back real-time position data; The controller adjusts the command based on the real-time position data fed back by the motor.