WO2016169186A1 - Method and apparatus for controlling electronic lock - Google Patents

Method and apparatus for controlling electronic lock Download PDF

Info

Publication number
WO2016169186A1
WO2016169186A1 PCT/CN2015/089198 CN2015089198W WO2016169186A1 WO 2016169186 A1 WO2016169186 A1 WO 2016169186A1 CN 2015089198 W CN2015089198 W CN 2015089198W WO 2016169186 A1 WO2016169186 A1 WO 2016169186A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic lock
light intensity
ambient light
keyboard
brightness
Prior art date
Application number
PCT/CN2015/089198
Other languages
French (fr)
Chinese (zh)
Inventor
张泽
Original Assignee
张泽
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 张泽 filed Critical 张泽
Publication of WO2016169186A1 publication Critical patent/WO2016169186A1/en

Links

Images

Classifications

    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B47/00Operating or controlling locks or other fastening devices by electric or magnetic means

Definitions

  • the present invention relates to the field of electronic locks, and in particular to a method and apparatus for controlling an electronic lock.
  • the electronic lock After the password is input by the button, regardless of whether the input is correct or not, the electronic lock will also bring additional power consumption when the sound is emitted, which shortens the battery usage time. If the power consumption is too fast, the battery needs to be replaced frequently, resulting in inconvenient use and increased cost.
  • the volume of the sound when the door is opened will affect the rest of the person, and if the customer returns to the hotel during the day and the surrounding environment is noisy, the volume of the prompt sound when opening the door will be too small. The user cannot hear the tone.
  • a method for controlling an electronic lock includes: obtaining an environmental parameter of an environment in which the electronic lock is located, the electronic lock being provided with an accessory component, the accessory component being an energy consuming component; The above environmental parameters adjust the energy consumption of the above-mentioned accessory components.
  • a control apparatus for an electronic lock including: a first acquiring unit, configured to acquire an environmental parameter of an environment in which the electronic lock is located, wherein the electronic lock is provided with an accessory component, and the accessory The component is an energy consuming component; and an adjustment unit is configured to adjust the energy consumption of the accessory component according to the environmental parameter.
  • the electronic lock by adopting the manner of adjusting the energy consumption of the accessory component in the electronic lock at any time, by acquiring the environmental parameters of the environment in which the electronic lock is located, the electronic lock is provided with an accessory component, and the accessory component is an energy-consuming component;
  • the environmental parameter adjusts the energy consumption of the accessory component to achieve the purpose of less battery power consumption, thereby realizing the technical effect of prolonging the use time of the power supply battery of the electronic lock, thereby solving the uncontrollable energy consumption of the accessory component in the electronic lock.
  • the technical problem caused by the shortened use time of the power supply battery of the electronic lock.
  • FIG. 1 is a flow chart of a method of controlling an electronic lock according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a control device for an electronic lock in accordance with an embodiment of the present invention.
  • a method embodiment of a method of controlling an electronic lock is provided, and it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
  • FIG. 1 is a flow chart of a method for controlling an electronic lock according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step S102 Acquire an environmental parameter of an environment where the electronic lock is located, where the electronic lock is provided with an accessory component, and the accessory component is an energy-consuming component;
  • Step S104 adjusting the energy consumption of the accessory component according to the environmental parameter.
  • the environmental parameters may include environmental noise and ambient light intensity of the environment in which the electronic lock is located.
  • the accessory components may include a backlight, a PIN pad, and a keyboard light.
  • the backlight and the keyboard light consume energy due to the illumination, and the cryptographic keyboard consumes energy due to the prompt sound generated when the button is pressed.
  • the user Due to different ambient noises, the user needs to hear the volume of the button prompt tone differently. Therefore, according to the ambient noise, the size of the button prompt tone is adjusted to adjust the battery energy consumption, which can realize the original function of the button prompt sound and save the battery. The amount of electricity that reaches the effect of extending the battery life.
  • the user due to different ambient light intensities, the user needs to see the brightness of the keys on the password keyboard differently. Therefore, according to the ambient light intensity, the brightness of the keyboard light or the background light can be adjusted to adjust the battery energy consumption, and the keyboard can be realized. The original function of the lamp or backlight can save battery power and extend the battery life.
  • the brightness of the electronic lock keyboard light and the volume of the button prompt sound are automatically controlled according to the use scene or the use environment, so that the user of the electronic lock can obtain a better use experience in different use scenarios or use environments, and Reduce power consumption.
  • the step S102 of acquiring the environment parameter of the environment in which the electronic lock is located may include:
  • any one or two methods shown in S2 and S4 may be acquired.
  • the sensor on the electronic lock may include a light sensor and a sound sensor, wherein the former is used to detect the ambient light intensity, and then the former Used to detect environmental noise.
  • the light sensor and the sound sensor are automatically turned on, and the sensor is automatically turned off after acquiring the current ambient noise and ambient light intensity.
  • the difference in indoor ambient light intensity is also very large. If the brightness of the keyboard light is not adjusted according to the indoor ambient light intensity, sometimes the visual effect is not obtained, and sometimes the power is generated. Waste, in order to save power and improve user experience, the keys can be made by the embodiment of the present invention
  • the brightness of the disc light is adaptively adjusted with the ambient light level.
  • the touch screen type PIN pad especially the large size touch screen type PIN pad, since the touch screen type PIN pad itself consumes a large amount of power and its display clarity is sensitive to the ambient light intensity, in this case, the light sensor can be used. More effective adjustment of screen brightness and reduced energy consumption.
  • the micro-power LED backlight touch screen type PIN pad when the keyboard light is off, the entire panel is black, and the symbol on the keyboard cannot be displayed.
  • the PIN pad is activated, the micro power LED on the back of the touch screen lights up, and the character can The light from the LED is revealed, and the rest is still black, and the symbol on the keyboard can be displayed.
  • adding a light sensor may result in higher additional power consumption. In this case, you can choose to obtain the current date, current time, and position of the electronic lock through the network. Environmental parameters.
  • the sunshine angle can be determined according to the current date, the current time, and the latitude and longitude of the electronic lock, and the ambient light intensity can be approximated according to the sunshine angle, and the current date, the current time, and the latitude and longitude information of the electronic lock can also be used.
  • Approximate calculation of sunrise time and sunset time For the night, the sleep time can be set for the electronic lock, and the ambient light intensity is approximately equal to the illumination intensity of the indoor lighting before the start time of the sleep time, and the ambient light intensity is approximately zero after the end time of the sleep time.
  • Different brightness can be set for keyboard lights (such as LED lights) according to different times, so that the brightness of the keyboard lights can be adaptively adjusted according to the ambient light intensity.
  • the environmental parameters can also be obtained according to the foregoing method for adaptive adjustment of the energy consumption situation.
  • the difference is that due to the strong ambient light intensity during the day, the cryptographic keyboard can be seen only by relying on the ambient light.
  • the keyboard light can be turned off, and because the ambient light intensity is weak at night, the ambient light is not enough to see the password keyboard, and the keyboard light can be turned on.
  • the sound sensor can also be used to obtain the real noise intensity (ie, the ambient noise intensity) in the background environment, and according to the noise intensity, a volume at which the user can clearly hear the button prompt sound is preset.
  • the sound sensor can also not use the sound sensor. In this case, you can simply set the volume of the night tone to a smaller value and the daytime tone to a larger value. In terms of locks, it can reduce power consumption, avoid disturbing other customers' rest, and ensure that users can hear the button prompts.
  • the current date and current time can be obtained directly from the electronic lock's own clock. And the location of the pre-stored electronic lock is obtained from the memory of the electronic lock.
  • obtaining the environment parameter of the environment in which the electronic lock is located may include:
  • S12 Calculate the environmental parameter according to the current date, the current time, and the position of the electronic lock.
  • the ID of the electronic lock is equivalent to the identifier of the electronic lock, and the electronic lock is local.
  • the server can identify and distinguish different electronic locks by the ID of the electronic lock.
  • the foregoing embodiment of the present invention may be executed on the server side or on the electronic lock end, and only when it is executed on the server side, the ID of the electronic lock needs to be acquired through the network.
  • the current date and current time can be obtained directly from the electronic lock, or it can be obtained from the server.
  • the electronic lock when the user activates the password keyboard, can automatically send its own ID (ie, identity) and environment parameter acquisition request to the server through the Internet, and the server determines the geographic location of the electronic lock according to the above ID, and obtains the current The date and current time, and then calculate the current ambient light intensity and environmental noise and other environmental parameters based on the current date, current time and geographic location obtained.
  • ID ie, identity
  • environment parameter acquisition request ie, identity
  • the server determines the geographic location of the electronic lock according to the above ID, and obtains the current The date and current time, and then calculate the current ambient light intensity and environmental noise and other environmental parameters based on the current date, current time and geographic location obtained.
  • the calculating the current ambient light intensity according to the obtained current date, the current time, and the geographic location may include: determining a current sunshine angle according to the current date, the current time, and a geographic location (eg, latitude and longitude), and determining the ambient light intensity according to the sunshine angle.
  • sunrise and sunset times can be easily calculated based on geographic location and current date. For the situation after sunset, you can set the time period from sunset to midnight before midnight to sleep time. At this time, the backlight ambient brightness can be determined according to the illumination brightness of the indoor lighting; it can be set from midnight to 12 o'clock. The time period from the back to the sunrise is the customer's sleep time. At this time, the ambient light brightness can be considered to be basically zero; for the time period from sunrise to before sunset, the current date, current time, and latitude and longitude can be calculated. The current sun angle, and then the ring light intensity is calculated according to the sun angle.
  • the ambient light intensity can be divided into a plurality of different levels in advance, the noon corresponds to the strongest level, the night corresponds to the lowest level, the sunrise/sunset corresponds to the second lowest level, and the remaining time corresponds to other levels, so that each level can be made
  • the ambient light intensity corresponds to a different keyboard light brightness.
  • the ambient noise can be divided into a plurality of different levels according to time, the low noise level at night, and the high noise level during the day, wherein the volume of the button sound is set to low at a low noise level, at a high level.
  • the volume of the button beep is set to high.
  • the relevant algorithm may be pre-stored in the electronic lock.
  • the electronic lock In order to ensure the accuracy of the calculation result, the electronic lock is installed during installation. Set the correct date, time and latitude and longitude; further, in order to ensure the accuracy of the calculation result within a certain period of time, the electronic lock can be automatically operated according to the clock in the electronic lock (such as half an hour or one hour), thereby re-running the above algorithm Set the date and time of the electronic lock, and then refresh the brightness of the keyboard light and the volume of the button sound.
  • the accessory component may include: a PIN pad and a keyboard light
  • the environmental parameter may include: ambient noise and ambient light intensity
  • adjusting the energy consumption of the accessory component according to the environmental parameter may include:
  • the server determines the brightness data of the keyboard light and the volume data of the case prompt sound according to the ambient light intensity and the environmental noise
  • the keyboard light brightness data and the prompt sound volume data are sent to the electronic lock through the wireless network, and then the electronic The lock performs S14 and/or S16 described above.
  • S14 and S16 may be performed.
  • the control method may further include:
  • S20 Correct the ambient light intensity according to the acquired weather information to obtain the corrected ambient light intensity, wherein the brightness of the keyboard light is adjusted according to the corrected ambient light intensity.
  • the ambient light intensity of the same geographical location may be different at the same time or during the same time period.
  • the ambient light intensity is corrected according to the weather information, and the brightness of the keyboard light is adjusted according to the corrected result.
  • the ambient light intensity can be corrected by multiplying the ambient light intensity by a predetermined attenuation factor on a rainy day or by multiplying the ambient noise intensity by a boost factor during heavy rain or windy days.
  • the attenuation coefficient of haze weather can be 0.8-0.95, and the attenuation coefficient of rainy weather can be 0.6-0.85.
  • the noise enhancement coefficient of light rain weather can be 1.05, noise of moderate rain weather.
  • the enhancement factor can be 1.1, the noise enhancement coefficient can be 1.2-1.3 from heavy rainstorm, the reinforcement coefficient can be 1.05 when the wind is 2-3, the reinforcement coefficient can be 1.1 when the wind is 4-5, and the wind force is 6-
  • the enhancement factor at level 8 may be 1.2, and the enhancement factor may be 1.3 when the wind is 8 or higher. It should be noted that the preset attenuation coefficient can be determined by actual measured values in different weather conditions.
  • an apparatus embodiment of a control device for an electronic lock is provided.
  • the device of the control device of the electronic lock can be used to operate the control method of the electronic lock in the above embodiment.
  • FIG. 2 is a schematic diagram of a control device for an electronic lock in accordance with an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a first acquisition unit 10 and an adjustment unit 20.
  • the first obtaining unit 10 is configured to acquire environmental parameters of an environment in which the electronic lock is located, the electronic lock is provided with an accessory component, and the accessory component is an energy-consuming component; and the adjusting unit 20 is configured to adjust the energy consumption of the accessory component according to the environmental parameter.
  • the environmental parameters may include environmental noise and ambient light intensity of the environment in which the electronic lock is located.
  • the accessory components may include a backlight, a PIN pad, and a keyboard light.
  • the backlight and the keyboard light consume energy due to the illumination, and the cryptographic keyboard consumes energy due to the prompt sound generated when the button is pressed.
  • the user Due to different ambient noises, the user needs to hear the volume of the button prompt tone differently. Therefore, according to the ambient noise, the size of the button prompt tone is adjusted to adjust the battery energy consumption, which can realize the original function of the button prompt sound and save the battery. The amount of electricity that reaches the effect of extending the battery life.
  • the user due to different ambient light intensities, the user needs to see the brightness of the keys on the password keyboard differently. Therefore, according to the ambient light intensity, the brightness of the keyboard light or the background light can be adjusted to adjust the battery energy consumption, and the keyboard can be realized. The original function of the lamp or backlight can save battery power and extend the battery life.
  • the brightness of the electronic lock keyboard light and the volume of the button prompt sound are automatically controlled according to the use scene or the use environment, so that the user of the electronic lock can obtain a better use experience in different use scenarios or use environments, and Reduce power consumption.
  • the first obtaining unit may include: a first acquiring module and/or a second acquiring module.
  • the first obtaining module is configured to obtain an environment parameter by using a sensor disposed on the electronic lock; and the second obtaining module is configured to calculate an environment parameter by acquiring a current date, a current time, and a position of the electronic lock through the network.
  • any one or two methods shown by the functions of the first acquiring module and the second acquiring module may be acquired.
  • the electronic lock sensor may include a light sensor and a sound sensor, wherein the former is used to detect ambient light. Intensity, the latter is used to detect ambient noise.
  • the light sensor and the sound sensor are automatically turned on, and the sensor is automatically turned off after acquiring the current ambient noise and ambient light intensity.
  • the difference in indoor ambient light intensity is also very large. If the brightness of the keyboard light is not adjusted according to the indoor ambient light intensity, sometimes the visual effect is not obtained, and sometimes the power is generated. Waste, in order to save power and improve the user experience, the brightness of the keyboard light can be adaptively adjusted according to the ambient light brightness by the embodiment of the invention.
  • the touch screen type PIN pad especially the large size touch screen type PIN pad, since the touch screen type PIN pad itself consumes a large amount of power and its display clarity is sensitive to the ambient light intensity, in this case, the light sensor can be used. More effective adjustment of screen brightness and reduced energy consumption.
  • the micro-power LED backlight touch screen type PIN pad when the keyboard light is off, the entire panel is black, and the symbol on the keyboard cannot be displayed.
  • the PIN pad is activated, the micro power LED on the back of the touch screen lights up, and the character can The light from the LED is revealed, and the rest is still black, and the symbol on the keyboard can be displayed.
  • adding a light sensor may result in higher additional power consumption. In this case, you can choose to obtain the current date, current time, and position of the electronic lock through the network. Environmental parameters.
  • the sunshine angle can be determined according to the current date, the current time, and the latitude and longitude of the electronic lock, and the ambient light intensity can be approximated according to the sunshine angle, and the current date, the current time, and the latitude and longitude information of the electronic lock can also be used.
  • Approximate calculation of sunrise time and sunset time For the night, the sleep time can be set for the electronic lock, and the ambient light intensity is approximately equal to the illumination intensity of the indoor lighting before the start time of the sleep time, and the ambient light intensity is approximately zero after the end time of the sleep time.
  • Different brightness can be set for keyboard lights (such as LED lights) according to different times, so that the brightness of the keyboard lights can be adaptively adjusted according to the ambient light intensity.
  • the environmental parameters can also be obtained according to the foregoing method for adaptive adjustment of the energy consumption situation.
  • the difference is that due to the strong ambient light intensity during the day, the cryptographic keyboard can be seen only by relying on the ambient light.
  • the keyboard light can be turned off, and because the ambient light intensity is weak at night, the ambient light is not enough to see the password keyboard, and the keyboard light can be turned on.
  • the sound sensor can also be used to obtain the real noise intensity (ie, the ambient noise intensity) in the background environment, and according to the noise intensity, a volume at which the user can clearly hear the button prompt sound is preset.
  • the sound sensor can also not use the sound sensor. In this case, you can simply set the volume of the night tone to a smaller value and the daytime tone to a larger value. In terms of locks, it can reduce power consumption, avoid disturbing other customers' rest, and ensure that users can hear the button prompts.
  • the current date and current time can be directly obtained from the electronic clock of the electronic lock and the position of the pre-stored electronic lock can be obtained from the memory of the electronic lock.
  • the second obtaining module when the environment parameter is calculated by acquiring the current date, the current time, and the location of the electronic lock through the network, includes: a first acquiring submodule, configured to acquire the current date and the current time through the network; a second obtaining submodule for acquiring an ID of the electronic lock through the network; a location query submodule for determining a location of the electronic lock according to an ID of the electronic lock; and a calculating submodule for using the current date, the current time, and the electronic lock Location calculation environment parameters.
  • the electronic lock when the user activates the password keyboard, can automatically send its own ID (ie, identity) and environment parameter acquisition request to the server through the Internet, and the server determines the geographic location of the electronic lock according to the above ID, and obtains the current The date and current time, and then calculate the current ambient light intensity and environmental noise and other environmental parameters based on the current date, current time and geographic location obtained.
  • ID ie, identity
  • environment parameter acquisition request ie, identity
  • the server determines the geographic location of the electronic lock according to the above ID, and obtains the current The date and current time, and then calculate the current ambient light intensity and environmental noise and other environmental parameters based on the current date, current time and geographic location obtained.
  • the calculating the current ambient light intensity according to the obtained current date, the current time, and the geographic location may include: determining a current sunshine angle according to the current date, the current time, and a geographic location (eg, latitude and longitude), and determining the ambient light intensity according to the sunshine angle.
  • sunrise and sunset times can be easily calculated based on geographic location and current date. For the situation after sunset, you can set the time period from sunset to midnight before midnight to sleep time. At this time, the backlight ambient brightness can be determined according to the illumination brightness of the indoor lighting; it can be set from midnight to 12 o'clock. The time period from the back to the sunrise is the customer's sleep time. At this time, the ambient light brightness can be considered to be basically zero; for the time period from sunrise to before sunset, the current date, current time, and latitude and longitude can be calculated. The current sun angle, and then the ring light intensity is calculated according to the sun angle.
  • the ambient light intensity can be divided into a plurality of different levels in advance, and the noon corresponds to the strongest level, and the night is At the lowest level, the sunrise/sunset corresponds to the next lowest level, and the rest of the time corresponds to other levels, so that the ambient light intensity of each level can be made to correspond to a different keyboard light brightness.
  • the ambient noise can be divided into a plurality of different levels according to time, the low noise level at night, and the high noise level during the day, wherein the volume of the button sound is set to low at a low noise level, at a high level.
  • the volume of the button beep is set to high.
  • the relevant algorithm may be pre-stored in the electronic lock.
  • the electronic lock In order to ensure the accuracy of the calculation result, the electronic lock is installed during installation. Set the correct date, time and latitude and longitude; further, in order to ensure the accuracy of the calculation result within a certain period of time, the electronic lock can be automatically operated according to the clock in the electronic lock (such as half an hour or one hour), thereby re-running the above algorithm Set the date and time of the electronic lock, and then refresh the brightness of the keyboard light and the volume of the button sound.
  • the accessory component includes: a PIN pad and a keyboard light
  • the environmental parameters include: ambient noise and ambient light intensity
  • the adjusting unit may include: a first adjusting unit and/or a second adjusting unit.
  • the first adjusting unit is configured to adjust a volume of the key prompt sound of the cryptographic keyboard according to the ambient noise; and a second adjusting unit configured to adjust the brightness of the keyboard light according to the ambient light intensity.
  • the above control device may further include: a second adjusting unit and a correcting unit.
  • a second adjusting unit configured to: when adjusting the brightness of the keyboard light according to the ambient light intensity, obtain the weather information according to the current date, the current time, and the position of the electronic lock before adjusting the brightness of the keyboard light according to the ambient light intensity; and the correcting unit, For correcting the ambient light intensity according to the acquired weather information, the corrected ambient light intensity is obtained, wherein the second adjusting unit is further configured to adjust the brightness of the keyboard light according to the corrected ambient light intensity.
  • the ambient light intensity of the same geographical location may be different at the same time or during the same time period.
  • the ambient light intensity is corrected according to the weather information, and the brightness of the keyboard light is adjusted according to the corrected result.
  • the ambient light intensity can be corrected in the following ways: In rainy days, the ambient light intensity is multiplied by a predetermined attenuation factor; in heavy rain or windy days, the ambient noise intensity is multiplied by a boost factor.
  • the attenuation coefficient of haze weather may be 0.8-0.95, and the attenuation coefficient of rainy weather may be 0.6-0.85; similarly, the noise enhancement coefficient of rainy weather may be 1.05, and the noise enhancement coefficient of rainy weather may be 1.1, large
  • the noise enhancement coefficient to rainstorm weather can be 1.2-1.3, the enhancement coefficient can be 1.05 when the wind is 2-3, the reinforcement coefficient can be 1.1 when the wind is 4-5, and the reinforcement coefficient can be when the wind is 6-8. 1.2, when the wind is above 8 or higher, the enhancement factor can be 1.3.
  • the preset attenuation coefficient can be determined by actual measured values in different weather conditions.
  • the present invention can be applied to an electronic lock in a hotel, in particular, using a password to open a door or an electronic lock with a display keyboard.
  • the disclosed technical contents may be implemented in other manners.
  • the device embodiments described above are only schematic.
  • the division of the unit may be a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a read only memory (ROM, Read-Only) Memory, random access memory (RAM), removable hard disk, disk or optical disk, and other media that can store program code.

Landscapes

  • Telephone Function (AREA)
  • Lock And Its Accessories (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A method for controlling an electronic lock, comprising: acquiring an environmental parameter of an environment where an electronic lock is located, an accessory part being disposed on the electronic lock and the accessory part referring to an energy consumption part; and adjusting, according to the environmental parameter, an energy consumption situation of the accessory part. Also provided is an apparatus for controlling an electronic lock.

Description

电子锁的控制方法和装置Electronic lock control method and device 技术领域Technical field
本发明涉及电子锁领域,具体而言,涉及一种电子锁的控制方法和装置。The present invention relates to the field of electronic locks, and in particular to a method and apparatus for controlling an electronic lock.
背景技术Background technique
现有的电子锁,如智能锁和电子密码锁一般使用电池供电,电子锁上用于输入密码的密码键盘一般采用机械式键盘或者电容触摸屏式键盘,为了在黑暗环境下也能看清键盘上的按键数字,需要使用键盘灯或背光灯等,这将带来额外的电量消耗,缩短电池的使用时长。另外,为了使用户在按键时确定已经输入信息,一般在按键时伴随有提示音,特别是对于采用电容式触摸屏键盘这种不像传统机械式键盘一样可以凭借键盘反馈的力来感受按键状况的电子锁。而通过按键输入密码后,不管输入正确与否,电子锁在发出提示音时同样会带来额外电量消耗,缩短电池使用时长。而如果电量消耗过快,则需要经常更换电池,导致使用不便且成本增加。Existing electronic locks, such as smart locks and electronic code locks, are generally powered by batteries. The electronic keyboard uses a mechanical keyboard or a capacitive touch screen keyboard for entering a password. In order to see the keyboard in a dark environment. The number of buttons needs to use keyboard lights or backlights, which will bring extra power consumption and shorten the battery life. In addition, in order to make the user confirm that the information has been input when the button is pressed, the button sound is generally accompanied by the prompt sound, especially for the capacitive touch screen keyboard, unlike the traditional mechanical keyboard, the pressure of the keyboard can be used to feel the state of the button. Electronic locks. After the password is input by the button, regardless of whether the input is correct or not, the electronic lock will also bring additional power consumption when the sound is emitted, which shortens the battery usage time. If the power consumption is too fast, the battery needs to be replaced frequently, resulting in inconvenient use and increased cost.
尤其在酒店门锁中,如果客户深夜回酒店,则开门时的提示音音量过大会影响他人休息,而如果客户白天回酒店,且周围环境嘈杂时,则开门时的提示音音量过小会导致用户无法听清提示音。Especially in the hotel door lock, if the customer returns to the hotel late at night, the volume of the sound when the door is opened will affect the rest of the person, and if the customer returns to the hotel during the day and the surrounding environment is noisy, the volume of the prompt sound when opening the door will be too small. The user cannot hear the tone.
针对上述的问题,目前尚未提出有效的解决方案。In response to the above problems, no effective solution has been proposed yet.
发明内容Summary of the invention
本发明实施例提供了一种电子锁的控制方法和装置,以至少解决由于电子锁中的附属部件耗能不可控而造成的电子锁的供电电池使用时长缩短的技术问题。Embodiments of the present invention provide a method and apparatus for controlling an electronic lock to at least solve the technical problem that the length of use of the power supply battery of the electronic lock is shortened due to uncontrollable energy consumption of the accessory components in the electronic lock.
根据本发明实施例的一个方面,提供了一种电子锁的控制方法,包括:获取电子锁所处环境的环境参数,上述电子锁上设置有附属部件,上述附属部件为耗能部件;以及根据上述环境参数调节上述附属部件的耗能情况。According to an aspect of an embodiment of the present invention, a method for controlling an electronic lock includes: obtaining an environmental parameter of an environment in which the electronic lock is located, the electronic lock being provided with an accessory component, the accessory component being an energy consuming component; The above environmental parameters adjust the energy consumption of the above-mentioned accessory components.
根据本发明实施例的另一个方面,提供了一种电子锁的控制装置,包括:第一获取单元,用于获取电子锁所处环境的环境参数,上述电子锁上设置有附属部件,上述附属部件为耗能部件;以及调节单元,用于根据上述环境参数调节上述附属部件的耗能情况。 According to another aspect of the embodiments of the present invention, a control apparatus for an electronic lock is provided, including: a first acquiring unit, configured to acquire an environmental parameter of an environment in which the electronic lock is located, wherein the electronic lock is provided with an accessory component, and the accessory The component is an energy consuming component; and an adjustment unit is configured to adjust the energy consumption of the accessory component according to the environmental parameter.
在本发明实施例中,采用随时调节电子锁中附属部件的耗能情况的方式,通过获取电子锁所处环境的环境参数,电子锁上设置有附属部件,附属部件为耗能部件;以及根据环境参数调节附属部件的耗能情况,达到了较少电池电量消耗的目的,从而实现了延长电子锁的供电电池的使用时长的技术效果,进而解决了由于电子锁中的附属部件耗能不可控而造成的电子锁的供电电池使用时长缩短的技术问题。In the embodiment of the present invention, by adopting the manner of adjusting the energy consumption of the accessory component in the electronic lock at any time, by acquiring the environmental parameters of the environment in which the electronic lock is located, the electronic lock is provided with an accessory component, and the accessory component is an energy-consuming component; The environmental parameter adjusts the energy consumption of the accessory component to achieve the purpose of less battery power consumption, thereby realizing the technical effect of prolonging the use time of the power supply battery of the electronic lock, thereby solving the uncontrollable energy consumption of the accessory component in the electronic lock. The technical problem caused by the shortened use time of the power supply battery of the electronic lock.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的一种电子锁的控制方法的流程图;以及1 is a flow chart of a method of controlling an electronic lock according to an embodiment of the present invention;
图2是根据本发明实施例的一种电子锁的控制装置的示意图。2 is a schematic diagram of a control device for an electronic lock in accordance with an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、***、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It is to be understood that the data so used may be interchanged where appropriate, so that the embodiments of the invention described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
根据本发明实施例,提供了一种电子锁的控制方法的方法实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机***中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。In accordance with an embodiment of the present invention, a method embodiment of a method of controlling an electronic lock is provided, and it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图1是根据本发明实施例的一种电子锁的控制方法的流程图,如图1所示,该方法包括如下步骤: 1 is a flow chart of a method for controlling an electronic lock according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps:
步骤S102,获取电子锁所处环境的环境参数,电子锁上设置有附属部件,附属部件为耗能部件;以及Step S102: Acquire an environmental parameter of an environment where the electronic lock is located, where the electronic lock is provided with an accessory component, and the accessory component is an energy-consuming component;
步骤S104,根据环境参数调节附属部件的耗能情况。Step S104, adjusting the energy consumption of the accessory component according to the environmental parameter.
其中,环境参数可以包括电子锁所处环境的环境噪声和环境光强度等。附属部件可以包括背景灯、密码键盘和键盘灯等,背景灯和键盘灯由于发光而消耗能量,密码键盘由于按键时产生提示音而消耗能量。The environmental parameters may include environmental noise and ambient light intensity of the environment in which the electronic lock is located. The accessory components may include a backlight, a PIN pad, and a keyboard light. The backlight and the keyboard light consume energy due to the illumination, and the cryptographic keyboard consumes energy due to the prompt sound generated when the button is pressed.
需要说明的是,前述步骤的执行主体可以是电子锁本身,也可以是服务器。It should be noted that the execution body of the foregoing steps may be the electronic lock itself or a server.
由于不同的环境噪声中,用户听清按键提示音所需的音量不同,因此,根据环境噪声调节按键提示音的大小以调节电池能耗,既能实现按键提示音原本的功能,又能节约电池的电量,达到延长电池的使用时长的效果。同理,由于不同的环境光强度下,用户看清密码键盘上的按键所需的亮度不同,因此,根据环境光强度调节键盘灯或背景灯的亮度大小以调节电池能耗,既能实现键盘灯或背景灯原本的功能,又能节约电池的电量,达到延长电池的使用时长的效果。Due to different ambient noises, the user needs to hear the volume of the button prompt tone differently. Therefore, according to the ambient noise, the size of the button prompt tone is adjusted to adjust the battery energy consumption, which can realize the original function of the button prompt sound and save the battery. The amount of electricity that reaches the effect of extending the battery life. Similarly, due to different ambient light intensities, the user needs to see the brightness of the keys on the password keyboard differently. Therefore, according to the ambient light intensity, the brightness of the keyboard light or the background light can be adjusted to adjust the battery energy consumption, and the keyboard can be realized. The original function of the lamp or backlight can save battery power and extend the battery life.
通过上述步骤,根据使用场景或使用环境的不同自动控制电子锁键盘灯的亮度和按键提示音的音量,可以使电子锁的用户在不同使用场景或使用环境中均获得较好的使用体验,并降低电量消耗。Through the above steps, the brightness of the electronic lock keyboard light and the volume of the button prompt sound are automatically controlled according to the use scene or the use environment, so that the user of the electronic lock can obtain a better use experience in different use scenarios or use environments, and Reduce power consumption.
作为优选的实施例,步骤S102获取电子锁所处环境的环境参数可以包括:As a preferred embodiment, the step S102 of acquiring the environment parameter of the environment in which the electronic lock is located may include:
S2,通过设置在电子锁上的传感器获取环境参数;和/或S2, obtaining environmental parameters by a sensor disposed on the electronic lock; and/or
S4,通过获取当前日期、当前时间和电子锁的位置来计算环境参数。S4, calculating the environmental parameters by acquiring the current date, the current time, and the position of the electronic lock.
即,在本发明实施例中,在获取电子锁所处环境的环境参数时,可以通过S2和S4所示出任意一种或者两种方法来获取。That is, in the embodiment of the present invention, when the environmental parameters of the environment in which the electronic lock is located are acquired, any one or two methods shown in S2 and S4 may be acquired.
对于S2,由于环境参数可以包括电子锁所处环境的环境噪声和环境光强度,因此,相应的,电子锁上的传感器可以包括光线传感器和声音传感器,其中,前者用于检测环境光强度,后者用于检测环境噪声。在实施时,当用户激活密码键盘后,自动打开光线传感器和声音传感器,并且在获取当前的环境噪声和环境光强度后,自动关闭上述传感器。For S2, since the environmental parameter may include the ambient noise and the ambient light intensity of the environment in which the electronic lock is located, correspondingly, the sensor on the electronic lock may include a light sensor and a sound sensor, wherein the former is used to detect the ambient light intensity, and then the former Used to detect environmental noise. In implementation, when the user activates the PIN pad, the light sensor and the sound sensor are automatically turned on, and the sensor is automatically turned off after acquiring the current ambient noise and ambient light intensity.
虽然电子锁在室内使用,但是由于不同时间室内环境光强度的差别也很大,如果不根据室内环境光强度调节键盘灯的亮度,有些时候无法获得较好的视觉效果,有些时候会造成电量的浪费,为了节约电量和提高用户体验,通过本发明实施例可以使键 盘灯的亮度随着环境光亮度进行自适应调节。Although the electronic lock is used indoors, the difference in indoor ambient light intensity is also very large. If the brightness of the keyboard light is not adjusted according to the indoor ambient light intensity, sometimes the visual effect is not obtained, and sometimes the power is generated. Waste, in order to save power and improve user experience, the keys can be made by the embodiment of the present invention The brightness of the disc light is adaptively adjusted with the ambient light level.
需要说明的是,通过在电子锁中设置传感器的方式获取环境参数时,由于需要在电子锁中增设的传感器,并且传感器本身工作时也需要消耗电池电量,因此,这种方式在一定程度上反而增加了电量的消耗,同时,增设传感器会增加电路复杂度。因此,对于键盘灯本身耗电量小、点亮时间短的情况,增设传感器可能得不偿失。It should be noted that when the environment parameter is obtained by setting the sensor in the electronic lock, the sensor needs to be added in the electronic lock, and the battery itself needs to consume the battery power when working, so this method is to some extent instead Increased power consumption, while adding sensors increases circuit complexity. Therefore, for the case where the keyboard lamp itself consumes a small amount of power and the lighting time is short, the addition of the sensor may not be worth the loss.
但是,对于触摸屏式密码键盘,特别是大尺寸的触摸屏式密码键盘,由于触摸屏式密码键盘本身耗电量较大,且其显示清晰程度对环境光强度敏感,这种情况下,使用光线传感器能够更有效的调节屏幕亮度,降低能耗。However, for the touch screen type PIN pad, especially the large size touch screen type PIN pad, since the touch screen type PIN pad itself consumes a large amount of power and its display clarity is sensitive to the ambient light intensity, in this case, the light sensor can be used. More effective adjustment of screen brightness and reduced energy consumption.
另外,对于微功耗LED背光触摸屏式密码键盘,键盘灯不亮时,整个面板为黑色,无法显示键盘上的符号,而密码键盘激活后,触摸屏背面的微功耗LED点亮,字符处能透出LED发出的光线,其他部分仍然为黑色,这时可以显示键盘上的符号。使用这种密码键盘,由于键盘灯本身功耗较小,因此增设光线传感器可能会带来更高的额外功耗,此时,可以选择通过网络获取当前日期、当前时间和电子锁的位置来计算环境参数。例如,可以根据当前日期、当前时间和电子锁所处的经纬度来确定日照角度,进而根据日照角度可以近似计算出环境光强度,而且根据当前日期、当前时间和电子锁所处的经纬度信息也可以近似计算出日出时间和日落时间。对于夜晚,可以为电子锁设定睡眠时间,并认为睡眠时间的起始时刻之前,环境光强度近似等于室内照明灯的光照强度,而睡眠时间的结束时刻之后,环境光强度近似为零,这样可以根据不同的时间为键盘灯(如LED灯)设定不同的亮度,从而实现键盘灯亮度根据环境光强度进行自适应调节的目的。In addition, for the micro-power LED backlight touch screen type PIN pad, when the keyboard light is off, the entire panel is black, and the symbol on the keyboard cannot be displayed. When the PIN pad is activated, the micro power LED on the back of the touch screen lights up, and the character can The light from the LED is revealed, and the rest is still black, and the symbol on the keyboard can be displayed. With this PIN pad, since the keyboard lamp itself consumes less power, adding a light sensor may result in higher additional power consumption. In this case, you can choose to obtain the current date, current time, and position of the electronic lock through the network. Environmental parameters. For example, the sunshine angle can be determined according to the current date, the current time, and the latitude and longitude of the electronic lock, and the ambient light intensity can be approximated according to the sunshine angle, and the current date, the current time, and the latitude and longitude information of the electronic lock can also be used. Approximate calculation of sunrise time and sunset time. For the night, the sleep time can be set for the electronic lock, and the ambient light intensity is approximately equal to the illumination intensity of the indoor lighting before the start time of the sleep time, and the ambient light intensity is approximately zero after the end time of the sleep time. Different brightness can be set for keyboard lights (such as LED lights) according to different times, so that the brightness of the keyboard lights can be adaptively adjusted according to the ambient light intensity.
而对于传统的机械式密码键盘,同样可以根据前述方法获取环境参数以进行耗能情况自适应调节,不同的是,由于白天环境光强度强,仅仅依靠环境光就可以看清密码键盘,此时可以使键盘灯处于关闭状态,而由于夜晚环境光强度弱,仅仅依靠环境光不足以看清密码键盘,此时可以使键盘灯处于打开状态。For the traditional mechanical PIN pad, the environmental parameters can also be obtained according to the foregoing method for adaptive adjustment of the energy consumption situation. The difference is that due to the strong ambient light intensity during the day, the cryptographic keyboard can be seen only by relying on the ambient light. The keyboard light can be turned off, and because the ambient light intensity is weak at night, the ambient light is not enough to see the password keyboard, and the keyboard light can be turned on.
对于按键提示音的调节,同样可以使用声音传感器获取背景环境中的真实噪声强度(即环境噪声强度),根据该噪声强度,预先设定一个用户能够清晰听到按键提示音的音量。当然,也可以不使用声音传感器,此时可以简单地将夜间提示音的音量设定为一个较小的值,而将白天提示音的音量设定为一个较大的值,这样,对于酒店门锁而言,既可以减少电量消耗,又可以避免打扰其他客户休息,并且还可以确保用户能够听到按键提示音。For the adjustment of the button prompt sound, the sound sensor can also be used to obtain the real noise intensity (ie, the ambient noise intensity) in the background environment, and according to the noise intensity, a volume at which the user can clearly hear the button prompt sound is preset. Of course, you can also not use the sound sensor. In this case, you can simply set the volume of the night tone to a smaller value and the daytime tone to a larger value. In terms of locks, it can reduce power consumption, avoid disturbing other customers' rest, and ensure that users can hear the button prompts.
另外,对于S4,一方面可以直接从电子锁的自带时钟中获取当前日期和当前时间 以及从电子锁的内存中获取预先存储的电子锁的位置。In addition, for S4, on the one hand, the current date and current time can be obtained directly from the electronic lock's own clock. And the location of the pre-stored electronic lock is obtained from the memory of the electronic lock.
作为优选的实施例,当通过获取当前日期、当前时间和电子锁的位置来计算环境参数时,获取电子锁所处环境的环境参数可以包括:As a preferred embodiment, when the environment parameter is calculated by acquiring the current date, the current time, and the location of the electronic lock, obtaining the environment parameter of the environment in which the electronic lock is located may include:
S6,获取当前日期和当前时间;S6, obtaining the current date and the current time;
S8,获取电子锁的身份标识ID;S8, obtaining an identity ID of the electronic lock;
S10,根据电子锁的ID确定电子锁的位置;以及S10, determining the position of the electronic lock according to the ID of the electronic lock;
S12,根据当前日期、当前时间和电子锁的位置计算环境参数。S12: Calculate the environmental parameter according to the current date, the current time, and the position of the electronic lock.
需要说明的是,电子锁的ID相当于电子锁的标识,是存在电子锁本地的,在网络中,服务器可以通过电子锁的ID来识别和区分不同的电子锁。本发明上述实施例可以在服务器端执行,也可以在电子锁端执行,仅当其在服务器端执行时,才需要通过网络获取电子锁的ID。同样,当前日期和当前时间可以直接从电子锁端获取,或者,也可以服务器端获取。It should be noted that the ID of the electronic lock is equivalent to the identifier of the electronic lock, and the electronic lock is local. In the network, the server can identify and distinguish different electronic locks by the ID of the electronic lock. The foregoing embodiment of the present invention may be executed on the server side or on the electronic lock end, and only when it is executed on the server side, the ID of the electronic lock needs to be acquired through the network. Similarly, the current date and current time can be obtained directly from the electronic lock, or it can be obtained from the server.
实施时,当用户激活密码键盘后,电子锁可以自动将自身的ID(即身份标识)和环境参数获取请求通过互联网发送给服务器,服务器再根据上述ID确定该电子锁的地理位置,并获取当前日期和当前时间,然后根据获取的当前日期、当前时间和地理位置计算得到当前的环境光强度和环境噪声等环境参数。In implementation, when the user activates the password keyboard, the electronic lock can automatically send its own ID (ie, identity) and environment parameter acquisition request to the server through the Internet, and the server determines the geographic location of the electronic lock according to the above ID, and obtains the current The date and current time, and then calculate the current ambient light intensity and environmental noise and other environmental parameters based on the current date, current time and geographic location obtained.
其中,根据获取的当前日期、当前时间和地理位置计算当前的环境光强度可以包括:根据当前日期、当前时间和地理位置(如经纬度)确定当前的日照角度,根据日照角度确定环境光强度。另外,根据地理位置和当前日期可以方便地计算出日出和日落时间。对于日落后的情况,可以设定从日落后到午夜12点前之间的时间段为睡前时间,此时可以根据室内照明灯的光照亮度确定背环境光亮度;可以设定从午夜12点后到日出前之间的时间段为客户的睡眠时间,此时可以认为环境光亮度基本为零;对于日出后到日落前之间的时间段,根据当前日期、当前时间和经纬度可以算出当前的日照角度,进而根据日照角度计算出环光强度。The calculating the current ambient light intensity according to the obtained current date, the current time, and the geographic location may include: determining a current sunshine angle according to the current date, the current time, and a geographic location (eg, latitude and longitude), and determining the ambient light intensity according to the sunshine angle. In addition, sunrise and sunset times can be easily calculated based on geographic location and current date. For the situation after sunset, you can set the time period from sunset to midnight before midnight to sleep time. At this time, the backlight ambient brightness can be determined according to the illumination brightness of the indoor lighting; it can be set from midnight to 12 o'clock. The time period from the back to the sunrise is the customer's sleep time. At this time, the ambient light brightness can be considered to be basically zero; for the time period from sunrise to before sunset, the current date, current time, and latitude and longitude can be calculated. The current sun angle, and then the ring light intensity is calculated according to the sun angle.
例如,可以预先将环境光强度分为多个不同的等级,正午对应最强等级,夜晚对应最低等级,日出/日落对应次低等级,其余时间对应其他等级,这样,可以使得每个等级的环境光强度对应一个不同的键盘灯亮度。For example, the ambient light intensity can be divided into a plurality of different levels in advance, the noon corresponds to the strongest level, the night corresponds to the lowest level, the sunrise/sunset corresponds to the second lowest level, and the remaining time corresponds to other levels, so that each level can be made The ambient light intensity corresponds to a different keyboard light brightness.
再例如,可以根据时间预先将环境噪声分为多个不同的等级,夜间为低噪声等级,白天为高噪声等级,其中,在低噪声等级时将按键提示音的音量设定为低,在高噪声等级时将按键提示音的音量设定为高。 For another example, the ambient noise can be divided into a plurality of different levels according to time, the low noise level at night, and the high noise level during the day, wherein the volume of the button sound is set to low at a low noise level, at a high level. When the noise level is set, the volume of the button beep is set to high.
需要说明的是,在通过当前日期、当前时间和地理位置计算环境光强度和环境噪声等环境参数时,可以在电子锁中预先存储相关算法,为了保证计算结果的精度,在安装时为电子锁设置正确的日期、时间和经纬度;进一步地,为了在一定时间段内依旧保证计算结果的精度,可以按照电子锁中的时钟(如半小时或一小时)使得电子锁自动运行上述算法,从而重新设置电子锁的日期和时间,进而刷新键盘灯的亮度和按键提示音的音量。It should be noted that when calculating environmental parameters such as ambient light intensity and ambient noise through the current date, current time, and geographic location, the relevant algorithm may be pre-stored in the electronic lock. In order to ensure the accuracy of the calculation result, the electronic lock is installed during installation. Set the correct date, time and latitude and longitude; further, in order to ensure the accuracy of the calculation result within a certain period of time, the electronic lock can be automatically operated according to the clock in the electronic lock (such as half an hour or one hour), thereby re-running the above algorithm Set the date and time of the electronic lock, and then refresh the brightness of the keyboard light and the volume of the button sound.
需要说明的是,可以由服务器获取相应数据(包括日期、时间、经纬度等)并计算环境参数,这样,电子锁可以在每次重新定时(如刷新时间可以是10分钟到1小时不等)后从服务器端获取新的键盘灯的亮度数据和按键提示音的音量数据,也可以在每次密码键盘被激活时从服务器获取上述数据。It should be noted that the corresponding data (including date, time, latitude and longitude, etc.) can be obtained by the server and the environmental parameters can be calculated, so that the electronic lock can be re-timed every time (for example, the refresh time can be 10 minutes to 1 hour) The brightness data of the new keyboard light and the volume data of the key prompt sound are acquired from the server side, and the above data can also be acquired from the server each time the PIN pad is activated.
作为优选的实施例,上述附属部件可以包括:密码键盘和键盘灯,上述环境参数可以包括:环境噪声和环境光强度,其中,根据环境参数调节附属部件的耗能情况可以包括:In a preferred embodiment, the accessory component may include: a PIN pad and a keyboard light, and the environmental parameter may include: ambient noise and ambient light intensity, wherein adjusting the energy consumption of the accessory component according to the environmental parameter may include:
S14,根据环境噪声调节密码键盘的按键提示音的音量;和/或S14, adjusting the volume of the button prompt sound of the password keyboard according to the environmental noise; and/or
S16,根据环境光强度调节键盘灯的亮度。S16, adjusting the brightness of the keyboard light according to the ambient light intensity.
具体地,可以由服务器根据环境光强度和环境噪声确定出键盘灯的亮度数据和案件提示音的音量数据后,通过无线网络将键盘灯亮度数据和提示音音量数据发送给电子锁,再由电子锁执行上述的S14和/或S16。优选地,为了最大程度地节电,可以执行S14和S16。Specifically, after the server determines the brightness data of the keyboard light and the volume data of the case prompt sound according to the ambient light intensity and the environmental noise, the keyboard light brightness data and the prompt sound volume data are sent to the electronic lock through the wireless network, and then the electronic The lock performs S14 and/or S16 described above. Preferably, in order to maximize power saving, S14 and S16 may be performed.
作为优选的实施例,当根据环境光强度调节键盘灯的亮度时,在根据环境光强度调节键盘灯的亮度之前,上述控制方法还可以包括:As a preferred embodiment, when the brightness of the keyboard light is adjusted according to the ambient light intensity, before the brightness of the keyboard light is adjusted according to the ambient light intensity, the control method may further include:
S18,根据当前日期、当前时间和电子锁的位置获取天气信息;以及S18, obtaining weather information according to the current date, the current time, and the location of the electronic lock;
S20,根据获取的天气信息修正环境光强度,得到修正后的环境光强度,其中,根据修正后的环境光强度调节键盘灯的亮度。S20: Correct the ambient light intensity according to the acquired weather information to obtain the corrected ambient light intensity, wherein the brightness of the keyboard light is adjusted according to the corrected ambient light intensity.
由于阴雨天与晴天相比,同一地理位置在同一时间或同一时间段内环境光强度会存在较大差异,此时,根据天气信息修正环境光强度,并根据修正后的结果调节键盘灯的亮度,使得调节方案更加优化。例如,可以通过以下方式修正环境光强度:在阴雨天,将环境光强度乘以一个预先设定的衰减系数;在大雨或大风天,将环境噪声强度乘以一个增强系数。例如,雾霾天气的衰减系数可以为0.8-0.95,阴雨天气的衰减系数可以为0.6-0.85;同理,小雨天气的噪声增强系数可以为1.05,中雨天气的噪声 增强系数可以为1.1,大到暴雨天气的噪声增强系数可以为1.2-1.3,风力为2-3级时增强系数可以为1.05,风力为4-5级时增强系数可以为1.1,风力为6-8级时增强系数可以为1.2,风力为8级以上时增强系数可以为1.3等。需要说明的是,可以通过不同天气时的实际测量值来确定预先设定的衰减系数。Since the rainy day is compared with the sunny day, the ambient light intensity of the same geographical location may be different at the same time or during the same time period. At this time, the ambient light intensity is corrected according to the weather information, and the brightness of the keyboard light is adjusted according to the corrected result. To make the adjustment scheme more optimized. For example, the ambient light intensity can be corrected by multiplying the ambient light intensity by a predetermined attenuation factor on a rainy day or by multiplying the ambient noise intensity by a boost factor during heavy rain or windy days. For example, the attenuation coefficient of haze weather can be 0.8-0.95, and the attenuation coefficient of rainy weather can be 0.6-0.85. Similarly, the noise enhancement coefficient of light rain weather can be 1.05, noise of moderate rain weather. The enhancement factor can be 1.1, the noise enhancement coefficient can be 1.2-1.3 from heavy rainstorm, the reinforcement coefficient can be 1.05 when the wind is 2-3, the reinforcement coefficient can be 1.1 when the wind is 4-5, and the wind force is 6- The enhancement factor at level 8 may be 1.2, and the enhancement factor may be 1.3 when the wind is 8 or higher. It should be noted that the preset attenuation coefficient can be determined by actual measured values in different weather conditions.
需要说明的是,可以将本发明用于酒店里的电子锁上,特别是使用密码开门或者是带有显示键盘的电子锁上。It should be noted that the present invention can be applied to an electronic lock in a hotel, in particular, using a password to open a door or an electronic lock with a display keyboard.
根据本发明实施例,提供了一种电子锁的控制装置的装置实施例。该电子锁的控制装置的装置可以用于运行上述实施例中的电子锁的控制方法。In accordance with an embodiment of the present invention, an apparatus embodiment of a control device for an electronic lock is provided. The device of the control device of the electronic lock can be used to operate the control method of the electronic lock in the above embodiment.
图2是根据本发明实施例的一种电子锁的控制装置的示意图。如图2所示,该装置包括:第一获取单元10和调节单元20。2 is a schematic diagram of a control device for an electronic lock in accordance with an embodiment of the present invention. As shown in FIG. 2, the apparatus includes: a first acquisition unit 10 and an adjustment unit 20.
第一获取单元10用于获取电子锁所处环境的环境参数,电子锁上设置有附属部件,附属部件为耗能部件;以及调节单元20用于根据环境参数调节附属部件的耗能情况。The first obtaining unit 10 is configured to acquire environmental parameters of an environment in which the electronic lock is located, the electronic lock is provided with an accessory component, and the accessory component is an energy-consuming component; and the adjusting unit 20 is configured to adjust the energy consumption of the accessory component according to the environmental parameter.
其中,环境参数可以包括电子锁所处环境的环境噪声和环境光强度等。附属部件可以包括背景灯、密码键盘和键盘灯等,背景灯和键盘灯由于发光而消耗能量,密码键盘由于按键时产生提示音而消耗能量。The environmental parameters may include environmental noise and ambient light intensity of the environment in which the electronic lock is located. The accessory components may include a backlight, a PIN pad, and a keyboard light. The backlight and the keyboard light consume energy due to the illumination, and the cryptographic keyboard consumes energy due to the prompt sound generated when the button is pressed.
需要说明的是,前述步骤的执行主体可以是电子锁本身,也可以是服务器。It should be noted that the execution body of the foregoing steps may be the electronic lock itself or a server.
由于不同的环境噪声中,用户听清按键提示音所需的音量不同,因此,根据环境噪声调节按键提示音的大小以调节电池能耗,既能实现按键提示音原本的功能,又能节约电池的电量,达到延长电池的使用时长的效果。同理,由于不同的环境光强度下,用户看清密码键盘上的按键所需的亮度不同,因此,根据环境光强度调节键盘灯或背景灯的亮度大小以调节电池能耗,既能实现键盘灯或背景灯原本的功能,又能节约电池的电量,达到延长电池的使用时长的效果。Due to different ambient noises, the user needs to hear the volume of the button prompt tone differently. Therefore, according to the ambient noise, the size of the button prompt tone is adjusted to adjust the battery energy consumption, which can realize the original function of the button prompt sound and save the battery. The amount of electricity that reaches the effect of extending the battery life. Similarly, due to different ambient light intensities, the user needs to see the brightness of the keys on the password keyboard differently. Therefore, according to the ambient light intensity, the brightness of the keyboard light or the background light can be adjusted to adjust the battery energy consumption, and the keyboard can be realized. The original function of the lamp or backlight can save battery power and extend the battery life.
通过上述步骤,根据使用场景或使用环境的不同自动控制电子锁键盘灯的亮度和按键提示音的音量,可以使电子锁的用户在不同使用场景或使用环境中均获得较好的使用体验,并降低电量消耗。Through the above steps, the brightness of the electronic lock keyboard light and the volume of the button prompt sound are automatically controlled according to the use scene or the use environment, so that the user of the electronic lock can obtain a better use experience in different use scenarios or use environments, and Reduce power consumption.
作为优选的实施例,第一获取单元可以包括:第一获取模块和/或第二获取模块。第一获取模块,用于通过设置在电子锁上的传感器获取环境参数;第二获取模块,用于通过网络获取当前日期、当前时间和电子锁的位置来计算环境参数。As a preferred embodiment, the first obtaining unit may include: a first acquiring module and/or a second acquiring module. The first obtaining module is configured to obtain an environment parameter by using a sensor disposed on the electronic lock; and the second obtaining module is configured to calculate an environment parameter by acquiring a current date, a current time, and a position of the electronic lock through the network.
即,在本发明实施例中,在获取电子锁所处环境的环境参数时,可以通过第一获取模块和第二获取模块的功能所示出任意一种或者两种方法来获取。 That is, in the embodiment of the present invention, when the environment parameter of the environment in which the electronic lock is located is obtained, any one or two methods shown by the functions of the first acquiring module and the second acquiring module may be acquired.
对于第一获取模块,由于环境参数可以包括电子锁所处环境的环境噪声和环境光强度,因此,相应的,电子锁上的传感器可以包括光线传感器和声音传感器,其中,前者用于检测环境光强度,后者用于检测环境噪声。在实施时,当用户激活密码键盘后,自动打开光线传感器和声音传感器,并且在获取当前的环境噪声和环境光强度后,自动关闭上述传感器。For the first acquisition module, since the environmental parameters may include the environmental noise and the ambient light intensity of the environment in which the electronic lock is located, correspondingly, the electronic lock sensor may include a light sensor and a sound sensor, wherein the former is used to detect ambient light. Intensity, the latter is used to detect ambient noise. In implementation, when the user activates the PIN pad, the light sensor and the sound sensor are automatically turned on, and the sensor is automatically turned off after acquiring the current ambient noise and ambient light intensity.
虽然电子锁在室内使用,但是由于不同时间室内环境光强度的差别也很大,如果不根据室内环境光强度调节键盘灯的亮度,有些时候无法获得较好的视觉效果,有些时候会造成电量的浪费,为了节约电量和提高用户体验,通过本发明实施例可以使键盘灯的亮度随着环境光亮度进行自适应调节。Although the electronic lock is used indoors, the difference in indoor ambient light intensity is also very large. If the brightness of the keyboard light is not adjusted according to the indoor ambient light intensity, sometimes the visual effect is not obtained, and sometimes the power is generated. Waste, in order to save power and improve the user experience, the brightness of the keyboard light can be adaptively adjusted according to the ambient light brightness by the embodiment of the invention.
需要说明的是,通过在电子锁中设置传感器的方式获取环境参数时,由于需要在电子锁中增设的传感器,并且传感器本身工作时也需要消耗电池电量,因此,这种方式在一定程度上反而增加了电量的消耗,同时,增设传感器会增加电路复杂度。因此,对于键盘灯本身耗电量小、点亮时间短的情况,增设传感器可能得不偿失。It should be noted that when the environment parameter is obtained by setting the sensor in the electronic lock, the sensor needs to be added in the electronic lock, and the battery itself needs to consume the battery power when working, so this method is to some extent instead Increased power consumption, while adding sensors increases circuit complexity. Therefore, for the case where the keyboard lamp itself consumes a small amount of power and the lighting time is short, the addition of the sensor may not be worth the loss.
但是,对于触摸屏式密码键盘,特别是大尺寸的触摸屏式密码键盘,由于触摸屏式密码键盘本身耗电量较大,且其显示清晰程度对环境光强度敏感,这种情况下,使用光线传感器能够更有效的调节屏幕亮度,降低能耗。However, for the touch screen type PIN pad, especially the large size touch screen type PIN pad, since the touch screen type PIN pad itself consumes a large amount of power and its display clarity is sensitive to the ambient light intensity, in this case, the light sensor can be used. More effective adjustment of screen brightness and reduced energy consumption.
另外,对于微功耗LED背光触摸屏式密码键盘,键盘灯不亮时,整个面板为黑色,无法显示键盘上的符号,而密码键盘激活后,触摸屏背面的微功耗LED点亮,字符处能透出LED发出的光线,其他部分仍然为黑色,这时可以显示键盘上的符号。使用这种密码键盘,由于键盘灯本身功耗较小,因此增设光线传感器可能会带来更高的额外功耗,此时,可以选择通过网络获取当前日期、当前时间和电子锁的位置来计算环境参数。例如,可以根据当前日期、当前时间和电子锁所处的经纬度来确定日照角度,进而根据日照角度可以近似计算出环境光强度,而且根据当前日期、当前时间和电子锁所处的经纬度信息也可以近似计算出日出时间和日落时间。对于夜晚,可以为电子锁设定睡眠时间,并认为睡眠时间的起始时刻之前,环境光强度近似等于室内照明灯的光照强度,而睡眠时间的结束时刻之后,环境光强度近似为零,这样可以根据不同的时间为键盘灯(如LED灯)设定不同的亮度,从而实现键盘灯亮度根据环境光强度进行自适应调节的目的。In addition, for the micro-power LED backlight touch screen type PIN pad, when the keyboard light is off, the entire panel is black, and the symbol on the keyboard cannot be displayed. When the PIN pad is activated, the micro power LED on the back of the touch screen lights up, and the character can The light from the LED is revealed, and the rest is still black, and the symbol on the keyboard can be displayed. With this PIN pad, since the keyboard lamp itself consumes less power, adding a light sensor may result in higher additional power consumption. In this case, you can choose to obtain the current date, current time, and position of the electronic lock through the network. Environmental parameters. For example, the sunshine angle can be determined according to the current date, the current time, and the latitude and longitude of the electronic lock, and the ambient light intensity can be approximated according to the sunshine angle, and the current date, the current time, and the latitude and longitude information of the electronic lock can also be used. Approximate calculation of sunrise time and sunset time. For the night, the sleep time can be set for the electronic lock, and the ambient light intensity is approximately equal to the illumination intensity of the indoor lighting before the start time of the sleep time, and the ambient light intensity is approximately zero after the end time of the sleep time. Different brightness can be set for keyboard lights (such as LED lights) according to different times, so that the brightness of the keyboard lights can be adaptively adjusted according to the ambient light intensity.
而对于传统的机械式密码键盘,同样可以根据前述方法获取环境参数以进行耗能情况自适应调节,不同的是,由于白天环境光强度强,仅仅依靠环境光就可以看清密码键盘,此时可以使键盘灯处于关闭状态,而由于夜晚环境光强度弱,仅仅依靠环境光不足以看清密码键盘,此时可以使键盘灯处于打开状态。 For the traditional mechanical PIN pad, the environmental parameters can also be obtained according to the foregoing method for adaptive adjustment of the energy consumption situation. The difference is that due to the strong ambient light intensity during the day, the cryptographic keyboard can be seen only by relying on the ambient light. The keyboard light can be turned off, and because the ambient light intensity is weak at night, the ambient light is not enough to see the password keyboard, and the keyboard light can be turned on.
对于按键提示音的调节,同样可以使用声音传感器获取背景环境中的真实噪声强度(即环境噪声强度),根据该噪声强度,预先设定一个用户能够清晰听到按键提示音的音量。当然,也可以不使用声音传感器,此时可以简单地将夜间提示音的音量设定为一个较小的值,而将白天提示音的音量设定为一个较大的值,这样,对于酒店门锁而言,既可以减少电量消耗,又可以避免打扰其他客户休息,并且还可以确保用户能够听到按键提示音。For the adjustment of the button prompt sound, the sound sensor can also be used to obtain the real noise intensity (ie, the ambient noise intensity) in the background environment, and according to the noise intensity, a volume at which the user can clearly hear the button prompt sound is preset. Of course, you can also not use the sound sensor. In this case, you can simply set the volume of the night tone to a smaller value and the daytime tone to a larger value. In terms of locks, it can reduce power consumption, avoid disturbing other customers' rest, and ensure that users can hear the button prompts.
另外,对于第二获取模块,一方面可以直接从电子锁的自带时钟中获取当前日期和当前时间以及从电子锁的内存中获取预先存储的电子锁的位置。In addition, for the second acquisition module, on the one hand, the current date and current time can be directly obtained from the electronic clock of the electronic lock and the position of the pre-stored electronic lock can be obtained from the memory of the electronic lock.
作为优选的实施例,当通过网络获取当前日期、当前时间和电子锁的位置来计算环境参数时,第二获取模块包括:第一获取子模块,用于通过网络获取当前日期和当前时间;第二获取子模块,用于通过网络获取电子锁的ID;位置查询子模块,用于根据电子锁的ID确定电子锁的位置;以及计算子模块,用于根据当前日期、当前时间和电子锁的位置计算环境参数。As a preferred embodiment, when the environment parameter is calculated by acquiring the current date, the current time, and the location of the electronic lock through the network, the second obtaining module includes: a first acquiring submodule, configured to acquire the current date and the current time through the network; a second obtaining submodule for acquiring an ID of the electronic lock through the network; a location query submodule for determining a location of the electronic lock according to an ID of the electronic lock; and a calculating submodule for using the current date, the current time, and the electronic lock Location calculation environment parameters.
需要说明的是,电子锁的ID相当于电子锁的标识,是存在电子锁本地的,在网络中,服务器可以通过电子锁的ID来识别和区分不同的电子锁。本发明上述实施例可以在服务器端执行,也可以在电子锁端执行,仅当其在服务器端执行时,才需要通过网络获取电子锁的ID。同样,当前日期和当前时间可以直接从电子锁端获取,或者,也可以服务器端获取。It should be noted that the ID of the electronic lock is equivalent to the identifier of the electronic lock, and the electronic lock is local. In the network, the server can identify and distinguish different electronic locks by the ID of the electronic lock. The foregoing embodiment of the present invention may be executed on the server side or on the electronic lock end, and only when it is executed on the server side, the ID of the electronic lock needs to be acquired through the network. Similarly, the current date and current time can be obtained directly from the electronic lock, or it can be obtained from the server.
实施时,当用户激活密码键盘后,电子锁可以自动将自身的ID(即身份标识)和环境参数获取请求通过互联网发送给服务器,服务器再根据上述ID确定该电子锁的地理位置,并获取当前日期和当前时间,然后根据获取的当前日期、当前时间和地理位置计算得到当前的环境光强度和环境噪声等环境参数。In implementation, when the user activates the password keyboard, the electronic lock can automatically send its own ID (ie, identity) and environment parameter acquisition request to the server through the Internet, and the server determines the geographic location of the electronic lock according to the above ID, and obtains the current The date and current time, and then calculate the current ambient light intensity and environmental noise and other environmental parameters based on the current date, current time and geographic location obtained.
其中,根据获取的当前日期、当前时间和地理位置计算当前的环境光强度可以包括:根据当前日期、当前时间和地理位置(如经纬度)确定当前的日照角度,根据日照角度确定环境光强度。另外,根据地理位置和当前日期可以方便地计算出日出和日落时间。对于日落后的情况,可以设定从日落后到午夜12点前之间的时间段为睡前时间,此时可以根据室内照明灯的光照亮度确定背环境光亮度;可以设定从午夜12点后到日出前之间的时间段为客户的睡眠时间,此时可以认为环境光亮度基本为零;对于日出后到日落前之间的时间段,根据当前日期、当前时间和经纬度可以算出当前的日照角度,进而根据日照角度计算出环光强度。The calculating the current ambient light intensity according to the obtained current date, the current time, and the geographic location may include: determining a current sunshine angle according to the current date, the current time, and a geographic location (eg, latitude and longitude), and determining the ambient light intensity according to the sunshine angle. In addition, sunrise and sunset times can be easily calculated based on geographic location and current date. For the situation after sunset, you can set the time period from sunset to midnight before midnight to sleep time. At this time, the backlight ambient brightness can be determined according to the illumination brightness of the indoor lighting; it can be set from midnight to 12 o'clock. The time period from the back to the sunrise is the customer's sleep time. At this time, the ambient light brightness can be considered to be basically zero; for the time period from sunrise to before sunset, the current date, current time, and latitude and longitude can be calculated. The current sun angle, and then the ring light intensity is calculated according to the sun angle.
例如,可以预先将环境光强度分为多个不同的等级,正午对应最强等级,夜晚对 应最低等级,日出/日落对应次低等级,其余时间对应其他等级,这样,可以使得每个等级的环境光强度对应一个不同的键盘灯亮度。For example, the ambient light intensity can be divided into a plurality of different levels in advance, and the noon corresponds to the strongest level, and the night is At the lowest level, the sunrise/sunset corresponds to the next lowest level, and the rest of the time corresponds to other levels, so that the ambient light intensity of each level can be made to correspond to a different keyboard light brightness.
再例如,可以根据时间预先将环境噪声分为多个不同的等级,夜间为低噪声等级,白天为高噪声等级,其中,在低噪声等级时将按键提示音的音量设定为低,在高噪声等级时将按键提示音的音量设定为高。For another example, the ambient noise can be divided into a plurality of different levels according to time, the low noise level at night, and the high noise level during the day, wherein the volume of the button sound is set to low at a low noise level, at a high level. When the noise level is set, the volume of the button beep is set to high.
需要说明的是,在通过当前日期、当前时间和地理位置计算环境光强度和环境噪声等环境参数时,可以在电子锁中预先存储相关算法,为了保证计算结果的精度,在安装时为电子锁设置正确的日期、时间和经纬度;进一步地,为了在一定时间段内依旧保证计算结果的精度,可以按照电子锁中的时钟(如半小时或一小时)使得电子锁自动运行上述算法,从而重新设置电子锁的日期和时间,进而刷新键盘灯的亮度和按键提示音的音量。It should be noted that when calculating environmental parameters such as ambient light intensity and ambient noise through the current date, current time, and geographic location, the relevant algorithm may be pre-stored in the electronic lock. In order to ensure the accuracy of the calculation result, the electronic lock is installed during installation. Set the correct date, time and latitude and longitude; further, in order to ensure the accuracy of the calculation result within a certain period of time, the electronic lock can be automatically operated according to the clock in the electronic lock (such as half an hour or one hour), thereby re-running the above algorithm Set the date and time of the electronic lock, and then refresh the brightness of the keyboard light and the volume of the button sound.
需要说明的是,可以由服务器获取相应数据(包括日期、时间、经纬度等)并计算环境参数,这样,电子锁可以在每次重新定时(如刷新时间可以是10分钟到1小时不等)后从服务器端获取新的键盘灯的亮度数据和按键提示音的音量数据,也可以在每次密码键盘被激活时从服务器获取上述数据。It should be noted that the corresponding data (including date, time, latitude and longitude, etc.) can be obtained by the server and the environmental parameters can be calculated, so that the electronic lock can be re-timed every time (for example, the refresh time can be 10 minutes to 1 hour) The brightness data of the new keyboard light and the volume data of the key prompt sound are acquired from the server side, and the above data can also be acquired from the server each time the PIN pad is activated.
作为优选的实施例,上述附属部件包括:密码键盘和键盘灯,上述环境参数包括:环境噪声和环境光强度,其中,调节单元可以包括:第一调节单元和/或第二调节单元。第一调节单元,用于根据环境噪声调节密码键盘的按键提示音的音量;第二调节单元,用于根据环境光强度调节键盘灯的亮度。In a preferred embodiment, the accessory component includes: a PIN pad and a keyboard light, and the environmental parameters include: ambient noise and ambient light intensity, wherein the adjusting unit may include: a first adjusting unit and/or a second adjusting unit. The first adjusting unit is configured to adjust a volume of the key prompt sound of the cryptographic keyboard according to the ambient noise; and a second adjusting unit configured to adjust the brightness of the keyboard light according to the ambient light intensity.
具体地,可以由服务器根据环境光强度和环境噪声确定出键盘灯的亮度数据和案件提示音的音量数据后,通过无线网络将键盘灯亮度数据和提示音音量数据发送给电子锁,再由电子锁执行上述的第一调节单元和/或第二调节单元的功能。优选地,为了最大程度地节电,可以执行第一调节单元和第二调节单元。Specifically, after the server determines the brightness data of the keyboard light and the volume data of the case prompt sound according to the ambient light intensity and the environmental noise, the keyboard light brightness data and the prompt sound volume data are sent to the electronic lock through the wireless network, and then the electronic The lock performs the functions of the first adjustment unit and/or the second adjustment unit described above. Preferably, for maximum power saving, the first adjustment unit and the second adjustment unit may be performed.
作为优选的实施例,上述控制装置还可以包括:第二调节单元和修正单元。第二调节单元,用于当根据环境光强度调节键盘灯的亮度时,在根据环境光强度调节键盘灯的亮度之前,根据当前日期、当前时间和电子锁的位置获取天气信息;以及修正单元,用于根据获取的天气信息修正环境光强度,得到修正后的环境光强度,其中,第二调节单元还用于根据修正后的环境光强度调节键盘灯的亮度。As a preferred embodiment, the above control device may further include: a second adjusting unit and a correcting unit. a second adjusting unit, configured to: when adjusting the brightness of the keyboard light according to the ambient light intensity, obtain the weather information according to the current date, the current time, and the position of the electronic lock before adjusting the brightness of the keyboard light according to the ambient light intensity; and the correcting unit, For correcting the ambient light intensity according to the acquired weather information, the corrected ambient light intensity is obtained, wherein the second adjusting unit is further configured to adjust the brightness of the keyboard light according to the corrected ambient light intensity.
由于阴雨天与晴天相比,同一地理位置在同一时间或同一时间段内环境光强度会存在较大差异,此时,根据天气信息修正环境光强度,并根据修正后的结果调节键盘灯的亮度,使得调节方案更加优化。例如,可以通过以下方式修正环境光强度:在阴 雨天,将环境光强度乘以一个预先设定的衰减系数;在大雨或大风天,将环境噪声强度乘以一个增强系数。例如,雾霾天气的衰减系数可以为0.8-0.95,阴雨天气的衰减系数可以为0.6-0.85;同理,小雨天气的噪声增强系数可以为1.05,中雨天气的噪声增强系数可以为1.1,大到暴雨天气的噪声增强系数可以为1.2-1.3,风力为2-3级时增强系数可以为1.05,风力为4-5级时增强系数可以为1.1,风力为6-8级时增强系数可以为1.2,风力为8级以上时增强系数可以为1.3等。需要说明的是,可以通过不同天气时的实际测量值来确定预先设定的衰减系数。Since the rainy day is compared with the sunny day, the ambient light intensity of the same geographical location may be different at the same time or during the same time period. At this time, the ambient light intensity is corrected according to the weather information, and the brightness of the keyboard light is adjusted according to the corrected result. To make the adjustment scheme more optimized. For example, the ambient light intensity can be corrected in the following ways: In rainy days, the ambient light intensity is multiplied by a predetermined attenuation factor; in heavy rain or windy days, the ambient noise intensity is multiplied by a boost factor. For example, the attenuation coefficient of haze weather may be 0.8-0.95, and the attenuation coefficient of rainy weather may be 0.6-0.85; similarly, the noise enhancement coefficient of rainy weather may be 1.05, and the noise enhancement coefficient of rainy weather may be 1.1, large The noise enhancement coefficient to rainstorm weather can be 1.2-1.3, the enhancement coefficient can be 1.05 when the wind is 2-3, the reinforcement coefficient can be 1.1 when the wind is 4-5, and the reinforcement coefficient can be when the wind is 6-8. 1.2, when the wind is above 8 or higher, the enhancement factor can be 1.3. It should be noted that the preset attenuation coefficient can be determined by actual measured values in different weather conditions.
需要说明的是,可以将本发明用于酒店里的电子锁上,特别是使用密码开门或者是带有显示键盘的电子锁上。It should be noted that the present invention can be applied to an electronic lock in a hotel, in particular, using a password to open a door or an electronic lock with a display keyboard.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the descriptions of the various embodiments are different, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed technical contents may be implemented in other manners. The device embodiments described above are only schematic. For example, the division of the unit may be a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only  Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a read only memory (ROM, Read-Only) Memory, random access memory (RAM), removable hard disk, disk or optical disk, and other media that can store program code.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.

Claims (10)

  1. 一种电子锁的控制方法,其中,包括:A method for controlling an electronic lock, comprising:
    获取电子锁所处环境的环境参数,所述电子锁上设置有附属部件,所述附属部件为耗能部件;以及Acquiring environmental parameters of an environment in which the electronic lock is located, the electronic lock being provided with an accessory component, the accessory component being an energy consuming component;
    根据所述环境参数调节所述附属部件的耗能情况。Adjusting the energy consumption of the accessory component according to the environmental parameter.
  2. 根据权利要求1所述的控制方法,获取电子锁所处环境的环境参数包括:The control method according to claim 1, wherein obtaining environmental parameters of an environment in which the electronic lock is located includes:
    通过设置在所述电子锁上的传感器获取所述环境参数;和/或Acquiring the environmental parameter by a sensor disposed on the electronic lock; and/or
    通过获取当前日期、当前时间和所述电子锁的位置来计算所述环境参数。The environmental parameter is calculated by obtaining the current date, the current time, and the location of the electronic lock.
  3. 根据权利要求2所述的控制方法,当通过获取当前日期、当前时间和所述电子锁的位置来计算所述环境参数时,获取电子锁所处环境的环境参数包括:The control method according to claim 2, when the environmental parameter is calculated by acquiring the current date, the current time, and the location of the electronic lock, the environmental parameters of the environment in which the electronic lock is located include:
    获取所述当前日期和所述当前时间;Obtaining the current date and the current time;
    获取所述电子锁的身份标识ID;Obtaining an identity ID of the electronic lock;
    根据所述电子锁的ID确定所述电子锁的位置;以及Determining a location of the electronic lock based on an ID of the electronic lock;
    根据所述当前日期、所述当前时间和所述电子锁的位置计算所述环境参数。The environmental parameter is calculated based on the current date, the current time, and a location of the electronic lock.
  4. 根据权利要求1所述的控制方法,所述附属部件包括:密码键盘和键盘灯,所述环境参数包括:环境噪声和环境光强度,其中,根据所述环境参数调节所述附属部件的耗能情况包括:The control method according to claim 1, wherein the accessory component comprises: a PIN pad and a keyboard lamp, the environmental parameter comprising: ambient noise and ambient light intensity, wherein the energy consumption of the accessory component is adjusted according to the environmental parameter The situation includes:
    根据所述环境噪声调节所述密码键盘的按键提示音的音量;和/或Adjusting a volume of a key tone of the cryptographic keyboard according to the ambient noise; and/or
    根据所述环境光强度调节所述键盘灯的亮度。The brightness of the keyboard light is adjusted according to the ambient light intensity.
  5. 根据权利要求4所述的控制方法,当根据所述环境光强度调节所述键盘灯的亮度时,在根据所述环境光强度调节所述键盘灯的亮度之前,所述控制方法还包括:The control method according to claim 4, wherein, when the brightness of the keyboard light is adjusted according to the ambient light intensity, the control method further comprises: before adjusting the brightness of the keyboard light according to the ambient light intensity, the control method further comprises:
    根据当前日期、当前时间和所述电子锁的位置获取天气信息;以及Obtaining weather information based on the current date, the current time, and the location of the electronic lock;
    根据获取的所述天气信息修正所述环境光强度,得到修正后的环境光强度,Correcting the ambient light intensity according to the acquired weather information to obtain a corrected ambient light intensity,
    其中,根据所述修正后的环境光强度调节所述键盘灯的亮度。Wherein, the brightness of the keyboard light is adjusted according to the corrected ambient light intensity.
  6. 一种电子锁的控制装置,包括: An electronic lock control device includes:
    第一获取单元,用于获取电子锁所处环境的环境参数,所述电子锁上设置有附属部件,所述附属部件为耗能部件;以及a first acquiring unit, configured to acquire an environmental parameter of an environment in which the electronic lock is located, where the electronic lock is provided with an accessory component, and the accessory component is an energy-consuming component;
    调节单元,用于根据所述环境参数调节所述附属部件的耗能情况。And an adjusting unit, configured to adjust energy consumption of the accessory component according to the environmental parameter.
  7. 根据权利要求6所述的控制装置,所述第一获取单元包括:The control device according to claim 6, wherein the first obtaining unit comprises:
    第一获取模块,用于通过设置在所述电子锁上的传感器获取所述环境参数;和/或a first obtaining module, configured to acquire the environmental parameter by a sensor disposed on the electronic lock; and/or
    第二获取模块,用于通过获取当前日期、当前时间和所述电子锁的位置来计算所述环境参数。And a second acquiring module, configured to calculate the environment parameter by acquiring a current date, a current time, and a location of the electronic lock.
  8. 根据权利要求7所述的控制装置,当通过通过网络获取当前日期、当前时间和所述电子锁的位置来计算所述环境参数时,所述第二获取模块包括:The control device according to claim 7, wherein when the environment parameter is calculated by acquiring a current date, a current time, and a location of the electronic lock through a network, the second obtaining module includes:
    第一获取子模块,用于获取所述当前日期和所述当前时间;a first obtaining submodule, configured to acquire the current date and the current time;
    第二获取子模块,用于获取所述电子锁的身份标识I D;a second obtaining submodule, configured to acquire an identity ID of the electronic lock;
    位置查询子模块,用于根据所述电子锁的I D确定所述电子锁的位置;以及a location query submodule, configured to determine a location of the electronic lock according to an ID of the electronic lock;
    计算子模块,用于根据所述当前日期、所述当前时间和所述电子锁的位置计算所述环境参数。And a calculation submodule configured to calculate the environmental parameter according to the current date, the current time, and a location of the electronic lock.
  9. 根据权利要求6所述的控制装置,所述附属部件包括:密码键盘和键盘灯,所述环境参数包括:环境噪声和环境光强度,其中,所述调节单元包括:The control device according to claim 6, wherein the accessory component comprises: a PIN pad and a keyboard light, the environmental parameter comprises: ambient noise and ambient light intensity, wherein the adjusting unit comprises:
    第一调节单元,用于根据所述环境噪声调节所述密码键盘的按键提示音的音量;和/或a first adjusting unit, configured to adjust a volume of a key tone of the cryptographic keyboard according to the ambient noise; and/or
    第二调节单元,用于根据所述环境光强度调节所述键盘灯的亮度。a second adjusting unit, configured to adjust brightness of the keyboard light according to the ambient light intensity.
  10. 根据权利要求9所述的控制装置,所述控制装置还包括:The control device according to claim 9, wherein the control device further comprises:
    第二调节单元,用于当根据所述环境光强度调节所述键盘灯的亮度时,在根据所述环境光强度调节所述键盘灯的亮度之前,根据当前日期、当前时间和所述电子锁的位置获取天气信息;以及a second adjusting unit, configured to adjust a brightness of the keyboard light according to the ambient light intensity, before adjusting a brightness of the keyboard light according to the ambient light intensity, according to a current date, a current time, and the electronic lock Location to get weather information; and
    修正单元,用于根据获取的所述天气信息修正所述环境光强度,得到修正后的环境光强度,a correction unit, configured to correct the ambient light intensity according to the acquired weather information, to obtain a corrected ambient light intensity,
    其中,所述第二调节单元还用于根据所述修正后的环境光强度调节所述键盘灯的亮度。 The second adjusting unit is further configured to adjust a brightness of the keyboard light according to the corrected ambient light intensity.
PCT/CN2015/089198 2015-04-23 2015-09-08 Method and apparatus for controlling electronic lock WO2016169186A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510199106.3A CN104847176B (en) 2015-04-23 2015-04-23 The control method and device of electronic lock
CN201510199106.3 2015-04-23

Publications (1)

Publication Number Publication Date
WO2016169186A1 true WO2016169186A1 (en) 2016-10-27

Family

ID=53847111

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/089198 WO2016169186A1 (en) 2015-04-23 2015-09-08 Method and apparatus for controlling electronic lock

Country Status (3)

Country Link
CN (1) CN104847176B (en)
HK (1) HK1209807A1 (en)
WO (1) WO2016169186A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107895415A (en) * 2017-10-31 2018-04-10 美的智慧家居科技有限公司 Intelligent door lock, voice method for burn-recording, server and voice programming system
CN111954356A (en) * 2020-07-23 2020-11-17 宁夏万泰照明科技股份有限公司 Intelligent light adjusting method and system

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104847176B (en) * 2015-04-23 2017-10-31 托斯卡尼(上海)酒店管理有限公司 The control method and device of electronic lock
CN105722197A (en) * 2016-02-25 2016-06-29 张泽 Method and device for controlling wireless networking device
CN108811234A (en) * 2017-05-05 2018-11-13 深圳市欧瑞博电子有限公司 A kind of Password Input panel and its control method
CN108166845B (en) * 2017-12-20 2019-10-18 美智光电科技有限公司 A kind of information prompting method of intelligent door lock, device, system and intelligent door lock
CN109817183A (en) * 2019-03-11 2019-05-28 广东汇泰龙科技有限公司 A kind of intelligent adjusting method and system based on intelligent door lock
CN111764757A (en) * 2020-06-24 2020-10-13 广东科徕尼智能科技有限公司 Knob formula intelligence lock
CN113298982A (en) * 2021-05-18 2021-08-24 新疆爱华盈通信息技术有限公司 Bluetooth lock binding method and related control system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2215790Y (en) * 1994-11-25 1995-12-20 山东省科学院海洋仪器仪表研究所 Intelligent sunshine-imitating time-control switch
US20040066647A1 (en) * 2002-10-03 2004-04-08 Brady Jovan J. Method of identifying lock key hole and advertising
US7170419B2 (en) * 2003-05-13 2007-01-30 Yazaki Corporation Remote key entry system
CN201127096Y (en) * 2007-08-28 2008-10-01 希姆通信息技术(上海)有限公司 Broad screen touch pure plane music mobile phone
CN203729787U (en) * 2014-01-03 2014-07-23 杭州讯歌科技有限公司 Safety box
CN104847176A (en) * 2015-04-23 2015-08-19 张泽 Electronic lock controlling method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005107587A (en) * 2003-09-26 2005-04-21 Toshiba Corp Face identification device and passage control device
CN101335937A (en) * 2007-06-26 2008-12-31 英华达(上海)电子有限公司 Method and apparatus for adjusting energy consumption of mobile equipment
CN102114825A (en) * 2009-12-30 2011-07-06 池长溪 Automobile fingerprint burglar alarm, control method and control circuit
CN102065260A (en) * 2010-11-15 2011-05-18 冠捷显示科技(厦门)有限公司 Background environment change-based television for automatically adjusting volume
CN102510428A (en) * 2011-12-21 2012-06-20 惠州Tcl移动通信有限公司 Mobile terminal and method for automatically adjusting brightness of backlight
CN104540289B (en) * 2014-12-29 2017-08-29 联想(北京)有限公司 A kind of backlight display control method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2215790Y (en) * 1994-11-25 1995-12-20 山东省科学院海洋仪器仪表研究所 Intelligent sunshine-imitating time-control switch
US20040066647A1 (en) * 2002-10-03 2004-04-08 Brady Jovan J. Method of identifying lock key hole and advertising
US7170419B2 (en) * 2003-05-13 2007-01-30 Yazaki Corporation Remote key entry system
CN201127096Y (en) * 2007-08-28 2008-10-01 希姆通信息技术(上海)有限公司 Broad screen touch pure plane music mobile phone
CN203729787U (en) * 2014-01-03 2014-07-23 杭州讯歌科技有限公司 Safety box
CN104847176A (en) * 2015-04-23 2015-08-19 张泽 Electronic lock controlling method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107895415A (en) * 2017-10-31 2018-04-10 美的智慧家居科技有限公司 Intelligent door lock, voice method for burn-recording, server and voice programming system
CN107895415B (en) * 2017-10-31 2024-02-23 美智光电科技股份有限公司 Intelligent door lock, voice burning method, server and voice burning system
CN111954356A (en) * 2020-07-23 2020-11-17 宁夏万泰照明科技股份有限公司 Intelligent light adjusting method and system
CN111954356B (en) * 2020-07-23 2023-02-24 宁夏万泰照明科技股份有限公司 Intelligent light adjusting method and system

Also Published As

Publication number Publication date
CN104847176A (en) 2015-08-19
CN104847176B (en) 2017-10-31
HK1209807A1 (en) 2016-04-08

Similar Documents

Publication Publication Date Title
WO2016169186A1 (en) Method and apparatus for controlling electronic lock
JP7376049B2 (en) Control of optically switchable devices
US10204593B2 (en) Display apparatus and method for controlling the same
WO2011127689A1 (en) Mobile terminal and method for adjusting screen visual effect thereof
US20110134091A1 (en) Electronic apparatus and backlight brightness control method thereof
WO2019042279A1 (en) Method and device for controlling screen brightness, terminal, and computer readable storage medium
CN104616633A (en) Method and device for adjusting display screen of portable terminal
CN111736793B (en) Screen light adjusting method and device
CN111766795A (en) Intelligent home master control system and method based on Internet of things
TW201508732A (en) Display backlight adjustment method, display backlight adjustment apparatus and computer program product for adjusting display backlight
US10912381B2 (en) Cabinet door
WO2016074438A1 (en) Terminal shutdown method and device
CN105511765A (en) Screen brightness adjusting method, device and electronic equipment
CN106657676A (en) Screen brightness adjusting method and device
US6998794B2 (en) Device and method for driving organic EL display
CN110930945A (en) Method, device and system for adjusting brightness of display screen
CN109272944A (en) Backlight adjusting method, device, terminal device and computer-readable storage medium
WO2018000952A1 (en) Intelligent reflectance adjusting device, adjustment method therefor and anti-glare rearview mirror
CN105575364A (en) Intelligent watch and brightness adaptive adjusting system and method
CN107257414B (en) A kind of screen state control method, device, storage medium and mobile terminal
TWI476382B (en) Ambient light sensor with automatic gain control
JP2014075232A (en) Illumination control device, illumination control method, and illumination control program
CN107068115A (en) A kind of screen display adjusting method and device
CN116774598A (en) Method and device for adjusting indoor brightness and intelligent lamp
CN115113797B (en) Intelligent partition display method of control panel and related product

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15889673

Country of ref document: EP

Kind code of ref document: A1