Method and device for detecting state of door or window
AssigneeRobert Bosch GmbH
InventorsSHangru Li, Dan Liu, Haibo Qin
Life of this patent
Estimating the term…
Abstract
A method for detecting a state of a door or window is provided, comprising: receiving sensor data from a sensor arranged on the door or window, the sensor data comprising magnetometer data and at least one of angular velocity data and acceleration data; judging whether magnetic field distortion is present on the basis of the sensor data; and when it is judged that the magnetic field distortion is not present, determining the state of the door or window on the basis of the magnetometer data. The accuracy of state detection is thereby increased.
Claims12
A method for detecting a state of a door or window, comprising:
- receiving sensor data from at least one sensor arranged on the door or window, the sensor data comprising magnetometer data and at least one of angular velocity data and acceleration data;
- judging whether magnetic field distortion is present in a detection environment of the at least one sensor based on the sensor data;
- when it is judged that the magnetic field distortion is not present, determining the state of the door or window based on the magnetometer data;
- and
- when it is judged that the magnetic field distortion is present, determining the state of the door or window based on the at least one of the angular velocity data and the acceleration data,
- wherein the method is implemented in a non-transitory machine-readable storage medium that stores computer program instructions which, when run, causes a processor to perform the method,
- wherein:
- the judging of whether magnetic field distortion is present based on the sensor data comprises:
- judging whether the door or window is stationary based on the sensor data;
- when it is judged that the door or window is stationary, judging whether magnetic field distortion is present based on the magnetometer data;
- when it is judged that the door or window is not stationary:
- determining one or more opening angle of the door or window based on the at least one of the angular velocity data and the acceleration data;
- determining magnetometer data for the one or more opening angle;
- and
- judging whether the magnetic field distortion is present based on the one or more opening angle, the magnetometer data determined for the one or more opening angle, and a predetermined correspondence between each opening angle of the door or window and corresponding magnetometer data, the predetermined correspondence being determined in the absence of the magnetic field distortion;
- and
- when it is judged that the magnetic field distortion is not present, the state of the door or window is determined based on the magnetometer data and the predetermined correspondence.
A device for detecting a state of a door or window, comprising:
- a non-transitory machine readable storage medium configured to store computer program instructions;
- and
- a processor configured to execute the computer program instructions, the processor comprising:
- a receiving unit configured to receive sensor data from at least one sensor arranged on the door or window, the sensor data comprising magnetometer data and at least one of angular velocity data and acceleration data;
- a judgment unit configured to judge whether magnetic field distortion is present in a detection environment of the at least one sensor based on the sensor data;
- and
- a state determining unit configured to:
- when it is judged that the magnetic field distortion is not present, determine the state of the door or window based on the magnetometer data;
- and
- when it is judged that the magnetic field distortion is present, determine the state of the door or window based on the at least one of the angular velocity and the acceleration data,
- wherein the judgment unit comprises:
- a first judgment unit configured to judge whether the door or window is stationary based on the sensor data;
- and
- a second judgment unit configured to:
- when the first judgment unit judges that the door or window is stationary, judge whether magnetic field distortion is present based on the magnetometer data;
- and
- when the first judgment unit judges that the door or window is not stationary:
- determine one or more opening angle of the door or window based on the at least one of the angular velocity data and the acceleration data;
- determine magnetometer data for the one or more opening angle;
- and
- judge whether the magnetic field distortion is present based on the one or more opening angle, corresponding magnetometer data, and a predetermined correspondence between each opening angle of the door or window and corresponding magnetometer data, the predetermined correspondence being determined in the absence of the magnetic field distortion, and
- wherein the state determining unit is configured to determine the state of the door or window based on the magnetometer data and the predetermined correspondence when the second judgment unit judges that the magnetic field distortion is not present.
Dependencies are inferred from the claim text.