CN108389342B - Opening and closing state detection method and system - Google Patents

Opening and closing state detection method and system Download PDF

Info

Publication number
CN108389342B
CN108389342B CN201711375082.8A CN201711375082A CN108389342B CN 108389342 B CN108389342 B CN 108389342B CN 201711375082 A CN201711375082 A CN 201711375082A CN 108389342 B CN108389342 B CN 108389342B
Authority
CN
China
Prior art keywords
state
detected
opening
detection
trigger signal
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201711375082.8A
Other languages
Chinese (zh)
Other versions
CN108389342A (en
Inventor
李冠葳
林坪
巩玉琴
徐炎
陈江龙
黄建鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Eco Lighting Co Ltd
Original Assignee
Xiamen Eco Lighting Co Ltd
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 Xiamen Eco Lighting Co Ltd filed Critical Xiamen Eco Lighting Co Ltd
Priority to CN201711375082.8A priority Critical patent/CN108389342B/en
Publication of CN108389342A publication Critical patent/CN108389342A/en
Application granted granted Critical
Publication of CN108389342B publication Critical patent/CN108389342B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B13/00Burglar, theft or intruder alarms
    • G08B13/02Mechanical actuation
    • G08B13/08Mechanical actuation by opening, e.g. of door, of window, of drawer, of shutter, of curtain, of blind
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/01Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium
    • G08B25/08Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium using communication transmission lines
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/01Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium
    • G08B25/10Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium using wireless transmission systems

Abstract

The invention provides a device and a system for detecting an opening and closing state, wherein the method comprises the following steps: receiving an opening and closing state signal of the body to be detected sent by the detection part; if the body to be detected is in the first opening state after being in the closing state according to the opening and closing state signal and the setting part is detected to set the secondary detection function to be in the effective state, whether a movement trigger signal of the body to be detected sent by the detection part is received or not is detected; if a mobile trigger signal of the body to be detected sent by the detection part is received, and the reopening state of the body to be detected after the body to be detected is in the first reopening state is judged according to the mobile trigger signal, first opening prompt information is sent to the terminal equipment to be displayed according to the reopening state, and/or the alarm indication part is controlled to carry out first alarm indication, the body to be detected can be reminded to continue to be opened when the body to be detected is further opened and started under the condition that the body to be detected is in the opening state and is not completely opened, and potential safety hazards are reduced.

Description

Opening and closing state detection method and system
Technical Field
The invention belongs to the technical field of communication, and particularly relates to an opening and closing state detection method and system.
Background
At present, along with the development of intelligent house, all be equipped with the magnetic inductor on door, window and drawer wait to detect the body, the magnetic inductor is used for detecting the state of opening and shutting that detects the body, and when this kind of house body was opened, the magnetic inductor sent trigger signal and infories user's house to be opened. However, according to the opening and closing state detection method, when the body to be detected is already in the open state and is not completely opened, the magnetic inductor cannot send a trigger signal when the body to be detected is further opened, so that a user cannot know that the body to be detected is continuously opened, and further potential safety hazards are caused.
Disclosure of Invention
In view of this, embodiments of the present invention provide an opening and closing state detection method and system, which can send a prompt message to a terminal device when a body to be detected is further opened when the body to be detected is already in an opened state and is not completely opened, so as to remind a user that the body to be detected is continuously opened, thereby reducing potential safety hazards.
In a first aspect of the embodiments of the present invention, a method for detecting an open/close state is provided, including:
receiving an opening and closing state signal of the body to be detected sent by the detection part;
if the body to be detected is in the first opening state after the closing state according to the opening and closing state signal, detecting whether a setting part sets a secondary detection function to be in an effective state;
if the setting part is detected to set the secondary detection function to be in an effective state, detecting whether a movement trigger signal of the body to be detected sent by the detection part is received;
if the mobile trigger signal of the body to be detected sent by the detection part is received, judging whether the body to be detected is in a re-opening state after the first opening state according to the mobile trigger signal;
and if the body to be detected is in a re-opening state after being in the initial opening state according to the mobile trigger signal, sending first opening prompt information to terminal equipment for displaying according to the re-opening state, and/or controlling an alarm indicating component to carry out first alarm indication according to the re-opening state.
In a second aspect of the embodiments of the present invention, there is provided an opening/closing state detection apparatus, including:
the receiving unit is used for receiving the opening and closing state signal of the body to be detected sent by the detection part;
the first detection unit is used for detecting whether the setting part sets a secondary detection function to be in an effective state or not if the first opening state of the body to be detected after the body to be detected is in the closed state is judged according to the opening and closing state signal;
the second detection unit is used for detecting whether a movement trigger signal of the body to be detected sent by the detection part is received or not if the setting part is detected to set the secondary detection function to be in an effective state;
the judging unit is used for judging whether the body to be detected is in a re-opening state after the first opening state according to the movement trigger signal if the movement trigger signal of the body to be detected sent by the detecting part is received;
and the first sending unit is used for sending first starting prompt information to the terminal equipment for displaying according to the re-starting state and/or controlling the alarm indicating component to carry out second alarm indication according to the first starting state if the re-starting state after the body to be detected is in the first starting state is judged according to the mobile trigger signal.
In a third aspect of the embodiments of the present invention, there is provided an open/close state detection system, including:
the detection component is used for detecting an opening and closing state signal of the body to be detected;
the setting component is used for setting whether the secondary detection function of the body to be detected is in an effective state;
the controller is used for receiving the opening and closing state signal of the body to be detected sent by the detection part; if the body to be detected is in the first opening state after the closing state according to the opening and closing state signal, detecting whether a setting part sets a secondary detection function to be in an effective state; if the setting part is detected to set the secondary detection function to be in an effective state, detecting whether a movement trigger signal of the body to be detected sent by the detection part is received; if the mobile trigger signal of the body to be detected sent by the detection part is received, judging whether the body to be detected is in a re-opening state after the first opening state according to the mobile trigger signal; if the body to be detected is judged to be in a re-opening state after being in the initial opening state according to the mobile trigger signal, sending first opening prompt information to terminal equipment for displaying according to the re-opening state, and/or controlling an alarm indicating component to carry out first alarm indication according to the re-opening state;
the terminal equipment is used for displaying the first starting prompt information; and/or an alarm indication means for making a first alarm indication.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: according to the open-close state detection method and system provided by the embodiment of the invention, the open-close state signal of the body to be detected, which is sent by the detection part, is received; if the body to be detected is in the first opening state after the closing state according to the opening and closing state signal, detecting whether the setting part sets a secondary detection function to be in an effective state; if the setting part is detected to set the secondary detection function to be in an effective state, detecting whether a movement trigger signal of the body to be detected sent by the detection part is received; if a mobile trigger signal of the body to be detected sent by the detection part is received, judging whether the body to be detected is in a re-opening state after the first opening state according to the mobile trigger signal; and if the re-opening state of the body to be detected after the first opening state is judged according to the mobile trigger signal, sending first opening prompt information to the terminal equipment for displaying according to the re-opening state, and/or controlling an alarm indicating component to carry out first alarm indication according to the re-opening state. According to the embodiment of the invention, when the body to be detected is in the opened state and is not in the completely opened state and the body to be detected is further opened, the prompt information is sent to the terminal equipment or the alarm is given through the alarm indicating component, so that the user can be reminded to continuously open the body to be detected, and the potential safety hazard is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating a method for detecting an open/close state according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for detecting an open/close state according to another embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for detecting an open/close state according to another embodiment of the present invention;
fig. 4a and 4b are schematic structural diagrams of a vertical push-pull type body to be detected and a horizontal push-pull type body to be detected, which are provided by the embodiment of the invention;
fig. 5 is a schematic flowchart of a method for detecting an open/close state according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a body to be tested of a sector switch type or bearing type switch provided in the embodiment of the present invention;
fig. 7 is a schematic flowchart of a specific application example of the open/close state detection method according to the embodiment of the present invention;
fig. 8a, 8b, 8c, 8d, 8e and 8f are schematic structural views of a vertically opened door/window according to an embodiment of the present invention in different states;
fig. 9 is a block diagram of an open/close state detecting device according to an embodiment of the present invention;
fig. 10 is a block diagram of an open/close state detection system according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for detecting an open/close state according to an embodiment of the present invention. The embodiment can be applied to the controller as detailed below:
s101: and receiving an opening and closing state signal of the body to be detected sent by the detection part.
In the present embodiment, the body to be detected may be furniture or the like having an open/close state such as a door, a window, a drawer, or the like. The detection component can be an acceleration sensor or a Hall effect sensor and is used for detecting whether the body to be detected is opened or not; or a distance measuring sensor for detecting the moving distance of the opening part of the body to be detected; but also a magnetic inductor, a vibration inductor, a metal sensor or a proximity sensor.
S102: and if the body to be detected is in the first opening state after the closed state according to the opening and closing state signal, detecting whether the setting part sets a secondary detection function to be in an effective state.
In this embodiment, the body to be detected is judged to be in the first opening state or the closing state after the closing state according to the opening and closing state signal. The first opening state after the closing state means that the body to be detected is changed from the closing state to the opening state for the first time, and the opening degree (distance or angle) of the body to be detected is not changed again after the body to be detected is opened. Whether the secondary detection function is in an active state or not can be set by the setting means.
S103: and if the setting part is detected to set the secondary detection function to be in an effective state, detecting whether a movement trigger signal of the body to be detected sent by the detection part is received.
In this embodiment, the setting means may be a button or a touch panel for setting whether the secondary detection function is in an active state. The movement trigger signal is generated after the detection part is triggered when the movable part of the body to be detected continuously displaces after the body to be detected is opened for the first time.
In one embodiment of the present invention, if it is detected that the setting means sets the secondary detection function to the invalid state, a prompt to turn off the secondary detection function is sent to the terminal device.
S104: and if the mobile trigger signal of the body to be detected sent by the detection part is received, judging whether the body to be detected is in a re-opening state after the first opening state according to the mobile trigger signal.
In the present embodiment, the detection means may be a distance sensor or an angle sensor. The movement trigger signal of the body to be detected may be a distance value or an angle value of the opening degree of the movable portion of the body to be detected. The reopening state after the body to be detected is in the first reopening state refers to the state that the body to be detected is reopened after being opened for a certain distance or angle from the closed state to the first reopening state.
S105: and if the re-opening state of the body to be detected after the first opening state is judged according to the mobile trigger signal, sending first opening prompt information to the terminal equipment for displaying according to the re-opening state, and/or controlling an alarm indicating component to carry out first alarm indication according to the re-opening state.
In this embodiment, the first opening prompt message may include a message prompting the user that the body to be detected is opened again; the device also can comprise alarm information used for reminding a user that the body to be detected is illegally opened again.
In this embodiment, the alarm indication part may be a light device, a buzzer, a horn, or the like. The alarm indicating component gives an alarm to warn an intruder and ensure safety. The first alarm indication may be any type of alarm implemented, and the invention is not limited in this respect.
As can be seen from this embodiment, the opening and closing state signal of the body to be detected sent by the detection part is received; if the body to be detected is in the first opening state after the closing state according to the opening and closing state signal, detecting whether the setting part sets a secondary detection function to be in an effective state; if the setting part is detected to set the secondary detection function to be in an effective state, detecting whether a movement trigger signal of the body to be detected sent by the detection part is received; if a mobile trigger signal of the body to be detected sent by the detection part is received, judging whether the body to be detected is in a re-opening state after the first opening state according to the mobile trigger signal; and if the re-opening state of the body to be detected after the first opening state is judged according to the mobile trigger signal, sending first opening prompt information to the terminal equipment for displaying according to the re-opening state, and/or controlling an alarm indicating component to carry out first alarm indication according to the re-opening state. According to the embodiment of the invention, when the body to be detected is in the opened state and is not in the completely opened state and the body to be detected is further opened, the prompt information is sent to the terminal equipment or the alarm is given through the alarm indicating component, so that a user is reminded of continuing to open the body to be detected, and the potential safety hazard is reduced.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for detecting an open/close state according to another embodiment of the present invention. This example is detailed as follows:
s201: and receiving an opening and closing state signal of the body to be detected sent by the detection part.
S202: and if the body to be detected is judged to be in the closed state according to the opening and closing state signal, detecting whether an opening trigger signal of the body to be detected sent by the detection part is received.
In this embodiment, the closed state is an original state in which the body to be detected is closed, such as a state in which the drawer is completely closed. The opening trigger signal is generated when the body to be detected is changed from a closed state to a first opening state and the detection part is triggered.
S203: and if the detection receives the opening trigger signal of the body to be detected sent by the detection part, detecting that the body is in a first opening state according to the opening trigger signal.
S204: and sending second starting prompt information to the terminal equipment for displaying according to the first starting state, and/or controlling an alarm indicating component to carry out second alarm indication according to the first starting state.
In this embodiment, the second start prompt message may include a first start prompt message, or may include both the first start prompt message and the alarm message. The second alarm indication may be an alarm form different from any implementation of the first alarm indication, as the present invention is not limited in this respect.
In this embodiment, the detection component receives an opening trigger signal of the body to be detected sent by the detection component, and then determines that the detection component is in a first opening state according to the opening trigger signal, and sends a second opening prompt message to the terminal device for displaying or gives an alarm through the alarm indication component, so that a user can be timely notified when the body to be detected is opened for the first time, and the opening safety of the body to be detected is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a method for detecting an open/close state according to another embodiment of the present invention. On the basis of the above embodiment, for the push-pull type body to be detected, the movement trigger signal carries the movement distance of the body to be detected, and in the step S104, it is determined whether the body to be detected is in the re-opening state after the first opening state according to the movement trigger signal, and the detailed process is as follows:
s301: and judging whether the moving distance exceeds a preset distance threshold value.
In this embodiment, the preset distance threshold value may be manually set by the setting component, or may be automatically generated according to the actual situation of the body to be detected. Specifically, the setting component may be started, and then the movable portion of the body to be detected is moved by a certain distance, and after N seconds, the setting component records that the distance moved by the movable portion of the detection body is the preset distance threshold value.
S302: and if the moving distance is judged to exceed the preset distance threshold value, determining the reopening state of the body to be detected after the body to be detected is in the initial reopening state.
As can be seen from this embodiment, the body to be detected is opened in a push-pull manner, and fig. 4a is a vertical push-pull type body to be detected, and fig. 4b is a horizontal push-pull type body to be detected, such as a sliding door or a drawer. By judging the moving distance of the body to be detected, whether the body to be detected is in a re-opening state after the first opening state can be determined.
Referring to fig. 5, fig. 5 is a schematic flow chart of a method for detecting an open/close state according to still another embodiment of the present invention. On the basis of the above embodiment, for the sector switch type body to be detected, the mobile trigger signal carries the opening angle of the body to be detected, and in the above step S104, it is determined whether the body to be detected is in the re-opening state after the first opening state according to the mobile trigger signal, and the detailed process is as follows:
s401: and judging whether the opening angle exceeds a preset angle threshold value.
In this embodiment, the preset angle threshold value may be manually set by the setting component, or may be automatically generated according to the actual situation of the body to be detected.
S402: and if the opening angle exceeds the preset angle threshold value, determining that the body to be detected is in a re-opening state after the body to be detected is in the first opening state.
As can be seen from this embodiment, for the body to be detected (refer to fig. 6) of the sector switch type or bearing type switch, such as a door, a window, etc. of the sector switch, by determining the opening angle of the body to be detected, it can be determined whether the body to be detected is in the re-opening state after the first opening state.
In this embodiment, the alarm indication part may be a light device, a buzzer, a horn, or the like. The alarm indicating component gives an alarm to warn an intruder and ensure safety.
In order to better understand the above method, an application example of the open/close state detection method according to the present invention is described in detail below.
In the application example, the opening and closing state detection method can be applied to a household fresh air exchange system or a security dual-technology system, the embodiment takes a vertically opened door and window as an example for description, and the description is not used for limiting the scheme of the invention. Referring to fig. 7, the steps of the present application example are as follows:
s501: the setting unit performs device registration and sets the on/off of the secondary detection function.
Referring to fig. 8a, the setting member is disposed at the bottom of the openable and closable portion of the door and window, and after n seconds, the yellow light on the setting member flashes to start the setting of the secondary detection function, thereby performing the safety defense.
Referring to fig. 8b and 8c, the door and window is opened to a certain preset distance, and is slightly stopped, then the yellow light flashes when the door is closed, and the detection component records that the preset distance is a preset distance threshold value.
Referring to fig. 8a, by pressing the setting member for a long time, the green light on the setting member flashes, the secondary detection function can be released and turned off for X minutes, and the safety defense can be released. During the period of releasing the safety protection, the alarm can be avoided by opening the alarm at random for any distance.
Referring to fig. 8d, after X minutes, the red light on the setting part flashes, the secondary detection function is turned on again, and the security defense is started.
Referring to fig. 8e, the setting member locks the opening direction after re-entering the deployed state.
Referring to fig. 8f, when the door and window is pushed back, the alarm is not touched, and when the door and window returns to the closed state, the safety protection is released.
S502: the detection part sends an opening and closing state signal of the body to be detected to the controller.
S503: and the controller judges whether the body to be detected is in a first opening state after the body to be detected is in the closed state according to the opening and closing state signal. If yes, go to step S504; if not, go to step S508.
S504: the controller detects whether the setting part sets the secondary detection function to an active state. If yes, go to step S505; if not, go to step S512.
S505: the controller detects whether a movement trigger signal of the body to be detected sent by the detection part is received. If yes, go to step S506; if not, go to step S512.
S506: and the controller judges whether the body to be detected is in a re-opening state after the first opening state according to the movement trigger signal. If yes, go to step S507; if not, go to step S512.
S507: and the controller sends first starting prompt information to the terminal equipment for displaying according to the re-starting state, and/or controls the alarm indicating component to carry out first alarm indication according to the re-starting state.
S508: and the controller judges that the body to be detected is in a closed state according to the opening and closing state signal, and detects whether an opening trigger signal of the body to be detected sent by the detection part is received.
S509: and if the controller detects and receives the opening trigger signal of the body to be detected sent by the detection part, the controller detects that the body is in a first opening state according to the opening trigger signal.
S510: and the controller sends second starting prompt information to the terminal equipment for displaying according to the first starting state and/or controls the alarm indicating component to carry out second alarm indication according to the first starting state.
S512: the controller controls the detection part to enter a sleep state.
Fig. 9 is a block diagram of an open/close state detection apparatus according to an embodiment of the present invention, which corresponds to the open/close state detection method of the foregoing embodiment. For convenience of explanation, only portions related to the embodiments of the present invention are shown. Referring to fig. 9, the apparatus includes: a receiving unit 601, a first detecting unit 602, a second detecting unit 603, a judging unit 604 and a first transmitting unit 605.
The receiving unit 601 is used for receiving an opening and closing state signal of the body to be detected sent by the detection part;
the first detection unit 602 is configured to detect whether the setting component sets a secondary detection function to an effective state if it is determined that the body to be detected is in a first open state after being in a closed state according to the open-close state signal;
a second detecting unit 603, configured to detect whether a movement trigger signal of the body to be detected, sent by the detecting component, is received if it is detected that the setting component sets the secondary detection function to an active state;
a determining unit 604, configured to determine, if a mobile trigger signal of the body to be detected sent by the detecting component is received, whether the body to be detected is in a re-open state after the first-time open state according to the mobile trigger signal;
a first sending unit 605, configured to send, if it is determined that the body to be detected is in a re-opening state after the first opening state according to the movement trigger signal, a first opening prompt message to a terminal device for displaying according to the re-opening state, and/or control an alarm indication component to perform a first alarm indication according to the re-opening state.
As can be seen from this embodiment, the opening and closing state signal of the body to be detected sent by the detection part is received; if the body to be detected is in the first opening state after the closing state according to the opening and closing state signal, detecting whether the setting part sets a secondary detection function to be in an effective state; if the setting part is detected to set the secondary detection function to be in an effective state, detecting whether a movement trigger signal of the body to be detected sent by the detection part is received; if a mobile trigger signal of the body to be detected sent by the detection part is received, judging whether the body to be detected is in a re-opening state after the first opening state according to the mobile trigger signal; and if the re-opening state of the body to be detected after the first opening state is judged according to the mobile trigger signal, sending first opening prompt information to the terminal equipment for displaying according to the re-opening state, and/or controlling an alarm indicating component to carry out first alarm indication according to the re-opening state. According to the embodiment of the invention, when the body to be detected is in the opened state and is not in the completely opened state and the body to be detected is further opened, the prompt information is sent to the terminal equipment or the alarm is given through the alarm indicating component, so that a user is reminded of continuing to open the body to be detected, and the potential safety hazard is reduced.
Referring to fig. 9, in an embodiment of the present invention, on the basis of the above embodiment, the apparatus further includes:
a third detecting unit 606, configured to detect whether an opening trigger signal of the body to be detected sent by the detecting component is received if it is determined that the body to be detected is in a closed state according to the opening/closing state signal;
the determining unit 604 is further configured to detect that the body is in a first-time open state according to the start trigger signal if the start trigger signal of the body to be detected sent by the detecting component is detected and received;
the first sending unit 605 is further configured to send a second start prompt message to the terminal device for displaying according to the first start state, and/or control the alarm indicating component to perform a second alarm indication according to the first start state.
Referring to fig. 9, in an embodiment of the present invention, on the basis of the above embodiment, the movement trigger signal carries a movement distance of the body to be detected;
the determining unit 604 is specifically configured to determine whether the moving distance exceeds a preset distance threshold, and if it is determined that the moving distance exceeds the preset distance threshold, determine that the body to be detected is in a re-open state after being in a first open state.
Referring to fig. 9, in an embodiment of the present invention, on the basis of the above embodiment, the movement trigger signal carries an opening angle of the body to be detected; the determining unit 604 is specifically configured to determine whether the opening angle exceeds a preset angle threshold, and if it is determined that the opening angle exceeds the preset angle threshold, determine that the body to be detected is in a re-opening state after being in a first opening state.
Referring to fig. 9, in an embodiment of the present invention, on the basis of the above embodiment, the apparatus further includes:
and a second sending unit 607, configured to send an alarm signal to the alarm indicating component for alarm according to the re-opening state.
Referring to fig. 10, fig. 10 is a block diagram of a structure of an open/close state detection system according to an embodiment of the present invention, where the system includes:
a detection part 701 for detecting an open/close state signal of the body to be detected;
a setting section 702 for setting whether the secondary detection function is in an active state;
the controller 703 is used for receiving an opening and closing state signal of the body to be detected sent by the detection part; if the body to be detected is in the first opening state after the closing state according to the opening and closing state signal, detecting whether a setting part sets a secondary detection function to be in an effective state; if the setting part is detected to set the secondary detection function to be in an effective state, detecting whether a movement trigger signal of the body to be detected sent by the detection part is received; if the mobile trigger signal of the body to be detected sent by the detection part is received, judging whether the body to be detected is in a re-opening state after the first opening state according to the mobile trigger signal; if the body to be detected is judged to be in a re-opening state after being in the initial opening state according to the mobile trigger signal, sending first opening prompt information to terminal equipment for displaying according to the re-opening state, and/or controlling an alarm indicating component to carry out first alarm indication according to the re-opening state;
the terminal device 704 is configured to display first start prompting information; and/or an alarm indication component 705 for making a first alarm indication.
In one embodiment of the present invention, the detection component 701 is an acceleration sensor or a hall effect sensor.
In one embodiment of the present invention, the detection component 701 is a ranging sensor.
In one embodiment of the present invention, the sensing component 701 is a reed pipe and magnet component or a vibration sensor component or a metal detection sensor component or a proximity sensor component
In one embodiment of the present invention, the controller 703 may be replaced with a host.
In one embodiment of the invention the system further comprises a power supply means 706 for supplying power to the detection means 701, the setting means 702, the controller 703, the terminal device 704 and the alarm indication means 705. The power supply component includes a battery powered or adapter component.
In an embodiment of the invention, the controller is connected with a communication unit 707 for sending a first turn-on prompt to the terminal device. The communication unit 707 is a Wireless Fidelity (WIFI) module, a bluetooth module, a fourth Generation mobile communication technology (4G) module, or a ZIGBEE module.
In another embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program, where the computer program includes program instructions, where the program instructions implement all or part of the procedures in the method of the above embodiments when executed by a processor, and may also be implemented by a computer program instructing associated hardware, where the computer program may be stored in a computer-readable storage medium, and where the computer program can implement the steps of the above method embodiments when executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the terminal. The computer readable storage medium may also be an external storage device of the terminal, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the terminal. The computer-readable storage medium is used for storing the computer program and other programs and data required by the terminal. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the terminal and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed terminal and method can be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An open-close state detection method is characterized by comprising the following steps:
receiving an opening and closing state signal of the body to be detected sent by the detection part;
if the body to be detected is in the first opening state after the closing state according to the opening and closing state signal, detecting whether a setting part sets a secondary detection function to be in an effective state;
if the setting component is detected to set the secondary detection function to be in an invalid state, sending a prompt of closing the secondary detection function to the terminal equipment;
if the setting part is detected to set the secondary detection function to be in an effective state, detecting whether a movement trigger signal of the body to be detected sent by the detection part is received; if the mobile trigger signal of the body to be detected sent by the detection part is received, judging whether the body to be detected is in a re-opening state after the first opening state according to the mobile trigger signal;
if the body to be detected is judged to be in a re-opening state after being in the initial opening state according to the mobile trigger signal, sending first opening prompt information to terminal equipment for displaying according to the re-opening state, and/or controlling an alarm indicating component to carry out first alarm indication according to the re-opening state;
the detection component for detecting the first opening state of the body to be detected is a magnetic sensor, and the detection component for detecting the second opening state of the body to be detected after the first opening state is a distance sensor or an angle sensor.
2. The opening/closing state detection method according to claim 1, further comprising:
if the body to be detected is judged to be in the closed state according to the opening and closing state signal, whether an opening trigger signal of the body to be detected sent by the detection part is received or not is detected;
if the detection receives the opening trigger signal of the body to be detected sent by the detection part, judging that the body to be detected is in a first opening state according to the opening trigger signal;
and sending second starting prompt information to the terminal equipment for displaying according to the first starting state, and/or controlling an alarm indicating component to carry out second alarm indication according to the first starting state.
3. The opening-closing state detection method according to claim 1, wherein when the detection member that detects the reopened state after the body to be detected is in the first opened state is a distance sensor, the movement trigger signal carries the movement distance of the body to be detected;
the re-opening state after judging whether the body to be detected is in the first opening state according to the mobile trigger signal comprises the following steps:
judging whether the moving distance exceeds a preset distance threshold value or not;
and if the moving distance is judged to exceed the preset distance threshold value, determining the re-opening state of the body to be detected after the body to be detected is in the first opening state.
4. The opening and closing state detection method according to claim 1, wherein when the detection member that detects the reopened state after the body to be detected is in the first opened state is an angle sensor, the movement trigger signal carries the opened angle of the body to be detected;
the re-opening state after judging whether the body to be detected is in the first opening state according to the mobile trigger signal comprises the following steps:
judging whether the opening angle exceeds a preset angle threshold value or not;
and if the opening angle exceeds the preset angle threshold value, determining a re-opening state of the body to be detected after the body to be detected is in the first opening state.
5. An open-close state detection device, comprising:
the receiving unit is used for receiving the opening and closing state signal of the body to be detected sent by the detection part;
the first detection unit is used for detecting whether the setting part sets a secondary detection function to be in an effective state or not if the first opening state of the body to be detected after the body to be detected is in the closed state is judged according to the opening and closing state signal;
the second detection unit is used for detecting whether a movement trigger signal of the body to be detected sent by the detection part is received or not if the setting part is detected to set the secondary detection function to be in an effective state;
the prompting unit is used for sending a prompt of closing the secondary detection function to the terminal equipment if the setting component is detected to set the secondary detection function to be in an invalid state;
the judging unit is used for judging whether the body to be detected is in a re-opening state after the first opening state according to the movement trigger signal if the movement trigger signal of the body to be detected sent by the detecting part is received;
the first sending unit is used for sending first starting prompt information to the terminal equipment for displaying according to the re-starting state and/or controlling the alarm indicating component to carry out first alarm indication according to the re-starting state if the re-starting state after the body to be detected is in the first starting state is judged according to the mobile trigger signal;
the detection component for detecting the first opening state of the body to be detected is a magnetic sensor, and the detection component for detecting the second opening state of the body to be detected after the first opening state is a distance sensor or an angle sensor.
6. The opening-closing state detection device according to claim 5, further comprising:
the third detection unit is used for detecting whether an opening trigger signal of the body to be detected sent by the detection part is received or not if the body to be detected is judged to be in the closed state according to the opening and closing state signal;
the judging unit is further configured to judge that the body to be detected is in a first-time opening state according to the opening trigger signal if the body to be detected sent by the detecting component is detected and received;
the first sending unit is further configured to send second start prompting information to the terminal device for displaying according to the first start state, and/or control the alarm indicating component to perform second alarm indication according to the first start state.
7. The opening-closing state detection device according to claim 5, wherein when the detection member that detects the reopened state after the body to be detected is in the first opened state is a distance sensor, the movement trigger signal carries the movement distance of the body to be detected;
the judging unit is specifically configured to judge whether the moving distance exceeds a preset distance threshold, and if it is judged that the moving distance exceeds the preset distance threshold, determine that the body to be detected is in a re-opening state after being in a first opening state.
8. The opening and closing state detection device according to claim 5, wherein when the detection member that detects the reopened state after the body to be detected is in the first opened state is an angle sensor, the movement trigger signal carries the opened angle of the body to be detected;
the judging unit is specifically configured to judge whether the opening angle exceeds a preset angle threshold, and if the opening angle exceeds the preset angle threshold, determine that the body to be detected is in a re-opening state after being in a first-time opening state.
9. An open-close state detection system, comprising:
the detection component is used for detecting an opening and closing state signal of the body to be detected; the detection component for detecting the first opening state of the body to be detected is a magnetic sensor, and the detection component for detecting the second opening state of the body to be detected after the first opening state is a distance sensor or an angle sensor;
a setting means for setting whether the secondary detection function is in an active state;
the controller is used for receiving the opening and closing state signal of the body to be detected sent by the detection part; if the body to be detected is in the first opening state after the closing state according to the opening and closing state signal, detecting whether a setting part sets a secondary detection function to be in an effective state; if the setting component is detected to set the secondary detection function to be in an invalid state, sending a prompt of closing the secondary detection function to the terminal equipment; if the setting part is detected to set the secondary detection function to be in an effective state, detecting whether a movement trigger signal of the body to be detected sent by the detection part is received; if the mobile trigger signal of the body to be detected sent by the detection part is received, judging whether the body to be detected is in a re-opening state after the first opening state according to the mobile trigger signal; if the body to be detected is judged to be in a re-opening state after being in the initial opening state according to the mobile trigger signal, sending first opening prompt information to terminal equipment for displaying according to the re-opening state, and/or controlling an alarm indicating component to carry out first alarm indication according to the re-opening state;
the terminal equipment is used for displaying the first starting prompt information; and/or an alarm indication means for making a first alarm indication.
10. The opening and closing state detection system according to claim 9, further comprising a communication component connected to the controller for sending a first opening prompt message to the terminal device.
CN201711375082.8A 2017-12-19 2017-12-19 Opening and closing state detection method and system Active CN108389342B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711375082.8A CN108389342B (en) 2017-12-19 2017-12-19 Opening and closing state detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711375082.8A CN108389342B (en) 2017-12-19 2017-12-19 Opening and closing state detection method and system

Publications (2)

Publication Number Publication Date
CN108389342A CN108389342A (en) 2018-08-10
CN108389342B true CN108389342B (en) 2020-04-28

Family

ID=63076237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711375082.8A Active CN108389342B (en) 2017-12-19 2017-12-19 Opening and closing state detection method and system

Country Status (1)

Country Link
CN (1) CN108389342B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109767611B (en) * 2018-12-29 2021-03-16 珠海优特智厨科技有限公司 Abnormal state determination method, abnormal state determination device, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996021916A1 (en) * 1995-01-11 1996-07-18 Aristocrat Leisure Industries Pty. Ltd. Door security system
JP3832508B1 (en) * 2006-03-01 2006-10-11 オムロン株式会社 Open / close detection device
CN103971475A (en) * 2013-01-24 2014-08-06 笔笔发信息技术(上海)有限公司 Method for performing security and protection monitoring by using position sensor
CN106097619A (en) * 2016-08-23 2016-11-09 广东华浩科技有限公司 Burglary-resisting system and method
CN106778924A (en) * 2015-11-24 2017-05-31 小米科技有限责任公司 Door and window condition detection method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996021916A1 (en) * 1995-01-11 1996-07-18 Aristocrat Leisure Industries Pty. Ltd. Door security system
JP3832508B1 (en) * 2006-03-01 2006-10-11 オムロン株式会社 Open / close detection device
CN103971475A (en) * 2013-01-24 2014-08-06 笔笔发信息技术(上海)有限公司 Method for performing security and protection monitoring by using position sensor
CN106778924A (en) * 2015-11-24 2017-05-31 小米科技有限责任公司 Door and window condition detection method and device
CN106097619A (en) * 2016-08-23 2016-11-09 广东华浩科技有限公司 Burglary-resisting system and method

Also Published As

Publication number Publication date
CN108389342A (en) 2018-08-10

Similar Documents

Publication Publication Date Title
EP2930705B1 (en) Method and apparatus for controlling smart terminal
CN110706382A (en) Intelligent door lock capable of detecting human body distance, awakening method and storage medium
CN104832446A (en) Method and device for controlling fan
CN204946284U (en) To go out alarm set
CN108710795B (en) Information prompting method and device, mobile terminal and storage medium
CN106970552B (en) Switch control method, intelligent switch and mobile terminal
US10598741B2 (en) Sensor configuration for a latch assembly
CN108844177A (en) The door-plate control method and air conditioner of air conditioner
CN108389342B (en) Opening and closing state detection method and system
CN103306592A (en) Safety reminding system and safety reminding method
CN104574799A (en) Anti-collision reminding system and method
EP3989195A1 (en) System and method for automatically disarming an intrusion detection system
CN105390120A (en) Bright screen control method and device
CN110579076B (en) Intelligent refrigerator reminding method and device, medium, control equipment and refrigerator
CN112854952A (en) Intelligent access system
US10775232B2 (en) Environmental sensor
US20180144592A1 (en) Device and method for theft detection
TWI532017B (en) Wireless control method, wireless host and switch control device
CN107940670B (en) Air conditioner opening and closing structure control method, air conditioner and readable storage medium
CN110136358A (en) The control method of intelligent express delivery cabinet and intelligent express delivery cabinet
CN109917714B (en) Barrier gate control method and device
CN203825762U (en) Balcony intelligent burglar alarm
CN203733069U (en) Wireless alarm with gesture recognition function
JP5885090B2 (en) Crime prevention system, crime prevention method
CN108387201B (en) Opening and closing distance detection method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant