Door and window switch recognition method and device based on hall positioning, equipment and medium
Patent Information
- Application Number
- CN202310656134.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-05
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2043-06-05
AI Technical Summary
[0004]基于此,有必要针对上述问题,提出了一种基于霍尔定位的门窗开关识别方法、装置、设备及介质,以解决安装误差可能导致窗户无法精确关闭到预定位置,从而造成锁闭位置的不准确,无法实现智能电动窗关闭时的精准识别的技术问题
[0040]This invention provides a door and window opening/closing recognition method based on Hall effect positioning. The method receives a window closing signal; generates a drive command based on the closing signal and sends the drive command to a drive motor; when the drive motor executes the drive command, it detects in real-time whether the drive motor stalls. If stalling occurs, it acquires the magnetic induction intensity value sent by the Hall effect sensor in real-time and compares the magnetic induction intensity value with a magnetic induction intensity threshold. If the magnetic induction intensity value is not less than the magnetic induction intensity threshold, it generates a window closing signal and sends it to a locking motor. The server controls the drive motor to close the window based on the received window closing signal, while simultaneously detecting in real-time whether the motor stalls and determining whether to generate a window closing signal and trigger the locking motor based on the magnetic induction intensity value provided by the Hall effect sensor, thereby ensuring accurate recognition when the electric window is closed.
Smart Images

Figure CN116658032B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent door and window technology, and in particular to a method, device, equipment and medium for identifying door and window opening and closing based on Hall effect positioning. Background Technology
[0002] During the production of smart electric windows, an initial calibration is performed. This calibration aims to ensure that all products of the same model are in the same configuration state before being delivered to consumers, guaranteeing consistency in product functionality and performance. The default factory configuration is tested and verified to ensure optimal performance under normal use. This helps reduce problems caused by misconfiguration, improving product usability and user satisfaction.
[0003] During factory setup, smart motorized windows use various methods to control the opening and closing of the window sash and determine the locking position. The locking position is essentially the reference point for all motorized window opening actions. However, due to differences between the installation and production environments, errors may occur during installation. For example, when installing a smart motorized window in a room, installation errors may prevent the window from closing precisely to the intended position, resulting in inaccurate locking positions and hindering the accurate recognition of when the smart motorized window is closed. Summary of the Invention
[0004] Therefore, it is necessary to propose a door and window opening and closing identification method, device, equipment and medium based on Hall positioning to address the above problems, so as to solve the technical problem that installation errors may cause windows to fail to close accurately to the predetermined position, resulting in inaccurate locking position and failure to achieve accurate identification when intelligent electric windows are closed.
[0005] A method for identifying door and window switches based on Hall effect localization, the method comprising:
[0006] Receive window closing signal;
[0007] A drive command is generated based on the window closing signal, and the drive command is sent to the drive motor;
[0008] When the drive motor executes the drive command, it is monitored in real time whether the drive motor stalls.
[0009] If a stall occurs, the magnetic induction intensity value sent by the Hall sensor is acquired in real time, and the magnetic induction intensity value is compared with the magnetic induction intensity threshold. If the magnetic induction intensity value is not less than the magnetic induction intensity threshold, a window closing signal is generated and sent to the locking motor.
[0010] In one embodiment of the present invention, the step of detecting whether the drive motor stalls in real time when the drive motor executes the drive command further includes:
[0011] The current value of the drive motor is acquired in real time and compared with a current threshold. If the current value of the drive motor is greater than the current threshold, it is determined that a stall has occurred.
[0012] In one embodiment of the present invention, the step of detecting whether the drive motor stalls in real time when the drive motor executes the drive command further includes:
[0013] The current value of the drive motor is acquired in real time and compared with a current threshold. If the current value of the drive motor is not greater than the current threshold, it is determined that no stall occurs.
[0014] The drive motor is then monitored again in real time to check for stalling.
[0015] In one embodiment of the present invention, the method further includes:
[0016] Real-time detection of whether the drive motor is stalled;
[0017] If a blockage occurs;
[0018] When detecting the magnetic induction intensity value, the Hall sensor element installed on the window frame obtains the magnetic induction intensity of the magnetic components on the window sash in real time. Based on the magnetic induction intensity of the magnetic components, the Hall sensor element generates a voltage value and compares the real-time received voltage value with the voltage threshold.
[0019] If the received voltage value in real time is greater than the minimum voltage threshold, a window closing signal is generated and sent to the locking motor, which then moves to lock the window sash.
[0020] In one embodiment of the present invention, the method further includes:
[0021] Real-time detection of whether the drive motor is stalled;
[0022] If a blockage occurs;
[0023] When detecting the magnetic induction intensity value, the Hall sensor element installed on the window sash acquires the magnetic induction intensity conducted from the magnetic component on the window frame to the magnetic screw in real time. Based on the magnetic induction intensity on the magnetic screw, the Hall sensor element generates a voltage value and compares the real-time received voltage value with the voltage threshold.
[0024] If the received voltage value in real time is greater than the minimum voltage threshold, a window closing signal is generated and sent to the locking motor, which then moves to lock the window sash.
[0025] In one embodiment of the present invention, the step of generating a window closing signal and sending the window closing signal to the locking motor if the real-time received voltage value is greater than the minimum voltage threshold, and the locking motor moving to lock with the window sash, further includes:
[0026] When the window closing signal is sent to the locking motor, the axial direction of the magnetic screw is the first direction, and the locking motor on the window sash locks with the window sash along the first direction.
[0027] When the window closing signal is sent to the locking motor, the magnetic screw is aligned with the magnetic component.
[0028] In one embodiment of the present invention, a magnetic screw is disposed on a locking motor, and the locking motor is connected to a Hall sensor element.
[0029] When the Hall sensor detects the magnetic field on the magnetic screw, the locking motor outputs torque, which is transmitted to the handle assembly, and the handle assembly performs the locking action.
[0030] A door and window switch identification device based on Hall effect localization, the device comprising:
[0031] The receiving module is used to receive the window closing signal;
[0032] The instruction generation module generates drive instructions based on the window closing signal;
[0033] The detection module is used to detect stalled rotors.
[0034] The comparison module compares the magnetic flux density value with the magnetic flux density threshold.
[0035] The signal generation module is used to generate the window closing signal;
[0036] The sending module is used to send drive commands or window closing signals.
[0037] A computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the above-described method.
[0038] A computer device is characterized by comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the above-described method.
[0039] Implementing the embodiments of the present invention will have at least the following beneficial effects:
[0040] This invention provides a door and window opening / closing recognition method based on Hall effect positioning. The method receives a window closing signal; generates a drive command based on the closing signal and sends the drive command to a drive motor; when the drive motor executes the drive command, it detects in real-time whether the drive motor stalls. If stalling occurs, it acquires the magnetic induction intensity value sent by the Hall effect sensor in real-time and compares the magnetic induction intensity value with a magnetic induction intensity threshold. If the magnetic induction intensity value is not less than the magnetic induction intensity threshold, it generates a window closing signal and sends it to a locking motor. The server controls the drive motor to close the window based on the received window closing signal, while simultaneously detecting in real-time whether the motor stalls and determining whether to generate a window closing signal and trigger the locking motor based on the magnetic induction intensity value provided by the Hall effect sensor, thereby ensuring accurate recognition when the electric window is closed. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] in:
[0043] Figure 1 This is a flowchart of a door and window switch recognition method based on Hall effect localization in one embodiment;
[0044] Figure 2 A flowchart of a door and window switch recognition method based on Hall effect localization in another embodiment;
[0045] Figure 3 This is a flowchart of a door and window switch recognition method based on Hall effect localization in another embodiment;
[0046] Figure 4 This is a structural block diagram of a door and window switch recognition device based on Hall effect positioning in one embodiment;
[0047] Figure 5 This is a structural block diagram of a computer device in one embodiment;
[0048] Figure 6 This is a structural diagram of a door and window switch recognition device based on Hall effect positioning in one embodiment.
[0049] The door and window switch identification device based on Hall positioning includes: 10, receiving module, 11, instruction generation module, 12, detection module, 13, comparison module, 14, signal generation module, 15, and sending module; 200, computer equipment, 210, and memory; 220, magnetic screw, 31, magnetic component, 32, locking motor, 33, window sash, 34, window frame, 35, handle, and first direction A. Detailed Implementation
[0050] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0051] A method for identifying door and window switches based on Hall effect localization, the method comprising:
[0052] S101, Receive window closing signal;
[0053] S102. Generate a drive command based on the window closing signal and send the drive command to the drive motor;
[0054] S103. When the drive motor executes the drive command, it is necessary to detect in real time whether the drive motor is stalled.
[0055] S104. If a stall occurs, the magnetic induction intensity value sent by the Hall sensor is acquired in real time.
[0056] S105. Compare the magnetic induction intensity value with the magnetic induction intensity threshold. If the magnetic induction intensity value is not less than the magnetic induction intensity threshold;
[0057] S106 generates a window closing signal and sends the window closing signal to the locking motor.
[0058] Example 1:
[0059] Please refer to Figures 1 to 3In this embodiment, after receiving the window-closing signal, the server generates a corresponding drive command to control the drive motor to perform the window-closing action. The server then sends this drive command to the drive motor to initiate the window-closing process. During the execution of the drive command, the server performs real-time monitoring to determine if the drive motor is stalled. If stalling is detected, the server acquires the magnetic field strength value sent by the Hall effect sensor associated with the drive motor. The Hall effect sensor (located on the window frame) detects the magnetic field strength around it (i.e., the magnetic field strength of the magnetic components on the window sash) and converts it into a voltage signal. The server compares the acquired magnetic field strength value with a preset magnetic field strength threshold. If the acquired magnetic field strength value is not less than the threshold, the server generates a window-closing signal, indicating that the window is fully closed and has reached the locked position. The server sends the window-closing signal to the locking motor, triggering its action to lock the window in the locked position, ensuring the window's safety and airtightness. The server controls the drive motor to close the window based on the received window closing signal. At the same time, it detects whether the motor stalls in real time and determines whether to generate a window closing signal and trigger the locking motor based on the magnetic induction intensity value provided by the Hall sensor, thereby ensuring accurate recognition when the electric window is closed.
[0060] It should be noted that the server receives window closing signals from the outside, which may be sent via buttons, remote controls, or other control devices; drive commands include parameters such as motor speed, direction, and running time; stall refers to a situation where the motor cannot rotate freely or its movement is obstructed, such as being blocked by human intervention, making it impossible for the window sash to close; the magnetic induction intensity threshold is set according to specific circumstances and is used to determine whether the window sash is aligned with the window frame (i.e., whether the drive motor moves the window sash to the locked position).
[0061] In one embodiment of the present invention, the step of real-time detection of whether the drive motor is stalled when the drive motor executes a drive command further includes:
[0062] S201. Obtain the current value of the drive motor in real time;
[0063] S202. Compare the real-time current value of the drive motor with the current threshold. If the current value of the drive motor is greater than the current threshold;
[0064] S203 indicates a stalled engine.
[0065] S204 then acquires the magnetic induction intensity value sent by the Hall sensor in real time.
[0066] Real-time detection of whether the drive motor is stalled;
[0067] If a blockage occurs;
[0068] When detecting the magnetic induction intensity value, the Hall sensor element installed on the window frame obtains the magnetic induction intensity of the magnetic components on the window sash in real time. Based on the magnetic induction intensity of the magnetic components, the Hall sensor element generates a voltage value and compares the real-time received voltage value with the voltage threshold.
[0069] If the real-time received voltage value is greater than the minimum voltage threshold, a window closing signal is generated and sent to the locking motor, which then moves to lock the window sash.
[0070] Example 2:
[0071] Please refer to Figure 2 In this embodiment, the server acquires the current value of the drive motor in real time through a current sensor or other current monitoring device. The current sensor can convert the current into a corresponding voltage or digital signal for the server to read and process. The server compares the real-time acquired drive motor current value with a preset current threshold. If the real-time acquired drive motor current value is greater than the current threshold, the server determines that a stall has occurred. In the case of a stall, it is necessary to further detect the magnetic induction intensity of the magnetic screw on the window sash. Here, a Hall effect sensor installed on the window frame is used to acquire the magnetic induction intensity of the magnetic screw installed on the window sash in real time, that is, the magnetic force of the magnetic component is conducted to the magnetic screw. When the magnetic field range of the magnetic screw is within the detection range of the Hall effect sensor, the Hall effect sensor generates a corresponding voltage value based on the magnetic induction intensity of the magnetic screw. Then, the server compares the real-time received voltage value with a preset voltage threshold. If the real-time received voltage value is greater than the minimum voltage threshold, it indicates that the window sash and the locking motor have reached the locked position. In this case, the server generates a window closing signal and sends the window closing signal to the locking motor. The locking motor activates upon receiving a window closing signal, ensuring the window sash locks correctly with the locking points. By real-time monitoring of the drive motor's stall status and the magnetic induction intensity of the magnetic components on the window sash, the accuracy of the window sash's position and locking status is ensured, guaranteeing precise identification when the electric window closes. This helps ensure the window's security and airtightness, providing excellent waterproofing, sound insulation, and energy efficiency, while protecting the window and its surroundings from potential damage or safety risks.
[0072] When a motor stalls, the increased resistance leads to a greater load and a significant increase in current. By monitoring the motor's current in real time and comparing it to a current threshold, stalling can be detected promptly. Stalling can be caused by various factors, such as mechanical failure, obstruction by objects, or motor overload. Early detection of stalling can trigger appropriate protective measures, such as stopping the motor, issuing alarms, or taking other emergency measures to prevent further equipment damage or hazards. This improves server security and reliability and extends the lifespan of the drive motor.
[0073] It should be noted that the current threshold is set according to specific circumstances, usually based on the current range under normal operating conditions; the drive motor is a rocker arm motor.
[0074] In one embodiment of the present invention, the step of real-time detection of whether the drive motor is stalled when the drive motor executes a drive command further includes:
[0075] S201. Obtain the current value of the drive motor in real time;
[0076] S202. Compare the real-time current value of the drive motor with the current threshold. If the current value of the drive motor is not greater than the current threshold;
[0077] S303 indicates that no stall occurs, and the drive motor is checked again in real time to see if a stall occurs.
[0078] Please refer to Figure 2 In this embodiment, the server can acquire the current value of the drive motor in real time through a current sensor or other current monitoring device. The server compares the real-time acquired drive motor current value with a preset current threshold. The purpose of the comparison is to determine whether the current value is lower than or equal to the current threshold. If the real-time acquired drive motor current value is not greater than the current threshold, it can be determined that no stall has occurred. At this time, the server needs to further detect in real time to determine whether the drive motor has actually stalled. If a stall has occurred, the next step is to acquire and compare the magnetic induction intensity value of the Hall sensor to determine whether the window sash has accurately moved to the locked position.
[0079] In one embodiment of the present invention, the method further includes:
[0080] Real-time detection of whether the drive motor is stalled;
[0081] If a blockage occurs;
[0082] When detecting the magnetic induction intensity value, the Hall sensor element installed on the window frame obtains the magnetic induction intensity of the magnetic components on the window sash in real time;
[0083] S401. Real-time acquisition of the magnetic induction intensity of the magnetic components on the window sash, and generation of a voltage value by the Hall sensor element based on the magnetic induction intensity of the magnetic components.
[0084] S402. Compare the real-time received voltage value with the voltage threshold.
[0085] S106. If the real-time received voltage value is greater than the minimum voltage threshold, a window closing signal is generated and sent to the locking motor.
[0086] S107, The locking motor moves until it locks with the window sash.
[0087] In one embodiment of the present invention, the method further includes:
[0088] Real-time detection of whether the drive motor is stalled;
[0089] If a blockage occurs;
[0090] When detecting the magnetic induction intensity value, the Hall sensor element installed on the window sash 34 acquires the magnetic induction intensity conducted from the magnetic component 32 on the window frame 35 to the magnetic screw 31 in real time, and the Hall sensor element generates a voltage value based on the magnetic induction intensity on the magnetic screw 31.
[0091] The real-time received voltage value is compared with the voltage threshold.
[0092] If the real-time received voltage value is greater than the minimum voltage threshold, a window closing signal is generated and sent to the locking motor 33, which then moves to lock with the window sash 34.
[0093] In one embodiment of the present invention, when a window closing signal is sent to the locking motor 33, the magnetic screw 31 is aligned with the magnetic component 32.
[0094] In one embodiment of the present invention, if the voltage value received in real time is greater than the minimum voltage threshold, a window closing signal is generated and sent to the locking motor 33. The step of the locking motor 33 moving to lock with the window sash 34 further includes:
[0095] When a window closing signal is sent to the locking motor 33, the axial direction of the magnetic screw 31 is the first direction A, and the locking motor 33 on the window sash 34 locks with the window sash 34 along the first direction A.
[0096] Example 3:
[0097] Please refer to Figures 3-6In this embodiment, the server monitors the operating status of the drive motor to detect whether a stall has occurred in real time. If a stall occurs, the magnetic induction intensity of the magnetic screw 31 on the window sash 34 needs to be further detected. A Hall effect sensor installed on the window sash 34 is used to acquire the magnetic induction intensity of the magnetic screw 31 in real time, i.e., the magnetic force of the magnetic component 32 is conducted to the magnetic screw 31. When the magnetic field of the magnetic screw 31 is within the detection range of the Hall effect sensor, the Hall effect sensor generates a corresponding voltage value based on the magnetic induction intensity of the magnetic screw 31. The server then compares the real-time received voltage value with a preset voltage threshold. If the real-time received voltage value is greater than the minimum voltage threshold, it indicates that the window sash 34 and the locking motor 33 have reached the locked position. In this case, the server generates a window closing signal and sends it to the locking motor 33. Upon receiving the window closing signal, the locking motor 33 starts, ensuring that the window sash 34 and the locking point are correctly locked in the locked position. When a window closing signal is sent to the locking motor 33, the magnetic screw 31 aligns with the magnetic component 32, causing the locking motor 33 on the window sash 34 to lock with the window sash 34 along the first direction A. This ensures that the window sash 34 is accurately aligned and properly locked with the locking motor 33 when closed, guaranteeing the accuracy of the window sash 34's position and locking status. This significantly improves the window's sealing and security, preventing the penetration of gas, moisture, noise, or other external factors. When the locking motor 33 locks with the window sash 34 along the first direction A, it applies sufficient force to ensure a secure lock. This helps enhance the window's stability and anti-theft performance, preventing the window from loosening or being accidentally opened under external force. The unified axial direction and locking method simplify and standardize the installation and operation process. Installers can correctly position and install the locking motor 33 according to design requirements. By setting the axial direction of the magnetic screw 31 and the locking direction of the locking motor 33, the window sash 34 can be precisely aligned with the locking motor 33 when closed, achieving a secure lock and providing better window sealing, security, and ease of operation. By real-time detection of the drive motor's stall status and the magnetic induction intensity of the magnetic components on the window sash 34, the accuracy of the window sash 34's position and locking status can be ensured, thus guaranteeing accurate identification when the electric window is closed. This helps ensure the window's security and sealing, provides good waterproofing, sound insulation, and energy efficiency, and protects the window and its surrounding environment from potential damage or safety risks.
[0098] It should be noted that if the real-time received voltage value is less than the minimum voltage threshold, it means that the Hall sensor element has not sensed the magnetic induction of the magnetic screw 31, that is, the window sash 34 and the locking motor 33 have not reached the locked position. The minimum voltage threshold is manually preset according to the installation environment and the window type used.
[0099] When the Hall effect sensor detects the magnetic field on the magnetic screw 31, the locking motor 33 outputs torque, which is transmitted to the handle 36 assembly, causing the handle 36 assembly to perform a locking action. The locking motor 33 is electrically connected to the Hall effect sensor and is arranged side by side with it. The transmission assembly is connected to the output shaft of the locking motor 33 and is located on the side of the locking motor 33 opposite to the Hall effect sensor. The handle 36 assembly is connected to the transmission assembly and is located on the side of the transmission assembly opposite to the Hall effect sensor.
[0100] The magnetic screw 31 is mounted on the locking motor 33, and the locking motor 33 is electrically connected to the Hall sensor element.
[0101] When the Hall sensor detects the magnetic field on the magnetic screw 31, the locking motor 33 outputs torque, which is transmitted to the handle 36 assembly, and the handle 36 assembly performs the locking action.
[0102] Among them, the magnetic component 32 is a permanent magnet; a transmission component is also provided between the locking motor 33 and the handle 36 assembly, and the locking motor 33 is connected to the handle 36 assembly through the transmission component; the transmission component is a gear set.
[0103] By configuring the permanent magnet with the magnetic screw 31, when the window frame 35 and the window sash 34 are in the closed state, the magnetic screw 31 and the permanent magnet are positioned opposite each other. By setting a Hall sensor element corresponding to the magnetic screw 31, when the magnetic screw 31 and the permanent magnet are facing each other, the permanent magnet conducts the magnetic field to the magnetic screw 31. The Hall sensor element detects the magnetic field conducted to the magnetic screw 31 and determines that the window frame 35 and the window sash 34 are in the closed state. Thus, without the need for additional holes to install position sensors, an integrated, highly reliable, easy-to-install, and low-cost locking and positioning component can be achieved.
[0104] It should be noted that the magnetic induction intensity of the magnetic component on the window sash 34 is acquired in real time, and a voltage value is generated by the Hall sensor element based on the magnetic induction intensity of the magnetic component; the voltage value received in real time is then used.
[0105] If the real-time received voltage value is less than the voltage threshold, and no voltage value of the Hall sensor is received within the first time threshold, or the voltage value of the Hall sensor received within the first time threshold is less than the voltage threshold.
[0106] S501 then generates an abnormal signal and a stop rotation signal.
[0107] S502, and sends a stop rotation signal to the drive motor; wherein the first time threshold is the time required from the start of the window opening and closing to the window closing.
[0108] A Hall effect-based door and window switch identification device 10, comprising:
[0109] Receiver module 11 is used to receive the window closing signal;
[0110] Instruction generation module 12 generates drive instructions based on the window closing signal;
[0111] Detection module 13 is used to detect stall.
[0112] Comparison module 14 compares the magnetic induction intensity value with the magnetic induction intensity threshold.
[0113] Signal generation module 15 is used to generate a window closing signal;
[0114] The sending module 16 is used to send drive commands or window closing signals.
[0115] Example 4:
[0116] Please refer to Figure 4 In this embodiment, after receiving the window closing signal through the receiving module 11, the server generates a corresponding drive command according to the command generation module 12 to control the drive motor to perform the window closing action. Then, the server sends the drive command to the drive motor through the sending module 16 to start the window closing process. During the execution of the drive command by the drive motor, the server uses the detection module 13 to detect whether the drive motor is stalled in real time. If the drive motor is detected to be stalled, the server will obtain the magnetic induction intensity value sent by the Hall sensor associated with the drive motor in real time. The comparison module 14 compares the obtained magnetic induction intensity value with the preset magnetic induction intensity threshold. If the real-time obtained magnetic induction intensity value is not less than the magnetic induction intensity threshold, the server will generate a window closing signal through the signal generation module 15 and send the window closing signal to the locking motor through the sending module 16 to trigger the locking motor to work. The locking motor locks the window sash in the locked position to ensure the safety and airtightness of the window. The server controls the drive motor to close the window based on the received window closing signal. At the same time, it detects whether the motor stalls in real time and determines whether to generate a window closing signal and trigger the locking motor based on the magnetic induction intensity value provided by the Hall sensor, thereby ensuring accurate recognition when the electric window is closed.
[0117] A computer-readable storage medium storing a computer program, which, when executed by a processor 210, causes the processor 210 to perform the steps of the above-described method.
[0118] Example 5:
[0119] Please refer to Figure 5Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium. When executed, the program can include the processes of the embodiments described above. Any references to memory 220, storage, database, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory 220. Non-volatile memory 220 may include read-only memory 220 (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory 220 may include random access memory 220 (RAM) or external cache memory 220. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0120] A computer device 200 is characterized in that it includes a memory 220 and a processor 210, wherein the memory 220 stores a computer program, and when the computer program is executed by the processor 210, the processor 210 performs the steps of the above-described method.
[0121] Example 6:
[0122] Figure 5 An internal structural diagram of a computer device 200 in one embodiment is shown. This computer device 200 can specifically be a terminal or a server. Figure 5 As shown, the computer device 200 includes a processor 210, a memory 220, and a network interface (not shown) connected via a system bus. The memory 220 includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor 210, this computer program enables the processor 210 to implement a Hall effect-based door and window opening / closing recognition method. The internal memory 220 may also store a computer program. When executed by the processor 210, this computer program enables the processor 210 to implement the Hall effect-based door and window opening / closing recognition method. Those skilled in the art will understand that... Figure 5The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 200 to which the present application is applied. The specific computer device 200 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0123] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0124] The above embodiments merely illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims. Please enter the specific implementation content section.
Claims
1. A method for identifying door and window openings based on Hall effect localization, characterized in that, The method includes: Receive window closing signal; A drive command is generated based on the window closing signal, and the drive command is sent to the drive motor; When the drive motor executes the drive command, it is monitored in real time whether the drive motor is stalled, including: The current value of the drive motor is acquired in real time and compared with a current threshold. If the current value of the drive motor is greater than the current threshold, it is determined that a stall has occurred. If a stall occurs, the magnetic induction intensity value sent by the Hall sensor is acquired in real time, and the magnetic induction intensity value is compared with the magnetic induction intensity threshold. If the magnetic induction intensity value is not less than the magnetic induction intensity threshold, a window closing signal is generated and sent to the locking motor. The method further includes: Real-time detection of whether the drive motor is stalled; If a blockage occurs; When detecting the magnetic induction intensity value, the Hall sensor element installed on the window sash acquires the magnetic induction intensity conducted from the magnetic component on the window frame to the magnetic screw in real time. Based on the magnetic induction intensity on the magnetic screw, the Hall sensor element generates a voltage value and compares the real-time received voltage value with the voltage threshold. If the received voltage value in real time is greater than the minimum voltage threshold, a window closing signal is generated and sent to the locking motor, which then moves to lock the window sash.
2. The door and window opening / closing identification method based on Hall effect positioning according to claim 1, characterized in that, The step of detecting whether the drive motor stalls in real time when the drive motor executes the drive command further includes: The current value of the drive motor is acquired in real time and compared with a current threshold. If the current value of the drive motor is not greater than the current threshold, it is determined that no stall occurs. The drive motor is then monitored again in real time to check for stalling.
3. The door and window switch recognition method based on Hall effect localization according to claim 1, characterized in that, The method further includes: Real-time detection of whether the drive motor is stalled; If a blockage occurs; When detecting the magnetic induction intensity value, the Hall sensor element installed on the window frame obtains the magnetic induction intensity of the magnetic components on the window sash in real time. Based on the magnetic induction intensity of the magnetic components, the Hall sensor element generates a voltage value and compares the real-time received voltage value with the voltage threshold. If the received voltage value in real time is greater than the minimum voltage threshold, a window closing signal is generated and sent to the locking motor, which then moves to lock the window sash.
4. The door and window switch recognition method based on Hall effect localization according to claim 1, characterized in that, The step of generating a window closing signal and sending the window closing signal to the locking motor if the real-time received voltage value is greater than the minimum voltage threshold, and the locking motor moving to lock with the window sash, further includes: When the window closing signal is sent to the locking motor, the axial direction of the magnetic screw is the first direction, and the locking motor on the window sash locks with the window sash along the first direction; When the window closing signal is sent to the locking motor, the magnetic screw is aligned with the magnetic component.
5. The door and window opening / closing identification method based on Hall effect positioning according to claim 1, characterized in that, A magnetic screw is mounted on the locking motor, which is connected to a Hall effect sensor. When the Hall sensor detects the magnetic field on the magnetic screw, the locking motor outputs torque, which is transmitted to the handle assembly, and the handle assembly performs the locking action.
6. A door and window opening / closing identification device based on Hall effect positioning, characterized in that, The Hall effect-based door and window switch recognition device includes: The receiving module is used to receive the window closing signal; The instruction generation module generates drive instructions based on the window closing signal; The detection module is used to detect stalled rotors. The comparison module compares the magnetic flux density value with the magnetic flux density threshold. The signal generation module is used to generate the window closing signal; The sending module is used to send drive commands or window closing signals; The Hall effect-based door and window switch recognition device performs the following steps: Receive window closing signal; A drive command is generated based on the window closing signal, and the drive command is sent to the drive motor; When the drive motor executes the drive command, it is monitored in real time whether the drive motor is stalled, including: The current value of the drive motor is acquired in real time and compared with a current threshold. If the current value of the drive motor is greater than the current threshold, it is determined that a stall has occurred. If a stall occurs, the magnetic induction intensity value sent by the Hall sensor is acquired in real time, and the magnetic induction intensity value is compared with the magnetic induction intensity threshold. If the magnetic induction intensity value is not less than the magnetic induction intensity threshold, a window closing signal is generated and sent to the locking motor. The steps also include: Real-time detection of whether the drive motor is stalled; If a blockage occurs; When detecting the magnetic induction intensity value, the Hall sensor element installed on the window sash acquires the magnetic induction intensity conducted from the magnetic component on the window frame to the magnetic screw in real time. Based on the magnetic induction intensity on the magnetic screw, the Hall sensor element generates a voltage value and compares the real-time received voltage value with the voltage threshold. If the received voltage value in real time is greater than the minimum voltage threshold, a window closing signal is generated and sent to the locking motor, which then moves to lock the window sash.
7. A computer-readable storage medium, characterized in that, The device stores a computer program that, when executed by a processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 5.
8. A computer device, characterized in that, It includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Window protection cabin door structure for airborne opto-electronic platform
CN111197449A
Electric tail door stay bar control method and electric tail door system
CN112112505A
Automobile window anti-pinch control method and system
CN115788210A