Wireless door lock and power consumption control method thereof
Through the state perception and adjustment of the positioning unit, wireless communication unit and acceleration detection unit in the control circuit module, the problem of wireless door locks due to power limitation is solved, and accurate monitoring of the lock status under low power consumption is achieved to ensure safe and reliable transportation management.
Patent Information
- Application Number
- CN202510623765.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-12-03
- Filing Date
- 2025-05-15
- Publication Date
- 2025-07-11
AI Technical Summary
Due to the limited storage power of the battery, wireless door locks are high in power consumption and cannot maintain normal operation during long-term use. Especially in vehicle transportation, the positioning information and status information of the lock cannot be obtained, causing safety hazards.
By controlling the on and off of the positioning unit, the wireless communication unit and the acceleration detection unit in the circuit module, the working mode is adjusted according to the stationary and motion states, and unnecessary power consumption is reduced.
It effectively reduces the power consumption of wireless door locks, ensuring that the lock status is maintained while reducing power consumption, and avoids safety hazards caused by power exhaustion.
Smart Images

Figure CN120299118A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of locks, and in particular to a wireless door lock and a power consumption control method thereof. Background Art
[0002] Traditional mechanical locks cannot detect the lock state in time and can only rely on manual inspection to check the lock state. In the case of being damaged, traditional mechanical locks cannot be discovered in time, which is likely to cause property losses or pose threats to personal safety. Different from traditional mechanical locks, wireless door locks not only have a mechanical lock body and an anti-theft alarm function, but also can comprehensively and real-time monitor the lock state by combining communication and positioning technologies. Wireless door locks are applied to industries such as vehicle transportation, and can perform functions such as locking and unlocking, entering and leaving the warehouse, patrolling the warehouse, and automatically uploading records through various methods, realizing information monitoring of in-transit transportation and warehouse management integration, and optimizing the transportation and warehousing management mechanism to a higher level.
[0003] Wireless door locks have mechanical components and electronic components and require a storage battery to provide energy. Due to the limited internal space of wireless door locks, the volume of the storage battery is restricted, and only limited electric energy can be provided. At the same time, in order to resist lock demolition and prevent dust and water, wireless door locks generally adopt a sealed structure, and the electronic components and the storage battery are enclosed inside the wireless door lock body structure, and the built-in storage battery cannot be quickly replaced. If the electric energy is exhausted during the use of the wireless door lock, it will not be able to work normally, which will have a great impact on the detection of the entire wireless door lock information. Especially during long-distance vehicle transportation, the positioning information and door lock state information of the lock cannot be obtained, thus causing major safety hazards in cargo transportation.
[0004] Therefore, in the case of limited electric energy stored in the storage battery, how to effectively reduce the power consumption of the wireless door lock has become a key technical problem to be solved. Summary of the Invention
[0005] The purpose of the present invention is to provide a wireless door lock and a power consumption control method thereof, which can effectively reduce the power consumption of the wireless door lock and ensure accurate and safe operation while reducing the power consumption.
[0006] To achieve the above purpose, the present invention provides the following technical solutions:
[0007] According to one aspect of the present invention, a wireless door lock is provided, including a U-shaped lock beam 1 and a lock body 2. The lock body 2 includes: a mechanical unlocking mechanism 21, an electronic unlocking mechanism 22, a control circuit module 23, and a storage battery 24. The storage battery 24 supplies power to the electronic unlocking mechanism 22 and the control circuit module 23. The control circuit module 23 is configured to communicate with an external user terminal 3 and / or a remote monitoring platform 4, and control the electronic unlocking mechanism 22 to drive the mechanical unlocking mechanism 21 to lock or unlock the U-shaped lock beam 1;
[0008] The control circuit module 23 includes a control unit 2301, a storage unit 2302, a wireless communication unit 2303, a Bluetooth unit 2304, a positioning unit 2305, and an acceleration detection unit 2306; the control unit 2301 includes an initialization control subunit 401, a static control subunit 402, and a dynamic control subunit 403;
[0009] The initialization control subunit 401 is configured to control the wireless communication unit 2303 to remain in the real-network sleep mode, and control the acceleration detection unit 2306 to determine whether to enter the stationary state or the moving state according to the acceleration change rate and / or control the positioning unit 2305 to determine according to the speed;
[0010] The static control subunit 402 is configured to, in the stationary state, control the acceleration detection unit 2306 to determine whether to enter the moving state according to the acceleration change rate and control the positioning unit 2305 to determine according to the speed;
[0011] The dynamic control subunit 403 is configured to, in the moving state, adjust the reporting time interval of the positioning unit 2305 and the working mode of the wireless communication unit 2303 according to the acceleration change rate, and control the acceleration detection unit 2306 to determine whether to enter the stationary state according to the acceleration change rate and control the positioning unit 2305 to determine according to the speed.
[0012] According to an embodiment of the present invention, the initialization control subunit 401 is configured to, in the power-on initialization stage, turn on the two-way communication between the wireless communication unit 2303 and the remote monitoring platform 4 and then remain in the real-network sleep mode, turn on the positioning unit 2305 to parse the positioning data, turn on the acceleration detection unit 2306 and calculate the acceleration change rate. If the positioning data cannot be parsed, directly enter the stationary state, or if the speed obtained by parsing the positioning data is less than the first speed threshold and the acceleration change rate is less than the first acceleration change rate threshold, determine that the wireless door lock is in the stationary state, or if the speed obtained by parsing the positioning data is greater than or equal to the first speed threshold, determine that the wireless door lock is in the moving state;
[0013] The static control subunit 402 is configured to, in the stationary state, turn off the positioning unit 2305, turn on the Bluetooth unit 2304 to connect to the user terminal 3, establish two-way communication with the remote monitoring platform 4 through the user terminal 3 and then turn off the wireless communication unit 2303; calculate the acceleration change rate. If the wireless door lock is in a connected state with the user terminal 3 and the acceleration change rate is greater than the second acceleration change rate threshold, turn on the positioning unit 2305 to continuously monitor. If the speed is greater than or equal to the second speed threshold, determine that the wireless door lock is in the moving state, turn on the wireless communication unit 2303 to enter the PSM mode, and turn off the Bluetooth unit 2304;
[0014] The dynamic control subunit 403 is configured to, in a motion state, activate the positioning unit 2305 to report positioning information at a first time interval, calculate the acceleration change rate, when the acceleration change rate is greater than a third acceleration change rate threshold, deactivate the acceleration detection unit 2306, report positioning information at a second time interval, change the wireless communication unit 2303 from the PSM mode to the sleep mode and periodically report that the wireless door lock is in a motion state; calculate the acceleration based on the speed information of the positioning unit 2305, and monitor the acceleration value when the acceleration is greater than a first acceleration threshold; when the acceleration continuously is less than 0 until the speed decreases to 0 and lasts for more than a first stationary time threshold, then enter the stationary state.
[0015] According to an embodiment of the present invention, the control circuit module 23 further includes an NFC unit 2307, and the NFC unit 2307 is configured to communicate and connect with the user terminal 3, authenticate the user terminal 3, and after the authentication is passed, notify the electronic unlocking mechanism 22 to drive the mechanical unlocking mechanism 21 to lock or unlock the U-shaped lock beam 1 according to the operation of the user terminal 3;
[0016] The initialization control subunit 401 is configured to, in the power-on initialization stage, activate the NFC unit 2307, control the NFC unit 2307 to enter the ACD card detection mode, and wait for the user terminal 3 to perform the NFC card swiping to execute the lock / unlock operation.
[0017] According to an embodiment of the present invention, the control circuit module 23 further includes a display screen 2308, and the display screen 2308 is configured to display the interaction status information when the Bluetooth unit 2304, the NFC unit 2307, and the wireless communication unit 2303 interact with the user terminal 3.
[0018] On the other hand, the present invention also provides a power consumption control method based on the above wireless door lock, including the following steps:
[0019] Power-on initialization: Control the wireless communication unit 2303 to remain in the real network sleep mode, and control the acceleration detection unit 2306 to determine whether to enter the stationary state or the motion state according to the acceleration change rate and / or control the positioning unit 2305 to determine according to the speed;
[0020] Static control: In the stationary state, control the acceleration detection unit 2306 to determine whether to enter the motion state according to the acceleration change rate and control the positioning unit 2305 to determine according to the speed;
[0021] Dynamic control: In the motion state, adjust and control the reporting time interval of the positioning unit 2305 and the working mode of the wireless communication module according to the acceleration change rate, and control the acceleration detection unit 2306 to determine whether to enter the stationary state according to the acceleration change rate and control the positioning unit 2305 to determine according to the speed.
[0022] According to an embodiment of the present invention, the power-on initialization includes the following steps:
[0023] After the wireless communication unit 2303 is turned on and a two-way communication with the remote monitoring platform 4 is established, it remains in the real network sleep mode;
[0024] Turn on the positioning unit 2305 to analyze the positioning data;
[0025] Turn on the acceleration detection unit 2306 and calculate the acceleration change rate;
[0026] If the positioning data cannot be analyzed, directly enter the stationary state;
[0027] If the speed obtained by analyzing the positioning data is less than the first speed threshold and the acceleration change rate is less than the first acceleration change rate threshold, it is determined that the wireless door lock is in the stationary state;
[0028] If the speed obtained by analyzing the positioning data is greater than or equal to the first speed threshold, it is determined that the wireless door lock is in the moving state.
[0029] According to an embodiment of the present invention, the power-on initialization further includes:
[0030] Turn on the NFC unit 2307, control the NFC unit 2307 to enter the ACD card detection mode, and wait for the user terminal 3 to perform the NFC card swiping operation for locking or unlocking;
[0031] After authentication is passed, according to the operation of the user terminal 3, notify the electronic unlocking mechanism 22 to drive the mechanical unlocking mechanism 23 to lock or unlock the U-shaped lock beam 1.
[0032] According to an embodiment of the present invention, the power-on initialization further includes:
[0033] Turn on the wireless communication unit 2303 for SIM card verification, and after the verification is passed, establish a communication connection with the remote monitoring platform 4.
[0034] According to an embodiment of the present invention, the static control includes the following steps:
[0035] Turn off the positioning unit 2305;
[0036] Turn on the Bluetooth unit 2304 to connect to the user terminal 3, and after establishing a two-way communication with the remote monitoring platform 4 through the user terminal 3, turn off the wireless communication unit 2303;
[0037] Calculate the acceleration change rate. If the wireless door lock is connected to the user terminal 3 and the acceleration change rate is greater than the second acceleration change rate threshold, turn on the positioning unit 2305;
[0038] Continuously monitor the speed. If the speed is greater than or equal to the second speed threshold, it is determined that the wireless door lock is in a moving state;
[0039] Turn on the wireless communication unit 2303 to enter the PSM mode;
[0040] Turn off the Bluetooth unit 2304.
[0041] According to an embodiment of the present invention, the dynamic control includes the following steps:
[0042] Turn on the positioning unit 2305 and report the positioning information at the first time interval;
[0043] Calculate the acceleration change rate. When the acceleration change rate is greater than the third acceleration change rate threshold, turn off the acceleration detection unit 2306;
[0044] The positioning unit 2305 reports the positioning information at the second time interval;
[0045] Change the wireless communication unit 2303 from the PSM mode to the sleep mode and regularly report that the wireless door lock is in a moving state;
[0046] Calculate the acceleration based on the speed information of the positioning unit 2305. When the acceleration is greater than the first acceleration threshold, monitor the acceleration value; when the acceleration continuously remains less than 0 until the speed decreases to 0 and lasts for more than the first stationary time threshold, enter the stationary state.
[0047] Compared with the prior art, the beneficial effects produced by the present invention are as follows:
[0048] The control circuit module of the wireless door lock performs power consumption management on the wireless door lock in the stationary state and the moving state by controlling the opening and closing of the positioning unit, wireless communication unit, Bluetooth unit, and acceleration detection unit. At the same time, by adjusting the reporting period of the positioning information obtained by the positioning unit, the power consumption and accurate monitoring of the wireless door lock state can be balanced. Applying the present invention can significantly reduce the power consumption of the battery. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0050] Figure 1 Shows a schematic diagram of a wireless door lock according to an exemplary embodiment of the present invention.
[0051] Figure 2 Shows a schematic diagram of the lock body structure of a wireless door lock according to an exemplary embodiment of the present invention.
[0052] Figure 3 The figure shows a schematic structural diagram of a control circuit module according to an exemplary embodiment of the present invention.
[0053] Figure 4 The figure shows a schematic structural diagram of a control unit of a control circuit module according to an exemplary embodiment of the present invention.
[0054] Figure 5 The figure shows a schematic flow diagram of a power consumption control method for a wireless door lock according to an exemplary embodiment of the present invention.
[0055] Figure 6 The figure shows a schematic flow diagram of an initialization control embodiment according to an exemplary embodiment of the present invention.
[0056] Figure 7 The figure shows a schematic flow diagram of a static control embodiment according to an exemplary embodiment of the present invention.
[0057] Figure 8 The figure shows a schematic flow diagram of a dynamic control embodiment according to an exemplary embodiment of the present invention.
[0058] Reference numerals:
[0059] 1 - U - shaped lock beam, 2 - lock body, 3 - user terminal, 4 - remote monitoring platform, 21 - mechanical unlocking mechanism, 22 - electronic unlocking mechanism, 23 - control circuit module, 24 - storage battery, 2301 - control unit, 2302 - storage unit, 2303 - wireless communication unit, 2304 - Bluetooth unit, 2305 - positioning unit, 2306 - acceleration detection unit, 2307 - NFC unit, 2308 - display screen, 401 - initialization control sub - unit, 402 - static control sub - unit, 403 - dynamic control sub - unit. Detailed embodiments
[0060] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, terms such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first threshold and the second threshold are only used to distinguish different thresholds, and do not limit their sequence. Those skilled in the art can understand that the terms "first", "second", etc. do not limit the quantity and execution order, and the terms "first", "second", etc. do not necessarily mean different.
[0061] It should be noted that in the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the present invention should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0062] In the present invention, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. The following at least one (item) or its similar expression refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b or c can represent: a, b, c, the combination of a and b, the combination of a and c, the combination of b and c, or the combination of a, b and c, where a, b and c can be single or multiple.
[0063] Next, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0064] As Figure 1 shown, a schematic diagram of the basic structure of a wireless door lock is given. Generally, the wireless door lock includes a U-shaped lock beam 1 and a lock body 2. As Figure 2 shown, the lock body 2 includes: a mechanical unlocking mechanism 21, an electronic unlocking mechanism 22, a control circuit module 23 and a storage battery 24. The storage battery 24 supplies power to the electronic unlocking mechanism 22 and the control circuit module 23. The control circuit module 23 is configured to Figure 1 communicate and connect with the external user terminal 3 and / or the remote monitoring platform 4 as
[0065] shown, and control the electronic unlocking mechanism 22 to drive the mechanical unlocking mechanism 21 to lock or unlock the U-shaped lock beam 1. Figure 3 shown, the control circuit module 23 includes a control unit 2301, a storage unit 2302, a wireless communication unit 2303, a Bluetooth unit 2304, a positioning unit 2305, and an acceleration detection unit 2306.
[0066] The control unit 2301 is an MCU or an FPGA, and the storage unit 2302 is a FLASH memory, or an SD card, or a MicroSD card. The Bluetooth unit 2304 is a Bluetooth chip. The positioning unit 2305 is a Beidou positioning chip or a GPS positioning chip. The acceleration detection unit 2306 is an acceleration sensor.
[0067] According to different application scenarios, the wireless communication unit 2303 can be a Cat.1 unit, or a Cat.4 unit, or an eMTC unit, or an NB-IoT unit, or a LoRa unit. The full name of the Cat.1 unit is LTE UE-Category1, which is a level of user equipment UE under the LTE network. According to the definition of 3GPP, the UE categories are divided into 15 levels from 1 to 15. Cat.1 can be called a "low-end version" of 4G terminal, with an uplink peak rate of 5 Mbit / s and a downlink peak rate of 10 Mbit / s. It belongs to the cellular Internet of Things and is a wide area network. The ultimate goal of Cat.1 is to serve the Internet of Things and achieve the purpose of low-power and low-cost LTE connection.
[0068] As Figure 4 shown, the control unit 2301 includes an initialization control subunit 401, a static control subunit 402, and a dynamic control subunit 403; where:
[0069] The initialization control subunit 401 is configured to control the wireless communication unit 2303 to remain in the real network sleep mode, and control the acceleration detection unit 2306 to determine whether to enter the stationary state or the moving state according to the acceleration change rate and / or control the positioning unit 2305 to determine according to the speed.
[0070] The static control subunit 402 is configured to control the acceleration detection unit 2306 to determine whether to enter the moving state according to the acceleration change rate and control the positioning unit 2305 to determine according to the speed in the stationary state.
[0071] The dynamic control subunit 403 is configured to adjust the reporting time interval of the control positioning unit 2305 and the working mode of the wireless communication unit 2303 according to the acceleration change rate in the moving state, and control the acceleration detection unit 2306 to determine whether to enter the stationary state according to the acceleration change rate and control the positioning unit 2305 to determine according to the speed.
[0072] During the power-on initialization phase, the initialization control subunit 401 enables two-way communication between the wireless communication unit 2303 and the remote monitoring platform 4 and then maintains the real network sleep mode. It enables the positioning unit 2305 to analyze positioning data, enables the acceleration detection unit 2306 and calculates the acceleration change rate. If the positioning data cannot be analyzed, it directly enters the stationary state. Or if the speed obtained by analyzing the positioning data is less than the first speed threshold and the acceleration change rate is less than the first acceleration change rate threshold, it is determined that the wireless door lock is in the stationary state. Or if the speed obtained by analyzing the positioning data is greater than or equal to the first speed threshold, it is determined that the wireless door lock is in the moving state; the first speed threshold is 2 to 6 km / h, preferably 3 km / h, or 4 km / h, or 5 km / h, or 6 km / h. The first acceleration change rate is 0.05 to 0.3, preferably 0.05, or 0.1, or 0.2.
[0073] In the stationary state, the static control subunit 402 turns off the positioning unit 2305, enables the Bluetooth unit 2304 to connect to the user terminal 3, and after establishing two-way communication with the remote monitoring platform 4 through the user terminal 3, it turns off the wireless communication unit 2303; it calculates the acceleration change rate. If the wireless door lock is in a connected state with the user terminal 3 and the acceleration change rate is greater than the second acceleration change rate threshold, it enables the positioning unit 2305 to continuously monitor. If the speed is greater than or equal to the second speed threshold, it is determined that the wireless door lock is in the moving state, enables the wireless communication unit 2303 to enter the PSM mode, and turns off the Bluetooth unit 2304; the second speed threshold is 9 to 15 km / h, preferably 9 km / h, or 10 km / h, or 12 km / h, or 14 km / h. The second acceleration change rate threshold is 1.5 to 3, preferably 1.5, or 2, or 2.5.
[0074] In the PSM mode, the communication between the wireless door lock and the remote monitoring platform is one-way. Only the wireless door lock is allowed to report information through the wireless communication unit, and it is not allowed to receive information from the remote monitoring platform.
[0075] In the real network sleep mode, the communication between the wireless door lock and the remote monitoring platform is two-way. The wireless door lock is allowed to regularly report information through the wireless communication unit, and the reporting period can be adjusted as needed. At the same time, the wireless door lock is allowed to receive information from the remote monitoring platform.
[0076] When in the motion state, the dynamic control subunit 403 activates the positioning unit 2305 to report positioning information at a first time interval, calculates the acceleration change rate, turns off the acceleration detection unit 2306 when the acceleration change rate is greater than the third acceleration change rate threshold, reports positioning information at a second time interval, changes the wireless communication unit 2303 from the PSM mode to the sleep mode and regularly reports that the wireless door lock is in the motion state; calculates the acceleration based on the speed information of the positioning unit 2305, and monitors the acceleration value when the acceleration is greater than the first acceleration threshold; when the acceleration continuously remains less than 0 until the speed decreases to 0 and lasts for more than the first static time threshold, it enters the static state. The third acceleration change rate threshold is from 3 to 5, preferably 3, or 4, or 5. The first acceleration threshold is from 1 to 3, preferably 1, or 2, or 2.5.
[0077] The control circuit module 23 further includes an NFC unit 2307, and the NFC unit 2307 is configured to communicate with the user terminal 3, authenticate the user terminal 3, and notify the electronic unlocking mechanism 22 to drive the mechanical unlocking mechanism 21 to lock or unlock the U-shaped lock beam 1 according to the operation of the user terminal 3 after the authentication is passed; the initialization control subunit 401 is configured to activate the NFC unit 2307 and control the NFC unit 2307 to enter the ACD card detection mode during the power-on initialization stage, and wait for the user terminal 3 to perform the NFC card swiping operation for locking and unlocking.
[0078] The control circuit module 23 further includes a display screen 2308, and the display screen 2308 is configured to display the interaction status information when the Bluetooth unit 2304, the NFC unit 2307, and the wireless communication unit 2303 interact with the user terminal 3.
[0079] As Figure 5 shown, the power consumption control method of the wireless door lock includes the following steps:
[0080] Step S51, power-on initialization: control the wireless communication unit 2303 to remain in the real network sleep mode, and control the acceleration detection unit 2306 to determine whether to enter the static state or the motion state according to the acceleration change rate and / or control the positioning unit 2305 according to the speed;
[0081] Step S52, static control: in the static state, control the acceleration detection unit 2306 to determine whether to enter the motion state according to the acceleration change rate and control the positioning unit 2305 according to the speed;
[0082] Step S53, Dynamic Control: In the moving state, adjust the reporting time interval of the control positioning unit 2305 and the working mode of the wireless communication module according to the acceleration change rate, and control the acceleration detection unit 2306 to determine the entry into the stationary state according to the acceleration change rate and the control positioning unit 2305 according to the speed.
[0083] In step S51, the power-on initialization includes the following steps:
[0084] Turn on the wireless communication unit 2303 to establish two-way communication with the remote monitoring platform 4 and then remain in the real network sleep mode;
[0085] Turn on the positioning unit 2305 to analyze the positioning data;
[0086] Turn on the acceleration detection unit 2306 and calculate the acceleration change rate;
[0087] If the positioning data cannot be analyzed, directly enter the stationary state;
[0088] If the speed obtained by analyzing the positioning data is less than the first speed threshold and the acceleration change rate is less than the first acceleration change rate threshold, it is determined that the wireless door lock is in the stationary state; the first speed threshold is 2 to 6 km / h, preferably 3 km / h, or 4 km / h, or 5 km / h, or 6 km / h. The first acceleration change rate is 0.05 to 0.3, preferably 0.05, or 0.1, or 0.2.
[0089] If the speed obtained by analyzing the positioning data is greater than or equal to the first speed threshold, it is determined that the wireless door lock is in the moving state.
[0090] In step S51, the power-on initialization further includes:
[0091] Turn on the NFC unit 2307, control the NFC unit 2307 to enter the ACD card detection mode, and wait for the user terminal 3 to perform the NFC card swiping to execute the lock / unlock operation;
[0092] After authentication is passed, notify the electronic unlocking mechanism 22 to drive the mechanical unlocking mechanism 23 to lock or unlock the U-shaped lock beam 1 according to the operation of the user terminal 3.
[0093] In step S51, the power-on initialization further includes:
[0094] Turn on the wireless communication unit 2303 for SIM card verification, and after the verification is passed, establish a communication connection with the remote monitoring platform 4.
[0095] In step S52, the static control includes the following steps:
[0096] Turn off the positioning unit 2305;
[0097] Turn on the Bluetooth unit 2304 to connect to the user terminal 3, and close the wireless communication unit 2303 after establishing two-way communication with the remote monitoring platform 4 through the user terminal 3;
[0098] Calculate the acceleration change rate. If the wireless door lock is connected to the user terminal 3 and the acceleration change rate is greater than the second acceleration change rate threshold, turn on the positioning unit 2305; the second acceleration change rate threshold is 1.5 to 3, preferably 1.5, or 2, or 2.5.
[0099] Continuously monitor the speed. If the speed is greater than or equal to the second speed threshold, it is determined that the wireless door lock is in a moving state;
[0100] Turn on the wireless communication unit 2303 to enter the PSM mode; the second speed threshold is 9 to 15 kM / h, preferably 9 kM / h, or 10 kM / h, or 12 kM / h, or 14 kM / h.
[0101] Turn off the Bluetooth unit 2304.
[0102] In step S53, the dynamic control includes the following steps:
[0103] Turn on the positioning unit 2305 and report the positioning information at the first time interval;
[0104] Calculate the acceleration change rate. When the acceleration change rate is greater than the third acceleration change rate threshold, turn off the acceleration detection unit 2306; the third acceleration change rate threshold is 3 to 5, preferably 3, or 4, or 5.
[0105] The positioning unit 2305 reports the positioning information at the second time interval;
[0106] Change the wireless communication unit 2303 from the PSM mode to the sleep mode and regularly report that the wireless door lock is in a moving state;
[0107] Calculate the acceleration based on the speed information of the positioning unit 2305. When the acceleration is greater than the first acceleration threshold, monitor the acceleration value; when the acceleration continuously is less than 0 until the speed decreases to 0 and lasts for more than the first stationary time threshold, switch to the stationary state. The first acceleration threshold is 1 to 3, preferably 1, or 2, or 2.5.
[0108] Embodiment 1: Initialization control stage
[0109] As Figure 6 shown, the initialization control stage includes the following steps:
[0110] S601: Power on and initialize the control circuit module 23, turn off the positioning unit, where the positioning unit is a Beidou positioning unit or a GPS positioning unit; turn off the NFC unit and the acceleration sensor.
[0111] S602: Read the parameter information pre-stored in the Flash memory, including acceleration threshold information, speed threshold information, acceleration change rate threshold information, device information reporting intervals T1 and T2 in the moving state, information reporting interval T3 in the stationary state, and SIM card detection interval T4.
[0112] S603: Power on the Cat1 unit and the display screen.
[0113] S604: Initialize the Cat1 unit and send a SIM card query command to the Cat1 unit.
[0114] S605: Determine whether there is a SIM card. If there is a SIM card, enter S608.
[0115] S606: Power off the Cat1 unit, display on the display screen that there is no SIM card, and remind the user to insert the SIM card.
[0116] S607: Power on the Cat1 unit after T4 time and enter S604.
[0117] S608: Use the Cat1 unit to connect to the platform, set the Cat1 unit to enter the real network sleep mode, and enable two-way communication with the remote monitoring platform 4; in the real network sleep mode, communicate with the remote monitoring platform 4 at a preset time interval.
[0118] S609: Power on the NFC unit, set the NFC unit to enter the ACD card detection mode, and wait for the user to unlock or lock the door by NFC card swiping through the user terminal 3.
[0119] S610: Power on the Beidou positioning unit and analyze the positioning data.
[0120] S611: Power on and turn on the acceleration sensor.
[0121] S612: Read the acceleration values of the acceleration sensor in the x, y, and z directions, read continuously 10 times, and take the average of the ten times.
[0122] S613: Eliminate the data in the 10 acceleration values that are greater than 1.5 times the average value and less than 0.5 times the average value, and take the average of the remaining data to obtain gx, gy, and gz.
[0123] S614: Repeat steps S612 and S613 at intervals of 200 ms to obtain acceleration arrays gx1, gy1, gz1, gx2, gy2, gz2 ------- gxN, gyN, gzN.
[0124] S615: Calculate the acceleration change rates in the x, y, and z directions according to f(g) = |dg / dt|, where f(g) represents the acceleration change rate, g is the acceleration, and t is the time.
[0125] S616: Enter S614 and continue for 120 s.
[0126] S617: If the positioning data cannot be parsed in step S610, enter the stationary state;
[0127] S618: If the speed obtained by parsing the positioning data in step S610 is less than 5 kM / h and the acceleration change rate is less than 0.1, it is determined that the wireless door lock is in the stationary state;
[0128] S619: Determine that the device is in the moving state.
[0129] Embodiment 2: Stationary state control stage
[0130] As Figure 7 shown, the stationary state control stage includes the following steps:
[0131] S701: Record the last positioning data. If there is no positioning data, record it as 0, turn off the Beidou positioning unit, and turn on the Bluetooth unit;
[0132] S702: Wait for the APP on the user terminal to connect to the Bluetooth unit of the wireless door lock using Bluetooth.
[0133] S703: If no user connects to the wireless door lock using Bluetooth through the APP, enter S711.
[0134] S704: The user connects to the wireless door lock using Bluetooth through the APP.
[0135] S705: The control unit asks the APP on the user terminal whether it can connect to the Internet. If not, enter S711.
[0136] S706: If it can, the control unit notifies the APP that it will use the network connection of the APP to connect to the remote monitoring platform.
[0137] S707: The control unit notifies the remote monitoring platform through the established network connection that it will use the network connection of the APP on the user terminal to connect to the remote monitoring platform.
[0138] Connecting to the remote monitoring platform through the user terminal via Bluetooth can reduce the power consumption of the wireless door lock on the one hand, and on the other hand, it can also reduce traffic consumption and obtain better network connection quality.
[0139] S708: The control unit sends the registration information to the APP, and the APP transfers the registration information to the remote monitoring platform.
[0140] S709: The remote monitoring platform notifies the control unit of the wireless door lock through the Cat1 network that it has been successfully registered to the remote monitoring platform through the network of the user APP.
[0141] S710: The control unit actively disconnects the connection with the remote monitoring platform through the Cat1 network and shuts down the Cat1 unit.
[0142] Closing the Cat1 unit in the stationary state can reduce the power consumption, and the network connection is achieved through Bluetooth connection.
[0143] S711: The control unit waits for the remote monitoring platform to set parameters for the wireless door lock.
[0144] S712: Read the acceleration values of the acceleration sensor in the x, y, and z directions, read continuously 10 times, and take the average of the ten times;
[0145] S713: Eliminate the data in the 10 acceleration values that are greater than 1.5 times the average value and less than 0.5 times the average value, and take the average of the remaining data to obtain gx, gy, and gz;
[0146] S714: Repeat steps S712 and S713 at intervals of 200 ms to obtain the acceleration arrays gx1, gy1, gz1, gx2, gy2, gz2--------gxN, gyN, gzN.
[0147] S715: Calculate the change rate of the acceleration in the three directions according to f(g) = |dg / dt|, where f(g) represents the acceleration change rate, g is the acceleration, and t is the time.
[0148] S716: If the APP on the user terminal is in a connected state with the control module of the wireless door lock and the change rate of the acceleration is less than or equal to 2, enter S711. If the APP on the user terminal is not in a connected state with the control module of the wireless door lock and the change rate of the acceleration is less than or equal to 2, enter S702. If the APP on the user terminal is in a connected state with the control module of the wireless door lock and the change rate of the acceleration is greater than 2, enter S717. If the APP on the user terminal is in a connected state with the control module of the wireless door lock and the change rate of the acceleration is greater than 2, then enter S718.
[0149] S717: Turn on the Beidou positioning unit for 120 s. If positioning data cannot be parsed or the parsed speed is less than 10 km / h, turn off the Beidou positioning unit and proceed to S711; otherwise, proceed to S719.
[0150] S718: Turn on the Beidou positioning unit;
[0151] S719: Send an instruction to the Cat1 unit to put the Cat1 unit into the PSM mode, turn off the Bluetooth unit, turn off the NFC unit, turn off the display screen, and put the wireless door lock into the motion state.
[0152] Embodiment 3: Motion state control stage
[0153] As Figure 8 shown, the motion state control stage includes the following steps:
[0154] S801: Set the reporting interval of the Beidou positioning unit to T1 = 60 s;
[0155] S802: The control module of the wireless door lock reports the positioning status to the remote monitoring platform every T1. The reported information includes: indicating that the wireless door lock is in the motion state and cannot receive platform messages. At this time, the wireless communication unit, such as Cat1, turns on the PSM mode of periodic reporting and can report the positioning information and motion state information to the remote monitoring platform, and the remote monitoring platform can accurately know the running status and location information of the vehicle where the wireless door lock is located.
[0156] S803: Read the acceleration values of the acceleration sensor in the x, y, and z directions 10 times continuously and take the average of the ten times;
[0157] S804: Eliminate the data in the 10 acceleration values that are greater than 1.5 times the average value and less than 0.5 times the average value, and take the average of the remaining data to obtain gx, gy, and gz;
[0158] S805: Repeat steps S803 and S804 at intervals of 200 ms to obtain the acceleration arrays gx1, gy1, gz1, gx2, gy2, gz2--------gxN, gyN, gzN.
[0159] S806: Calculate the change rate of the acceleration in the three directions according to f(g) = |dg / dt|, where f(g) represents the acceleration change rate, g is the acceleration, and t is the time.
[0160] S807: If the rate of change of acceleration is greater than 3, turn off the acceleration sensor unit, set the reporting interval of the Beidou positioning unit to T2=1s, set the Cat1 unit from PSM mode to real network sleep mode, and receive messages from the remote monitoring platform. Report a message to the platform every T2. The message indicates that the device is in motion and can respond normally to platform messages; otherwise, enter S802.
[0161] When the acceleration change rate becomes larger, a more drastic speed change may have occurred, indicating that the vehicle where the wireless door lock is located is not in a stable operating state and an abnormal situation may have occurred. In this case, abnormal alarm information can also be reported and the information reporting cycle can be reduced so that the remote monitoring platform can be informed and check the vehicle operation status in a timely manner.
[0162] S808: Analyze the positioning data of the Beidou positioning unit to obtain speed information, and calculate acceleration A based on the speed information.
[0163] S809: If the absolute value of the acceleration is within 1 and the positive and negative values are evenly distributed, it is considered that the vehicle where the wireless door lock is located is in a stable running state, and the acceleration sensor unit is turned on to enter S802.
[0164] S810: If the acceleration is greater than 1, the vehicle is considered to be in an accelerating state and the process proceeds to S808.
[0165] S811: If the acceleration is continuously less than 0, the vehicle is considered to be in a deceleration state. If the speed is reduced to 0 and lasts for more than 5 minutes, the vehicle enters a stationary state. Otherwise, the process enters S802.
[0166] Embodiment 4: Using the wavelet KAN network model to determine the current state according to the speed and acceleration.
[0167] The structure of the wavelet KAN network is similar to the traditional multi-layer perceptron (MLP), but the weights are replaced by wavelet functions, and the nodes sum these wavelet functions. Choose appropriate wavelet basis functions, such as Daubechies, Symlets, etc. These wavelet basis functions can effectively capture the high-frequency and low-frequency components of the data. Use discrete wavelet transform (DWT) for multi-resolution analysis to avoid the repeated calculation problem of continuous wavelet transform (CWT).
[0168] Collect the acceleration and velocity data of the wireless door lock, which can reflect the motion state of the wireless door lock at different time points. Clean the collected data to remove noise and outliers to improve the data quality. Use wavelet transform to extract features of acceleration and velocity data to obtain features of different scales. Generate corresponding labels according to the actual motion state of the wireless door lock, such as "acceleration", "deceleration", "constant speed driving", "turning", "fault", etc. The data is divided into training set, validation set and test set.
[0169] During model training, the preprocessed data and labels are input into the Wavelet KAN network for training. During the training process, appropriate optimization algorithms (such as Adam, SGD, etc.) and loss functions (such as mean squared error, cross-entropy, etc.) are used to continuously adjust the model's parameters to minimize the error between the prediction results and the true labels. By adjusting the model's hyperparameters, such as learning rate, batch size, number of network layers, etc., the performance of the model is optimized. The trained model is validated using a validation set, and metrics such as accuracy, recall, F1 value, etc. of the model are evaluated to determine whether the performance of the model meets the requirements.
[0170] After training is completed, the model can be tested in a real scenario to observe the performance of the model in actual applications. Some test data can be collected, including the motion state data of wireless door locks in different scenarios, and these data are input into the model to check whether the prediction results of the model match the actual situation.
[0171] The trained model is deployed to the control system of the wireless door lock, such as in the control circuit module, to monitor the motion state of the wireless door lock in real time, and to issue a warning signal in a timely manner when an abnormal state is detected for real-time monitoring and warning, reminding the remote monitoring platform to take corresponding measures to improve security. And the motion state determined by the trained model can be used as an auxiliary reference for the wireless door lock states in Embodiments 1, 2, and 3 to enhance the accuracy of state judgment.
[0172] When collecting the acquired speed data, time series data is usually obtained through sensors (such as speedometers). The wavelet transform is used to decompose the speed data to extract features of different frequencies. Wavelet decomposition can capture the high-frequency and low-frequency components in the signal to help identify the noise and trends in the data. Threshold processing is performed on the high-frequency part (detail coefficients) after wavelet decomposition to remove noise, effectively retain the main features of the signal, and at the same time reduce the influence of noise. The denoised signal is recombined using the wavelet reconstruction algorithm to obtain clearer speed data, preserving the integrity and accuracy of the data. Key features of the reconstructed signal, such as mean, variance, main frequency, etc., are extracted for subsequent analysis and verification. The processed speed data is compared with the original data to verify the effects of denoising and feature extraction. The accuracy of the data can be evaluated by calculating error metrics (such as mean squared error).
[0173] By applying the present invention, the power consumption of the storage battery can be reduced while ensuring the normal operation of the wireless door lock by optimizing the opening and closing of various electronic units in the control circuit module. The control circuit module performs power consumption management on the wireless door lock in the stationary state and the moving state by controlling the opening and closing of the positioning unit, the wireless communication unit, the Bluetooth unit, and the acceleration detection unit. At the same time, by adjusting the reporting period of the positioning information obtained by the positioning unit, the power consumption and the accurate monitoring of the state of the wireless door lock can be taken into account.
[0174] In addition, according to an exemplary embodiment of the present invention, a computer-readable storage medium storing a computer program may also be provided. The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to execute the power consumption control method of the wireless door lock according to the exemplary embodiment of the present invention. The computer-readable recording medium is any data storage device that can store data read by a computer system. Examples of the computer-readable recording medium include: read-only memory, random access memory, compact disc read-only memory, magnetic tape, floppy disk, optical data storage device, and carrier wave (such as data transmission through the Internet via a wired or wireless transmission path).
[0175] In addition, according to an exemplary embodiment of the present invention, a computing device may also be provided. The computing device includes a processor and a memory. The memory is used to store a computer program. The computer program is executed by the processor to cause the processor to execute the computer program of the power consumption control method of the wireless door lock according to the exemplary embodiment of the present invention.
[0176] Although the present invention has been described in conjunction with various embodiments, however, in the process of implementing the claimed invention, those skilled in the art can understand and implement other variations of the disclosed embodiments by viewing the drawings, the disclosure content, and the like. In the specification, the term "comprising" does not exclude other components or steps, and "a" or "one" does not exclude a plurality of cases. A single processor or other unit can implement several functions listed in the specification. Certain measures are described in different embodiments, but this does not mean that these measures cannot be combined to produce good results.
[0177] Although the present invention has been described in conjunction with specific features and their embodiments, it is obvious that various modifications and combinations can be made without departing from the spirit and scope of the present invention. Accordingly, the present specification and the drawings are only exemplary descriptions of the present invention and are considered to have covered any and all modifications, variations, combinations, or equivalents within the scope of the present invention. Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the present invention and its equivalent technologies, the present invention is also intended to include these changes and modifications.
Claims
1. A wireless door lock, comprising a U-shaped lock beam (1) and a lock body (2), characterized in that the lock body (2) includes: a mechanical unlocking mechanism (21), an electronic unlocking mechanism (22), a control circuit module (23) and a storage battery (24). The storage battery (24) supplies power to the electronic unlocking mechanism (22) and the control circuit module (23). The control circuit module (23) is configured to communicate with an external user terminal (3) and / or a remote monitoring platform (4), and control the electronic unlocking mechanism (22) to drive the mechanical unlocking mechanism (21) to lock or unlock the U-shaped lock beam (1); the control circuit module (23) includes a control unit (2301), a storage unit (2302), a wireless communication unit (2303), a Bluetooth unit (2304), a positioning unit (2305), and an acceleration detection unit (2306); the control unit (2301) includes an initialization control subunit (401), a static control subunit (402), and a dynamic control subunit (403); the initialization control subunit (401) is configured to control the wireless communication unit (2303) to remain in the real network sleep mode, and control the acceleration detection unit (2306) to determine whether to enter the stationary state or the moving state according to the acceleration change rate and / or control the positioning unit (2305) to determine according to the speed; the static control subunit (402) is configured to, in the stationary state, control the acceleration detection unit (2306) to determine whether to enter the moving state according to the acceleration change rate and control the positioning unit (2305) to determine according to the speed; the dynamic control subunit (403) is configured to, in the moving state, adjust the reporting time interval of the positioning unit (2305) and the working mode of the wireless communication unit (2303) according to the acceleration change rate, and control the acceleration detection unit (2306) to determine whether to enter the stationary state according to the acceleration change rate and control the positioning unit (2305) to determine according to the speed.
2. The wireless door lock according to claim 1, characterized in that the initialization control subunit (401) is configured to, in the power-on initialization stage, turn on the wireless communication unit (2303) to establish two-way communication with the remote monitoring platform (4) and then remain in the real network sleep mode, turn on the positioning unit (2305) to parse the positioning data, turn on the acceleration detection unit (2306) and calculate the acceleration change rate. If the positioning data cannot be parsed, it directly enters the stationary state, or if the speed obtained by parsing the positioning data is less than the first speed threshold and the acceleration change rate is less than the first acceleration change rate threshold, it is determined that the wireless door lock is in the stationary state, or if the speed obtained by parsing the positioning data is greater than or equal to the first speed threshold, it is determined that the wireless door lock is in the moving state; The static control subunit (402) is configured to, in a stationary state, turn off the positioning unit (2305), turn on the Bluetooth unit (2304) to connect to the user terminal (3), establish two-way communication with the remote monitoring platform (4) through the user terminal (3), and then turn off the wireless communication unit (2303); calculate the acceleration change rate. If the wireless door lock is in a connected state with the user terminal (3) and the acceleration change rate is greater than the second acceleration change rate threshold, turn on the positioning unit (2305) to continuously monitor the speed greater than or equal to the second speed threshold, then determine that the wireless door lock is in a moving state, turn on the wireless communication unit (2303) to enter the PSM mode, and turn off the Bluetooth unit (2304). The dynamic control subunit (403) is configured to, in a moving state, turn on the positioning unit (2305) to report positioning information at a first time interval, calculate the acceleration change rate, turn off the acceleration detection unit (2306) when the acceleration change rate is greater than the third acceleration change rate threshold, report positioning information at a second time interval, change the wireless communication unit (2303) from the PSM mode to the sleep mode and regularly report that the wireless door lock is in a moving state; calculate the acceleration based on the speed information of the positioning unit (2305), and monitor the acceleration value when the acceleration is greater than the first acceleration threshold; when the acceleration continuously remains less than 0 until the speed decreases to 0 and lasts for more than the first stationary time threshold, then transition to the stationary state.
3. The wireless door lock according to claim 1, characterized in that, The control circuit module (23) further includes an NFC unit (2307). The NFC unit (2307) is configured to communicate and connect with the user terminal (3), authenticate the user terminal (3), and after successful authentication, notify the electronic unlocking mechanism (22) according to the operation of the user terminal (3) to drive the mechanical unlocking mechanism (21) to lock or unlock the U-shaped lock beam (1). The initialization control subunit (401) is configured to, in the power-on initialization stage, turn on the NFC unit (2307), control the NFC unit (2307) to enter the ACD card detection mode, and wait for the user terminal (3) to perform the NFC card swiping operation for locking or unlocking the door.
4. The wireless door lock according to claim 3, wherein The control circuit module (23) further includes a display screen (2308). The display screen (2308) is configured to display the interaction status information when the Bluetooth unit (2304), NFC unit (2307), and wireless communication unit (2303) interact with the user terminal (3).
5. A power consumption control method for the wireless door lock according to claims 1 to 4, characterized in that, Including the following steps: Power-on initialization: Control the wireless communication unit (2303) to remain in the real network sleep mode, and control the acceleration detection unit (2306) to determine whether to enter the stationary state or the moving state according to the acceleration change rate and / or control the positioning unit (2305) according to the speed. Static control: In the stationary state, control the acceleration detection unit (2306) to determine whether to enter the moving state according to the acceleration change rate and control the positioning unit (2305) according to the speed. Dynamic control: In the moving state, adjust the reporting time interval of the control positioning unit (2305) and the working mode of the wireless communication module according to the acceleration change rate, and control the acceleration detection unit (2306) and the control positioning unit (2305) to determine the entry into the stationary state according to the acceleration change rate and speed.
6. The power consumption control method according to claim 5, characterized in that, The power-on initialization includes the following steps: Turn on the wireless communication unit (2303) to establish two-way communication with the remote monitoring platform (4) and then remain in the real network sleep mode; Turn on the positioning unit (2305) to parse the positioning data; Turn on the acceleration detection unit (2306) and calculate the acceleration change rate; If the positioning data cannot be parsed, directly enter the stationary state; If the speed obtained by parsing the positioning data is less than the first speed threshold and the acceleration change rate is less than the first acceleration change rate threshold, it is determined that the wireless door lock is in the stationary state; If the speed obtained by parsing the positioning data is greater than or equal to the first speed threshold, it is determined that the wireless door lock is in the moving state.
7. The power consumption control method according to claim 6, wherein The power-on initialization further includes: Turn on the NFC unit (2307), control the NFC unit (2307) to enter the ACD card detection mode, and wait for the user terminal (3) to perform the NFC card swiping operation for unlocking or locking; After authentication is passed, notify the electronic unlocking mechanism (22) according to the operation of the user terminal (3) to drive the mechanical unlocking mechanism (23) to lock or unlock the U-shaped lock beam (1).
8. The power consumption control method according to claim 6, wherein The power-on initialization further includes: Turn on the wireless communication unit (2303) for SIM card verification, and after the verification is passed, establish a communication connection with the remote monitoring platform (4).
9. The power consumption control method according to claim 5, wherein The static control includes the following steps: Turn off the positioning unit (2305); Turn on the Bluetooth unit (2304) to connect to the user terminal (3), establish two-way communication with the remote monitoring platform (4) through the user terminal (3), and then turn off the wireless communication unit (2303); Calculate the acceleration change rate. If the wireless door lock is connected to the user terminal (3) and the acceleration change rate is greater than the second acceleration change rate threshold, turn on the positioning unit (2305); Continuously monitor the speed. If the speed is greater than or equal to the second speed threshold, it is determined that the wireless door lock is in the moving state; Turn on the wireless communication unit (2303) to enter the PSM mode; Turn off the Bluetooth unit (2304).
10. The power consumption control method according to claim 5, characterized in that, The dynamic control includes the following steps: Turn on the positioning unit (2305) and report the positioning information at the first time interval; Calculate the acceleration change rate. When the acceleration change rate is greater than the third acceleration change rate threshold, turn off the acceleration detection unit (2306); The positioning unit (2305) reports the positioning information at the second time interval; Change the wireless communication unit (2303) from the PSM mode to the sleep mode and regularly report that the wireless door lock is in the moving state; Calculate the acceleration according to the speed information of the positioning unit (2305). When the acceleration is greater than the first acceleration threshold, monitor the acceleration value; when the acceleration continuously is less than 0 until the speed decreases to 0 and lasts for more than the first stationary time threshold, switch to the stationary state.