CN107958167B - Peep-proof password input keyboard and control method thereof - Google Patents

Peep-proof password input keyboard and control method thereof Download PDF

Info

Publication number
CN107958167B
CN107958167B CN201711374512.4A CN201711374512A CN107958167B CN 107958167 B CN107958167 B CN 107958167B CN 201711374512 A CN201711374512 A CN 201711374512A CN 107958167 B CN107958167 B CN 107958167B
Authority
CN
China
Prior art keywords
key switch
matrix keyboard
switch
key
password
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711374512.4A
Other languages
Chinese (zh)
Other versions
CN107958167A (en
Inventor
林挺意
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201711374512.4A priority Critical patent/CN107958167B/en
Publication of CN107958167A publication Critical patent/CN107958167A/en
Application granted granted Critical
Publication of CN107958167B publication Critical patent/CN107958167B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/83Protecting input, output or interconnection devices input devices, e.g. keyboards, mice or controllers thereof
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F7/00Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus
    • G07F7/02Mechanisms actuated by objects other than coins to free or to actuate vending, hiring, coin or paper currency dispensing or refunding apparatus by keys or other credit registering devices
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M11/00Coding in connection with keyboards or like devices, i.e. coding of the position of operated keys
    • H03M11/20Dynamic coding, i.e. by key scanning

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention relates to an anti-peeping password input keyboard and a control method thereof, wherein the anti-peeping password input keyboard comprises a central control module, a double-layer matrix keyboard, a prompt module and an upper computer; the double-layer matrix keyboard comprises a first matrix keyboard and a second matrix keyboard positioned below the first matrix keyboard; the key switches in the two matrix keyboards are in one-to-one correspondence, so that when the key switch in the first matrix keyboard is lightly pressed, the key switch in the second matrix keyboard is not conducted, and when the key switch in the first matrix keyboard is repeatedly pressed, the key switch in the first matrix keyboard and the key switch in the second matrix keyboard are both conducted; the central control module is electrically connected with the first matrix keyboard and the second matrix keyboard and is used for detecting the states of key switches in the first matrix keyboard and the second matrix keyboard so as to acquire password information input by a user.

Description

Peep-proof password input keyboard and control method thereof
Technical Field
The invention relates to the field of keyboard design, in particular to a peep-proof password input keyboard and a control method thereof.
Background
The password input keyboard is widely applied to the fields of ATM machines, anti-theft locks, safes, store cashing machines and the like. The keyboard is generally provided with 10 number keys and a plurality of function keys from 0 to 9, and has the main defects that the key is easy to peep by a person nearby in the process of inputting passwords, or a miniature camera or other tools are used for stealing the transaction passwords, so that economic loss is caused for a transactor, and serious consequences of integrity loss are caused for financial institutions and other institutions.
When inputting the password, the user often uses the hands to cover and cover the password so as to make the user feel embarrassed like a thief. If the keyboard is invented, the other person can not judge the true password pressed by the user, and the other person does not need to mask the password when inputting the password.
Disclosure of Invention
Therefore, the invention aims to provide an anti-peeping password input keyboard and a control method thereof, wherein a double-layer or more keyboards are adopted, so that other people cannot judge that a user really inputs a password.
The invention is realized by adopting the following scheme: a double-layer peep-proof password input keyboard comprises a central control module, a double-layer matrix keyboard, a prompt module and an upper computer;
The double-layer matrix keyboard comprises a first matrix keyboard and a second matrix keyboard positioned below the first matrix keyboard; the key switches in the two matrix keyboards are in one-to-one correspondence, when the key switch of the first matrix keyboard is lightly pressed, the corresponding key switch in the first matrix keyboard is conducted, the corresponding key switch in the second matrix keyboard is not conducted, and when the key switch of the first matrix keyboard is repeatedly pressed, the corresponding key switch in the first matrix keyboard is conducted with the corresponding key switch in the second matrix keyboard; the central control module is electrically connected with the first matrix keyboard and the second matrix keyboard and is used for detecting the states of key switches in the first matrix keyboard and the second matrix keyboard so as to acquire password information input by a user;
the upper computer is in communication connection with the central control module through a communication interface and is used for sending a control instruction and a correct password to the central control module and receiving password information input by a user and sent by the central control module;
the prompting module is electrically connected with the central control module and is used for prompting a user according to the instruction of the central control module.
Further, the central control module is a control chip MCU, the first matrix keyboard includes an upper first key switch K1, an upper second key switch K2, an upper third key switch K3, an upper fourth key switch K4, an upper fifth key switch K5, an upper sixth key switch K6, an upper seventh key switch K7, an upper eighth key switch K8, an upper ninth key switch K9, an upper tenth key switch K10, an upper eleventh key switch K11, and an upper twelfth key switch K12, the second matrix keyboard includes a lower first key switch S1, a lower second key switch S2, a lower third key switch S3, a lower fourth key switch S4, a lower fifth key switch S5, a lower sixth key switch S6, a lower seventh key switch S7, a lower eighth key switch S8, a lower ninth key switch S9, a lower tenth key switch S10, a lower eleventh key switch S11, and a lower twelfth key switch S12;
The first IO port P1.0 of the control chip MCU is connected with a first pin of the upper layer first key switch K1, the upper layer second key switch K2 and the upper layer third key switch K3 through a first row control line, the second IO port P1.1 of the control chip MCU is connected with a first pin of the upper layer fourth key switch K4, the upper layer fifth key switch K5 and the upper layer sixth key switch K6 through a second row control line, the third IO port P1.2 of the control chip MCU is connected with a first pin of the upper layer seventh key switch K7, the upper layer eighth key switch K8 and the upper layer ninth key switch K9 through a third row control line, the fourth IO port P1.3 of the control chip MCU is connected with a first pin of the upper layer fourth key switch K4, the upper layer eleventh key switch K11, the upper layer twelfth key switch K12 through a fourth row control line, the fifth IO port P1.2 of the control chip is connected with a second pin of the control chip through a fifth key switch S1.7, the lower layer S1.7 and the eighth key switch S2 of the control chip, the seventh key switch S1.3 is connected with a second pin of the upper layer eighth key switch K9 through a fifth key switch S1, the lower layer S1.7 and the lower key switch S2;
The fifteenth IO port P3.5 of the control chip MCU is connected with the second pins of the upper layer first key switch K1, the lower layer first key switch S1, the upper layer fourth key switch K4, the lower layer fourth key switch S4, the upper layer seventh key switch K7, the lower layer seventh key switch S7, the upper layer eleventh key switch K11 and the lower layer eleventh key switch S11 through a first column control line, the sixteenth IO port P3.6 of the control chip MCU is connected with the second pins of the upper layer second key switch K2, the lower layer second key switch S2, the upper layer fifth key switch K5, the lower layer fifth key switch S5, the upper layer eighth key switch K8, the lower layer eighth key switch S8, the upper layer tenth key switch K10 and the lower layer tenth key switch S10 through a third column control line, and the seventeenth IO port P3.7 of the control chip MCU is connected with the first pins of the upper layer third key switch K3, the lower layer second key switch S3.6, the upper layer sixth key switch S6, the ninth key switch S12 and the ninth key switch S12 through a third column control line.
The invention further provides a three-layer peep-proof password input keyboard, which comprises a central control module, a double-layer matrix keyboard, a prompt module, an upper computer and a third matrix keyboard;
The double-layer matrix keyboard comprises a first matrix keyboard and a second matrix keyboard positioned below the first matrix keyboard, and the first matrix keyboard corresponds to key switches in the second matrix keyboard one by one; the third matrix keyboard is a touch keyboard comprising more than two touch switches, the third matrix keyboard is positioned above the first matrix keyboard, and the touch switches in the third matrix keyboard are in one-to-one correspondence with the key switches in the first matrix keyboard; when a user touches a touch switch in the third matrix keyboard, the corresponding touch switch on the third matrix keyboard is conducted, the first matrix keyboard is not conducted with the corresponding key switch on the second matrix keyboard, when the touch switch of the third matrix keyboard is lightly pressed, the corresponding touch switch on the third matrix keyboard is conducted with the corresponding key switch in the first matrix keyboard, the corresponding key switch in the second matrix keyboard is not conducted, and when the touch switch of the third matrix keyboard is repeatedly pressed, the corresponding touch switch on the third matrix keyboard, the corresponding key switch in the first matrix keyboard and the corresponding key switch in the second matrix keyboard are all conducted; the central control module is electrically connected with the first matrix keyboard, the second matrix keyboard and the third matrix keyboard and is used for detecting the states of switches in the first matrix keyboard, the second matrix keyboard and the third matrix keyboard so as to acquire password information input by a user;
The upper computer is in communication connection with the central control module through a communication interface and is used for sending a control instruction and a correct password to the central control module and receiving password information input by a user and sent by the central control module;
the prompting module is electrically connected with the central control module and is used for prompting a user according to the instruction of the central control module.
Further, the third matrix keyboard comprises a touch switch sensing chip, and the touch switch sensing chip is electrically connected with the touch switch and the central control module and is used for receiving the conduction condition of the touch switch and sending the conduction condition of the touch switch to the central control module.
Further, the first matrix keyboard comprises an upper first key switch K1, an upper second key switch K2, an upper third key switch K3, an upper fourth key switch K4, an upper fifth key switch K5, an upper sixth key switch K6, an upper seventh key switch K7, an upper eighth key switch K8, an upper ninth key switch K9, an upper tenth key switch K10, an upper eleventh key switch K11 and an upper twelfth key switch K12, and the second matrix keyboard comprises a lower first key switch S1, a lower second key switch S2, a lower third key switch S3, a lower fourth key switch S4, a lower fifth key switch S5, a lower sixth key switch S6, a lower seventh key switch S7, a lower eighth key switch S8, a lower ninth key switch S9, a lower tenth key switch S10, a lower eleventh key switch S11 and a lower twelfth key switch S12;
The first IO port P1.0 of the control chip MCU is connected with the first pins of the upper first key switch K1, the upper second key switch K2 and the upper third key switch K3 through a first row control line, the second IO port P1.1 of the control chip MCU is connected with the first pins of the upper fourth key switch K4, the upper fifth key switch K5 and the upper sixth key switch K6 through a second row control line, the third IO port P1.2 of the control chip MCU is connected with the first pins of the upper seventh key switch K7, the upper eighth key switch K8 and the upper ninth key switch K9 through a third row control line, and the fourth IO port P1.3 of the control chip MCU is connected with the first pins of the upper tenth key switch K10, the upper eleventh key switch K11 and the upper twelfth key switch K12 through a fourth row control line;
the fifth IO port P1.4 of the control chip MCU is connected with the first pins of the lower first key switch S1, the lower second key switch S2 and the lower third key switch S3 through a fifth row control line, the sixth IO port P1.5 of the control chip MCU is connected with the first pins of the lower fourth key switch S4, the lower fifth key switch S5 and the lower sixth key switch S6 through a sixth row control line, the seventh IO port P1.6 of the control chip MCU is connected with the first pins of the lower seventh key switch S7, the lower eighth key switch S8 and the lower ninth key switch S9 through a seventh row control line, and the eighth IO port P1.7 of the control chip MCU is connected with the first pins of the lower tenth key switch S10, the lower eleventh key switch S11 and the lower twelfth key switch S12 through an eighth row control line;
A fifteenth IO port P3.5 of the control chip MCU is connected with a second pin of the upper layer first key switch K1, the lower layer first key switch S1, the upper layer fourth key switch K4, the lower layer fourth key switch S4, the upper layer seventh key switch K7, the lower layer seventh key switch S7, the upper layer eleventh key switch K11 and the lower layer eleventh key switch S11 through a first column control line, a sixteenth IO port P3.6 of the control chip MCU is connected with a second pin of the upper layer second key switch K2, the lower layer second key switch S2, the upper layer fifth key switch K5, the lower layer fifth key switch S5, the upper layer eighth key switch K8, the lower layer eighth key switch S8, the upper layer tenth key switch K10 and the lower layer tenth key switch S10 through a third column control line, and the seventeenth IO port P3.7 of the control chip MCU is connected with a sixth pin of the upper layer third key switch K3, the lower layer second key switch S6, the upper layer sixth key switch S6 and the ninth key switch S12 through a third column control line;
the third matrix keyboard comprises a first touch switch M1, a second touch switch M2, a third touch switch M3, a fourth touch switch M4, a fifth touch switch M5, a sixth touch switch M6, a seventh touch switch M7, an eighth touch switch M8, a ninth touch switch M9, a tenth touch switch M10, an eleventh touch switch M11 and a twelfth touch switch M12, wherein the first touch switch M1 to the twelfth touch switch M12 are respectively connected to 12 input pins of the touch switch sensing chip through series resistors, and two output pins of the touch switch sensing chip are respectively connected to a twenty-first IO port P2.0 and a twenty-second IO port P2.1 of the control chip MCU so as to send the conduction condition of the first touch switch M1 to the twelfth touch switch M12 to the control chip MCU;
Further, the prompting module comprises a voice prompting module and a display module; the voice prompt module comprises a voice chip and a loudspeaker connected with the voice chip, and the voice chip is electrically connected with the central control module; the display module comprises a display screen.
The invention also provides a control method based on the peep-proof password input keyboard (adopting a double-layer keyboard), which comprises the following steps:
step S1: the central control module is communicated with the upper computer and receives a control instruction transmitted by the upper computer; when a control instruction received by the central control module is a password input instruction of a user, the central control module receives correct password information transmitted by the upper computer and stores the correct password information in the first cache unit;
step S2: the central control module scans the double-layer matrix keyboard in real time to judge the conduction states of the key switches in the first matrix keyboard and the second matrix keyboard, and if a certain key switch in the first matrix keyboard is conducted and the corresponding key switch in the second matrix keyboard is not conducted, the key code corresponding to the conducted key switch in the first matrix keyboard is extracted as the current password; if a key switch in the first matrix keyboard is conducted and the corresponding key switch in the second matrix keyboard is also conducted, extracting a key code corresponding to the conducted key in the second matrix keyboard as a current password;
Step S3: the central control module compares the current bit password obtained in the step S2 with the correct password of the corresponding bit stored in the first cache unit, if the current bit password is correct, the current bit password is stored in the corresponding bit in the second cache unit, if the current bit password is incorrect, the password is required to be input again, the current bit address is reset to be the first bit of the password, and the step S2 is returned; if the compared current bit is the last bit of the password and the password is correct, entering a step S4, otherwise, adding an address of the current bit as a new current bit, and returning to the step S2;
step S4: the central control module continuously scans the double-layer matrix keyboard, but does not compare the extracted key code with the correct password stored in the first cache unit any more until the user presses the confirmation key, and the central control module sends the password stored in the second cache unit to the upper computer.
The invention also provides a control method based on the peep-proof password input keyboard (three-layer keyboard), which comprises the following steps:
step S1: the central control module is communicated with the upper computer and receives a control instruction transmitted by the upper computer; when a control instruction received by the central control module is a password input instruction of a user, the central control module receives correct password information transmitted by the upper computer and stores the correct password information in the first cache unit;
Step S2: the central control module scans the double-layer matrix keyboard and the third matrix keyboard in real time, judges the conduction states of key switches in the first matrix keyboard, the second matrix keyboard and the third matrix keyboard, and extracts a key code corresponding to the conduction touch switch in the third matrix keyboard as a current password if a certain touch switch in the third matrix keyboard is conducted and the corresponding key switch in the first matrix keyboard and the second matrix keyboard is not conducted; if a certain touch switch in the third matrix keyboard is conducted, a key switch in a corresponding first matrix keyboard is also conducted, and a key switch in a corresponding second matrix keyboard is not conducted, extracting a key code corresponding to the conducted key switch in the first matrix keyboard as a current password; if a certain touch switch in the third matrix keyboard is conducted and the key switch in the corresponding first matrix keyboard and the key switch in the corresponding second matrix keyboard are conducted, extracting a key code corresponding to the conducted key in the second matrix keyboard as a current password;
step S3: the central control module compares the current bit password obtained in the step S2 with the correct password of the corresponding bit stored in the first cache unit, if the current bit password is correct, the current bit password is stored in the corresponding bit in the second cache unit, if the current bit password is incorrect, the password is required to be input again, the current bit address is reset to be the first bit of the password, and the step S2 is returned; if the compared current bit is the last bit of the password and the password is correct, entering a step S4, otherwise, adding an address of the current bit as a new current bit, and returning to the step S2;
Step S4: the central control module continuously scans the double-layer matrix keyboard, but does not compare the extracted key code with the correct password stored in the first cache unit any more until the user presses the confirmation key, and the central control module sends the password stored in the second cache unit to the upper computer.
Compared with the prior art, the invention has the following beneficial effects: the invention adopts the double-layer or three-layer keyboard, so that the other people can not judge the true password input by the user when inputting, meanwhile, compared with the traditional password input keyboard, the security can be improved by 64 times by equally setting the 6-bit password, the security can be improved by 25600 times by equally setting the 8-bit password, and the more the number of the set password bits, the higher the multiple of the security.
Drawings
FIG. 1 is a schematic block diagram of a dual-layer matrix keyboard in accordance with an embodiment of the present invention.
Fig. 2 is a schematic diagram of a dual-layer matrix keyboard according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a keyboard interface according to an embodiment of the invention.
Fig. 4 is a schematic block diagram of a three-layer keyboard according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a three-layer keyboard circuit according to an embodiment of the invention.
Detailed Description
The invention will be further described with reference to the accompanying drawings and examples.
As shown in fig. 1, the embodiment provides a dual-layer peep-proof password input keyboard, which comprises a central control module, a dual-layer matrix keyboard, a prompt module and an upper computer;
the double-layer matrix keyboard comprises a first matrix keyboard and a second matrix keyboard positioned below the first matrix keyboard; the key switches in the two matrix keyboards are in one-to-one correspondence, when the key switch of the first matrix keyboard is lightly pressed, the corresponding key switch in the first matrix keyboard is conducted, the corresponding key switch in the second matrix keyboard is not conducted, and when the key switch of the first matrix keyboard is repeatedly pressed, the corresponding key switch in the first matrix keyboard is conducted with the corresponding key switch in the second matrix keyboard; the central control module is electrically connected with the first matrix keyboard and the second matrix keyboard and is used for detecting the states of key switches in the first matrix keyboard and the second matrix keyboard so as to acquire password information input by a user;
the upper computer is in communication connection with the central control module through a communication interface and is used for sending a control instruction and a correct password to the central control module and receiving password information input by a user and sent by the central control module;
The prompting module is electrically connected with the central control module and is used for prompting a user according to the instruction of the central control module.
As shown in fig. 2, in this embodiment, the central control module is a control chip MCU, the first matrix keyboard includes an upper first key switch K1, an upper second key switch K2, an upper third key switch K3, an upper fourth key switch K4, an upper fifth key switch K5, an upper sixth key switch K6, an upper seventh key switch K7, an upper eighth key switch K8, an upper ninth key switch K9, an upper tenth key switch K10, an upper eleventh key switch K11, and an upper twelfth key switch K12, and the second matrix keyboard includes a lower first key switch S1, a lower second key switch S2, a lower third key switch S3, a lower fourth key switch S4, a lower fifth key switch S5, a lower sixth key switch S6, a lower seventh key switch S7, a lower eighth key switch S8, a lower ninth key switch S9, a lower tenth key switch S10, a lower twelfth key switch S11, and a lower twelfth key switch S12;
the first IO port P1.0 of the control chip MCU is connected with a first pin of the upper layer first key switch K1, the upper layer second key switch K2 and the upper layer third key switch K3 through a first row control line, the second IO port P1.1 of the control chip MCU is connected with a first pin of the upper layer fourth key switch K4, the upper layer fifth key switch K5 and the upper layer sixth key switch K6 through a second row control line, the third IO port P1.2 of the control chip MCU is connected with a first pin of the upper layer seventh key switch K7, the upper layer eighth key switch K8 and the upper layer ninth key switch K9 through a third row control line, the fourth IO port P1.3 of the control chip MCU is connected with a first pin of the upper layer fourth key switch K4, the upper layer eleventh key switch K11, the upper layer twelfth key switch K12 through a fourth row control line, the fifth IO port P1.2 of the control chip is connected with a second pin of the control chip through a fifth key switch S1.7, the lower layer S1.7 and the eighth key switch S2 of the control chip, the seventh key switch S1.3 is connected with a second pin of the upper layer eighth key switch K9 through a fifth key switch S1, the lower layer S1.7 and the lower key switch S2;
The fifteenth IO port P3.5 of the control chip MCU is connected with the second pins of the upper layer first key switch K1, the lower layer first key switch S1, the upper layer fourth key switch K4, the lower layer fourth key switch S4, the upper layer seventh key switch K7, the lower layer seventh key switch S7, the upper layer eleventh key switch K11 and the lower layer eleventh key switch S11 through a first column control line, the sixteenth IO port P3.6 of the control chip MCU is connected with the second pins of the upper layer second key switch K2, the lower layer second key switch S2, the upper layer fifth key switch K5, the lower layer fifth key switch S5, the upper layer eighth key switch K8, the lower layer eighth key switch S8, the upper layer tenth key switch K10 and the lower layer tenth key switch S10 through a third column control line, and the seventeenth IO port P3.7 of the control chip MCU is connected with the first pins of the upper layer third key switch K3, the lower layer second key switch S3.6, the upper layer sixth key switch S6, the ninth key switch S12 and the ninth key switch S12 through a third column control line.
Preferably, in the present embodiment, the key codes corresponding to the key switches K1 to K12 on the first matrix keyboard are 0 to 9 and the function keys x and #, and the key codes corresponding to the key switches S1 to S12 on the second matrix keyboard are 10 to 19 and the function keys L and #; the first matrix keyboard in the upper layer and the lower layer of the key switch is the upper layer, the second matrix keyboard is the lower layer and the key codes respectively corresponding to the lower layer are: the key code corresponding to the key switch K1 is 1, the key code corresponding to the lower layer key switch S1 is 11, the key code corresponding to the key switch K2 is 2, the key code corresponding to the lower layer key switch S2 is 12, the key code corresponding to the key switch K3 is 3, the key code corresponding to the lower layer key switch S3 is 13, the key code corresponding to the key switch K4 is 4, the key code corresponding to the lower layer key switch S4 is 14, the key code corresponding to the key switch K5 is 5, the key code corresponding to the lower layer key switch S5 is 15, the key code corresponding to the key switch K6 is 6, the key code corresponding to the lower layer key switch S6 is 16, the key code corresponding to the key switch K7 is 7, the key code corresponding to the lower layer key switch S7 is 17, the key code corresponding to the key switch K8 is 8, the key code corresponding to the lower layer key switch S8 is 18, the key code corresponding to the key switch K9 is 9, the key code corresponding to the lower layer key switch S9 is 19, the key code corresponding to the key switch K10 is 0, and the key code corresponding to the lower layer key switch S10 is 10. The key code corresponding to the key switch K11 is a function key, the key code corresponding to the lower layer key switch S11 is a function key L, the key code corresponding to the key switch K12 is a function key #, and the key code corresponding to the lower layer key switch S12 is a function key &. The 10-system keyboard is changed into the 20-system keyboard, a user does not need to remember more than 10 passwords, only needs to remember that a certain password is down, and presumes that the password is 1, 2, 3, 4, 5 and 6, wherein 2 is down, the password is 12,6 is also down, the password is 16, when the password is input, the key position of 2 is slightly pressed to a key switch S2 in the second matrix keyboard at the lower layer, the corresponding effective password is 12, the key position of 6 is also slightly pressed to a key switch S6 in the second matrix keyboard at the lower layer, the corresponding effective password is 16, and other people see that the illusion of the input password is 1, 2, 3, 4, 5 and 6, and the true password is 1, 12, 3, 4, 5 and 16. The operation panel of the matrix keyboard KS is schematically shown in FIG. 3, and the surface is the same as that of a traditional matrix keyboard.
As shown in fig. 4 and fig. 5, the present embodiment further provides a three-layer peep-proof password input keyboard, which includes a central control module, a double-layer matrix keyboard, a prompt module, an upper computer and a third matrix keyboard;
the double-layer matrix keyboard comprises a first matrix keyboard and a second matrix keyboard positioned below the first matrix keyboard, and the first matrix keyboard corresponds to key switches in the second matrix keyboard one by one; the third matrix keyboard is a touch keyboard comprising more than two touch switches, the third matrix keyboard is positioned above the first matrix keyboard, and the touch switches in the third matrix keyboard are in one-to-one correspondence with the key switches in the first matrix keyboard; when a user touches a touch switch in the third matrix keyboard, the corresponding touch switch on the third matrix keyboard is conducted, the first matrix keyboard is not conducted with the corresponding key switch on the second matrix keyboard, when the touch switch of the third matrix keyboard is lightly pressed, the corresponding touch switch on the third matrix keyboard is conducted with the corresponding key switch in the first matrix keyboard, the corresponding key switch in the second matrix keyboard is not conducted, and when the touch switch of the third matrix keyboard is repeatedly pressed, the corresponding touch switch on the third matrix keyboard, the corresponding key switch in the first matrix keyboard and the corresponding key switch in the second matrix keyboard are all conducted; the central control module is electrically connected with the first matrix keyboard, the second matrix keyboard and the third matrix keyboard and is used for detecting the states of switches in the first matrix keyboard, the second matrix keyboard and the third matrix keyboard so as to acquire password information input by a user;
The upper computer is in communication connection with the central control module through a communication interface and is used for sending a control instruction and a correct password to the central control module and receiving password information input by a user and sent by the central control module;
the prompting module is electrically connected with the central control module and is used for prompting a user according to the instruction of the central control module.
In this embodiment, the third matrix keyboard includes a touch switch sensing chip, where the touch switch sensing chip is electrically connected to the touch switch and the central control module, and is configured to receive a conduction condition of the touch switch and send the conduction condition of the touch switch to the central control module. The key code of the touch switch is directly acquired by the touch switch sensing chip U4, and the acquired key code is sent to the control chip MCU (U1) for processing in a communication mode of the port 21 (SCL) and the port 22 (SDA). The first matrix keyboard and the second matrix keyboard acquire key codes by detecting and judging row lines and column lines through a control chip MCU.
In this embodiment, the first matrix keyboard includes an upper first key switch K1, an upper second key switch K2, an upper third key switch K3, an upper fourth key switch K4, an upper fifth key switch K5, an upper sixth key switch K6, an upper seventh key switch K7, an upper eighth key switch K8, an upper ninth key switch K9, an upper tenth key switch K10, an upper eleventh key switch K11, an upper twelfth key switch K12, and the second matrix keyboard includes a lower first key switch S1, a lower second key switch S2, a lower third key switch S3, a lower fourth key switch S4, a lower fifth key switch S5, a lower sixth key switch S6, a lower seventh key switch S7, a lower eighth key switch S8, a lower ninth key switch S9, a lower tenth key switch S10, a lower eleventh key switch S11, a lower twelfth key switch S12;
The first IO port P1.0 of the control chip MCU is connected with the first pins of the upper first key switch K1, the upper second key switch K2 and the upper third key switch K3 through a first row control line, the second IO port P1.1 of the control chip MCU is connected with the first pins of the upper fourth key switch K4, the upper fifth key switch K5 and the upper sixth key switch K6 through a second row control line, the third IO port P1.2 of the control chip MCU is connected with the first pins of the upper seventh key switch K7, the upper eighth key switch K8 and the upper ninth key switch K9 through a third row control line, and the fourth IO port P1.3 of the control chip MCU is connected with the first pins of the upper tenth key switch K10, the upper eleventh key switch K11 and the upper twelfth key switch K12 through a fourth row control line;
the fifth IO port P1.4 of the control chip MCU is connected with the first pins of the lower first key switch S1, the lower second key switch S2 and the lower third key switch S3 through a fifth row control line, the sixth IO port P1.5 of the control chip MCU is connected with the first pins of the lower fourth key switch S4, the lower fifth key switch S5 and the lower sixth key switch S6 through a sixth row control line, the seventh IO port P1.6 of the control chip MCU is connected with the first pins of the lower seventh key switch S7, the lower eighth key switch S8 and the lower ninth key switch S9 through a seventh row control line, and the eighth IO port P1.7 of the control chip MCU is connected with the first pins of the lower tenth key switch S10, the lower eleventh key switch S11 and the lower twelfth key switch S12 through an eighth row control line;
A fifteenth IO port P3.5 of the control chip MCU is connected with a second pin of the upper layer first key switch K1, the lower layer first key switch S1, the upper layer fourth key switch K4, the lower layer fourth key switch S4, the upper layer seventh key switch K7, the lower layer seventh key switch S7, the upper layer eleventh key switch K11 and the lower layer eleventh key switch S11 through a first column control line, a sixteenth IO port P3.6 of the control chip MCU is connected with a second pin of the upper layer second key switch K2, the lower layer second key switch S2, the upper layer fifth key switch K5, the lower layer fifth key switch S5, the upper layer eighth key switch K8, the lower layer eighth key switch S8, the upper layer tenth key switch K10 and the lower layer tenth key switch S10 through a third column control line, and the seventeenth IO port P3.7 of the control chip MCU is connected with a sixth pin of the upper layer third key switch K3, the lower layer second key switch S6, the upper layer sixth key switch S6 and the ninth key switch S12 through a third column control line;
the third matrix keyboard comprises a first touch switch M1, a second touch switch M2, a third touch switch M3, a fourth touch switch M4, a fifth touch switch M5, a sixth touch switch M6, a seventh touch switch M7, an eighth touch switch M8, a ninth touch switch M9, a tenth touch switch M10, an eleventh touch switch M11 and a twelfth touch switch M12, wherein the first touch switch M1 to the twelfth touch switch M12 are respectively connected to 12 input pins of the touch switch sensing chip through series resistors, and two output pins of the touch switch sensing chip are respectively connected to a twenty-first IO port P2.0 and a twenty-second IO port P2.1 of the control chip MCU so as to send the conduction conditions of the first touch switch M1 to the twelfth touch switch M12 to the control chip MCU;
Specifically, the 4 th pin of the port of the touch switch chip U4 is connected with the touch switch M1 through a series resistor R4, the 5 th pin of the port of the U4 is connected with the touch switch M2 through a series resistor R5, the 6 th pin of the port of the U4 is connected with the touch switch M3 through a series resistor R6, the 7 th pin of the port of the U4 is connected with the touch switch M4 through a series resistor R7, the 8 th pin of the port of the U4 is connected with the touch switch M5 through a series resistor R8, the 9 th pin of the port of the U4 is connected with the touch switch M6 through a series resistor R9, the 10 th pin of the port of the U4 is connected with the touch switch M7 through a series resistor R11, the 12 th pin of the port of the U4 is connected with the touch switch M9 through a series resistor R12, the port 13 of U4 is connected with the touch switch M10 through a series resistor R13, the port 14 of U4 is connected with the touch switch M11 through a series resistor R14, the port 15 of U4 is connected with the touch switch M12 through a series resistor R15, the port 1 of U4 is connected with the negative pole GND through a capacitor C1, the port 3 of U4 is connected with the negative pole GND through a capacitor C2, the port 21 of U4 is connected with the IO port P2.0 of the control chip MCU (U1) through a 1 st pin of a resistor R16, the port 22 of U4 is connected with the IO port P2.1 of the control chip MCU (U1) through a 1 st pin of a resistor R17, the 2 nd pins of the resistor R16 and the resistor R17 are connected with the positive pole VCC, and the port 24 of U4 is connected with the positive pole VCC. The 21 St (SCL) pin and the 22 nd (SDA) pin of the U4 are used for carrying out I2C communication with the control chip MCU (U1), and the key codes acquired on the touch switches (M1 to M12) are sent to the control chip MCU (U1) for processing;
In this embodiment, the prompting module includes a voice prompting module and a display module; the voice prompt module comprises a voice chip and a loudspeaker connected with the voice chip, and the voice chip is electrically connected with the central control module; the display module comprises a display screen.
The IO port P3.0 of the control chip MCU (U1) is connected with the 3 rd pin of the UART communication interface J3, the IO port P3.1 of the U1 is connected with the 2 nd pin of the J3, the 1 st pin of the J3 is connected with the negative pole GND, and the 4 th pin of the J3 is connected with the positive pole VCC; IO port P3.2 of the control chip MCU (U1) is connected with the 3 rd pin of the I2C communication interface J2, IO port P3.4 of U1 is connected with the 2 nd pin of the I2C communication interface J2, and the 1 st pin of J2 is connected with the negative pole GND; the 1 st pin of the power supply interface J1 is connected with the negative electrode GND, and the 2 nd pin of the power supply interface J1 is connected with the positive electrode VCC;
IO port P2.5 of the control chip MCU (U1) is connected with the 2 nd pin of the voice chip U2, and IO port P2.4 of U1 is connected with the 4 th pin of the voice chip U2; the 5 th pin of the voice chip U2 is connected with the 1 st pin of the loudspeaker LS, the 6 th pin of the U2 is connected with the 2 nd pin of the loudspeaker LS, the 1 st pin of the U2 is connected with the negative electrode GND, and the 8 th pin of the U2 is connected with the positive electrode VCC;
IO port P2.6 of control chip MCU (U1) is connected with OLED display screen U3's 2 nd pin SCL through resistance R1's one end, and U1's IO port P2.7 is connected with OLED display screen U3's 3 rd pin SDA through resistance R2's one end, and R1 and R2's the other end is connected with anodal VCC, and OLED display screen U3's 1 st pin is connected with anodal VCC, and 5 th pin is connected with negative pole GND (see FIG. 2).
The embodiment also provides a control method based on the peep-proof password input keyboard (adopting a double-layer keyboard), which specifically comprises the following steps:
step S1: the central control module is communicated with the upper computer and receives a control instruction transmitted by the upper computer; when a control instruction received by the central control module is a password input instruction of a user, the central control module receives correct password information transmitted by the upper computer and stores the correct password information in the first cache unit;
step S2: the central control module scans the double-layer matrix keyboard in real time to judge the conduction states of the key switches in the first matrix keyboard and the second matrix keyboard, and if a certain key switch in the first matrix keyboard is conducted and the corresponding key switch in the second matrix keyboard is not conducted, the key code corresponding to the conducted key switch in the first matrix keyboard is extracted as the current password; if a key switch in the first matrix keyboard is conducted and the corresponding key switch in the second matrix keyboard is also conducted, extracting a key code corresponding to the conducted key in the second matrix keyboard as a current password;
Step S3: the central control module compares the current bit password obtained in the step S2 with the correct password of the corresponding bit stored in the first cache unit, if the current bit password is correct, the current bit password is stored in the corresponding bit in the second cache unit, if the current bit password is incorrect, the password is required to be input again, the current bit address is reset to be the first bit of the password, and the step S2 is returned; if the compared current bit is the last bit of the password and the password is correct, entering a step S4, otherwise, adding an address of the current bit as a new current bit, and returning to the step S2;
step S4: the central control module continuously scans the double-layer matrix keyboard, but does not compare the extracted key code with the correct password stored in the first cache unit any more until the user presses the confirmation key, and the central control module sends the password stored in the second cache unit to the upper computer.
In particular, the specific implementation manner of the dual-layer matrix keyboard of this embodiment is as follows:
firstly, a UART communication interface J3 or an I2C communication interface J2 can be selected to be connected with an upper computer (a computer or terminal equipment), after the power-on, a control program of a control chip MCU is initialized and displays an OLED display screen U3 as 00 through I2C protocols of IO ports P2.6 and P2.7, then a guide code instruction agreed with the upper computer is to be received, if 55 is a user input password, 66 is a user setting password, 88 is a user modifying password, when the control chip MCU receives the upper computer guide code instruction as 55, the user is required to input the password instruction, then an N-bit password which is already set and stored in the upper computer is received (in the embodiment, the user password is 1, 2, 3, 4, 5 and 6) is received, and the received password is temporarily stored in 30H to 35H units of a first cache unit RAM of the designated upper computer for comparison when the user inputs the password; then the row control lines of the IO ports P1.0 to P1.7 of the control chip MCU output high level, the column control lines of the IO ports P3.5, P3.6 and P3.7 output low level, the IO ports P2.4 and P2.5 output instructions control the voice chip to drive the speaker to prompt the user to input the password in voice, then the detection and judgment are carried out on the IO ports P1.0 to P1.7 to judge whether all switches in the matrix keyboard KS are pressed, when the detection is carried out on a certain position in the matrix keyboard KS, the detection and judgment are carried out again after a few milliseconds, if no switch is pressed, the interference return and re-detection are judged, if a certain position switch is pressed, the key value judgment (the password number corresponding to a certain position switch is judged), firstly the first column control line of the IO port P3.5 keeps low level, the IO ports P3.6, P3.7, the second column control line and the third column control line are changed to output high level, then the ports of the scanning line control lines P1.0 to P1.7IO are provided with switches K and S connected with the first column control line, when the password input by a user is 1, the switch K1 is conducted, the IO port P1.0 of the control chip MCU is pulled to be low level, when the control chip detects that the IO port P1.0 is low level, the switch K1 can be judged to be pressed, the IO ports P2.4 and P2.5 output instructions control the voice chip to drive the loudspeaker to make a sound, meanwhile, the IO ports P2.6 and P2.7 of the control chip MCU send X display section codes to the OLED display screen through an I2C communication protocol, 0 is changed into X to be displayed at corresponding digits, then whether the IO port P1.0 is high level (the user releases the key switch to be reset to be high level) is detected, whether the next layer of switch S1 is pressed is judged when the IO port P1.4 is low level is detected in turn, when the IO port P1.0 is reset to be high level, when the high level is confirmed again after a few milliseconds of delay, the user is not pressed to the next layer of switch S1, the corresponding password of the designated upper password RAM 30H unit can be taken out to be compared with the password 1 of the switch K1, if the password is correct, the password 1 is temporarily stored in the 40H unit of the designated password second cache unit RAM with the correct password for 6 bytes, the address code temporarily stored by the password is added with 1 to provide a storage path for the second password with the correct password, and the one-bit password judgment is finished; returning to wait for the user to input the second bit password, firstly, the row control lines of the IO ports P1.0 to P1.7 of the control chip MCU output high level, the column control lines of the IO ports P3.5, P3.6 and P3.7 output low level, then detect and judge whether all switches in the matrix keyboard are pressed or not by the IO ports P1.0 to P1.7, when detecting that a certain bit in the matrix keyboard is pressed, after a delay of a few milliseconds, re-detect and judge, if no switch is pressed, possibly interfere with the re-detect, if a certain bit switch is pressed, switch-in key value judgment (judging the password number corresponding to a certain bit switch) is carried out, firstly, the first column control line of the IO port P3.5 keeps low level, the second column control line and the third column control line of the IO ports P3.6 and P3.7 output high level, then the ports of the scanning line P1.0 to P1.7IO are provided with switches K and S connected with the first column control line, if the switch is not pressed when the scan is not performed, the first column control line of the IO port P3.5 is modified to be high, the second column control line of the IO port P3.6 is low, the third column control line of the IO port P3.7 is high, the switches K and S connected with the second column control line are arranged on the scanning line control lines P1.0 to P1.7IO, because the second bit password is 2, when the second column control line is low, the switches K2 and S2 are conducted, the IO ports P1.0 and P1.4 of the control chip MCU are sequentially pulled to be low, firstly, when the control chip detects that the IO port P1.0 is low, the control chip can judge that the switch K2 is pressed, the IO ports P2.4 and P2.5 output instructions to control the voice chip to drive the loudspeaker to sound a sound, meanwhile, the IO ports P2.6 and P2.7 of the control chip transmit an X display section to the OLED display screen through I2C communication protocol, and when the corresponding digit is changed to X, then detecting whether the IO port P1.0 is at a high level (the user releases the key switch to reset to the high level), during the period and sequentially detecting whether the IO port P1.4 is at a low level in turn, namely judging whether the next layer of switch S2 is pressed, when the IO port P1.4 is detected to be at the low level, indicating that the user presses the next layer of switch S2, then detecting whether the IO port P1.4 is at the high level (the user releases the key switch to reset to the high level), when the IO port P1.4 is detected to be at the high level, and confirming the high level again after a few milliseconds of delay, taking out the corresponding password of the designated upper secret RAM 31H unit and the key code 12 of the switch S2 for comparison, if the password is correct, temporarily storing the key code 12 in the designated key code RAM 41H unit with the correct password, adding 1 to the address code temporarily stored in the third correct password to provide a storage path, and ending the one-digit key code judgment; the program returns to wait for the user to input the third password, and the principle of the password input by the latter users is the same, so that the description is not repeated. When the user continuously inputs 6-bit passwords and all the passwords are correct, the control chip sets the password input completion zone bit, and if someone worry about peeping the passwords, the user can continuously input the confused passwords, and the control chip does not continue password comparison any more. Therefore, after the 6-bit correct password is continuously input, an N-bit invalid confusion password without bit limitation can be arbitrarily input, so that peepers can see the confusion, the true and false passwords cannot be distinguished, and finally the 6-bit password of the 40H-45H units stored in the RAM in the key code second cache unit is sent to the upper computer by pressing the # confirmation key; if no one is nearby, the # confirmation key can be directly pressed after the 6-bit correct password is continuously input (even if a person peeps maliciously remotely, the upper layer switch or the lower layer switch is difficult to distinguish when the user presses the upper layer switch or the lower layer switch during inputting the password), and the 6-bit password stored in the key code RAM 40H to 45H units is sent to the upper computer. Before pressing the # confirm key, if the user needs to check the password, pressing the switch K11 to display the function key can display and check the real password number.
In the input process, if the password is wrong, the currently pressed key codes are not saved, the key code data of the key code RAM40H to 45H units are all sent to the temporary storage backspace RAM 50H to 55H units, the key code data of the key code RAM40H to 45H units are all deleted, if the user knows that the input password is wrong, the S11 backspace function key of the next layer of the switch can be pressed to modify the currently input password, and the control chip returns the key code data temporarily stored in the backspace RAM 50H to 55H units to the key code RAM40H to 45H units to restore the input password. If the user continues to input the numeric keys, if the password is correct, the key codes are saved in the corresponding units of the key code RAMs 40H to 45H again, and the passwords of the units of the key code RAMs 40H to 45H are cleared as long as 1-bit passwords are wrong and the backspace function key is not pressed for modification in the continuous 6-bit password inputting process, so that the N-bit confused passwords without digit limitation can be input at will before the 6-bit correct passwords are continuously input.
The embodiment also provides a control method based on the peep-proof password input keyboard (three-layer keyboard), which specifically comprises the following steps:
step S1: the central control module is communicated with the upper computer and receives a control instruction transmitted by the upper computer; when a control instruction received by the central control module is a password input instruction of a user, the central control module receives correct password information transmitted by the upper computer and stores the correct password information in the first cache unit;
Step S2: the central control module scans the double-layer matrix keyboard and the third matrix keyboard in real time, judges the conduction states of key switches in the first matrix keyboard, the second matrix keyboard and the third matrix keyboard, and extracts a key code corresponding to the conduction touch switch in the third matrix keyboard as a current password if a certain touch switch in the third matrix keyboard is conducted and the corresponding key switch in the first matrix keyboard and the second matrix keyboard is not conducted; if a certain touch switch in the third matrix keyboard is conducted, a key switch in a corresponding first matrix keyboard is also conducted, and a key switch in a corresponding second matrix keyboard is not conducted, extracting a key code corresponding to the conducted key switch in the first matrix keyboard as a current password; if a certain touch switch in the third matrix keyboard is conducted and the key switch in the corresponding first matrix keyboard and the key switch in the corresponding second matrix keyboard are conducted, extracting a key code corresponding to the conducted key in the second matrix keyboard as a current password;
step S3: the central control module compares the current bit password obtained in the step S2 with the correct password of the corresponding bit stored in the first cache unit, if the current bit password is correct, the current bit password is stored in the corresponding bit in the second cache unit, if the current bit password is incorrect, the password is required to be input again, the current bit address is reset to be the first bit of the password, and the step S2 is returned; if the compared current bit is the last bit of the password and the password is correct, entering a step S4, otherwise, adding an address of the current bit as a new current bit, and returning to the step S2;
Step S4: the central control module continuously scans the double-layer matrix keyboard, but does not compare the extracted key code with the correct password stored in the first cache unit any more until the user presses the confirmation key, and the central control module sends the password stored in the second cache unit to the upper computer.
The foregoing description is only of the preferred embodiments of the invention, and all changes and modifications that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (9)

1. A double-layer peep-proof password input keyboard is characterized in that: the system comprises a central control module, a double-layer matrix keyboard, a prompt module and an upper computer;
the double-layer matrix keyboard comprises a first matrix keyboard and a second matrix keyboard positioned below the first matrix keyboard; the key switches in the two matrix keyboards are in one-to-one correspondence, when the key switch of the first matrix keyboard is lightly pressed, the corresponding key switch in the first matrix keyboard is conducted, the corresponding key switch in the second matrix keyboard is not conducted, and when the key switch of the first matrix keyboard is repeatedly pressed, the corresponding key switch in the first matrix keyboard is conducted with the corresponding key switch in the second matrix keyboard; the central control module is electrically connected with the first matrix keyboard and the second matrix keyboard and is used for detecting the states of key switches in the first matrix keyboard and the second matrix keyboard so as to acquire password information input by a user;
The upper computer is in communication connection with the central control module through a communication interface and is used for sending a control instruction and a correct password to the central control module and receiving password information input by a user and sent by the central control module;
the prompting module is electrically connected with the central control module and is used for prompting a user according to the instruction of the central control module.
2. The dual-layer peep-proof password entry keypad of claim 1, wherein: the central control module is a control chip MCU, the first matrix keyboard comprises an upper first key switch (K1), an upper second key switch (K2), an upper third key switch (K3), an upper fourth key switch (K4), an upper fifth key switch (K5), an upper sixth key switch (K6), an upper seventh key switch (K7), an upper eighth key switch (K8), an upper ninth key switch (K9), an upper tenth key switch (K10), an upper eleventh key switch (K11) and an upper twelfth key switch (K12), the second matrix keyboard comprises a lower first key switch (S1), a lower second key switch (S2), a lower third key switch (S3), a lower fourth key switch (S4), a lower fifth key switch (S5), a lower sixth key switch (S6), a lower seventh key switch (S7), a lower eighth key switch (S8), a lower ninth key switch (S9), a lower tenth key switch (S10) and a lower twelfth key switch (S11);
The first IO port (P1.0) of the control chip MCU is connected with the first pin of the upper layer first key switch (K1), the upper layer second key switch (K2) and the upper layer third key switch (K3) through a first row control line, the second IO port (P1.1) of the control chip MCU is connected with the first pin of the upper layer fourth key switch (K4), the upper layer fifth key switch (K5) and the upper layer sixth key switch (K6) through a second row control line, the third IO port (P1.2) of the control chip MCU is connected with the first pin of the upper layer seventh key switch (K7), the upper layer eighth key switch (K8) and the upper layer ninth key switch (K9) through a third row control line, and the fourth IO port (P1.3) of the control chip MCU is connected with the first pin of the upper layer tenth key switch (K10), the upper layer eleventh key switch (K11) and the upper layer twelfth key switch (K12) through a fourth row control line;
a fifth IO port (P1.4) of the control chip MCU is connected with a first pin of the lower first button switch (S1), the lower second button switch (S2) and the lower third button switch (S3) through a fifth row control line, a sixth IO port (P1.5) of the control chip MCU is connected with a first pin of the lower fourth button switch (S4), the lower fifth button switch (S5) and the lower sixth button switch (S6) through a sixth row control line, a seventh IO port (P1.6) of the control chip MCU is connected with a first pin of the lower seventh button switch (S7), the lower eighth button switch (S8) and the lower ninth button switch (S9) through a seventh row control line, and an eighth IO port (P1.7) of the control chip MCU is connected with a first pin of the lower tenth button switch (S10), the lower eleventh button switch (S11) and the lower twelfth pin (S12) through an eighth row control line;
A fifteenth IO port (P3.5) of the control chip MCU is connected with a second pin of the upper layer first key switch (K1), the lower layer first key switch (S1), the upper layer fourth key switch (K4), the lower layer fourth key switch (S4), the upper layer seventh key switch (K7), the lower layer seventh key switch (S7), the upper layer eleventh key switch (K11) and the lower layer eleventh key switch (S11) through a first column control line, a sixteenth IO port (P3.6) of the control chip MCU is connected with a second pin of the upper layer second key switch (K2), the lower layer second key switch (S2), the upper layer fifth key switch (K5), the lower layer fifth key switch (S5), the upper layer eighth key switch (K8), the lower layer eighth key switch (S8), the upper layer tenth key switch (K10) and the lower layer tenth key switch (S10) through a second column control line, the seventeenth IO port (P3.7) of the control chip MCU is connected with the second pins of the upper third key switch (K3), the lower third key switch (S3), the upper sixth key switch (K6), the lower sixth key switch (S6), the upper ninth key switch (K9), the lower ninth key switch (S9), the upper twelfth key switch (K12) and the lower twelfth key switch (S12) through a third row control line.
3. A dual-layer peep-proof password entry keypad according to claim 1 or 2, characterized in that: the prompting module comprises a voice prompting module and a display module; the voice prompt module comprises a voice chip and a loudspeaker connected with the voice chip, and the voice chip is electrically connected with the central control module; the display module comprises a display screen.
4. A three-layer peep-proof password input keyboard is characterized in that: the system comprises a central control module, a double-layer matrix keyboard, a prompt module, an upper computer and a third matrix keyboard;
the double-layer matrix keyboard comprises a first matrix keyboard and a second matrix keyboard positioned below the first matrix keyboard, and the first matrix keyboard corresponds to key switches in the second matrix keyboard one by one; the third matrix keyboard is a touch keyboard comprising more than two touch switches, the third matrix keyboard is positioned above the first matrix keyboard, and the touch switches in the third matrix keyboard are in one-to-one correspondence with the key switches in the first matrix keyboard; when a user touches a touch switch in the third matrix keyboard, the corresponding touch switch on the third matrix keyboard is conducted, the first matrix keyboard is not conducted with the corresponding key switch on the second matrix keyboard, when the touch switch of the third matrix keyboard is lightly pressed, the corresponding touch switch on the third matrix keyboard is conducted with the corresponding key switch in the first matrix keyboard, the corresponding key switch in the second matrix keyboard is not conducted, and when the touch switch of the third matrix keyboard is repeatedly pressed, the corresponding touch switch on the third matrix keyboard, the corresponding key switch in the first matrix keyboard and the corresponding key switch in the second matrix keyboard are all conducted; the central control module is electrically connected with the first matrix keyboard, the second matrix keyboard and the third matrix keyboard and is used for detecting the states of switches in the first matrix keyboard, the second matrix keyboard and the third matrix keyboard so as to acquire password information input by a user;
The upper computer is in communication connection with the central control module through a communication interface and is used for sending a control instruction and a correct password to the central control module and receiving password information input by a user and sent by the central control module;
the prompting module is electrically connected with the central control module and is used for prompting a user according to the instruction of the central control module.
5. The three-layer peep-proof password entry keypad of claim 4, wherein: the third matrix keyboard comprises a touch switch sensing chip, wherein the touch switch sensing chip is electrically connected with the touch switch and the central control module and is used for receiving the conduction condition of the touch switch and sending the conduction condition of the touch switch to the central control module.
6. The three-layer peep-proof password entry keypad of claim 5, wherein: the central control module is a control chip MCU,
the first matrix keyboard comprises an upper first key switch (K1), an upper second key switch (K2), an upper third key switch (K3), an upper fourth key switch (K4), an upper fifth key switch (K5), an upper sixth key switch (K6), an upper seventh key switch (K7), an upper eighth key switch (K8), an upper ninth key switch (K9), an upper tenth key switch (K10), an upper eleventh key switch (K11) and an upper twelfth key switch (K12), and the second matrix keyboard comprises a lower first key switch (S1), a lower second key switch (S2), a lower third key switch (S3), a lower fourth key switch (S4), a lower fifth key switch (S5), a lower sixth key switch (S6), a lower seventh key switch (S7), a lower eighth key switch (S8), a lower ninth key switch (S9), a lower tenth key switch (S10) and a lower eleventh key switch (S12);
The first IO port (P1.0) of the control chip MCU is connected with the first pin of the upper layer first key switch (K1), the upper layer second key switch (K2) and the upper layer third key switch (K3) through a first row control line, the second IO port (P1.1) of the control chip MCU is connected with the first pin of the upper layer fourth key switch (K4), the upper layer fifth key switch (K5) and the upper layer sixth key switch (K6) through a second row control line, the third IO port (P1.2) of the control chip MCU is connected with the first pin of the upper layer seventh key switch (K7), the upper layer eighth key switch (K8) and the upper layer ninth key switch (K9) through a third row control line, and the fourth IO port (P1.3) of the control chip MCU is connected with the first pin of the upper layer tenth key switch (K10), the upper layer eleventh key switch (K11) and the upper layer twelfth key switch (K12) through a fourth row control line;
a fifth IO port (P1.4) of the control chip MCU is connected with a first pin of the lower first button switch (S1), the lower second button switch (S2) and the lower third button switch (S3) through a fifth row control line, a sixth IO port (P1.5) of the control chip MCU is connected with a first pin of the lower fourth button switch (S4), the lower fifth button switch (S5) and the lower sixth button switch (S6) through a sixth row control line, a seventh IO port (P1.6) of the control chip MCU is connected with a first pin of the lower seventh button switch (S7), the lower eighth button switch (S8) and the lower ninth button switch (S9) through a seventh row control line, and an eighth IO port (P1.7) of the control chip MCU is connected with a first pin of the lower tenth button switch (S10), the lower eleventh button switch (S11) and the lower twelfth pin (S12) through an eighth row control line;
A fifteenth IO port (P3.5) of the control chip MCU is connected with a second pin of the upper layer first key switch (K1), the lower layer first key switch (S1), the upper layer fourth key switch (K4), the lower layer fourth key switch (S4), the upper layer seventh key switch (K7), the lower layer seventh key switch (S7), the upper layer eleventh key switch (K11) and the lower layer eleventh key switch (S11) through a first column control line, a sixteenth IO port (P3.6) of the control chip MCU is connected with the upper layer second key switch (K2), the lower layer second key switch (S2), the upper layer fifth key switch (K5), the lower layer fifth key switch (S5), the upper layer eighth key switch (K8), the lower layer eighth key switch (S8), the upper layer tenth key switch (K10) and the lower layer tenth key switch (S10) through a second column control line, a seventeenth IO port (P3.6) of the control chip MCU is connected with the upper layer second pin of the upper layer second key switch (K2), the lower layer second key switch (S3.6), the upper layer fifth key switch (S5), the upper layer eighth key switch (K8), the lower layer eighth key switch (S8) and the upper layer tenth key switch (S7) and the seventeenth key switch (S7).
The third matrix keyboard comprises a first touch switch (M1), a second touch switch (M2), a third touch switch (M3), a fourth touch switch (M4), a fifth touch switch (M5), a sixth touch switch (M6), a seventh touch switch (M7), an eighth touch switch (M8), a ninth touch switch (M9), a tenth touch switch (M10), an eleventh touch switch (M11) and a twelfth touch switch (M12), the first touch switch (M1) to the twelfth touch switch (M12) are respectively connected to 12 input pins of the touch switch sensing chip through series resistors, and two output pins of the touch switch sensing chip are respectively connected to a second eleventh IO port (P2.0) and a twenty second IO port (P2.1) of the control chip MCU so as to send the conduction conditions of the first touch switch (M1) to the twelfth touch switch (M12) to the control chip MCU.
7. The peep-proof password entry keypad of claim 4, 5 or 6, wherein: the prompting module comprises a voice prompting module and a display module; the voice prompt module comprises a voice chip and a loudspeaker connected with the voice chip, and the voice chip is electrically connected with the central control module; the display module comprises a display screen.
8. A control method based on the double-layer peep-proof password input keyboard as claimed in claim 3, which is characterized in that: the method comprises the following steps:
step S1: the central control module is communicated with the upper computer and receives a control instruction transmitted by the upper computer; when a control instruction received by the central control module is a password input instruction of a user, the central control module receives correct password information transmitted by the upper computer and stores the correct password information in the first cache unit;
step S2: the central control module scans the double-layer matrix keyboard in real time, judges the conduction states of key switches in the first matrix keyboard and the second matrix keyboard, and extracts a key code corresponding to the conduction key switch in the first matrix keyboard as a current password if one key switch in the first matrix keyboard is conducted and the corresponding key switch in the second matrix keyboard is not conducted; if a key switch in the first matrix keyboard is conducted and the corresponding key switch in the second matrix keyboard is also conducted, extracting a key code corresponding to the conducted key in the second matrix keyboard as a current password;
step S3: the central control module compares the current bit password obtained in the step S2 with the correct password of the corresponding bit stored in the first cache unit, if the current bit password is correct, the current bit password is stored in the corresponding bit in the second cache unit, if the current bit password is incorrect, the password is required to be input again, the current bit address is reset to be the first bit of the password, and the step S2 is returned; if the compared current bit is the last bit of the password and the password is correct, entering a step S4, otherwise, adding an address of the current bit as a new current bit, and returning to the step S2;
Step S4: the central control module continuously scans the double-layer matrix keyboard, but does not compare the extracted key code with the correct password stored in the first cache unit any more until the user presses the confirmation key, and the central control module sends the password stored in the second cache unit to the upper computer.
9. A control method based on the three-layer peep-proof password input keyboard as claimed in claim 7, which is characterized in that: the method comprises the following steps:
step S1: the central control module is communicated with the upper computer and receives a control instruction transmitted by the upper computer; when a control instruction received by the central control module is a password input instruction of a user, the central control module receives correct password information transmitted by the upper computer and stores the correct password information in the first cache unit;
step S2: the central control module scans the double-layer matrix keyboard and the third matrix keyboard in real time, judges the conduction states of key switches in the first matrix keyboard, the second matrix keyboard and the third matrix keyboard, and extracts a key code corresponding to the conduction touch switch in the third matrix keyboard as a current password if a certain touch switch in the third matrix keyboard is conducted and the corresponding key switch in the first matrix keyboard and the second matrix keyboard is not conducted; if a certain touch switch in the third matrix keyboard is conducted, a key switch in a corresponding first matrix keyboard is also conducted, and a key switch in a corresponding second matrix keyboard is not conducted, extracting a key code corresponding to the conducted key switch in the first matrix keyboard as a current password; if a certain touch switch in the third matrix keyboard is conducted and the key switch in the corresponding first matrix keyboard and the key switch in the corresponding second matrix keyboard are conducted, extracting a key code corresponding to the conducted key in the second matrix keyboard as a current password;
Step S3: the central control module compares the current bit password obtained in the step S2 with the correct password of the corresponding bit stored in the first cache unit, if the current bit password is correct, the current bit password is stored in the corresponding bit in the second cache unit, if the current bit password is incorrect, the password is required to be input again, the current bit address is reset to be the first bit of the password, and the step S2 is returned; if the compared current bit is the last bit of the password and the password is correct, entering a step S4, otherwise, adding an address of the current bit as a new current bit, and returning to the step S2;
step S4: the central control module continuously scans the double-layer matrix keyboard, but does not compare the extracted key code with the correct password stored in the first cache unit any more until the user presses the confirmation key, and the central control module sends the password stored in the second cache unit to the upper computer.
CN201711374512.4A 2017-12-19 2017-12-19 Peep-proof password input keyboard and control method thereof Active CN107958167B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711374512.4A CN107958167B (en) 2017-12-19 2017-12-19 Peep-proof password input keyboard and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711374512.4A CN107958167B (en) 2017-12-19 2017-12-19 Peep-proof password input keyboard and control method thereof

Publications (2)

Publication Number Publication Date
CN107958167A CN107958167A (en) 2018-04-24
CN107958167B true CN107958167B (en) 2024-01-30

Family

ID=61959386

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711374512.4A Active CN107958167B (en) 2017-12-19 2017-12-19 Peep-proof password input keyboard and control method thereof

Country Status (1)

Country Link
CN (1) CN107958167B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108770120B (en) * 2018-05-25 2021-03-23 上海乘讯信息科技有限公司 Intelligent channel state lamp

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050053463A (en) * 2003-12-02 2005-06-08 한명국 Combined keypad system with invisual sensor matrix and inputing method for letter thereof
CN201514613U (en) * 2009-07-10 2010-06-23 深圳市九思泰达技术有限公司 Secure keyboard capable of preventing from being spied or stolen
CN102778958A (en) * 2012-07-20 2012-11-14 珠海市智迪科技有限公司 Touch-sensitive keyboard and control method thereof
CN105809778A (en) * 2014-12-29 2016-07-27 余姚亿威电子科技有限公司 One-chip microcomputer-based electronic coded lock design
CN207663445U (en) * 2017-12-19 2018-07-27 林挺意 A kind of peep-proof cipher input device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050053463A (en) * 2003-12-02 2005-06-08 한명국 Combined keypad system with invisual sensor matrix and inputing method for letter thereof
CN201514613U (en) * 2009-07-10 2010-06-23 深圳市九思泰达技术有限公司 Secure keyboard capable of preventing from being spied or stolen
CN102778958A (en) * 2012-07-20 2012-11-14 珠海市智迪科技有限公司 Touch-sensitive keyboard and control method thereof
CN105809778A (en) * 2014-12-29 2016-07-27 余姚亿威电子科技有限公司 One-chip microcomputer-based electronic coded lock design
CN207663445U (en) * 2017-12-19 2018-07-27 林挺意 A kind of peep-proof cipher input device

Also Published As

Publication number Publication date
CN107958167A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
TWI598767B (en) Method to unclok device and thereof device
AU2014391959B2 (en) Password verification device and password verification method
CN105574388B (en) A kind of unlocking method based on touch screen terminal, device and touch screen terminal
CN106958403B (en) A kind of safety box
CN102982269A (en) Anti-peeping code authentication method and anti-peeping code authentication system based on biological metering characteristics
CN103186793A (en) Mobile terminal screen unlocking method and device
WO2017032010A1 (en) Unlocking method and mobile terminal
CN104035698B (en) Terminal device and its state switching method
CN104063169B (en) Unlocking method based on touch screen
CN103870744A (en) Method and electronic device for verifying password
CN104462938A (en) Intelligent equipment and unlock method thereof
US20100299746A1 (en) Password protection system
CN107958167B (en) Peep-proof password input keyboard and control method thereof
CN103118201A (en) System and method for unlocking touch screen
CN106504416A (en) The anti-pry Orderless keyboards of ATM and method
CN106600854A (en) System and method for SE terminal of POS to take over password keyboard of Android screen
CN106968524B (en) A kind of smart home finger-print cipher door lock
CN207663445U (en) A kind of peep-proof cipher input device
WO2014146551A1 (en) Method for locking and unlocking touch screen mobile phone which is unlocked based on pattern pairing mode
WO2016184134A1 (en) Input method and apparatus, and user equipment
CN104200141B (en) Intelligent unlocking system and its unlocking method
CN210983551U (en) Intelligent access control installs equipment additional
CN104537322B (en) Intelligent security guard method and system
CN106445095A (en) Input method and device and storage equipment
CN107644158A (en) A kind of face identification method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant