Self-learning method and system based on intelligent door and window
By acquiring and adjusting motor torque through a self-learning method, the wear and noise problems caused by the maximum torque setting in smart doors and windows have been solved, resulting in higher reliability and service life.
Patent Information
- Application Number
- CN202511930209.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-19
- Publication Date
- 2026-02-06
AI Technical Summary
The motor torque of existing smart doors and windows is set to the maximum value, which results in excessive force when opening and closing, causing collisions and vibrations, affecting service life and causing noise problems, and also has low reliability.
By using a self-learning method, the system obtains travel feedback results and maximum motor torque information, and iteratively generates and executes test run instruction sets until a suitable motor torque is determined, thereby reducing wear on mechanical parts and improving reliability.
It automatically determines the optimal motor torque, reduces wear on mechanical parts, extends the service life of smart doors and windows, and improves reliability.
Smart Images

Figure CN121473669A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of door and window control, in particular to a self-learning method based on intelligent door and window and a system thereof. BACKGROUND
[0002] As an important part of a building, doors and windows not only bear multiple functions such as passing, lighting, ventilation, protection and decoration, but also play a key role in ensuring the comfort, safety and aesthetics of the living environment. High-quality door and window design not only improves the overall quality of the building, but also directly affects the living experience and safety protection level of the occupants.
[0003] At present, intelligent doors and windows achieve opening and closing actions through motor driving. However, the current motor torque is usually set to the maximum value to ensure that the door and window can be completely closed or completely opened. Although this design ensures the realization of functions, it leads to excessive force when the door and window is opened or closed, which easily causes collision and vibration, thereby aggravating the wear and tear of mechanical parts, affecting the service life of the intelligent door and window. Excessive driving force also causes noise problems, and there is a problem of low reliability, which needs to be further improved. SUMMARY
[0004] Therefore, the embodiments of the present application provide a self-learning method based on intelligent door and window and a system thereof to solve the problem of low reliability in the prior art.
[0005] In a first aspect, the embodiments of the present application provide a self-learning method based on intelligent door and window, which is suitable for a target door and window connected to a door and window motor for driving the target door and window to move. The method comprises: In response to a first power-on instruction, obtaining stroke feedback result information and maximum motor torque information of the door and window motor; According to the maximum motor torque information and the stroke feedback result information, a test running instruction set information is generated and executed in a loop until a suitable motor torque information is determined.
[0006] Compared with the prior art, the self-learning method based on intelligent door and window provided by the embodiments of the present application has the beneficial effects that: the terminal device can first respond to the first power-on instruction to obtain the stroke feedback result information and the maximum motor torque information of the door and window motor, and then generate and execute the test running instruction set information in a loop according to the maximum motor torque information and the stroke feedback result information until the suitable motor torque information is effectively determined, so as to automatically determine the optimal motor torque, reduce the wear and tear of mechanical parts, prolong the service life of the intelligent door and window, effectively improve the reliability, and to a certain extent, solve the problem of low reliability.
[0007] In a second aspect, the embodiments of the present application provide a self-learning system based on an intelligent door and window, which is suitable for a target door and window, the target door and window being connected to a door and window motor, the door and window motor being used to drive the target door and window to move, and the system comprising: a stroke feedback result information acquisition module, configured to acquire stroke feedback result information and maximum motor torque information of the door and window motor in response to a first power-on instruction; a suitable motor torque information determination module, configured to generate and execute a test running instruction set information cyclically until suitable motor torque information is determined according to the maximum motor torque information and the stroke feedback result information.
[0008] In a third aspect, the embodiments of the present application provide a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method of the first aspect when executing the computer program.
[0009] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, which stores a computer program, and the computer program is executable by a processor to implement the steps of the method of the first aspect.
[0010] It can be understood that the beneficial effects of the second aspect to the fourth aspect can be referred to the related description in the first aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description.
[0012] Figure 1 is a flowchart of a self-learning method provided by an embodiment of the present application; Figure 2 is a schematic diagram of a door and window motor provided by an embodiment of the present application; Figure 3 is a flowchart of step S200 in the self-learning method provided by an embodiment of the present application; Figure 4 is a flowchart after step S300 in the self-learning method provided by an embodiment of the present application; Figure 5 is a flowchart after step S420 in the self-learning method provided by an embodiment of the present application; Figure 6 is a flowchart after step S425 in the self-learning method provided by an embodiment of the present application; Figure 7 is a module block diagram of the self-learning system provided by an embodiment of the present application; Figure 8 is a schematic diagram of a terminal device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0013] In the following description, for the purposes of explanation and not limitation, specific details are set forth such as particular architectures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application can be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known methods, devices, circuits, and
[0014] In the description of the present application and the appended claims, the terms "first", "second", "third", etc. are used only to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
[0015] In the present application, the reference "one embodiment" or "some embodiments" means that the specific features, structures or characteristics described in connection with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in other some embodiments", "in further some embodiments" and the like appearing in the present specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "include", "contain", "have" and their variants mean "including but not limited to", unless otherwise specifically emphasized.
[0016] At present, because each door and window model is different, and the production process is different, the force on each window is also different. In order to make the door and window open normally and smoothly, the previous general practice is to set the MCU to the highest torque of the motor to run, which can ensure the normal opening and closing of the door and window. However, if the door and window are running in the maximum torque mode and a person is caught in the process, it will be very painful. In addition, the noise of the maximum torque operation is also very large, which is not good experience. The maximum power operation of the equipment reduces the service life of the product.
[0017] In order to illustrate the technical solutions described in the present application, the following will be described through specific embodiments.
[0018] Please refer to Figure 1 , Figure 1is a flowchart of a self-learning method based on intelligent doors and windows provided in an embodiment of the present application. In this embodiment, the execution subject of the self-learning method is a terminal device. It can be understood that the types of the terminal device include, but are not limited to, a tablet computer, a notebook computer, an Ultra-Mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like, and the specific type of the terminal device is not limited in the embodiment of the present application.
[0019] Referring to Figure 1 The self-learning method provided in the embodiment of the present application includes, but is not limited to, the following steps. In S100, in response to a first power-on instruction, travel feedback result information and maximum motor torque information of a door and window motor are acquired.
[0020] Exemplarily, referring to Figure 2 The self-learning method can be applied to a target door and window, i.e., an intelligent door and window. The target door and window is connected to a door and window motor, and the door and window motor is used to drive the target door and window to move. A motor control board of the door and window motor can be connected to a control panel, wherein the motor control board can be composed of an MCU, a digital-to-analog chip, and a Hall induction chip. When the control panel sends a window opening command to the motor control board, the motor control board MCU receives the window opening command, and then converts the digital opening and closing signal into an analog positive and negative rotation signal through the digital-to-analog chip and sends the analog positive and negative rotation signal to the motor. At this time, the motor executes the positive and negative rotation command, and the Hall induction chip can detect the number of rotations of the motor and detect whether the motor is locked. When the motor rotation reaches the number of rotations set by the MCU, the motor stops rotating and feeds back to the MCU, and then the MCU feeds back to the control panel.
[0021] Specifically, the terminal device can acquire the travel feedback result information and the maximum motor torque information of the door and window motor in response to a first power-on instruction, wherein the first power-on instruction is used to indicate that the user powers on the door and window motor for the first time, the travel feedback result information is used to describe the travel feedback result of the door and window motor, and the maximum motor torque information is used to describe the maximum torque of the door and window motor.
[0022] In S200, a test running instruction set information is cyclically generated and executed according to the maximum motor torque information and the travel feedback result information, until a suitable motor torque information is determined.
[0023] Specifically, after the terminal device acquires the travel feedback result information and the maximum motor torque information, the terminal device can cyclically generate and execute the test running instruction set information according to the maximum motor torque information and the travel feedback result information, until the suitable motor torque information is effectively determined.
[0024] Without loss of generality, the test running instruction set information includes first running instruction information and second running instruction information; the stroke feedback result information includes first feedback result information and second feedback result information, wherein the first feedback result information is used to describe that the target door and window is moved to the specified position and there is no motor stall signal, and the second feedback result information is used to describe that the target door and window is not moved to the specified position or there is a motor stall signal, and the specified position can be the maximum position of the stroke, i.e., the position corresponding to the fully open state and the position corresponding to the fully closed state.
[0025] In some possible implementation manners, in order to effectively determine the appropriate motor torque information, please refer to Figure 3 , step S200 includes but is not limited to the following steps: In S210, if the stroke feedback result information is the first feedback result information, the first test torque information is determined according to the maximum motor torque information and the preset halving multiple information.
[0026] Specifically, if the stroke feedback result information is the first feedback result information, the terminal device can determine the first test torque information according to the maximum motor torque information and the preset halving multiple information, wherein the first test torque information can be a product value of the maximum motor torque information multiplied by the preset halving multiple information, and the halving multiple information can be 0.5.
[0027] In S220, the first running instruction information is generated and executed based on the first test torque information.
[0028] Specifically, after the terminal device determines the first test torque information, the terminal device can generate and execute the first running instruction information based on the first test torque information, wherein the first running instruction information is used to instruct the door and window motor to drive the intelligent door and window to move to the specified position according to the first test torque information.
[0029] In S230, after the first running instruction information is executed, the stroke feedback result information is acquired again.
[0030] Specifically, after the first running instruction information is executed, the terminal device can acquire the stroke feedback result information again.
[0031] In S240, it is judged whether the stroke feedback result information acquired again is the first feedback result information.
[0032] Specifically, after the terminal device acquires the stroke feedback result information again, the terminal device can judge whether the stroke feedback result information acquired again is the first feedback result information.
[0033] In S250, if the stroke feedback result information acquired again is the first feedback result information, the first test torque information is determined according to the maximum motor torque information and the preset halving multiple information, and the stroke feedback result information acquired again is acquired until the stroke feedback result information acquired again is the second feedback result information.
[0034] Specifically, if the stroke feedback result information acquired again is the first feedback result information, the above step S210 to the above step S230 are executed in a loop until the stroke feedback result information acquired again is the second feedback result information.
[0035] In S260, the second test torque information is determined according to the first test torque information of the last first loop and the first test torque information of the last second loop.
[0036] Specifically, after the stroke feedback result information acquired again by the terminal device is the second feedback result information, the terminal device can determine the second test torque information according to the first test torque information of the last first loop and the first test torque information of the last second loop, wherein the second test torque information is used to describe the average value calculated by adding the first test torque information of the last first loop and the first test torque information of the last second loop.
[0037] In S270, the second running instruction information is generated and executed based on the second test torque information.
[0038] Specifically, after the terminal device determines the second test torque information, the terminal device can generate and execute the second running instruction information based on the second test torque information, wherein the second running instruction information is used to instruct the door and window motor to drive the intelligent door and window to move to a specified position according to the second test torque information.
[0039] In S280, the stroke feedback result information is acquired again after the second running instruction information is executed.
[0040] Specifically, after the terminal device generates and executes the second running instruction information, the terminal device can acquire the stroke feedback result information again after the second running instruction information is executed.
[0041] In S290, it is judged whether the stroke feedback result information acquired again is the first feedback result information.
[0042] Specifically, after the terminal device acquires the stroke feedback result information again, the terminal device can judge whether the stroke feedback result information acquired again is the first feedback result information.
[0043] In S291, if the stroke feedback result information obtained again is the first feedback result information, the second test torque information of the final cycle is determined as the appropriate motor torque information, otherwise, the cycle is executed according to the first test torque information of the first cycle and the first test torque information of the second cycle, and the second test torque information is determined until the stroke feedback result information obtained again is the first feedback result information.
[0044] Specifically, if the stroke feedback result information obtained again is the first feedback result information, the terminal device can determine the second test torque information of the final cycle as the appropriate motor torque information, otherwise, the steps S260 to S290 are executed until the stroke feedback result information obtained again is the first feedback result information.
[0045] Exemplarily, in another possible implementation, when the product is powered on for the first time, the door and window motor can run at the maximum torque once, and the stroke is reported to the MCU, at this time the motor does not encounter the stall, then the terminal device can control the door and window motor to drive the intelligent door and window to run at 50% of the maximum torque, if the stroke can be run and the stall is not encountered during the running process, it indicates that the torque is sufficient, then the terminal device can control the door and window motor to drive the intelligent door and window to run at 20% of the maximum torque, if the stroke cannot be run and the stall is encountered during the running process, it indicates that the torque is insufficient, then the terminal device can control the door and window motor to drive the intelligent door and window to run at 35% of the maximum torque, if the stroke can be run and the stall is not encountered during the running process, it indicates that the torque is sufficient, if the stroke cannot be run and the stall is encountered, it indicates that the torque is insufficient, and so on, run at 1 / 2 torque in two intervals, until the most suitable torque of the motor for the door and window is obtained.
[0046] In some possible implementations, in order to further improve the use experience, after step S200, the method further includes but is not limited to the following steps: In S300, the best motor torque information is generated according to the appropriate motor torque information and the preset increase ratio information.
[0047] Specifically, after the terminal device determines the appropriate motor torque information, the terminal device can generate the best motor torque information according to the appropriate motor torque information and the preset increase ratio information, wherein the increase ratio information can be 1.15; the best motor torque information is used to describe the product value obtained by multiplying the appropriate motor torque information by the increase ratio information.
[0048] In some possible implementations, in order to correct the torque value of the door and window motor periodically, please refer to Figure 4After step S200, the method further includes but is not limited to the following steps: In S400, after a preset waiting time period, the method of responding to the first power-on instruction to obtain the stroke feedback result information and the maximum motor torque information of the door and window motor is executed again, and according to the maximum motor torque information and the stroke feedback result information, the test running instruction set information is generated and executed in a loop until the appropriate motor torque information is determined.
[0049] Specifically, after the preset waiting time period, the terminal device can execute the above step S100 to the above step S200 again, wherein the waiting time period can be two months.
[0050] In S410, it is determined whether the appropriate motor torque information determined again is equal to the current appropriate motor torque information.
[0051] Specifically, after the terminal device determines the appropriate motor torque information, the terminal device can determine whether the appropriate motor torque information determined again is equal to the current appropriate motor torque information.
[0052] In S420, if the appropriate motor torque information determined again is not equal to the current appropriate motor torque information, the current appropriate motor torque information is replaced by the appropriate motor torque information determined again.
[0053] Specifically, if the appropriate motor torque information determined again is not equal to the current appropriate motor torque information, it indicates that the performance is decreased due to the aging of the door and window motor with time and use, so the terminal device can replace the current appropriate motor torque information with the appropriate motor torque information determined again, thereby realizing the verification of the optimal torque once every two months.
[0054] In some possible implementations, in order to facilitate timely adjustment of the torque value, please refer to Figure 5 After step S420, the method further includes but is not limited to the following steps: In S421, the current torque difference information is generated according to the current appropriate motor torque information and the appropriate motor torque information determined again.
[0055] Specifically, the terminal device can generate the current torque difference information according to the current appropriate motor torque information and the appropriate motor torque information determined again, wherein the current torque difference information is used to describe the difference between the current appropriate motor torque information and the appropriate motor torque information determined again.
[0056] In S422, the historical torque difference information is obtained.
[0057] Specifically, after the terminal device generates the current torque difference information, the terminal device can acquire historical torque difference information, wherein the historical torque difference information is used to describe a difference between suitable motor torque information determined once earlier than the current suitable motor torque information and the current suitable motor torque information.
[0058] In S423, it is judged whether the current torque difference information is greater than the historical torque difference information of the specified multiple.
[0059] Specifically, after the terminal device generates the current torque difference information, the terminal device can judge whether the current torque difference information is greater than the historical torque difference information of the specified multiple, wherein the value of the specified multiple ranges from any rational number between 1.3 and 1.5.
[0060] In S424, if the current torque difference information is greater than the historical torque difference information of the specified multiple, an optimized time period is generated according to the waiting time period and the preset adjustment time value.
[0061] Specifically, if the current torque difference information is greater than the historical torque difference information of the specified multiple, the terminal device can generate an optimized time period according to the waiting time period and the preset adjustment time value, wherein the optimized time period is used to describe a difference between the waiting time period and the preset adjustment time value, and the adjustment time value can be predefined, such as 1 day, 3 days or 5 days.
[0062] In S425, the waiting time period is replaced by the optimized time period.
[0063] Specifically, after the terminal device generates the optimized time period, the terminal device can replace the waiting time period with the optimized time period.
[0064] In S426, if the current torque difference information is less than or equal to the historical torque difference information of the specified multiple, the waiting time period is retained.
[0065] Specifically, if the current torque difference information is less than or equal to the historical torque difference information of the specified multiple, the terminal device can retain the waiting time period.
[0066] In some possible implementation manners, in order to facilitate timely adjustment of the torque value, please refer to Figure 6 After step S425, the method further includes but is not limited to the following steps: In S4251, motor model information, cumulative use time information, current replacement time information and preset motor life information of the door and window motor are acquired.
[0067] Specifically, the terminal device can first acquire motor model information of the door and window motor, accumulated use time length information, current replacement time information, and preset motor life information, wherein the motor model information is used to describe a specific model of the door and window motor; the accumulated use time length information is used to describe an accumulated use time length of the door and window motor; the current replacement time information is used to describe a time at which the terminal device will replace the waiting time period into the optimized time period; and the motor life information includes a plurality of life stage information, which can be, in order from early to late, running-in period stage information, normal use stage information, decline stage information, and frequent failure stage information.
[0068] In S4252, target stage information is determined according to the accumulated use time length information and the motor life information.
[0069] Specifically, after the terminal device acquires the motor model information, the accumulated use time length information, the current replacement time information, and the preset motor life information, the terminal device can determine which life stage information the current door and window motor is in according to the accumulated use time length information and the motor life information, and then determine the target stage information.
[0070] For example, when the normal use stage information is from the third month of accumulated running to the third year of accumulated running, and the accumulated use time length information is the second year, the terminal device can determine the normal use stage information as the target stage information.
[0071] In S4253, a preset historical database is searched based on the motor model information and the target stage information to determine the regular replacement time information.
[0072] Specifically, after the terminal device determines the target stage information, the terminal device can search the preset historical database based on the motor model information to determine related data of the motor of the same model, and then continue to search the historical database based on the target stage information to determine a time at which the motor of the same model will generally replace the waiting time period into the optimized time period in the target stage information, thereby effectively determining the regular replacement time information; in a possible implementation manner, the regular replacement time information can take the mode of a large number of motors of the same model in the target stage information, that is, the time with the most occurrences.
[0073] In S4254, replacement deviation time value information is generated according to the regular replacement time information and the current replacement time information.
[0074] Specifically, after the terminal device determines the regular replacement time information, the terminal device can generate the replacement deviation time value information according to the regular replacement time information and the current replacement time information, wherein the replacement deviation time value information is used to describe a time difference between the regular replacement time information and the current replacement time information.
[0075] In S4255, the replacement deviation time value information is compared with a preset replacement time difference threshold value.
[0076] Specifically, after the terminal device generates the replacement deviation time value information, the terminal device can compare the replacement deviation time value information with a preset replacement time difference threshold value, which can be predefined by the operation and maintenance personnel, for example, six months.
[0077] In S4256, if the replacement deviation time value information is less than the replacement time difference threshold value, abnormal prompt information is generated.
[0078] Specifically, if the replacement deviation time value information is less than the replacement time difference threshold value, it indicates that the normal use stage information of the target motor is significantly shortened, and there is a significant abnormal situation, so the terminal device can generate abnormal prompt information, thereby facilitating the user and / or the operation and maintenance personnel to know the abnormal situation of the target motor.
[0079] The implementation principle of the self-learning method of the smart door and window based on the embodiment of the application is that: the terminal device can first respond to the first power-on instruction to obtain the stroke feedback result information and the maximum motor torque information of the door and window motor, and then generate and execute the test running instruction set information in a cycle according to the maximum motor torque information and the stroke feedback result information, until the appropriate motor torque information is effectively determined, so as to automatically determine the best motor torque, reduce the wear and tear of mechanical parts, prolong the service life of the smart door and window, and effectively improve the reliability.
[0080] It should be noted that the size of the serial number of each step in the above embodiment does not mean the execution order, and the execution order of each process should be determined according to its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiment of the application.
[0081] The embodiment of the application also provides a self-learning system based on a smart door and window, which is suitable for a target door and window, the target door and window being connected to a door and window motor, the door and window motor being used to drive the target door and window to move, for the convenience of description, only the parts related to the application are shown, such as Figure 7 As shown in the figure, the system 70 includes: A stroke feedback result information acquisition module 71: used to obtain stroke feedback result information and maximum motor torque information of a door and window motor in response to a first power-on instruction; An appropriate motor torque information determination module 72: used to generate and execute test running instruction set information in a cycle according to the maximum motor torque information and the stroke feedback result information, until the appropriate motor torque information is determined.
[0082] Optionally, the test running instruction set information comprises first running instruction information and second running instruction information, and the stroke feedback result information comprises first feedback result information and second feedback result information, wherein the first feedback result information is used for describing that the target door and window is moved to the specified position and there is no motor stall signal, and the second feedback result information is used for describing that the target door and window is not moved to the specified position or there is a motor stall signal; the above suitable motor torque information determination module 72 comprises: a first test torque information determination submodule: used for determining the first test torque information according to the maximum motor torque information and preset halving multiple information if the stroke feedback result information is the first feedback result information; a first running instruction information generation submodule: used for generating and executing the first running instruction information based on the first test torque information; a stroke feedback result information first reacquisition submodule: used for reacquiring the stroke feedback result information after the first running instruction information is executed; a stroke feedback result information first judgment submodule: used for judging whether the reacquired stroke feedback result information is the first feedback result information; a second feedback result information acquisition submodule: used for cyclically executing the determination of the first test torque information according to the maximum motor torque information and preset halving multiple information to the reacquisition of the stroke feedback result information until the reacquired stroke feedback result information is the second feedback result information if the reacquired stroke feedback result information is the first feedback result information; a second test torque information determination submodule: used for determining the second test torque information according to the first test torque information of the last first round of cycles and the first test torque information of the last second round of cycles; a second running instruction information generation submodule: used for generating and executing the second running instruction information based on the second test torque information; a stroke feedback result information second reacquisition submodule: used for reacquiring the stroke feedback result information after the second running instruction information is executed; a stroke feedback result information second judgment submodule: used for judging whether the reacquired stroke feedback result information is the first feedback result information; a first feedback result information reacquisition submodule: used for determining the second test torque information of the last round of cycles as the suitable motor torque information if the reacquired stroke feedback result information is the first feedback result information, or cyclically executing the determination of the second test torque information according to the first test torque information of the last first round of cycles and the first test torque information of the last second round of cycles to the judgment of whether the reacquired stroke feedback result information is the first feedback result information until the reacquired stroke feedback result information is the first feedback result information.
[0083] Optionally, the system 70 further comprises: The optimal motor torque information generation submodule is configured to generate optimal motor torque information according to the appropriate motor torque information and the preset increase multiple information.
[0084] Optionally, the system 70 further comprises: The appropriate motor torque information determination module is configured to, after the preset waiting time period, execute again the following operations: in response to the first power-on instruction, obtaining the stroke feedback result information and the maximum motor torque information of the door and window motor, generating and executing the test running instruction set information according to the maximum motor torque information and the stroke feedback result information, and determining the appropriate motor torque information until the appropriate motor torque information is determined. The appropriate motor torque information judgment module is configured to judge whether the re-determined appropriate motor torque information is equal to the current appropriate motor torque information. The appropriate motor torque information replacement module is configured to, if the re-determined appropriate motor torque information is not equal to the current appropriate motor torque information, replace the current appropriate motor torque information with the re-determined appropriate motor torque information.
[0085] Optionally, the system 70 further comprises: The current torque difference information generation module is configured to generate current torque difference information according to the current appropriate motor torque information and the re-determined appropriate motor torque information. The historical torque difference information acquisition module is configured to acquire historical torque difference information. The current torque difference information judgment module is configured to judge whether the current torque difference information is greater than a specified multiple of the historical torque difference information, wherein the specified multiple is any rational number between 1.3 and 1.5. The optimization time period generation module is configured to, if the current torque difference information is greater than the specified multiple of the historical torque difference information, generate an optimization time period according to the waiting time period and a preset adjustment time value. The waiting time period replacement module is configured to replace the waiting time period with the optimization time period. The waiting time period retention module is configured to, if the current torque difference information is less than or equal to the specified multiple of the historical torque difference information, retain the waiting time period.
[0086] It should be noted that the information interaction, execution process and the like between the above modules are based on the same concept as the method embodiments of the present application, and the specific functions and technical effects brought by them can be referred to the method embodiments part, which will not be described here.
[0087] The terminal device provided by the embodiment of the present application comprises the system 70. Figure 8As shown, the terminal device 80 of this embodiment includes: a processor 81, a memory 82, and a computer program 83 stored in the memory 82 and executable on the processor 81. When the processor 81 executes the computer program 83, it implements the steps described in the self-learning method embodiment above, for example... Figure 1 Steps S100 to S200 are shown; or, when processor 81 executes computer program 83, it implements the functions of each module in the above-described device, for example... Figure 7 The functions of modules 71 and 72 shown.
[0088] The terminal device 80 can be a desktop computer, laptop, handheld computer, cloud server, or other computing device, and includes, but is not limited to, a processor 81 and a memory 82. Those skilled in the art will understand that... Figure 8 This is merely an example of terminal device 80 and does not constitute a limitation on terminal device 80. It may include more or fewer components than shown, or combine certain components, or different components. For example, terminal device 80 may also include input / output devices, network access devices, buses, etc.
[0089] The processor 81 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.; the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0090] The memory 82 can be an internal storage unit of the terminal device 80, such as a hard disk or memory of the terminal device 80. The memory 82 can also be an external storage device of the terminal device 80, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the terminal device 80. Furthermore, the memory 82 can include both internal storage units and external storage devices of the terminal device 80. The memory 82 can also store computer program 83 and other programs and data required by the terminal device 80. The memory 82 can also be used to temporarily store data that has been output or will be output.
[0091] One embodiment of this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium can include any entity or device capable of carrying computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0092] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the methods, principles and structures of this application should be covered within the scope of protection of this application.
Claims
1. A self-learning method based on intelligent doors and windows, applicable to target doors and windows, wherein the target doors and windows are connected to a door and window motor, and the door and window motor is used to drive the movement of the target doors and windows, characterized in that, The method includes: In response to the initial power-on command, the travel feedback result information and the maximum motor torque information of the door and window motor are obtained; Based on the maximum motor torque information and stroke feedback results, test operation instruction set information is generated and executed cyclically until suitable motor torque information is determined.
2. The method according to claim 1, characterized in that, The test run instruction set information includes first run instruction information and second run instruction information. The travel feedback result information includes first feedback result information and second feedback result information. The first feedback result information describes that the target door / window has moved to a designated position and there is no motor stall signal. The second feedback result information describes that the target door / window has not moved to the designated position or there is a motor stall signal. The step of cyclically generating and executing the test run instruction set information based on the maximum motor torque information and the travel feedback result information until suitable motor torque information is determined includes: If the travel feedback result information is the first feedback result information, then the first test torque information is determined based on the maximum motor torque information and the preset halving factor information; Based on the first test torque information, generate and execute the first operation instruction information; After executing the first running instruction information, the trip feedback result information is obtained again; Determine whether the re-acquired trip feedback result information is the same as the first feedback result information; If the travel feedback result information obtained again is the first feedback result information, then the process of determining the first test torque information based on the maximum motor torque information and the preset halving factor information is repeated until the travel feedback result information is obtained again, until the travel feedback result information obtained again is the second feedback result information. The second test torque information is determined based on the first test torque information of the penultimate cycle and the first test torque information of the penultimate cycle. Based on the second test torque information, generate and execute the second operation command information; After executing the second running instruction information, the trip feedback result information is obtained again; Determine whether the re-acquired trip feedback result information is the same as the first feedback result information; If the travel feedback result information obtained again is the first feedback result information, then the second test torque information of the final cycle is determined to be the appropriate motor torque information. Otherwise, the process of determining the second test torque information based on the first test torque information of the penultimate cycle and the first test torque information of the second-to-last cycle is repeated until the travel feedback result information obtained again is the first feedback result information.
3. The method according to claim 1, characterized in that, After generating and executing a test run instruction set information cyclically based on the maximum motor torque information and the stroke feedback result information until suitable motor torque information is determined, the method further includes: Based on the appropriate motor torque information and the preset amplification ratio information, the optimal motor torque information is generated.
4. The method according to claim 1, characterized in that, After generating and executing a test run instruction set information cyclically based on the maximum motor torque information and the stroke feedback result information until suitable motor torque information is determined, the method further includes: After a preset waiting period, the response to the first power-on command is executed again to obtain travel feedback result information and the maximum motor torque information of the door and window motor. Based on the maximum motor torque information and travel feedback result information, test run command set information is generated and executed cyclically until suitable motor torque information is determined. Determine whether the re-determined suitable motor torque information is equal to the current suitable motor torque information; If the re-determined suitable motor torque information is not equal to the current suitable motor torque information, then the current suitable motor torque information will be replaced with the re-determined suitable motor torque information.
5. The method according to claim 4, characterized in that, After replacing the current suitable motor torque information with the newly determined suitable motor torque information if the re-determined suitable motor torque information is not equal to the current suitable motor torque information, the method further includes: Based on the current suitable motor torque information and the re-determined suitable motor torque information, generate the current torque difference information; Obtain historical torque difference information; Determine whether the current torque difference information is greater than the historical torque difference information by a specified multiple, wherein the specified multiple is any rational number between 1.3 and 1.5; If the current torque difference information is greater than the historical torque difference information by a specified multiple, then an optimized time period is generated based on the waiting time period and the preset adjustment time value. Replace the aforementioned waiting period with an optimized time period; If the current torque difference information is less than or equal to a specified multiple of the historical torque difference information, then the waiting period is retained.
6. The method according to claim 5, characterized in that, After replacing the waiting period with an optimized time period, the method further includes: The motor model information, cumulative usage time information, current replacement time information, and preset motor life information of the door and window motor are obtained, wherein the motor life information includes multiple life stage information. Based on the cumulative usage time information and motor life information, the target stage information is determined; Based on the motor model information and target stage information, the preset historical database is searched to determine the regular replacement time information; Based on the regular replacement time information and the current replacement time information, a replacement deviation time value is generated; Compare the replacement deviation time value information with the preset replacement time difference threshold; If the replacement deviation time value is less than the replacement time difference threshold, an abnormality alert is generated.
7. A self-learning system based on intelligent doors and windows, applicable to target doors and windows, wherein the target doors and windows are connected to a door and window motor, and the door and window motor is used to drive the movement of the target doors and windows, characterized in that, The system includes: Trip feedback result information acquisition module: used to acquire trip feedback result information and the maximum motor torque information of the door and window motor in response to the first power-on command; Suitable motor torque information determination module: It is used to generate and execute test operation instruction set information in a loop based on the maximum motor torque information and stroke feedback result information until suitable motor torque information is determined.
8. The system according to claim 7, characterized in that, The system also includes: Optimal motor torque information generation submodule: used to generate optimal motor torque information based on the appropriate motor torque information and the preset amplification ratio information.
9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1 to 6.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 6.