WO2020020309A1 - 一种智能设备的控制方法及系统 - Google Patents

一种智能设备的控制方法及系统 Download PDF

Info

Publication number
WO2020020309A1
WO2020020309A1 PCT/CN2019/097780 CN2019097780W WO2020020309A1 WO 2020020309 A1 WO2020020309 A1 WO 2020020309A1 CN 2019097780 W CN2019097780 W CN 2019097780W WO 2020020309 A1 WO2020020309 A1 WO 2020020309A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
door lock
smart
status
password
Prior art date
Application number
PCT/CN2019/097780
Other languages
English (en)
French (fr)
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
Priority claimed from CN201810824237.XA external-priority patent/CN108898725B/zh
Priority claimed from CN201810824229.5A external-priority patent/CN108958665B/zh
Priority claimed from CN201810877034.7A external-priority patent/CN110792320B/zh
Priority claimed from CN201811030152.0A external-priority patent/CN109272728B/zh
Application filed by 云丁网络技术(北京)有限公司 filed Critical 云丁网络技术(北京)有限公司
Priority to EP19840870.0A priority Critical patent/EP3828841A4/en
Publication of WO2020020309A1 publication Critical patent/WO2020020309A1/zh
Priority to US17/157,860 priority patent/US11423721B2/en
Priority to US17/821,468 priority patent/US20220398885A1/en

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B41/00Locks with visible indication as to whether the lock is locked or unlocked
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • G07C2009/0042Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks the transmitted data signal containing a code which is changed
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C2009/00753Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by active electrical keys
    • G07C2009/00769Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by active electrical keys with data transmission performed by wireless means
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C2209/00Indexing scheme relating to groups G07C9/00 - G07C9/38
    • G07C2209/60Indexing scheme relating to groups G07C9/00174 - G07C9/00944
    • G07C2209/62Comprising means for indicating the status of the lock
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/40Remote control systems using repeaters, converters, gateways
    • G08C2201/42Transmitting or receiving remote control signals via a network

Definitions

  • the present application relates to the field of intelligent devices and control technologies, and in particular, to a method and system for controlling Internet-based intelligent devices.
  • the present application provides a method and system for controlling an intelligent device.
  • One embodiment of the present application provides a control system including: a storage device storing a group of instructions; and one or more processors in communication with the storage device, wherein when the group of instructions is executed, the one or The above processor is configured to enable the system to: obtain the association information of the smart device; the association information includes at least the smart device information and / or the communication status of the smart device; and process the association information of the smart device based on a preset algorithm to determine Instruction information of the smart device; performing a specified operation related to the smart device based at least on the instruction information.
  • the communication status of the smart device includes at least the data transmission status of the smart device; the one or more processors are configured to cause the system to: determine whether to generate history information based on the data transmission status If the data transmission status is failed, determining historical record information based on the transmitted data; and storing the historical record information locally.
  • the history information is stored locally, and the one or more processors are further configured to cause the system to: store the history information in the form of header information and valid information In the storage location corresponding to the write pointer, wherein the header information reflects at least the data status, data type, and valid data length of the history record information; and the valid information reflects the data content of the history record information.
  • the communication status of the smart device includes at least the online status of the smart device; the one or more processors are further configured to enable the system: if the online status is offline, generating an activation code; The activation code includes at least an offline password.
  • the activation code further includes usage restriction condition information of the offline password.
  • an online password is generated, and the online password is sent to the user terminal and the door lock controller.
  • the smart device further includes a smart door lock
  • the smart device information includes at least two component information related to the smart door lock
  • the one or more processors are further configured to enable the system: The status information of the smart door lock is determined based on a preset algorithm and two component information.
  • the one or more processors are configured to cause the system to generate reminder information based on preset rules and status information of the smart door lock, and send the reminder information to the terminal.
  • the smart device information includes at least power information related to the smart device
  • the one or more processors are further configured to cause the system to: determine a first collected value of the smart device power information; determine the smart The second collected value of the device power information; processing the first collected value and the second collected value based on a preset algorithm to obtain a processing result; and based on the processing result, determining a power upload time of the smart device.
  • the one or more processors are further configured to cause the system to perform a power management operation on the smart device based on the processing result.
  • One of the embodiments of the present application provides a control method, including: acquiring association information of a smart device; the association information includes at least the smart device information and / or the communication state of the smart device; and performing association information on the smart device based on a preset algorithm. Processing to determine the indication information of the smart device; and performing a specified operation related to the smart device based at least on the indication information.
  • One embodiment of the present application provides a computer-readable storage medium, characterized in that the storage medium stores computer instructions, and when the instructions are executed by one or more processors of the system, the system: obtains a smart device
  • the associated information includes at least the smart device information and / or the communication status of the smart device; the association information of the smart device is processed based on a preset algorithm to determine the indication information of the smart device; based on at least the indication information, The specified action related to the smart device.
  • One embodiment of the present application provides a method for storing historical record information, which is characterized by comprising: when the device operation information is reported to the server fails, obtaining a write pointer in the historical record information area; and using the device operation information as historical record information. Is stored in a storage location corresponding to the write pointer; and the storage location corresponding to the write pointer is updated.
  • the method further includes: judging whether the operation information reporting server is successful, the operation information is device operation information or valid history record information; if successful, obtaining a read pointer of the history information area; The storage location of the read pointer reads the valid history information, reports the valid history information, and returns whether the execution of the judgment operation information is reported to the server successfully; if it fails, judges whether the operation information is stored history information ; If it is the stored history information, no operation is performed; if it is not the stored history information, the write pointer in the obtaining history information area is executed.
  • the method further comprises: determining whether the history information stored in the history information area is greater than the storage location of the write pointer. Preset the maximum storage amount; if yes, erase the history information in the earliest stored sector in the history information area and update the storage location corresponding to the write pointer; if not, execute the history Recording information is stored in a storage location corresponding to the write pointer.
  • the method further includes: judging the history reported in the history information area according to the read pointer of the history information area Whether the recorded information is greater than the preset maximum storage amount; if so, the reported historical record information in the earliest stored sector in the historical record information area is erased, and the storage location corresponding to the read pointer is updated; if not, And executing the reading of valid history information according to the storage position of the read pointer, and reporting the valid history information.
  • the obtaining the read pointer of the history information area includes: obtaining the current read pointer of the history information area; judging whether the storage location corresponding to the current read pointer has an abnormal data identifier; if yes, changing the In the history information area, the read pointer corresponding to the storage location corresponding to the current read pointer is determined as the current read pointer, and the judgment is performed to determine whether the storage location corresponding to the current read pointer has an abnormal data identifier; if not, The current read pointer is determined as the read pointer of the history information area.
  • the history information includes data status, data type, valid data length, data validity identifier, and valid data.
  • One embodiment of the present application provides a storage device for historical record information, which is characterized in that it includes: a write pointer acquisition unit, configured to obtain a write pointer in the historical record information area when the device operation information is reported to the server failure; historical record information
  • the storage unit is configured to store the device operation information in the form of history information in a storage location corresponding to the write pointer; the write pointer update unit is configured to update a storage location corresponding to the write pointer.
  • the apparatus further includes: a first determining unit, configured to determine whether the operation information is reported to the server successfully, the operation information being device operation information or valid history information; if successful, triggering a read pointer acquisition unit, An information reporting unit, configured to read valid history information according to the storage location of the read pointer, report the valid history information, and trigger the first judgment unit; If it fails, a second judgment unit is triggered to determine whether the operation information is stored history information; if it is stored history information, no operation is performed; if it is not stored history information, Triggering the write pointer obtaining unit.
  • a first determining unit configured to determine whether the operation information is reported to the server successfully, the operation information being device operation information or valid history information
  • An information reporting unit configured to read valid history information according to the storage location of the read pointer, report the valid history information, and trigger the first judgment unit; If it fails, a second judgment unit is triggered to determine whether the operation information is stored history information; if it is stored history information, no operation is performed; if it is not stored
  • the device further includes: a third determining unit, configured to determine whether the historical record information stored in the historical record information area is greater than a preset maximum storage amount according to the storage position of the write pointer; If yes, trigger a first erasing unit for erasing the history information in the sector with the earliest storage time in the history information area and update the storage location corresponding to the write pointer; if not, trigger the history Record information storage unit.
  • a third determining unit configured to determine whether the historical record information stored in the historical record information area is greater than a preset maximum storage amount according to the storage position of the write pointer; If yes, trigger a first erasing unit for erasing the history information in the sector with the earliest storage time in the history information area and update the storage location corresponding to the write pointer; if not, trigger the history Record information storage unit.
  • the apparatus further includes: a fourth judgment unit, configured to judge whether the history information reported in the history information area is greater than a preset maximum storage according to the read pointer of the history information area If yes, trigger a second erasing unit for erasing the reported history information in the sector with the earliest storage time in the history information area and updating the storage location corresponding to the read pointer; if not , Triggering the information reporting unit.
  • a fourth judgment unit configured to judge whether the history information reported in the history information area is greater than a preset maximum storage according to the read pointer of the history information area If yes, trigger a second erasing unit for erasing the reported history information in the sector with the earliest storage time in the history information area and updating the storage location corresponding to the read pointer; if not , Triggering the information reporting unit.
  • the read pointer acquisition unit includes: an acquisition subunit for acquiring a current read pointer in a history information area; a determination subunit for determining whether there is abnormal data in a storage location corresponding to the current read pointer Identification; if yes, triggering a first determining subunit for determining a read pointer corresponding to a next storage location of a storage location corresponding to a current read pointer in the history information area as a current read pointer, and triggering the judging subunit If not, triggering a second determining subunit for determining the current read pointer as a read pointer of a history information area.
  • One of the embodiments of the present application provides a method for controlling a door lock, which is characterized in that the method is applied to a server and includes: obtaining an online state of the door lock; if the online state is offline, generating an activation code; and the activation code Including the offline password and the use restriction information of the offline password; sending the activation code to a user terminal, so that the door lock controller of the door lock obtains the activation code according to a user's input operation, and analyzes the The activation code obtains the offline password and usage restriction condition information of the offline password.
  • the method further includes: generating an online password and usage restriction condition information of the online password; and sending the online password and usage restriction condition information of the online password to all The user terminal and the door lock controller are described.
  • the method before the step of obtaining the online status of the door lock, the method further includes: obtaining a preset password type of the password to be applied by the user; if the password type is a clear code, generating a clear code and the Sending the use restriction condition information of the clearing code; sending the clearing code and the use restriction condition information of the clearing code to the user terminal; if the password type is an unlock password, performing the online status of acquiring the door lock One step.
  • One embodiment of the present application provides a door lock control method, which is characterized in that the method is applied to a door lock controller and includes: determining an online state of the door lock; if the online state is offline, obtaining an input activation code; The activation code includes an offline password and information about the use restrictions of the offline password; parse the activation code to obtain the offline password and the use restrictions of the offline password in the activation code; and save the The offline password and the use restriction condition information of the offline password.
  • control method further includes: receiving an online password issued by a server and information about a use restriction condition of the online password; saving the online password and the online Information on restrictions on the use of passwords.
  • control method further includes: obtaining an entered password, a time when the password is entered, and a number of times the password history is entered; if the password is a clear code, and the time meets the clear code Use the restriction condition information, and set all the valid states of the online password, the valid state of the offline password, and the valid state of the clearing code stored in the door lock controller as invalid; if the password is an unlocking password, determine the identification Information; wherein the unlock password includes online password and offline password; the identification information is used to characterize whether the time and the number of times satisfy the use restriction information of the unlock password; if the identification information characterizes the The time and the number of times satisfy the use restriction information of the unlocking password, and control the unlocking of the door lock.
  • One embodiment of the present application provides a door lock control device, which is characterized in that it is applied to a server and includes: a state acquisition module for acquiring an online state of the door lock; and a first generation module for receiving the online state of the door.
  • a state acquisition module for acquiring an online state of the door lock
  • a first generation module for receiving the online state of the door.
  • an activation code is generated; wherein the activation code includes an offline password and information about restrictions on the use of the offline password;
  • a first sending module is configured to send the activation code to a user terminal to lock the door
  • the door lock controller obtains the activation code according to a user's input operation, and parses the activation code to obtain the offline password and usage restriction condition information of the offline password.
  • control device further includes: a second generating module configured to generate an online password and usage restriction condition information of the online password if the online status is online; a second sending module configured to: Sending the online password and the use restriction condition information of the online password to the user terminal and the door lock controller.
  • One embodiment of the present application provides a door lock control device, which is characterized in that it is applied to a door lock controller and includes: a state determination module for determining an online state of the door lock; and a first acquisition module for the The online status is offline, and the inputted activation code is obtained; wherein the activation code includes an offline password and information on restrictions on the use of the offline password; and a parsing module is configured to parse the activation code and obtain the activation code in the activation code.
  • the offline password and the use restriction information of the offline password a first saving module is configured to save the offline password and the use restriction information of the offline password.
  • control device further includes: a receiving module, configured to receive an online password issued by a server and information about a use restriction condition of the online password; a second saving module, configured to save the online password and Information about the use restrictions of the online password.
  • One embodiment of the present application provides a method for reminding the status of a smart door lock, which is characterized by comprising: obtaining status information of a first component and a second component on the smart door lock, the status information of the first component is used Indicating the opening and closing status of the door, and the status information of the second component is used to indicate the lock status of the lock; determining the status information of the smart door lock according to the status information of the first component and the second component; When the state information of the smart door lock meets a preset condition, a reminder message including the state information of the smart door lock is generated; and the reminder information is sent to a terminal having an association relationship with the smart door lock according to a preset rule.
  • the first component is a thimble
  • the thimble has two states of retracted and ejected
  • the second component is a diagonal tongue
  • the inclined tongue has two states of retracted and ejected
  • the state is that the door is closed and locked; or when the ejector pin is retracted and the oblique tongue is retracted, it is determined that the state of the smart door lock is that the door is closed and unlocked; or when the ejector pin is ejected, the state is determined
  • the state of the smart door lock is that the door is open.
  • the sending the reminder information to a terminal associated with the smart door lock according to a preset rule includes: sending the reminder information according to the belonging status of the house corresponding to the smart door lock. And sending to the terminal having an associated relationship with the smart door lock, where the belonging condition is used to indicate that the house is currently in a use state or a management state.
  • the status information of the smart door lock includes a door opened, a door closed unlocked, and a door closed and locked, and when the status information of the smart door lock meets a preset condition,
  • the reminder information of the status information of the smart door lock includes: when the status information of the smart door lock is open and the duration exceeds a first preset duration, generating a first reminder information including the status information; or
  • the status information of the smart door lock is that when the door is closed and unlocked, and the current time reaches a preset time point, a second reminder message including the status information is generated; or when the status information of the smart door lock is that the door is closed And is locked, and the current time is a second preset duration from the time when the smart door lock was opened last time, and a third reminder message including the status information is generated.
  • the sending the reminder information to a terminal associated with the smart door lock according to a preset rule includes: generating the first reminder information, the second reminder information, or all After the third reminder information is described, determine the ownership of the house corresponding to the smart door lock; if the house corresponding to the smart door lock is in use, send the first reminder to the user terminal of the house corresponding to the smart door lock Information, the second reminder information, or the third reminder information.
  • the sending the reminder information to a terminal that is mostly associated with the smarts according to a preset rule includes: after generating the first reminder information or the second reminder information, Determine the ownership of the house corresponding to the smart door lock; if the house corresponding to the smart door lock is in a management state, send the first reminder information or the second reminder to the terminal of the manager corresponding to the house corresponding to the smart door lock information.
  • the method for reminding the status of a smart door lock further includes: receiving request information sent by a terminal for viewing status information of the smart door lock, the request information including request identity information; When viewing the authority, the status information of the smart door lock is returned to the terminal.
  • the acquiring the status information of the first component and the second component on the smart door lock includes: receiving status information of the first component and the second component uploaded by the smart door lock according to a preset frequency, or The smart door lock sends a status acquisition request and receives status information of the first component and the second component sent by the smart door lock according to the status acquisition request.
  • the acquiring the status information of the first component and the second component on the smart door lock includes receiving status information of the first component and the second component uploaded by the smart door lock when its own status changes. .
  • One embodiment of the present application provides a status reminder device for a smart door lock, which is characterized in that it includes: an information acquisition module for obtaining status information of a first component and a second component on the smart door lock, the first component The status information of the component is used to indicate the opening and closing status of the door, the status information of the second component is used to indicate the lock status of the lock; and a status determination module is configured to, according to the status information of the first component and the second component, Determining status information of the smart door lock; an information generating module, configured to generate reminder information including status information of the smart door lock when the status information of the smart door lock meets a preset condition; an information sending module, And sending the reminder information to a terminal having an association relationship with the smart door lock according to a preset rule.
  • One embodiment of the present application provides a power management method, which is characterized by comprising: collecting power from a battery-powered device according to a determined preset reporting time of a power, and determining a first collection value at the preset reporting time; Carrying out power collection for the battery-powered device to determine a second collected value, wherein a generation time of the second collected value is later than a generation time of the first collected value; and combining the first collected value with the first collected value The two collected values are compared to obtain a comparison result; based on the comparison result, determining a power upload time of the battery-powered device and performing power management of the battery-powered device.
  • performing power collection on the battery-powered device according to the determined preset reporting time of the power and determining the first collection value at the preset reporting time includes: performing power collection according to the determined power collection time interval Collect and obtain a collection of power collection values, wherein the collection of power collection values includes several collection of power values; determining a plurality of collection of power values in the collection of power collection values according to a first preset reporting time; An average value of a plurality of power collection values is recorded as a first power collection value; a first time point corresponding to the first power collection value and the first preset reporting time is recorded as a first Collected values.
  • the performing power collection on the battery-powered device to determine a second collection value includes: setting the first preset reporting time The time point corresponding to the reporting time is taken as the first power collection time point, and a predetermined number of power collection values are collected at a preset time interval; an average value of the power collection values is calculated, and the average value is recorded as the second power collection value Obtaining a second time point at which power was last collected, and recording the second power value and the second time point as a second value.
  • comparing the first collected value with the second collected value to obtain a comparison result includes: calculating and obtaining a first electric power collection value corresponding to the first collected value and the first collected value The difference in power between the two power collection values; the time difference between the second time point and the first time point is calculated and obtained.
  • determining the upload time of the power of the battery-powered device and performing power management of the battery-powered device based on the comparison result includes determining whether the power difference is greater than a preset abnormal power.
  • the change threshold if it is, determine whether the time difference is less than a preset abnormality detection time threshold, and if so, calculate and obtain a power upload value according to the first and second collection values;
  • the power upload value is sent to the server, wherein based on the power upload value, it can be learned that the battery-powered device is in a high power consumption state; and power management corresponding to the high power consumption state is performed on the battery-powered device.
  • the performing power collection on the battery-powered device to determine a second collection value includes: collecting at a preset power collection interval A power value within a second preset reporting time range; calculating an average value of the power value within the second preset reporting time range, and recording the average value as a second power collection value, wherein the second collection The value includes a second time point corresponding to the second power collection value and the second preset reporting time.
  • performing the power management of the smart door lock based on the comparison result includes: determining whether the comparison result meets a predetermined condition of a preset normal state of power, and if so, performing the The first processing of the second collected value, the first processing signifies that the second collected value is not uploaded to the server; if not, the second collected value is uploaded to the server, and the battery is powered on.
  • a second process of the device the second process characterizing power management of the battery-powered device in a low power state.
  • performing the second processing on the battery-powered device includes: turning off a predetermined power consumption module of the battery-powered device.
  • the power management method further includes: obtaining, through Bluetooth broadcast detection, whether there is a terminal device connected to the battery-powered device, and if so, sending the power of the battery-powered device at the upload time To the terminal device.
  • An embodiment of the present application provides a power management device, which is characterized in that it includes: a first collection unit configured to collect power from a battery-powered device according to a determined preset reporting time of the power and determine to report at the preset A first collection value of time; a second collection unit configured to collect power from the battery-powered device to determine a second collection value, wherein a generation time of the second collection value is later than that of the first collection value Generation time; a comparison unit configured to compare the first acquired value with the second acquired value to obtain a comparison result; a determination unit configured to determine a power upload time of the battery-powered device based on the comparison result And perform power management on the battery-powered device.
  • FIG. 1 is a schematic diagram of an application scenario of a control method and system for a smart device according to some embodiments of the present application;
  • FIG. 1 is a schematic diagram of an application scenario of a control method and system for a smart device according to some embodiments of the present application;
  • FIG. 2 is an exemplary flowchart of a power management method according to some embodiments of the present application.
  • FIG. 3 is a schematic flowchart of a power management method according to some embodiments of the present invention.
  • FIG. 4 is an exemplary flowchart of a method for determining a first collected value provided in an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a power timeline of a smart door lock provided in an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a main control unit of a smart door lock provided in an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of an opening module and a closing module of a smart door lock when an abnormal power consumption occurs in an embodiment of the present invention
  • FIG. 8 is an exemplary block diagram of a power management device provided in an embodiment of the present invention.
  • FIG. 9 is an exemplary flowchart of a method for storing history information provided in an embodiment of the present invention.
  • FIG. 10 is an exemplary flowchart of another method for storing historical record information provided in an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of writing history information in an embodiment of the present invention.
  • FIG. 12 is an exemplary flowchart of a method for storing history information provided in an embodiment of the present invention.
  • FIG. 13 is a flowchart of a state reminder method for a smart door lock disclosed in an embodiment of the present invention.
  • FIG. 14 is a schematic structural flowchart of a status reminder of a smart door lock disclosed in an embodiment of the present invention.
  • 16 is a schematic structural diagram of a state reminder for a smart door lock according to an embodiment of the present invention.
  • FIG. 17 is a schematic structural diagram of another smart door lock state reminding device disclosed by an embodiment of the present invention.
  • FIG. 19 is an exemplary flowchart of another method for controlling a door lock according to an embodiment of the present invention.
  • FIG. 20 is an exemplary flowchart of another method for controlling a door lock according to an embodiment of the present invention.
  • 21 is a schematic structural diagram of a door lock control device according to an embodiment of the present invention.
  • 22 is a schematic structural diagram of another control device for a door lock according to an embodiment of the present invention.
  • system means for distinguishing different components, components, parts, parts or assemblies at different levels.
  • apparatus means for distinguishing different components, components, parts, parts or assemblies at different levels.
  • the words may be replaced by other expressions.
  • a flowchart is used in the present application to explain the operations performed by the system according to the embodiments of the present application. It should be understood that the preceding or following operations are not necessarily performed precisely in sequence. Instead, the steps can be processed in reverse order or simultaneously. At the same time, you can add other operations to these processes, or remove a step or steps from these processes.
  • FIG. 1 is a schematic diagram of an application scenario of a method and system for controlling a smart device according to some embodiments of the present application.
  • the smart device control system 100 can be used in smart door locks, smart meters, smart water meters, smart gas meters and other smart devices in various production and living areas such as residential houses, office buildings, factories, schools, hospitals, hotels, and rental houses. Control and management.
  • the system 100 can realize the power information of the smart door lock or each smart meter, and can control the power usage of the smart door lock or smart meter according to the power information.
  • the system 100 can also obtain the switch state information of the smart door lock, and can determine the safety information of the house according to the switch state information of the door lock.
  • the system 100 can also obtain online / offline status information of the smart door lock and / or other smart devices, and can perform password management on the smart door lock and / or other smart devices according to the online / offline status information.
  • the system 100 can also upload the power information of the smart device, the switch state information of the smart door lock, and the smart password management information to the corresponding server, so that the server can perform related operations based on the uploaded information.
  • the system can also store the data to be uploaded to the server locally at the smart device, and when the data transmission communication between the smart device and the server is good, then Upload the locally stored data to the server again.
  • the intelligent control system in at least one embodiment of the present specification can acquire the associated information of the smart device, such as the smart device information and / or the communication status of the smart device, and process the associated information of the smart device based on a preset algorithm. Determine the indication information of the smart device, and then perform a specified operation related to the smart device based on at least the indication information.
  • the system 100 may obtain the power-related information of the smart device, and the corresponding processor processes the obtained power-related information to determine the indication information related to the power consumption state, and controls the smart device based on the indication information. Turn on or off the power module, or give a judgment instruction based on the instruction information whether to upload the current power of the smart device to the server.
  • the system 100 may obtain position information of one or more components in a smart device (such as a smart door lock), and the corresponding processor processes the position information to determine the use status of the smart device, and according to The use status of the smart device indicates whether a security alert is required, that is, whether a message needs to be sent to the user terminal.
  • a smart device such as a smart door lock
  • the system 100 may obtain the online / offline status of a smart device (such as a smart door lock), and the processor determines the indication information based on the online / offline status, that is, generates an online password / activation code corresponding to the online / offline status, respectively. , And according to the determined instruction information, a specified operation related to the smart device, that is, whether to send an online password or an activation code to the user terminal based on the generated instruction information.
  • a smart device such as a smart door lock
  • the system 100 can obtain the data transmission status between the smart device and the server, that is, whether the smart device successfully uploads information to the server.
  • the processor determines the indication information of the smart device based on the status of the upload failure, that is, the data information that has not been uploaded successfully is determined as history information, and is performed on the smart device side according to the determined history information Operation of local storage.
  • the control system 100 of the smart device includes a server 110 (processor), a smart device 130, a client 140 (user terminal), and a network 120.
  • the server (processor) 110 may obtain and process the associated information of the smart device 130, and process the associated information of the smart device based on a preset algorithm to determine the operation instruction information of the smart device to perform one or more functions described in this application. .
  • the association information may include smart device information and / or communication status of the smart device.
  • the smart device information may be understood as the device information of the smart device, and the smart device information may include component information, power information, operation information, and the like of the smart device.
  • the device information of the smart device may be the remaining power information of the smart device.
  • the device information of the smart device may be location information of one or more components of the smart device.
  • the communication status of the smart device may be a related status when the smart device 130 and the server 110 are transmitting data through the network 120, and may specifically include, but not limited to, one or a combination of an upload status, a download status, and an online / offline status.
  • the communication state of the smart device may include whether the data is successfully uploaded by the smart device.
  • the communication state of the smart device may be whether the smart device is online.
  • the indication information can indicate information about the current state of the smart device, and can also be used to instruct any module in the system to perform one or more operations.
  • the indication information may include information indicating that the power consumption of the smart device is abnormal, and may also include information indicating that the server 110 sends a message to the user terminal 140.
  • the server 110 may perform some functions in the system 100. Specifically, in some embodiments, the server 110 may determine whether there is an abnormality in the power consumption of the smart device by obtaining the power information of the smart device. For example, if the power consumption of the smart device is too high, the server 110 may control the smart device to turn off some of the high power consumption functional module. In some embodiments, the server 110 may determine that the smart door lock is open, closed, or locked by acquiring position information of one or more components of the smart door lock. The terminal issues a security alert. In some embodiments, when the server 110 determines that the smart device is online, the server may generate an online password and an online password use condition and send the password to the smart device and the user terminal through the network.
  • the user may use the online password to unlock the smart device; when the server 110 determines that the smart device is offline, the server can generate an activation code and send it to the user terminal through the network. The user can operate the smart device through the activation code, obtain the offline password of the smart device, and use the offline password to unlock the smart device. .
  • the server 110 may be a single server or a server group.
  • the server farm may be centralized or distributed (for example, the server 110 may be a distributed system).
  • the server 110 may be local or remote.
  • the server 110 may access the smart device 130 and the client 140 through the network 120.
  • the server 110 may be directly connected to the smart device 130 and the client 140 to access the stored information and / or data.
  • the server 110 may be implemented on a cloud platform.
  • the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, between clouds, multiple clouds, or the like, or any combination of the above examples.
  • the server 110 may be implemented on a computing device.
  • the server 110 may be implemented on a mobile device.
  • the network 120 may be used for the exchange of information and / or data.
  • One or more components (server 110, smart device 130, client 140) in the system can send information / data to other components through the network 120.
  • the smart device 130 may upload data information such as power information and component information of the smart device to the server 110 through the network 120.
  • the server 110 may issue data information such as a password and an activation code to the client 140 through the network 120.
  • the network 120 may be any one or a combination of a wired network or a wireless network.
  • the network 120 may include a cable network, a wired network, a fiber optic network, a telecommunications network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), and a public switched telephone Network (PSTN), general packet wireless network (GPRS), mobile phone network, Bluetooth network, ZigBee network, near field communication (NFC) network, NB-IoT / LoRa, etc. or any combination of the above examples.
  • the network 120 may include one or more network access points.
  • the network 120 may include wired or wireless network access points, such as base stations and / or Internet exchange points 120-1, 120-2, and so on. Through an access point, one or more components of the system 100 may be connected to the network 120 to exchange data and / or information.
  • the smart device 130 may include some smart home devices provided in a house.
  • the smart device 130 may include, but is not limited to, smart door locks, smart meters, smart water meters, smart gas meters, electrical switches, televisions, and air conditioners.
  • the smart device 130 may receive instructions from the server 110 and / or the client 140 and execute the instructions.
  • the smart door lock may receive an instruction from the server 110 and close or open based on the instruction.
  • the smart door lock may receive an instruction from the server 110 and control the power switch of the function module to be turned on or off based on the instruction.
  • the smart device 130 may also transmit its own working state information to the server 110.
  • the smart door lock 130 may transmit the status information of the door lock being opened or closed to the server 110.
  • the smart door lock 130 may transmit its own power information to the server 110.
  • the smart device 130 may also include a storage device for storing data locally. Specifically, when the data upload server of the smart device fails, the smart device can locally store the data to be uploaded to the server, and when the data transmission communication between the smart device and the server is good, upload the locally stored data to the server again. server.
  • the client (user terminal) 140 may include user terminals of all relevant users of a house where the smart device 130 is installed.
  • the relevant user may include a manager of the house, for example, a merchant who rents a house; the relevant user may also include a user of the house, for example, a tenant of a rented house; the relevant user may also include the owner of the house; the relevant user may also Including house cleaning staff.
  • Clients include, but are not limited to, user terminals of any of the above roles.
  • the client 140 may be a user terminal of a hotel manager, a user terminal of a hotel occupant, a user terminal of a landlord of a rental house, or a user terminal of a tenant of a rental house.
  • the client 140 may receive information or data sent by the server 110 and the smart device 130 via the network 120.
  • the client 140 may receive the activation code information sent by the server 110.
  • the client 140 may receive the unlocked door lock information sent by the smart device 130.
  • different clients may receive different information.
  • the server 110 may send the information only to the user terminal of the renting landlord or the user terminal of the renting tenant according to a predetermined rule, or may simultaneously send to all user terminals associated with the smart device.
  • the client 140 may be used to display the recorded data of the smart device control system 100, the working status of the smart device 130, and unlocking records and other related information.
  • the client 140 may also be used to operate the smart device 130 directly or through a server, and receive an operation result fed back by the server 110 or the smart device 130 in the system 100.
  • the user can remotely unlock the smart door lock through the client and display the unlock result on the client.
  • the client 140 may include, but is not limited to, a desktop computer, a notebook computer, a smart phone, a Personal Digital Assistant (PDA), a tablet computer, a handheld game console, smart glasses, a smart watch, a wearable device , Virtual display devices, display enhancement devices, etc., or any combination thereof.
  • a storage device may be set in each of the server 110, the smart device 130, and the client 140.
  • An independent storage device may also be provided in the system 100 for storing data and / or instructions.
  • the storage device may include a large-capacity memory, a removable memory, a volatile read-write memory, a read-only memory (ROM), or the like, or any combination of the above examples.
  • Exemplary mass storage may include magnetic disks, optical disks, solid-state drives, and the like.
  • Exemplary removable memories may include flash disks, floppy disks, optical disks, memory cards, compact hard disks, magnetic tapes, and the like.
  • An exemplary volatile read-only memory may include a random access memory (RAM).
  • Exemplary random access memories may include dynamic random access memory (DRAM), dual data rate synchronous dynamic random access memory (DDRSDRAM), static random access memory (SRAM), thyristor random access memory (T-RAM), and zero-capacity memory (Z-RAM) )Wait.
  • Exemplary read-only memories may include masked read-only memory (MROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) , Compact hard disk read-only memory (CD-ROM) and digital multi-function hard disk read-only memory.
  • the storage device may also be implemented on a cloud platform.
  • the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, between clouds, multiple clouds, or the like, or any combination of the above examples.
  • the power management device as a control device in the smart device, realizes the functions of determining the power state information of the smart device and managing the power usage.
  • the power management device may include at least one processor configured to cause the system to: determine a first collection value of the smart device power information; determine a second collection of the smart device power information Processing the first collected value and the second collected value based on a preset algorithm to obtain a processing result; and determining a power upload time of the smart device based on the processing result.
  • the power management device may further include a first acquisition unit, a second acquisition unit, a comparison unit, and a determination unit.
  • the power management device may further include a module power control unit.
  • the power management device may communicate with the server 110 through the network 120 and upload the determined power information to the server 110.
  • the server 110 may also send a control instruction to the power management device through the network 120 to implement management and control of the power management device.
  • the power management device may further communicate with the user terminal 140 through the network 120 and display related information in the user terminal. For example, the user terminal 140 may display the remaining power of the smart device 130 in real time.
  • FIG. 2 is a schematic flowchart of a power management method according to some embodiments of the present invention.
  • the power management method includes:
  • Step 210 Collect the power of the battery-powered device according to the determined preset reporting time of the power, and determine a first collection value at the preset reporting time.
  • Step 210 may be implemented by a first acquisition unit.
  • a battery-powered device mainly refers to a smart device that uses a battery for power supply, for example, a device including a smart electronic photo frame, a smart router, a smart door lock, and the like.
  • the power management method is performed by a battery-powered device.
  • a power upload is performed after the battery-powered device is powered on or abnormally restarted and is bound to a new device. You also need to upload the power value to the server at the time of power reporting.
  • the power value of the battery-powered device is collected at a certain time interval, but the power value is not uploaded to the server after each collection, but the reporting time is set, and when the reporting time is preset It is possible to upload power to the server.
  • the reporting time point is uploaded every 4 hours according to a random initial initial time of 0:00 to 3:59.
  • the setting of this time can be based on the MAC address of the Bluetooth chip of the smart door lock. Fixed algorithm generation.
  • the first collection value includes not only the power collection value but also a preset reporting time or generation time corresponding to the power collection value.
  • Step 220 performs power collection on the battery-powered device to determine a second collected value.
  • Step 220 may be implemented by a second acquisition unit.
  • the generation time of the second collected value is later than the generation time of the first collected value.
  • the generation time of the second collection value is later than the generation time of the first collection value, wherein the generation time can be understood as a preset report time or the last time of power collection in a collection period. Specifically, if a collection period is 4 hours, the start time is 1:00, and the end time is 5:00, then 5:00 is the generation time of the collection value. Assuming that the generation time of the first acquisition value is 5:00, the generation time of the second acquisition value should be later than 5:00, and the time interval between the two can be based on the battery performance of the battery-powered device or the performance of the power upload server. Make settings.
  • Step 230 Compare the first collected value with the second collected value to obtain a comparison result.
  • Step 230 may be performed by a price comparison unit.
  • the first collection value after the first collection value is obtained, it will not be uploaded to the server immediately, but needs to be compared with the second collection value, which is mainly based on the comparison of the power value of the two and the collection time point to determine the difference. value.
  • Step 240 Based on the comparison result, determine a power upload time of the battery-powered device and perform power management on the battery-powered device. Step 240 may be performed by a determination unit.
  • the power upload time of the battery-powered device that is, based on the comparison result, to know the current power state of the battery-powered device, that is, whether it is in a normal power consumption state or in high power consumption or abnormal power consumption. Based on the result, it is determined whether to upload the power, and the upload time is the time when the judgment result is known. It is assumed that in order to better reduce the data pressure of the server, it is possible to upload only the collected power value that has an abnormal power problem, or upload the collected value after a certain number of collections.
  • the power management of the battery-powered device will be performed, that is, the power status of the battery-powered device can be obtained through real-time judgment, and a timely response will be made. If it is abnormal, the battery-powered device will be shut down.
  • the power management method of the smart door lock obtaineds the corresponding power collection value for a battery-powered device at a preset reporting time and another time point later than the preset reporting time, and performs the collected value at two times. Compare, determine the power upload time and perform corresponding power management based on the comparison result. On the one hand, uploading the power by determining the power upload time can reduce the pressure caused by frequent upload of power to the server, and can determine the upload time based on the judgment results to make the collected data more accurate. The management of the device can avoid the inconvenience caused by the low battery and improve the user experience.
  • a method for determining a first collected value is provided in an embodiment of the present invention. Referring to FIG. 3, the method includes:
  • Step 310 Perform power collection according to the determined power collection time interval to obtain a power collection value set.
  • the power collection value set includes a plurality of power collection values.
  • Step 320 Determine a plurality of power collection values in the power collection value set according to a first preset reporting time
  • Step 330 Calculate an average value of the plurality of power collection values, and record the average value as a first power collection value.
  • Step 340 Record a first time point corresponding to the first power collection value and the first preset reporting time as the first collection value.
  • the power collection of the smart door lock is performed at a preset time interval, and the final determined collection value is the average value of the collected power. For example, the power collection is performed at an interval frequency of 20 minutes.
  • the first reported value is the last 15 collections, of which 15 are the predetermined collections and less than 15 collections. According to the actual number of acquisitions, the average value of the collected electricity. If uploading is performed, the word uploading power is stored, and the power buffer array is cleared, that is, each power value and sampling times collected before.
  • an embodiment of the present invention also provides a method for determining a second acquisition value, which includes: corresponding to the first preset reporting time.
  • the time point is used as the first power collection time point, and a predetermined number of power collection values are collected at a preset time interval; an average value of the power collection values is calculated, and the average value is recorded as a second power collection value; the last time is obtained At a second time point when power is collected, the second power value and the second time point are recorded as a second collected value.
  • the acquisition is continued at a preset time interval, assuming that the acquisition interval frequency is once every 20 minutes.
  • the acquisition is completed 3 times, the average power and time points of the three acquisitions are calculated.
  • An embodiment of the present invention further provides a method for comparing a first collected value and a second collected value, including: calculating and obtaining a value between a first power collected value corresponding to the first collected value and the second power collected value The difference in power between the first time point and the second time point.
  • an average power value in the first collected value that is, a first power collected value P1 and a corresponding time point T1 are used as the first collected value.
  • the average power
  • a judgment is made based on the above comparison value, including: judging whether the power difference value is greater than a preset abnormal power change threshold, and if so, determining whether the time difference value is less than a preset abnormality detection time threshold, and if so, according to Calculating the power upload value by using the first collected value and the second collected value;
  • the high power consumption battery management strategy is mainly set according to the specific performance status of the corresponding battery-powered device, such as In order to reduce power consumption, the information transmission module of the device can be turned off, or its auxiliary function module can be turned off, and the power consumption of the device can be reduced while ensuring its normal operation.
  • the present invention also includes another embodiment, that is, for the case where the power collection value has been uploaded to the server, the solution includes:
  • performing power collection with the smart door lock to determine a second collected value includes:
  • the performing power management on the battery-powered device based on the comparison result includes:
  • the time point is P2.
  • T2-T1 > time threshold, that is, the power change is obvious or the device is in a low power state, or the last upload exceeds a certain time, you need to perform The power is uploaded, and P1 is updated to the currently reported power value, and at the same time, the new corresponding time point T1.
  • Figure 4 shows the power timeline of the smart door lock.
  • the power upload judgment timeline and power time upload timeline are independent of each other. Value, does not receive interference from the upload point of power.
  • the starting time is the time when the door lock is powered on.
  • the time point of the door lock power upload judgment is also randomly generated.
  • the time is randomly dispersed within 4 hours.
  • the current power situation of the door lock is also used to judge whether or not to upload, so as to avoid frequent server uploads caused by frequent uploads and the problem of untimely upload.
  • the above time-breaking strategy and optimization of the number of power uploads can ensure that the upload timing of door locks is random, thereby avoiding the pressure on the server caused by massive door lock uploading power data and uploading in time when the door lock power changes abnormally. In this way, the problem that the power change is not uploaded in time when the door is locked is solved.
  • an embodiment of the present invention further provides a method for carrying power information through Bluetooth broadcast data, including:
  • a mobile phone application of the battery-powered device can be configured to synchronize the power.
  • the main control of the smart door lock uses a Bluetooth chip.
  • the smart door lock point of each reported point is updated in the Bluetooth broadcast. If it is used near the smart door lock, the mobile phone application of the smart door lock will search Lock the surrounding smart door lock devices, the power that the smart door lock broadcasts, and update the current door lock power to the server at the same time.
  • the main module of the smart door lock is independently designed on the hardware circuit, and the power switch for control is reserved, it is connected to the main control unit of the smart door lock after being connected to the module power control unit.
  • the main control unit of the smart door lock can operate the power of different function modules through the module power control unit.
  • the smart door lock recognizes the abnormal power consumption of the door lock itself, it will adjust the strategy to close the different function modules to save power. the goal of.
  • turning off part of the power in stages can save the power consumption of the door lock as much as possible.
  • the smart door lock will also set different radio frequency transmission power to reduce the power consumption of the door lock. For example, under the premise of ensuring sufficient receiving sensitivity, the transmission power of the radio frequency is reduced by one or more levels.
  • the smart door lock also reserves a USB socket for power supply for backup power. When the door lock is exhausted, it can use USB power supply to wake up the door lock and continue to use it.
  • the smart door lock itself manages the power in two cases. One is the abnormal power consumption of the smart door lock, and the other is the low power situation of the smart door lock.
  • a smart door lock with abnormal power For a smart door lock with abnormal power, if the door lock is in a high power consumption state. If the door lock is judged to be in a high power consumption state for three consecutive times, the door lock will report an abnormal power consumption event to the server and notify the user that the door lock is in an abnormal power consumption state through a server push message. The door lock itself judges that it is in an abnormal power consumption state. The door lock will turn off the power of some non-critical components, such as the power of the infrared sensor module, and close the networking function after reporting the abnormal state. And the power supply of the password input module to reduce the power consumption of the smart door lock to the greatest extent.
  • the door lock power is divided into three levels, that is, low power, low power, and low power.
  • the power of the smart door lock corresponding to low power is between 20% and 10%.
  • the server will push a low power reminder to the user.
  • low power only the amount of door lock point is less than 10%. This is the server will remind the user to replace the battery.
  • the interaction of the smart door lock buzzer and LED will change to remind the user that the amount of door lock point is too low.
  • Exhausted power means that the power of the door lock is 0%.
  • the door lock will close all the working modules by itself and enter the shutdown state. The door lock can only be awakened to continue to use when the standby power is used.
  • FIG. 6 it is a schematic diagram of an opening module and a closing module of the smart door lock when the power consumption is abnormal.
  • the module waits for the backup battery to wake up.
  • the local interaction reminder may include a specific prompt sound issued by the smart door lock to remind the user.
  • the power management device specifically includes:
  • a first collection unit 710 configured to collect power of a battery-powered device according to the determined preset reporting time, and determine a first collected value at the preset reporting time;
  • a second collection unit 720 configured to collect power of the battery-powered device and determine a second collection value, wherein a generation time of the second collection value is later than a generation time of the first collection value;
  • a comparison unit 730 configured to compare the first acquired value with the second acquired value to obtain a comparison result
  • a determining unit 740 is configured to determine a power upload time of the battery-powered device and perform power management of the battery-powered device based on the comparison result.
  • the first collection unit includes:
  • a first acquisition subunit configured to perform power collection according to a determined power collection time interval to obtain a power collection value set, where the power collection value set includes a plurality of power collection values
  • a first determining subunit configured to determine several power collection values in the power collection value set according to a first preset reporting time
  • a first calculation subunit configured to calculate an average value of the plurality of power collection values, and record the average value as a first power collection value
  • the first recording subunit is configured to record a first time point corresponding to the first power collection value and the first preset reporting time as the first collection value.
  • the second acquisition unit includes:
  • a first collection subunit configured to use a time point corresponding to the first preset reporting time as a first power collection time point, and collect a preset number of power collection values at a preset time interval;
  • a second calculation subunit configured to calculate an average value of the power collection values, and record the average value as a second power collection value
  • the second recording subunit is configured to obtain a second time point of the last collected power, and record the second power collection value and the second time point as a second collected value.
  • the comparison unit includes:
  • a third calculation subunit configured to calculate and obtain a difference in power between a first power collection value corresponding to the first collection value and the second power collection value
  • a fourth calculation subunit is configured to calculate and obtain a time difference between the second time point and the first time point.
  • the determining unit includes:
  • the first judging subunit is configured to determine whether the power difference is greater than a preset abnormal power change threshold, and if so, determine whether the time difference is less than a preset abnormal detection time threshold, and if so, according to the first A collection value and the second collection value, and calculating and obtaining a power upload value;
  • a sending subunit configured to send the power upload value to a server, wherein based on the power upload value, it can be learned that the battery-powered device is in a high power consumption state;
  • the first management subunit is configured to perform power management corresponding to a high power consumption state on the battery-powered device.
  • the second collection unit further includes:
  • a second collection subunit configured to collect the power value within a second preset reporting time range according to a preset power collection time interval
  • a fifth calculation subunit is configured to calculate an average value of the power value within the second preset reporting time range, and record the average value as a second power collection value, where the second collection value includes a second The second time point corresponding to the power collection value and the second preset reporting time.
  • an execution unit is further included, and the execution unit specifically includes:
  • a second judging subunit configured to judge whether the comparison result satisfies a predetermined condition of a preset normal state of power, and if so, executes a first process on the second collected value, where the first process signifies that Uploading the second collected value to the server;
  • execution subunit is specifically configured to:
  • the predetermined power consumption module of the battery-powered device is turned off.
  • the power management device includes a processor and a memory.
  • the first acquisition unit, the second acquisition unit, the comparison unit, and the determination unit are all stored in the memory as program units, and the processor executes the program units stored in the memory. Implement the corresponding functions.
  • the processor contains a kernel, and the kernel retrieves the corresponding program unit from the memory.
  • the kernel can set one or more, and adjust the kernel parameters to improve the user experience.
  • Memory may include non-persistent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (RAM).
  • Memory includes at least one Memory chip.
  • An embodiment of the present invention provides a storage medium on which a program is stored, and the program implements the power management method when executed by a processor.
  • An embodiment of the present invention provides a processor, where the processor is configured to run a program, and the power management method is executed when the program runs.
  • the first collected value, the second collected value, and the power uploaded value are stored locally as historical record information Memory, such as stored in Flash.
  • the history information data can be retransmitted to the server. See Figure 8 for a more detailed description.
  • FIG. 8 is an exemplary flowchart of another power management method according to some embodiments of the present application.
  • one or more steps in the process 800 may be implemented in a power management device, including:
  • Step 810 Collect power information of the smart device at a first time to determine a first collected value.
  • step 810 may be implemented by a first acquisition unit.
  • the first time may be a preset time point or a preset time interval.
  • the first collected value may include the collected power value, and may also include first time information.
  • Step 820 Collect power information of the smart device at a second time later than the first time to determine a second collected value.
  • Step 820 may be implemented by a second acquisition unit.
  • the second time is a time preset based on the first time.
  • the second time may be a time point later than the first time and having a certain time interval from the first time.
  • the time interval between the two can be set according to the battery performance of the battery-powered device or the capacity of the data upload server.
  • the second collected value may include the collected power value, and may also include second time information.
  • Step 830 Compare the first collected value and the second collected value based on a preset algorithm to obtain a comparison result.
  • Step 830 may be implemented by a comparison unit.
  • the comparison includes a comparison of the power value and the acquisition time of the two.
  • the comparison result may be a difference between the two power values and the acquisition time.
  • Step 840 Determine a power upload time of the smart device based on the comparison result.
  • Step 240 may be implemented by a determination unit.
  • whether the comparison result needs to be uploaded to the server 110 may be determined based on the magnitude of the difference in the comparison result. For example, if the difference between the comparison results is less than a preset value, you do not need to upload the results. If the difference of the comparison result is greater than the preset value, you need to upload the result.
  • Step 850 Upload power information of the power supply device, and confirm whether the upload is successful.
  • Step 850 may be implemented by a determination unit.
  • the power amount information may be a comparison result between the first collected value and the second collected value.
  • the server 110 sends feedback information to the smart device 130 after receiving the upload information. After receiving the feedback information from the server, the smart device 130 confirms that the power information upload is successful.
  • step 860 is performed.
  • Step 860 Store the power information of the smart power supply device as historical record information.
  • Step 260 may be performed by a storage device of the smart device.
  • the historical record information may include a first collected value, a second collected value, and a comparison result. In some embodiments, the history information may be re-uploaded to the server 110 at other times.
  • Some embodiments of the present application also provide a method and device for storing historical record information.
  • the information upload server of the smart device may fail.
  • the information can be saved as historical record information in the storage area of the smart device.
  • the failure of uploading the server's related information to the smart device can be caused by the device being offline or the network status unstable.
  • the device can upload the stored history information to the server again, so that the server can perform Specify the action.
  • the communication status of the smart device includes at least the data transmission status of the smart device; the one or more processors are configured to cause the system to: determine whether to generate history information based on the data transmission status If the data transmission status is failed, determining historical record information based on the transmitted data; and storing the historical record information locally.
  • the transmission status may include transmission success and transmission failure.
  • the local storage may be stored in a storage area of the smart device, for example, stored in Flash.
  • the history information is stored in a storage location corresponding to the write pointer in the form of header information and valid information; wherein the header information reflects at least the data status and data of the history information Type, effective data length; the effective information reflects the data content of the historical record information.
  • the write pointer may indicate a position where the current data is written.
  • this embodiment discloses a method for storing historical record information, which is applied to any intelligent device, such as a smart door lock, a smart meter, etc.
  • the method includes the following steps:
  • Step 910 when the device operation information fails to report to the server, obtain a write pointer in the history information area;
  • the smart device when the smart device is powered on and the smart device generates device operation information, the smart device reports the device operation information to the server. When the device operation information fails to report to the server, the operation information becomes historical record information.
  • the reasons for the failure to report the device operation information may be that the smart device is offline, and the smart device network status is unstable.
  • the device operation information may include door lock opening and closing, door closing information, meter trip information, meter closing information, over-battery information, and over-power information.
  • the history information area may be the flash memory of the smart device.
  • the history information area includes multiple information storage areas, each information storage area corresponds to a storage location, and each information storage area stores one piece of history information.
  • the write pointer of the history information area indicates the storage location of the first available information storage area of the history information area.
  • Step 920 Store the device operation information in the form of historical record information in a storage location corresponding to the write pointer.
  • the device operation information is converted into historical record information for storage, and the historical record information includes data status, data type, valid data length, data validity identifier, and valid data.
  • Data status includes reported server and unreported server.
  • the data type represents different smart device events. Taking smart meters as an example, the data types can be meter trip, meter closing, over-capacity, over-power, etc.
  • the effective data length corresponds to the data type, and different data types correspond to different effective data lengths.
  • Data validity flags can be valid and invalid.
  • Valid data is the content of valid data.
  • the length of the history record information is variable, and the scalability and adaptability of the history record is achieved.
  • the effective information length of the door lock opening event is 10
  • the effective length of the door lock closing event is 12.
  • Step 930 Update the storage location corresponding to the write pointer.
  • the updating method may be that when a new history record is successfully written, the write pointer is moved, and the write pointer is automatically shifted by a certain position according to the size of the history record to ensure that the next history record can be written normally.
  • the write pointer corresponding to the next information storage area of the information storage area corresponding to the current write pointer is used as the updated write pointer, that is, the storage location corresponding to the updated write pointer is the current storage history in the history information area.
  • This embodiment discloses a method for storing historical record information.
  • the device operation information When the device operation information is reported to the server fails, the device operation information can be stored in the form of historical record information only according to the write pointer in the historical record information area. After storage, the storage location corresponding to the write pointer is updated for subsequent storage of historical record information, which does not require a file system, simplifies the storage process of historical record information, and solves the problem of complicated historical record storage operations.
  • this embodiment discloses another method for storing historical record information, which specifically includes the following steps:
  • Step 1010 determine whether the operation information is reported to the server successfully
  • the operation information may include device operation information or effective history information.
  • the method for determining may be based on the header information of the historical record.
  • the server returns a successful response message, and the device updates the header information when it receives the response message.
  • step 1020 obtaining a read pointer of the history information area
  • the history information is stored in the location mark abnormal data identifier his_rec_flag.
  • the current read pointer is determined as the read pointer in the history information area.
  • the data marked with an abnormal data identifier is discarded to avoid reporting junk data.
  • Step 1030 Read the valid history information according to the storage position of the read pointer, report the valid history information, and return to step 1010.
  • the valid historical record information is historical record information without abnormal data identification.
  • step 1040 determine whether the operation information is stored history information
  • step 1050 is performed: obtaining a write pointer in the history information area;
  • Step 1060 Store the history information in a storage location corresponding to the write pointer.
  • Step 1070 Update the storage location corresponding to the write pointer.
  • This embodiment discloses a reporting process and a storing process of historical record information, and implements historical record storage based on a write pointer and historical record information reporting based on a read pointer.
  • the method further includes: judging the history record reported in the history information area according to the read pointer of the history information area Whether the information is greater than the preset maximum storage amount; if so, the reported history information in the earliest stored sector in the history information area is erased and the storage location corresponding to the read pointer is updated; if not, execute Reading the effective history information according to the storage position of the read pointer, and reporting the effective history information.
  • the method further includes: judging whether the history information stored in the history information area is greater than the storage location of the write pointer. Preset the maximum storage amount; if yes, erase the history information in the earliest stored sector in the history information area and update the storage location corresponding to the write pointer; if not, execute the history Recording information is stored in a storage location corresponding to the write pointer.
  • the preset maximum storage amount is a preset storage area, and may be a sector of a flash memory.
  • the preset maximum storage amount When only the reported history information in the history information area is greater than the preset maximum storage amount, the reported history information in the earliest stored sector in the history information area is erased, and only the history information in the history information area is erased.
  • the stored history information is greater than the preset maximum storage amount, the history information in the sector with the earliest storage time in the history information area is erased, reducing the number of flash memory erasures and avoiding frequent erasure of flash memory reads and writes. Extends the useful life of smart device flash.
  • FIG. 12 A method for storing historical record information disclosed based on the above embodiment, please refer to FIG. 12, this embodiment correspondingly discloses a storage device for historical record information, which specifically includes:
  • the write pointer obtaining unit 1210 is configured to obtain a write pointer of the history information area when the device operation information is reported to the server failure;
  • the history information storage unit 1220 is configured to store the device operation information in the form of history information in the The storage location corresponding to the write pointer;
  • the write pointer update unit 1230 is configured to update a storage location corresponding to the write pointer.
  • the device further includes: a first judgment unit, configured to judge whether the operation information is reported to the server successfully, the operation information is device operation information or valid history information; if successful, a read pointer acquisition unit is triggered for: Obtaining a read pointer of the history information area; an information reporting unit is configured to read valid history information according to the storage location of the read pointer, report the valid history information, and trigger the first judgment unit; If it fails, a second judgment unit is triggered to determine whether the operation information is stored history information; if it is stored history information, no operation is performed; if it is not stored history information, it triggers all The write pointer acquisition unit is described.
  • a first judgment unit configured to judge whether the operation information is reported to the server successfully, the operation information is device operation information or valid history information
  • a read pointer acquisition unit is triggered for: Obtaining a read pointer of the history information area
  • an information reporting unit is configured to read valid history information according to the storage location of the read pointer, report the valid history information, and trigger the first judgment
  • the device further includes: a third determining unit, configured to determine whether the history information stored in the history information area is greater than a preset maximum storage amount according to the storage position of the write pointer; if yes, Triggering a first erasing unit for erasing historical record information in the earliest stored sector in the historical record information area and updating the storage location corresponding to the write pointer; if not, triggering the historical record information Storage unit.
  • a third determining unit configured to determine whether the history information stored in the history information area is greater than a preset maximum storage amount according to the storage position of the write pointer; if yes, Triggering a first erasing unit for erasing historical record information in the earliest stored sector in the historical record information area and updating the storage location corresponding to the write pointer; if not, triggering the historical record information Storage unit.
  • the device further includes: a fourth judgment unit, configured to judge whether the history information reported in the history information area is greater than a preset maximum storage amount according to the read pointer of the history information area; If yes, trigger a second erasing unit for erasing the reported history information in the earliest stored sector in the history information area and update the storage location corresponding to the read pointer; if not, trigger The information reporting unit.
  • a fourth judgment unit configured to judge whether the history information reported in the history information area is greater than a preset maximum storage amount according to the read pointer of the history information area; If yes, trigger a second erasing unit for erasing the reported history information in the earliest stored sector in the history information area and update the storage location corresponding to the read pointer; if not, trigger The information reporting unit.
  • the read pointer acquisition unit includes: an acquisition subunit for acquiring a current read pointer in a history information area; a determination subunit for determining whether a storage location corresponding to the current read pointer has an abnormal data identifier; If yes, triggering a first determination subunit for determining a read pointer corresponding to a next storage location of a storage location corresponding to the current read pointer in the history information area as the current read pointer, and triggering the judgment subunit; If not, a second determining subunit is triggered to determine the current read pointer as a read pointer in the history information area.
  • a storage device for historical record information disclosed in this embodiment when the device operation information is reported to the server fails, the device operation information can be stored in the form of historical record information only according to the write pointer in the historical record information area, and After storage, the storage location corresponding to the write pointer is updated for subsequent storage of historical record information, which does not require a file system, simplifies the storage process of historical record information, and solves the problem of complicated historical record storage operations.
  • the history information storage device includes a processor and a memory.
  • the write pointer acquisition unit, history information storage unit, and write pointer update unit are all stored in the memory as a program unit, and the processor executes the foregoing stored in the memory.
  • the processor contains a kernel, and the kernel retrieves the corresponding program unit from the memory.
  • the kernel can set one or more, and adjust the kernel parameters to improve the efficiency of historical information storage.
  • Memory may include non-persistent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (RAM).
  • Memory includes at least one Memory chip.
  • An embodiment of the present invention provides a storage medium on which a program is stored.
  • the program is executed by a processor, the method for storing the historical record information is implemented.
  • An embodiment of the present invention provides a processor, where the processor is configured to run a program, and the method for storing the history information is executed when the program runs.
  • An embodiment of the present invention provides a device.
  • the device includes a processor, a memory, and a program stored on the memory and can run on the processor.
  • the processor executes the program, the following steps are implemented: A write pointer in the history record information area; storing the device operation information in the form of history record information in a storage location corresponding to the write pointer; and updating a storage location corresponding to the write pointer.
  • the method further comprises: judging whether the operation information reporting server is successful, the operation information is device operation information or valid history record information; if successful, obtaining a read pointer of the history information area; according to the read pointer
  • the storage location reads the effective history information, reports the effective history information, and returns to the server to execute the judgment operation information to report whether the server succeeded; if it fails, judges whether the operation information is stored history information; if it has been stored, If there is no stored history record information, then execute the write pointer in the obtaining history record information area.
  • the method further comprises: judging whether the history information stored in the history information area is greater than a preset maximum storage according to a storage position of the write pointer. If yes, erase the history information in the earliest stored sector in the history information area and update the storage location corresponding to the write pointer; if not, execute the storing the history information in In a storage location corresponding to the write pointer.
  • the method further includes: determining whether the reported history information in the history information area is greater than Preset the maximum storage amount; if it is, the reported history information in the sector with the earliest storage time in the history information area is erased, and the storage location corresponding to the read pointer is updated; if not, the The storage location of the read pointer reads the effective history information and reports the effective history information.
  • obtaining the read pointer of the history information area includes: obtaining the current read pointer of the history information area; judging whether the storage position corresponding to the current read pointer has an abnormal data identifier; and if yes, changing the history information area
  • the read pointer corresponding to the storage location corresponding to the current read pointer in the middle is determined as the current read pointer, and the judgment is performed to determine whether the storage location corresponding to the current read pointer has an abnormal data identifier; if not, the current read pointer The read pointer is determined as the read pointer of the history information area.
  • the history record information includes data status, data type, valid data length, data validity identifier, and valid data.
  • This application also provides a computer program product that, when executed on a data processing device, is suitable for executing a program initialized with the following method steps: when the device operation information fails to report to the server, obtain a write pointer in the history information area; The device operation information is stored in the form of history information in a storage location corresponding to the write pointer; and the storage location corresponding to the write pointer is updated.
  • the method further comprises: judging whether the operation information reporting server is successful, the operation information is device operation information or valid history record information; if successful, obtaining a read pointer of the history information area; according to the read pointer
  • the storage location reads the effective history information, reports the effective history information, and returns to the server to execute the judgment operation information to report whether the server succeeded; if it fails, judges whether the operation information is stored history information; if it has been stored, If there is no stored history record information, then execute the write pointer in the obtaining history record information area.
  • the method further comprises: judging whether the history information stored in the history information area is greater than a preset maximum storage according to a storage position of the write pointer. If yes, erase the history information in the earliest stored sector in the history information area and update the storage location corresponding to the write pointer; if not, execute the storing the history information in In a storage location corresponding to the write pointer.
  • the method further includes: determining whether the reported history information in the history information area is greater than Preset the maximum storage amount; if it is, the reported history information in the sector with the earliest storage time in the history information area is erased, and the storage location corresponding to the read pointer is updated; if not, the The storage location of the read pointer reads the effective history information and reports the effective history information.
  • obtaining the read pointer of the history information area includes: obtaining the current read pointer of the history information area; judging whether the storage position corresponding to the current read pointer has an abnormal data identifier; and if yes, changing the history information area
  • the read pointer corresponding to the storage location corresponding to the current read pointer in the middle is determined as the current read pointer, and the judgment is performed to determine whether the storage location corresponding to the current read pointer has an abnormal data identifier; if not, the current read pointer The read pointer is determined as the read pointer of the history information area.
  • the history record information includes data status, data type, valid data length, data validity identifier, and valid data.
  • the smart device may include a smart door lock.
  • the two more important modules include the state management of the smart door lock and the password management of the smart door lock.
  • the status management of the smart door lock may determine the status information of the smart door lock, such as the switch status of the door lock, according to the status of the first component and the second component on the smart door lock.
  • the password management of the smart door lock can be managed by the server on the way of issuing or using the door lock password.
  • the method for managing the state of a smart door lock determines the state of the smart door lock by using the state information of the first component and the second component on the smart door lock. .
  • the status information of the smart door lock can also be combined with a preset rule to determine the security status, and a reminder message can be sent to the user terminal in time to eliminate potential security risks.
  • the server when the door lock is offline, the server can generate an activation code and send the activation code to the user terminal, and the door lock controller of the door lock obtains the activation according to the user's input operation.
  • the state management method and password management method of the smart door lock described above can also be applied to the state management and password management of other smart devices other than smart door locks, such as smart safes that need to set usage rights or need monitoring Smart devices in use.
  • the state management method and password management method of the smart device will be described in detail below in combination with specific embodiments.
  • Some embodiments of the present application provide a method and a device for reminding the status of a smart device.
  • the smart device may determine the status information of the smart device by acquiring the first component information and the second component information, and when the status information of the smart device meets a preset condition, generating reminder information including the status information of the smart device.
  • the smart device may directly generate corresponding reminder information according to the security policy, and may upload the reminder information to the server 110 through the network 120, and the server 110 performs subsequent operations.
  • the smart device may also upload the status information or reminder information of the smart device to the server 110 through the network 120 according to the security policy or preset rules, and the server 110 may generate the corresponding information according to the status information and security policy uploaded by the smart device.
  • the server may send the reminder information to the user terminal 140 having an association relationship with the smart device according to a preset rule.
  • the server 110 may control the smart door lock to issue an alarm through a network instruction.
  • the smart device may also directly send the status information and / or reminder information of the smart device to the user terminal 140 having an association relationship through the network 120.
  • the status information of the smart device may be displayed on the user terminal 140 in real time directly through a network sharing method.
  • the status information or reminder information of the smart device may be saved as historical record information in the storage area of the smart device after the failure to report the server, and when the smart device can report to the server, the historical record information is transmitted to the server. To perform subsequent operations.
  • the smart door lock is used as one embodiment of the smart device to describe the status and method of the smart device in this application in detail.
  • FIG. 13 is a flowchart of a state reminder method for a smart door lock disclosed in an embodiment of the present invention.
  • the process is a specific application of the smart device control method, that is, the status of the smart door lock is determined by the hardware information of the smart door lock device.
  • the status information of the smart door lock can also be combined with the relevant information of the house to which the smart door lock belongs to generate safety reminder information, and the safety reminder information is sent to the corresponding terminal.
  • smart door locks or other smart devices can be used in the following scenarios: commercial housing (such as hotels, apartments, etc.), civilian housing (owner-owned housing, rental housing, etc.), Office buildings (such as offices, training rooms), commercial buildings (such as shops, shopping malls), etc.
  • the method may be applied to a cloud server.
  • the status reminding method of the smart door lock may include:
  • Step 1310 Obtain status information of the first component and the second component on the smart door lock.
  • the status information of the first component is used to indicate the opening and closing status of the door
  • the status information of the second component is used to indicate the locked status of the lock.
  • the acquiring the status information of the first component and the second component on the smart door lock may be the cloud server actively acquiring the status information of the first component and the second component from the smart door lock, or may be the smart door lock Actively upload status information of the first component and the second component to a cloud server according to a preset rule.
  • the obtaining the state information of the first component and the second component on the smart door lock has different implementation manners. For example, receiving the status information of the first component and the second component uploaded by the smart door lock according to a preset frequency, or sending a status acquisition request to the smart door lock and receiving the first component sent by the smart door lock according to the status acquisition request And status information for the second component.
  • the acquiring the status information of the first component and the second component on the smart door lock may further include: receiving the first component and the second component uploaded by the smart door lock when its own state changes. status information.
  • Step 1320 Determine the status information of the smart door lock according to the status information of the first component and the second component.
  • the first part may be a thimble, the thimble has two states of being retracted and ejected, and the second part may be an oblique tongue, and the oblique tongue is of both retracted and ejected states. status.
  • determining the status information of the smart door lock according to the status information of the first component and the second component may include: determining the intelligence when the thimble is retracted and the oblique tongue is ejected.
  • the state of the door lock is that the door is closed and locked, or, when the thimble is retracted and the oblique tongue is retracted, it is determined that the state of the smart door lock is that the door is closed and unlocked, or when the thimble is ejected , Determining that the state of the smart door lock is that the door is open.
  • the thimble can be in a pop-up state under the condition of no external force and is urged by a spring. Therefore, when the door is opened, the thimble is in a pop-up state, and when the door is closed, the thimble is blocked by the lock frame side lock structure. The closing of the door will change from the popped state to the stowed state, that is, the door frame measuring lock structure will press the thimble to the spring side, so that the thimble becomes the stowed state.
  • the oblique tongue can be stowed and ejected manually by the occupants.
  • a micro switch in the smart door lock to determine whether the ejector pin and the oblique tongue are in a stowed or ejected state, it can be detected and determined by setting a micro switch in the smart door lock, and of course, it can also be performed by, for example, a pressure sensor, a distance sensor, etc. Means for determining status information of the thimble and the oblique tongue.
  • Step 1330 When the status information of the smart door lock meets a preset condition, generating reminder information including the status information of the smart door lock.
  • a reminder message including the status information of the smart door lock may be generated.
  • the status information of the smart door lock may be, for example, a door opening duration timeout of 30 minutes, a door falsely unlocked beyond 22:00, a door closed, and a lock duration exceeding 48 hours.
  • Step 1340 Send the reminder information to a terminal having an association relationship with the smart door lock according to a preset rule.
  • the sending the reminder information to a terminal associated with the smart door lock according to a preset rule may include: sending the reminder information according to the belonging status of the house corresponding to the smart door lock. And sending to the terminal having an association relationship with the smart door lock.
  • the belonging condition is used to indicate that the house is currently in a use state or a management state.
  • the belonging situation of the house corresponding to the smart door lock may be determined according to the belonging situation flag of the house corresponding to the smart door lock.
  • the corresponding house of the smart door lock is a rented house. If the house has been rented out, it is marked as a user, and if the house is not rented, it is marked as a management party. For example, if the smart door lock corresponds to the house where the owner lives, it is marked as the owner.
  • the house corresponding to the smart terminal in this embodiment may be a hotel house, a homestay house, an apartment house, or the like. Some of the houses are for rent.
  • the cloud server will generate a reminder message and send it to the tenant who currently lives in the smart door lock house instead of sending it to the housekeeper.
  • Some of the houses are owned by the homeowners themselves.
  • the reminder information can be sent to the homeowner (owner) in a timely manner.
  • FIG. 14 is a schematic structural flowchart of a status reminder of a smart door lock disclosed in an embodiment of the present invention.
  • the status information of the smart door lock may include three states: door open, door closed unlocked, and door closed and locked.
  • generating the reminder information including the status information may include: when the status information of the smart door lock is open and the duration exceeds a first preset duration (take 30 minutes as an example in FIG. 14), generating The first reminder information including the status information, or generated when the status information of the smart door lock is that the door is closed and unlocked, and the current time reaches a preset time point (take 22 as an example in FIG.
  • a second reminder message including the status information, or when the status information of the smart door lock is that the door is closed and locked, and the current time is a second preset time from the last time the smart door lock was opened Taking 48 hours as an example in FIG. 14
  • a third reminder message including the status information is generated.
  • the sending the reminder information to a terminal associated with the smart door lock according to a preset rule may include: generating the first reminder information, the second reminder information, or the After the third reminder information, further determine the ownership of the house corresponding to the smart door lock; if the house corresponding to the smart door lock is in use, send the first reminder to the user terminal of the house corresponding to the smart door lock Information, the second reminder information or the third reminder information, or, after generating the first reminder information or the second reminder information, further determining the belonging status of the house corresponding to the smart door lock, if The house corresponding to the smart door lock is in a management state, and the first reminder information or the second reminder information is sent to a terminal of a manager corresponding to the smart door lock.
  • the reminder information is pushed to the housekeeper to facilitate the housekeeper to check the security situation in the apartment and find the problem in time.
  • the door is opened for more than 30 minutes or at night, the door is hidden and unlocked (the door is not locked), you need to send a reminder message to the tenant to remind them to close or lock the door in time to avoid some possible Danger and lost property.
  • the method for reminding the status of a smart door lock can determine the status of the smart door lock through the status information of the first component and the second component on the smart door lock, and it is not necessary to retrofit the door magnetic device on the door lock. Therefore, the cost is low, and a dangerous state can be determined in combination with a preset rule, and a reminder message is sent to the user terminal in time, thereby eliminating potential safety hazards.
  • FIG. 15 discloses another flowchart of a state reminder method for a smart door lock.
  • the state reminder method for a smart door lock may include:
  • Step 1510 Receive status information of the first component and the second component uploaded by the smart door lock according to a preset frequency.
  • the status information of the first component is used to indicate the opening and closing status of the door
  • the status information of the second component is used to indicate the locked status of the lock
  • Step 1520 Determine the status information of the smart door lock according to the status information of the first component and the second component.
  • Step 1530 When the status information of the smart door lock meets a preset condition, generating reminder information including the status information of the smart door lock.
  • Step 1540 Send the reminder information to a terminal having an association relationship with the smart door lock according to a preset rule.
  • Step 1550 Receive request information for viewing status information of the smart door lock sent by the terminal, where the request information includes request identity information.
  • the request information for viewing the status information of the smart door lock may be sent through an APP having related functions on the terminal.
  • the terminal may be a terminal of a housekeeper or a homeowner, or a terminal of a tenant.
  • the requested identity information may be personal information, such as name, ID number, and mobile phone number, registered when the tenant moves into the corresponding house of the smart door lock. It can also be information such as the name, ID card number, and mobile phone number of a housekeeper or homeowner who has management rights and ownership of the house corresponding to the smart door lock.
  • Step 1560 When the requested identity information has viewing authority, return the status information of the smart door lock to the terminal.
  • the cloud server determines that the terminal sending the requested information is an authorized terminal, and has the status information of viewing the smart door lock corresponding to the requested identity information. Permission, the cloud server responds to the request information and returns status information of the smart door lock to the terminal that sent the request information.
  • the method for reminding the status of a smart door lock allows an authorized person to apply for viewing the status information of the smart door lock at any time.
  • the method can determine the state of the smart door lock by using the state information of the first part and the second part on the smart door lock. There is no need to modify and install the door magnetic device on the door lock, so the cost is low, and the danger can be determined by combining preset rules. Status, promptly send reminder information to the user terminal to eliminate potential security risks.
  • FIG. 16 is a schematic structural diagram of a status reminding device for a smart door lock disclosed in an embodiment of the present invention.
  • the status reminding device 1600 for a smart door lock may include:
  • An information obtaining module 1610 is configured to obtain status information of the first component and the second component on the smart door lock.
  • the status information of the first component is used to indicate the opening and closing status of the door
  • the status information of the second component is used to indicate the locked status of the lock
  • the acquiring the status information of the first component and the second component on the smart door lock may be the cloud server actively acquiring the status information of the first component and the second component from the smart door lock, or may be the smart door lock Actively upload status information of the first component and the second component to a cloud server according to a preset rule.
  • the information acquisition module 1610 may have different implementation contents.
  • the information acquisition module 1610 may be specifically configured to receive status information of the first component and the second component uploaded by the smart door lock according to a preset frequency, or send a status acquisition request to the smart door lock and receive the smart door lock according to The status acquisition request sends status information of the first component and the second component.
  • the information acquisition module 1610 may be specifically configured to receive status information of the first component and the second component uploaded by the smart door lock when its own state changes.
  • a state determining module 1620 is configured to determine state information of the smart door lock according to state information of the first component and the second component.
  • the first part may be a thimble
  • the thimble has two states of being retracted and ejected
  • the second part may be an oblique tongue
  • the oblique tongue is of both retracted and ejected states. status.
  • the state determination module 1620 may be specifically configured to: when the thimble is retracted and the oblique tongue is ejected, determine the state of the smart door lock as a door closed and locked, or when the thimble is retracted and locked.
  • the thimble can be in a pop-up state under the condition of no external force and is urged by a spring. Therefore, when the door is opened, the thimble is in a pop-up state, and when the door is closed, the thimble is blocked by the lock frame side lock structure. The closing of the door will change from the popped state to the stowed state, that is, the door frame measuring lock structure will press the thimble to the spring side, so that the thimble becomes the stowed state.
  • the oblique tongue can be stowed and ejected manually by the occupants.
  • a micro switch in the smart door lock to determine whether the ejector pin and the oblique tongue are in a stowed or ejected state, it can be detected and determined by setting a micro switch in the smart door lock, and of course, it can also be performed by, for example, a pressure sensor, a distance sensor, etc. Means for determining status information of the thimble and the oblique tongue.
  • An information generating module 1630 is configured to generate reminder information including the status information when the status information of the smart door lock meets a preset condition.
  • a reminder message including the status information of the smart door lock may be generated.
  • the status information of the smart door lock may be, for example, a door opening duration timeout of 30 minutes, a door falsely unlocked beyond 22:00, a door closed, and a lock duration exceeding 48 hours.
  • An information sending module 1640 is configured to send the reminder information to a terminal having an association relationship with the smart door lock according to a preset rule.
  • the information sending module 1640 may be specifically configured to: send the reminder information to a terminal that has an association relationship with the smart door lock according to the ownership of the house corresponding to the smart door lock.
  • the belonging condition is used to indicate that the house is currently in a use state or a management state.
  • the ownership of the house corresponding to the smart door lock may be determined according to the house status of the smart door lock. If the house corresponding to the smart door lock is a rental house, if the house is already rented, the house is marked as The user, if the house is not rented, is marked as the manager.
  • the house corresponding to the smart terminal in this embodiment may be a hotel house, a homestay house, an apartment house, or the like. Some of the houses are for rent.
  • the reminder information can be sent to the tenant or the owner (housekeeper) according to the type of the abnormality and whether the house is rented. For example, if the smart door lock is still unlocked at 11 pm when the house has been rented, the cloud server will generate a reminder message and send it to the tenant who currently lives in the smart door lock house instead of sending it to the housekeeper.
  • the state information of the smart door lock may include three states: door open, door closed unlocked, and door closed and locked.
  • the information generating module 1630 may be specifically configured to: when the status information of the smart door lock is open and the duration exceeds a first preset duration, generate a first reminder information including the status information, or, when the smart door lock is The status information of the door lock is that when the door is closed and unlocked, and the current time reaches a preset time point, a second reminder message including the status information is generated, or when the status information of the smart door lock is that the door is closed and up And the current time is a second preset duration from the time when the smart door lock was opened last time, and a third reminder message including the status information is generated.
  • the information sending module 1640 may be specifically configured to: after generating the first reminder information, the second reminder information, or the third reminder information, further determine the belonging status of the house corresponding to the smart door lock Sending the first reminder information, the second reminder information, or the third reminder information to the user terminal of the house corresponding to the smart door lock if the house corresponding to the smart door lock is in use, or, After generating the first reminder information or the second reminder information, further determine the belonging status of the house corresponding to the smart door lock, and if the house corresponding to the smart door lock is in a management state, correspond to the smart door lock The terminal of the house manager sends the first reminder information or the second reminder information.
  • FIG. 17 discloses a schematic structural diagram of another smart door lock status reminder device.
  • the smart door lock status reminder device 1700 may include:
  • An information obtaining module 1610 is configured to obtain status information of the first component and the second component on the smart door lock.
  • the status information of the first component is used to indicate the opening and closing status of the door
  • the status information of the second component is used to indicate the locked status of the lock
  • a state determining module 1620 is configured to determine state information of the smart door lock according to state information of the first component and the second component.
  • An information generating module 1630 is configured to generate reminder information including the status information when the status information of the smart door lock meets a preset condition.
  • An information sending module 1640 is configured to send the reminder information to a terminal having an association relationship with the smart door lock according to a preset rule.
  • the request receiving module 1710 is configured to receive request information sent by a terminal for viewing status information of a smart door lock, where the request information includes request identity information.
  • the request information for viewing the status information of the smart door lock may be sent through an APP having related functions on the terminal.
  • the terminal may be a terminal of a housekeeper or a homeowner, or a terminal of a tenant.
  • the requested identity information may be personal information, such as name, ID number, and mobile phone number, registered when the tenant moves into the corresponding house of the smart door lock. It can also be information such as the name, ID card number, and mobile phone number of a housekeeper or homeowner who has management rights and ownership of the house corresponding to the smart door lock.
  • a status return module 1720 is configured to return status information of the smart door lock to the terminal when the requested identity information has viewing authority.
  • the cloud server determines that the terminal sending the requested information is an authorized terminal, and has the status information of viewing the smart door lock corresponding to the requested identity information. Permission, the cloud server responds to the request information and returns status information of the smart door lock to the terminal that sent the request information.
  • the status reminder of the smart door lock allows authorized personnel to apply for viewing the status information of the smart door lock at any time.
  • the method can determine the state of the smart door lock by using the state information of the first part and the second part on the smart door lock. There is no need to modify and install the door magnetic device on the door lock, so the cost is low, and the danger can be determined by combining preset rules. Status, promptly send reminder information to the user terminal to eliminate potential security risks.
  • the status reminding device for any one of the smart door locks in the above embodiment includes a processor and a memory.
  • the information acquisition module, status determination module, status reminder module, request receiving module, and status return module in the above embodiments are all
  • the program modules are stored in a memory, and the processor executes the program modules stored in the memory to implement corresponding functions.
  • the processor includes a kernel, and the kernel calls the corresponding program module from the memory.
  • the kernel can set one or more, and adjust the kernel parameters to realize the processing of returning data.
  • Memory may include non-persistent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (RAM).
  • Memory includes at least one Memory chip.
  • An embodiment of the present invention provides a storage medium on which a program is stored.
  • the program is executed by a processor, the status reminding method of the smart door lock described in the foregoing embodiment is implemented.
  • An embodiment of the present invention provides a processor, which is used to run a program, and when the program runs, the status reminding method of the smart door lock described in the foregoing embodiment is executed.
  • this embodiment provides an electronic device including a processor and a memory.
  • the memory is configured to store executable instructions of the processor, and the processor is configured to execute the status reminding method of the smart door lock described in the foregoing embodiment by executing the executable instructions.
  • the server 110 may obtain communication information of the smart door lock through the network 120 and determine communication state information of the smart door lock.
  • the communication status information may include information that the smart door lock is online or offline.
  • the server can generate an online password and send the online password to the smart door lock and the user terminal 140 and the door lock controller.
  • the user can unlock the smart door lock through the online password.
  • the server can generate an activation code and send the activation code to the user terminal 140 and the door lock controller, and the door lock controller obtains the activation code according to the user's input operation, and parses to obtain the offline password.
  • the password issued by the server can still be obtained.
  • An embodiment of the present invention provides a method for controlling a door lock, which is applied to a server, and the server may be a cloud server.
  • a method for controlling a door lock may include:
  • Step 1810 Obtain the online status of the door lock.
  • the online status is divided into online and offline situations. There are two ways to determine the online status of the door lock.
  • the door lock reports the online status every first designated time. If the online status reported by the door lock is not received within the second specified time after receiving the online status reported by the door lock, the door lock is considered to be Offline. The second specified time is greater than the first specified time.
  • the door lock is considered online.
  • the second implementation method The server sends a door lock status acquisition instruction to the door lock controller. If the online status feedback from the door lock controller is received in the third specified time, the door lock is considered to be online. After receiving the online status feedback from the door lock controller, the door lock is considered offline.
  • step 1820 it is determined whether the online status is online; if it is online, step 1850 is performed to generate an online password and the use restriction information of the online password; if it is offline, step 1830 is performed to generate an activation code.
  • step 1820 determines whether the door lock is online.
  • Step 1830 Generate an activation code.
  • the activation code includes offline password and usage restriction condition information of the offline password.
  • the server may generate an offline password in a random manner.
  • the offline password usage restriction information can be personalized according to different users.
  • the usage restriction information can be selected by the merchant himself. When the merchant selects, the information can be entered in a text box.
  • the merchant may include a manager of the rental house. In some embodiments, the house is the homeowner's own residence. Correspondingly, the merchant may also include a homeowner in a homeowner's homeowner situation.
  • the offline password usage restriction information can include:
  • Information on the use of cleaning conditions for cleaning personnel can be: unlimited password times, effective periods from April 5, 2018 to April 5, 2019 or permanent, effective periods from every Wednesday, and effective times from 16:00 to 17 : 00, the password is not frozen.
  • Information on the restrictions on the use of tenants' homes or courier visits can be: choose the password number once, choose the effective period from April 5, 2018 to April 5, 2018, choose the effective period every day, and choose the effective time 16: 00 ⁇ 17: 00, password is not frozen.
  • Information on the restrictions for administrators can be: unlimited password times, permanent for the effective period, daily for the effective period, and full day for the effective period, and the password is not frozen.
  • the server may generate the activation code by using an activation code generation method agreed with the door lock controller.
  • a specific value is used to represent the number of passwords, the effective time period, the effective time of the effective period, and whether the password is frozen. For example, you can use 1 to indicate that the password is frozen, and 2 to indicate that the password is not frozen.
  • Step 1840 Send the activation code to the user terminal 140, so that the door lock controller of the door lock obtains the activation code according to a user's input operation, and parses the activation code to obtain the offline password and all the passwords. Describes the restrictions on the use of offline passwords.
  • the server may generate an activation code and send the activation code to a user terminal, and a user using the user terminal or a user authorized by the user may enter the activation code in a password input device of the door lock, and the door lock controller of the door lock
  • the activation code can be obtained, and the offline password and the usage restriction condition information of the offline password can be obtained through analysis, so that when the door lock is offline, the password issued by the server can still be obtained.
  • Step 1850 Generate an online password and usage restriction information of the online password
  • the online password can be generated in a random manner. Since the door lock is online at this time, it can be directly sent to the door lock controller and the user terminal 140.
  • the process of generating the restriction information of the online password is similar to the process of generating the restriction information of the offline password. Please refer to the corresponding descriptions above, which will not be repeated here.
  • Step 1860 Send the online password and the use restriction information of the online password to the user terminal and the door lock controller.
  • the user After sending the online password and the use restriction information of the online password to the user terminal and the door lock controller, the user can determine his own unlocking time according to the use restriction information of the online password, and then legally To unlock the door when it ’s unlocked.
  • the door lock controller may also determine whether the password entered by the user is correct and whether the password meets the unlocking time according to the online password and the use restriction condition information of the online password.
  • the server may generate an activation code and send the activation code to the user terminal, and then the door lock controller of the door lock obtains the activation code according to the user's input operation, and parses to obtain the offline password. And the information about the restrictions on the use of the offline password, so that when the door lock is offline, the password issued by the server can still be obtained.
  • the method may further include:
  • the server reads the tenants entered by the merchant, that is, the user's identity information, such as mobile phone number and ID card number. After that, the merchant will choose the password type.
  • the clear code is used to set the valid states of all the online passwords, the valid states of the offline passwords, and the valid states of the clear codes to invalid values.
  • the clearing code can be generated in a random manner.
  • the usage restriction information of the clearing code is the effective time period of the clearing code, for example, it can be permanent or a specified time period.
  • the clearing code can be entered in the password input device of the door lock.
  • the server may generate a clearing code, an offline password, or an online password according to the settings of the merchant, and then may issue a clearing code, an online password, and an offline password according to different scenarios.
  • another embodiment of the present invention provides a method for controlling a door lock, which is applied to a door lock controller.
  • Can include:
  • Step 1910 Determine the online status of the door lock.
  • the door lock controller may determine whether the door lock is online or offline according to whether it can communicate with the server.
  • Step 1920 determine whether the online status is offline; if it is offline, perform step 1930 to obtain the inputted activation code; if it is online, perform step 1960 to receive the online password issued by the server and the use restriction information of the online password;
  • Step 1930 Obtain the input activation code.
  • the activation code includes offline password and usage restriction condition information of the offline password.
  • the door lock controller can obtain the activation code.
  • Step 1940 Parse the activation code to obtain the offline password and the use restriction information of the offline password in the activation code
  • the door lock controller can analyze the activation code according to the activation code generation method to obtain the offline password and the use restriction condition information of the offline password.
  • Step 1950 Save the offline password and usage restriction information of the offline password
  • the unlock condition can be determined according to the offline password usage restriction condition information.
  • the unlock condition is satisfied, ,unlock.
  • Step 1960 Receive an online password and information about restrictions on the use of the online password issued by the server;
  • Step 1970 Save the online password and information about restrictions on the use of the online password.
  • the online password and the usage restriction condition information of the online password issued by the server may be directly received.
  • the password issued by the server can be normally received, thereby making the password issuing method more flexible.
  • the method further includes:
  • Step 2010 Obtain the entered password, the time of entering the password, and the number of times the password history is entered;
  • the input password can be obtained from the password input device, the time for inputting the password can be obtained from the clock module, and the number of times the password history is input can be combined with the history input password to determine the number of times the password is entered.
  • step 2020 if the password is a clear code and the time meets the use restriction information of the clear code, the valid states of all the online passwords and the valid states of the offline passwords stored in the door lock controller are changed. And the valid state of the clear code are set to invalid;
  • the ID and ID of the clear code and the unlock password are different.
  • the ID of the clear code is between 1-100 and the ID of the unlock password is between 100-200.
  • the effective time period is 20180620-20180820. Then, the time for entering the password is within the effective time period, that is, the time for entering the password satisfies the usage restriction condition information of the clear code.
  • the time for entering the password is 20180521, the time for entering the password is not within the effective time period, and the time for entering the password does not satisfy the use restriction information of the clear code.
  • Step 2030 If the password is an unlock password, determine identification information; wherein the unlock password includes an online password and an offline password; and the identification information is used to characterize whether the time and the number of times satisfy the unlock password. Use restriction information;
  • the unlock password is a password for unlocking the door lock.
  • the use restriction information of the unlocking password limits the number of passwords, the effective time period, the effective period, the effective time, and whether the password is frozen. Therefore, when the time for entering the password satisfies the effective time period, the effective period, and the effective time, the number of times the password is entered meets the password number, and the password is not frozen, the time and the number of times the password can be used to satisfy the use of the unlock password.
  • the first identifier of the restriction condition information is used as the identification information.
  • the time and the number of times that the password is not satisfied may be characterized.
  • the second identification of the use restriction information of the unlocking password is used as identification information.
  • step 2040 if the identification information indicates that the time and the number of times satisfy the use restriction information of the unlock password, control the door unlock.
  • the identification information indicates that the time and the number of times satisfy the use restriction information of the unlock password, it indicates that the unlock is valid this time, and the door lock is controlled to be unlocked at this time.
  • the door lock controller uploads the unlocking record to the server for storage.
  • the unlocking record includes the unlocking time, the entered password, and the like.
  • the door lock controller can perform a series of verifications when the user enters a password, and only after the verification is passed, the door locks can be unlocked to improve security.
  • another embodiment of the present invention provides a device for controlling a door lock, which is applied to a server.
  • the method may include:
  • a state acquisition module 2110 configured to acquire an online state of the door lock
  • a first generating module 2120 is configured to generate an activation code if the online status is offline, where the activation code includes an offline password and information about restrictions on use of the offline password;
  • a first sending module 2130 configured to send the activation code to a user terminal, so that a door lock controller of the door lock obtains the activation code according to a user's input operation, and parses the activation code to obtain the activation code
  • the offline password and the use restriction condition information of the offline password configured to send the activation code to a user terminal.
  • it may further include:
  • a second generating module configured to generate an online password and usage restriction condition information of the online password if the online status is online;
  • the second sending module is configured to send the online password and the use restriction condition information of the online password to the user terminal and the door lock controller.
  • the server may generate an activation code and send the activation code to the user terminal, and then the door lock controller of the door lock obtains the activation code according to the user's input operation, and parses to obtain the offline password. And the information about the restrictions on the use of the offline password, so that when the door lock is offline, the password issued by the server can still be obtained.
  • the method further includes:
  • a type acquisition module for acquiring a password type of a password to be applied entered by a preset user
  • a third generating module configured to generate a clearing code and usage restriction condition information of the clearing code if the password type is a clearing code
  • a third sending module configured to send the clearing code and usage restriction condition information of the clearing code to the user terminal;
  • the state acquisition module is further configured to acquire an online state of the door lock if the password type is an unlock password.
  • the server may generate a clearing code, an offline password, or an online password according to the settings of the merchant, and then may issue a clearing code, an online password, and an offline password according to different scenarios.
  • another embodiment of the present invention provides a door lock control device, which is applied to a door lock controller.
  • a door lock control device which is applied to a door lock controller. Referring to FIG. 22, Including: a status determination module 2210, for determining the online status of the door lock;
  • a first obtaining module 2220 configured to obtain an inputted activation code if the online status is offline; wherein the activation code includes an offline password and information about restrictions on use of the offline password;
  • a parsing module 2230 is configured to parse the activation code to obtain the offline password and usage restriction information of the offline password in the activation code;
  • a first saving module 2240 is configured to save the offline password and the offline password Information on restrictions on the use of offline passwords.
  • it may further include: a receiving module, configured to receive an online password issued by a server and information about a use restriction condition of the online password; and a second saving module configured to save the online password and the use restriction condition of the online password information.
  • the password issued by the server can be normally received, thereby making the password issuing method more flexible.
  • the method further includes: a second obtaining module, configured to obtain the entered password, the time of entering the password, and the password The number of times the history has been entered; a status setting module, configured to, if the password is a clear code and the time meets the use restriction information of the clear code, change all of the online passwords stored in the door lock controller The valid state, the valid state of the offline password, and the valid state of the clear code are all set to invalid; an information determining module is configured to determine identification information if the password is an unlock password; wherein the unlock password includes an online password and an offline password; The identification information is used to characterize whether the time and the number of times satisfy the use restriction condition information of the unlock password; an unlocking control module is configured to, if the identification information characterizes the time and the number of times meet the requirements Information on restrictions on the use of unlock passwords to control unlocking of door locks.
  • a second obtaining module configured to obtain the entered password, the time of entering the password, and the password The number of times the history has been entered
  • the door lock controller may perform a series of verifications when the user enters the password, and only after the verification is passed, the door locks may be unlocked to improve security.
  • an embodiment of the present invention further provides a control device for a door lock applied to a server.
  • the control device for a door lock applied to a server includes a processor and a memory.
  • the above-mentioned state acquisition module and first generation module And the first sending module are stored in the memory as a program unit, and the processor executes the program unit stored in the memory to implement a corresponding function.
  • the processor contains a kernel, and the kernel retrieves the corresponding program unit from the memory.
  • the kernel can set one or more. By adjusting the kernel parameters, when the door lock is offline, the door lock controller can still obtain the password issued by the server.
  • Memory may include non-persistent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (RAM).
  • Memory includes at least one Memory chip.
  • An embodiment of the present invention provides a storage medium on which a program is stored.
  • the program is executed by a processor, the method for controlling a door lock applied to a server is implemented.
  • An embodiment of the present invention provides a processor, where the processor is configured to run a program, and the program executes the method for controlling a door lock applied to a server when the program is run.
  • An embodiment of the present invention provides a device.
  • the device includes a processor, a memory, and a program stored on the memory and can run on the processor.
  • the processor executes the program, the following steps are implemented:
  • a method for controlling a door lock which is applied to a server, includes: obtaining an online state of a door lock; if the online state is offline, generating an activation code; wherein the activation code includes an offline password and a limitation of using the offline password Condition information; sending the activation code to a user terminal, so that the door lock controller of the door lock obtains the activation code according to a user's input operation, and parses the activation code to obtain the offline password and the Information on restrictions on the use of offline passwords.
  • the method further includes: generating an online password and usage restriction condition information of the online password; sending the online password and usage restriction condition information of the online password to the user terminal, and The door lock controller.
  • the method further includes: obtaining a preset password type of the password to be applied by the user; if the password type is a clear code, generating a clear code and using the clear code Restriction condition information; sending the clear code and use restriction information of the clear code to the user terminal; if the password type is an unlock password, performing the step of obtaining the online status of the door lock.
  • the equipment in this article can be server, PC, PAD, mobile phone, etc.
  • the present application also provides a computer program product which, when executed on a data processing device, is suitable for executing a program initialized with the following method steps: a method for controlling a door lock, which is applied to a server and includes: obtaining a door lock online Status; if the online status is offline, an activation code is generated; wherein the activation code includes an offline password and information about restrictions on the use of the offline password; and the activation code is sent to a user terminal to lock the door
  • the door lock controller obtains the activation code according to a user's input operation, and parses the activation code to obtain the offline password and usage restriction condition information of the offline password.
  • the method further includes: generating an online password and usage restriction condition information of the online password; sending the online password and usage restriction condition information of the online password to the user terminal, and The door lock controller.
  • the method further includes: obtaining a preset password type of the password to be applied by the user; if the password type is a clear code, generating a clear code and using the clear code Restriction condition information; sending the clear code and use restriction information of the clear code to the user terminal; if the password type is an unlock password, performing the step of obtaining the online status of the door lock.
  • an embodiment of the present invention further provides a control device for a door lock applied to a door lock controller.
  • the control device for a door lock applied to a door lock controller includes a processor and a memory, and the foregoing state is determined.
  • the module, the first acquisition module, the analysis module, and the first storage module are all stored in the memory as program units, and the processor executes the foregoing program units stored in the memory to implement corresponding functions.
  • the processor contains a kernel, and the kernel retrieves the corresponding program unit from the memory.
  • the kernel can set one or more. By adjusting the kernel parameters, when the door lock is offline, the door lock controller can still obtain the password issued by the server.
  • Memory may include non-persistent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (RAM).
  • Memory includes at least one Memory chip.
  • An embodiment of the present invention provides a storage medium on which a program is stored.
  • the program is executed by a processor, the method for controlling a door lock applied to a door lock controller is implemented.
  • An embodiment of the present invention provides a processor, where the processor is configured to run a program, and when the program runs, the control method for a door lock applied to a door lock controller is executed.
  • An embodiment of the present invention provides a device.
  • the device includes a processor, a memory, and a program stored on the memory and can run on the processor.
  • the processor executes the program, the following steps are implemented:
  • a method for controlling a door lock which is applied to a door lock controller, includes: determining an online state of the door lock; if the online state is offline, obtaining an inputted activation code; wherein the activation code includes an offline password and the Information about restrictions on use of offline passwords; parse the activation code to obtain information about the offline password and restrictions on use of the offline password; save the offline password and restrictions on use of the offline password information.
  • the method further includes: receiving the online password and the use restriction information of the online password issued by the server; and storing the online password and the use restriction information of the online password.
  • the method further includes: obtaining the input password, the time of inputting the password, and the number of times the password history is entered; if the password is a clear code, and the time meets the use restriction information of the clear code, changing the password All the valid states of the online password, the valid state of the offline password, and the valid state of the clearing code stored in the door lock controller are set to invalid; if the password is an unlock password, the identification information is determined; wherein the unlock password includes Online password and offline password; the identification information is used to indicate whether the time and the number of times meet the use restriction information of the unlock password; if the identification information indicates that the time and the number of times meet the requirements Information on restrictions on the use of unlock passwords to control unlocking of door locks.
  • the equipment in this article can be server, PC, PAD, mobile phone, etc.
  • the present application also provides a computer program product which, when executed on a data processing device, is suitable for executing a program initialized with the following method steps: a method for controlling a door lock, which is applied to a door lock controller and includes: determining a door The online status of the lock; if the online status is offline, obtain the inputted activation code; wherein the activation code includes an offline password and information on restrictions on the use of the offline password; parse the activation code to obtain the activation code The offline password and the use restriction condition information of the offline password in the above; save the offline password and the use restriction condition information of the offline password.
  • the method further includes: receiving the online password and the use restriction information of the online password issued by the server; and storing the online password and the use restriction information of the online password.
  • the method further includes: obtaining the input password, the time of inputting the password, and the number of times the password history is entered; if the password is a clear code, and the time meets the use restriction information of the clear code, changing the password All the valid states of the online password, the valid state of the offline password, and the valid state of the clearing code stored in the door lock controller are set to invalid; if the password is an unlocking password, identification information is determined; wherein the unlocking password includes Online password and offline password; the identification information is used to indicate whether the time and the number of times meet the use restriction information of the unlock password; if the identification information indicates that the time and the number of times meet the requirements Information on restrictions on the use of unlock passwords to control unlocking of door locks.
  • this application may be provided as a method, a system, or a computer program product. Therefore, this application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions
  • the device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
  • a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
  • processors CPUs
  • input / output interfaces output interfaces
  • network interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory (flash RAM).
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information can be stored by any method or technology.
  • Information may be computer-readable instructions, data structures, modules of a program, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media may be used to store information that can be accessed by computing devices.
  • computer-readable media does not include temporary computer-readable media, such as modulated data signals and carrier waves.
  • each embodiment in this specification is described in a progressive manner.
  • Each embodiment focuses on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other.
  • the description is relatively simple, and the relevant part may refer to the description of the method.
  • relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any existence between these entities or operations. This actual relationship or order.
  • the terms “including”, “comprising”, or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also those that are not explicitly listed Or other elements inherent to such a process, method, article, or device.
  • the term “comprising,” “including,” or any other variation thereof, is intended to encompass non-exclusive inclusion, such that a process, method, product, or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed Elements, or elements that are inherent to such a process, method, product, or device.
  • the elements defined by the sentence “including a " do not exclude the existence of other identical elements in the process, method, product or equipment including the elements.
  • this application may be provided as a method, a system, or a computer program product. Therefore, this application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application may take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.

Abstract

本申请涉及一种智能设备的控制方法及系统。智能设备控制系统包括:存储一组指令的存储设备;以及与所述存储设备通信的一个或以上处理器,其中,当执行所述组指令时,所述一个或以上处理器被配置为使所述系统:获取智能设备的关联信息;所述关联信息至少包括智能设备信息和/或智能设备的通信状态;基于预设算法对智能设备的关联信息进行处理,确定智能设备的指示信息;至少基于所述指示信息,进行与智能设备相关的指定操作。本申请提供了一种基于网络控制智能设备的控制系统和方法。

Description

一种智能设备的控制方法及系统
交叉引用
本申请要求2018年7月25日提交的中国申请号201810824229.5的优先权,2018年7月25日提交的中国申请号201810824237.X的优先权,2018年8月3日提交的中国申请号201810877034.7的优先权,2018年9月5日提交的中国申请号201811030152.0的优先权,全部内容通过引用并入本文。
技术领域
本申请涉及智能设备及控制技术领域,特别涉及一种基于互联网的智能设备的控制方法及系统。
背景技术
随着智能设备的智能化水平不断提高,智能设备的控制需求越来越细化,如何针对智能设备不同的状态对其进行合理的控制是行业中需要解决的问题。本申请提供了一种智能设备的控制方法及系统。
发明内容
本申请实施例之一提供一种控制系统,包括:存储一组指令的存储设备;以及与所述存储设备通信的一个或以上处理器,其中,当执行所述组指令时,所述一个或以上处理器被配置为使所述系统:获取智能设备的关联信息;所述关联信息至少包括智能设备信息和/或智能设备的通信状态;基于预设算法对智能设备的关联信息进行处理,确定智能设备的指示信息;至少基于所述指示信息,进行与智能设备相关的指定操作。
在一些实施例中,所述智能设备的通信状态至少包括智能设备的数据传 输状态;所述一个或以上处理器被配置为使所述系统:基于所述数据传输状态,确定是否生成历史记录信息;若所述数据传输状态为失败,则基于传输数据确定历史记录信息;并将所述历史记录信息进行本地存储。
在一些实施例中,所述将所述历史记录信息进行本地存储,所述一个或以上处理器被进一步配置为使所述系统:将所述历史记录信息以头部信息和有效信息的形式存储在所述写指针对应的存储位置中;其中,所述头部信息至少反映所述历史记录信息的数据状态、数据类型、有效数据长度;所述有效信息反映所述历史记录信息的数据内容。
在一些实施例中,所述智能设备的通信状态至少包括智能设备的在线状态;所述一个或以上处理器被进一步配置为使所述系统:若所述在线状态为离线,则生成激活码;其中,所述激活码至少包括离线密码。
在一些实施例中,所述激活码还包括所述离线密码的使用限制条件信息。
在一些实施例中,若所述在线状态为在线,则生成在线密码,并将所述在线密码发送至所述用户终端以及所述门锁控制器。
在一些实施例中,所述智能设备还包括智能门锁,所述智能设备信息至少包括与智能门锁相关的两个部件信息,所述一个或以上处理器被进一步配置为使所述系统:基于预设算法和两个部件信息确定智能门锁的状态信息。
在一些实施例中,所述一个或以上处理器被配置为使所述系统:基于预设规则和智能门锁的状态信息生成提醒信息,并发送给终端。
在一些实施例中,所述智能设备信息至少包括与智能设备相关的电量信息,所述一个或以上处理器被进一步配置为使所述系统:确定智能设备电量信息的第一采集值;确定智能设备电量信息的第二采集值;基于预设算法对第一采集值和第二采集值进行处理,获得处理结果;基于所述处理结果,确定智能设备的电量上传时间。
在一些实施例中,所述一个或以上处理器被进一步配置为使所述系统:基于所述处理结果,执行对智能设备的电量管理操作。
本申请实施例之一提供一种控制方法,包括:获取智能设备的关联信息;所述关联信息至少包括智能设备信息和/或智能设备的通信状态;基于预设算法对智能设备的关联信息进行处理,确定智能设备的指示信息;至少基于所述指示信息,进行与智能设备相关的指定操作。
本申请实施例之一提供一种计算机可读存储介质,其特征在于,所述存储介质存储计算机指令,当由系统的一个或以上处理器执行所述指令时,使得所述系统:获取智能设备的关联信息;所述关联信息至少包括智能设备信息和/或智能设备的通信状态;基于预设算法对智能设备的关联信息进行处理,确定智能设备的指示信息;至少基于所述指示信息,进行与智能设备相关的指定操作。
本申请实施例之一提供一种历史记录信息的存储方法,其特征在于,包括:当设备操作信息上报服务器失败时,获取历史记录信息区的写指针;将所述设备操作信息以历史记录信息的形式存储在所述写指针对应的存储位置中;更新所述写指针对应的存储位置。
在一些实施例中,所述方法还包括:判断操作信息上报服务器是否成功,所述操作信息为设备操作信息或有效历史记录信息;若成功,获取所述历史记录信息区的读指针;根据所述读指针的存储位置读取有效历史记录信息,上报所述有效历史记录信息,并返回执行所述判断操作信息上报服务器是否成功;若失败,判断所述操作信息是否为已存储的历史记录信息;若是已存储的历史记录信息,则不执行任何操作;若不是已存储的历史记录信息,则执行所述获取历史记录信息区的写指针。
在一些实施例中,在所述获取历史记录信息区的写指针之后,所述方法还包括:根据所述写指针的存储位置,判断所述历史记录信息区中已 存储的历史记录信息是否大于预设最大存储量;若是,擦除所述历史记录信息区中存储时间最早的扇区中的历史记录信息,并更新所述写指针对应的存储位置;若否,执行所述将所述历史记录信息存储在所述写指针对应的存储位置中。
在一些实施例中,在所述获取所述历史记录信息区的读指针之后,所述方法还包括:根据所述历史记录信息区的读指针,判断所述历史记录信息区中已上报的历史记录信息是否大于预设最大存储量;若是,擦除所述历史记录信息区中存储时间最早的扇区中的已上报的历史记录信息,并更新所述读指针对应的存储位置;若否,执行所述根据所述读指针的存储位置读取有效历史记录信息,并上报所述有效历史记录信息。
在一些实施例中,所述获取历史记录信息区的读指针,包括:获取历史记录信息区的当前读指针;判断所述当前读指针对应的存储位置是否有异常数据标识;若是,将所述历史记录信息区中当前读指针对应的存储位置的下一存储位置对应的读指针确定为当前读指针,并执行所述判断所述当前读指针对应的存储位置是否有异常数据标识;若否,将所述当前读指针确定为历史记录信息区的读指针。
在一些实施例中,所述历史记录信息包括数据状态、数据类型、有效数据长度、数据有效性标识和有效数据。
本申请实施例之一提供一种历史记录信息的存储装置,其特征在于,包括:写指针获取单元,用于当设备操作信息上报服务器失败时,获取历史记录信息区的写指针;历史记录信息存储单元,用于将所述设备操作信息以历史记录信息的形式存储在所述写指针对应的存储位置中;写指针更新单元,用于更新所述写指针对应的存储位置。
在一些实施例中,所述装置还包括:第一判断单元,用于判断操作信息上报服务器是否成功,所述操作信息为设备操作信息或有效历史记录 信息;若成功,触发读指针获取单元,用于获取所述历史记录信息区的读指针;信息上报单元,用于根据所述读指针的存储位置读取有效历史记录信息,上报所述有效历史记录信息,并触发所述第一判断单元;若失败,触发第二判断单元,用于判断所述操作的信息是否为已存储的历史记录信息;若是已存储的历史记录信息,则不执行任何操作;若不是已存储的历史记录信息,则触发所述写指针获取单元。
在一些实施例中,所述装置还包括:第三判断单元,用于根据所述写指针的存储位置,判断所述历史记录信息区中已存储的历史记录信息是否大于预设最大存储量;若是,触发第一擦除单元,用于擦除所述历史记录信息区中存储时间最早的扇区中的历史记录信息,并更新所述写指针对应的存储位置;若否,触发所述历史记录信息存储单元。
在一些实施例中,所述装置还包括:第四判断单元,用于根据所述历史记录信息区的读指针,判断所述历史记录信息区中已上报的历史记录信息是否大于预设最大存储量;若是,触发第二擦除单元,用于擦除所述历史记录信息区中存储时间最早的扇区中的已上报的历史记录信息,并更新所述读指针对应的存储位置;若否,触发所述信息上报单元。
在一些实施例中,所述读指针获取单元包括:获取子单元,用于获取历史记录信息区的当前读指针;判断子单元,用于判断所述当前读指针对应的存储位置是否有异常数据标识;若是,触发第一确定子单元,用于将所述历史记录信息区中当前读指针对应的存储位置的下一存储位置对应的读指针确定为当前读指针,并触发所述判断子单元;若否,触发第二确定子单元,用于将所述当前读指针确定为历史记录信息区的读指针。
本申请实施例之一提供一种门锁的控制方法,其特征在于,应用于服务器,包括:获取门锁的在线状态;若所述在线状态为离线,生成激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信 息;将所述激活码发送至用户终端,以使所述门锁的门锁控制器根据用户的输入操作获取到所述激活码、且解析所述激活码得到所述离线密码以及所述离线密码的使用限制条件信息。
在一些实施例中,若所述在线状态为在线时,还包括:生成在线密码以及所述在线密码的使用限制条件信息;将所述在线密码以及所述在线密码的使用限制条件信息发送至所述用户终端以及所述门锁控制器。
在一些实施例中,在所述获取门锁的在线状态的步骤之前,还包括:获取预设用户输入的待申请密码的密码类型;若所述密码类型为清空码,生成清空码以及所述清空码的使用限制条件信息;将所述清空码以及所述清空码的使用限制条件信息发送至所述用户终端;若所述密码类型为开锁密码,则执行所述获取门锁的在线状态这一步骤。
本申请实施例之一提供一种门锁的控制方法,其特征在于,应用于门锁控制器,包括:确定门锁的在线状态;若所述在线状态为离线,获取输入的激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息;解析所述激活码,获取所述激活码中的所述离线密码以及所述离线密码的使用限制条件信息;保存所述离线密码以及所述离线密码的使用限制条件信息。
在一些实施例中,若所述在线状态为在线时,所述的控制方法还包括:接收服务器下发的在线密码以及所述在线密码的使用限制条件信息;保存所述在线密码以及所述在线密码的使用限制条件信息。
在一些实施例中,所述的控制方法还包括:获取输入的密码、输入密码的时间以及所述密码历史被输入的次数;若所述密码为清空码、且所述时间满足所述清空码的使用限制条件信息,将所述门锁控制器中保存的所有的在线密码的有效状态、离线密码的有效状态和清空码的有效状态均设置为无效;若所述密码为开锁密码,确定标识信息;其中,所述开锁密 码包括在线密码和离线密码;所述标识信息用于表征所述时间以及所述次数是否均满足所述开锁密码的使用限制条件信息;若所述标识信息表征所述时间以及所述次数均满足所述开锁密码的使用限制条件信息,控制门锁开锁。
本申请实施例之一提供一种门锁的控制装置,其特征在于,应用于服务器,包括:状态获取模块,用于获取门锁的在线状态;第一生成模块,用于若所述在线状态为离线,生成激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息;第一发送模块,用于将所述激活码发送至用户终端,以使所述门锁的门锁控制器根据用户的输入操作获取到所述激活码、且解析所述激活码得到所述离线密码以及所述离线密码的使用限制条件信息。
在一些实施例中,所述的控制装置还包括:第二生成模块,用于若所述在线状态为在线,生成在线密码以及所述在线密码的使用限制条件信息;第二发送模块,用于将所述在线密码以及所述在线密码的使用限制条件信息发送至所述用户终端以及所述门锁控制器。
本申请实施例之一提供一种门锁的控制装置,其特征在于,应用于门锁控制器,包括:状态确定模块,用于确定门锁的在线状态;第一获取模块,用于若所述在线状态为离线,获取输入的激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息;解析模块,用于解析所述激活码,获取所述激活码中的所述离线密码以及所述离线密码的使用限制条件信息;第一保存模块,用于保存所述离线密码以及所述离线密码的使用限制条件信息。
在一些实施例中,所述的控制装置还包括:接收模块,用于接收服务器下发的在线密码以及所述在线密码的使用限制条件信息;第二保存模块,用于保存所述在线密码以及所述在线密码的使用限制条件信息。
本申请实施例之一提供一种智能门锁的状态提醒方法,其特征在于,包括:获取智能门锁上的第一部件和第二部件的状态信息,所述第一部件的状态信息用于指示门的开关状态,所述第二部件的状态信息用于指示锁的锁定状态;根据所述第一部件和所述第二部件的状态信息,确定所述智能门锁的状态信息;当所述智能门锁的状态信息符合预设条件时,生成包含所述智能门锁的状态信息的提醒信息;根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端。
在一些实施例中,所述第一部件为顶针,所述顶针具有收起和弹出两种状态,所述第二部件为斜舌,所述斜舌具有收起和弹出两种状态,则所述根据所述第一部件和所述第二部件的状态信息,确定所述智能门锁的状态信息,包括:在所述顶针收起且所述斜舌弹出时,确定所述智能门锁的状态为门关闭且上锁;或在所述顶针收起且所述斜舌收起时,确定所述智能门锁的状态为门关闭未上锁;或在所述顶针弹出时,确定所述智能门锁的状态为门打开。
在一些实施例中,所述根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端,包括:根据所述智能门锁对应房屋的所属情况,将所述提醒信息发送给与所述智能门锁具有关联关系的终端,所述所属情况用于表征房屋当前处于使用状态或管理状态。
在一些实施例中,所述智能门锁的状态信息包括门打开、门关闭未上锁和门关闭且上锁,则所述当所述智能门锁的状态信息符合预设条件时,生成包含所述智能门锁的状态信息的提醒信息,包括:当所述智能门锁的状态信息为打开且持续时间超过第一预设时长时,生成包含所述状态信息的第一提醒信息;或当所述智能门锁的状态信息为门关闭未上锁,且当前时间到达预设时间点时,生成包含所述状态信息的第二提醒信息;或当所述智能门锁的状态信息为门关闭且上锁,且当前时间距离上一次所述智能 门锁打开的时间达到第二预设时长,生成包含所述状态信息的第三提醒信息。
在一些实施例中,所述根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端,包括:在生成所述第一提醒信息、所述第二提醒信息或所述第三提醒信息后,确定所述智能门锁对应房屋的所属情况;若所述智能门锁对应房屋为使用状态,向与所述智能门锁对应房屋的使用方终端发送所述第一提醒信息、所述第二提醒信息或所述第三提醒信息。
在一些实施例中,所述根据预设规则将所述提醒信息发送给与所述智能们多具有关联关系的终端,包括:在生成所述第一提醒信息或所述第二提醒信息后,确定所述智能门锁对应房屋的所属情况;若所述智能门锁对应房屋为管理状态,向与所述智能门锁对应房屋的管理方终端发送所述第一提醒信息或所述第二提醒信息。
在一些实施例中,所述的智能门锁的状态提醒方法还包括:接收终端发送的查看智能门锁的状态信息的请求信息,所述请求信息包括请求身份信息;在所述请求身份信息具备查看权限时,向所述终端返回所述智能门锁的状态信息。
在一些实施例中,所述获取智能门锁上的第一部件和第二部件的状态信息,包括:接收智能门锁根据预设频率上传的第一部件和第二部件的状态信息,或向智能门锁发送状态获取请求并接收所述智能门锁根据所述状态获取请求发送的第一部件和第二部件的状态信息。
在一些实施例中,所述获取智能门锁上的第一部件和第二部件的状态信息,包括:接收智能门锁在其自身状态发生变化时上传的第一部件和第二部件的状态信息。
本申请实施例之一提供一种智能门锁的状态提醒装置,其特征在于, 包括:信息获取模块,用于获取智能门锁上的第一部件和第二部件的状态信息,所述第一部件的状态信息用于指示门的开关状态,所述第二部件的状态信息用于指示锁的锁定状态;状态确定模块,用于根据所述第一部件和所述第二部件的状态信息,确定所述智能门锁的状态信息;信息生成模块,用于在所述智能门锁的状态信息符合预设条件时,生成包含所述智能门锁的状态信息的提醒信息;信息发送模块,用于根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端。
本申请实施例之一提供一种电量管理方法,其特征在于,包括:根据确定的电量预设上报时间对电池供电设备进行电量采集,并确定在所述预设上报时间的第一采集值;对所述电池供电设备进行电量采集,确定第二采集值,其中,所述第二采集值的生成时间晚于所述第一采集值的生成时间;将所述第一采集值与所述第二采集值进行比较,获得比较结果;基于所述比较结果,确定所述电池供电设备的电量上传时间并执行对所述电池供电设备的电量管理。
在一些实施例中,所述根据确定的电量预设上报时间对电池供电设备进行电量采集,并确定在所述预设上报时间的第一采集值,包括:根据确定的电量采集时间间隔进行电量采集,获得电量采集值集合,其中,所述电量采集值集合中包括若干个电量采集数值;根据第一预设上报时间,确定所述电量采集值集合中的若干个电量采集数值;计算所述若干个电量采集数值的平均值,将所述平均值记为第一电量采集值;将所述第一电量采集值和所述第一预设上报时间对应的第一时间点,记为第一采集值。
在一些实施例中,若所述第一预设上报时间为首次预设上报时间,则所述对所述电池供电设备进行电量采集,确定第二采集值,包括:将所述第一预设上报时间对应的时间点作为首次电量采集时间点,按照预设时间间隔采集获得预设数量的电量采集值;计算所述电量采集值的平均值, 将所述平均值记为第二电量采集值;获得末次采集电量的第二时间点,将所述第二电量采集值和所述第二时间点记为第二采集值。
在一些实施例中,所述将所述第一采集值与所述第二采集值进行比较,获得比较结果,包括:计算获得所述第一采集值对应的第一电量采集值与所述第二电量采集值之间的电量差值;计算获得所述第二时间点与所述第一时间点之间的时间差值。
在一些实施例中,所述基于所述比较结果,确定所述电池供电设备的电量上传时间并执行对所述电池供电设备的电量管理,包括:判断所述电量差值是否大于预设异常电量变化阈值,如果是,则判断所述时间差值是否小于预设异常检测时间阈值,如果是,则根据所述第一采集值和所述第二采集值,计算获得电量上传值;将所述电量上传值发送至服务器,其中,基于所述电量上传值可以获知所述电池供电设备处于高功耗状态;对所述电池供电设备执行对应高功耗状态的电量管理。
在一些实施例中,当所述电池供电设备已发送过电量上传值至服务器时,所述对所述电池供电设备进行电量采集,确定第二采集值,包括:按照预设电量采集时间间隔采集第二预设上报时间范围内的电量值;计算所述第二预设上报时间范围内的电量值的平均值,将所述平均值记为第二电量采集值,其中,所述第二采集值包括第二电量采集值和第二预设上报时间对应的第二时间点。
在一些实施例中,所述基于所述比较结果,执行对所述智能门锁的电量管理,包括:判断所述比较结果是否满足预设电量正常状态的预定条件,如果是,则执行对所述第二采集值的第一处理,所述第一处理表征不将所述第二采集值上传至服务器;如果否,则将所述第二采集值上传至服务器,并执行对所述电池供电设备的第二处理,所述第二处理表征对所述电池供电设备处于低电量状态下的电量管理。
在一些实施例中,所述执行对所述电池供电设备的第二处理,包括:对所述电池供电设备的预定电量消耗模块进行关闭。
在一些实施例中,所述电量管理方法还包括:通过蓝牙广播检测获得是否有与所述电池供电设备连接的终端设备,如果是,则将所述电池供电设备的电量在所述上传时间发送至所述终端设备。
本申请实施例之一提供一种电量管理装置,其特征在于,包括:第一采集单元,用于根据确定的电量预设上报时间对电池供电设备进行电量采集,并确定在所述预设上报时间的第一采集值;第二采集单元,用于对所述电池供电设备进行电量采集,确定第二采集值,其中,所述第二采集值的生成时间晚于所述第一采集值的生成时间;比较单元,用于将所述第一采集值与所述第二采集值进行比较,获得比较结果;确定单元,用于基于所述比较结果,确定所述电池供电设备的电量上传时间并执行对所述电池供电设备的电量管理。
附图说明
本申请将以示例性实施例的方式进一步说明,这些示例性实施例将通过附图进行详细描述。这些实施例并非限制性的,在这些实施例中,相同的编号表示相同的结构,其中:
图1所示为根据本申请一些实施例所示的一种智能设备的控制方法及系统的应用场景示意图;
图2为根据本申请的一些实施例所示的电量管理方法的示例性流程图;
图3为本发明一些实施例的一种电量管理方法的流程示意图;
图4为本发明实施例中提供的一种确定第一采集值的方法的示例性流程图;
图5为本发明实施例中提供的智能门锁的电量时间线示意图;
图6为本发明实施例中提供的智能门锁的主控单元示意图;
图7为本发明实施例中耗电异常时智能门锁的开启模块和关闭模块示意图;
图8为本发明实施例中提供的电量管理装置的示例性模块图;
图9为本发明实施例中提供的一种历史记录信息的存储方法的示例性流程图;
图10为本发明实施例中提供的另一种历史记录信息的存储方法的示例性流程图;
图11为本发明实施例中写入历史记录信息的示意图;
图12为本发明实施例中提供的一种历史记录信息的存储方法的示例性流程图;
图13为本发明实施例公开的智能门锁的状态提醒方法流程图;
图14为本发明实施例公开的智能门锁的状态提醒的结构流程示意图;
图15为本发明实施例公开的另一种智能门锁的状态提醒方法流程图;
图16为本发明实施例公开的一种智能门锁的状态提醒装置的结构示意图;
图17为本发明实施例公开的另一种智能门锁的状态提醒装置的结构示意图;
图18为本发明实施例提供的一种门锁的控制方法的示例性流程图;
图19为本发明实施例提供的另一种门锁的控制方法的示例性流程图;
图20为本发明实施例提供的又一种门锁的控制方法的示例性流程图;
图21为本发明实施例提供的一种门锁的控制装置的结构示意图;
图22为本发明实施例提供的另一种门锁的控制装置的结构示意图。
具体实施方式
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单的介绍。显而易见地,下面描述中的附图仅仅是本申请的一些示例或实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图将本申请应用于其它类似情景。除非从语言环境中显而易见或另做说明,图中相同标号代表相同结构或操作。
应当理解,本文使用的“系统”、“装置”、“单元”和/或“模块”是用于区分不同级别的不同组件、元件、部件、部分或装配的一种方法。然而,如果其他词语可实现相同的目的,则可通过其他表达来替换所述词语。
如本申请和权利要求书中所示,除非上下文明确提示例外情形,“一”、“一个”、“一种”和/或“该”等词并非特指单数,也可包括复数。一般说来,术语“包括”与“包含”仅提示包括已明确标识的步骤和元素,而这些步骤和元素不构成一个排它性的罗列,方法或者设备也可能包含其它的步骤或元素。
本申请中使用了流程图用来说明根据本申请的实施例的系统所执行的操作。应当理解的是,前面或后面操作不一定按照顺序来精确地执行。相反,可以按照倒序或同时处理各个步骤。同时,也可以将其他操作添加到这些过程中,或从这些过程移除某一步或数步操作。
图1所示为根据本申请一些实施例所示的一种智能设备的控制方法及系统的应用场景示意图。
智能设备的控制系统100可以用于居民住宅、办公楼、厂区、学校、医院、酒店、出租房屋等各类生产生活区域内的智能门锁、智能电表、智 能水表、智能燃气表等智能设备的控制以及管理。例如,系统100能够实现获取智能门锁或各智能计量表的电量信息,并可以根据电量信息对智能门锁或智能计量表的电量使用进行管控。又例如,系统100还能够获取智能门锁的开关状态信息,并可以根据门锁的开关状态信息确定房屋的安全信息。还例如,系统100还能够获取智能门锁和/或其他智能设备的在线/离线状态信息,并可以根据在线/离线状态信息对智能门锁和/或其他智能设备进行密码管理。还例如,系统100还能够将上述智能设备的电量信息,智能门锁的开关状态信息,以及智能密码管理信息等上传至于对应的服务器,以使服务器能够基于上传的信息进行相关的操作。其中,当智能设备与服务器之间的数据传输通信断开时,系统还能够将待上传至服务器的数据在智能设备处进行本地存储,待智能设备与服务器之间的数据传输通信良好时,再把本地存储的数据重新上传至服务器。
为了实现上述功能,本说明书至少一个实施例中的智能控制系统能够获取智能设备的关联信息,如智能设备信息和/或智能设备的通信状态,基于预设算法对智能设备的关联信息进行处理,确定智能设备的指示信息,然后至少基于指示信息,进行与智能设备相关的指定操作。
在一些实施例中,系统100可以获取智能设备的电量相关信息,对应的处理器对获取到的电量相关信息进行处理,以确定与耗电状态相关的指示信息,并基于指示信息控制智能设备中用电模块的开启或关闭,或者基于指示信息给出是否将智能设备的当前电量上传至服务器的判断指示。
在一些实施例中,系统100可以获取智能设备(如智能门锁)中一个或多个部件的位置信息,对应的处理器对所述位置信息进行处理,以确定智能设备的使用状态,并根据智能设备的使用状态来指示是否需要进行安全提醒,即是否需要向用户终端发送消息。
在一些实施例中,系统100可以获取智能设备(如智能门锁)的在 线/离线状态,处理器基于在线/离线状态确定指示信息,即分别生成与在线/离线状态对应的在线密码/激活码,并根据确定的指示信息来与智能设备相关的指定操作,即基于生成的指示信息来判断是将在线密码还是激活码发送给用户终端。
在一些实施例中,系统100可以获取智能设备与服务器之间的数据传输状态,即智能设备向服务器上传信息是否成功。在智能设备向服务器110上传信息失败时,处理器基于上传失败的状态确定智能设备的指示信息,即将没有上传成功的数据信息确定为历史记录信息,并根据确定的历史记录信息在智能设备端进行本地存储器的操作。
如图1所示,该智能设备的控制系统100包括服务器110(处理器)、智能设备130、客户端140(用户终端)和网络120。
服务器(处理器)110可以获取处理智能设备130的关联信息,并基于预设算法对智能设备的关联信息进行处理,确定智能设备的操作指示信息,以执行一个或多个本申请中描述的功能。所述关联信息可以包括智能设备信息和/或智能设备的通信状态。智能设备信息可以理解为智能设备的设备信息,所述智能设备信息可以包括智能设备的部件信息、电量信息、操作信息等。例如,智能设备的设备信息可以是智能设备的剩余电量信息。又例如,智能设备的设备信息可以是智能设备的一个或多个部件的位置信息。所述智能设备的通信状态可以是智能设备130与服务器110通过网络120进行数据传输时的相关状态,具体地可以包括但不限于上传状态、下载状态、在线/离线状态中的一种或组合。例如,智能设备的通信状态可以包括智能设备上传数据是否成功。又例如,智能设备的通信状态可以是智能设备是否在线。在一些实施例中,所述指示信息能够指示智能设备当前状态的信息,也能够用于指示系统中任意一个模块执行一个或多个操作的信息。例如,指示信息可以包括表示智能设备耗电异常的信息,也可以包 括指示服务器110向用户终端140发送消息的信息。
服务器110可以执行系统100中的部分功能。具体的,在一些实施例中,服务器110通过获取智能设备电量信息,可以确定智能设备的耗电是否存在异常,如智能设备耗电过高,则服务器110可以控制智能设备关闭部分耗电高的功能模块。在一些实施例中,服务器110通过获取智能门锁的一个或多个部件的位置信息,可以确定智能门锁处于打开、关闭或上锁状态,如果智能门锁长时间处于打开状态,则向用户终端发出安全提醒。在一些实施例中,当服务器110确定智能设备在线时,服务器可以生成在线密码及在线密码使用条件,并通过网络下发至智能设备及用户终端,用户可以使用在线密码对智能设备进行解锁;当服务器110确定智能设备离线时,服务器可以生成激活码,并通过网络下发至用户终端,用户可以通过激活码对智能设备进行操作,获取智能设备的离线密码,并使用离线密码对智能设备进行解锁。
在一些实施例中,服务器110可以是一个单个的服务器或者一个服务器群组。所述服务器群可以是集中式的或分布式的(例如,服务器110可以是一个分布式的系统)。在一些实施例中,服务器110可以是本地的或远程的。例如,服务器110可以通过网络120访问智能设备130和客户端140。再例如,服务器110可以直接连接到智能设备130、客户端140以访问存储的信息和/或数据。在一些实施例中,服务器110可以在一个云平台上实现。仅仅举个例子,所述云平台可以包括私有云、公共云、混合云、社区云、分布云、云之间、多重云等或上述举例的任意组合。在一些实施例中,服务器110可以在计算设备上实现。在一些实施例中,服务器110可以在移动设备上实现。
网络120可以用于信息和/或数据的交换。系统中的一个或多个部件(服务器110、智能设备130、客户端140)之间可以通过网络120向其他 部件发送信息/数据。例如,智能设备130可以通过网络120向服务器110上传智能设备的电量信息、部件信息等数据信息。又例如,服务器110可以通过网络120向客户端140发放密码、激活码等数据信息。在一些实施例中,网络120可以是有线网络或无线网络中的任意一种或其组合。例如,网络120可以包括电缆网络、有线网络、光纤网络、远程通信网络、内联网、互联网、局域网(LAN)、广域网(WAN)、无线局域网(WLAN)、城域网(MAN)、公共交换电话网络(PSTN)、通用封包无线网络(GPRS)、移动电话网络、蓝牙网络、ZigBee网络、近场通讯(NFC)网络、窄带物联网NB-IoT/LoRa等或上述举例的任意组合。在一些实施例中,网络120可以包括一个或多个网络接入点。例如,网络120可能包括有线或无线网络接入点,如基站和/或互联网交换点120-1、120-2等等。通过接入点,系统100的一个或多个部件可能连接到网络120以交换数据和/或信息。
智能设备130可以包括设置在房屋内的一些智能家居设备。在一些实施例中,智能设备130可以包括但不限于智能门锁、智能电表、智能水表、智能气表、电器开关、电视、空调等电器设备。智能设备130可以接收服务器110和/或客户端140的指令,并执行指令。例如,智能门锁可以接收服务器110的指令,基于指令关闭或开启。又例如,智能门锁可以接收服务器110的指令,基于指令控制功能模块的电源开关开启或关闭。在一些实施例中,智能设备130还可以将本身的工作状态信息传输给服务器110。例如,智能门锁130可以将门锁已开启或已关闭的状态信息传输给服务器110。又例如,智能门锁130可以将其本身的电量信息传输给服务器110。
在一些实施例中,智能设备130也可以包括存储设备,用于将数据进行本地存储。具体的,当智能设备的数据上传服务器失败时,智能设备可以将待上传至服务器的数据进行本地存储,待智能设备与服务器之间的 数据传输通信良好时,再把本地存储的数据重新上传至服务器。
客户端(用户终端)140可以包括安装智能设备130的房屋的所有相关用户的用户终端。具体的,相关用户可以包括房屋的管理者,例如,出租房的商户;相关用户也可以包括房屋的使用者,例如,出租房的租户;相关用户也可以包括房屋的所有者;相关用户还可以包括房屋的保洁人员。客户端包括但不限于上述任意角色人员的用户终端。例如,客户端140可以是酒店管理者的用户终端,或是酒店入住者的用户终端,或是出租房屋的房东的用户终端,或是出租房的租户的用户终端。客户端140可以经由网络120接收服务器110、智能设备130发送的信息或数据。例如,客户端140可以接收服务器110发送的激活码信息。又例如,客户端140可以接收智能设备130发送的门锁未上锁信息。在一些实施例中,不同的客户端可以接收到的信息不同。例如,服务器110可以根据预定规则将信息只发送给出租房房东的用户终端,也可以只发送给出租房租户的用户终端,也可以同时发送给所有与智能设备有关联的用户终端。客户端140可以用于显示智能设备控制系统100的记录数据、智能设备130的工作状态、开锁记录等相关信息。客户端140还可以用于直接或通过服务器对智能设备130进行操作,并接收系统100内的服务器110或智能设备130反馈的操作结果。例如,用户可以通过客户端对智能门锁进行远程开锁,并在客户端上显示开锁结果。在一些实施例中,客户端140可以包括但不限于台式电脑、笔记本电脑、智能手机、个人数码助理(Personal Digital Assistance,PDA)、平板电脑、掌上游戏机、智能眼镜、智能手表、可穿戴设备、虚拟显示设备、显示增强设备等或其任意组合。
在一些实施例中,服务器110、智能设备130和客户端140中都可以分别设置存储设备。也可以在系统100内单独设置独立的存储设备用于存储数据和/或指令。在一些实施例中,存储设备可以包括大容量存储器、 可移动存储器、挥发性读写存储器、只读存储器(ROM)等或上述举例的任意组合。示例性的大容量存储器可以包括磁盘、光盘、固态硬盘等。示例性的可移动存储器可以包括闪存盘、软盘、光盘、记忆卡、压缩硬盘、磁带等。示例性的挥发性只读存储器可以包括随机存储器(RAM)。示例性的随机存储器可以包括动态随机存储器(DRAM)、双数据率同步动态随机存储器(DDRSDRAM)、静态随机存储器(SRAM)、可控硅随机存储器(T-RAM)和零电容存储器(Z-RAM)等。示例性的只读存储器可以包括掩蔽型只读存储器(MROM)、可编程只读存储器(PROM)、可擦除可编程只读存储器(EPROM)、电可擦除可编程只读存储器(EEPROM)、压缩硬盘只读存储器(CD-ROM)和数字多功能硬盘只读存储器等。在一些实施例中,存储设备还可以在一个云平台上实现。仅仅举个例子,所述云平台可以包括私有云、公共云、混合云、社区云、分布云、云之间、多重云等或上述举例的任意组合。
本申请一些实施例提出了一种电量管理方法和装置。电量管理装置作为智能设备中的一个控制装置,实现确定智能设备电量状态信息以及管理电量使用的功能。在一些实施例中,电量管理装置可以包括至少一个处理器,所述至少一个处理器被配置为使所述系统:确定智能设备电量信息的第一采集值;确定智能设备电量信息的第二采集值;基于预设算法对第一采集值和第二采集值进行处理,获得处理结果;基于所述处理结果,确定智能设备的电量上传时间。电量管理装置还可以包括:第一采集单元、第二采集单元、比较单元和确定单元。在一些实施例中,电量管理装置还可以包括模块电源控制单元。
在一些实施例中,电量管理装置可以通过网络120与服务器110进行通信,将确定的电量信息上传至服务器110。服务器110也可以通过网络120将控制指令发送至电量管理装置,以实现对电量管理装置的管控。 在一些实施例中,电量管理装置还可以通过网络120与用户终端140进行通信,在用户终端中显示相关信息。例如,用户终端140可以实时显示智能设备130的剩余电量。
图2为本发明一些实施例的一种电量管理方法的流程示意图。在一些实施例中,电量管理方法包括:
步骤210,根据确定的电量预设上报时间对电池供电设备进行电量采集,并确定在所述预设上报时间的第一采集值。步骤210可以由第一采集单元实现。
在本发明中电池供电设备主要指利用电池进行供电的智能设备,例如,包括智能电子相框、智能路由、智能门锁等设备。
在本发明实施例中该电量管理方法由电池供电设备执行,通常电池供电设备在上电后或异常重启后以及与新设备绑定外会进行一次电量上传之外。还需要在电量上报时间将电量值上传至服务器。在本发明实施例中是按照一定的时间间隔采集该电池供电设备的电量值,但并不是每次采集后都会将该电量值上传至服务器,而是设定上报时间,在预设上报时间时才有可能进行电量上传至服务器。
例如,以智能门锁为例,其上报时间点按照0:00~3:59的随机起始初始时间每隔4个小时上传一次,该时间的设置可以基于智能门锁蓝牙芯片的MAC地址通过固定算法生成。
需要说明的是该第一采集值不仅包括电量采集值也包括该电量采集值对应的预设上报时间或者生成时间。
步骤220对所述电池供电设备进行电量采集,确定第二采集值。步骤220可以由第二采集单元实现。
其中,所述第二采集值的生成时间晚于所述第一采集值的生成时间。
第二采集值的生成时间是要晚于第一采集值的生成时间的,其中, 生成时间可以理解为预设上报时间或者在一个采集周期内最后一次的电量采集时间。具体的,如果一个采集周期为4个小时,起始时间为1:00,而终止时间将为5:00,则5:00即为采集值的生成时间。假设第一采集值的生成时间为5:00,则第二采集值的生成时间应该晚于5:00,二者之间的时间间隔可以根据电池供电设备的电池性能或者电量数据上传服务器的性能进行设置。
步骤230,将所述第一采集值与所述第二采集值进行比较,获得比较结果。步骤230可以由比价单元执行。
可以理解的是,在获得了第一采集值后并不会立即上传至服务器,而是需要与第二采集值进行比较,主要是针对二者的电量值和采集时间点进行比较,确定其差值。
步骤240,基于所述比较结果,确定所述电池供电设备的电量上传时间并执行对所述电池供电设备的电量管理。步骤240可以由确定单元执行。
基于上述的比较结果来确定电池供电设备的电量上传时间,即可以基于该比较结果获知该电池供电设备当前的电量状态,即是否处于正常的电量消耗状态还是处于高功耗或者异常的电量消耗,基于该结果确定是否将电量进行上传,该上传时间即为判断结果的获知时间。假设为了更好地降低服务器的数据压力,可以只上传出现电量异常问题的电量采集值,也可以在一定采集次数之后再上传采集值。
并且会基于该比较结果进行电池供电设备的电量管理,即通过实时判断可以获知该电池供电设备的电量状态,及时作出响应例如判断得到该电池供电设备处于高功耗则会切断某些耗电模块,若处于异常则会关闭该电池供电设备等。
本发明提供的智能门锁的电量管理方法,通过对电池供电设备在预 设上报时间和晚于该预设上报时间的另一时间点获得对应的电量采集值,将两次时间的采集值进行比较,基于比较结果确定电量上传时间和执行对应的电量管理。一方面通过确定电量上传时间进行电量上传可以减少电量频繁上传给服务器造成的压力,并且能根据判断结果确定上传时间使得采集数据更准确,另一方面能够基于检测到的电量值进行对应的电池供电设备的管理可以避免电量过低造成的使用不便,提高了用户的体验效果。
在本发明实施例中提供了一种确定第一采集值的方法,参见图3,包括:
步骤310,根据确定的电量采集时间间隔进行电量采集,获得电量采集值集合;其中,所述电量采集值集合中包括若干个电量采集数值;
步骤320,根据第一预设上报时间,确定所述电量采集值集合中的若干个电量采集数值;
步骤330,计算所述若干个电量采集数值的平均值,将所述平均值记为第一电量采集值;
步骤340,将所述第一电量采集值和所述第一预设上报时间对应的第一时间点,记为第一采集值。
若电池供电设备为智能门锁,智能门锁的电量采集是按照预设时间间隔进行电量采集的,最终确定的采集值为采集电量的平均值。例如,电量采集按照20分钟采集一次的间隔频率进行采集,最终到预设上报时间时,上报的电量值也就第一采集值为最近15次,其中,15次为预定采集次数,不够15次按照实际已采集次数,采集到的电量平均值。若进行上传则存储该词上传电量,并清除电量缓存数组即之前采集到的各个电量值和采样次数。
若上述采集为第一次采集,即预设上报时间为首次预设上报时间,本发明实施例还提供了一种确定第二采集值的方法,包括:将所述第一预 设上报时间对应的时间点作为首次电量采集时间点,按照预设时间间隔采集获得预设数量的电量采集值;计算所述电量采集值的平均值,将所述平均值记为第二电量采集值;获得末次采集电量的第二时间点,将所述第二电量采集值和所述第二时间点记为第二采集值。
基于上述举例,获得第一采集值后,继续按照预设时间间隔,假设20分钟一次的采集间隔频率重新采集,当采集完成3次后,计算这三次采集的平均电量以及时间点。
在本发明实施例还提供了一种第一采集值和第二采集值的比较方法,包括:计算获得所述第一采集值对应的第一电量采集值与所述第二电量采集值之间的电量差值;计算获得所述第二时间点与所述第一时间点之间的时间差值。
举例说明,第一采集值中的平均电量值即第一电量采集值P1以及对应的时间点T1作为第一采集值。继续按照20分钟一次的采集间隔频率重新采集,当每采集完3次后,计算这三次采集的平均电量P2以及对应的时间点T2;将|P2-P1|记为电量差值,将T2-T1记为时间差值。然后基于上述比较值进行判断,包括:判断所述电量差值是否大于预设异常电量变化阈值,则如果是,则判断所述时间差值是否小于预设异常检测时间阈值,如果是,则根据所述第一采集值和所述第二采集值,计算获得电量上传值;
将所述电量上传值发送至服务器,其中,基于所述电量上传值可以获知所述智能门锁处于高功耗状态;对所述智能门锁执行对应高功耗状态的电量管理。
举例说明,若|P2-P1|>异常变化范围值且T2-T1<异常检测时间范围,则有可能此时门锁处于高功耗状态,需要上传电量,并且重新更新当前的平均电量值P1,并且清空当前采集数据。此时需要上传电量,即基于判断结果确定了电量的上传时间和节点。
若根据比较结果判定该智能门锁处于高功耗可以对应进行高功耗的电量管理策略,其中,高功耗的电池管理策略主要是根据对应的电池供电设备的具体性能状态进行设置的,例如为了降低功耗可以关闭该设备的信息传输模块,或者关闭其辅助功能模块,在保证其正常运行下,降低对该设备的功耗使用。
本发明还包括另一实施例,即针对已经向服务器上传过电量采集值,该方案包括:
当所述智能门锁已发送过电量上传值至服务器时,所述随所述智能门锁进行电量采集,确定第二采集值,包括:
按照预设电量采集时间间隔采集第二预设上报时间范围内的电量值;
计算所述第二预设上报时间范围内的电量值的平均值,将所述平均值记为第二电量采集值,其中,所述第二采集值包括第二电量采集值和第二预设上报时间对应的第二时间点。
进一步,所述基于所述比较结果,执行对所述电池供电设备的电量管理,包括:
判断所述比较结果是否满足预设电量正常状态的预定条件,如果是,则执行对所述第二采集值的第一处理,所述第一处理表征不将所述第二采集值上传至服务器;
如果否,则将所述第二采集上传至服务器,并执行对所述电池供电设备的第二处理,所述第二处理表征对所述电池供电设备处于低电量状态下的电量管理。
举例说明,若上一次电量上报值为P1,时间点为P2。到了定时上传电量任务时(正常是4个小时后,采集了大概12次),计算过去采集到的平均电量P2以及对应的时间点T2:
如果|P2-P1|<正常功耗变化范围,并且T2-T1<时间阈值,即在一定 时间范围内电量变化小于一定值的且设备处于正常电量状态的,则判定功耗正常,不需要进行电量上传,此时上一次电量上传值仍然为P1(对应的时间点仍然为T1)。
如果|P2-P1|>=正常功耗变化范围,或者T2-T1>=时间阈值,即电量变化较明显或者设备处于低电状态的,又或者距离上一次上传超过一定时间的,则需要进行电量上传,并且更新P1为当前上报的电量值,同时跟新对应的时间点T1。
以智能门锁为例,参见图4,图4为智能门锁的电量时间线,电量上传判断时间线和电量时间上传时间线是相互独立的,门锁的点量采集和计算采集电量的平均值,不收电量上传点的干扰,其起始的时间为门锁上电的时间,同时门锁电量上传判断的时间点也是随机生成的,随机的将时间打散在4个小时内,同时在电量上传的判断的时间点也会根据门锁目前的电量情况进行判断要不要进行上传,避免频繁上传带来服务器压力及不能及时上传问题。
以上的时间打散策略和电量上传次数的优化可以保证门锁的上传时机是随机的从而避免了海量门锁上传电量数据给服务器带来的压力同时在门锁电量变化异常的时候可以及时上传,从而解决门锁定时电量变化上传不及时的问题。
对应的,在本发明实施例中还提供了一种通过蓝牙广播数据携带电量信息的方法,包括:
通过蓝牙广播检测获得是否有与所述电池供电设备连接的终端设备,如果是,则将所述电池供电设备的电量在所述上传时间发送至所述终端设备。
对于没有联网功能的智能门锁或者是联网功能损坏的电池供电设备的电量信息,可以配置电池供电设备的手机应用来实现电量的同步。
例如,智能门锁的主控使用蓝牙芯片,在蓝牙广播的时候将每次上报点的智能门锁点量在蓝牙广播中更新,如果用靠近智能门锁,智能的门锁的手机应用会搜索锁定周围的智能门锁设备,智能门锁广播的电量并同时向服务器更新当前门锁电量。
参见图5,由于智能门锁的主要模块在硬件电路上独立设计,并保留控制的电源开关,接到模块电源控制单元后接到智能门锁的主控单元。
智能门锁的主控单元可以通过模块电源控制单元,分别操作不同功能模块的电源,在智能门锁识别到门锁自身的功耗异常时会通过调节策略来关闭不同的功能模块来达到省电的目的。以解决智能门锁在使用过程中如果发生耗电异常故障后电量迅速下降问题,分阶段的关闭部分电源可以尽可能的节省门锁的电量消耗。
此外在智能门锁的功耗下降过快时智能门锁也会通过软件设定不同的无线射频的发射功率来减小门锁的电量损耗。例如,在保证足够接收灵敏度的前提下,将无线射频的发射功率降低一个或多个等级。
智能门锁同时预留备用电源的供电的USB插口,在门锁电量耗尽时可以使用USB供电,以唤醒门锁继续使用。
智能门锁本身对电量的管理分两种情况一是智能门锁出现耗电异常情况一种是智能门锁出现电量低的情况。
对于智能门锁出现电量异常的情况,若门锁处于高功耗状态。如果门锁连续3次被判断为处于高功耗状态,则门锁会上报功耗异常事件到服务器同时通过服务器推送消息通知用户门锁处于功耗异常状态。门锁自身判断自身处于功耗异常状态时门锁会关闭一些非关键组件的电源,如红外感应模块的电源,上报完异常状态后关闭联网功能等只保留门锁核心的电机电源模块指纹输入模块及密码输入模块的电源,最大程度的降低智能门锁电量损耗。
对于门锁处于低电运行的门锁将门锁电量低分为三档即将低电,低电,电量耗尽。其中即将低电对应智能门锁的电量在20%-10%之间,这期间服务器会向用户推送一次低电提醒。低电只门锁点量低于10%的情况,这是服务器会向用户推送更换电池的提醒,同时智能门锁的蜂鸣器和LED等的交互会变化来提示用户门锁点量过低。电量耗尽指门锁电量已经为0%,这个时候门锁会自己关闭所有的工作模块,进入关机状态,只有使用备用电源时才能唤醒门锁继续使用。
举例说明,当智能门锁判断自身功耗异常时,除了向服务器推送功能异常的警告外还会自动的关闭部分模块功能,以减少电量消耗。参见图6,为耗电异常时智能门锁的开启模块和关闭模块示意图。
对于检测到智能门锁处于低电量状态时,对应其状态进行不同的处理,包括:即将低电量发送电量推送提醒至客户端,低电量发送推送提醒及本地交互提示,电量耗尽时关闭所有功能模块等待备用电池唤醒。所述本地交互提醒可以包括智能门锁发出特定的提示音对用户进行提醒。
对应的,本发明实施例的电量管理装置,参见图7,具体包括:
第一采集单元710,用于根据确定的电量预设上报时间对电池供电设备进行电量采集,并确定在所述预设上报时间的第一采集值;
第二采集单元720,用于对所述电池供电设备进行电量采集,确定第二采集值,其中,所述第二采集值的生成时间晚于所述第一采集值的生成时间;
比较单元730,用于将所述第一采集值与所述第二采集值进行比较,获得比较结果;
确定单元740,用于基于所述比较结果,确定所述电池供电设备的电量上传时间并执行对所述电池供电设备的电量管理。
在上述电量管理装置的基础上,所述第一采集单元,包括:
第一获取子单元,用于根据确定的电量采集时间间隔进行电量采集,获得电量采集值集合,其中,所述电量采集值集合中包括若干个电量采集数值;
第一确定子单元,用于根据第一预设上报时间,确定所述电量采集值集合中的若干个电量采集数值;
第一计算子单元,用于计算所述若干个电量采集数值的平均值,将所述平均值记为第一电量采集值;
第一记录子单元,用于将所述第一电量采集值和所述第一预设上报时间对应的第一时间点,记为第一采集值。
可选地,第二采集单元包括:
第一采集子单元,用于将所述第一预设上报时间对应的时间点作为首次电量采集时间点,按照预设时间间隔采集获得预设数量的电量采集值;
第二计算子单元,用于计算所述电量采集值的平均值,将所述平均值记为第二电量采集值;
第二记录子单元,用于获得末次采集电量的第二时间点,将所述第二电量采集值和所述第二时间点记为第二采集值。
可选地,所述比较单元包括:
第三计算子单元,用于计算获得所述第一采集值对应的第一电量采集值与所述第二电量采集值之间的电量差值;
第四计算子单元,用于计算获得所述第二时间点与所述第一时间点之间的时间差值。
可选地,所述确定单元包括:
第一判断子单元,用于判断所述电量差值是否大于预设异常电量变化阈值,如果是,则判断所述时间差值是否小于预设异常检测时间阈值,如果是,则根据所述第一采集值和所述第二采集值,计算获得电量上传值;
发送子单元,用于将所述电量上传值发送至服务器,其中,基于所述电量上传值可以获知所述电池供电设备处于高功耗状态;
第一管理子单元,用于对所述电池供电设备执行对应高功耗状态的电量管理。
当所述电池供电设备已发送过电量上传值至服务器时,所述第二采集单元还包括:
第二采集子单元,用于按照预设电量采集时间间隔采集第二预设上报时间范围内的电量值;
第五计算子单元,用于计算所述第二预设上报时间范围内的电量值的平均值,将所述平均值记为第二电量采集值,其中,所述第二采集值包括第二电量采集值和第二预设上报时间对应的第二时间点。
可选地,还包括执行单元,所述执行单元具体包括:
第二判断子单元,用于判断所述比较结果是否满足预设电量正常状态的预定条件,如果是,则执行对所述第二采集值的第一处理,所述第一处理表征不将所述第二采集值上传至服务器;
执行子单元,用于如果否,则将所述第二采集值上传至服务器,并执行对所述电池供电设备的第二处理,所述第二处理表征对所述电池供电设备处于低电量状态下的电量管理。
可选地,所述执行子单元具体用于:
对所述电池供电设备的预定电量消耗模块进行关闭。
所述电量管理装置包括处理器和存储器,上述第一采集单元、第二采集单元、比较单元和确定单元等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。
处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来提升用户的体验效果。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。
本发明实施例提供了一种存储介质,其上存储有程序,该程序被处理器执行时实现所述电量管理方法。
本发明实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述电量管理方法。
在本发明的一些实施例中,在将所述电量上传值发送至服务器时,如果发送不成功,则将所述第一采集值、第二采集值、电量上传值作为历史记录信息存储在本地存储器中,如存储在Flash中。当设备再次与服务器连接时,可以将历史记录信息数据重新传输至服务器。更详细的描述请参见图8。
图8为根据本申请的一些实施例所示的另一种电量管理方法的示例性流程图。在一些实施例中,流程800中的一个或以上步骤可以在电量管理装置中实现,包括:
步骤810,在第一时间对智能设备的电量信息进行采集,确定第一采集值。在一些实施例中,步骤810可以由第一采集单元实现。
在一些实施例中,所述第一时间可以是预设的一个时间点,也可以是预设的时间间隔。所述第一采集值可以包括采集的电量值,也可以包括第一时间信息。
步骤820,在晚于第一时间的第二时间对智能设备的电量信息进行采集,确定第二采集值。步骤820可以由第二采集单元实现。
在一些实施例中,所述第二时间是基于第一时间预设的时间。具体的,第二时间可以是晚于第一时间,并与第一时间有一定时间间隔的时间点。二者之间的时间间隔可以根据电池供电设备的电池性能或者电量数据 上传服务器的性能进行设置。所述第二采集值可以包括采集的电量值,也可以包括第二时间信息。
步骤830,基于预设算法对第一采集值和第二采集值进行比较,获得比较结果。步骤830可以由比较单元实现。
在一些实施例中,所述比较包括对二者的电量值和采集时间的比较。所述比较结果可以是二者电量值和采集时间的差值。
步骤840,基于所述比较结果,确定智能设备的电量上传时间。步骤240可以由确定单元实现。
在一些实施例中,可以基于比较结果中差值的大小确定是否需要将比较结果上传至服务器110。例如,比较结果的差值小于预设值,则不需要上传该结果。比较结果的差值大于预设值,则需要上传该结果。
步骤850,上传所述供电设备的电量信息,并确认上传是否成功。步骤850可以由确定单元实现。
在一些实施例中,电量信息可以是第一采集值与第二采集值的比较结果。在一些实施例中,服务器110接收到上传信息后会对智能设备130发送反馈信息,智能设备130接收到服务器的反馈信息后,即确认电量信息上传成功。
若电量信息上传成功,则电量管理装置可以不执行任何操作;也可以由服务器110确定电量管理装置是否需要执行后续操作。若电量信息上传不成功,则执行步骤860。
步骤860,将所述智供电设备的电量信息存储为历史记录信息。步骤260可以由智能设备的存储设备执行。
在一些实施例中,所述历史记录信息可以包括第一采集值、第二采集值和比较结果。在一些实施例中,历史记录信息可以在其他时间重新上传至服务器110。
上述把上传失败的电量相关信息以历史记录信息的形式进行本地存储的技术方案也可以应用在其他实施例的场景中,详细描述如下。
本申请一些实施例还提出了一种历史记录信息的存储方法及装置。在一些实施例中,基于智能设备的通信状态,智能设备的信息上传服务器可能会失败。当智能设备的信息上传服务器失败时,可以将信息作为历史记录信息保存在智能设备的存储区域中。智能设备的关联信息上传服务器失败可以是由设备离线或网络状态不稳引起的,当设备重新上线或网络状态恢复稳定后,设备可以将存储的历史记录信息重新上传至服务器,以便服务器对设备执行指定操作。
在一些实施例中,所述智能设备的通信状态至少包括智能设备的数据传输状态;所述一个或以上处理器被配置为使所述系统:基于所述数据传输状态,确定是否生成历史记录信息;若所述数据传输状态为失败,则基于传输数据确定历史记录信息;并将所述历史记录信息进行本地存储。在一些实施例中,所述传输状态可以包括传输成功和传输失败。所述本地存储可以是存储在智能设备的存储区域中,例如,存储在Flash中。在一些实施例中,将所述历史记录信息以头部信息和有效信息的形式存储在写指针对应的存储位置中;其中,所述头部信息至少反映所述历史记录信息的数据状态、数据类型、有效数据长度;所述有效信息反映所述历史记录信息的数据内容。所述写指针可以指示当前数据写入的位置。
请参阅图9,本实施例公开了一种历史记录信息的存储方法,应用于任意的智能设备,如智能门锁、智能电表等,所述方法包括以下步骤:
步骤910,当设备操作信息上报服务器失败时,获取历史记录信息区的写指针;
需要说明的是,当智能设备上电,且智能设备生成设备操作信息时,智能设备将设备操作信息上报服务器,当设备操作信息上报服务器失败时, 操作信息成为历史记录信息。
设备操作信息上报失败的原因可以是智能设备离线、智能设备网络状态不稳等。
以智能设备为智能门锁和智能电表为例,设备操作信息可以包括门锁开门、门锁关门;电表跳闸信息、电表合闸信息、超电量信息、超功率信息等。
历史记录信息区可以为智能设备的闪存,历史记录信息区包括多个信息存储区域,每个信息存储区域对应一个存储位置,每个信息存储区域存储一条历史记录信息。
历史记录信息区的写指针表示历史记录信息区的第一个可用信息存储区域的存储位置。
步骤920,将所述设备操作信息以历史记录信息的形式存储在所述写指针对应的存储位置中;
具体的,将设备操作信息转化为历史记录信息的形式进行存储,历史记录信息包括数据状态、数据类型、有效数据长度、数据有效性标识和有效数据。
数据状态包括已上报服务器和未上报服务器。
数据类型表示不同的智能设备事件,以智能电表为例,数据类型可以为电表跳闸、电表合闸、超电量、超功率等。
有效数据长度是与数据类型一一对应的,不同数据类型对应不同的有效数据长度。
数据有效性标识可以为有效和无效。
有效数据为有效数据的内容。
基于本实施例提供的历史记录信息的结构,历史记录信息长度可变,实现历史记录的可扩展性及自适应性。例如,门锁开门事件有效信息长度 为10,而门锁关门事件有效信息长度为12,通过可变长度的管理,可以方便的将不同类型的记录统一管理。
步骤930,更新所述写指针对应的存储位置。
所述更新的方式可以是成功写入新的历史记录时,移动写指针,写指针会根据历史记录的大小自动偏移一定的位置,保证下一次历史记录可以正常写入。具体的,将当前写指针对应的信息存储区域的下一个信息存储区域对应的写指针作为更新后的写指针,即,更新后的写指针对应的存储位置为历史记录信息区中当前存储历史记录信息的存储位置的下一存储位置。
本实施例公开的一种历史记录信息的存储方法,当设备操作信息上报服务器失败时,只需根据历史记录信息区的写指针就可以实现将设备操作信息以历史记录信息的形式进行存储,并在存储后更新写指针对应的存储位置,以便后续历史记录信息的存储,不需要借助文件系统,简化了历史记录信息的存储流程,解决了历史记录存储操作复杂的问题。
请参阅图10,本实施例公开了另一种历史记录信息的存储方法,具体包括以下步骤:
步骤1010,判断操作信息上报服务器是否成功;
需要说明的是,所述操作信息可以包括设备操作信息或有效历史记录信息。在一些实施例中,所述判断的方法可以是根据历史记录的头部信息判断,当操作信息上报成功时,服务器返回上报成功的响应消息,设备接收到响应消息时更新头部信息。
若成功,执行步骤1020:获取所述历史记录信息区的读指针;
具体的,获取历史记录信息区的当前读指针;
判断所述当前读指针对应的存储位置是否有异常数据标识;
请参阅图11,当历史记录信息在写入历史记录信息区时发生断电、 设备重启等异常情况时,会在该历史记录信息存储在位置标记异常数据标识his_rec_flag。
若是有异常数据标识,将所述历史记录信息区中当前读指针对应的存储位置的下一存储位置对应的读指针确定为当前读指针,并执行所述判断所述当前读指针对应的存储位置是否有异常数据标识;
若没有异常数据标识,将所述当前读指针确定为历史记录信息区的读指针。
在操作信息上报时发现标记有异常数据标识的数据时舍弃这条数据,避免上报垃圾数据。
步骤1030,根据所述读指针的存储位置读取有效历史记录信息,上报所述有效历史记录信息,并返回执行步骤1010;
需要说明的是,有效历史记录信息为没有异常数据标识的历史记录信息。
若失败,执行步骤1040:判断所述操作信息是否为已存储的历史记录信息;
若是已存储的历史记录信息,则不执行任何操作;若不是已存储的历史记录信息,则执行步骤1050:获取历史记录信息区的写指针;
可以理解的是,这里“若不是已存储的历史记录信息”具体为操作信息上报服务器失败且操作信息不是历史记录信息。
步骤1060,将所述历史记录信息存储在所述写指针对应的存储位置中;
步骤1070,更新所述写指针对应的存储位置。
本实施例公开了历史记录信息的上报过程和存储过程,实现了基于写指针的历史记录存储和基于读指针的历史记录信息上报。
需要说明的是,在所述获取所述历史记录信息区的读指针之后,所 述方法还包括:根据所述历史记录信息区的读指针,判断所述历史记录信息区中已上报的历史记录信息是否大于预设最大存储量;若是,擦除所述历史记录信息区中存储时间最早的扇区中的已上报的历史记录信息,并更新所述读指针对应的存储位置;若否,执行所述根据所述读指针的存储位置读取有效历史记录信息,并上报所述有效历史记录信息。
还需要说明的是,在所述获取历史记录信息区的写指针之后,所述方法还包括:根据所述写指针的存储位置,判断所述历史记录信息区中已存储的历史记录信息是否大于预设最大存储量;若是,擦除所述历史记录信息区中存储时间最早的扇区中的历史记录信息,并更新所述写指针对应的存储位置;若否,执行所述将所述历史记录信息存储在所述写指针对应的存储位置中。
所述预设最大存储量为预先设定的存储区域,可以为闪存的一个扇区。只有历史记录信息区中已上报的历史记录信息大于预设最大存储量时,擦除历史记录信息区中存储时间最早的扇区中的已上报的历史记录信息,并只有历史记录信息区中已存储的历史记录信息大于预设最大存储量时,擦除历史记录信息区中存储时间最早的扇区中的历史记录信息,减少了闪存的擦写次数,避免了闪存读写的频繁擦写,延长了智能设备闪存的使用寿命。
基于上述实施例公开的一种历史记录信息的存储方法,请参阅图12,本实施例对应公开了一种历史记录信息的存储装置,具体包括:
写指针获取单元1210,用于当设备操作信息上报服务器失败时,获取历史记录信息区的写指针;历史记录信息存储单元1220,用于将所述设备操作信息以历史记录信息的形式存储在所述写指针对应的存储位置中;
写指针更新单元1230,用于更新所述写指针对应的存储位置。
可选的,所述装置还包括:第一判断单元,用于判断操作信息上报 服务器是否成功,所述操作信息为设备操作信息或有效历史记录信息;若成功,触发读指针获取单元,用于获取所述历史记录信息区的读指针;信息上报单元,用于根据所述读指针的存储位置读取有效历史记录信息,上报所述有效历史记录信息,并触发所述第一判断单元;若失败,触发第二判断单元,用于判断所述操作信息是否为已存储的历史记录信息;若是已存储的历史记录信息,则不执行任何操作;若不是已存储的历史记录信息,则触发所述写指针获取单元。
可选的,所述装置还包括:第三判断单元,用于根据所述写指针的存储位置,判断所述历史记录信息区中已存储的历史记录信息是否大于预设最大存储量;若是,触发第一擦除单元,用于擦除所述历史记录信息区中存储时间最早的扇区中的历史记录信息,并更新所述写指针对应的存储位置;若否,触发所述历史记录信息存储单元。
可选的,所述装置还包括:第四判断单元,用于根据所述历史记录信息区的读指针,判断所述历史记录信息区中已上报的历史记录信息是否大于预设最大存储量;若是,触发第二擦除单元,用于擦除所述历史记录信息区中存储时间最早的扇区中的已上报的历史记录信息,并更新所述读指针对应的存储位置;若否,触发所述信息上报单元。
可选的,所述读指针获取单元包括:获取子单元,用于获取历史记录信息区的当前读指针;判断子单元,用于判断所述当前读指针对应的存储位置是否有异常数据标识;若是,触发第一确定子单元,用于将所述历史记录信息区中当前读指针对应的存储位置的下一存储位置对应的读指针确定为当前读指针,并触发所述判断子单元;若否,触发第二确定子单元,用于将所述当前读指针确定为历史记录信息区的读指针。
本实施例公开的一种历史记录信息的存储装置,当设备操作信息上报服务器失败时,只需根据历史记录信息区的写指针就可以实现将设备操 作信息以历史记录信息的形式进行存储,并在存储后更新写指针对应的存储位置,以便后续历史记录信息的存储,不需要借助文件系统,简化了历史记录信息的存储流程,解决了历史记录存储操作复杂的问题。
所述历史记录信息的存储装置包括处理器和存储器,上述写指针获取单元、历史记录信息存储单元和写指针更新单元等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。
处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来提高历史记录信息存储的效率。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。
本发明实施例提供了一种存储介质,其上存储有程序,该程序被处理器执行时实现所述历史记录信息的存储方法。
本发明实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述历史记录信息的存储方法。
本发明实施例提供了一种设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现以下步骤:当设备操作信息上报服务器失败时,获取历史记录信息区的写指针;将所述设备操作信息以历史记录信息的形式存储在所述写指针对应的存储位置中;更新所述写指针对应的存储位置。
进一步,所述方法还包括:判断操作信息上报服务器是否成功,所述操作信息为设备操作信息或有效历史记录信息;若成功,获取所述历史记录信息区的读指针;根据所述读指针的存储位置读取有效历史记录信息,上报所述有效历史记录信息,并返回执行所述判断操作信息上报服务器是 否成功;若失败,判断所述操作信息是否为已存储的历史记录信息;若是已存储的历史记录信息,则不执行任何操作;若不是已存储的历史记录信息,则执行所述获取历史记录信息区的写指针。
进一步,在所述获取历史记录信息区的写指针之后,所述方法还包括:根据所述写指针的存储位置,判断所述历史记录信息区中已存储的历史记录信息是否大于预设最大存储量;若是,擦除所述历史记录信息区中存储时间最早的扇区中的历史记录信息,并更新所述写指针对应的存储位置;若否,执行所述将所述历史记录信息存储在所述写指针对应的存储位置中。
进一步,在所述获取所述历史记录信息区的读指针之后,所述方法还包括:根据所述历史记录信息区的读指针,判断所述历史记录信息区中已上报的历史记录信息是否大于预设最大存储量;若是,擦除所述历史记录信息区中存储时间最早的扇区中的已上报的历史记录信息,并更新所述读指针对应的存储位置;若否,执行所述根据所述读指针的存储位置读取有效历史记录信息,并上报所述有效历史记录信息。
进一步,所述获取历史记录信息区的读指针,包括:获取历史记录信息区的当前读指针;判断所述当前读指针对应的存储位置是否有异常数据标识;若是,将所述历史记录信息区中当前读指针对应的存储位置的下一存储位置对应的读指针确定为当前读指针,并执行所述判断所述当前读指针对应的存储位置是否有异常数据标识;若否,将所述当前读指针确定为历史记录信息区的读指针。
进一步,所述历史记录信息包括数据状态、数据类型、有效数据长度、数据有效性标识和有效数据。
本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有如下方法步骤的程序:当设备操作信息上报服务器失败 时,获取历史记录信息区的写指针;将所述设备操作信息以历史记录信息的形式存储在所述写指针对应的存储位置中;更新所述写指针对应的存储位置。
进一步,所述方法还包括:判断操作信息上报服务器是否成功,所述操作信息为设备操作信息或有效历史记录信息;若成功,获取所述历史记录信息区的读指针;根据所述读指针的存储位置读取有效历史记录信息,上报所述有效历史记录信息,并返回执行所述判断操作信息上报服务器是否成功;若失败,判断所述操作信息是否为已存储的历史记录信息;若是已存储的历史记录信息,则不执行任何操作;若不是已存储的历史记录信息,则执行所述获取历史记录信息区的写指针。
进一步,在所述获取历史记录信息区的写指针之后,所述方法还包括:根据所述写指针的存储位置,判断所述历史记录信息区中已存储的历史记录信息是否大于预设最大存储量;若是,擦除所述历史记录信息区中存储时间最早的扇区中的历史记录信息,并更新所述写指针对应的存储位置;若否,执行所述将所述历史记录信息存储在所述写指针对应的存储位置中。
进一步,在所述获取所述历史记录信息区的读指针之后,所述方法还包括:根据所述历史记录信息区的读指针,判断所述历史记录信息区中已上报的历史记录信息是否大于预设最大存储量;若是,擦除所述历史记录信息区中存储时间最早的扇区中的已上报的历史记录信息,并更新所述读指针对应的存储位置;若否,执行所述根据所述读指针的存储位置读取有效历史记录信息,并上报所述有效历史记录信息。
进一步,所述获取历史记录信息区的读指针,包括:获取历史记录信息区的当前读指针;判断所述当前读指针对应的存储位置是否有异常数据标识;若是,将所述历史记录信息区中当前读指针对应的存储位置的下 一存储位置对应的读指针确定为当前读指针,并执行所述判断所述当前读指针对应的存储位置是否有异常数据标识;若否,将所述当前读指针确定为历史记录信息区的读指针。
进一步,所述历史记录信息包括数据状态、数据类型、有效数据长度、数据有效性标识和有效数据。
在一些实施例中,智能设备可以包括智能门锁,在智能门锁设备的诸多功能模块中,比较重要的两个模块包括智能门锁的状态管理以及智能门锁的密码管理。智能门锁的状态管理可以根据智能门锁上的第一部件和第二部件的状态确定智能门锁的状态信息,例如门锁的开关状态。智能门锁的密码管理可以通过服务器对门锁密码的发放方式或使用方式进行管理。
本申请实施例的智能门锁状态管理方法,通过智能门锁上的第一部件和第二部件的状态信息确定智能门锁的状态,不需要在门锁上改造安装门磁装置,因此成本低。在一些实施例中,还可以将智能门锁的状态信息结合预设规则来确定安全状态,并及时发送提醒信息到用户终端,排除安全隐患。本申请实施例的智能门锁密码管理方法,当门锁不在线时,服务器可以生成激活码并将激活码发送到用户终端,进而门锁的门锁控制器根据用户的输入操作获取到该激活码,并通过解析该激活码得到离线密码,进而可以在门锁离线时,依旧可以获取到服务器下发的密码。在其他实施例中,上述智能门锁的状态管理方法以及密码管理方法也可以应用于除智能门锁以外的其他智能设备的状态管理和密码管理,如智能保险柜等需要设置使用权限或需要监控使用状态的智能设备。以下将对智能设备的状态管理方法以及密码管理方法结合具体实施例进行详细介绍。
本申请一些实施例提出了一种智能设备的状态提醒方法及装置。智能设备可以通过获取第一部件信息和第二部件信息,确定智能设备的状态信息,当所述智能设备的状态信息符合预设条件时,生成包含所述智能设 备的状态信息的提醒信息。在一些实施例中,智能设备可以根据安全策略直接生成相应的提醒信息,并可以将提醒信息通过网络120上传至服务器110,由服务器110执行后续操作。在一些实施例中,智能设备也可以根据安全策略或预设规则将智能设备的状态信息或提醒信息通过网络120上传至服务器110,服务器110可以根据智能设备上传的状态信息及安全策略生成相应的提醒信息,确定待执行的操作。例如,服务器可以根据预设规则将所述提醒信息发送给与所述智能设备具有关联关系的用户终端140。又例如,服务器110可以通过网络指令控制智能门锁发出警报。在一些实施例中,智能设备还可以直接通过网络120将智能设备的状态信息和/或提醒信息发送给有关联关系的用户终端140。例如,智能设备的状态信息可以直接通过网络共享的方式实时的在用户终端140中显示。
在一些实施例中,智能设备的状态信息或提醒信息上报服务器失败后可以作为历史记录信息保存在智能设备的存储区域中,当智能设备可以向服务器上报时,再将历史记录信息传输至服务器,以执行后续操作。下面将把智能门锁作为智能设备的其中一个实施例来进行详细介绍本申请中智能设备的状态提醒方法及装置。
图13为本发明实施例公开的智能门锁的状态提醒方法流程图,该流程是智能设备控制方法的一个具体应用,即通过智能门锁设备的硬件信息来判断智能门锁的状态。在一些实施例中,还可以将智能门锁的状态信息结合智能门锁所属的房屋相关信息来生成安全提醒信息,并将所述安全提醒信息发送给对应的终端。
本说明书一个或多个实施中的技术方案虽然以智能门锁为例进行说明,但本申请并不局限于智能门锁上的应用,还可以应用在智能门锁以外的智能设备中,包括但不限于智能电器、智能储物柜、共享设备等。本说明书一个或多个实施中的技术方案中,智能门锁或其他智能设备可以应用 于如下场景中:商用住房(如酒店、公寓等)、民用住房(房主自住房、出租住房等)、办公房(如办公室、培训室)、商品房(如商店、商场)等。
在一些实施例中,该方法可以应用于云端服务器,参见图13所示,智能门锁的状态提醒方法可以包括:
步骤1310:获取智能门锁上的第一部件和第二部件的状态信息。其中,所述第一部件的状态信息用于指示门的开关状态,所述第二部件的状态信息用于指示锁的锁定状态。
所述获取智能门锁上的第一部件和第二部件的状态信息,可以是云端服务器主动向所述智能门锁获取第一部件和第二部件的状态信息,也可以是所述智能门锁根据预先设置的规则主动向云端服务器上传所述第一部件和所述第二部件的状态信息。
具体的,所述获取智能门锁上的第一部件和第二部件的状态信息具有不同的实现方式。如,接收智能门锁根据预设频率上传的第一部件和第二部件的状态信息,或向智能门锁发送状态获取请求并接收所述智能门锁根据所述状态获取请求发送的第一部件和第二部件的状态信息。
在其他的实现方式中,所述获取智能门锁上的第一部件和第二部件的状态信息还可以包括:接收智能门锁在其自身状态发生变化时上传的第一部件和第二部件的状态信息。
步骤1320:根据所述第一部件和所述第二部件的状态信息,确定所述智能门锁的状态信息。
在一个示意性的示例中,所述第一部件可以为顶针,所述顶针具有收起和弹出两种状态,所述第二部件可以为斜舌,所述斜舌具有收起和弹出两种状态。则所述根据所述第一部件和所述第二部件的状态信息,确定所述智能门锁的状态信息,可以包括:在所述顶针收起且所述斜舌弹出时, 确定所述智能门锁的状态为门关闭且上锁,或,在所述顶针收起且所述斜舌收起时,确定所述智能门锁的状态为门关闭未上锁,或在所述顶针弹出时,确定所述智能门锁的状态为门打开。
所述顶针在无外力干扰情况下,受弹簧推力,可以是弹出状态,因此当门打开时,所述顶针处于弹出状态,而当门关闭时,所述顶针受门框侧锁具结构阻碍,随着门的关闭会由弹出状态变为收起状态,即门框测锁具结构会将所述顶针压向弹簧侧,使得所述顶针变为收起状态。所述斜舌的收起和弹出可以由住户手动控制。
具体的,判断所述顶针和所述斜舌是否为收起或弹出状态,可以通过在所述智能门锁中设置一个微动开关来检测确定,当然,也可以通过诸如压力传感器、距离传感器等装置来确定所述顶针和所述斜舌的状态信息。
步骤1330:当所述智能门锁的状态信息符合预设条件时,生成包含所述智能门锁的状态信息的提醒信息。
在所述智能门锁的状态信息符合预设条件时,可以生成包含所述智能门锁的状态信息的提醒信息。所述智能门锁的状态信息例如可以是门打开持续时间超时30分钟、超过22:00点门虚掩未上锁、门关闭且上锁持续时间超过48小时等。
步骤1340:根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端。
在一个示例中,所述根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端,可以包括:根据所述智能门锁对应房屋的所属情况,将所述提醒信息发送给与所述智能门锁具有关联关系的终端。其中,所述所属情况用于表征房屋当前处于使用状态或管理状态。具体的,可根据所述智能门锁对应房屋的所属情况标记,来确定所述智能门锁对应房屋的所属情况。例如,所述智能门锁对应房屋为出租房,若该房屋已出 租,标记为使用方,若该房屋未出租,则标记为管理方。例如,若所述智能门锁对应房屋为房主自己居住,则标记为自住方。
本实施例中所述智能终端对应的房屋,可以是酒店房屋、民宿房屋、公寓房屋等。其中一些房屋是用来出租的,针对智能门锁的状态信息异常的情况,可以根据异常类型以及房屋是否出租确定将提醒信息发送给租客(使用方)或是房主(管家/管理方)。例如,在房屋已经出租的情况下,智能门锁晚上11点仍没有上锁,则云服务器会生成提醒信息发送给现在住在该智能门锁房屋内的租客,而不是发送给管家。其中一些房屋是房主自己居住的,针对智能门锁的状态信息异常的情况,可将提醒信息及时地发送给自住房主(自住方)。
图14为本发明实施例公开的智能门锁的状态提醒的结构流程示意图。
结合图14所示,在一个具体实现中,所述智能门锁的状态信息可以包括门打开、门关闭未上锁和门关闭且上锁三种状态,则所述当所述状态信息符合预设规则时,生成包含所述状态信息的提醒信息,可以包括:当所述智能门锁的状态信息为打开且持续时间超过第一预设时长(图14中以30分钟为例)时,生成包含所述状态信息的第一提醒信息,或,当所述智能门锁的状态信息为门关闭未上锁,且当前时间到达预设时间点(图14中以22点为例)时,生成包含所述状态信息的第二提醒信息,或,当所述智能门锁的状态信息为门关闭且上锁,且当前时间距离上一次所述智能门锁打开的时间达到第二预设时长(图14中以48小时为例),生成包含所述状态信息的第三提醒信息。
基于上述内容,所述根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端,可以包括:在生成所述第一提醒信息、所述第二提醒信息或所述第三提醒信息后,进一步确定所述智能门锁对应房屋 的所属情况;若所述智能门锁对应房屋为使用状态,向与所述智能门锁对应房屋的使用方终端发送所述第一提醒信息、所述第二提醒信息或所述第三提醒信息,或,在生成所述第一提醒信息或所述第二提醒信息后,进一步确定所述智能门锁对应房屋的所属情况,若所述智能门锁对应房屋为管理状态,向与所述智能门锁对应房屋的管理方终端发送所述第一提醒信息或所述第二提醒信息。
例如,在房屋出租状态下,如租客长时间未开门,需确定租客是否发生安全问题,这种情况下将提醒信息推送至管家,便于管家对公寓内安全状况进行排查,及时发现问题。此外,房屋出租状态下,若门打开超过30分钟或晚上很晚时间门虚掩未上锁(门关闭未上锁),需要向租客发送提醒信息,提醒及时关门或锁门,避免一些可能的危险和财物丢失。在房屋没有出租时,若门打开超过30分钟或晚上很晚时间门虚掩未上锁(门关闭未上锁),需要向管家发送提醒信息,提醒及时关门或锁门,避免财物丢失。
本实施例中,所述智能门锁的状态提醒方法能够通过智能门锁上的第一部件和第二部件的状态信息确定智能门锁的状态,不需要在门锁上改造安装门磁装置,因此成本低,且能够结合预设规则确定危险状态,及时发送提醒信息到用户终端,排除安全隐患。
在上述本发明公开的实施例的基础上,图15公开了另一种智能门锁的状态提醒方法流程图,如图15所示,智能门锁的状态提醒方法可以包括:
步骤1510:接收智能门锁根据预设频率上传的第一部件和第二部件的状态信息。
其中,所述第一部件的状态信息用于指示门的开关状态,所述第二部件的状态信息用于指示锁的锁定状态。
步骤1520:根据所述第一部件和所述第二部件的状态信息,确定所 述智能门锁的状态信息。
步骤1530:当所述智能门锁的状态信息符合预设条件时,生成包含所述智能门锁的状态信息的提醒信息。
步骤1540:根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端。
步骤1550:接收终端发送的查看智能门锁的状态信息的请求信息,所述请求信息包括请求身份信息。
所述查看智能门锁的状态信息的请求信息可以通过终端上具有相关功能的APP发送。所述终端可以是房屋管家或房主的终端,也可以是租客的终端。
所述请求身份信息可以为租客入住智能门锁对应房屋时登记的个人信息,如姓名、身份证号、手机号等信息。也可以是对智能门锁对应房屋具有管理权和拥有权的管家或房主的姓名、身份证号、手机号等信息。
步骤1560:在所述请求身份信息具备查看权限时,向所述终端返回所述智能门锁的状态信息。
在判断所述请求身份信息为租客或管家对应的信息时,云服务器确定发送所述请求信息的终端为被授权的终端,具有查看与所述请求身份信息对应的智能门锁的状态信息的权限,则云服务器会响应所述请求信息,向发送所述请求信息的所述终端返回智能门锁的状态信息。
本实施例中,所述智能门锁的状态提醒方法允许授权人员随时申请查看智能门锁的状态信息。该方法能够通过智能门锁上的第一部件和第二部件的状态信息确定智能门锁的状态,不需要在门锁上改造安装门磁装置,因此成本低,且能够结合预设规则确定危险状态,及时发送提醒信息到用户终端,排除安全隐患。
对于前述的各方法实施例,为了简单描述,故将其都表述为一系列 的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
图16为本发明实施例公开的一种智能门锁的状态提醒装置的结构示意图,参见图16所示,智能门锁的状态提醒装置1600可以包括:
信息获取模块1610,用于获取智能门锁上的第一部件和第二部件的状态信息。
所述第一部件的状态信息用于指示门的开关状态,所述第二部件的状态信息用于指示锁的锁定状态。
所述获取智能门锁上的第一部件和第二部件的状态信息,可以是云端服务器主动向所述智能门锁获取第一部件和第二部件的状态信息,也可以是所述智能门锁根据预先设置的规则主动向云端服务器上传所述第一部件和所述第二部件的状态信息。
具体的,所述信息获取模块1610可以有不同的实现内容。如,所述信息获取模块1610具体可用于:接收智能门锁根据预设频率上传的第一部件和第二部件的状态信息,或向智能门锁发送状态获取请求并接收所述智能门锁根据所述状态获取请求发送的第一部件和第二部件的状态信息。
在其他的实现方式中,所述信息获取模块1610具体可用于:接收智能门锁在其自身状态发生变化时上传的第一部件和第二部件的状态信息。
状态确定模块1620,用于根据所述第一部件和所述第二部件的状态信息,确定所述智能门锁的状态信息。
在一个示意性的示例中,所述第一部件可以为顶针,所述顶针具有收起和弹出两种状态,所述第二部件可以为斜舌,所述斜舌具有收起和弹出两种状态。则所述状态确定模块1620具体可用于:在所述顶针收起且所 述斜舌弹出时,确定所述智能门锁的状态为门关闭且上锁,或,在所述顶针收起且所述斜舌收起时,确定所述智能门锁的状态为门关闭未上锁,或在所述顶针弹出时,确定所述智能门锁的状态为门打开。
所述顶针在无外力干扰情况下,受弹簧推力,可以是弹出状态,因此当门打开时,所述顶针处于弹出状态,而当门关闭时,所述顶针受门框侧锁具结构阻碍,随着门的关闭会由弹出状态变为收起状态,即门框测锁具结构会将所述顶针压向弹簧侧,使得所述顶针变为收起状态。所述斜舌的收起和弹出可以由住户手动控制。
具体的,判断所述顶针和所述斜舌是否为收起或弹出状态,可以通过在所述智能门锁中设置一个微动开关来检测确定,当然,也可以通过诸如压力传感器、距离传感器等装置来确定所述顶针和所述斜舌的状态信息。
信息生成模块1630,用于在所述智能门锁的状态信息符合预设条件时,生成包含所述状态信息的提醒信息。
在所述智能门锁的状态信息符合预设条件时,可以生成包含所述智能门锁的状态信息的提醒信息。所述智能门锁的状态信息例如可以是门打开持续时间超时30分钟、超过22:00点门虚掩未上锁、门关闭且上锁持续时间超过48小时等。
信息发送模块1640,用于根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端。
在一个示例中,所述信息发送模块1640具体可用于:根据所述智能门锁对应房屋的所属情况,将所述提醒信息发送给与所述智能门锁具有关联关系的终端。其中,所述所属情况用于表征房屋当前处于使用状态或管理状态。具体的,可根据所述智能门锁对应房屋的所属情况标记,来确定所述智能门锁对应房屋的所属情况,假如所述智能门锁对应房屋为出租房,若该房屋已出租,标记为使用方,若该房屋未出租,则标记为管理方。
本实施例中所述智能终端对应的房屋,可以是酒店房屋、民宿房屋、公寓房屋等。其中一些房屋是用来出租的,针对智能门锁的状态信息异常的情况,可以根据异常类型以及房屋是否出租确定将提醒信息发送给租客或是房主(管家)。例如,在房屋已经出租的情况下,智能门锁晚上11点仍没有上锁,则云服务器会生成提醒信息发送给现在住在该智能门锁房屋内的租客,而不是发送给管家。
在一个具体实现中,所述智能门锁的状态信息可以包括门打开、门关闭未上锁和门关闭且上锁三种状态。所述信息生成模块1630具体可用于:当所述智能门锁的状态信息为打开且持续时间超过第一预设时长时,生成包含所述状态信息的第一提醒信息,或,当所述智能门锁的状态信息为门关闭未上锁,且当前时间到达预设时间点时,生成包含所述状态信息的第二提醒信息,或,当所述智能门锁的状态信息为门关闭且上锁,且当前时间距离上一次所述智能门锁打开的时间达到第二预设时长,生成包含所述状态信息的第三提醒信息。
基于上述内容,所述信息发送模块1640具体可用于:在生成所述第一提醒信息、所述第二提醒信息或所述第三提醒信息后,进一步确定所述智能门锁对应房屋的所属情况;若所述智能门锁对应房屋为使用状态,向与所述智能门锁对应房屋的使用方终端发送所述第一提醒信息、所述第二提醒信息或所述第三提醒信息,或,在生成所述第一提醒信息或所述第二提醒信息后,进一步确定所述智能门锁对应房屋的所属情况,若所述智能门锁对应房屋为管理状态,向与所述智能门锁对应房屋的管理方终端发送所述第一提醒信息或所述第二提醒信息。
在上述本发明公开的实施例的基础上,图17公开了另一种智能门锁的状态提醒装置的结构示意图,如图17所示,智能门锁的状态提醒装置1700可以包括:
信息获取模块1610,用于获取智能门锁上的第一部件和第二部件的状态信息。
其中,所述第一部件的状态信息用于指示门的开关状态,所述第二部件的状态信息用于指示锁的锁定状态。
状态确定模块1620,用于根据所述第一部件和所述第二部件的状态信息,确定所述智能门锁的状态信息。
信息生成模块1630,用于在所述智能门锁的状态信息符合预设条件时,生成包含所述状态信息的提醒信息。
信息发送模块1640,用于根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端。
请求接收模块1710,用于接收终端发送的查看智能门锁的状态信息的请求信息,所述请求信息包括请求身份信息。
所述查看智能门锁的状态信息的请求信息可以通过终端上具有相关功能的APP发送。所述终端可以是房屋管家或房主的终端,也可以是租客的终端。
所述请求身份信息可以为租客入住智能门锁对应房屋时登记的个人信息,如姓名、身份证号、手机号等信息。也可以是对智能门锁对应房屋具有管理权和拥有权的管家或房主的姓名、身份证号、手机号等信息。
状态返回模块1720,用于在所述请求身份信息具备查看权限时,向所述终端返回所述智能门锁的状态信息。
在判断所述请求身份信息为租客或管家对应的信息时,云服务器确定发送所述请求信息的终端为被授权的终端,具有查看与所述请求身份信息对应的智能门锁的状态信息的权限,则云服务器会响应所述请求信息,向发送所述请求信息的所述终端返回智能门锁的状态信息。
本实施例中,所述智能门锁的状态提醒装置允许授权人员随时申请 查看智能门锁的状态信息。该方法能够通过智能门锁上的第一部件和第二部件的状态信息确定智能门锁的状态,不需要在门锁上改造安装门磁装置,因此成本低,且能够结合预设规则确定危险状态,及时发送提醒信息到用户终端,排除安全隐患。
上述实施例中的所述的任意一种智能门锁的状态提醒装置包括处理器和存储器,上述实施例中的信息获取模块、状态确定模块、状态提醒模块、请求接收模块、状态返回模块等均作为程序模块存储在存储器中,由处理器执行存储在所述存储器中的上述程序模块来实现相应的功能。
处理器中包含内核,由内核去存储器中调取相应的程序模块。内核可以设置一个或多个,通过调整内核参数来实现回访数据的处理。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。
本发明实施例提供了一种存储介质,其上存储有程序,该程序被处理器执行时实现上述实施例中所述的智能门锁的状态提醒方法。
本发明实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行上述实施例中所述的智能门锁的状态提醒方法。
进一步,本实施例提供了一种电子设备,包括处理器以及存储器。其中存储器用于存储所述处理器的可执行指令,所述处理器配置为经由执行所述可执行指令来执行上述实施例中所述的智能门锁的状态提醒方法。
本申请一些实施例提出了一种智能门锁的控制方法及装置。服务器110可以通过网络120获取智能门锁的通信信息,并确定智能门锁的通信状态信息。所述通信状态信息可以包括智能门锁在线或不在线的信息。当智能门锁在线时,服务器可以生成在线密码并将在线密码发送到智能门锁和用户终端140以及门锁控制器,用户可以通过在线密码对智能门锁进行 解锁。当智能门锁不在线时,服务器可以生成激活码并将激活码发送到用户终端140以及门锁控制器,进而门锁控制器根据用户的输入操作获取到该激活码,并解析得到离线密码,进而可以在门锁离线时,依旧可以获取到服务器下发的密码。
本发明实施例提供了一种门锁的控制方法,应用于服务器,服务器可以是云服务器。参照图18,门锁的控制方法可以包括:
步骤1810,获取门锁的在线状态;其中,在线状态分为在线和离线两种情况,确定门锁的在线状态可以有两种实现方式。
第一种实现方式:门锁每隔第一指定时间会上报在线状态,若接收到门锁上报的在线状态之后的第二指定时间内均未收到门锁上报的在线状态,则认为门锁离线。其中,第二指定时间大于第一指定时间。
若每隔第一指定时间均会收到门锁上报的在线状态,则认为门锁在线。
第二种实现方式:服务器下发门锁状态获取指令到门锁控制器,若第三指定时间内接收到门锁控制器反馈的在线状态,则认为门锁在线;若第三指定时间内未接收到门锁控制器反馈的在线状态,则认为门锁离线。
步骤1820,判断在线状态是否在在线;若为在线,则执行步骤1850生成在线密码以及所述在线密码的使用限制条件信息;若为离线,则执行步骤1830生成激活码。
需要说明的是,当门锁离线时,门锁控制器不能直接和服务器通信,进而服务器不能直接将密码下发到门锁控制器,所以需要执行步骤1820去判断门锁是否在线。
步骤1830,生成激活码;
其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息。
具体的,服务器可以采用随机方式生成离线密码。离线密码的使用限制条件信息可以根据不同的用户进行个性化设定。使用限制条件信息可以是商户自己选择的,商户选择时,可以以文本框输入的方式进行输入。所述商户可以包括出租房屋的管理方。在一些实施例中,房屋为房主自己居住,对应地,所述商户还可以包括房主自住情形中的自住方。
离线密码的使用限制条件信息可以包括:
①密码次数(不限、1次、2次等);
②生效时间段(永久、×年×月×日~×年×月×日);
③生效周期(每天、每周一/二等、每月×日~×日);
④生效时刻(全天、×时~×时);
⑤密码是否被冻结。
其中,所有时间可自定义选择,通过设置上述五个限制条件,可覆盖用户可能用到的所有密码场景。且用户端操作简单便捷,人性化体验好,例如:
针对保洁人员的使用限制条件信息可以是:密码次数选不限、生效时段选2018年4月5日~2019年4月5日或永久、生效周期选每周三、生效时刻选16:00~17:00、密码未被冻结。
针对租客看房或快递员上门的使用限制条件信息可以是:密码次数选1次、生效时段选2018年4月5日~2018年4月5日、生效周期选每天、生效时刻选16:00~17:00、密码未被冻结。
针对管理员的使用限制条件信息可以是:密码次数选不限、生效时段选永久、生效周期选每天、生效时刻选全天、密码未被冻结。
需要说明的是,服务器可以采用与门锁控制器约定的激活码的生成方式生成激活码。如使用特定的数值代表密码次数、生效时间段、生效周期生效时刻以及密码是否被冻结。如可以用1表示密码被冻结,用2表示 密码未被冻结。
步骤1840,将所述激活码发送至用户终端140,以使所述门锁的门锁控制器根据用户的输入操作获取到所述激活码、且解析所述激活码得到所述离线密码以及所述离线密码的使用限制条件信息。
具体的,服务器可以生成激活码并将激活码发送到用户终端,进而使用用户终端的用户或者被该用户授权的用户可以在门锁的密码输入装置中输入激活码,门锁的门锁控制器可以获取到该激活码,并解析得到离线密码以及所述离线密码的使用限制条件信息,进而可以在门锁离线时,依旧可以获取到服务器下发的密码。
步骤1850,生成在线密码以及所述在线密码的使用限制条件信息;
具体的,可以采用随机方式生成在线密码,由于此时门锁在线,所以可以直接下发到门锁控制器以及用户终端140上。
其中,在线密码的使用限制条件信息跟离线密码的使用限制条件信息的生成过程类似,请参照上述相应说明,在此不再赘述。
步骤1860,将所述在线密码以及所述在线密码的使用限制条件信息发送至所述用户终端以及所述门锁控制器。
将所述在线密码以及所述在线密码的使用限制条件信息发送至所述用户终端以及所述门锁控制器后,用户可以根据在线密码的使用限制条件信息来确定自己的开锁时间,进而在合法的开锁时间时去打开门锁。
另外,门锁控制器也可以根据在线密码以及所述在线密码的使用限制条件信息来确定用户输入的密码是否正确,以及是否符合开锁时间。
本实施例中,当门锁不在线时,服务器可以生成激活码并将激活码发送到用户终端,进而门锁的门锁控制器根据用户的输入操作获取到该激活码,并解析得到离线密码以及所述离线密码的使用限制条件信息,进而可以在门锁离线时,依旧可以获取到服务器下发的密码。
可选的,在上述实施例的基础上,步骤1810之前,还可以包括:
1)获取预设用户输入的待申请密码的密码类型;
具体的,服务器会读取商户录入的租客,即用户的身份信息,如手机号、身份证号码等信息。此后,商户会选择密码类型。
2)若所述密码类型为清空码,生成清空码以及所述清空码的使用限制条件信息;
其中,清空码为用于将门锁中保存的所有的在线密码的有效状态、离线密码的有效状态和清空码的有效状态均设置为无效的数值。清空码可以采用随机方式生成。清空码的使用限制条件信息为清空码生效时间段,如可以是永久、指定时间段等。
3)将所述清空码以及所述清空码的使用限制条件信息发送至所述用户终端;
具体的,将清空码发送到用户终端后,当用户想要清空门锁控制器中保存的在线密码、离线密码和清空码时,可以在门锁的密码输入装置中输入该清空码。
4)若所述密码类型为开锁密码,则执行所述获取门锁的在线状态这一步骤。
本实施例中,服务器可以根据商户的设置来生成清空码、离线密码或在线密码,进而可以根据不同场景发放清空码、在线密码及离线密码。
可选的,在上述应用于服务器的门锁的控制方法的实施例的基础上,本发明的另一实施例提供了一种门锁的控制方法,应用于门锁控制器,参照图19,可以包括:
步骤1910,确定门锁的在线状态;
具体的,门锁控制器可以根据是否能够与服务器进行通信来确定门锁的是在线还是离线。
步骤1920,判断在线状态是否为离线;若为离线,则执行步骤1930获取输入的激活码;若为在线,则执行步骤1960接收服务器下发的在线密码以及所述在线密码的使用限制条件信息;
步骤1930,获取输入的激活码;
其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息。
服务器下发激活码到用户终端后,使用该用户终端的用户在门锁的密码输入装置中输入激活码时,门锁控制器就可以获取到该激活码。
步骤1940,解析所述激活码,获取所述激活码中的所述离线密码以及所述离线密码的使用限制条件信息;
由于激活码的生成方式是门锁控制器与服务器约定的,所以门锁控制器可以根据激活码生成方式进行激活码解析,得到所述离线密码以及所述离线密码的使用限制条件信息。
步骤1950,保存所述离线密码以及所述离线密码的使用限制条件信息;
具体的,将离线密码以及所述离线密码的使用限制条件信息保存后,以后当用户输入该离线密码时,就可以根据离线密码的使用限制条件信息来确定是否满足开锁条件,当满足开锁条件时,开锁。
步骤1960,接收服务器下发的在线密码以及所述在线密码的使用限制条件信息;
步骤1970,保存所述在线密码以及所述在线密码的使用限制条件信息。
具体的,当门锁在线时,可以直接接收服务器下发的在线密码以及所述在线密码的使用限制条件信息。
需要说明的是,不管是服务器保存了离线密码以及所述离线密码的 使用限制条件信息,还是在线密码以及所述在线密码的使用限制条件信息,均会生成操作记录,并上传到服务器中保存。
本实施例中,不管门锁是否在线,均可以正常接收到服务器下发的密码,进而使得密码下发的方式更加灵活。
可选的,在上述应用于门锁控制器的门锁的控制方法的实施例的基础上,参阅图20,还包括:
步骤2010,获取输入的密码、输入密码的时间以及所述密码历史被输入的次数;
其中,输入的密码可以从密码输入装置那获取,输入密码的时间可以从时钟模块获取,密码历史被输入的次数可以结合历史输入密码来确定该密码输入的次数。
步骤2020,若所述密码为清空码、且所述时间均满足所述清空码的使用限制条件信息,将所述门锁控制器中保存的所有的在线密码的有效状态、离线密码的有效状态和清空码的有效状态均设置为无效;
其中,清空码和开锁密码的身份标识号ID不同,如,清空码的ID位于1-100之间,开锁密码的ID位于100-200之间。
由于所述清空码的使用限制条件信息限定了生效时间段,所以此处需要判断输入密码的时间是否在生效时间段内,如,生效时间段为20180620-20180820,若输入密码的时间为20180621,则输入密码的时间在生效时间段内,即输入密码的时间满足所述清空码的使用限制条件信息。
若输入密码的时间为20180521,则输入密码的时间不在生效时间段内,输入密码的时间不满足所述清空码的使用限制条件信息。
步骤2030,若所述密码为开锁密码,确定标识信息;其中,所述开锁密码包括在线密码和离线密码;所述标识信息用于表征所述时间以及所述次数是否均满足所述开锁密码的使用限制条件信息;
在线密码和离线密码均属于开锁密码,开锁密码是用于使门锁开锁的密码。
由于所述开锁密码的使用限制条件信息限定了密码次数、生效时间段、生效周期、生效时刻以及密码是否被冻结。所以当输入密码的时间满足生效时间段、生效周期和生效时刻,输入密码的次数满足密码次数、且密码未被冻结时,可以将表征所述时间以及所述次数均满足所述开锁密码的使用限制条件信息的第一标识作为标识信息。
当输入密码的时间不满足生效时间段、生效周期和生效时刻中的任一个,或输入密码的次数不满足密码次数、或密码被冻结时,可以将表征所述时间以及所述次数不满足所述开锁密码的使用限制条件信息的第二标识作为标识信息。
步骤2040,若所述标识信息表征所述时间以及所述次数均满足所述开锁密码的使用限制条件信息,控制门锁开锁。
若所述标识信息表征所述时间以及所述次数均满足所述开锁密码的使用限制条件信息,说明本次开锁合法,此时控制门锁开锁。
另外,开锁后,门锁控制器会将此次开锁记录上传到服务器中保存。其中,开锁记录包括开锁时间、输入的密码等。
本实施例中,门锁控制器可以在用户输入密码时,进行一系列验证,在验证通过后,才会控制门锁开锁,提高安全性。
可选的,与上述应用于服务器的门锁的控制方法相对应,本发明的另一实施例提供了一种门锁的控制装置,应用于服务器,参照图21,可以包括:
状态获取模块2110,用于获取门锁的在线状态;
第一生成模块2120,用于若所述在线状态为离线,生成激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息;
第一发送模块2130,用于将所述激活码发送至用户终端,以使所述门锁的门锁控制器根据用户的输入操作获取到所述激活码、且解析所述激活码得到所述离线密码以及所述离线密码的使用限制条件信息。
进一步,在本实施例的基础上,还可以包括:
第二生成模块,用于若所述在线状态为在线,生成在线密码以及所述在线密码的使用限制条件信息;
第二发送模块,用于将所述在线密码以及所述在线密码的使用限制条件信息发送至所述用户终端以及所述门锁控制器。
本实施例中,当门锁不在线时,服务器可以生成激活码并将激活码发送到用户终端,进而门锁的门锁控制器根据用户的输入操作获取到该激活码,并解析得到离线密码以及所述离线密码的使用限制条件信息,进而可以在门锁离线时,依旧可以获取到服务器下发的密码。
需要说明的是,本实施例中的各个模块的工作过程,请参照上述实施例中的相应说明,在此不再赘述。
可选的,在上述任一应用于服务器的门锁的控制装置的实施例的基础上,还包括:
类型获取模块,用于获取预设用户输入的待申请密码的密码类型;
第三生成模块,用于若所述密码类型为清空码,生成清空码以及所述清空码的使用限制条件信息;
第三发送模块,用于将所述清空码以及所述清空码的使用限制条件信息发送至所述用户终端;
状态获取模块,还用于若所述密码类型为开锁密码,获取门锁的在线状态。
本实施例中,服务器可以根据商户的设置来生成清空码、离线密码或在线密码,进而可以根据不同场景发放清空码、在线密码及离线密码。
需要说明的是,本实施例中的各个模块的工作过程,请参照上述实施例中的相应说明,在此不再赘述。
可选的,与上述应用于门锁控制器的门锁的控制方法相对应,本发明的另一实施例提供了一种门锁的控制装置,应用于门锁控制器,参照图22,可以包括:状态确定模块2210,用于确定门锁的在线状态;
第一获取模块2220,用于若所述在线状态为离线,获取输入的激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息;
解析模块2230,用于解析所述激活码,获取所述激活码中的所述离线密码以及所述离线密码的使用限制条件信息;第一保存模块2240,用于保存所述离线密码以及所述离线密码的使用限制条件信息。
进一步,还可以包括:接收模块,用于接收服务器下发的在线密码以及所述在线密码的使用限制条件信息;第二保存模块,用于保存所述在线密码以及所述在线密码的使用限制条件信息。
本实施例中,不管门锁是否在线,均可以正常接收到服务器下发的密码,进而使得密码下发的方式更加灵活。
需要说明的是,本实施例中的各个模块的工作过程,请参照上述实施例中的相应说明,在此不再赘述。
可选的,在上述任一应用于门锁控制器的门锁的控制装置的实施例的基础上,还包括:第二获取模块,用于获取输入的密码、输入密码的时间以及所述密码历史被输入的次数;状态设置模块,用于若所述密码为清空码、且所述时间满足所述清空码的使用限制条件信息,将所述门锁控制器中保存的所有的在线密码的有效状态、离线密码的有效状态和清空码的有效状态均设置为无效;信息确定模块,用于若所述密码为开锁密码,确定标识信息;其中,所述开锁密码包括在线密码和离线密码;所述标识信 息用于表征所述时间以及所述次数是否均满足所述开锁密码的使用限制条件信息;开锁控制模块,用于若所述标识信息表征所述时间以及所述次数均满足所述开锁密码的使用限制条件信息,控制门锁开锁。
实施例中,门锁控制器可以在用户输入密码时,进行一系列验证,在验证通过后,才会控制门锁开锁,提高安全性。
需要说明的是,本实施例中的各个模块的工作过程,请参照上述实施例中的相应说明,在此不再赘述。
可选的,本发明的实施例还提供了一种应用于服务器的门锁的控制装置,所述应用于服务器的门锁的控制装置包括处理器和存储器,上述状态获取模块、第一生成模块和第一发送模块等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。
处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来在门锁离线时,门锁控制器依旧可以获取到服务器下发的密码。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。
本发明实施例提供了一种存储介质,其上存储有程序,该程序被处理器执行时实现所述应用于服务器的门锁的控制方法。
本发明实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述应用于服务器的门锁的控制方法。
本发明实施例提供了一种设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现以下步骤:
一种门锁的控制方法,应用于服务器,包括:获取门锁的在线状态;若所述在线状态为离线,生成激活码;其中,所述激活码包括离线密码以 及所述离线密码的使用限制条件信息;将所述激活码发送至用户终端,以使所述门锁的门锁控制器根据用户的输入操作获取到所述激活码、且解析所述激活码得到所述离线密码以及所述离线密码的使用限制条件信息。
进一步,若所述在线状态为在线时,还包括:生成在线密码以及所述在线密码的使用限制条件信息;将所述在线密码以及所述在线密码的使用限制条件信息发送至所述用户终端以及所述门锁控制器。
进一步,在所述获取门锁的在线状态的步骤之前,还包括:获取预设用户输入的待申请密码的密码类型;若所述密码类型为清空码,生成清空码以及所述清空码的使用限制条件信息;将所述清空码以及所述清空码的使用限制条件信息发送至所述用户终端;若所述密码类型为开锁密码,则执行所述获取门锁的在线状态这一步骤。
本文中的设备可以是服务器、PC、PAD、手机等。
本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有如下方法步骤的程序:一种门锁的控制方法,应用于服务器,包括:获取门锁的在线状态;若所述在线状态为离线,生成激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息;将所述激活码发送至用户终端,以使所述门锁的门锁控制器根据用户的输入操作获取到所述激活码、且解析所述激活码得到所述离线密码以及所述离线密码的使用限制条件信息。
进一步,若所述在线状态为在线时,还包括:生成在线密码以及所述在线密码的使用限制条件信息;将所述在线密码以及所述在线密码的使用限制条件信息发送至所述用户终端以及所述门锁控制器。
进一步,在所述获取门锁的在线状态的步骤之前,还包括:获取预设用户输入的待申请密码的密码类型;若所述密码类型为清空码,生成清空码以及所述清空码的使用限制条件信息;将所述清空码以及所述清空码 的使用限制条件信息发送至所述用户终端;若所述密码类型为开锁密码,则执行所述获取门锁的在线状态这一步骤。
可选的,本发明的实施例还提供了一种应用于门锁控制器的门锁的控制装置,所述应用于门锁控制器的门锁的控制装置包括处理器和存储器,上述状态确定模块、第一获取模块、解析模块和第一保存模块等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。
处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来在门锁离线时,门锁控制器依旧可以获取到服务器下发的密码。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。
本发明实施例提供了一种存储介质,其上存储有程序,该程序被处理器执行时实现所述应用于门锁控制器的门锁的控制方法。
本发明实施例提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行所述应用于门锁控制器的门锁的控制方法。
本发明实施例提供了一种设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现以下步骤:
一种门锁的控制方法,应用于门锁控制器,包括:确定门锁的在线状态;若所述在线状态为离线,获取输入的激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息;解析所述激活码,获取所述激活码中的所述离线密码以及所述离线密码的使用限制条件信息;保存所述离线密码以及所述离线密码的使用限制条件信息。
进一步,若所述在线状态为在线时,还包括:接收服务器下发的在 线密码以及所述在线密码的使用限制条件信息;保存所述在线密码以及所述在线密码的使用限制条件信息。
进一步,还包括:获取输入的密码、输入密码的时间以及所述密码历史被输入的次数;若所述密码为清空码、且所述时间满足所述清空码的使用限制条件信息,将所述门锁控制器中保存的所有的在线密码的有效状态、离线密码的有效状态和清空码的有效状态均设置为无效;若所述密码为开锁密码,确定标识信息;其中,所述开锁密码包括在线密码和离线密码;所述标识信息用于表征所述时间以及所述次数是否均满足所述开锁密码的使用限制条件信息;若所述标识信息表征所述时间以及所述次数均满足所述开锁密码的使用限制条件信息,控制门锁开锁。
本文中的设备可以是服务器、PC、PAD、手机等。
本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有如下方法步骤的程序:一种门锁的控制方法,应用于门锁控制器,包括:确定门锁的在线状态;若所述在线状态为离线,获取输入的激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息;解析所述激活码,获取所述激活码中的所述离线密码以及所述离线密码的使用限制条件信息;保存所述离线密码以及所述离线密码的使用限制条件信息。
进一步,若所述在线状态为在线时,还包括:接收服务器下发的在线密码以及所述在线密码的使用限制条件信息;保存所述在线密码以及所述在线密码的使用限制条件信息。
进一步,还包括:获取输入的密码、输入密码的时间以及所述密码历史被输入的次数;若所述密码为清空码、且所述时间满足所述清空码的使用限制条件信息,将所述门锁控制器中保存的所有的在线密码的有效状态、离线密码的有效状态和清空码的有效状态均设置为无效;若所述密码 为开锁密码,确定标识信息;其中,所述开锁密码包括在线密码和离线密码;所述标识信息用于表征所述时间以及所述次数是否均满足所述开锁密码的使用限制条件信息;若所述标识信息表征所述时间以及所述次数均满足所述开锁密码的使用限制条件信息,控制门锁开锁。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。而且,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列 要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
以上仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。

Claims (22)

  1. 一种控制系统,包括:
    存储一组指令的存储设备;以及
    与所述存储设备通信的一个或以上处理器,其中,当执行所述组指令时,所述一个或以上处理器被配置为使所述系统:
    获取智能设备的关联信息;所述关联信息至少包括智能设备信息和/或智能设备的通信状态;
    基于预设算法对智能设备的关联信息进行处理,确定智能设备的指示信息;
    至少基于所述指示信息,进行与智能设备相关的指定操作。
  2. 根据权利要求1所述的系统,其特征在于,
    所述智能设备的通信状态至少包括智能设备的数据传输状态;所述一个或以上处理器被配置为使所述系统:
    基于所述数据传输状态,确定是否生成历史记录信息;若所述数据传输状态为失败,则基于传输数据确定历史记录信息;并将所述历史记录信息进行本地存储。
  3. 根据权利要求2所述的系统,其特征在于,所述将所述历史记录信息进行本地存储,所述一个或以上处理器被进一步配置为使所述系统:
    将所述历史记录信息以头部信息和有效信息的形式存储在所述写指针对应的存储位置中;其中,所述头部信息至少反映所述历史记录信息的数据状态、数据类型、有效数据长度;所述有效信息反映所述历史记录信息 的数据内容。
  4. 根据权利要求1所述的系统,其特征在于,所述智能设备的通信状态至少包括智能设备的在线状态;所述一个或以上处理器被进一步配置为使所述系统:
    若所述在线状态为离线,则生成激活码;其中,所述激活码至少包括离线密码。
  5. 根据权利要求4所述的系统,其特征在于,所述激活码还包括所述离线密码的使用限制条件信息。
  6. 根据权利要求4所述的系统,其特征在于,若所述在线状态为在线,则生成在线密码,并将所述在线密码发送至所述用户终端以及所述门锁控制器。
  7. 根据权利要求1所述的系统,其特征在于,所述智能设备还包括智能门锁,所述智能设备信息至少包括与智能门锁相关的两个部件信息,所述一个或以上处理器被进一步配置为使所述系统:
    基于预设算法和两个部件信息确定智能门锁的状态信息。
  8. 根据权利要求7所述的系统,其特征在于,所述一个或以上处理器被配置为使所述系统:基于预设规则和智能门锁的状态信息生成提醒信息, 并发送给终端。
  9. 根据权利要求1所述的系统,其特征在于,所述智能设备信息至少包括与智能设备相关的电量信息,所述一个或以上处理器被进一步配置为使所述系统:
    确定智能设备电量信息的第一采集值;
    确定智能设备电量信息的第二采集值;
    基于预设算法对第一采集值和第二采集值进行处理,获得处理结果;
    基于所述处理结果,确定智能设备的电量上传时间。
  10. 根据权利要求9所述的系统,其特征在于,所述一个或以上处理器被进一步配置为使所述系统:
    基于所述处理结果,执行对智能设备的电量管理操作。
  11. 一种控制方法,包括:
    获取智能设备的关联信息;所述关联信息至少包括智能设备信息和/或智能设备的通信状态;
    基于预设算法对智能设备的关联信息进行处理,确定智能设备的指示信息;
    至少基于所述指示信息,进行与智能设备相关的指定操作。
  12. 一种计算机可读存储介质,其特征在于,所述存储介质存储计算 机指令,当由系统的一个或以上处理器执行所述指令时,使得所述系统:
    获取智能设备的关联信息;所述关联信息至少包括智能设备信息和/或智能设备的通信状态;
    基于预设算法对智能设备的关联信息进行处理,确定智能设备的指示信息;
    至少基于所述指示信息,进行与智能设备相关的指定操作。
  13. 一种历史记录信息的存储方法,其特征在于,包括:
    当设备操作信息上报服务器失败时,获取历史记录信息区的写指针;
    将所述设备操作信息以历史记录信息的形式存储在所述写指针对应的存储位置中;
    更新所述写指针对应的存储位置。
  14. 一种历史记录信息的存储装置,其特征在于,包括:
    写指针获取单元,用于当设备操作信息上报服务器失败时,获取历史记录信息区的写指针;
    历史记录信息存储单元,用于将所述设备操作信息以历史记录信息的形式存储在所述写指针对应的存储位置中;
    写指针更新单元,用于更新所述写指针对应的存储位置。
  15. 一种门锁的控制方法,其特征在于,应用于服务器,包括:
    获取门锁的在线状态;
    若所述在线状态为离线,生成激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息;
    将所述激活码发送至用户终端,以使所述门锁的门锁控制器根据用户的输入操作获取到所述激活码、且解析所述激活码得到所述离线密码以及所述离线密码的使用限制条件信息。
  16. 一种门锁的控制方法,其特征在于,应用于门锁控制器,包括:
    确定门锁的在线状态;
    若所述在线状态为离线,获取输入的激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息;
    解析所述激活码,获取所述激活码中的所述离线密码以及所述离线密码的使用限制条件信息;
    保存所述离线密码以及所述离线密码的使用限制条件信息。
  17. 一种门锁的控制装置,其特征在于,应用于服务器,包括:
    状态获取模块,用于获取门锁的在线状态;
    第一生成模块,用于若所述在线状态为离线,生成激活码;其中,所述激活码包括离线密码以及所述离线密码的使用限制条件信息;
    第一发送模块,用于将所述激活码发送至用户终端,以使所述门锁的门锁控制器根据用户的输入操作获取到所述激活码、且解析所述激活码得到所述离线密码以及所述离线密码的使用限制条件信息。
  18. 一种门锁的控制装置,其特征在于,应用于门锁控制器,包括:
    状态确定模块,用于确定门锁的在线状态;
    第一获取模块,用于若所述在线状态为离线,获取输入的激活码;其中, 所述激活码包括离线密码以及所述离线密码的使用限制条件信息;
    解析模块,用于解析所述激活码,获取所述激活码中的所述离线密码以及所述离线密码的使用限制条件信息;
    第一保存模块,用于保存所述离线密码以及所述离线密码的使用限制条件信息。
  19. 一种智能门锁的状态提醒方法,其特征在于,包括:
    获取智能门锁上的第一部件和第二部件的状态信息,所述第一部件的状态信息用于指示门的开关状态,所述第二部件的状态信息用于指示锁的锁定状态;
    根据所述第一部件和所述第二部件的状态信息,确定所述智能门锁的状态信息;
    当所述智能门锁的状态信息符合预设条件时,生成包含所述智能门锁的状态信息的提醒信息;
    根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端。
  20. 一种智能门锁的状态提醒装置,其特征在于,包括:
    信息获取模块,用于获取智能门锁上的第一部件和第二部件的状态信息,所述第一部件的状态信息用于指示门的开关状态,所述第二部件的状态信息用于指示锁的锁定状态;
    状态确定模块,用于根据所述第一部件和所述第二部件的状态信息,确 定所述智能门锁的状态信息;
    信息生成模块,用于在所述智能门锁的状态信息符合预设条件时,生成包含所述智能门锁的状态信息的提醒信息;
    信息发送模块,用于根据预设规则将所述提醒信息发送给与所述智能门锁具有关联关系的终端。
  21. 一种电量管理方法,其特征在于,包括:
    根据确定的电量预设上报时间对电池供电设备进行电量采集,并确定在所述预设上报时间的第一采集值;
    对所述电池供电设备进行电量采集,确定第二采集值,其中,所述第二采集值的生成时间晚于所述第一采集值的生成时间;
    将所述第一采集值与所述第二采集值进行比较,获得比较结果;
    基于所述比较结果,确定所述电池供电设备的电量上传时间并执行对所述电池供电设备的电量管理。
  22. 一种电量管理装置,其特征在于,包括:
    第一采集单元,用于根据确定的电量预设上报时间对电池供电设备进行电量采集,并确定在所述预设上报时间的第一采集值;
    第二采集单元,用于对所述电池供电设备进行电量采集,确定第二采集值,其中,所述第二采集值的生成时间晚于所述第一采集值的生成时间;
    比较单元,用于将所述第一采集值与所述第二采集值进行比较,获得比较结果;
    确定单元,用于基于所述比较结果,确定所述电池供电设备的电量上传时间并执行对所述电池供电设备的电量管理。
PCT/CN2019/097780 2018-07-25 2019-07-25 一种智能设备的控制方法及系统 WO2020020309A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP19840870.0A EP3828841A4 (en) 2018-07-25 2019-07-25 CONTROL PROCEDURE AND SYSTEM FOR INTELLIGENT DEVICE
US17/157,860 US11423721B2 (en) 2018-07-25 2021-01-25 Methods and systems for controlling an intelligent device
US17/821,468 US20220398885A1 (en) 2018-07-25 2022-08-22 Methods and systems for controlling an intelligent device

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
CN201810824237.XA CN108898725B (zh) 2018-07-25 2018-07-25 一种门锁的控制方法及装置
CN201810824229.5A CN108958665B (zh) 2018-07-25 2018-07-25 一种历史记录信息的存储方法及装置
CN201810824237.X 2018-07-25
CN201810824229.5 2018-07-25
CN201810877034.7 2018-08-03
CN201810877034.7A CN110792320B (zh) 2018-08-03 2018-08-03 一种智能门锁的状态提醒方法及装置
CN201811030152.0 2018-09-05
CN201811030152.0A CN109272728B (zh) 2018-09-05 2018-09-05 一种电量管理方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/157,860 Continuation US11423721B2 (en) 2018-07-25 2021-01-25 Methods and systems for controlling an intelligent device

Publications (1)

Publication Number Publication Date
WO2020020309A1 true WO2020020309A1 (zh) 2020-01-30

Family

ID=69180263

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/097780 WO2020020309A1 (zh) 2018-07-25 2019-07-25 一种智能设备的控制方法及系统

Country Status (3)

Country Link
US (1) US11423721B2 (zh)
EP (1) EP3828841A4 (zh)
WO (1) WO2020020309A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220398885A1 (en) * 2018-07-25 2022-12-15 Yunding Network Technology (Beijing) Co., Ltd. Methods and systems for controlling an intelligent device
WO2020154957A1 (zh) * 2019-01-30 2020-08-06 深圳市汇顶科技股份有限公司 一种智能门锁的故障检测方法、智能门锁及存储介质
US11462062B1 (en) * 2019-07-19 2022-10-04 Alarm.Com Incorporated Power connection for smart lock devices
DE102020213145A1 (de) 2020-10-19 2022-04-21 Festo Se & Co. Kg Gateway, System und Verfahren zum Betreiben eines Gateways
CN113656775A (zh) * 2021-08-19 2021-11-16 广东好太太智能家居有限公司 一种带有效期的离线密码验证方法、系统及智能锁
CN114701452B (zh) * 2022-04-18 2023-08-25 上海银基信息安全技术股份有限公司 一种移动终端低电量提醒方法、系统、终端、车辆及介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714060A (zh) * 2012-09-28 2014-04-09 艾默生网络能源有限公司 中断期历史数据的处理方法及前端采集子系统设备
CN104806085A (zh) * 2015-03-20 2015-07-29 云丁网络技术(北京)有限公司 一种智能门锁系统及其智能提醒方法
CN105150874A (zh) * 2015-10-21 2015-12-16 宁德时代新能源科技有限公司 动力电池管理系统及其供电控制方法
CN105590439A (zh) * 2016-01-07 2016-05-18 苏州市职业大学 一种小容量电池电量无线管理预测装置及控制方法
CN106971438A (zh) * 2017-03-31 2017-07-21 杭州西野科技有限公司 锁体控制方法、装置、服务器及售卖柜
CN108898725A (zh) * 2018-07-25 2018-11-27 云丁智能科技(北京)有限公司 一种门锁的控制方法及装置
CN108958665A (zh) * 2018-07-25 2018-12-07 云丁智能科技(北京)有限公司 一种历史记录信息的存储方法及装置
CN109272728A (zh) * 2018-09-05 2019-01-25 云丁智能科技(北京)有限公司 一种电量管理方法及装置

Family Cites Families (47)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4507166B2 (ja) 2003-11-26 2010-07-21 日本電気株式会社 携帯端末、及びそれによるセキュリティ遠隔制御システム・セキュリティ遠隔制御方法
CN100411357C (zh) 2005-10-31 2008-08-13 华为技术有限公司 网元管理系统采集异常呼叫历史记录的方法
CN101365205B (zh) 2007-08-10 2011-10-26 中兴通讯股份有限公司 一种历史告警信息记录的保存系统及方法
CN101414387B (zh) 2007-10-19 2010-06-02 汉王科技股份有限公司 嵌入式人脸识别门禁考勤机
CN101227689B (zh) 2007-12-27 2011-01-19 华为技术有限公司 信息上报方法及装置
US9329619B1 (en) 2009-04-06 2016-05-03 Dynamics Inc. Cards with power management
US9098865B2 (en) 2011-04-07 2015-08-04 Facebook, Inc. Ultrasonic near-field communication
CN102298119B (zh) 2011-05-24 2015-12-02 惠州Tcl移动通信有限公司 电池电量显示装置及方法
JP2013061932A (ja) 2011-08-23 2013-04-04 Ricoh Co Ltd レポート処理プログラム、情報処理装置、及び情報管理システム
CN103167517A (zh) 2011-12-14 2013-06-19 中国电信股份有限公司 物联网中监测数据恢复方法、系统
CN103364619B (zh) 2012-03-26 2016-02-10 宇龙计算机通信科技(深圳)有限公司 终端设备的电压检测方法及终端设备
CN102864984B (zh) 2012-09-19 2015-04-08 重庆和航科技股份有限公司 智能门锁、开锁系统和开锁方法
CN104375929B (zh) 2013-08-12 2017-12-01 联想(北京)有限公司 一种信息处理方法及电子设备
CN103607302B (zh) 2013-11-19 2017-01-04 华为技术有限公司 故障信息上报方法、监控设备及管理设备
CN103973885B (zh) 2014-04-02 2016-08-17 联想(北京)有限公司 一种上报数据的方法及移动终端
CN104641245B (zh) 2014-05-30 2018-02-02 华为技术有限公司 检测设备电量的方法、设备和系统
CN104090240A (zh) 2014-06-30 2014-10-08 深圳市中兴移动通信有限公司 一种更新电池剩余使用时间的方法、装置和移动终端
DE102014009826A1 (de) 2014-07-02 2016-01-07 Iblue Ag Schließvorrichtung zum Entriegeln und Verriegeln von Zugängen zu zugangsgeschützten Bereichen
CN104157060B (zh) 2014-08-15 2017-04-05 曹敏煊 一种门禁数据的传输和管理方法
TW201623995A (zh) 2014-12-29 2016-07-01 國家中山科學研究院 一種兼具電池預診及充電模式自適調制之系統及方法
GB201502329D0 (en) 2015-02-12 2015-04-01 Trimble Navigation Ltd Geographical positioning in time
CN104790766B (zh) 2015-03-20 2018-06-22 云丁网络技术(北京)有限公司 一种智能门锁系统及其锁状态和开锁合法性识别方法
CN104851164B (zh) 2015-05-05 2020-09-15 古丽 一种具有生物特征识别功能的智能锁及其控制方法
CN105239841B (zh) 2015-09-30 2019-08-09 南京东屋电子科技有限公司 一种锁具状态提醒装置
CN105302751A (zh) 2015-10-15 2016-02-03 珠海格力电器股份有限公司 数据处理方法、装置及电子设备
CN105388990A (zh) 2015-10-19 2016-03-09 北京奇虎科技有限公司 终端设备的省电处理方法及装置
CN105205898B (zh) 2015-10-22 2017-11-03 深圳优方网络技术有限公司 一种智能锁的电子密码权限管理系统
CN105391124B (zh) 2015-11-20 2018-03-16 宇龙计算机通信科技(深圳)有限公司 一种电池设备管理方法、电池设备及系统
CN205743311U (zh) 2015-12-31 2016-11-30 安钥(北京)科技股份有限公司 一种门锁状态检测机构
CN105761340B (zh) 2016-01-29 2018-05-01 北京三快在线科技有限公司 一种门锁的网络控制方法、装置、服务器及pms
CN105735760B (zh) 2016-02-26 2018-10-19 移康智能科技(上海)股份有限公司 一种智能钥匙套、智能钥匙组件及上锁提示方法
CN105738831B (zh) * 2016-04-22 2018-11-27 广东小天才科技有限公司 一种移动终端的电池电量监控方法及装置
CN105933099A (zh) 2016-06-06 2016-09-07 深圳市金立通信设备有限公司 一种传输信道探测参考信号srs的方法、终端及基站
CN106484071A (zh) 2016-09-12 2017-03-08 惠州Tcl移动通信有限公司 一种智能终端的省电方法及系统
CN107820692B (zh) 2016-12-23 2019-01-15 深圳力维智联技术有限公司 一种告警同步方法和系统
CN108415352A (zh) 2017-02-09 2018-08-17 欧姆龙株式会社 数据转换器、信号传递方法以及信号传递系统
CN206921173U (zh) 2017-06-22 2018-01-23 广州市雅天网络科技有限公司 基于蓝牙的离线式智能门禁系统
CN107357673A (zh) 2017-06-28 2017-11-17 深圳市金立通信设备有限公司 一种检测异常耗电的方法、终端以及计算机可读存储介质
CN207409010U (zh) 2017-07-11 2018-05-25 广东能兴科技发展有限公司 加密参数动态更新的临时密码门禁系统
CN108226787A (zh) 2017-08-08 2018-06-29 河南航天液压气动技术有限公司 电池内阻检测方法和检测装置
CN107689097B (zh) 2017-08-29 2018-08-07 重庆壹元电科技有限公司 基于跳频技术的同步密码生成及验证系统及其应用
CN107889203A (zh) 2017-11-27 2018-04-06 珠海市魅族科技有限公司 一种省电方法、装置、计算机装置及计算机可读存储介质
CN108205836B (zh) 2017-12-21 2020-07-07 广东汇泰龙科技有限公司 一种基于云锁的红外人体感应的智能家居联动方法及系统
CN108154587A (zh) * 2017-12-28 2018-06-12 深圳市小快联科技有限公司 一种开关单车锁的方法及系统
CN108222674B (zh) 2018-01-02 2020-06-09 深圳绿米联创科技有限公司 门锁状态的检测方法及装置、门锁
CN108415803A (zh) 2018-01-18 2018-08-17 广东昇辉电子控股有限公司 一种智能锁节能电量监控的方法及系统
US20210247426A1 (en) * 2018-06-15 2021-08-12 Metis Ip (Suzhou) Llc Resource management and control method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714060A (zh) * 2012-09-28 2014-04-09 艾默生网络能源有限公司 中断期历史数据的处理方法及前端采集子系统设备
CN104806085A (zh) * 2015-03-20 2015-07-29 云丁网络技术(北京)有限公司 一种智能门锁系统及其智能提醒方法
CN105150874A (zh) * 2015-10-21 2015-12-16 宁德时代新能源科技有限公司 动力电池管理系统及其供电控制方法
CN105590439A (zh) * 2016-01-07 2016-05-18 苏州市职业大学 一种小容量电池电量无线管理预测装置及控制方法
CN106971438A (zh) * 2017-03-31 2017-07-21 杭州西野科技有限公司 锁体控制方法、装置、服务器及售卖柜
CN108898725A (zh) * 2018-07-25 2018-11-27 云丁智能科技(北京)有限公司 一种门锁的控制方法及装置
CN108958665A (zh) * 2018-07-25 2018-12-07 云丁智能科技(北京)有限公司 一种历史记录信息的存储方法及装置
CN109272728A (zh) * 2018-09-05 2019-01-25 云丁智能科技(北京)有限公司 一种电量管理方法及装置

Also Published As

Publication number Publication date
US20210174619A1 (en) 2021-06-10
EP3828841A1 (en) 2021-06-02
EP3828841A4 (en) 2021-09-08
US11423721B2 (en) 2022-08-23

Similar Documents

Publication Publication Date Title
WO2020020309A1 (zh) 一种智能设备的控制方法及系统
CN104836894B (zh) 基于网络连接中的改变触发动作
CN205670315U (zh) 指纹锁具及指纹锁具系统
US20200228758A1 (en) Smart doorbell system
US20130079931A1 (en) Method and system to monitor and control energy
WO2019238133A1 (zh) 一种资源管理及控制方法和系统
US10621855B2 (en) Online occupancy state estimation
TW201019562A (en) Socket with power management ability
CN103869771A (zh) 一种环境监控系统
CN104407517A (zh) 一种基于物联网技术的智能家居安防方法
CN109272728B (zh) 一种电量管理方法及装置
CN109242728B (zh) 一种检测出租屋异常状态的方法及装置
CN105404158A (zh) 一种家居设备运行大数据分析方法
CN105513234A (zh) 一种新型智能家居防盗系统
CN109188931A (zh) 一种智能家居远程监控系统及其使用方法
US20220398885A1 (en) Methods and systems for controlling an intelligent device
CN105490280A (zh) 一种光纤智能家庭用电管理中心
CN110908325A (zh) 一种高铁站信息机房电源设备运维监控系统
CN202750180U (zh) 专变采集终端
CN110320503A (zh) 一种x波段天气雷达标准输出控制器系统
Mladenova et al. Smart Home Based on IoT-Architecture and Practices
CN104914836A (zh) 一种基于can总线的楼宇自动化系统
CN115311765B (zh) 一种基于NB-IoT的智能门磁控制方法及系统
Islam et al. Prototype Design and Development of a Smart Home
CN218273468U (zh) 一种基于实名制的物联网终端锁

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: 19840870

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019840870

Country of ref document: EP

Effective date: 20210225