A method and system for real-time protection and linkage control of intelligent doors and windows

By detecting motor current and acquiring rotation data in conjunction with environmental parameters, the intelligent door and window system can identify physical obstacles and assess risk levels in real time, taking targeted protective actions. This solves the problems of delayed response and malfunctions in existing technologies, thus improving protective capabilities.

CN121897236BActive Publication Date: 2026-05-26FOSHAN XINHAOXUAN SMART HOME TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
FOSHAN XINHAOXUAN SMART HOME TECH CO LTD
Filing Date
2026-03-24
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing intelligent door and window protection systems have limited functionality and lack coordination between sensors and actuators, resulting in delayed abnormal responses or frequent malfunctions. They are unable to logically correlate initial actuator malfunction information with subsequent abnormal environmental information and make causal inferences, thus failing to accurately assess the severity of the situation and activate higher-level emergency plans.

Method used

By detecting abnormal motor current, the rotation data generated by the window sash in contact with a physical obstacle is obtained. Combined with environmental parameter information, the risk level is determined, and protective actions are executed according to the type of obstacle and the risk level, including disconnecting the power supply or sending an emergency notification.

Benefits of technology

It enables real-time detection and intelligent response of smart doors and windows when they encounter physical obstacles, accurately assesses the risk level and takes targeted protective actions to avoid secondary hazards, thereby improving the safety and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121897236B_ABST
    Figure CN121897236B_ABST
Patent Text Reader

Abstract

This application relates to the field of intelligent door and window technology, and provides a method and system for real-time protection and linkage control of intelligent doors and windows. The method includes: when the window sash is closed, after detecting that the current current of the motor driving the window sash exceeds a first preset current threshold, determining that the window sash has encountered a physical obstacle, and acquiring rotation data generated by the window sash's tentative contact with the physical obstacle; determining the type of obstacle based on the rotation data; acquiring environmental parameter information of the room where the window sash is located; determining the risk level of the room based on the environmental parameter information; and determining and executing protective actions based on the risk level and obstacle type. This method can improve the efficiency of door and window control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent door and window technology, and in particular to an intelligent door and window real-time protection linkage control method and system. Background Technology

[0002] In smart home scenarios driven by the Internet of Things (IoT) and emerging software technologies, window and door protection systems need to cope with complex environmental interference and multi-dimensional security threats. Existing protection devices have limited functionality, and the lack of coordination between sensors and actuators leads to delayed abnormal responses or frequent malfunctions. In modern smart home environments, automated window systems are designed to react to environmental changes, such as automatically closing windows when rainfall is detected. These systems typically rely on basic sensor feedback and motor protection mechanisms. However, unforeseen physical obstacles and situations where users cannot respond in a timely manner may cause windows to fail to close completely, leading to secondary hazards such as rainwater entering the room and potential electrical safety risks. Current systems often only report isolated faults without understanding the event chain or root cause, which limits their ability to take comprehensive protective actions.

[0003] In intelligent protection systems integrating multiple sensors and actuators, when a pre-set protective action (e.g., automatically closing windows upon detecting rainfall) fails due to unforeseen physical obstruction, the system typically reports only an isolated actuator failure. However, this initial failure can trigger a chain reaction, leading to secondary hazards (e.g., rainwater entering the room through gaps in unclosed windows, causing property damage and electrical safety risks). Other environmental sensors within the system (e.g., indoor humidity sensors) may detect abnormal environmental parameters caused by this secondary hazard. The problem with existing technology is that the system lacks the ability to logically correlate and causally infer the initial actuator failure information with subsequent environmental anomalies. The system cannot identify that "actuator failure" is the root cause of "environmental anomalies," thus failing to accurately assess the severity of the situation and unable to activate higher-level emergency plans based on this comprehensive judgment, such as cutting off power to the affected area or sending emergency alarms with clear risk warnings to users. Consequently, the system's protective capabilities are significantly reduced when faced with scenarios where a simple failure evolves into a complex risk. Summary of the Invention

[0004] This application provides a real-time protection linkage control method and system for intelligent doors and windows, aiming to solve the problems of existing intelligent door and window protection systems having single functions, lack of coordination between sensors and actuators, resulting in delayed abnormal response or frequent malfunctions, and the system being unable to logically correlate and causally infer the initial actuator fault information with subsequent abnormal environmental information, thus failing to accurately assess the severity of the situation and unable to activate higher-level emergency plans based on such comprehensive judgment.

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] In a first aspect, a real-time protection linkage control method for intelligent doors and windows is provided, comprising: when the window sash is closed, after detecting that the current current of the motor driving the window sash exceeds a first preset current threshold, determining that the window sash has encountered a physical obstacle, and acquiring rotation data generated by the window sash making tentative contact with the physical obstacle; determining the type of obstacle based on the rotation data; acquiring environmental parameter information of the room where the window sash is located; determining the risk level of the room where the window sash is located based on the environmental parameter information; and determining and executing protective actions based on the risk level and the type of obstacle.

[0007] Through this technical solution, this application can realize real-time detection and intelligent response to physical obstacles encountered by smart doors and windows during the closing process. By comprehensively assessing the type of obstacle and the risk level of the room, targeted protective actions are taken to effectively avoid secondary hazards and improve the safety protection capability of the smart door and window system.

[0008] Furthermore, acquiring rotational data generated by the window sash making contact with the physical obstacle test includes: controlling the motor to drive the window sash to make contact with the physical obstacle test within a preset time period with a preset driving force; the preset driving force is less than the driving force corresponding to the current; and using the displacement distance of the window sash during the period when the motor drives the window sash to make contact with the physical obstacle test with the preset driving force as rotational data.

[0009] Through this technical solution, this application can obtain dynamic data on the contact between the window sash and physical obstacles in a safer and more precise manner, avoiding damage caused by excessive driving force and providing a reliable basis for subsequent obstacle type determination.

[0010] Based on the above, before the control motor drives the window sash to make contact with the physical obstacle with a preset driving force within a preset time period, the method further includes: generating a first control command; the first control command is used to control the motor to drive the window sash to move a first preset distance in the opening direction; and sending the first control command to the motor to make the motor drive the window sash to move a first preset distance in the opening direction.

[0011] This technical solution allows the window sash to be slightly opened before the initial contact, providing a buffer space for the subsequent contact and further reducing the potential risk of damage to the window sash or obstructions.

[0012] Furthermore, the type of physical obstruction is determined based on rotation data, including: acquiring the operating current of the motor during the window sash closing with a preset driving force; and determining the type of physical obstruction based on the operating current and rotation data.

[0013] Through this technical solution, this application can combine the operating current of the motor and the displacement data of the window sash to more accurately determine the nature of the physical obstacle, providing a basis for decision-making for subsequent differentiated protection actions.

[0014] In some preferred embodiments, determining the type of physical obstacle based on the operating current and rotation data includes: determining the rate of change of the operating current; when the rate of change of the operating current is greater than a first rate of change threshold and the displacement distance of the window sash is less than a second preset distance, determining the type of physical obstacle as a rigid obstacle; when the rate of change of the operating current is less than or equal to the first rate of change threshold and the displacement distance of the window sash is greater than the second preset distance, determining the type of physical obstacle as a flexible obstacle.

[0015] Through this technical solution, this application can accurately distinguish between rigid and flexible obstacles by quantifying the rate of change of current and displacement distance, thereby providing more precise coping strategies for different types of obstacles.

[0016] As a technological improvement, the environmental parameter information includes a preset distance between the electrical socket and the window sash. The risk level of the room where the window sash is located is determined based on the environmental parameter information, including: obtaining a first preset correspondence; the first preset correspondence includes a one-to-one correspondence between multiple distance ranges and multiple risk levels; and determining the risk level of the room where the window sash is located based on the first preset correspondence and the preset distance between the electrical socket and the window sash.

[0017] Through this technical solution, this application can incorporate the distance between the electrical socket and the window sash into the risk assessment system, more comprehensively consider potential electrical safety risks, and improve the accuracy of risk level assessment.

[0018] Based on the above, the environmental parameter information also includes humidity value. The risk level of the room where the window is located is determined according to the first preset correspondence and the preset distance between the power socket and the window sash. This includes: taking the risk level corresponding to the distance range of the preset distance between the power socket and the window sash in the first preset correspondence as the initial risk level of the room where the window is located; determining whether the rate of increase of humidity value is greater than the preset humidity rate of increase threshold. If so, the sum of the initial risk level and the preset risk level is taken as the risk level of the room where the window is located; if not, the difference between the initial risk level and the preset risk level is taken as the risk level of the room where the window is located.

[0019] Through this technical solution, this application can dynamically adjust the risk level based on the humidity change trend. In particular, when the humidity rises rapidly, it can promptly raise the risk level and effectively deal with secondary hazards such as rainwater intrusion caused by windows not being closed tightly, making the risk assessment more real-time and accurate.

[0020] To improve the solution, protective actions are determined and implemented based on risk level and obstacle type, including: determining whether the risk level is greater than a preset risk level threshold; if the risk level is less than or equal to the preset risk level threshold, sending a notification to the user's device to remind the user to manually close the window; if the risk level is greater than the preset risk level threshold, determining and implementing protective actions based on the obstacle type.

[0021] Through this technical solution, this application can adopt a graded response strategy based on the level of risk. For low-risk situations, only a warning is issued, while for high-risk situations, a higher level of protection action is initiated, thus achieving reasonable allocation of resources and effective control of risks.

[0022] As a further improvement, protective actions are determined and executed based on the type of obstruction, including: when the obstruction type is rigid, disconnecting the power supply to the room where the window is located and calling the user to remind them to manually close the window; if the risk level is greater than a preset risk level threshold, when the obstruction type is flexible, protective actions are determined and executed, including: executing a first control strategy; the first control strategy includes controlling a motor to drive the window to move a first preset distance in the opening direction, and then controlling a motor to drive the window to close; when the number of executions of the first control strategy exceeds a first-time threshold and the window is not closed, disconnecting the power supply to the room where the window is located and sending a notification message to the user's device.

[0023] Through this technical solution, this application can take differentiated and progressive protective actions for different types of obstacles and high-risk situations. For rigid obstacles, the power is cut off directly and a telephone notification is sent to ensure safety to the greatest extent; for flexible obstacles, the window is first opened and closed multiple times to remove the obstacle. If it still cannot be closed, the power is cut off and a notification is sent, thus balancing safety and user experience and effectively avoiding secondary hazards.

[0024] Secondly, this application also discloses an intelligent door and window real-time protection linkage control system, including a processor, which is used to perform the method described in any of the above-mentioned methods.

[0025] Beneficial Effects: This application discloses a real-time protection linkage control method for intelligent doors and windows. By detecting abnormal motor current during window sash closure, it promptly identifies physical obstacles and further acquires rotational data of the window sash's tentative contact with the obstacle, thereby determining the obstacle type based on the rotational data. Simultaneously, the system acquires environmental parameter information of the room where the window sash is located and determines the room's risk level accordingly. Finally, the system can intelligently determine and execute corresponding protective actions based on the comprehensively assessed risk level and obstacle type. This method effectively solves the problems of delayed response, limited functionality, and inability to correlate actuator malfunctions with environmental anomalies in existing intelligent door and window systems when encountering physical obstacles. Through a comprehensive judgment of obstacle type and environmental risk, this application can take more precise and comprehensive protective measures. For example, when high risk or specific obstacle types are detected, the room power can be disconnected or an emergency notification can be issued, effectively avoiding secondary hazards caused by windows not being fully closed, such as rainwater intrusion and electrical short circuits, significantly improving the safety and reliability of the intelligent door and window system. Attached Figure Description

[0026] Figure 1 A flowchart illustrating a real-time protection linkage control method for intelligent doors and windows provided in this application;

[0027] Figure 2 A flowchart illustrating a real-time protection linkage control method for intelligent doors and windows provided in this application;

[0028] Figure 3 This is a flowchart illustrating a real-time protection linkage control method for intelligent doors and windows provided in this application. Detailed Implementation

[0029] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. The components of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0030] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0031] Traditional smart home window and door protection systems suffer from limitations in handling complex environmental interference and multi-dimensional security threats. These limitations include single-function limitations and a lack of coordination between sensors and actuators, leading to delayed responses or frequent malfunctions. Particularly when automated window systems fail to close completely due to physical obstructions, secondary hazards may arise, such as rainwater entering the room and potential electrical safety risks. Current systems often only report isolated faults, failing to understand the event chain or root cause, which limits their ability to take comprehensive protective actions.

[0032] In this regard, such as Figure 1 As shown, this application proposes a real-time protection linkage control method for intelligent doors and windows, including:

[0033] S101. During the closing of the window sash, after detecting that the current current of the motor driving the window sash exceeds the first preset current threshold, it is determined that the window sash has encountered a physical obstacle, and the rotation data generated by the window sash making contact with the physical obstacle is obtained.

[0034] S102. Determine the type of physical obstruction based on the rotation data.

[0035] S103. Obtain environmental parameter information of the room where the window is located.

[0036] S104. Determine the risk level of the room where the window is located based on environmental parameter information.

[0037] S105. Determine and implement protective actions based on the risk level and the type of obstruction.

[0038] This application, through comprehensive analysis of the physical obstruction of the window sash, the type of obstruction, and room environmental parameters, can accurately assess the risk level and execute coordinated protection actions according to specific circumstances, thereby effectively avoiding or mitigating secondary hazards and enhancing the protective capabilities of the intelligent door and window system.

[0039] To better understand the technical solution of this application, it is necessary to explain some key terms involved. "Window sash" refers to the openable or closable part of a door or window, typically driven by a motor. "Motor" is the actuator that drives the window sash; its operating status (such as current) reflects the window sash's operation. "Physical obstruction" refers to any external obstacle encountered during the window sash's closing process, which may prevent the window sash from closing completely. "Rotation data" is the displacement distance generated by the window sash when it comes into contact with a physical obstruction, used to assess the nature of the obstruction. "Environmental parameter information" refers to various environmental data within the room where the window sash is located, such as humidity, temperature, and distance from electrical outlets; this information helps assess potential risks. "Risk level" is a quantitative assessment of the current safety situation, reflecting the severity of potential hazards. "Protective action" refers to the response measures taken by the system based on the risk level and obstruction type, aimed at eliminating or mitigating the risk.

[0040] The core of the intelligent door and window real-time protection linkage control method of this application lies in the intelligent identification and response to physical obstacles encountered during the closing process of the window sash.

[0041] Specifically, while the window sash is closed, the system continuously monitors the current current of the motor driving the sash. When the current current exceeds a first preset current threshold, it usually indicates that the motor is encountering abnormal resistance while driving the sash, thus confirming that the sash is facing a physical obstruction. For example, a current sensor can be connected in series in the motor drive circuit to monitor the current flowing through the motor in real time and compare it with the preset first current threshold. Once the current value exceeds this threshold, an obstruction detection is triggered.

[0042] After determining that the window sash has encountered a physical obstacle, the system further acquires rotational data resulting from the window sash's initial contact with the obstacle. For example, an encoder or displacement sensor can be installed on the window sash to record the displacement or rotation angle that occurs shortly after contact with the obstacle. This data can reflect the nature of the obstacle, such as whether it is a rigid or flexible obstacle.

[0043] Subsequently, the system determines the type of physical obstacle based on the acquired rotation data. For example, it can determine whether the obstacle is a rigid obstacle (such as a hard object stuck in the window) or a flexible obstacle (such as clothing caught in the window) based on parameters such as the displacement distance of the window sash during the trial contact and the change in the operating current of the motor, using a preset algorithm or model.

[0044] Simultaneously, the system also acquires environmental parameter information of the room where the window is located. For example, environmental data can be collected in real time through various sensors deployed in the room (such as humidity sensors, temperature sensors, smoke sensors, etc.). In addition, some fixed parameters can be preset or manually entered, such as the preset distance between the electrical socket and the window.

[0045] Based on the acquired environmental parameters, the system determines the risk level of the room where the window is located. For example, it can calculate the current room's risk level based on parameters such as humidity, temperature, and distance from electrical outlets, combined with a preset risk assessment model. For instance, high humidity may increase the risk of electrical short circuits, while an electrical outlet too close to the window may increase the risk of electric shock if the window is not closed.

[0046] Finally, the system determines and executes appropriate protective actions based on the identified risk level and obstacle type. For example, if the risk level is high and the obstacle type is rigid, the system may immediately disconnect the room's power supply and issue an emergency alarm; if the risk level is low and the obstacle type is flexible, the system may attempt to open and close the window multiple times to clear the obstacle and send a reminder message to the user.

[0047] The overall working principle of this application lies in achieving accurate judgment and coordinated response to abnormal situations in smart doors and windows through multi-dimensional data collection and intelligent analysis. When a window encounters a physical obstacle during closing, the system does not simply stop the motor or issue a single alarm, but first identifies the obstacle event by detecting the motor current. Subsequently, the system makes a "probing contact" to obtain rotational data between the window and the obstacle, which allows the system to preliminarily determine the nature of the obstacle.

[0048] Simultaneously, the system acquires environmental parameters of the room, such as humidity and distance from electrical outlets. This information is crucial for assessing potential secondary hazards. By comprehensively analyzing the type of obstruction and environmental parameters, the system can calculate the current risk level of the room. Ultimately, based on a comprehensive assessment of the obstruction type and risk level, the system can intelligently select and execute the most appropriate protective action, such as cutting off power, making multiple attempts to remove the obstruction, or sending different levels of alarms to the user. This interconnected control mechanism allows the system to move beyond isolated fault reports to an understanding of the event chain and root causes, thereby implementing more comprehensive and effective protective measures and significantly improving the safety and reliability of intelligent door and window systems.

[0049] This application has significant advantages and innovations compared to existing technologies. Traditional intelligent door and window systems, when encountering physical obstacles, often only provide simple motor overload protection or issue a single fault alarm, lacking in-depth analysis of the nature of the obstacle and comprehensive assessment of environmental risks.

[0050] For example, when a window cannot be closed due to a foreign object, existing systems may simply report "window closure failed" without identifying the type of foreign object (rigid or flexible) or assessing potential secondary hazards (such as rainwater ingress or electrical short-circuit risks). This application introduces technical features such as "acquiring rotational data generated by the window sash making trial contact with a physical obstacle" and "determining the type of obstacle based on the rotational data," enabling the system to perform refined obstacle identification and thus providing a more accurate basis for subsequent decision-making.

[0051] Furthermore, this application innovatively introduces mechanisms for "acquiring environmental parameter information of the room where the window is located" and "determining the risk level of the room based on the environmental parameter information." This mechanism enables the system to associate physical obstruction events with potential environmental risks (such as high humidity or proximity to power outlets), thereby providing a more comprehensive assessment of the overall risk. For example, if the window is not closed and the room humidity rises sharply, the system can identify the risk of rainwater entering and incorporate it into the risk level assessment.

[0052] Ultimately, this application enables the system to "determine and execute protective actions based on risk level and obstacle type," allowing it to take differentiated and more targeted protective measures according to specific circumstances. For example, it can immediately cut off power in high-risk situations, while attempting to remove obstacles or simply sending alerts in low-risk situations. This comprehensive and interconnected control method significantly improves the protective capabilities and response efficiency of intelligent door and window systems in complex environments, effectively preventing secondary hazards, a feat unmatched by existing technologies.

[0053] Specifically, such as Figure 2 As shown, obtaining the rotation data generated by the window sash making contact with a physical obstacle can include the following steps:

[0054] S201. Control the motor to drive the window sash to make contact with the physical obstacle with a preset driving force within a preset time period; the preset driving force is less than the driving force corresponding to the current.

[0055] S202. The displacement distance of the window sash during the period when the motor drives the window sash to make contact with the physical obstacle with a preset driving force is used as rotation data.

[0056] The "preset duration" refers to the length of time set for the exploratory contact, designed to ensure sufficient exploratory contact between the window sash and the physical obstacle to obtain effective rotational data while avoiding potential damage from prolonged contact. The "preset driving force" refers to the driving force applied to the window sash by the motor during the exploratory contact process. This driving force is set to be less than the current driving force of the motor when the window sash encounters a physical obstacle. This setting aims to reduce the impact force during exploratory contact, thereby protecting the window sash, motor, and any potential physical obstacle from damage. "Exploratory contact" refers to the window sash making slight contact with the physical obstacle at a lower driving force to sense its presence and characteristics, rather than forcibly overcoming it. The "displacement distance of the window sash" refers to the actual distance the window sash moves within the preset duration of exploratory contact between the window sash and the physical obstacle driven by the motor with the preset driving force. This displacement distance is used as "rotational data" to reflect the window sash's motion response when encountering an obstacle.

[0057] This application's solution, upon detecting a physical obstacle encountered by the window sash, does not immediately stop or reverse. Instead, it controls a motor to drive the window sash with a small, preset driving force for a preset time to make tentative contact with the obstacle. During this process, by measuring the displacement distance of the window sash, specific motion data of the window sash when encountering an obstacle can be obtained. This method avoids potential equipment damage or safety hazards that might result from applying excessive driving force directly when the type of obstacle is unknown. By setting the preset driving force to be less than the driving force corresponding to the current, the safety of the probing process is ensured, and the obtained displacement distance more accurately reflects the characteristics of the physical obstacle, rather than the result of the motor forcibly pushing it.

[0058] The aforementioned technical solution enables the safe and gentle acquisition of crucial rotational data when a window sash encounters a physical obstruction. This data acquisition method not only protects the intelligent window and door system itself but also avoids harm to physical obstructions (such as people or pets). Furthermore, because the acquired rotational data is generated under controlled, low-drive force, it possesses higher accuracy and reliability, providing a solid data foundation for subsequent determination of the obstruction type and execution of protective actions.

[0059] In some preferred embodiments, when the smart window and door system detects that the motor current exceeds a first preset current threshold during window sash closing, indicating that the window sash may encounter an obstruction, the system does not stop immediately. Instead, it initiates a trial-and-error procedure. For example, the system controls the motor to drive the window sash continuously for about 1 second at a preset driving force of about 20% of its normal closing driving force. During this 1 second, the system monitors and records the displacement distance of the window sash in real time. If the window sash moves only a small distance (e.g., 5 mm) within 1 second, this 5 mm displacement distance is used as rotation data. This method ensures that the impact force on the obstructing object is minimized when acquiring data, thereby effectively avoiding injury or damage to children, pets, or objects, while providing accurate motion feedback data for subsequent intelligent judgment.

[0060] This application further proposes an optimization scheme: before controlling the motor to drive the window sash to close with a preset driving force, the position of the window sash is adjusted in advance to ensure the smoothness and effectiveness of the trial contact process.

[0061] like Figure 3 As shown, in the above-mentioned intelligent door and window real-time protection linkage control method, before controlling the motor to drive the window sash to close with a preset driving force, the method further includes:

[0062] S301, Generate the first control command.

[0063] The first control command is used to control the motor to drive the window sash to move a first preset distance in the opening direction.

[0064] S302. Send the first control command to the motor to drive the window sash to move a first preset distance in the opening direction.

[0065] Specifically, after the window sash detects a physical obstruction, the system generates a first control command before making a trial contact. This first control command instructs the motor to move the window sash a first preset distance in the opening direction. This first preset distance can be understood as a small gap sufficient to create a certain clearance between the window sash and the physical obstruction, providing a buffer space and a more precise starting position for the subsequent trial contact operation. Subsequently, this first control command is sent to the motor driving the window sash, causing the motor to perform the corresponding action, moving the window sash from its current position in the opening direction by the first preset distance. This operation ensures that the window sash does not experience unnecessary friction or impact due to being pressed against the obstruction during the trial contact, thereby improving the accuracy and safety of the trial contact.

[0066] The solution proposed in this application effectively solves the problem of impact and inaccuracy that may occur when the window sash immediately makes a trial contact after encountering a physical obstacle by pre-controlling the window sash to move a first preset distance in the opening direction before the trial contact. Because a buffer gap is actively created between the window sash and the physical obstacle, the subsequent motor driving the window sash to make the trial contact can start from a more controlled and stable point, avoiding instantaneous high stress or irregular movement caused by initial tight contact. This pre-adjusted displacement ensures the smoothness and repeatability of the trial contact process, thereby allowing the acquired rotational data to more accurately reflect the true characteristics of the physical obstacle.

[0067] Through the above technical solution, this application can significantly improve the safety and accuracy of intelligent doors and windows in making trial contact when encountering physical obstacles. Pre-emptive displacement effectively reduces the risk of unnecessary impact between the window sash and the obstacle, protecting both. Furthermore, since the trial contact is conducted within a controlled buffer space, the acquired rotation data will be more accurate and reliable, providing a more solid data foundation for subsequently determining the type of physical obstacle, thereby improving the intelligence level and response efficiency of the entire protective linkage control method.

[0068] In some preferred embodiments, assuming that during the closing process of the smart window sash, its drive motor detects a sudden increase in current exceeding a first preset current threshold, the system determines that the sash has encountered a physical obstacle. In this case, to obtain trial contact data more safely and accurately, the system does not immediately drive the sash to make trial contact with a preset driving force. Instead, it first generates a first control command instructing the motor to drive the sash to move a first preset distance, for example, 5 millimeters, in the opening direction. After the sash completes this 5-millimeter backward movement, the system then controls the motor to drive the sash to attempt to close again with a preset driving force (e.g., much less than the driving force during normal closing), making trial contact with the physical obstacle, and records the displacement distance of the sash during this process as rotation data. This strategy of first retreating and then advancing ensures the smoothness of the trial contact process, avoids damage to the sash or obstacle, and makes the collected rotation data more accurate and effective.

[0069] This application further proposes a more accurate method for determining the type of physical obstruction by combining the operating current of the motor and the rotation data of the window sash.

[0070] According to the above method, the type of physical obstacle is determined based on the rotation data, specifically including:

[0071] The operating current of the motor during the window sash closure driven by a preset driving force is obtained; the type of physical obstruction is determined based on the operating current and the rotation data.

[0072] Specifically, during the process of controlling the motor to drive the window sash to make trial contact with a physical obstacle using a preset driving force, in addition to recording the displacement distance of the window sash as rotation data, it is also necessary to acquire the motor's operating current in real time or periodically. This operating current reflects the energy consumed or load borne by the motor when overcoming the obstacle. For example, this can be monitored in real time by a current sensor inside the motor, and the monitored current value can be used as the operating current. The operating current can be understood as the actual current output by the motor during the trial contact process to maintain the preset driving force. The purpose is that by introducing the operating current parameter, the characteristics of the physical obstacle can be reflected more precisely, because different types of obstacles may cause different trends or values ​​in the motor's operating current when subjected to the same driving force.

[0073] The solution proposed in this application can more accurately determine the type of physical obstacle because, during the trial contact between the window sash and the physical obstacle, the motor's operating current and the window sash's displacement distance (rotation data) are two interrelated key parameters that jointly reflect the obstacle's characteristics. When the window sash encounters a rigid obstacle, the motor will rapidly reach a high operating current within a short time, while the window sash's displacement distance will be very small. Conversely, when the window sash encounters a flexible obstacle, the motor's operating current may not increase rapidly, or the increase may be small, while the window sash's displacement distance may be relatively large because the flexible obstacle has a certain deformation capability. It is precisely because the changing trend and value of the operating current can complement the window sash's displacement distance that the system can more comprehensively and accurately identify the type of physical obstacle, avoiding misjudgments that may occur based on a single parameter.

[0074] The above technical solution, when determining the type of physical obstacle, considers not only the displacement distance after the window sash contacts the obstacle, but also the operating current of the motor during the trial contact. This multi-parameter comprehensive judgment method significantly improves the accuracy and reliability of physical obstacle type identification. Compared to relying solely on rotation data, this solution can more effectively distinguish between rigid and flexible obstacles, thus providing a more accurate basis for subsequent targeted protective actions and further enhancing the protective capabilities and security of the intelligent door and window system.

[0075] This application further proposes determining the type of physical obstruction based on the aforementioned operating current and rotation data, including:

[0076] Determine the rate of change of the operating current; when the rate of change of the operating current is greater than a first rate of change threshold and the displacement distance of the window sash is less than a second preset distance, determine the type of physical obstacle as rigid obstacle; when the rate of change of the operating current is less than or equal to the first rate of change threshold and the displacement distance of the window sash is greater than the second preset distance, determine the type of physical obstacle as flexible obstacle.

[0077] Specifically, the rate of change of the operating current refers to how quickly the operating current changes over time while the motor drives the window sash to make contact with a physical obstacle using a preset driving force. This rate can be understood as the derivative of the current with respect to time, and its magnitude directly reflects the instantaneous change in resistance experienced by the window sash when it comes into contact with the obstacle. The first rate of change threshold is a pre-set critical value for the rate of change of the current, designed to distinguish between obstacles of different natures. When the rate of change of the operating current exceeds this threshold, it usually means that the window sash has encountered sudden and significant resistance, which is often characteristic of rigid obstacles.

[0078] Furthermore, the window sash displacement distance refers to the actual distance the window sash moves while being driven by a preset driving force and making tentative contact with a physical obstacle. This distance reflects the degree to which the obstacle restricts the movement of the window sash. The second preset distance is a pre-set critical value for displacement distance, designed to help determine the rigidity or flexibility of the obstacle. When the window sash displacement distance is less than this threshold, it usually indicates that the obstacle has high rigidity, limiting further movement of the window sash. In practical applications, rigid obstacles specifically refer to objects that generate significant and sudden resistance to the movement of the window sash, such as human limbs or hard toys; flexible obstacles specifically refer to objects that generate less or gradual resistance to the movement of the window sash, such as curtains or clothing.

[0079] This application's solution, by comprehensively analyzing the rate of change of the operating current and the displacement distance of the window sash, can more accurately identify the type of physical obstacle. Because rigid obstacles are not easily deformed, when a window sash encounters a rigid obstacle, the displacement distance of the window sash decreases rapidly, while the motor's operating current rises rapidly due to the sudden increase in load, resulting in a significantly increased rate of change of the operating current. Conversely, flexible obstacles have a certain degree of deformation capability. When a window sash encounters a flexible obstacle, it can still move a certain distance after contact, with a relatively large displacement distance, and the motor's operating current rises relatively slowly, with a smaller rate of change. It is precisely because of the setting of a first rate of change threshold and a second preset distance that a clear judgment standard can be established, thereby effectively distinguishing between rigid and flexible obstacles.

[0080] The above technical solution enables precise identification of physical obstruction types. Compared to general judgments based solely on operating current and rotation data, this solution introduces threshold judgments based on the rate of change of operating current and window sash displacement distance, allowing the system to accurately distinguish between rigid and flexible obstructions. This precise classification facilitates more targeted protective actions based on different obstruction types. For example, rigid obstructions may trigger emergency power cut-off and alarms, while flexible obstructions may be addressed with tentative reverse movement. This improves the intelligence and security of the smart door and window protection system, effectively avoiding misjudgments and improper handling, and better protecting user and property safety.

[0081] Specifically, in the above-mentioned intelligent door and window real-time protection linkage control method, in order to more accurately assess the risk level of the room where the window is located, this application further defines the specific content of the environmental parameter information and the method of determining the risk level.

[0082] The environmental parameter information includes a preset distance between the electrical outlet and the window sash. Based on the environmental parameter information, the risk level of the room where the window sash is located is determined, including:

[0083] Obtain a first preset correspondence; the first preset correspondence includes a one-to-one correspondence between multiple distance ranges and multiple risk levels; determine the risk level of the room where the window is located based on the first preset correspondence and the preset distance between the electrical socket and the window sash.

[0084] The environmental parameter information is specifically defined as the preset distance between electrical outlets and window sashes. This preset distance refers to the shortest distance between any electrical outlet in the room and a window sash, or the distance between the nearest electrical outlet and the window sash. As electrical outlets are potential sources of electrical fire hazards, the distance between them and window sashes is a crucial indicator for assessing the safety risk of the room where the window sash is located.

[0085] Furthermore, in order to determine the risk level based on the preset distance, a first preset correspondence needs to be obtained. This first preset correspondence is pre-stored in the system, establishing a one-to-one correspondence between multiple distance ranges and multiple risk levels. For example, the closer an electrical outlet is to a window sash, the higher the risk level it may be associated with; conversely, the farther away it is, the lower the risk level. These distance ranges and risk levels can be set according to actual application scenarios, safety standards, or expert experience.

[0086] Therefore, after obtaining the preset distance between the electrical socket and the window sash, the system will search and match it in the established first preset correspondence based on the preset distance to determine the risk level of the room where the window sash is located. For example, if the preset distance falls within the range of "0-0.5 meters", it may correspond to the "high risk" level; if it falls within the range of "0.5-2 meters", it may correspond to the "medium risk" level; and if it falls within the range of "more than 2 meters", it may correspond to the "low risk" level.

[0087] This application's solution concretizes environmental parameter information as a preset distance between the electrical outlet and the window sash, and introduces a first preset correspondence, making the risk level determination process more specific and quantifiable. When the window sash encounters a physical obstruction, if the obstruction is close to the electrical outlet, there may be a risk of electrical failure or fire due to contact between the obstruction and the outlet. Through the correspondence between preset distances and risk levels, the system can quickly and accurately assess the potential degree of danger based on objective distance data. This mechanism makes risk assessment no longer dependent on vague judgments, but based on clear physical distance parameters, thus providing a reliable basis for subsequent protective actions.

[0088] By using the aforementioned technical solution, the preset distance between the electrical socket and the window sash is used as an environmental parameter. Combined with the correlation between this preset distance and risk level, an objective and quantitative assessment of the risk level of the room where the window sash is located can be achieved. This helps improve the accuracy and reliability of risk assessment, especially in scenarios involving electrical safety hazards. It can more effectively identify potential risks, thus providing more precise decision support for the intelligent door and window system to take targeted protective actions, further enhancing the system's safety protection capabilities.

[0089] This application further proposes that the aforementioned environmental parameter information also includes humidity values, and that the risk level of the room where the window is located is determined based on the aforementioned first preset correspondence and the preset distance between the electrical socket and the window sash, including:

[0090] The risk level corresponding to the distance range between the electrical socket and the window sash in the first preset correspondence is taken as the initial risk level of the room where the window sash is located; it is determined whether the rate of increase of humidity value is greater than the preset humidity increase rate threshold. If so, the sum of the initial risk level and the preset risk level is taken as the risk level of the room where the window sash is located; if not, the difference between the initial risk level and the preset risk level is taken as the risk level of the room where the window sash is located.

[0091] Specifically, the humidity value refers to the air humidity in the room where the window is located, which can be monitored in real time using a humidity sensor. The rate of increase in humidity can be understood as the magnitude of humidity change per unit time, reflecting the drastic degree of humidity change in the room. The preset humidity increase rate threshold is a pre-set reference value used to determine whether humidity changes are abnormal. The initial risk level is a preliminary risk assessment result determined based on the preset distance between the electrical outlet and the window through a first preset correspondence. The preset risk level is a fixed or configurable risk value used to adjust the initial risk level, its purpose being to dynamically correct the initial risk level according to humidity changes.

[0092] This application's solution incorporates humidity as an environmental parameter and combines it with its rate of increase to dynamically assess potential risks within a room. When the rate of increase in humidity exceeds a preset threshold, it indicates a rapid rise in room humidity, potentially suggesting an increased risk of electrical safety hazards such as short circuits or leakage. Therefore, the sum of the initial risk level and the preset risk level is used as the final risk level to improve the sensitivity of risk warnings. Conversely, if the rate of increase in humidity does not reach the preset threshold, the humidity change is considered to be within a normal or controllable range. In this case, the risk level is adjusted by subtracting the preset risk level, thus avoiding over-warning and making the risk assessment results more accurate and reasonable.

[0093] Through the above technical solution, this application overcomes the limitations of relying solely on static distance information to assess risk, enabling dynamic and real-time adjustment of room risk levels. By comprehensively considering the distance between electrical outlets and window sashes, as well as dynamic changes in ambient humidity, the risk assessment results are more comprehensive and accurate, allowing for more timely and effective protective actions. This significantly enhances the safety protection capabilities of intelligent door and window systems, particularly in addressing electrical safety hazards caused by changes in ambient humidity, demonstrating significant advancement and practicality.

[0094] This application further proposes steps for determining and implementing protective actions based on the aforementioned risk level and obstacle type, specifically including:

[0095] Determine whether the risk level is greater than a preset risk level threshold; if the risk level is less than or equal to the preset risk level threshold, send a notification message to the user's device to remind the user to manually close the window; if the risk level is greater than the preset risk level threshold, determine and execute protective actions based on the type of obstruction.

[0096] Specifically, a preset risk level threshold refers to a critical value pre-set by the system to distinguish different levels of risk. This threshold can be configured based on actual application scenarios, user preferences, or security standards. For example, this threshold can be set as a numerical value; when the calculated risk level is lower than or equal to this value, the risk is considered low; when it is higher than this value, the risk is considered high. User equipment can be understood as any smart terminal device held by the user capable of receiving information, such as smartphones, tablets, and smartwatches. Notification information refers to text, voice, or image information sent to the user through the user equipment. Its purpose is to inform the user that the window is encountering a physical obstruction and to suggest manual intervention. Manually closing the window refers to the user closing the window through their own operation, such as using a remote control, a mobile app, or directly pushing the window.

[0097] This application's solution introduces a risk level assessment, enabling the system to take differentiated protective actions based on the actual risk situation. When a window encounters a physical obstruction and the risk level of the room is determined to be less than or equal to a preset risk level threshold, the system will not immediately execute complex protective actions. Instead, it will send a notification to the user's device, reminding the user to manually close the window. This allows the user to decide whether and how to handle the obstruction based on their own judgment and the situation, avoiding unnecessary intervention by the system in low-risk situations. Conversely, when the risk level exceeds the preset risk level threshold, the system will further determine and execute more proactive protective actions based on the type of obstruction, thereby ensuring timely and effective handling in high-risk scenarios.

[0098] Through the above technical solution, this application enables refined management of intelligent door and window protection linkage control. By introducing risk level threshold judgment, the system can avoid overreacting in low-risk situations, reducing unnecessary system intervention and resource consumption, and improving user experience. Simultaneously, in high-risk situations, the system can still promptly initiate higher-level protection actions, ensuring the effectiveness of security protection. This tiered response mechanism allows the intelligent door and window system to provide security protection while also considering practicality and convenience.

[0099] In some preferred embodiments, it is assumed that the smart door / window detects a physical obstruction encountered by the window sash during the closing process. The system first acquires rotational data resulting from the tentative contact between the window sash and the physical obstruction, and determines the type of obstruction based on this data, for example, identifying it as a flexible obstruction. Simultaneously, the system acquires environmental parameter information of the room where the window sash is located, and determines the risk level of the room accordingly.

[0100] Specifically, if the system determines that the current room's risk level is "low risk," meaning the risk level is less than or equal to a preset risk level threshold, the system will send a notification to the user's smartphone, prompting "Window closure obstructed; please check and close manually." After receiving the notification, the user can go and check and handle the situation, such as removing the obstruction and manually closing the window.

[0101] However, if the system determines that the current room's risk level is "high risk," meaning that the risk level is greater than the preset risk level threshold, the system will not only send a notification, but will further determine and execute more proactive protective actions based on the previously determined barrier type (such as flexible barriers), such as activating specific control strategies or disconnecting the power supply, in order to ensure safety to the greatest extent.

[0102] This application further proposes specific plans for determining and implementing protective actions based on the type of obstruction, including:

[0103] When the obstruction type is rigid, disconnect the power supply to the room where the window is located and call the user to remind them to manually close the window. If the risk level is greater than a preset risk level threshold, when the obstruction type is flexible, determine and execute a protective action, including: executing a first control strategy; the first control strategy includes controlling a motor to drive the window to move a first preset distance in the opening direction, and then controlling the motor to drive the window to close; when the number of executions of the first control strategy exceeds a first-time threshold and the window is not closed, disconnect the power supply to the room where the window is located and send the notification information to the user's device.

[0104] Specifically, when the system detects a rigid obstruction encountered by the window sash—for example, if the window sash strikes a hard object such as a wall, furniture, or human skeleton during closing—it will immediately cut off the power to prevent further damage or injury. Disconnecting the power supply to the room containing the window sash eliminates potential electrical safety risks and prevents the motor from overloading or being damaged under continuous obstruction. Simultaneously, the system will directly notify the user by phone, alerting them to the rigid obstruction and requiring immediate manual intervention. This direct telephone notification ensures that the user receives information and can take action quickly in an emergency.

[0105] When a physical obstacle encountered by the window sash is determined to be a flexible obstacle—for example, the window sash getting caught in curtains, clothing, pets, or soft tissue during closing—and the risk level of the room containing the window sash exceeds a preset risk level threshold, the system will first attempt to execute a first control strategy. This first control strategy aims to resolve the flexible obstacle in a trial-and-error, non-coercive manner. Specifically, this strategy involves controlling a motor to move the window sash a first preset distance in the opening direction to temporarily remove the obstacle, and then controlling the motor again to close the window sash. The purpose of this is to attempt to allow the flexible obstacle to detach or adjust its position on its own, thus enabling the window sash to close smoothly. The first preset distance can be set according to the actual application scenario; for example, it can be set to 5 to 10 centimeters to ensure sufficient space for the flexible obstacle to detach.

[0106] In practical applications, if the window still fails to close successfully after the first control strategy has been executed a preset number of times (i.e., more than the first attempt threshold), this indicates that the flexible obstruction may persist or cannot be resolved through simple trial-and-error operations. In this case, to further ensure safety, the system will take more decisive measures. Specifically, the system will disconnect the power supply to the room where the window is located to eliminate potential risks and send the notification information to the user's device. The notification information may contain detailed information about the window encountering a flexible obstruction and failing to close after multiple attempts, and suggest that the user check and handle the situation manually. The first attempt threshold can be configured according to actual needs; for example, it can be set to 2 or 3 attempts to balance the need to attempt to resolve the problem and to take timely higher-level protective measures.

[0107] This application's solution effectively addresses the inaccurate or insufficient response issues that may exist in the aforementioned basic solutions when handling high-risk scenarios by taking differentiated protective actions for different types of obstacles. Specifically, when the system identifies a rigid obstacle, since rigid obstacles can cause immediate and severe physical damage to the window sash, motor, or trapped object, the power is immediately cut off and the user is notified directly by phone. This minimizes the risk of damage escalation and ensures that the user is informed and can intervene immediately, thus effectively reducing the risk of accidents. For flexible obstacles, considering that they usually do not cause immediate serious damage and can often be resolved with simple adjustments, this application first adopts a tentative initial control strategy. By repeatedly attempting to open and close the window, it provides an opportunity for the flexible obstacle to detach, avoiding unnecessary forced intervention. Only when the window sash still cannot be closed after multiple attempts is the power cut off and notification sent. This demonstrates the intelligence and humanization of the solution, avoiding overreaction while providing strong safety guarantees when necessary.

[0108] Through the aforementioned technical solution, this application can provide more refined and intelligent protective actions based on the specific type of physical obstacle (rigid or flexible) and the risk level of the room. This differentiated approach significantly enhances the safety response capability and user experience of the intelligent door and window system. For rigid obstacles, immediate power cut-off and telephone notification can quickly prevent potential serious physical damage and ensure users receive timely emergency information. For flexible obstacles, by introducing a tentative first control strategy, the system can attempt to resolve the problem in a gentler manner, avoiding overreaction to harmless obstacles. Furthermore, if the problem persists, power cut-off and notification messages provide reliable final safety assurance. This not only effectively reduces the risk of pinching, damage, or electrical accidents caused by window sashes closing but also improves the system's intelligence level and user trust in its safety.

[0109] In some preferred embodiments, a specific example is given below. Suppose that in a child's room, during the closing process of a window sash, the system detects that the motor current exceeds a first preset current threshold, indicating that the window sash is encountering a physical obstacle.

[0110] Scenario 1: The system analyzes rotational data and operating current to determine that the obstruction is a rigid obstruction, such as a child's toy car caught in a window sash. Since rigid obstructions can damage the window sash or the toy car, and children's rooms are typically considered high-risk areas, the system will immediately disconnect the power to the children's room to prevent motor overload or further damage. Simultaneously, it will call the parents to alert them that the window sash is obstructed and requires immediate inspection and handling. Upon receiving the call, the parents can quickly go to the children's room and manually remove the toy car to ensure safety.

[0111] Scenario 2: The system analyzes rotational data and operating current to determine that the obstruction is a flexible obstruction, such as a window sash getting caught in a corner of a curtain. In this case, if the risk level of the children's room exceeds a preset risk level threshold, the system will first execute the first control strategy. Specifically, the motor will drive the window sash to move a first preset distance (e.g., 5 cm) in the opening direction, and then attempt to close the window sash again. If the curtain fails to detach completely after the first attempt, and the window sash becomes obstructed again, the system will execute the first control strategy again. Assuming the first count threshold is set to 2 attempts, if the window sash still fails to close successfully after the second attempt, it indicates that the curtain may be severely stuck. At this point, the system will disconnect the power to the children's room and send a notification to the parent's device, informing them that the window sash encountered a flexible obstruction and multiple attempts to close failed, suggesting that the parent check the room. After receiving the notification, the parent can go to the room and manually adjust the curtains to ensure the window sash can close safely.

[0112] Traditional smart home window and door protection systems suffer from limitations in handling complex environmental interference and multi-dimensional security threats. These limitations include single-function limitations and a lack of coordination between sensors and actuators, leading to delayed responses or frequent malfunctions. Particularly when automated window systems fail to close completely due to physical obstructions, secondary hazards may arise, such as rainwater entering the room and potential electrical safety risks. Current systems often only report isolated faults, failing to understand the event chain or root cause, which limits their ability to take comprehensive protective actions.

[0113] In response, this application proposes an intelligent door and window real-time protection linkage control system, comprising: a processor, which executes the method provided in the above-described specific embodiments. By executing the method provided in the above-described specific embodiments through the processor, this application can comprehensively analyze the physical obstruction of the window sash, the type of obstruction, and room environmental parameters, thereby accurately assessing the risk level and executing linkage protection actions according to specific circumstances, effectively avoiding or mitigating secondary hazards and improving the protective capabilities of the intelligent door and window system.

[0114] The processor may include a central processing unit, microcontroller, digital signal processor, or application-specific integrated circuit, and is equipped with memory for storing program instructions and data. Furthermore, the processor may include interfaces for environmental sensors (such as humidity sensors and temperature sensors) and communication interfaces for actuators (such as motor controllers and power switches). The processor is configured to analyze the type of obstruction based on rotational data, assess the risk level in conjunction with environmental parameters, and ultimately determine and execute protective actions based on this comprehensive information.

[0115] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A method for real-time protection and linkage control of intelligent doors and windows, characterized in that, include: During the closing of the window sash, after detecting that the current current of the motor driving the window sash exceeds the first preset current threshold, it is determined that the window sash has encountered a physical obstacle, and the rotation data generated by the window sash making tentative contact with the physical obstacle is obtained; The type of physical obstruction is determined based on the rotation data; Obtain the environmental parameter information of the room where the window is located; The risk level of the room where the window is located is determined based on environmental parameter information; Based on the risk level and the type of obstruction, determine and implement protective actions; Acquire rotational data resulting from the window sash making contact with a physical obstacle, including: The control motor drives the window sash to make contact with a physical obstacle within a preset time period and with a preset driving force; the preset driving force is less than the driving force corresponding to the current. The displacement distance of the window sash during the period when the motor drives the window sash to make contact with the physical obstacle with a preset driving force is used as rotation data; The type of physical obstacle is determined based on the rotation data, including: Obtain the operating current of the motor during the window sash closing period when the motor drives the window sash with a preset driving force; The type of physical obstruction is determined based on the operating current and the rotation data; The type of physical obstruction is determined based on the operating current and the rotation data, including: Determine the rate of change of the operating current; When the rate of change of the operating current is greater than the first rate of change threshold and the displacement distance of the window sash is less than the second preset distance, the physical obstacle is determined to be a rigid obstacle. When the rate of change of the operating current is less than or equal to the first rate of change threshold, and the displacement distance of the window sash is greater than the second preset distance, the physical obstacle is determined to be a flexible obstacle. The environmental parameter information includes a preset distance between the electrical outlet and the window sash. Based on the environmental parameter information, the risk level of the room where the window sash is located is determined, including: Obtain a first preset correspondence; the first preset correspondence includes a one-to-one correspondence between multiple distance ranges and multiple risk levels; The risk level of the room where the window is located is determined based on the first preset correspondence and the preset distance between the electrical socket and the window sash.

2. The intelligent door and window real-time protection linkage control method according to claim 1, characterized in that, Before the control motor drives the window sash to make tentative contact with a physical obstacle within a preset time period and with a preset driving force, the method further includes: Generate a first control command; the first control command is used to control the motor to drive the window sash to move a first preset distance in the opening direction; Send the first control command to the motor to drive the window sash to move a first preset distance in the opening direction.

3. The intelligent door and window real-time protection linkage control method according to claim 1, characterized in that, The environmental parameter information also includes humidity values. Based on the first preset correspondence and the preset distance between the electrical outlet and the window sash, the risk level of the room where the window sash is located is determined, including: The risk level corresponding to the distance range between the electrical socket and the window sash in the first preset correspondence is taken as the initial risk level of the room where the window sash is located; Determine whether the rate of increase of the humidity value is greater than the preset humidity increase rate threshold. If so, use the sum of the initial risk level and the preset risk level as the risk level of the room where the window is located; otherwise, use the difference between the initial risk level and the preset risk level as the risk level of the room where the window is located.

4. The intelligent door and window real-time protection linkage control method according to claim 1, characterized in that, Based on the risk level and obstacle type, determine and implement protective actions, including: Determine whether the risk level is greater than a preset risk level threshold; If the risk level is less than or equal to a preset risk level threshold, a notification message is sent to the user's device to remind the user to manually close the window. If the risk level is greater than the preset risk level threshold, protective actions are determined and executed based on the type of obstruction.

5. The intelligent door and window real-time protection linkage control method according to claim 4, characterized in that, Determine and implement protective actions based on the type of obstruction, including: When the obstruction type is rigid, disconnect the power supply to the room where the window is located and call the user to remind them to manually close the window. If the risk level is greater than a preset risk level threshold, when the barrier type is a flexible barrier, a protective action is determined and executed, including: Execute a first control strategy; the first control strategy includes controlling the motor to drive the window sash to move a first preset distance in the opening direction, and then controlling the motor to drive the window sash to close. If the number of times the first control strategy is executed exceeds the first threshold and the window is not closed, disconnect the power supply to the room where the window is located and send a notification message to the user equipment.

6. A smart door and window real-time protection linkage control system, characterized in that, include: A processor for performing the method as described in any one of claims 1 to 5.