Card lock with MOS password mode

CN224861932UActive Publication Date: 2026-10-16QIDOTS SECURITY TECH CO LTD (FOSHAN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202522682760.1
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-12-18
Publication Date
2026-10-16
Estimated Expiration
2035-12-18

AI Technical Summary

Technical Problem

目前市面上常见的刷卡锁,其工作原理通常是通过预先在锁具内部存储登记卡片的信息,当用户使用登记过的卡片在刷卡区进行刷卡操作时,锁具识别到匹配的卡片信息后,控制锁体执行开锁动作;而若使用未登记的卡片刷卡,由于锁具内无对应的卡片信息,无法完成识别,进而不能实现开锁

Benefits of technology

[0016] This invention has at least the following beneficial effects: It identifies and reads cards through a card reader module, and judges the card swiping operation through a pressure sensing unit, a prompt module, and a counting module, thereby entering the MOS password mode. The MOS password mode allows unregistered cards to unlock the lock. This solves the problem of inconvenient unlocking when the registered card is lost. This invention is mainly used in the field of smart lock technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN224861932U_ABST
    Figure CN224861932U_ABST
Patent Text Reader

Abstract

The utility model discloses a card -swiping lock with MOS password mode, include: lock body, power module, control module, timing module, storage module, read card module, motor drive module, pressure response unit and prompt module, read card module is used for identifying card -swiping operation to whether the identification of card is registered card, when the identification is not registered card and the staying time and card -swiping frequency meet the set condition, then send first signal to control module, control module enters MOS password mode according to first signal, in the MOS password mode: prompt module is used for sending prompt sound and prompt light, and control timing module starts timing, and the target password that record card -swiping frequency sequence and interval time sequence recorded by timing module constitute, when target password is same with reference password, then control motor drive module works, drives lock body to execute the action of unlocking. Solveed the problem that when registered card loses, cannot conveniently unlock, mainly used in the technical field of intelligent lock.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This utility model relates to the field of smart lock technology, specifically to a card swipe lock with MOS password mode. Background Technology

[0002] Card-swipe locks, as a convenient type of lock, are widely used in daily life and work due to their ability to unlock without the need for traditional keys, simply by swiping a card. Currently, most card-swipe locks on the market work by pre-storing registered card information inside the lock. When a user swipes a registered card in the card reader area, the lock recognizes the matching card information and controls the lock body to unlock. However, if an unregistered card is used, the lock cannot recognize the card because there is no corresponding card information in its memory, thus preventing unlocking.

[0003] However, this traditional card-swipe lock has obvious drawbacks: when a user's pre-registered card is accidentally lost, since there are no other effective unlocking methods, the user will be unable to open the lock and can only contact a professional locksmith to unlock it or replace the lock, which not only causes great inconvenience to the user but also increases additional expenses; at the same time, in some emergency situations, such as when there are elderly people or children at home who suddenly need to be brought in for emergency treatment, the problem of being unable to unlock the door due to lost cards may lead to more serious consequences, failing to meet the user's unlocking needs in special scenarios.

[0004] To address the issue of lost cards preventing unlocking, those skilled in the art have explored various solutions. For example, adding a mechanical keyhole as a backup unlocking method requires the user to carry an additional mechanical key, negating the convenience of card-swipe locks. Furthermore, the mechanical key itself is susceptible to loss or duplication. Another solution employs remote authorization unlocking, but this relies on network signal strength and cannot function properly in environments with poor or interrupted network coverage, limiting its applicability. Therefore, a new technical solution is urgently needed to address the problem of traditional card-swipe locks being unable to unlock conveniently when a card is lost. Utility Model Content

[0005] This invention provides a card swipe lock with MOS password mode to solve one or more technical problems existing in the prior art, and at least provides a beneficial option or creates conditions.

[0006] This utility model provides a card reader lock with MOS password mode, including: a lock body, a power module, a control module, a timing module, a storage module, a card reader module, a motor drive module, a pressure sensing unit, and a prompt module; the power module is used to provide power to the control module, the timing module, the storage module, the card reader module, the motor drive module, and the prompt module; The card reader module is installed on the outer panel of the lock body; the pressure sensing unit is used to sense whether the card is placed in the card swiping area; the card reader module is used to identify card swiping operations from the outer panel and to identify whether the card in the card swiping operation is a registered card. When the card is not identified as a registered card and the dwell time and number of card swiping times meet the set conditions, a first signal is sent to the control module. The control module enters the MOS password mode according to the first signal; in the MOS password mode: the prompt module is used to emit a prompt sound and a prompt light, and control the timing module to start timing; the actual password composed of the sequence of card swipes and the interval time sequence recorded by the timing module is recorded, and the actual password is recorded as the target password; The control module retrieves a reference password from the storage module and compares the target password with the reference password. If the target password is the same as the reference password, the control module controls the motor drive module to work and drive the lock body to perform the unlocking action.

[0007] Furthermore, the power module includes: a voltage regulator chip, a power supply node, a ground node, a power supply input node, a thirteenth capacitor, a fifteenth capacitor, a first voltage regulator diode, and a second voltage regulator diode; The power input node is connected to the positive terminal of an external energy storage battery, and the ground node is connected to the negative terminal of an external energy storage battery. The power input node is connected to the negative terminal of the first Zener diode, one end of the thirteenth capacitor, and the input terminal of the voltage regulator chip. The output terminal of the voltage regulator chip is connected to one end of the fifteenth capacitor, the negative terminal of the second Zener diode, and the power input node. The positive terminal of the first Zener diode, the other end of the thirteenth capacitor, the other end of the fifteenth capacitor, the positive terminal of the second Zener diode, and the ground terminal of the voltage regulator chip are connected to the ground node.

[0008] Furthermore, the motor drive module includes: a drive chip, a first resistor, a second resistor, a first capacitor, and a second capacitor; the first input terminal of the drive chip is connected to one end of the first resistor, and the other end of the first resistor is connected to the first GPIO interface of the control module. The second input terminal of the driver chip is connected to one end of the second resistor, and the other end of the first resistor is connected to the second GPIO interface of the control module; the power supply terminal of the driver chip is connected to one end of the first capacitor and the power supply input node respectively; the first output terminal of the driver chip is connected to one end of the second capacitor and one end of the external actuator motor; the second output terminal of the driver chip is connected to the other end of the second capacitor and the other end of the external actuator motor respectively; the ground terminal of the driver chip and the other end of the first capacitor are connected to the ground node respectively.

[0009] Furthermore, the card reader module includes: a card reader chip, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, a third capacitor, a fourth capacitor, a fifth capacitor, a sixth capacitor, a seventh capacitor, an eighth capacitor, a ninth capacitor, a tenth capacitor, an eleventh capacitor, a twelfth capacitor, an inductor, a crystal oscillator, and an antenna; The 23rd pin of the card reader chip is connected to the third GPIO interface of the control module, the 24th pin of the card reader chip is connected to the fourth GPIO interface of the control module, the 29th pin of the card reader chip is connected to the fifth GPIO interface of the control module, the 30th pin of the card reader chip is connected to the sixth GPIO interface of the control module, the 31st pin of the card reader chip is connected to the seventh GPIO interface of the control module, and the sixth pin of the card reader chip is connected to the eighth GPIO interface of the control module. The twenty-second pin of the card reader chip is connected to one end of the third capacitor and one end of the crystal oscillator, respectively; the twenty-first pin of the card reader chip is connected to the other end of the crystal oscillator and one end of the fourth capacitor, respectively; the seventeenth pin of the card reader chip is connected to one end of the third resistor and one end of the fourth resistor, respectively; and the sixteenth pin of the card reader chip is connected to the other end of the fourth resistor and one end of the eleventh capacitor, respectively. The thirteenth pin of the card reader chip is connected to one end of an inductor; the third pin of the card reader chip is connected to its second pin and one end of the fifth capacitor, respectively; the first pin of the card reader chip is connected to one end of a sixth resistor; the thirty-second pin of the card reader chip is connected to one end of a fifth resistor; the twenty-fifth, twenty-sixth, twenty-seventh, twenty-eighth, second, ninth, twelfth, and fifteenth pins of the card reader chip are respectively connected to a power supply node. The other end of the third resistor is connected to one end of the twelfth capacitor, and the other end of the twelfth capacitor is connected to one end of the ninth capacitor, one end of the eighth capacitor, one end of the tenth capacitor, and one end of the seventh resistor; the other end of the seventh resistor is connected to one end of the antenna. The other end of the inductor is connected to the other end of the ninth capacitor and one end of the seventh capacitor, respectively; the thirty-third, fourth, fifth, tenth, fourteenth and eighteenth pins of the card reader chip are connected to the ground node, respectively; the other ends of the sixth resistor, the fifth capacitor, the sixth capacitor, the seventh capacitor, the eighth capacitor, the tenth capacitor, the third capacitor, the fourth capacitor, the eleventh capacitor and the antenna are connected to the ground node, respectively.

[0010] Furthermore, the power module also includes a fourteenth capacitor, one end of which is connected to the power input node, and the other end of which is connected to the ground node.

[0011] Furthermore, the power module also includes a sixteenth capacitor, one end of which is connected to the power supply node and the other end of which is connected to the ground node.

[0012] Furthermore, the timing module adopts a DS3231 real-time clock module, which is connected to the control module via the I2C communication protocol.

[0013] Furthermore, the storage module uses an AT24C64 EEPROM storage chip, which is connected to the control module via the I2C communication protocol.

[0014] Furthermore, the control module is a minimum control system with a microcontroller as its core.

[0015] Furthermore, the microcontroller is an STM32F103C8T6.

[0016] This invention has at least the following beneficial effects: It identifies and reads cards through a card reader module, and judges the card swiping operation through a pressure sensing unit, a prompt module, and a counting module, thereby entering the MOS password mode. The MOS password mode allows unregistered cards to unlock the lock. This solves the problem of inconvenient unlocking when the registered card is lost. This invention is mainly used in the field of smart lock technology. Attached Figure Description

[0017] The accompanying drawings are provided to further understand the technical solution of this utility model and constitute a part of the specification. They are used together with the embodiments of this utility model to explain the technical solution of this utility model, and do not constitute a limitation on the technical solution of this utility model.

[0018] Figure 1 This is a schematic diagram of the module connection structure of the card-swipe electronic lock; Figure 2 This is a schematic diagram of the circuit connection structure of the card reader module; Figure 3 This is a schematic diagram of the circuit connection structure of the motor drive module. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this utility model clearer, the present utility model will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this utility model and are not intended to limit this utility model.

[0020] It should be noted that although functional modules are divided in the system diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the system or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0021] First, let's analyze some of the terms that appear.

[0022] GPIO, short for General-Purpose Input / Output, is a programmable hardware interface whose function is not fixed and whose operating mode can be controlled by software.

[0023] A microcontroller is a chip that integrates all the core components of a microcomputer. It's like a super-miniature computer packaged in a single chip, specifically designed to control and execute specific tasks.

[0024] refer to Figure 1 , Figure 2 and Figure 3 , Figure 1 This is a schematic diagram of the module connection structure of the card-swipe electronic lock. Figure 2 This is a schematic diagram of the circuit connection structure of the card reader module. Figure 3 This is a schematic diagram of the circuit connection structure of the motor drive module.

[0025] This application provides a card reader lock with MOS password mode, including: lock body, power module 101, control module 102, timing module 107, storage module 104, card reader module 108, motor drive module 103, pressure sensing unit 105 and prompt module 106.

[0026] The power module 101 provides power to the control module 102, timing module 107, storage module 104, card reader module 108, motor drive module 103, and prompt module 106; the card reader module 108 is located on the outer panel of the lock body. The pressure sensing unit 105 is used to sense whether a card is placed in the card reader area.

[0027] The control module 102 is a minimal control system based on a microcontroller. In this specific embodiment, the microcontroller used is an STM32F103C8T6. The timing module 107 uses a DS3231 real-time clock module, which is connected to the control module 102 via the I2C communication protocol. The storage module 104 uses an AT24C64 EEPROM memory chip, which is also connected to the control module 102 via the I2C communication protocol.

[0028] The card reader module 108 is used to identify card swiping operations from the outer panel and to identify whether the card in the card swiping operation is a registered card. If the card is not a registered card and the dwell time and number of card swiping operations meet the set conditions, a first signal is sent to the control module 102.

[0029] For the power module 101, the power module 101 includes: a voltage regulator chip U1, a power supply node VDD_3.3V, a ground node, a power supply input node VCC, a thirteenth capacitor C13, a fifteenth capacitor C15, a first Zener diode D1, and a second Zener diode D2. The power supply input node VCC is connected to the positive terminal of an external energy storage battery, and the ground node is connected to the negative terminal of an external energy storage battery.

[0030] The power input node VCC is connected to the negative terminal of the first Zener diode D1, one end of the thirteenth capacitor C13, and the input terminal of the voltage regulator chip U1, respectively. The output terminal of the voltage regulator chip U1 is connected to one end of the fifteenth capacitor C15, the negative terminal of the second Zener diode D2, and the power supply node VDD_3.3V, respectively.

[0031] The positive terminal of the first Zener diode D1, the other end of the thirteenth capacitor C13, the other end of the fifteenth capacitor C15, the positive terminal of the second Zener diode D2, and the ground terminal of the voltage regulator chip U1 are respectively connected to the ground node.

[0032] In some further embodiments, the power module 101 further includes: a fourteenth capacitor C14, one end of which is connected to the power input node VCC, and the other end of which is connected to the ground node. The power module 101 also includes: a sixteenth capacitor C16, one end of which is connected to the power supply node VDD_3.3V, and the other end of which is connected to the ground node.

[0033] For the motor drive module 103, the motor drive module 103 includes: a drive chip U2, a first resistor R1, a second resistor R2, a first capacitor C1 and a second capacitor C2; the first input terminal of the drive chip U2 is connected to one end of the first resistor R1, and the other end of the first resistor R1 is connected to the first GPIO interface of the control module 102.

[0034] The second input terminal of the driver chip U2 is connected to one end of the second resistor R2, and the other end of the first resistor R1 is connected to the second GPIO interface of the control module 102; the power supply terminal of the driver chip U2 is connected to one end of the first capacitor C1 and the power supply input node VCC respectively; the first output terminal of the driver chip U2 is connected to one end of the second capacitor C2 and one end of the external actuator motor; the second output terminal of the driver chip U2 is connected to the other end of the second capacitor C2 and the other end of the external actuator motor respectively; the ground terminal of the driver chip U2 and the other end of the first capacitor C1 are respectively connected to the ground node.

[0035] The overall circuit structure of the card reader module 108 includes: card reader chip U3, third resistor R3, fourth resistor R4, fifth resistor R5, sixth resistor R6, seventh resistor R7, third capacitor C3, fourth capacitor C4, fifth capacitor C5, sixth capacitor C6, seventh capacitor C7, eighth capacitor C8, ninth capacitor C9, tenth capacitor C10, eleventh capacitor C11, twelfth capacitor C12, inductor L1, crystal oscillator X1, and antenna ANT.

[0036] The 23rd pin of the card reader chip U3 is connected to the third GPIO interface of the control module 102, the 24th pin of the card reader chip U3 is connected to the fourth GPIO interface of the control module 102, the 29th pin of the card reader chip U3 is connected to the fifth GPIO interface of the control module 102, the 30th pin of the card reader chip U3 is connected to the sixth GPIO interface of the control module 102, the 31st pin of the card reader chip U3 is connected to the seventh GPIO interface of the control module 102, and the sixth pin of the card reader chip U3 is connected to the eighth GPIO interface of the control module 102.

[0037] The twenty-second pin of the card reader chip U3 is connected to one end of the third capacitor C3 and one end of the crystal oscillator X1, and the twenty-first pin of the card reader chip U3 is connected to the other end of the crystal oscillator X1 and one end of the fourth capacitor C4.

[0038] The seventeenth pin of the card reader chip U3 is connected to one end of the third resistor R3 and one end of the fourth resistor R4; the sixteenth pin of the card reader chip U3 is connected to the other end of the fourth resistor R4 and one end of the eleventh capacitor C11.

[0039] The thirteenth pin of the card reader chip U3 is connected to one end of the inductor L1, and the third pin of the card reader chip U3 is connected to its second pin and one end of the fifth capacitor C5 respectively; the first pin of the card reader chip U3 is connected to one end of the sixth resistor R6, and the thirty-second pin of the card reader chip U3 is connected to one end of the fifth resistor R5.

[0040] The 25th, 26th, 27th, 28th, 2nd, 9th, 12th, and 15th pins of the card reader chip U3 are respectively connected to the power supply node VDD_3.3V.

[0041] The other end of the third resistor R3 is connected to one end of the twelfth capacitor C12. The other end of the twelfth capacitor C12 is connected to one end of the ninth capacitor C9, one end of the eighth capacitor C8, one end of the tenth capacitor C10, and one end of the seventh resistor R7. The other end of the seventh resistor R7 is connected to one end of the antenna ANT.

[0042] The other end of the inductor L1 is connected to the other end of the ninth capacitor C9 and one end of the seventh capacitor C7, respectively. The thirty-third, fourth, fifth, tenth, fourteenth and eighteenth pins of the card reader chip U3 are connected to the ground node, respectively.

[0043] The other ends of the sixth resistor R6, the fifth capacitor C5, the sixth capacitor C6, the seventh capacitor C7, the eighth capacitor C8, the tenth capacitor C10, the third capacitor C3, the fourth capacitor C4, the eleventh capacitor C11, and the antenna ANT are respectively connected to the ground node.

[0044] The card reader chip U3 uses the WS1850T. The antenna ANT is used to sense card swiping operations from the outer panel, generating signal changes. The card reader chip U3 identifies and reads the RFID card based on these signal changes.

[0045] The control module 102 enters the MOS password mode according to the first signal. In the MOS password mode: the prompt module 106 emits a prompt sound and a prompt light, and controls the timing module 107 to start timing; the actual password is composed of the sequence of card swipes and the interval time sequence recorded by the timing module 107, and the actual password is recorded as the target password. The control module 102 retrieves a reference password from the storage module 104, compares the target password with the reference password, and if the target password is the same as the reference password, it controls the motor drive module 103 to work, driving the lock body to perform the unlocking action.

[0046] The MOS cryptographic mode is a pre-set program, and the execution steps of this pre-defined program are predetermined. For ease of explanation, this specific embodiment uses one of the pre-set MOS cryptographic modes for illustration.

[0047] During operation, the card reader module 108 can read the ID information in the card and transmit the read ID information to the control module 102. The control module 102 compares the obtained ID information with the registered card ID information stored in the storage module 104 to determine whether the card is a registered card.

[0048] In some further specific embodiments, a pressure sensing unit 105 is provided on the outer panel of the lock body, the pressure sensing unit 105 being used to sense whether the card is placed in the card swiping area.

[0049] The pressure sensing unit 105 uses a thin-film pressure sensor and is installed in the card reader area. When the card is placed in the card reader area, it will generate pressure on the pressure sensing unit 105. The pressure sensing unit 105 transmits the pressure signal to the control module 102 to help determine the card's dwell state in the card reader area and avoids the accidental triggering of related functions due to the card accidentally swiping across the card reader area (without generating continuous pressure).

[0050] When the control module 102 determines that the current card swipe is an unregistered card, it sends a timing start signal to the timing module 107, and the timing module 107 starts recording the dwell time of the unregistered card in the card swipe area.

[0051] In MOS password mode, after each complete card swipe operation is detected (i.e., the card touches the card swipe area and generates a valid pressure signal, and then leaves the card swipe area), the control module 102 sends an interval timing start signal to the timing module 107. The timing module 107 starts recording the interval time before the next card swipe operation and feeds back the timing data to the control module 102 in real time.

[0052] The storage module 104 is connected to the control module 102 via the I2C communication protocol. Internally, it is divided into two storage areas. One area stores the ID information of registered cards, with a maximum capacity of 50 cards. The other area stores the preset MOS password. The MOS password is stored in data groups, each group including the number of card swipes and the interval time. For example, if the preset MOS password is "1 - 10 seconds - 2 - 10 seconds - 3", then the stored data groups are [1,10],[2,10],[3]. The last data group does not need to record the interval time.

[0053] After a user completes a set of card swiping operations (e.g., performing "1 swipe - 10-second interval - 2 swipe - 10-second interval - 3 swipes" according to a preset password), the actual card swiping sequence (e.g., [1,2,3]) and interval time sequence (e.g., [10,10]) of the control module 102 form the actual password, which is compared with the preset MOS password in the storage module 104. If the comparison matches, the control module 102 sends an unlocking signal to the lock body motor drive module 103 and simultaneously sends a password correct prompt signal to the prompt module 106. If the comparison does not match, the control module 102 sends a password error prompt signal to the prompt module 106 and records the number of errors. When the number of errors reaches 3, the control module 102 controls the card swipe lock to enter a 5-minute locking state, during which it does not respond to any signals transmitted by the card reader module 108. After 5 minutes, the locking state is automatically released, and the number of errors is cleared to zero.

[0054] The prompting module 106 includes a buzzer and LED indicators. The buzzer is an active buzzer, connected to the control module 102 via a GPIO port. The control module 102 controls the buzzer to emit different audible prompts by outputting level signals of different frequencies and durations. The LED indicators are tri-color LEDs (red, green, and blue), with three GPIO ports controlling the on / off state of each color. The specific prompting logic of the prompting module 106 is as follows: MOS password mode trigger: The buzzer emits two short beeps (each lasting 0.2 seconds, with an interval of 0.3 seconds), and the green LED flashes twice (on for 0.2 seconds and off for 0.3 seconds each time).

[0055] Card swipe confirmation: Each time a card swipe operation is detected, the buzzer emits a short beep (lasting 0.2 seconds), and the green LED light illuminates once (lasting 0.2 seconds).

[0056] Password correct: The buzzer emits three long beeps (each lasting 0.5 seconds, with an interval of 0.3 seconds), and the green LED light stays on for 3 seconds.

[0057] Incorrect password: The buzzer emits a long sound (lasting 0.5 seconds), and the red LED light illuminates once (lasting 0.5 seconds).

[0058] Locked state: The buzzer emits two long beeps (each lasting 0.5 seconds, with an interval of 0.3 seconds), followed by a long beep every 1 minute, and the red LED flashes once every 2 seconds (on for 0.2 seconds, off for 1.8 seconds).

[0059] Password change mode triggered: The buzzer emits four short beeps (each lasting 0.2 seconds, with an interval of 0.3 seconds), and the blue LED flashes (on for 0.2 seconds, off for 0.3 seconds).

[0060] Password changed: The buzzer emits three short beeps (each lasting 0.2 seconds, with an interval of 0.3 seconds), and the blue LED light stays on for 2 seconds.

[0061] In some further specific embodiments, a password setting module is also provided.

[0062] The password setting module uses a separate button located on the inner side panel of the lock body (operable only from inside the door) and is connected to the GPIO port of the control module 102. The user needs to use a registered card inside the door and swipe it three times consecutively within 10 seconds. Upon detecting this operation, the control module 102 determines that the password change mode has been triggered and sends a password change mode trigger prompt to the prompt module 106. At this time, the user uses any unregistered card outside the door to swipe the card according to the new MOS password (e.g., swipe twice, swipe once after a 10-second interval, then swipe four times after another 10-second interval). The control module 102 records the sequence of card swipes and the interval time sequence. After the user completes the last card swipe and after a 10-second interval, it determines that the user has completed the new password setting, stores the new password data in the storage module 104, overwriting the original MOS password, and sends a password modification completion prompt to the prompt module 106, exiting the password modification mode. If the user does not perform any card swipe operation within 30 seconds after triggering the password modification mode, the control module 102 automatically exits the password modification mode, the sound prompt module 106 emits a long tone, and the light prompt module 106 lights up a red LED once.

[0063] This invention uses a card reader module 108 to identify and read cards, and a pressure sensing unit 105, a prompting module 106, and a counting module to determine the card swiping operation, thereby entering the MOS password mode. The MOS password mode allows unregistered cards to unlock the lock, solving the problem of inconvenient unlocking when a registered card is lost.

[0064] Although the description of this application has been quite detailed and particularly focused on several described embodiments, it is not intended to limit itself to any of these details or embodiments or any particular embodiment. Rather, it should be considered as effectively covering the intended scope of this application by referring to the appended claims and taking into account the broad possible interpretations of these claims provided by the prior art. Furthermore, the foregoing description of this application with respect to embodiments foreseeable by the inventor is intended to provide a useful description, and non-substantial modifications to this application that have not yet been foreseen may still represent equivalent modifications.

Claims

1. A card reader lock with MOS password mode, characterized in that, include: The lock body comprises a power module, a control module, a timing module, a storage module, a card reader module, a motor drive module, a pressure sensing unit, and a notification module; the power module provides electrical energy to the control module, timing module, storage module, card reader module, motor drive module, and notification module. The card reader module is installed on the outer panel of the lock body; the pressure sensing unit is used to sense whether the card is placed in the card swiping area; the card reader module is used to identify card swiping operations from the outer panel and to identify whether the card in the card swiping operation is a registered card. When the card is not identified as a registered card and the dwell time and number of card swiping times meet the set conditions, a first signal is sent to the control module. The control module enters the MOS password mode according to the first signal; in the MOS password mode: the prompt module is used to emit a prompt sound and a prompt light, and control the timing module to start timing; the actual password composed of the sequence of card swipes and the interval time sequence recorded by the timing module is recorded, and the actual password is recorded as the target password; The control module retrieves a reference password from the storage module and compares the target password with the reference password. If the target password is the same as the reference password, the control module controls the motor drive module to work and drive the lock body to perform the unlocking action.

2. A card reader lock with MOS password mode according to claim 1, characterized in that, The power module includes: a voltage regulator chip, a power supply node, a ground node, a power supply input node, a thirteenth capacitor, a fifteenth capacitor, a first voltage regulator diode, and a second voltage regulator diode; the power supply input node is connected to the positive terminal of an external energy storage battery, and the ground node is connected to the negative terminal of an external energy storage battery. The power supply input node is connected to the negative terminal of the first Zener diode, one end of the thirteenth capacitor, and the input terminal of the voltage regulator chip, respectively. The output terminal of the voltage regulator chip is connected to one end of the fifteenth capacitor, the negative terminal of the second Zener diode, and the power supply node, respectively. The positive terminal of the first Zener diode, the other end of the thirteenth capacitor, the other end of the fifteenth capacitor, the positive terminal of the second Zener diode, and the ground terminal of the voltage regulator chip are connected to the ground node, respectively.

3. A card reader lock with MOS password mode according to claim 2, characterized in that, The motor drive module includes: a drive chip, a first resistor, a second resistor, a first capacitor, and a second capacitor; the first input terminal of the drive chip is connected to one end of the first resistor, and the other end of the first resistor is connected to the first GPIO interface of the control module. The second input terminal of the driver chip is connected to one end of the second resistor, and the other end of the first resistor is connected to the second GPIO interface of the control module; the power supply terminal of the driver chip is connected to one end of the first capacitor and the power supply input node respectively; the first output terminal of the driver chip is connected to one end of the second capacitor and one end of the external actuator motor; the second output terminal of the driver chip is connected to the other end of the second capacitor and the other end of the external actuator motor respectively; the ground terminal of the driver chip and the other end of the first capacitor are connected to the ground node respectively.

4. A card reader lock with MOS password mode according to claim 2, characterized in that, The card reader module includes: a card reader chip, a third resistor, a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, a third capacitor, a fourth capacitor, a fifth capacitor, a sixth capacitor, a seventh capacitor, an eighth capacitor, a ninth capacitor, a tenth capacitor, an eleventh capacitor, a twelfth capacitor, an inductor, a crystal oscillator, and an antenna; The 23rd pin of the card reader chip is connected to the third GPIO interface of the control module, the 24th pin of the card reader chip is connected to the fourth GPIO interface of the control module, the 29th pin of the card reader chip is connected to the fifth GPIO interface of the control module, the 30th pin of the card reader chip is connected to the sixth GPIO interface of the control module, the 31st pin of the card reader chip is connected to the seventh GPIO interface of the control module, and the sixth pin of the card reader chip is connected to the eighth GPIO interface of the control module. The twenty-second pin of the card reader chip is connected to one end of the third capacitor and one end of the crystal oscillator, respectively; the twenty-first pin of the card reader chip is connected to the other end of the crystal oscillator and one end of the fourth capacitor, respectively; the seventeenth pin of the card reader chip is connected to one end of the third resistor and one end of the fourth resistor, respectively; and the sixteenth pin of the card reader chip is connected to the other end of the fourth resistor and one end of the eleventh capacitor, respectively. The thirteenth pin of the card reader chip is connected to one end of an inductor; the third pin of the card reader chip is connected to its second pin and one end of the fifth capacitor, respectively; the first pin of the card reader chip is connected to one end of a sixth resistor; the thirty-second pin of the card reader chip is connected to one end of a fifth resistor; the twenty-fifth, twenty-sixth, twenty-seventh, twenty-eighth, second, ninth, twelfth, and fifteenth pins of the card reader chip are respectively connected to a power supply node. The other end of the third resistor is connected to one end of the twelfth capacitor, and the other end of the twelfth capacitor is connected to one end of the ninth capacitor, one end of the eighth capacitor, one end of the tenth capacitor, and one end of the seventh resistor, respectively; the other end of the seventh resistor is connected to one end of the antenna; the other end of the inductor is connected to the other end of the ninth capacitor and one end of the seventh capacitor, respectively; the thirty-third, fourth, fifth, tenth, fourteenth, and eighteenth pins of the card reader chip are respectively connected to the ground node; The other ends of the sixth resistor, the fifth capacitor, the sixth capacitor, the seventh capacitor, the eighth capacitor, the tenth capacitor, the third capacitor, the fourth capacitor, the eleventh capacitor, and the antenna are respectively connected to the ground node.

5. A card reader lock with MOS password mode according to claim 2, characterized in that, The power module further includes a fourteenth capacitor, one end of which is connected to the power input node and the other end of which is connected to the ground node.

6. A card reader lock with MOS password mode according to claim 2, characterized in that, The power module further includes a sixteenth capacitor, one end of which is connected to the power supply node and the other end of which is connected to the ground node.

7. A card reader lock with MOS password mode according to claim 1, characterized in that, The timing module uses a DS3231 real-time clock module, which is connected via I... 2 The C communication protocol connects to the control module.

8. A card reader lock with MOS password mode according to claim 1, characterized in that, The storage module uses an AT24C64 EEPROM storage chip, which is connected via I... 2 The C communication protocol connects to the control module.

9. A card reader lock with MOS password mode according to claim 1, characterized in that, The control module is a minimal control system with a microcontroller as its core.

10. A card reader lock with MOS password mode according to claim 9, characterized in that, The microcontroller is an STM32F103C8T6.