Device state monitoring method and apparatus
AssigneeHangzhou Hikvision Digital Technology Co., Ltd.
InventorYuhua Luo
Life of this patent
Estimating the term…
Abstract
The present application provides a method and apparatus for monitoring a device state. The method includes: detecting one or more current values of one or more state parameters; for each state parameter of the one or more state parameters, determining whether the current value of the state parameter changes relative to a recorded value of the state parameter; and reporting the current value of the state parameter to a client through a connection between the present device and the client in response to determining that the current value of the state parameter changes relative to the recorded value of the state parameter.
Claims20
A method of monitoring a device state, the method comprising:
- detecting one or more current values of one or more state parameters;
- for each state parameter of the one or more state parameters,
- determining whether the current value of the state parameter changes relative to a recorded value of the state parameter;
- and
- in response to determining that the current value of the state parameter changes relative to the recorded value of the state parameter, reporting the current value of the state parameter to a client through a connection between an electronic device and the client;
- starting a preset timer in response to detecting that the electronic device and the client are disconnected;
- if a reconnection request is received from the client before the timer expires and the reconnection request carries a full reporting identifier same as a full reporting identifier corresponding to the client which is locally recorded by the electronic device, turning off the timer and sending a second connection response to the client to reconnect with the client;
- and
- if a reconnection request is not received from the client when the timer expires, deleting the full reporting identifier corresponding to the client which is locally recorded by the electronic device.
An electronic device, comprising:
- at least one processor, and
- at least one non-transitory computer readable storage medium storing machine-executable instructions for execution by the at least one processor to perform-operations comprising:
- detecting one or more current values of one or more state parameters;
- for each state parameter of the one or more state parameters,
- determining whether the current value of the state parameter changes relative to a recorded value of the state parameter;
- and
- in response to determining that the current value of the state parameter changes relative to the recorded value of the state parameter, reporting the current value of the state parameter to a client through a connection between the electronic device and the client;
- starting a preset timer in response to detecting that the electronic device and the client are disconnected;
- if a reconnection request is received from the client before the timer expires and the reconnection request carries a full reporting identifier same as a full reporting identifier corresponding to the client which is locally recorded by the electronic device, turning off the timer and sending a second connection response to the client to reconnect with the client;
- and
- if a reconnection request is not received from the client when the timer expires, deleting the full reporting identifier corresponding to the client which is locally recorded by the electronic device.
A non-transitory computer readable storage medium storing computer programs executable by at least one processor to perform operations comprising:
- detecting one or more current values of one or more state parameters;
- for each state parameter of the one or more state parameters,
- determining whether the current value of the state parameter changes relative to a recorded value of the state parameter;
- and
- in response to determining that the current value of the state parameter changes relative to the recorded value of the state parameter, reporting the current value of the state parameter to a client through a connection between an electronic device and the client;
- starting a preset timer in response to detecting that the electronic device and the client are disconnected;
- if a reconnection request is received from the client before the timer expires and the reconnection request carries a full reporting identifier same as a full reporting identifier corresponding to the client which is locally recorded by the electronic device, turning off the timer and sending a second connection response to the client to reconnect with the client;
- and
- if a reconnection request is not received from the client when the timer expires, deleting the full reporting identifier corresponding to the client which is locally recorded by the electronic device.
Dependencies are inferred from the claim text.