WO2019085321A1 - Air conditioner opening/closing structure control method, air conditioner and readable storage medium - Google Patents

Air conditioner opening/closing structure control method, air conditioner and readable storage medium Download PDF

Info

Publication number
WO2019085321A1
WO2019085321A1 PCT/CN2018/075668 CN2018075668W WO2019085321A1 WO 2019085321 A1 WO2019085321 A1 WO 2019085321A1 CN 2018075668 W CN2018075668 W CN 2018075668W WO 2019085321 A1 WO2019085321 A1 WO 2019085321A1
Authority
WO
WIPO (PCT)
Prior art keywords
opening
closing structure
pulse signal
closing
time threshold
Prior art date
Application number
PCT/CN2018/075668
Other languages
French (fr)
Chinese (zh)
Inventor
袁光
Original Assignee
广东美的制冷设备有限公司
美的集团股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东美的制冷设备有限公司, 美的集团股份有限公司 filed Critical 广东美的制冷设备有限公司
Publication of WO2019085321A1 publication Critical patent/WO2019085321A1/en

Links

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/30Control or safety arrangements for purposes related to the operation of the system, e.g. for safety or monitoring
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/62Control or safety arrangements characterised by the type of control or by internal processing, e.g. using fuzzy logic, adaptive control or estimation of values
    • F24F11/63Electronic processing
    • F24F11/64Electronic processing using pre-stored data
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/70Control systems characterised by their outputs; Constructional details thereof

Definitions

  • the invention relates to the technical field of household electrical appliances, in particular to a method for controlling opening and closing structure of an air conditioner, an air conditioner and a readable storage medium.
  • the door panel of the air conditioner will continue to be closed when it encounters obstacle detection. If the obstacle is part of the user's body, it will cause harm to the user.
  • Traditional obstacle detection methods include motor drive current detection method, speed frequency detection method, and resistance detection method. The implementation of these methods requires a lot of testing mechanisms, and the use of air conditioning door panels requires additional cost. At present, the method for detecting obstacles in the closing of the air conditioner door panel is costly and the detection effect is poor.
  • the main object of the present invention is to provide a method for controlling opening and closing structure of an air conditioner, an air conditioner, and a readable storage medium, which aim to solve the problem that the method for detecting obstacles in the closing of an air conditioner door panel is costly and the detection effect is poor. .
  • an aspect of the present invention provides a method for controlling opening and closing structure of an air conditioner, comprising the following steps:
  • the control motor drives the opening and closing structure to move in the opening direction thereof.
  • the method further includes:
  • the control motor drives the opening and closing structure to move in the opening direction thereof.
  • the step of determining whether the number of driving steps of the driving motor of the current opening and closing structure is within a preset step counting range comprises:
  • the step of determining whether the number of driving steps of the pulse signal exceeding the time threshold is within a preset step count range comprises:
  • the step of determining whether the duration of each pulse signal detected by the detector exceeds a set time threshold during the closing of the control opening and closing structure comprises:
  • the pulse detector is enabled to detect the pulse signal
  • the method further includes:
  • the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
  • the method further includes:
  • the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
  • the method further includes:
  • the step of controlling the motor to move the opening and closing structure to the closing direction is performed.
  • an air conditioner comprising: an opening and closing structure, a memory and a processor connected to the opening and closing structure, and being stored on the memory and being The opening and closing structure control program of the air conditioner running on the processor, when the opening and closing structure control program of the air conditioner is executed by the processor, implements the opening and closing structure control method of the air conditioner as described above.
  • another aspect of the present invention provides a readable storage medium on which an opening and closing structure control program of an air conditioner is stored, and an opening and closing structure control program of the air conditioner is The opening and closing structure control method of the air conditioner as described above is implemented when the processor is executed.
  • the invention detects the pulse duration in the process of closing the opening and closing structure of the air conditioner by the detector, and determines whether the current driving step of the driving motor is within the preset step counting range when the pulse duration exceeds the set time threshold. If it is determined that the opening and closing structure is blocked by the preset, the control motor drives the opening and closing structure to move in the opening direction thereof.
  • the detector of the simple magnetic ring + Hall sensor it is detected whether the pulse time is timed out, and after the timeout, it is detected whether the number of steps of the driving motor is detected in the preset step counting range, and the detection cost is reduced, thereby reducing the detection cost.
  • whether the detection is blocked by the pulse duration combined with the driving step number makes the detection sensitivity high, improves the detection accuracy and speed, and reduces the damage.
  • FIG. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a first embodiment of a method for controlling opening and closing structure of an air conditioner according to the present invention
  • FIG. 3 is a schematic structural diagram of a detector according to an embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of a second embodiment of a method for controlling opening and closing structure of an air conditioner according to the present invention.
  • FIG. 5 is a schematic flow chart of determining whether the duration of each pulse signal detected by the detector exceeds a set time threshold during the process of controlling the opening and closing of the opening and closing structure according to an embodiment of the present invention
  • FIG. 6 is a schematic flow chart of a third embodiment of a method for controlling opening and closing structure of an air conditioner according to the present invention.
  • Fig. 7 is a flow chart showing the fourth embodiment of the opening and closing structure control method of the air conditioner of the present invention.
  • the main solution of the embodiment of the present invention is: receiving a closing instruction of the opening and closing structure, controlling the motor to drive the opening and closing structure to move in the closing direction thereof; and determining each pulse signal detected by the detector during the closing process of controlling the opening and closing structure; Whether the duration exceeds the set time threshold; if it exceeds, it determines whether the driving step of the driving motor of the current opening and closing structure is within the preset step counting range; when the driving step of the pulse signal exceeding the time threshold is in advance When the step count is within the range, it is determined that the opening and closing structure is blocked, and the control motor drives the opening and closing structure to move in the opening direction thereof.
  • the invention provides a solution for detecting the pulse duration during the closing process of the air conditioner opening and closing structure by the detector, and determining whether the current driving step of the driving motor is preset when the pulse duration exceeds the set time threshold.
  • the control motor drives the opening and closing structure to move in the opening direction.
  • the detector of the simple magnetic ring + Hall sensor it is detected whether the pulse time is timed out, and after the timeout, it is detected whether the number of steps of the driving motor is detected in the preset step counting range, and the detection cost is reduced, thereby reducing the detection cost.
  • whether the detection is blocked by the pulse duration combined with the driving step number makes the detection sensitivity high, improves the detection accuracy and speed, and reduces the damage.
  • FIG. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention.
  • the electronic device in the embodiment of the present invention may be an air conditioner, or a control device such as a PC, a smart phone, a tablet computer, a portable computer, a remote controller, and the like connected to the air conditioner.
  • a control device such as a PC, a smart phone, a tablet computer, a portable computer, a remote controller, and the like connected to the air conditioner.
  • the other devices acquire information detected by the detector provided on the air conditioner to control the opening/closing of the opening and closing structure.
  • the electronic device can include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is used to implement connection communication between these components.
  • the user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface.
  • the network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
  • the memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
  • the electronic device may further include a camera, RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, detectors (magnetic rings + Hall sensors), etc.
  • sensors such as image sensors, infrared sensors and other sensors.
  • the gravity acceleration sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching).
  • terminal structure shown in FIG. 1 does not constitute a limitation on an electronic device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • a memory 1005 as a computer readable storage medium may include an operating system, a network communication module, a user interface module, and an opening and closing structure control application of the air conditioner.
  • the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server;
  • the user interface 1003 is mainly used to connect the client (user end), and perform data communication with the client;
  • the processor 1001 can be used to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and performs the following operations:
  • the control motor drives the opening and closing structure to move in the opening direction thereof.
  • the processor 1001 may be configured to call the opening of the air conditioner stored in the memory 1005.
  • the structure controls the application and does the following:
  • the control motor drives the opening and closing structure to move in the opening direction thereof.
  • processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and perform the following operations:
  • processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and perform the following operations:
  • processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and perform the following operations:
  • the pulse detector is enabled to detect the pulse signal
  • the processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and execute the following operating:
  • the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
  • the processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and execute the following operating:
  • the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
  • the processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and perform the following operations:
  • the step of controlling the motor to move the opening and closing structure to the closing direction is performed.
  • an embodiment of the present invention provides a method for controlling opening and closing structure of an air conditioner, and a method for controlling opening and closing structure of the air conditioner includes:
  • Step S10 receiving a closing instruction of the opening and closing structure, and controlling the motor to drive the opening and closing structure to move in a closing direction thereof;
  • the air conditioner is preferably a cabinet type air conditioner
  • the cabinet type air conditioner comprises a door panel and a door panel moving device and a door panel driving device
  • the door panel is connected with the door panel moving device
  • the door panel moving device is connected with the door panel driving device
  • the door panel is connected.
  • the driving device is connected to the controller of the air conditioner
  • the door panel moving device is driven by the control panel of the controller under the driving of the door panel driving device.
  • the door panel is an opening and closing structure of the air conditioner, and the door panel is generally arranged for closing and opening of the air outlet of the air conditioner, and the dust enters the air conditioner when the air conditioner is not operated.
  • the opening and closing structure may also be other structures that need to be opened or closed or opened and closed.
  • the air conditioner is not limited to the cabinet type air conditioner, and may be other air conditioners having an opening and closing (air guiding structure) hanging machine.
  • a cabinet type air conditioner is taken as an example, and the opening and closing structure is described by taking a door panel as an example.
  • the air conditioner runs according to the instruction of the user, or automatically starts according to the parameter set in advance, and the operating parameter can be adjusted according to the environmental condition or the instruction of the user requirement during the running process.
  • the air conditioner is turned off, the door panel needs to be closed.
  • the controller sends a control command (signal) to close the door panel and receive the closing command of the opening and closing structure.
  • the control motor After receiving the closing command, the control motor drives the opening and closing structure to move in the closing direction thereof. If the door panel of the air conditioner is open at this time, it is controlled to move in the direction of closing the door.
  • the door panel may be a single door or a double door.
  • the single door only needs to control the door panel to move in the closing direction, and the double door is the relative movement of the two opposite door panels.
  • the relative movements close to a set position and close, and close each other.
  • the connection can be one of toothing, snapping or fitting.
  • Step S20 in the process of controlling the closing of the opening and closing structure, determining whether the duration of each pulse signal detected by the detector exceeds a set time threshold
  • the detector detects that the signal pulse is: the detector includes a magnetic component, and the magnetic component is fixed on the opening and closing structure, the magnetic component has P N magnetic poles and Q S magnetic poles, wherein P , Q is an integer greater than 1; a Hall detecting component, the a Hall detecting components are fixed on the air conditioner body, and the a Hall detecting component is disposed close to the magnetic component, the a The sensing component senses a magnetic change of the magnetic component as the opening and closing structure moves to generate an x-way sensing signal, the sensing model being a signal pulse.
  • a magnetic ring + Hall sensor that detects the closing of the air conditioner opening and closing structure is provided, and the number of magnetic poles of the magnetic ring is increased to the maximum, so that the number of magnetic poles can be maximized under the premise of being sensed by the Hall sensor, which can further reduce the reaction time.
  • the magnetic pole + Hall sensor is a detector, and the pulse detected by the Hall sensor during the closing process is detected by the detector during the closing process of the air conditioner controlling the opening and closing structure, and each pulse is judged every time a complete pulse is detected. Whether the duration of the signal exceeds a set time threshold; the time threshold is set to Tm*k, k>1, preferably 1.05, for the maximum value Tm of all pulse durations in the normal shutdown of the barrier-free operation.
  • the magnetic ring is no longer mounted on the driving gear, but a high-speed gear is separately used to detect whether the door plate is blocked, and the detecting magnetic ring is mounted on the door panel, and the gear and the electrode gear pass through. Tooth engagement can be n times the rotational speed of the electrode shaft, n>1. At this time, the detection threshold of the signal pulse time becomes 1/n of the original when it is mounted on the drive gear, so that the sensitivity is increased, and it is possible to quickly detect whether or not it is blocked and prevent further damage.
  • Step S30 if it is exceeded, determining whether the driving step of the driving motor of the current opening and closing structure is within a preset step counting range;
  • the driving step of the driving motor of the current opening and closing structure is within a preset step counting range, and the preset step counting range is a few or dozens of driving steps closest to the closing position to the position.
  • the preset step count range is 8-90.
  • the driving motor of the opening and closing structure is a stepping motor, and the stepping motor rotates by the change of the driving pulse.
  • Each change is called a step, and each step corresponds to an angle of the rotation of the motor, and the driving can drive the door panel to advance a certain distance.
  • the door panel travels the same distance.
  • the ratio of the number of driving steps to the number of output signal pulses is approximately tens or even hundreds of times.
  • Determining whether the number of driving steps of the driving motor of the current opening and closing structure is within a preset step counting range comprises: determining a counting number of a pulse count of the pulse signal exceeding the time threshold; acquiring the first preset distance from the closing position of the closing door Determining the number of steps; determining whether the counting number is within the first preset step; if so, determining that the driving step of the pulse signal exceeding the time threshold is within the first preset step counting range; Otherwise, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the first preset step count range.
  • the groove depth d, the gear radius r, and the motor rotation angle corresponding to each driving step is deg (unit: radians), then x takes the value d/(r*deg)+p, p takes a non-negative integer, if present
  • the distance needs to be converted.
  • x is preferably 5 ⁇ 300, and x should be as small as possible when the door is closed and the obstacle is met.
  • the step of determining whether the number of driving steps of the pulse signal exceeding the time threshold is within a preset step counting range comprises: determining a counting number of driving steps of the pulse signal exceeding the time threshold; acquiring the opening door a second step counting range of the starting position preset distance; determining whether the counting number is outside the second step counting range; if yes, determining that the driving step of the pulse signal exceeding the time threshold is in the second pre- The step count range is set; if not, the number of driving steps of the pulse signal exceeding the time threshold is determined not to be within the second preset step count range.
  • the number of driving steps of the door movement is measured by the experiment, and the shielding pulse s is set according to the specific situation of the door closing door, and the x range is 1 ⁇ s ⁇ A, if there is a docking groove when the door panel is closed, s can be set to the number of pulses generated by the groove depth. For example, if the door panel has no docking groove, it is directly flat or similar to the direct flat pair, then s is preferably 5 ⁇ 30, and s should take the minimum value when the door is closed and the obstacle is met. If the pulse duration exceeds the set time threshold and the pulse count belongs to a range smaller than A-s, that is, outside the range of the mask, it is determined that an obstacle or a grip is encountered.
  • step S40 when the driving step of the pulse signal exceeding the time threshold is within the preset step counting range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
  • the control motor drives the opening and closing structure to move in the opening direction thereof.
  • the alarm device When the opening and closing structure is blocked, the alarm device may be alarmed by the set alarm device, or the alarm information may be sent to the third-party terminal connected thereto through the Internet of Things, so that the third-party terminal user knows that the air conditioner is blocked, and the application scenario is: When the child operates the cabinet air conditioner, the alarm of the child's hand is sent to the guardian's mobile phone, and the guardian is reminded to check in time to prevent further damage to the child.
  • the opening and closing structure of the control air conditioner continues to move in the closing direction.
  • the detector detects the pulse duration during the closing process of the air conditioner opening and closing structure, and when the pulse duration exceeds the set time threshold, it is determined whether the current driving step of the driving motor is in the preset step counting range. If the preset opening and closing structure is blocked by the preset, the control motor drives the opening and closing structure to move in the opening direction.
  • the detector of the simple magnetic ring + Hall sensor it is detected whether the pulse time is timed out, and after the timeout, it is detected whether the number of steps of the driving motor is detected in the preset step counting range, and the detection cost is reduced, thereby reducing the detection cost.
  • whether the detection is blocked by the pulse duration combined with the driving step number makes the detection sensitivity high, improves the detection accuracy and speed, and reduces the damage.
  • the exceeding in order to further improve the accuracy of the detection of the opening and closing structure, if the exceeding is performed, it is determined whether the number of driving steps of the driving motor of the current opening and closing structure is counted in a preset step. After the steps in the scope, it also includes:
  • Step S50 when the number of driving steps of the pulse signal exceeding the time threshold is within the first preset counting range, determining whether the pulse count of the pulse signal whose driving step exceeds the preset pulse counting range is within the preset pulse counting range;
  • step S60 when the pulse count of the pulse signal whose driving step exceeds the preset step count range is within the preset pulse count range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
  • the judgment of the pulse count is further increased to further avoid the detection error. At this time, it is first determined whether the current driving step number is within the preset step counting range, and when the driving step number is within the preset step counting range, it is determined whether the pulse count of the pulse signal exceeding the time threshold is at the preset counting.
  • the pulse signal of the preset counting range is the pulse signal closest to the position of the closing door, and the number of driving steps is combined with the number of pulses to further improve the detection accuracy.
  • the process of determining whether the pulse count of the pulse signal whose driving step exceeds the preset step counting range is within the preset pulse counting range includes: determining a counting number of the pulse count of the pulse signal whose driving step exceeds the preset step counting range; Obtaining a pulse counting range of a preset distance from the closed position of the door; determining whether the counting number is within the pulse counting range; if yes, determining a pulse count of the pulse signal whose driving step exceeds the preset step counting range is preset Within the pulse count range; if not, the pulse count of the pulse signal that determines that the number of drive steps exceeds the preset step count range is not within the preset pulse count range.
  • the plane butting when the door is closed is changed to the groove docking, so that the normal door closing position and the door panel movement to the last clamping thing are blocked, there is a distance difference, according to this
  • the difference in distance can distinguish between the blockage of the block and the normal closing of the door.
  • each pulse duration is detected in real time. If a pulse duration exceeds the set threshold, it is judged whether the signal pulse counts the range ⁇ m1-m, and if so, it is determined that the door panel is in trouble or is pinched.
  • the step of determining whether the pulse count of the pulse signal exceeding the preset step count range is within the preset pulse count range comprises: determining a pulse signal whose driving step exceeds the preset step count range a counting number of the pulse count; acquiring a second pulse counting range from the preset distance of the opening position of the opening; determining whether the counting number is outside the second pulse counting range; if yes, determining that the driving step exceeds the preset The pulse count of the pulse signal of the step count range is within the preset pulse count range; if not, the pulse count of the pulse signal that determines that the number of drive steps exceeds the preset step count range is not within the preset pulse count range.
  • a total of M pulses are outputted through the experimental measurement of the full stroke detection signal of the door panel, and c shielding pulses are set according to the specific situation of the door closing door position, and the x range is 1 ⁇ c ⁇ M, if When the door panel is closed, there is a docking slot, and c can be set to the number of pulses generated by the slot depth.
  • the groove depth d according to the closing speed v, t time to generate a pulse signal, then c takes the value d / v / t + q, q takes an integer, preferably 0 or 1.
  • c is preferably 1 ⁇ 3, and c should take the minimum value when the door is closed and the obstacle is met. If the pulse duration exceeds the set time threshold and the pulse count belongs to a range smaller than M-c, that is, outside the range of the mask, it is determined that an obstacle or a grip is encountered.
  • the duration of each pulse signal detected by the detector is determined during the closing of the control opening and closing structure.
  • the steps to exceed the set time threshold include:
  • Step S21 in the process of controlling the closing of the opening and closing structure, the pulse detector is enabled to detect the pulse signal
  • Step S22 after each complete pulse signal is detected, acquiring the duration of the pulse signal and its corresponding time threshold;
  • Step S23 comparing the duration of the pulse signal with the time threshold
  • Step S24 when the duration of the pulse signal is greater than or equal to the time threshold, the determination is exceeded;
  • step S25 when the duration of the pulse signal is less than the time threshold, the determination is not exceeded.
  • the initialization is performed when the product is used for the first time, and the detection function is masked during initialization, and the number of signal pulses and the time of each pulse are recorded, and the record is stored.
  • each signal pulse time during the closing process establishes a respective detected time threshold Tn, where Tn is K times the duration of each pulse during the normal closing process, K ⁇ 1.
  • Tn K times the duration of each pulse during the normal closing process, K ⁇ 1.
  • K is not constant, and counts the number of normal closing times.
  • K takes the value K1.
  • the K value takes K2, when n2 ⁇ c, K
  • the value takes K3, where n1, n2 and n3 are positive integers greater than 1, and n1 ⁇ n2 ⁇ n3, K1, K2 and K3 are both greater than 1, and K1 ⁇ K2 ⁇ K3; meanwhile, the signal is signaled after each normal closing
  • the total number of pulses and each pulse duration are compared with the previous corresponding storage. If it is greater than the stored value, it is updated and the large value is stored.
  • each time a signal pulse is detected the time threshold comparison corresponding to the pulse number is taken out, and if it is exceeded, it is determined that the door panel encounters an obstacle or a hand, and the door panel is driven to move in the opposite direction.
  • the duration of each pulse is basically the same every time, but there will be accidental changes, and the initialization is only performed once. If the data is not updated, there is a risk of misjudgment, and the k value changes according to the increase of the number of normal closing times. Overcoming the above-mentioned repeated consistency problem, avoiding the sudden jump of the duration of a certain signal pulse to cause false detection when the door is closed several times. After the normal closing is enough, the maximum value of each pulse has been recorded, and the probability of false detection is greatly When it is lowered, k is reduced, so that the detection sensitivity is optimized while ensuring reliable and false detection.
  • the method further includes:
  • Step S26 determining the number of pulses detected by the pulse detector
  • the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
  • the time of several signal pulses immediately after the door closing is started is higher than the normal operation of the normal pulse duration.
  • the initial j pulses are not judged for the duration of the time, which effectively improves the accuracy of the detection.
  • j is set according to the actual situation and is set as small as possible. It can be understood that, in the first few pulse detections, a compensation value is set, and the duration of the previous j signal pulses is detected after compensation is performed.
  • the scheme of this embodiment is applied to the judgment of uniformly using a duration threshold, and also to the judgment that each signal pulse corresponds to a pulse duration threshold.
  • the first signal pulse is not detected, or a preset position is set in the process of closing the opening and closing structure, and the position sensor detects whether the opening and closing structure moves to a preset position.
  • the preset position is superior to the starting position, and is set according to requirements and actual conditions.
  • the user information or the obstacle information may be extracted according to the image before the camera device captures the opening and closing structure of the air conditioner, and the preset position should be set according to the information extracted by the screen, thereby avoiding The preset position setting is too small, and the detection has not been started until the hand has been gripped or the obstacle has been clamped, thereby further improving the detection accuracy.
  • the control process is: detecting whether the opening and closing structure moves to a preset position; and when the opening and closing structure moves to a preset position, performing the pulse signal after each complete detection of a complete pulse signal is performed The steps of the duration and its corresponding time threshold.
  • the detecting of the preset position may further be: determining a driving step of the driving motor; and when the driving step reaches a preset step threshold, determining that the opening and closing structure moves to a preset position.
  • the process of detecting the preset position is also performed by: controlling the closed position switch to detect the bit signal; and when the in-position switch does not detect the in-position signal, determining that the opening and closing structure moves to the preset position.
  • the preset position is set to avoid false detection and timely detection of the front end, thereby improving detection accuracy.
  • the method further includes:
  • Step S70 detecting whether the opening and closing structure is in an open starting position
  • Step S80 if not, controlling the opening and closing structure to move in the opening direction thereof until the opening and closing structure moves to the opening start position;
  • the step of controlling the motor to move the opening and closing structure to the closing direction is performed.
  • each time the door is closed it is first checked whether the door panel is in the open position, and if not, the door panel is first moved to the door open position. In this way, even if the door panel is considered to be swaying, there is no need to power off and then power on to restore the door panel to normal, and the air conditioner automatically corrects when the door is closed.
  • the door panel when the door panel of the air conditioner is already in the open state, after receiving the door closing command, the door panel is first driven to move in the direction of the door opening t time or e driving steps, so that the door panel is in the door opening position.
  • the pressing structure meshes with the gear to the non-reformable state, and then drives the door panel to move in the closing direction, ensuring that the door closing stroke of the door panel is completely the same, and the number of signal pulses generated is the same.
  • the starting position of each detection is guaranteed to be the same, ensuring the same number of pulses, which improves the accuracy of the detection of the opening and closing structure.
  • the opening and closing structure in order to better detect the detection of the closing obstacle in the opening and closing structure, the opening and closing structure may be controlled to move in the opening direction until the opening and closing structure moves to the opening start thereof. Position; when the opening and closing structure is in the open position, the step of controlling the motor to move the opening and closing structure to the closing direction is performed. The detection of the starting position of the door opening is not performed, and the operation is controlled to the door opening direction before closing the opening and closing structure.
  • the present invention also provides an air conditioner comprising: an opening and closing structure, a memory and a processor connected to the opening and closing structure, and an air conditioner stored on the memory and operable on the processor
  • the structure control program is configured to implement the opening and closing structure control method of the air conditioner as described above when the opening and closing structure control program of the air conditioner is executed by the processor.
  • the detector detects the pulse duration during the closing process of the air conditioner opening and closing structure, and when the pulse duration exceeds the set time threshold, it is determined whether the current driving step of the driving motor is within the preset step counting range. If it is determined by the preset that the opening and closing structure is closed, the control motor drives the opening and closing structure to move in the opening direction thereof.
  • the detector of the simple magnetic ring + Hall sensor it is detected whether the pulse time is timed out, and after the timeout, it is detected whether the number of steps of the driving motor is detected in the preset step counting range, and the detection cost is reduced, thereby reducing the detection cost.
  • whether the detection is blocked by the pulse duration combined with the driving step number makes the detection sensitivity high, improves the detection accuracy and speed, and reduces the damage.
  • the embodiment of the present invention further provides a readable storage medium, where the opening and closing structure control program of the air conditioner is stored, and the opening and closing structure control program of the air conditioner is executed by the processor.
  • the control motor drives the opening and closing structure to move in the opening direction thereof.
  • the opening and closing structure control program of the air conditioner is executed by the processor When the following operations are implemented:
  • the control motor drives the opening and closing structure to move in the opening direction thereof.
  • the pulse detector is enabled to detect the pulse signal
  • the opening and closing structure control program of the air conditioner is executed by the processor to:
  • the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
  • the opening and closing structure control program of the air conditioner is executed by the processor to:
  • the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
  • the opening and closing structure control program of the air conditioner is executed by the processor to:
  • the step of controlling the motor to move the opening and closing structure to the closing direction is performed.
  • portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a readable storage medium (such as a ROM as described above).
  • a readable storage medium such as a ROM as described above.
  • /RAM, disk, CD-ROM includes a number of instructions for causing a terminal device (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Air Conditioning Control Device (AREA)
  • Power-Operated Mechanisms For Wings (AREA)

Abstract

An air conditioner opening/closing structure control method, comprising the following steps: receiving a closing command for an opening/closing structure, and controlling a motor to drive the opening/closing structure to move in a closing direction (S10); while controlling the opening/closing structure to close, determining whether the duration of each pulse signal detected by a detector exceeds a preset time threshold (S20); if so, determining whether a current drive step number of the drive motor of the opening/closing structure falls within a preset step number counting range (S30); when the drive step number of a pulse signal which exceeds the time threshold falls within the preset step number counting range, determining that the opening/closing structure is blocked, and controlling the motor to drive the opening/closing structure to move in an opening direction (S40). Also disclosed are an air conditioner and a readable storage medium.

Description

空调器的开合结构控制方法、空调器和可读存储介质  Opening and closing structure control method of air conditioner, air conditioner and readable storage medium
技术领域Technical field
本发明涉及家电设备技术领域,尤其涉及空调器的开合结构控制方法、空调器和可读存储介质。The invention relates to the technical field of household electrical appliances, in particular to a method for controlling opening and closing structure of an air conditioner, an air conditioner and a readable storage medium.
背景技术Background technique
目前,空调器的门板遇到障碍物检测会继续关闭,如果障碍物为用户身体的部分,会对用户造成伤害。传统的障碍检测方法有电机驱动电流检测法、转速频率检测法以及阻力检测法。这些方法的实现需要很多检测机构,用在空调门板上需要额外增加较多的成本。目前对于空调器门板关闭遇到障碍物检测的方式成本高,检测效果差。At present, the door panel of the air conditioner will continue to be closed when it encounters obstacle detection. If the obstacle is part of the user's body, it will cause harm to the user. Traditional obstacle detection methods include motor drive current detection method, speed frequency detection method, and resistance detection method. The implementation of these methods requires a lot of testing mechanisms, and the use of air conditioning door panels requires additional cost. At present, the method for detecting obstacles in the closing of the air conditioner door panel is costly and the detection effect is poor.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solutions of the present invention, and does not constitute an admission that the above is prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种空调器的开合结构控制方法、空调器和可读存储介质,旨在解决目前对于空调器门板关闭遇到障碍物检测的方式成本高,检测效果差的问题。The main object of the present invention is to provide a method for controlling opening and closing structure of an air conditioner, an air conditioner, and a readable storage medium, which aim to solve the problem that the method for detecting obstacles in the closing of an air conditioner door panel is costly and the detection effect is poor. .
为实现上述目的,本发明一方面提供一种空调器的开合结构控制方法,包括以下步骤:To achieve the above object, an aspect of the present invention provides a method for controlling opening and closing structure of an air conditioner, comprising the following steps:
接收开合结构的关闭指令,控制电机带动开合结构向其关闭方向运动;Receiving a closing instruction of the opening and closing structure, and controlling the motor to drive the opening and closing structure to move in a closing direction thereof;
在控制开合结构关闭过程中,判断通过检测器检测到的每个脉冲信号的持续时间是否超过设定的时间阈值;During the process of controlling the closing of the opening and closing structure, determining whether the duration of each pulse signal detected by the detector exceeds a set time threshold;
若超过,则确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内;If it is exceeded, it is determined whether the driving step of the driving motor of the current opening and closing structure is within a preset step counting range;
当超过时间阈值的脉冲信号的驱动步数在预设步数计数范围内时,判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。When the driving step of the pulse signal exceeding the time threshold is within the preset step counting range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
可选地,所述若超过,则确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内的步骤之后,还包括:Optionally, if the step of determining whether the driving step of the driving motor of the current opening and closing structure is within a preset step counting range, the method further includes:
当超过时间阈值的脉冲信号的驱动步数在预设步数计数范围内时,确定驱动步数超过预设步数计数范围的脉冲信号的脉冲计数是否在预设脉冲计数范围内;When the number of driving steps of the pulse signal exceeding the time threshold is within the preset step counting range, determining whether the pulse count of the pulse signal whose driving step exceeds the preset step counting range is within the preset pulse counting range;
当驱动步数超过预设步数计数范围的脉冲信号的脉冲计数在预设脉冲计数范围内时,判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。When the pulse count of the pulse signal whose driving step exceeds the preset step counting range is within the preset pulse counting range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
可选地,所述确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内的步骤包括:Optionally, the step of determining whether the number of driving steps of the driving motor of the current opening and closing structure is within a preset step counting range comprises:
确定超过时间阈值的脉冲信号的脉冲计数的计数序号;Determining a count number of a pulse count of a pulse signal exceeding a time threshold;
获取距关门到位位置预设距离的第一预设步数范围;Obtaining a first preset step range of a preset distance from the closed position of the door;
判断所述计数序号是否所述第一预设步数范围内;Determining whether the counting sequence number is within the first preset step number range;
若在,则判定超过时间阈值的脉冲信号的驱动步数在第一预设步数计数范围内;If yes, determining that the number of driving steps of the pulse signal exceeding the time threshold is within the first preset step count range;
若否,则判定超过时间阈值的脉冲信号的驱动步数不在第一预设步数计数范围内。If not, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the first preset step count range.
可选地,所述确定超过时间阈值的脉冲信号的驱动步数是否在预设步数计数范围内的步骤包括:Optionally, the step of determining whether the number of driving steps of the pulse signal exceeding the time threshold is within a preset step count range comprises:
确定超过时间阈值的脉冲信号的驱动步数的计数序号;Determining a count number of the number of driving steps of the pulse signal exceeding the time threshold;
获取距开门起始位置预设距离的第二步数计数范围;Obtaining a second step count range of a preset distance from a start position of the opening door;
判断所述计数序号是否所述第二步数计数范围之外;Determining whether the counting sequence number is outside the second step counting range;
若在,则判定超过时间阈值的脉冲信号的驱动步数在第二预设步数计数范围内;If yes, determining that the number of driving steps of the pulse signal exceeding the time threshold is within the second preset step counting range;
若否,则判定超过时间阈值的脉冲信号的驱动步数不在第二预设步数计数范围内。If not, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the second predetermined step count range.
可选地,所述在控制开合结构关闭过程中判断通过检测器检测到的每个脉冲信号的持续时间是否超过设定的时间阈值的步骤包括:Optionally, the step of determining whether the duration of each pulse signal detected by the detector exceeds a set time threshold during the closing of the control opening and closing structure comprises:
在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号;In the process of controlling the closing of the opening and closing structure, the pulse detector is enabled to detect the pulse signal;
在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值;After each complete pulse signal is detected, the duration of the pulse signal and its corresponding time threshold are obtained;
将所述脉冲信号的持续时间与所述时间阈值比对;Comparing the duration of the pulse signal with the time threshold;
在所述脉冲信号的持续时间大于或等于所述时间阈值时,判定超过;When the duration of the pulse signal is greater than or equal to the time threshold, the determination is exceeded;
在所述脉冲信号的持续时间小于所述时间阈值时,判定未超过。When the duration of the pulse signal is less than the time threshold, the determination is not exceeded.
可选地,所述在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号的步骤之后,还包括:Optionally, after the step of enabling the pulse detector to detect the pulse signal during the process of controlling the opening and closing of the opening and closing structure, the method further includes:
确定脉冲检测器检测到的脉冲的个数;Determining the number of pulses detected by the pulse detector;
在当前脉冲的个数达到预设个数阈值时,执行在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值的步骤。When the number of current pulses reaches a preset number threshold, the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
可选地,所述在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号的步骤之后,还包括:Optionally, after the step of enabling the pulse detector to detect the pulse signal during the process of controlling the opening and closing of the opening and closing structure, the method further includes:
检测所述开合结构是否运动至预设位置;Detecting whether the opening and closing structure moves to a preset position;
在所述开合结构运动至预设位置时,执行在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值的步骤。When the opening and closing structure is moved to the preset position, the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
可选地,所述控制电机带动开合结构向其关闭方向运动的步骤之前,还包括:Optionally, before the step of controlling the motor to drive the opening and closing structure to move in the closing direction thereof, the method further includes:
检测所述开合结构是否在打开起始位置;Detecting whether the opening and closing structure is in an open starting position;
若否,则控制所述开合结构向其打开方向运动,直至开合结构运动到所述打开起始位置;If not, controlling the opening and closing structure to move in the opening direction thereof until the opening and closing structure moves to the opening start position;
在开合结构在打开起始位置时,则执行控制电机带动开合结构向其关闭方向运动的步骤。When the opening and closing structure is in the open position, the step of controlling the motor to move the opening and closing structure to the closing direction is performed.
此外,为实现上述目的,本发明另一方面还提供一种空调器,所述空调器包括:开合结构,与开合结构连接的存储器和处理器及存储在所述存储器上并可在所述处理器上运行的空调器的开合结构控制程序,所述空调器的开合结构控制程序被所述处理器执行时实现如上所述的空调器的开合结构控制方法。In addition, in order to achieve the above object, another aspect of the present invention provides an air conditioner, comprising: an opening and closing structure, a memory and a processor connected to the opening and closing structure, and being stored on the memory and being The opening and closing structure control program of the air conditioner running on the processor, when the opening and closing structure control program of the air conditioner is executed by the processor, implements the opening and closing structure control method of the air conditioner as described above.
此外,为实现上述目的,本发明另一方面还提供一种可读存储介质,所述可读存储介质上存储有空调器的开合结构控制程序,所述空调器的开合结构控制程序被处理器执行时实现如上所述的空调器的开合结构控制方法。In addition, in order to achieve the above object, another aspect of the present invention provides a readable storage medium on which an opening and closing structure control program of an air conditioner is stored, and an opening and closing structure control program of the air conditioner is The opening and closing structure control method of the air conditioner as described above is implemented when the processor is executed.
本发明通过检测器检测空调器开合结构关闭过程中的脉冲持续时间,在脉冲持续时间超过设定的时间阈值时,再判断驱动电机当前的驱动步数是否在预设步数计数范围内,若在预设判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。通过简单的磁环+霍尔传感器的检测器检测脉冲时间是否超时,再在超时后,检测驱动电机步数是否在预设步数计数范围实现开合结构关闭受阻的检测,降低了检测成本,且通过脉冲持续时间结合驱动步数检测是否受阻使得检测灵敏度高,提高了检测的准确度和速度,减少伤害。The invention detects the pulse duration in the process of closing the opening and closing structure of the air conditioner by the detector, and determines whether the current driving step of the driving motor is within the preset step counting range when the pulse duration exceeds the set time threshold. If it is determined that the opening and closing structure is blocked by the preset, the control motor drives the opening and closing structure to move in the opening direction thereof. Through the detector of the simple magnetic ring + Hall sensor, it is detected whether the pulse time is timed out, and after the timeout, it is detected whether the number of steps of the driving motor is detected in the preset step counting range, and the detection cost is reduced, thereby reducing the detection cost. Moreover, whether the detection is blocked by the pulse duration combined with the driving step number makes the detection sensitivity high, improves the detection accuracy and speed, and reduces the damage.
附图说明DRAWINGS
图1为本发明一实施例方案涉及的硬件运行环境的电子设备结构示意图;1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention;
图2为本发明空调器的开合结构控制方法的第一实施例的流程示意图;2 is a schematic flow chart of a first embodiment of a method for controlling opening and closing structure of an air conditioner according to the present invention;
图3为本发明一实施例中检测器的结构示意图;3 is a schematic structural diagram of a detector according to an embodiment of the present invention;
图4为本发明空调器的开合结构控制方法的第二实施例的流程示意图;4 is a schematic flow chart of a second embodiment of a method for controlling opening and closing structure of an air conditioner according to the present invention;
图5为本发明一实施例中在控制开合结构关闭过程中判断通过检测器检测到的每个脉冲信号的持续时间是否超过设定的时间阈值的流程示意图;5 is a schematic flow chart of determining whether the duration of each pulse signal detected by the detector exceeds a set time threshold during the process of controlling the opening and closing of the opening and closing structure according to an embodiment of the present invention;
图6为本发明空调器的开合结构控制方法的第三实施例的流程示意图;6 is a schematic flow chart of a third embodiment of a method for controlling opening and closing structure of an air conditioner according to the present invention;
图7为本发明空调器的开合结构控制方法的第四实施例的流程示意图。Fig. 7 is a flow chart showing the fourth embodiment of the opening and closing structure control method of the air conditioner of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例的主要解决方案是:接收开合结构的关闭指令,控制电机带动开合结构向其关闭方向运动;在控制开合结构关闭过程中,判断通过检测器检测到的每个脉冲信号的持续时间是否超过设定的时间阈值;若超过,则确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内;当超过时间阈值的脉冲信号的驱动步数在预设步数计数范围内时,判定开合结构受阻,控制电机带动开合结构向其打开方向运动。The main solution of the embodiment of the present invention is: receiving a closing instruction of the opening and closing structure, controlling the motor to drive the opening and closing structure to move in the closing direction thereof; and determining each pulse signal detected by the detector during the closing process of controlling the opening and closing structure; Whether the duration exceeds the set time threshold; if it exceeds, it determines whether the driving step of the driving motor of the current opening and closing structure is within the preset step counting range; when the driving step of the pulse signal exceeding the time threshold is in advance When the step count is within the range, it is determined that the opening and closing structure is blocked, and the control motor drives the opening and closing structure to move in the opening direction thereof.
由于目前对于空调器门板关闭遇到障碍物检测的方式成本高,检测效果差的问题。本发明提供一种解决方案,通过检测器检测空调器开合结构关闭过程中的脉冲持续时间,在脉冲持续时间超过设定的时间阈值时,再判断驱动电机当前的驱动步数是否在预设步数计数范围内,若在预设判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。通过简单的磁环+霍尔传感器的检测器检测脉冲时间是否超时,再在超时后,检测驱动电机步数是否在预设步数计数范围实现开合结构关闭受阻的检测,降低了检测成本,且通过脉冲持续时间结合驱动步数检测是否受阻使得检测灵敏度高,提高了检测的准确度和速度,减少伤害。Due to the current high cost and poor detection effect of the method of detecting obstacles in the closing of the air conditioner door panel. The invention provides a solution for detecting the pulse duration during the closing process of the air conditioner opening and closing structure by the detector, and determining whether the current driving step of the driving motor is preset when the pulse duration exceeds the set time threshold. Within the step count range, if the preset opening and closing structure is blocked by the preset, the control motor drives the opening and closing structure to move in the opening direction. Through the detector of the simple magnetic ring + Hall sensor, it is detected whether the pulse time is timed out, and after the timeout, it is detected whether the number of steps of the driving motor is detected in the preset step counting range, and the detection cost is reduced, thereby reducing the detection cost. Moreover, whether the detection is blocked by the pulse duration combined with the driving step number makes the detection sensitivity high, improves the detection accuracy and speed, and reduces the damage.
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的电子设备结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention.
本发明实施例电子设备可以是空调器,也可是与空调器连接的PC、智能手机、平板电脑、便携计算机、遥控器等控制设备。在空调器外的为其他设备时,其他设备获取空调器上设置的检测器检测到的信息来控制开合结构的开/合。The electronic device in the embodiment of the present invention may be an air conditioner, or a control device such as a PC, a smart phone, a tablet computer, a portable computer, a remote controller, and the like connected to the air conditioner. When other devices are outside the air conditioner, the other devices acquire information detected by the detector provided on the air conditioner to control the opening/closing of the opening and closing structure.
如图1所示,该电子设备可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the electronic device can include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 can include a display, an input unit such as a keyboard, and the optional user interface 1003 can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage. The memory 1005 can also optionally be a storage device independent of the aforementioned processor 1001.
可选地,电子设备还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块、检测器(磁环+霍尔传感器)等等。其中,传感器比如图像传感器、红外传感器以及其他传感器。而作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;当然,电子设备还可配置陀螺仪、气压计、湿度计、温度计、温度传感器等其他传感器,在此不再赘述。Optionally, the electronic device may further include a camera, RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, detectors (magnetic rings + Hall sensors), etc. Among them, sensors such as image sensors, infrared sensors and other sensors. As a kind of motion sensor, the gravity acceleration sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching). , related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, electronic devices can also be equipped with gyroscopes, barometers, hygrometers, thermometers, temperature sensors and other sensors, This will not be repeated here.
本领域技术人员可以理解,图1中示出的终端结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。It will be understood by those skilled in the art that the terminal structure shown in FIG. 1 does not constitute a limitation on an electronic device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
如图1所示,作为一种计算机可读存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及空调器的开合结构控制应用程序。As shown in FIG. 1, a memory 1005 as a computer readable storage medium may include an operating system, a network communication module, a user interface module, and an opening and closing structure control application of the air conditioner.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的空调器的开合结构控制应用程序,并执行以下操作:In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect the client (user end), and perform data communication with the client; and the processor 1001 can be used to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and performs the following operations:
接收开合结构的关闭指令,控制电机带动开合结构向其关闭方向运动;Receiving a closing instruction of the opening and closing structure, and controlling the motor to drive the opening and closing structure to move in a closing direction thereof;
在控制开合结构关闭过程中,判断通过检测器检测到的每个脉冲信号的持续时间是否超过设定的时间阈值;During the process of controlling the closing of the opening and closing structure, determining whether the duration of each pulse signal detected by the detector exceeds a set time threshold;
若超过,则确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内;If it is exceeded, it is determined whether the driving step of the driving motor of the current opening and closing structure is within a preset step counting range;
当超过时间阈值的脉冲信号的驱动步数在预设步数计数范围内时,判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。When the driving step of the pulse signal exceeding the time threshold is within the preset step counting range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
进一步地,所述若超过,则确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内的步骤之后,处理器1001可以用于调用存储器1005中存储的空调器的开合结构控制应用程序,并执行以下操作:Further, if the step of determining whether the driving step of the driving motor of the current opening and closing structure is within the preset step counting range, the processor 1001 may be configured to call the opening of the air conditioner stored in the memory 1005. The structure controls the application and does the following:
当超过时间阈值的脉冲信号的驱动步数在预设步数计数范围内时,确定驱动步数超过预设步数计数范围的脉冲信号的脉冲计数是否在预设脉冲计数范围内;When the number of driving steps of the pulse signal exceeding the time threshold is within the preset step counting range, determining whether the pulse count of the pulse signal whose driving step exceeds the preset step counting range is within the preset pulse counting range;
当驱动步数超过预设步数计数范围的脉冲信号的脉冲计数在预设脉冲计数范围内时,判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。When the pulse count of the pulse signal whose driving step exceeds the preset step counting range is within the preset pulse counting range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
进一步地,处理器1001可以用于调用存储器1005中存储的空调器的开合结构控制应用程序,并执行以下操作:Further, the processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and perform the following operations:
确定超过时间阈值的脉冲信号的脉冲计数的计数序号;Determining a count number of a pulse count of a pulse signal exceeding a time threshold;
获取距关门到位位置预设距离的第一预设步数范围;Obtaining a first preset step range of a preset distance from the closed position of the door;
判断所述计数序号是否所述第一预设步数范围内;Determining whether the counting sequence number is within the first preset step number range;
若在,则判定超过时间阈值的脉冲信号的驱动步数在第一预设步数计数范围内;If yes, determining that the number of driving steps of the pulse signal exceeding the time threshold is within the first preset step count range;
若否,则判定超过时间阈值的脉冲信号的驱动步数不在第一预设步数计数范围内。If not, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the first preset step count range.
进一步地,处理器1001可以用于调用存储器1005中存储的空调器的开合结构控制应用程序,并执行以下操作:Further, the processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and perform the following operations:
确定超过时间阈值的脉冲信号的驱动步数的计数序号;Determining a count number of the number of driving steps of the pulse signal exceeding the time threshold;
获取距开门起始位置预设距离的第二步数计数范围;Obtaining a second step count range of a preset distance from a start position of the opening door;
判断所述计数序号是否所述第二步数计数范围之外;Determining whether the counting sequence number is outside the second step counting range;
若在,则判定超过时间阈值的脉冲信号的驱动步数在第二预设步数计数范围内;If yes, determining that the number of driving steps of the pulse signal exceeding the time threshold is within the second preset step counting range;
若否,则判定超过时间阈值的脉冲信号的驱动步数不在第二预设步数计数范围内。If not, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the second predetermined step count range.
进一步地,处理器1001可以用于调用存储器1005中存储的空调器的开合结构控制应用程序,并执行以下操作:Further, the processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and perform the following operations:
在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号;In the process of controlling the closing of the opening and closing structure, the pulse detector is enabled to detect the pulse signal;
在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值;After each complete pulse signal is detected, the duration of the pulse signal and its corresponding time threshold are obtained;
将所述脉冲信号的持续时间与所述时间阈值比对;Comparing the duration of the pulse signal with the time threshold;
在所述脉冲信号的持续时间大于或等于所述时间阈值时,判定超过;When the duration of the pulse signal is greater than or equal to the time threshold, the determination is exceeded;
在所述脉冲信号的持续时间小于所述时间阈值时,判定未超过。When the duration of the pulse signal is less than the time threshold, the determination is not exceeded.
进一步地,所述在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号的步骤之后,处理器1001可以用于调用存储器1005中存储的空调器的开合结构控制应用程序,并执行以下操作:Further, after the step of enabling the pulse detector to detect the pulse signal during the closing of the control opening and closing structure, the processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and execute the following operating:
确定脉冲检测器检测到的脉冲的个数;Determining the number of pulses detected by the pulse detector;
在当前脉冲的个数达到预设个数阈值时,执行在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值的步骤。When the number of current pulses reaches a preset number threshold, the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
进一步地,所述在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号的步骤之后,处理器1001可以用于调用存储器1005中存储的空调器的开合结构控制应用程序,并执行以下操作:Further, after the step of enabling the pulse detector to detect the pulse signal during the closing of the control opening and closing structure, the processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and execute the following operating:
检测所述开合结构是否运动至预设位置;Detecting whether the opening and closing structure moves to a preset position;
在所述开合结构运动至预设位置时,执行在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值的步骤。When the opening and closing structure is moved to the preset position, the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
进一步地,所述控制电机带动开合结构向其关闭方向运动的步骤之前,处理器1001可以用于调用存储器1005中存储的空调器的开合结构控制应用程序,并执行以下操作:Further, before the step of controlling the motor to drive the opening and closing structure to move in the closing direction thereof, the processor 1001 may be configured to call the opening and closing structure control application of the air conditioner stored in the memory 1005, and perform the following operations:
检测所述开合结构是否在打开起始位置;Detecting whether the opening and closing structure is in an open starting position;
若否,则控制所述开合结构向其打开方向运动,直至开合结构运动到所述打开起始位置;If not, controlling the opening and closing structure to move in the opening direction thereof until the opening and closing structure moves to the opening start position;
在开合结构在打开起始位置时,则执行控制电机带动开合结构向其关闭方向运动的步骤。When the opening and closing structure is in the open position, the step of controlling the motor to move the opening and closing structure to the closing direction is performed.
参照图2,本发明的一实施例提供一种空调器的开合结构控制方法,所述空调器的开合结构控制方法包括: Referring to FIG. 2, an embodiment of the present invention provides a method for controlling opening and closing structure of an air conditioner, and a method for controlling opening and closing structure of the air conditioner includes:
步骤S10,接收开合结构的关闭指令,控制电机带动开合结构向其关闭方向运动;Step S10, receiving a closing instruction of the opening and closing structure, and controlling the motor to drive the opening and closing structure to move in a closing direction thereof;
在本实施例中,所述空调器优选为柜式空调器,柜式空调器包括门板和门板运动装置以及门板驱动装置,门板与门板运动装置连接,门板运动装置与门板驱动装置连接,而门板驱动装置与空调器的控制器连接,在门板驱动装置的驱动下门板运动装置按照控制器的控制门板运动。所述门板就是空调器的一种开合结构,所述门板一般设置用于空调器出风口的封闭和打开,防止空调器不运行时,灰尘进入空调器内部。而所述开合结构也还可是其他需要开合或者可以开合的结构。当然,所述空调器也不局限于柜式空调器,也还可以是其他具有开合(导风结构)挂机等空调器。本实施例以柜式空调器为例描述,开合结构以门板为例描述。In this embodiment, the air conditioner is preferably a cabinet type air conditioner, and the cabinet type air conditioner comprises a door panel and a door panel moving device and a door panel driving device, the door panel is connected with the door panel moving device, the door panel moving device is connected with the door panel driving device, and the door panel is connected. The driving device is connected to the controller of the air conditioner, and the door panel moving device is driven by the control panel of the controller under the driving of the door panel driving device. The door panel is an opening and closing structure of the air conditioner, and the door panel is generally arranged for closing and opening of the air outlet of the air conditioner, and the dust enters the air conditioner when the air conditioner is not operated. The opening and closing structure may also be other structures that need to be opened or closed or opened and closed. Of course, the air conditioner is not limited to the cabinet type air conditioner, and may be other air conditioners having an opening and closing (air guiding structure) hanging machine. In this embodiment, a cabinet type air conditioner is taken as an example, and the opening and closing structure is described by taking a door panel as an example.
所述空调器根据用户的指令运行,或者根据提前设置好的参数自动开启运行,而在运行过程中可以根据环境条件或者用户需求的指令调节运行参数。而在空调器关闭时,需要将所述门板关闭。在空调器的压缩机、室内风机、室外风机关闭后,控制器会发送控制指令(信号)关闭门板,接收开合结构的关闭指令。The air conditioner runs according to the instruction of the user, or automatically starts according to the parameter set in advance, and the operating parameter can be adjusted according to the environmental condition or the instruction of the user requirement during the running process. When the air conditioner is turned off, the door panel needs to be closed. After the compressor of the air conditioner, the indoor fan, and the outdoor fan are turned off, the controller sends a control command (signal) to close the door panel and receive the closing command of the opening and closing structure.
在接收到关闭指令后,控制电机带动开合结构向其关闭方向运动。若此时空调器的门板是打开的,控制其向关门方向运动。所述门板可以是单门,也可以是双门,单门只需要控制门板向关闭方向运动,双门是相对的两个子门板相对运动,相对运动至一设定位置相遇而关闭,相遇而关闭处的连接方式可以是齿合、咬合或者贴合中的一种。After receiving the closing command, the control motor drives the opening and closing structure to move in the closing direction thereof. If the door panel of the air conditioner is open at this time, it is controlled to move in the direction of closing the door. The door panel may be a single door or a double door. The single door only needs to control the door panel to move in the closing direction, and the double door is the relative movement of the two opposite door panels. The relative movements close to a set position and close, and close each other. The connection can be one of toothing, snapping or fitting.
步骤S20,在控制开合结构关闭过程中,判断通过检测器检测到的每个脉冲信号的持续时间是否超过设定的时间阈值;Step S20, in the process of controlling the closing of the opening and closing structure, determining whether the duration of each pulse signal detected by the detector exceeds a set time threshold;
参考图3,所述检测器检测信号脉冲为:检测器包括磁性组件,所述磁性组件固定在所述开合结构上,所述磁性组件具有P个N磁极和Q个S磁极,其中,P,Q为大于1的整数;a个霍尔检测组件,所述a个霍尔检测组件固定在空调器本体上,且所述a霍尔检测组件靠近所述磁性组件设置,所述a个霍尔检测组件在所述开合结构移动时感应所述磁性组件的磁性变化以对应生成x路感应信号,所述感应型号为信号脉冲。Referring to FIG. 3, the detector detects that the signal pulse is: the detector includes a magnetic component, and the magnetic component is fixed on the opening and closing structure, the magnetic component has P N magnetic poles and Q S magnetic poles, wherein P , Q is an integer greater than 1; a Hall detecting component, the a Hall detecting components are fixed on the air conditioner body, and the a Hall detecting component is disposed close to the magnetic component, the a The sensing component senses a magnetic change of the magnetic component as the opening and closing structure moves to generate an x-way sensing signal, the sensing model being a signal pulse.
设置检测空调器开合结构关闭的磁环+霍尔传感器,把磁环的磁极数量增加都极致,使其在能被霍尔传感器感应的前提下磁极数量最大化,这样可以进一步缩减反应时间。所述磁极+霍尔传感器为检测器,在空调器控制开合结构关闭过程中通过检测器检测关闭过程中霍尔传感器检测到的脉冲,在每检测到一个完整的脉冲时,判断每个脉冲信号的持续时间是否超过设定的时间阈值;所述时间阈值在无障碍运行正常关闭中所有脉冲持续时间的最大值Tm或者设置为Tm*k,k>1,优选为1.05。A magnetic ring + Hall sensor that detects the closing of the air conditioner opening and closing structure is provided, and the number of magnetic poles of the magnetic ring is increased to the maximum, so that the number of magnetic poles can be maximized under the premise of being sensed by the Hall sensor, which can further reduce the reaction time. The magnetic pole + Hall sensor is a detector, and the pulse detected by the Hall sensor during the closing process is detected by the detector during the closing process of the air conditioner controlling the opening and closing structure, and each pulse is judged every time a complete pulse is detected. Whether the duration of the signal exceeds a set time threshold; the time threshold is set to Tm*k, k>1, preferably 1.05, for the maximum value Tm of all pulse durations in the normal shutdown of the barrier-free operation.
优选地,为了进一步提高检测灵敏度,磁环不再安装在驱动齿轮上,而是单独做一个高速齿轮专门用于检测门板是否受阻,将检测用磁环安装在门板上边,此齿轮与电极齿轮经过齿合,可以是转速为电极轴转速的n倍,n>1。此时,信号脉冲时间的检测阈值,相对于原来安装在驱动齿轮上时变为原来的1/n,从而灵敏度增加,可快速检测是否受阻,防止进一步伤害。Preferably, in order to further improve the detection sensitivity, the magnetic ring is no longer mounted on the driving gear, but a high-speed gear is separately used to detect whether the door plate is blocked, and the detecting magnetic ring is mounted on the door panel, and the gear and the electrode gear pass through. Tooth engagement can be n times the rotational speed of the electrode shaft, n>1. At this time, the detection threshold of the signal pulse time becomes 1/n of the original when it is mounted on the drive gear, so that the sensitivity is increased, and it is possible to quickly detect whether or not it is blocked and prevent further damage.
步骤S30,若超过,则确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内;Step S30, if it is exceeded, determining whether the driving step of the driving motor of the current opening and closing structure is within a preset step counting range;
在有通过检测器检测到的脉冲信号的持续时间超过设定的时间阈值时,可能存在检测误差,在第一个脉冲信号时,就存在超时,而造成判断不准确,出现误报的情况。此时,确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内,所述预设步数计数范围为距关门到位位置最近的几个或者几十个驱动步数,例如,预设步数计数范围为8-90。开合结构驱动电机为步进电机,步进电机靠驱动脉冲的变化进行旋转,每变化一次称为一步,每一步对应电机转动的一个角度,通过传动可带动门板等前进一定距离。门板行进相同的距离此驱动步数的个数与输出的信号脉冲个数之比近似于几十甚至上百倍。When the duration of the pulse signal detected by the detector exceeds the set time threshold, there may be a detection error. When the first pulse signal is present, there is a timeout, which results in an inaccurate judgment and a false alarm. At this time, it is determined whether the driving step of the driving motor of the current opening and closing structure is within a preset step counting range, and the preset step counting range is a few or dozens of driving steps closest to the closing position to the position. For example, the preset step count range is 8-90. The driving motor of the opening and closing structure is a stepping motor, and the stepping motor rotates by the change of the driving pulse. Each change is called a step, and each step corresponds to an angle of the rotation of the motor, and the driving can drive the door panel to advance a certain distance. The door panel travels the same distance. The ratio of the number of driving steps to the number of output signal pulses is approximately tens or even hundreds of times.
确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内的步骤包括:确定超过时间阈值的脉冲信号的脉冲计数的计数序号;获取距关门到位位置预设距离的第一预设步数范围;判断所述计数序号是否所述第一预设步数范围内;若在,则判定超过时间阈值的脉冲信号的驱动步数在第一预设步数计数范围内;若否,则判定超过时间阈值的脉冲信号的驱动步数不在第一预设步数计数范围内。具体的,以空调器门板为例,提前测定出门板全程所需驱动步数p,然后根据门板关门到位的具体情况设检测屏蔽步数x个,x范围为1<= x <p,若门板关闭时有对接槽,x可设为槽深距离所对应的驱动步数。例如槽深d,齿轮半径r,每个驱动步数对应的电机转动角度为deg(单位:弧度),则x取值为d/(r*deg)+p,p取非负整数,若存在同轴传动,则距离需要做对应换算。若门板无对接槽,为直接平对或类似于直接平对,则x优选5~300,x应在满足区分关门与遇障情况下尽量取小值。Determining whether the number of driving steps of the driving motor of the current opening and closing structure is within a preset step counting range comprises: determining a counting number of a pulse count of the pulse signal exceeding the time threshold; acquiring the first preset distance from the closing position of the closing door Determining the number of steps; determining whether the counting number is within the first preset step; if so, determining that the driving step of the pulse signal exceeding the time threshold is within the first preset step counting range; Otherwise, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the first preset step count range. Specifically, taking the air conditioner door panel as an example, the number of driving steps required for the whole process of the door panel is determined in advance, and then the number of detection mask steps is set according to the specific situation of the door panel closing in position, and the range of x is 1<= x <p, if there is a docking slot when the door panel is closed, x can be set to the number of driving steps corresponding to the slot depth. For example, the groove depth d, the gear radius r, and the motor rotation angle corresponding to each driving step is deg (unit: radians), then x takes the value d/(r*deg)+p, p takes a non-negative integer, if present For coaxial transmission, the distance needs to be converted. If the door panel has no docking groove, it is directly flat or similar to the direct flat pair, then x is preferably 5~300, and x should be as small as possible when the door is closed and the obstacle is met.
在一实施例中,所述确定超过时间阈值的脉冲信号的驱动步数是否在预设步数计数范围内的步骤包括:确定超过时间阈值的脉冲信号的驱动步数的计数序号;获取距开门起始位置预设距离的第二步数计数范围;判断所述计数序号是否所述第二步数计数范围之外;若在,则判定超过时间阈值的脉冲信号的驱动步数在第二预设步数计数范围内;若否,则判定超过时间阈值的脉冲信号的驱动步数不在第二预设步数计数范围内。具体的,以空调器门板为例,通过实验测得门板运动全行程驱动步数为A,根据门板关门到位的具体情况设检测屏蔽脉冲s个,x范围为1≤ s <A,若门板关闭时有对接槽,s可设为槽深距离所产生的脉冲数。例若门板无对接槽,为直接平对或类似于直接平对,则s优选5~30,s应在满足区分关门与遇障情况下取最小值。若脉冲持续时间超过设定的时间阈值,且脉冲计数所属范围小于A-s,即,在屏蔽的范围之外时,则判定遇到障碍物或夹手。In an embodiment, the step of determining whether the number of driving steps of the pulse signal exceeding the time threshold is within a preset step counting range comprises: determining a counting number of driving steps of the pulse signal exceeding the time threshold; acquiring the opening door a second step counting range of the starting position preset distance; determining whether the counting number is outside the second step counting range; if yes, determining that the driving step of the pulse signal exceeding the time threshold is in the second pre- The step count range is set; if not, the number of driving steps of the pulse signal exceeding the time threshold is determined not to be within the second preset step count range. Specifically, taking the air conditioner door panel as an example, the number of driving steps of the door movement is measured by the experiment, and the shielding pulse s is set according to the specific situation of the door closing door, and the x range is 1 ≤ s <A, if there is a docking groove when the door panel is closed, s can be set to the number of pulses generated by the groove depth. For example, if the door panel has no docking groove, it is directly flat or similar to the direct flat pair, then s is preferably 5~30, and s should take the minimum value when the door is closed and the obstacle is met. If the pulse duration exceeds the set time threshold and the pulse count belongs to a range smaller than A-s, that is, outside the range of the mask, it is determined that an obstacle or a grip is encountered.
步骤S40,当超过时间阈值的脉冲信号的驱动步数在预设步数计数范围内时,判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。In step S40, when the driving step of the pulse signal exceeding the time threshold is within the preset step counting range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
在有通过检测器检测到的脉冲信号的持续时间超过设定的时间阈值时,且驱动步数在预设计数范围内时,若在预设步数计数范围内,则判定开合结构关闭受阻,存在障碍物,例如,夹手等。此时为了防止继续夹持障碍物,控制电机带动开合结构向其打开方向运动。在开合结构关闭受阻时,可通过设置的报警装置报警,或者通过物联网的方式将报警信息发送至与其连接的第三方终端,以供第三方终端用户知晓空调器关闭受阻,应用情景为:小孩子在操作柜式空调器时,将小孩子手被夹的报警发送至监护人的手机,提醒监护人及时查看防止小孩进一步受到伤害。When the duration of the pulse signal detected by the detector exceeds the set time threshold, and the number of driving steps is within the preset counting range, if it is within the preset step counting range, it is determined that the opening and closing structure is blocked. There are obstacles, for example, pinching and the like. At this time, in order to prevent the obstacle from being continuously gripped, the control motor drives the opening and closing structure to move in the opening direction thereof. When the opening and closing structure is blocked, the alarm device may be alarmed by the set alarm device, or the alarm information may be sent to the third-party terminal connected thereto through the Internet of Things, so that the third-party terminal user knows that the air conditioner is blocked, and the application scenario is: When the child operates the cabinet air conditioner, the alarm of the child's hand is sent to the guardian's mobile phone, and the guardian is reminded to check in time to prevent further damage to the child.
可以理解的是,在控制电机带动开合结构向其打开方向运动后,检测运行的距离和时间,在时间或者距离达到设定值(根据需求和实际应用设置)时,继续控制其向关闭方向运动。It can be understood that after controlling the motor to drive the opening and closing structure to move in the opening direction thereof, the distance and time of the operation are detected, and when the time or distance reaches the set value (according to the demand and the actual application setting), the control is continued to the closing direction. motion.
若当前脉冲的持续时间未超过设定的时间阈值,或驱动步数不在预设步数计数范围内,则控制空调器的开合结构继续向关门方向运动。If the duration of the current pulse does not exceed the set time threshold, or the number of driving steps is not within the preset step count range, then the opening and closing structure of the control air conditioner continues to move in the closing direction.
本实施例中通过检测器检测空调器开合结构关闭过程中的脉冲持续时间,在脉冲持续时间超过设定的时间阈值时,再判断驱动电机当前的驱动步数是否在预设步数计数范围内,若在预设判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。通过简单的磁环+霍尔传感器的检测器检测脉冲时间是否超时,再在超时后,检测驱动电机步数是否在预设步数计数范围实现开合结构关闭受阻的检测,降低了检测成本,且通过脉冲持续时间结合驱动步数检测是否受阻使得检测灵敏度高,提高了检测的准确度和速度,减少伤害。In this embodiment, the detector detects the pulse duration during the closing process of the air conditioner opening and closing structure, and when the pulse duration exceeds the set time threshold, it is determined whether the current driving step of the driving motor is in the preset step counting range. If the preset opening and closing structure is blocked by the preset, the control motor drives the opening and closing structure to move in the opening direction. Through the detector of the simple magnetic ring + Hall sensor, it is detected whether the pulse time is timed out, and after the timeout, it is detected whether the number of steps of the driving motor is detected in the preset step counting range, and the detection cost is reduced, thereby reducing the detection cost. Moreover, whether the detection is blocked by the pulse duration combined with the driving step number makes the detection sensitivity high, improves the detection accuracy and speed, and reduces the damage.
参考图4,在本发明一较佳实施例中,为了进一步提高开合结构检测的准确度,所述若超过,则确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内的步骤之后,还包括:Referring to FIG. 4, in a preferred embodiment of the present invention, in order to further improve the accuracy of the detection of the opening and closing structure, if the exceeding is performed, it is determined whether the number of driving steps of the driving motor of the current opening and closing structure is counted in a preset step. After the steps in the scope, it also includes:
步骤S50,当超过时间阈值的脉冲信号的驱动步数在第一预设计数范围内时,确定驱动步数超过预设脉冲计数范围的脉冲信号的脉冲计数是否在预设脉冲计数范围内;Step S50, when the number of driving steps of the pulse signal exceeding the time threshold is within the first preset counting range, determining whether the pulse count of the pulse signal whose driving step exceeds the preset pulse counting range is within the preset pulse counting range;
步骤S60,当驱动步数超过预设步数计数范围的脉冲信号的脉冲计数在预设脉冲计数范围内时,判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。In step S60, when the pulse count of the pulse signal whose driving step exceeds the preset step count range is within the preset pulse count range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
在本实施例中,在有通过检测器检测到的脉冲信号的持续时间超过设定的时间阈值时,可能存在检测误差,在第一个脉冲信号时,就存在超时,而造成判断不准确,出现误报的情况。与上述第一实施例的差异在于,本实施例在持续时间和步进电机步数判断的基础上,再增加脉冲计数的判断,进一步避免检测误差。此时,先确定当前的驱动步数是否在预设步数计数范围内,在驱动步数在预设步数计数范围内时,再确定超过时间阈值的脉冲信号的脉冲计数是否在预设计数范围内,所述预设计数范围的脉冲信号为距关门到位位置最近的几个脉冲信号,通过驱动步数结合脉冲个数确定,进一步提高检测的准确性。确定驱动步数超过预设步数计数范围的脉冲信号的脉冲计数是否在预设脉冲计数范围内的过程包括:确定驱动步数超过预设步数计数范围的脉冲信号的脉冲计数的计数序号;获取距关门到位位置预设距离的脉冲计数范围;判断所述计数序号是否所述脉冲计数范围内;若在,则判定驱动步数超过预设步数计数范围的脉冲信号的脉冲计数在预设脉冲计数范围内;若否,则判定驱动步数超过预设步数计数范围的脉冲信号的脉冲计数不在预设脉冲计数范围内。具体的,以空调器门板为例,将关门到位时的平面对接改为沟槽对接,这样可以使正常关门到位与门板运动到最后夹住东西而被阻滞的情况有个距离差,根据此距离差即可对夹物阻滞和正常关门进行区分。区分原理为:正常门板关门行程信号脉冲个数为m1,而在能够夹物受阻的行程脉冲个数为m2,m1>m2,设m=m1-m2空调门板关门区分阈值,也可再加上一两个脉冲做到可靠区分。关门过程中实时检测每一个脉冲持续时间,如果某一个脉冲持续时间超出设定阈值则判断信号脉冲计数所述范围是否<m1-m,若是则判定为门板遇障或夹手。In this embodiment, when the duration of the pulse signal detected by the detector exceeds the set time threshold, there may be a detection error. When the first pulse signal occurs, there is a timeout, and the judgment is inaccurate. A false positive has occurred. The difference from the first embodiment described above is that, in the present embodiment, based on the duration and the judgment of the stepping motor step number, the judgment of the pulse count is further increased to further avoid the detection error. At this time, it is first determined whether the current driving step number is within the preset step counting range, and when the driving step number is within the preset step counting range, it is determined whether the pulse count of the pulse signal exceeding the time threshold is at the preset counting. In the range, the pulse signal of the preset counting range is the pulse signal closest to the position of the closing door, and the number of driving steps is combined with the number of pulses to further improve the detection accuracy. The process of determining whether the pulse count of the pulse signal whose driving step exceeds the preset step counting range is within the preset pulse counting range includes: determining a counting number of the pulse count of the pulse signal whose driving step exceeds the preset step counting range; Obtaining a pulse counting range of a preset distance from the closed position of the door; determining whether the counting number is within the pulse counting range; if yes, determining a pulse count of the pulse signal whose driving step exceeds the preset step counting range is preset Within the pulse count range; if not, the pulse count of the pulse signal that determines that the number of drive steps exceeds the preset step count range is not within the preset pulse count range. Specifically, taking the air conditioner door panel as an example, the plane butting when the door is closed is changed to the groove docking, so that the normal door closing position and the door panel movement to the last clamping thing are blocked, there is a distance difference, according to this The difference in distance can distinguish between the blockage of the block and the normal closing of the door. The principle of differentiation is as follows: the number of signal pulses of the normal door closing stroke is m1, and the number of stroke pulses that can be blocked by the object is m2, m1>m2, and the m=m1-m2 air-conditioning door closing threshold is also added. One or two pulses are reliably distinguished. During the closing process, each pulse duration is detected in real time. If a pulse duration exceeds the set threshold, it is judged whether the signal pulse counts the range <m1-m, and if so, it is determined that the door panel is in trouble or is pinched.
在一实施例中,所述驱动步数超过预设步数计数范围的脉冲信号的脉冲计数是否在预设脉冲计数范围内的步骤包括:确定驱动步数超过预设步数计数范围的脉冲信号的脉冲计数的计数序号;获取距开门起始位置预设距离的第二脉冲计数范围;判断所述计数序号是否所述第二脉冲计数范围之外;若在,则判定驱动步数超过预设步数计数范围的脉冲信号的脉冲计数在预设脉冲计数范围内;若否,则判定驱动步数超过预设步数计数范围的脉冲信号的脉冲计数不在预设脉冲计数范围内。具体的,以空调器门板为例,通过实验测得门板运动全行程检测信号共输出M个脉冲,根据门板关门到位的具体情况设检测屏蔽脉冲c个,x范围为1≤c<M,若门板关闭时有对接槽,c可设为槽深距离所产生的脉冲数。例如槽深d,依据关门速度v,t时间产生一个脉冲信号,则c取值为d/v/t+q,q取整数,优选0或1。若门板无对接槽,为直接平对或类似于直接平对,则c优选1~3,c应在满足区分关门与遇障情况下取最小值。若脉冲持续时间超过设定的时间阈值,且脉冲计数所属范围小于M-c,即,在屏蔽的范围之外时,则判定遇到障碍物或夹手。In an embodiment, the step of determining whether the pulse count of the pulse signal exceeding the preset step count range is within the preset pulse count range comprises: determining a pulse signal whose driving step exceeds the preset step count range a counting number of the pulse count; acquiring a second pulse counting range from the preset distance of the opening position of the opening; determining whether the counting number is outside the second pulse counting range; if yes, determining that the driving step exceeds the preset The pulse count of the pulse signal of the step count range is within the preset pulse count range; if not, the pulse count of the pulse signal that determines that the number of drive steps exceeds the preset step count range is not within the preset pulse count range. Specifically, taking the air conditioner door panel as an example, a total of M pulses are outputted through the experimental measurement of the full stroke detection signal of the door panel, and c shielding pulses are set according to the specific situation of the door closing door position, and the x range is 1 ≤ c < M, if When the door panel is closed, there is a docking slot, and c can be set to the number of pulses generated by the slot depth. For example, the groove depth d, according to the closing speed v, t time to generate a pulse signal, then c takes the value d / v / t + q, q takes an integer, preferably 0 or 1. If the door panel has no docking groove, which is directly flat or similar to direct flat pairing, then c is preferably 1~3, and c should take the minimum value when the door is closed and the obstacle is met. If the pulse duration exceeds the set time threshold and the pulse count belongs to a range smaller than M-c, that is, outside the range of the mask, it is determined that an obstacle or a grip is encountered.
参考图5,在本发明一较佳实施例中,为了进一步提高开合结构检测的准确度,所述在控制开合结构关闭过程中判断通过检测器检测到的每个脉冲信号的持续时间是否超过设定的时间阈值的步骤包括:Referring to FIG. 5, in a preferred embodiment of the present invention, in order to further improve the accuracy of the detection of the opening and closing structure, it is determined whether the duration of each pulse signal detected by the detector is determined during the closing of the control opening and closing structure. The steps to exceed the set time threshold include:
步骤S21,在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号;Step S21, in the process of controlling the closing of the opening and closing structure, the pulse detector is enabled to detect the pulse signal;
步骤S22,在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值;Step S22, after each complete pulse signal is detected, acquiring the duration of the pulse signal and its corresponding time threshold;
步骤S23,将所述脉冲信号的持续时间与所述时间阈值比对;Step S23, comparing the duration of the pulse signal with the time threshold;
步骤S24,在所述脉冲信号的持续时间大于或等于所述时间阈值时,判定超过;Step S24, when the duration of the pulse signal is greater than or equal to the time threshold, the determination is exceeded;
步骤S25,在所述脉冲信号的持续时间小于所述时间阈值时,判定未超过。在上述实施例中,磁环磁极间存在差异、霍尔元器件存在差异、霍尔与磁环距离的差异等最终导致本应各个脉冲宽度均相同信号脉冲实际上宽度差异巨大,而检测的时间阈值,正常关闭过程中所有脉冲持续时间相同。而在本实施例中,在产品第一次使用时进行初始化,初始化时屏蔽检测功能,记录关门全程信号脉冲个数和每个脉冲的时间,并储存记录。此后,关门过程中每个信号脉冲时间设立各自的检测的时间阈值Tn,其中Tn为正常关门过程中各个脉冲持续时间的K倍,K≥1。在执行关门操作(开合结构关闭操作)时,当前是第几个信号脉冲即取出对应的时间阈值对其判定,从而有效提高了检测的灵敏度。当然可以理解的是,K不是一成不变的,对正常关门次数进行计数,当关门次数c<n1时,K取值K1,当n1≤c<n2,K值取K2,当n2≤c时,K值取K3,其中,n1、n2和n3为大于1的正整数,且n1<n2<n3,K1、K2和K3均大于1,且K1<K2<K3;同时,每次正常关门后对信号脉冲总数与每个脉冲持续时间与之前对应存储的比对,若大于存储的值,则对其进行更新,将大值存储。In step S25, when the duration of the pulse signal is less than the time threshold, the determination is not exceeded. In the above embodiment, there are differences between the magnetic poles of the magnetic ring, the difference in the Hall components, the difference in the distance between the Hall and the magnetic ring, etc., which ultimately results in a difference in the actual width of the pulse widths of the respective pulse widths, and the detection time is large. Threshold, all pulses have the same duration during normal shutdown. In the embodiment, the initialization is performed when the product is used for the first time, and the detection function is masked during initialization, and the number of signal pulses and the time of each pulse are recorded, and the record is stored. Thereafter, each signal pulse time during the closing process establishes a respective detected time threshold Tn, where Tn is K times the duration of each pulse during the normal closing process, K ≥ 1. When the door closing operation (opening and closing operation is closed), the current signal pulse is taken out, and the corresponding time threshold is taken out to determine the sensitivity, thereby effectively improving the sensitivity of the detection. Of course, it can be understood that K is not constant, and counts the number of normal closing times. When the number of closing times c<n1, K takes the value K1. When n1≤c<n2, the K value takes K2, when n2≤c, K The value takes K3, where n1, n2 and n3 are positive integers greater than 1, and n1 < n2 < n3, K1, K2 and K3 are both greater than 1, and K1 < K2 < K3; meanwhile, the signal is signaled after each normal closing The total number of pulses and each pulse duration are compared with the previous corresponding storage. If it is greater than the stored value, it is updated and the large value is stored.
在控制开合结合关闭时,每检测到一个信号脉冲,取出对应与其脉冲序号对应的时间阈值比对判断,若超过,则判定门板遇障碍或夹手,驱动门板向反方向运动。每次关门各个脉冲的持续时间基本一致,但会有偶然越变,而初始化只进行了一次,如果不对数据进行更新,则存在误判的风险,同时k值根据正常关门次数增加而变化同样是克服上述重复一致性问题,避免在刚开始几次关门时,某个信号脉冲持续时间突然跃增导致误检,在正常关门足够多以后,对各个脉冲出现的最大值已经记录,误检概率大大降低,k随之降低,使检测灵敏度达到最优的同时保证了可靠不误检。When the control is turned on and off, each time a signal pulse is detected, the time threshold comparison corresponding to the pulse number is taken out, and if it is exceeded, it is determined that the door panel encounters an obstacle or a hand, and the door panel is driven to move in the opposite direction. The duration of each pulse is basically the same every time, but there will be accidental changes, and the initialization is only performed once. If the data is not updated, there is a risk of misjudgment, and the k value changes according to the increase of the number of normal closing times. Overcoming the above-mentioned repeated consistency problem, avoiding the sudden jump of the duration of a certain signal pulse to cause false detection when the door is closed several times. After the normal closing is enough, the maximum value of each pulse has been recorded, and the probability of false detection is greatly When it is lowered, k is reduced, so that the detection sensitivity is optimized while ensuring reliable and false detection.
参考图6,在本发明一较佳实施例中,所述在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号的步骤之后,还包括:Referring to FIG. 6, in a preferred embodiment of the present invention, after the step of enabling the pulse detector to detect the pulse signal during the process of controlling the opening and closing of the opening and closing structure, the method further includes:
步骤S26,确定脉冲检测器检测到的脉冲的个数;Step S26, determining the number of pulses detected by the pulse detector;
在当前脉冲的个数达到预设个数阈值时,执行在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值的步骤。When the number of current pulses reaches a preset number threshold, the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
在本实施例中,由于齿轮啮合的空程及结构的松散及挤压形变等原因,所以在关门启动后刚开始的几个信号脉冲的时间会高出正常运行正常脉冲持续时间很多。每次关门在初步的j个脉冲不对其持续时间长度进行判断,有效提高了检测的准确度,j根据实际情况设定,尽可能设置的小。可以理解的是,在前面几个脉冲检测时,设置一个补偿值,做出补偿后再检测前面j个信号脉冲的持续时间。本实施例的方案应用在统一使用一个持续时间阈值的判断,也适应每个信号脉冲对应有一个脉冲持续时间阈值的判断。In the present embodiment, due to the loose motion of the gear meshing and the looseness of the structure and the deformation of the extrusion, the time of several signal pulses immediately after the door closing is started is higher than the normal operation of the normal pulse duration. Each time the door is closed, the initial j pulses are not judged for the duration of the time, which effectively improves the accuracy of the detection. j is set according to the actual situation and is set as small as possible. It can be understood that, in the first few pulse detections, a compensation value is set, and the duration of the previous j signal pulses is detected after compensation is performed. The scheme of this embodiment is applied to the judgment of uniformly using a duration threshold, and also to the judgment that each signal pulse corresponds to a pulse duration threshold.
本实施例通过不对前面几个脉冲持续时间的判断,避免误差大造成误判,提高了开合结构关闭检测的灵敏度和准确度。In this embodiment, by not judging the duration of the previous pulses, the error is greatly avoided, and the sensitivity and accuracy of the closing detection of the opening and closing structure are improved.
在本发明其他实施例中,所述前面几个信号脉冲不检测,也可以是在开合结构关闭的过程中设置一预设位置,通过位置传感器检测所述开合结构是否运动到预设位置,所述预设位置以靠近起始位置为优,根据需求和实际情况设置。当然,如果空调器上设置有摄像装置,可以根据摄像装置拍摄空调器开合结构前的画面提取用户信息或者障碍物信息,根据画面提取的信息来设置到底预设位置应该在哪,这样可以避免预设位置设置的过小,而到已经夹手或者夹住障碍物了还未开始检测,进一步提高检测准确度。具体的,控制过程为:检测所述开合结构是否运动至预设位置;在所述开合结构运动至预设位置时,执行在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值的步骤。所述预设位置的检测还可以是:确定驱动电机的驱动步数;在所述驱动步数达到预设步数阈值时,判定所述开合结构运动至预设位置。检测预设位置的过程也还以是:控制关闭到位开关检测到位信号;在所述到位开关未检测到到位信号时,判定所述开合结构运动至预设位置。In other embodiments of the present invention, the first signal pulse is not detected, or a preset position is set in the process of closing the opening and closing structure, and the position sensor detects whether the opening and closing structure moves to a preset position. The preset position is superior to the starting position, and is set according to requirements and actual conditions. Of course, if an image capturing device is disposed on the air conditioner, the user information or the obstacle information may be extracted according to the image before the camera device captures the opening and closing structure of the air conditioner, and the preset position should be set according to the information extracted by the screen, thereby avoiding The preset position setting is too small, and the detection has not been started until the hand has been gripped or the obstacle has been clamped, thereby further improving the detection accuracy. Specifically, the control process is: detecting whether the opening and closing structure moves to a preset position; and when the opening and closing structure moves to a preset position, performing the pulse signal after each complete detection of a complete pulse signal is performed The steps of the duration and its corresponding time threshold. The detecting of the preset position may further be: determining a driving step of the driving motor; and when the driving step reaches a preset step threshold, determining that the opening and closing structure moves to a preset position. The process of detecting the preset position is also performed by: controlling the closed position switch to detect the bit signal; and when the in-position switch does not detect the in-position signal, determining that the opening and closing structure moves to the preset position.
本实施例通过设置预设位置,避免前端的误检测和及时检测,提高检测准确度。In this embodiment, the preset position is set to avoid false detection and timely detection of the front end, thereby improving detection accuracy.
进一步地,在一实施例中,参考图7,所述控制电机带动开合结构向其关闭方向运动的步骤之前,还包括:Further, in an embodiment, referring to FIG. 7, before the step of controlling the motor to drive the opening and closing structure to move in the closing direction thereof, the method further includes:
步骤S70,检测所述开合结构是否在打开起始位置;Step S70, detecting whether the opening and closing structure is in an open starting position;
步骤S80,若否,则控制所述开合结构向其打开方向运动,直至开合结构运动到所述打开起始位置;Step S80, if not, controlling the opening and closing structure to move in the opening direction thereof until the opening and closing structure moves to the opening start position;
在开合结构在打开起始位置时,则执行控制电机带动开合结构向其关闭方向运动的步骤。When the opening and closing structure is in the open position, the step of controlling the motor to move the opening and closing structure to the closing direction is performed.
在本实施例中,每次启动关门时,先检查门板是否处于开门到位状态,如果没有则先驱动门板运动到开门到位位置。这样,即使门板被认为掰动,也无需在断电然后上电来使门板恢复正常,空调在关门时自动修正。或者,在接收开合结构的关闭指令之前,先判断门板是否在开门起始位置,如果在,则接收开合结构的关闭指令,控制电机带动开合结构向其关闭方向运动;当然,也还可以是在接收到开合结构关闭指令之后,判断门板是否在开门起始位置,如果在,则控制电机带动开合结构向其关闭方向运动。In this embodiment, each time the door is closed, it is first checked whether the door panel is in the open position, and if not, the door panel is first moved to the door open position. In this way, even if the door panel is considered to be swaying, there is no need to power off and then power on to restore the door panel to normal, and the air conditioner automatically corrects when the door is closed. Or, before receiving the closing instruction of the opening and closing structure, first determining whether the door panel is in the starting position of the door opening, and if so, receiving the closing command of the opening and closing structure, and controlling the motor to drive the opening and closing structure to move in the closing direction thereof; After receiving the opening and closing structure closing command, it may be determined whether the door panel is in the door opening position, and if so, the control motor drives the opening and closing structure to move in the closing direction thereof.
进一步地,为了更好的使得门板复位,在空调器的门板已经在开门到位状态时,收到关门命令后,先驱动门板向开门方向运动t时间或者e个驱动步数,使门板在开门位置挤压结构与齿轮啮合空程到不可再形变状态,然后驱动门板向关门方向运动,保证门板每次的关门行程完全一致,产生的信号脉冲数相同。通过驱动至开门位置,保证每次检测的起始位置相同,保证产生相同的脉冲数,提高了开合结构检测的准确度。Further, in order to better reset the door panel, when the door panel of the air conditioner is already in the open state, after receiving the door closing command, the door panel is first driven to move in the direction of the door opening t time or e driving steps, so that the door panel is in the door opening position. The pressing structure meshes with the gear to the non-reformable state, and then drives the door panel to move in the closing direction, ensuring that the door closing stroke of the door panel is completely the same, and the number of signal pulses generated is the same. By driving to the door opening position, the starting position of each detection is guaranteed to be the same, ensuring the same number of pulses, which improves the accuracy of the detection of the opening and closing structure.
在本发明一实施例中,为了更好的检测开合结构的关闭遇障碍物的检测,还可以是:控制所述开合结构向其打开方向运动,直至开合结构运动到其打开起始位置;在开合结构在打开起始位置时,则执行控制电机带动开合结构向其关闭方向运动的步骤。不做开门起始位置的检测,每次在关闭开合结构之前,均控制向开门方向运转。In an embodiment of the present invention, in order to better detect the detection of the closing obstacle in the opening and closing structure, the opening and closing structure may be controlled to move in the opening direction until the opening and closing structure moves to the opening start thereof. Position; when the opening and closing structure is in the open position, the step of controlling the motor to move the opening and closing structure to the closing direction is performed. The detection of the starting position of the door opening is not performed, and the operation is controlled to the door opening direction before closing the opening and closing structure.
本发明还提供一种空调器,所述空调器包括:开合结构,与开合结构连接的存储器和处理器及存储在所述存储器上并可在所述处理器上运行的空调器的开合结构控制程序,所述空调器的开合结构控制程序被所述处理器执行时实现如上所述的空调器的开合结构控制方法。The present invention also provides an air conditioner comprising: an opening and closing structure, a memory and a processor connected to the opening and closing structure, and an air conditioner stored on the memory and operable on the processor The structure control program is configured to implement the opening and closing structure control method of the air conditioner as described above when the opening and closing structure control program of the air conditioner is executed by the processor.
本实施例通过检测器检测空调器开合结构关闭过程中的脉冲持续时间,在脉冲持续时间超过设定的时间阈值时,再判断驱动电机当前的驱动步数是否在预设步数计数范围内,若在预设判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。通过简单的磁环+霍尔传感器的检测器检测脉冲时间是否超时,再在超时后,检测驱动电机步数是否在预设步数计数范围实现开合结构关闭受阻的检测,降低了检测成本,且通过脉冲持续时间结合驱动步数检测是否受阻使得检测灵敏度高,提高了检测的准确度和速度,减少伤害。In this embodiment, the detector detects the pulse duration during the closing process of the air conditioner opening and closing structure, and when the pulse duration exceeds the set time threshold, it is determined whether the current driving step of the driving motor is within the preset step counting range. If it is determined by the preset that the opening and closing structure is closed, the control motor drives the opening and closing structure to move in the opening direction thereof. Through the detector of the simple magnetic ring + Hall sensor, it is detected whether the pulse time is timed out, and after the timeout, it is detected whether the number of steps of the driving motor is detected in the preset step counting range, and the detection cost is reduced, thereby reducing the detection cost. Moreover, whether the detection is blocked by the pulse duration combined with the driving step number makes the detection sensitivity high, improves the detection accuracy and speed, and reduces the damage.
此外,本发明实施例还提出一种可读存储介质,所述可读存储介质上存储有空调器的开合结构控制程序,所述空调器的开合结构控制程序被所述处理器执行时实现如下操作:In addition, the embodiment of the present invention further provides a readable storage medium, where the opening and closing structure control program of the air conditioner is stored, and the opening and closing structure control program of the air conditioner is executed by the processor. Implement the following operations:
接收开合结构的关闭指令,控制电机带动开合结构向其关闭方向运动;Receiving a closing instruction of the opening and closing structure, and controlling the motor to drive the opening and closing structure to move in a closing direction thereof;
在控制开合结构关闭过程中,判断通过检测器检测到的每个脉冲信号的持续时间是否超过设定的时间阈值;During the process of controlling the closing of the opening and closing structure, determining whether the duration of each pulse signal detected by the detector exceeds a set time threshold;
若超过,则确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内;If it is exceeded, it is determined whether the driving step of the driving motor of the current opening and closing structure is within a preset step counting range;
当超过时间阈值的脉冲信号的驱动步数在预设步数计数范围内时,判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。When the driving step of the pulse signal exceeding the time threshold is within the preset step counting range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
进一步地,所述若超过,则确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内的步骤之后,所述空调器的开合结构控制程序被所述处理器执行时实现如下操作:Further, if the step of determining whether the driving step of the driving motor of the current opening and closing structure is within a preset step counting range, the opening and closing structure control program of the air conditioner is executed by the processor When the following operations are implemented:
当超过时间阈值的脉冲信号的驱动步数在预设步数计数范围内时,确定驱动步数超过预设步数计数范围的脉冲信号的脉冲计数是否在预设脉冲计数范围内;When the number of driving steps of the pulse signal exceeding the time threshold is within the preset step counting range, determining whether the pulse count of the pulse signal whose driving step exceeds the preset step counting range is within the preset pulse counting range;
当驱动步数超过预设步数计数范围的脉冲信号的脉冲计数在预设脉冲计数范围内时,判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。When the pulse count of the pulse signal whose driving step exceeds the preset step counting range is within the preset pulse counting range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
进一步地,所述空调器的开合结构控制程序被所述处理器执行时实现如下操作:Further, when the opening and closing structure control program of the air conditioner is executed by the processor, the following operations are implemented:
确定超过时间阈值的脉冲信号的脉冲计数的计数序号;Determining a count number of a pulse count of a pulse signal exceeding a time threshold;
获取距关门到位位置预设距离的第一预设步数范围;Obtaining a first preset step range of a preset distance from the closed position of the door;
判断所述计数序号是否所述第一预设步数范围内;Determining whether the counting sequence number is within the first preset step number range;
若在,则判定超过时间阈值的脉冲信号的驱动步数在第一预设步数计数范围内;If yes, determining that the number of driving steps of the pulse signal exceeding the time threshold is within the first preset step count range;
若否,则判定超过时间阈值的脉冲信号的驱动步数不在第一预设步数计数范围内。If not, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the first preset step count range.
进一步地,所述空调器的开合结构控制程序被所述处理器执行时实现如下操作:Further, when the opening and closing structure control program of the air conditioner is executed by the processor, the following operations are implemented:
确定超过时间阈值的脉冲信号的驱动步数的计数序号;Determining a count number of the number of driving steps of the pulse signal exceeding the time threshold;
获取距开门起始位置预设距离的第二步数计数范围;Obtaining a second step count range of a preset distance from a start position of the opening door;
判断所述计数序号是否所述第二步数计数范围之外;Determining whether the counting sequence number is outside the second step counting range;
若在,则判定超过时间阈值的脉冲信号的驱动步数在第二预设步数计数范围内;If yes, determining that the number of driving steps of the pulse signal exceeding the time threshold is within the second preset step counting range;
若否,则判定超过时间阈值的脉冲信号的驱动步数不在第二预设步数计数范围内。If not, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the second predetermined step count range.
进一步地,所述空调器的开合结构控制程序被所述处理器执行时实现如下操作:Further, when the opening and closing structure control program of the air conditioner is executed by the processor, the following operations are implemented:
在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号;In the process of controlling the closing of the opening and closing structure, the pulse detector is enabled to detect the pulse signal;
在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值;After each complete pulse signal is detected, the duration of the pulse signal and its corresponding time threshold are obtained;
将所述脉冲信号的持续时间与所述时间阈值比对;Comparing the duration of the pulse signal with the time threshold;
在所述脉冲信号的持续时间大于或等于所述时间阈值时,判定超过;When the duration of the pulse signal is greater than or equal to the time threshold, the determination is exceeded;
在所述脉冲信号的持续时间小于所述时间阈值时,判定未超过。When the duration of the pulse signal is less than the time threshold, the determination is not exceeded.
进一步地,所述在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号的步骤之后,所述空调器的开合结构控制程序被所述处理器执行时实现如下操作:Further, after the step of detecting the pulse signal by the pulse detector is enabled during the closing of the control opening and closing structure, the opening and closing structure control program of the air conditioner is executed by the processor to:
确定脉冲检测器检测到的脉冲的个数;Determining the number of pulses detected by the pulse detector;
在当前脉冲的个数达到预设个数阈值时,执行在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值的步骤。When the number of current pulses reaches a preset number threshold, the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
进一步地,所述在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号的步骤之后,所述空调器的开合结构控制程序被所述处理器执行时实现如下操作:Further, after the step of detecting the pulse signal by the pulse detector is enabled during the closing of the control opening and closing structure, the opening and closing structure control program of the air conditioner is executed by the processor to:
检测所述开合结构是否运动至预设位置;Detecting whether the opening and closing structure moves to a preset position;
在所述开合结构运动至预设位置时,执行在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值的步骤。When the opening and closing structure is moved to the preset position, the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
进一步地,所述控制电机带动开合结构向其关闭方向运动的步骤之前,所述空调器的开合结构控制程序被所述处理器执行时实现如下操作:Further, before the step of controlling the motor to drive the opening and closing structure to move in the closing direction thereof, the opening and closing structure control program of the air conditioner is executed by the processor to:
检测所述开合结构是否在打开起始位置;Detecting whether the opening and closing structure is in an open starting position;
若否,则控制所述开合结构向其打开方向运动,直至开合结构运动到所述打开起始位置;If not, controlling the opening and closing structure to move in the opening direction thereof until the opening and closing structure moves to the opening start position;
在开合结构在打开起始位置时,则执行控制电机带动开合结构向其关闭方向运动的步骤。When the opening and closing structure is in the open position, the step of controlling the motor to move the opening and closing structure to the closing direction is performed.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个可读存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, portions of the technical solution of the present invention that contribute substantially or to the prior art may be embodied in the form of a software product stored in a readable storage medium (such as a ROM as described above). /RAM, disk, CD-ROM includes a number of instructions for causing a terminal device (which may be a cell phone, computer, server, air conditioner, or network device, etc.) to perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (15)

  1. 一种空调器的开合结构控制方法,其特征在于,包括以下步骤: A method for controlling opening and closing structure of an air conditioner, comprising the steps of:
    接收开合结构的关闭指令,控制电机带动开合结构向其关闭方向运动;Receiving a closing instruction of the opening and closing structure, and controlling the motor to drive the opening and closing structure to move in a closing direction thereof;
    在控制开合结构关闭过程中,判断通过检测器检测到的每个脉冲信号的持续时间是否超过设定的时间阈值;During the process of controlling the closing of the opening and closing structure, determining whether the duration of each pulse signal detected by the detector exceeds a set time threshold;
    若超过,则确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内;If it is exceeded, it is determined whether the driving step of the driving motor of the current opening and closing structure is within a preset step counting range;
    当超过时间阈值的脉冲信号的驱动步数在预设步数计数范围内时,判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。When the driving step of the pulse signal exceeding the time threshold is within the preset step counting range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
  2. 如权利要求1所述的空调器的开合结构控制方法,其特征在于,所述若超过,则确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内的步骤之后,还包括:The method for controlling the opening and closing structure of an air conditioner according to claim 1, wherein if it is exceeded, determining whether the number of driving steps of the driving motor of the current opening and closing structure is within a preset step counting range ,Also includes:
    当超过时间阈值的脉冲信号的驱动步数在预设步数计数范围内时,确定驱动步数超过预设步数计数范围的脉冲信号的脉冲计数是否在预设脉冲计数范围内;When the number of driving steps of the pulse signal exceeding the time threshold is within the preset step counting range, determining whether the pulse count of the pulse signal whose driving step exceeds the preset step counting range is within the preset pulse counting range;
    当驱动步数超过预设步数计数范围的脉冲信号的脉冲计数在预设脉冲计数范围内时,判定开合结构关闭受阻,控制电机带动开合结构向其打开方向运动。When the pulse count of the pulse signal whose driving step exceeds the preset step counting range is within the preset pulse counting range, it is determined that the opening and closing structure is closed, and the control motor drives the opening and closing structure to move in the opening direction thereof.
  3. 如权利要求2所述的空调器的开合结构控制方法,其特征在于,所述确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内的步骤包括:The method for controlling the opening and closing structure of an air conditioner according to claim 2, wherein the step of determining whether the number of driving steps of the driving motor of the current opening and closing structure is within a preset step count range comprises:
    确定超过时间阈值的脉冲信号的脉冲计数的计数序号;Determining a count number of a pulse count of a pulse signal exceeding a time threshold;
    获取距关门到位位置预设距离的第一预设步数范围;Obtaining a first preset step range of a preset distance from the closed position of the door;
    判断所述计数序号是否所述第一预设步数范围内;Determining whether the counting sequence number is within the first preset step number range;
    若在,则判定超过时间阈值的脉冲信号的驱动步数在第一预设步数计数范围内;If yes, determining that the number of driving steps of the pulse signal exceeding the time threshold is within the first preset step count range;
    若否,则判定超过时间阈值的脉冲信号的驱动步数不在第一预设步数计数范围内。If not, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the first preset step count range.
  4. 如权利要求2所述的空调器的开合结构控制方法,其特征在于,所述确定超过时间阈值的脉冲信号的驱动步数是否在预设步数计数范围内的步骤包括:The method for controlling the opening and closing structure of an air conditioner according to claim 2, wherein the step of determining whether the number of driving steps of the pulse signal exceeding the time threshold is within a preset step count range comprises:
    确定超过时间阈值的脉冲信号的驱动步数的计数序号;Determining a count number of the number of driving steps of the pulse signal exceeding the time threshold;
    获取距开门起始位置预设距离的第二步数计数范围;Obtaining a second step count range of a preset distance from a start position of the opening door;
    判断所述计数序号是否所述第二步数计数范围之外;Determining whether the counting sequence number is outside the second step counting range;
    若在,则判定超过时间阈值的脉冲信号的驱动步数在第二预设步数计数范围内;If yes, determining that the number of driving steps of the pulse signal exceeding the time threshold is within the second preset step counting range;
    若否,则判定超过时间阈值的脉冲信号的驱动步数不在第二预设步数计数范围内。If not, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the second predetermined step count range.
  5. 如权利要求2所述的空调器的开合结构控制方法,其特征在于,所述在控制开合结构关闭过程中判断通过检测器检测到的每个脉冲信号的持续时间是否超过设定的时间阈值的步骤包括:The opening and closing structure control method of an air conditioner according to claim 2, wherein said determining whether a duration of each pulse signal detected by the detector exceeds a set time during the closing of the control opening and closing structure The steps of the threshold include:
    在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号;In the process of controlling the closing of the opening and closing structure, the pulse detector is enabled to detect the pulse signal;
    在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值;After each complete pulse signal is detected, the duration of the pulse signal and its corresponding time threshold are obtained;
    将所述脉冲信号的持续时间与所述时间阈值比对;Comparing the duration of the pulse signal with the time threshold;
    在所述脉冲信号的持续时间大于或等于所述时间阈值时,判定超过;When the duration of the pulse signal is greater than or equal to the time threshold, the determination is exceeded;
    在所述脉冲信号的持续时间小于所述时间阈值时,判定未超过。When the duration of the pulse signal is less than the time threshold, the determination is not exceeded.
  6. 如权利要求5所述的空调器的开合结构控制方法,其特征在于,所述在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号的步骤之后,还包括:The method for controlling the opening and closing structure of the air conditioner according to claim 5, wherein the step of enabling the pulse detector to detect the pulse signal during the closing of the control opening and closing structure further comprises:
    确定脉冲检测器检测到的脉冲的个数;Determining the number of pulses detected by the pulse detector;
    在当前脉冲的个数达到预设个数阈值时,执行在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值的步骤。When the number of current pulses reaches a preset number threshold, the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
  7. 如权利要求6所述的空调器的开合结构控制方法,其特征在于,所述在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号的步骤之后,还包括:The method for controlling the opening and closing structure of an air conditioner according to claim 6, wherein the step of enabling the pulse detector to detect the pulse signal during the closing of the control opening and closing structure further comprises:
    检测所述开合结构是否运动至预设位置;Detecting whether the opening and closing structure moves to a preset position;
    在所述开合结构运动至预设位置时,执行在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值的步骤。When the opening and closing structure is moved to the preset position, the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
  8. 如权利要求2所述的空调器的开合结构控制方法,其特征在于,所述控制电机带动开合结构向其关闭方向运动的步骤之前,还包括:The method for controlling the opening and closing structure of an air conditioner according to claim 2, wherein before the step of controlling the motor to move the opening and closing structure to the closing direction thereof, the method further comprises:
    检测所述开合结构是否在打开起始位置;Detecting whether the opening and closing structure is in an open starting position;
    若否,则控制所述开合结构向其打开方向运动,直至开合结构运动到所述打开起始位置;If not, controlling the opening and closing structure to move in the opening direction thereof until the opening and closing structure moves to the opening start position;
    在开合结构在打开起始位置时,则执行控制电机带动开合结构向其关闭方向运动的步骤。When the opening and closing structure is in the open position, the step of controlling the motor to move the opening and closing structure to the closing direction is performed.
  9. 如权利要求1所述的空调器的开合结构控制方法,其特征在于,所述控制电机带动开合结构向其关闭方向运动的步骤之前,还包括:The method for controlling the opening and closing structure of an air conditioner according to claim 1, wherein the step of controlling the motor to move the opening and closing structure to the closing direction thereof further comprises:
    检测所述开合结构是否在打开起始位置;Detecting whether the opening and closing structure is in an open starting position;
    若否,则控制所述开合结构向其打开方向运动,直至开合结构运动到所述打开起始位置;If not, controlling the opening and closing structure to move in the opening direction thereof until the opening and closing structure moves to the opening start position;
    在开合结构在打开起始位置时,则执行控制电机带动开合结构向其关闭方向运动的步骤。When the opening and closing structure is in the open position, the step of controlling the motor to move the opening and closing structure to the closing direction is performed.
  10. 如权利要求1所述的空调器的开合结构控制方法,其特征在于,所述确定当前开合结构的驱动电机的驱动步数是否在预设步数计数范围内的步骤包括:The method for controlling the opening and closing structure of an air conditioner according to claim 1, wherein the step of determining whether the number of driving steps of the driving motor of the current opening and closing structure is within a preset step count range comprises:
    确定超过时间阈值的脉冲信号的脉冲计数的计数序号;Determining a count number of a pulse count of a pulse signal exceeding a time threshold;
    获取距关门到位位置预设距离的第一预设步数范围;Obtaining a first preset step range of a preset distance from the closed position of the door;
    判断所述计数序号是否所述第一预设步数范围内;Determining whether the counting sequence number is within the first preset step number range;
    若在,则判定超过时间阈值的脉冲信号的驱动步数在第一预设步数计数范围内;If yes, determining that the number of driving steps of the pulse signal exceeding the time threshold is within the first preset step count range;
    若否,则判定超过时间阈值的脉冲信号的驱动步数不在第一预设步数计数范围内。If not, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the first preset step count range.
  11. 如权利要求1所述的空调器的开合结构控制方法,其特征在于,所述确定超过时间阈值的脉冲信号的驱动步数是否在预设步数计数范围内的步骤包括:The opening and closing structure control method of the air conditioner according to claim 1, wherein the step of determining whether the number of driving steps of the pulse signal exceeding the time threshold is within a preset step count range comprises:
    确定超过时间阈值的脉冲信号的驱动步数的计数序号;Determining a count number of the number of driving steps of the pulse signal exceeding the time threshold;
    获取距开门起始位置预设距离的第二步数计数范围;Obtaining a second step count range of a preset distance from a start position of the opening door;
    判断所述计数序号是否所述第二步数计数范围之外;Determining whether the counting sequence number is outside the second step counting range;
    若在,则判定超过时间阈值的脉冲信号的驱动步数在第二预设步数计数范围内;If yes, determining that the number of driving steps of the pulse signal exceeding the time threshold is within the second preset step counting range;
    若否,则判定超过时间阈值的脉冲信号的驱动步数不在第二预设步数计数范围内。If not, it is determined that the number of driving steps of the pulse signal exceeding the time threshold is not within the second predetermined step count range.
  12. 如权利要求1所述的空调器的开合结构控制方法,其特征在于,所述在控制开合结构关闭过程中判断通过检测器检测到的每个脉冲信号的持续时间是否超过设定的时间阈值的步骤包括:The opening and closing structure control method of an air conditioner according to claim 1, wherein said determining whether a duration of each pulse signal detected by the detector exceeds a set time during the closing of the control opening and closing structure The steps of the threshold include:
    在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号;In the process of controlling the closing of the opening and closing structure, the pulse detector is enabled to detect the pulse signal;
    在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值;After each complete pulse signal is detected, the duration of the pulse signal and its corresponding time threshold are obtained;
    将所述脉冲信号的持续时间与所述时间阈值比对;Comparing the duration of the pulse signal with the time threshold;
    在所述脉冲信号的持续时间大于或等于所述时间阈值时,判定超过;When the duration of the pulse signal is greater than or equal to the time threshold, the determination is exceeded;
    在所述脉冲信号的持续时间小于所述时间阈值时,判定未超过。When the duration of the pulse signal is less than the time threshold, the determination is not exceeded.
  13. 如权利要求12所述的空调器的开合结构控制方法,其特征在于,所述在控制开合结构关闭过程中,启用脉冲检测器检测脉冲信号的步骤之后,还包括:The method for controlling the opening and closing structure of an air conditioner according to claim 12, wherein the step of enabling the pulse detector to detect the pulse signal during the closing of the control opening and closing structure further comprises:
    确定脉冲检测器检测到的脉冲的个数;Determining the number of pulses detected by the pulse detector;
    在当前脉冲的个数达到预设个数阈值时,执行在每检测到一个完整的脉冲信号后,获取所述脉冲信号的持续时间及其对应的时间阈值的步骤。When the number of current pulses reaches a preset number threshold, the step of acquiring the duration of the pulse signal and its corresponding time threshold after each complete pulse signal is detected is performed.
  14. 一种空调器,其特征在于,所述空调器包括:开合结构,与开合结构连接的存储器和处理器及存储在所述存储器上并可在所述处理器上运行的空调器的开合结构控制程序,所述空调器的开合结构控制程序被所述处理器执行时实现如上权利要求所述的空调器的开合结构控制方法。An air conditioner, comprising: an opening and closing structure, a memory and a processor connected to the opening and closing structure, and an air conditioner stored on the memory and operable on the processor The structure control program is configured to implement the opening and closing structure control method of the air conditioner according to the above claims when the opening and closing structure control program of the air conditioner is executed by the processor.
  15. 一种可读存储介质,其特征在于,所述可读存储介质上存储有空调器的开合结构控制程序,所述空调器的开合结构控制程序被处理器执行时实现如上权利要求所述的空调器的开合结构控制方法。 A readable storage medium, characterized in that the readable storage medium stores an opening and closing structure control program of an air conditioner, and the opening and closing structure control program of the air conditioner is executed by the processor to implement the above claims The opening and closing structure control method of the air conditioner.
PCT/CN2018/075668 2017-11-03 2018-02-07 Air conditioner opening/closing structure control method, air conditioner and readable storage medium WO2019085321A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711077544.8A CN107975908B (en) 2017-11-03 2017-11-03 Air conditioner opening and closing structure control method, air conditioner and readable storage medium
CN201711077544.8 2017-11-03

Publications (1)

Publication Number Publication Date
WO2019085321A1 true WO2019085321A1 (en) 2019-05-09

Family

ID=62013066

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/075668 WO2019085321A1 (en) 2017-11-03 2018-02-07 Air conditioner opening/closing structure control method, air conditioner and readable storage medium

Country Status (2)

Country Link
CN (1) CN107975908B (en)
WO (1) WO2019085321A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111197801A (en) * 2018-11-19 2020-05-26 青岛海尔空调器有限总公司 Hand-clamping prevention control method for air-conditioning induced air regulation
CN113048630B (en) * 2021-03-05 2022-03-08 珠海格力电器股份有限公司 Control method and device of moving part, storage medium and air conditioner

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010043846A (en) * 2008-07-18 2010-02-25 Daikin Ind Ltd Indoor unit of air conditioning device and control method therefor
CN104712214A (en) * 2015-01-26 2015-06-17 宁波南车时代传感技术有限公司 Control method for motor driving shield door and provided with position sensor
CN106765979A (en) * 2017-01-05 2017-05-31 广东美的制冷设备有限公司 The door-plate control method and device of air-conditioner and air-conditioner
WO2017110608A1 (en) * 2015-12-21 2017-06-29 伸和コントロールズ株式会社 Chiller device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009215838A (en) * 2008-03-12 2009-09-24 Asmo Co Ltd Opening/closing member control device and opening/closing device
CN102418449B (en) * 2011-12-27 2014-04-02 昌辉汽车电气系统(安徽)有限公司 Anti-nip control method for automatically correcting electric window in use
US10060171B2 (en) * 2014-12-01 2018-08-28 Denso Corporation Openable and closable member control apparatus
CN106765977A (en) * 2017-01-05 2017-05-31 广东美的制冷设备有限公司 Air-conditioner and its door-plate control method, device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010043846A (en) * 2008-07-18 2010-02-25 Daikin Ind Ltd Indoor unit of air conditioning device and control method therefor
CN104712214A (en) * 2015-01-26 2015-06-17 宁波南车时代传感技术有限公司 Control method for motor driving shield door and provided with position sensor
WO2017110608A1 (en) * 2015-12-21 2017-06-29 伸和コントロールズ株式会社 Chiller device
CN106765979A (en) * 2017-01-05 2017-05-31 广东美的制冷设备有限公司 The door-plate control method and device of air-conditioner and air-conditioner

Also Published As

Publication number Publication date
CN107975908A (en) 2018-05-01
CN107975908B (en) 2020-10-20

Similar Documents

Publication Publication Date Title
AU2019231476B2 (en) Electronic device with flexible display and method for operating same
WO2015158132A1 (en) Voice control method and system
WO2019205323A1 (en) Air conditioner and parameter adjusting method and device therefor, and readable storage medium
WO2019051890A1 (en) Terminal control method and device, and computer-readable storage medium
WO2019051895A1 (en) Terminal control method and device, and storage medium
WO2019037319A1 (en) Electric quantity early warning method, and server, mobile terminal and storage medium
WO2019051899A1 (en) Terminal control method and device, and storage medium
WO2015196720A1 (en) Voice recognition method and system
WO2019051908A1 (en) Terminal control method and device, and computer readable storage medium
WO2021034057A1 (en) Electronic device and method for controlling electronic device
WO2016029597A1 (en) Terminal control method and system
WO2015127859A1 (en) Sensitive text detecting method and apparatus
WO2020231202A1 (en) Electronic device comprising plurality of speakers and control method therefor
WO2016107224A1 (en) Method and device for controlling movement of interface focus
WO2019085321A1 (en) Air conditioner opening/closing structure control method, air conditioner and readable storage medium
WO2017088437A1 (en) Method and device for controlling switching of cameras of terminal by means of smart television
EP3342103A1 (en) Method and apparatus for managing device using at least one sensor
WO2017063369A1 (en) Method of establishing wireless direct connection and device utilizing same
WO2019051934A1 (en) Business personnel appraisal method, appraisal platform and computer-readable storage medium
WO2019062194A1 (en) Home appliance and method and system for controling home applicance and computer readable storage medium
WO2017039264A1 (en) User terminal and sleep management method
WO2018149191A1 (en) Method, apparatus and device for underwriting insurance policy, and computer-readable storage medium
WO2017161702A1 (en) Method and system indicating washing machine status
WO2017148028A1 (en) Remote network connection method and system based on smart television
WO2019042220A1 (en) Intelligent system adjusting method and apparatus, and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18873303

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18873303

Country of ref document: EP

Kind code of ref document: A1