[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112766010A - Singlechip safety device - Google Patents

Singlechip safety device Download PDF

Info

Publication number
CN112766010A
CN112766010A CN202011583659.6A CN202011583659A CN112766010A CN 112766010 A CN112766010 A CN 112766010A CN 202011583659 A CN202011583659 A CN 202011583659A CN 112766010 A CN112766010 A CN 112766010A
Authority
CN
China
Prior art keywords
relay
chip microcomputer
network
character string
authentication
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.)
Withdrawn
Application number
CN202011583659.6A
Other languages
Chinese (zh)
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.)
Chongqing Medical and Pharmaceutical College
Original Assignee
Chongqing Medical and Pharmaceutical College
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 Chongqing Medical and Pharmaceutical College filed Critical Chongqing Medical and Pharmaceutical College
Priority to CN202011583659.6A priority Critical patent/CN112766010A/en
Publication of CN112766010A publication Critical patent/CN112766010A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Artificial Intelligence (AREA)
  • Toxicology (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The invention provides a single chip microcomputer safety device which comprises a cabinet body and a cabinet door hinged with the cabinet body, wherein a long-strip magnetic body is arranged at the edge of the back face of the cabinet door, and a magnetic lock adaptive to the magnetic body is arranged on the frame of the cabinet door; a display screen display area is arranged on the front surface of the cabinet surface, and a display screen is arranged in the display screen display area; and after the management cabinet receives the cabinet door opening information, the cabinet door is opened. According to the invention, the mobile intelligent terminal carried by the mobile phone and the like can be used for opening the cabinet door, a key is not needed to open the cabinet door, and the user experience is enhanced.

Description

Singlechip safety device
Technical Field
The invention relates to the technical field of management cabinets, in particular to a single-chip microcomputer safety device.
Background
The intelligent file management cabinet is a cabinet body for storing paper data, and is named as a fingerprint storage cabinet by the patent application number 2018101710468, and comprises a cabinet body, a key cap and a circuit board, wherein the cabinet body is provided with a storage cabinet, the storage cabinet is provided with a cabinet door and a cabinet lock, the cabinet door and the cabinet lock are used for forming a containing space for locking and unlocking the storage cabinet, the key cap is arranged on the surface of the cabinet body, the circuit board is arranged in the cabinet body and comprises keys, a fingerprint sensor, a cabinet lock driving circuit and a fingerprint safety chip, the keys, the fingerprint sensor and the cabinet lock driving circuit are all connected with the fingerprint safety chip, the key cap and the keys are used for sending cabinet opening request signals to the fingerprint safety chip, the fingerprint sensor is used for collecting fingerprint information of an operator and sending the fingerprint information to the fingerprint safety chip, the cabinet lock driving circuit is used for driving the cabinet lock, the fingerprint security chip is used for receiving the unpacking request signal, receiving, storing, comparing, deleting fingerprint information and driving the cabinet lock driving circuit. This patent application utilizes its fingerprint sensor to gather its user's fingerprint to realize opening of cabinet door, but if it is unclear to cause its collection because operator's fingerprint portion perspires, this can cause user's bad experience.
Disclosure of Invention
The invention aims to at least solve the technical problems in the prior art, and particularly creatively provides a singlechip safety device.
In order to achieve the purpose, the invention provides a single chip microcomputer safety device which comprises a cabinet body and a cabinet door hinged with the cabinet body, wherein a strip-shaped magnetic body is arranged at the edge of the back face of the cabinet door, and a magnetic lock adaptive to the magnetic body is arranged on the frame of the cabinet door; a display screen display area is arranged on the front surface of the cabinet surface, and a display screen is arranged in the display screen display area;
the left inner side wall and the right inner side wall of the cabinet body are respectively provided with M pairs of supporting frames for supporting and placing supporting plates, wherein M is a positive integer greater than or equal to 1, the 1 st pair of supporting frames, the 2 nd pair of supporting frames, the 3 rd pair of supporting frames, … … and the M pair of supporting frames are sequentially arranged from top to bottom, the M pair of supporting frames comprise an M left supporting frame and an M right supporting frame, an M pressure sensor is arranged on the M left supporting frame or the M right supporting frame, M is a positive integer less than or equal to M, and the supporting plates are placed on the M pair of supporting frames;
a cabinet door approach switch used for sensing a cabinet door closing signal is arranged at the bottom of a frame of the cabinet body, a mounting box is arranged at the bottom of the cabinet body, a PCB circuit board fixing mounting seat used for fixedly mounting a PCB circuit board and a storage battery fixing mounting seat used for fixedly mounting a storage battery are arranged in the mounting box, the PCB circuit board is fixedly mounted on the PCB circuit board fixing mounting seat, and the storage battery is fixedly mounted on the storage battery fixing mounting seat; a singlechip and a network data connection module are arranged on the PCB circuit board, the network data connection end of the network data connection module is connected with the network data connection end of the singlechip, the power-off control end of the magnetic lock is connected with the power-off control end of the singlechip, the display end of the display screen is connected with the display end of the singlechip, the pressure data output end of the mth pressure sensor is connected with the pressure data mth input end of the singlechip, and the approach signal output end of the cabinet door approach switch is connected with the approach signal input end of the singlechip;
and after the management cabinet receives the cabinet door opening information, the cabinet door is opened.
In a preferred embodiment of the present invention, M is 5, and the 1 st pair of supporting frames, the 2 nd pair of supporting frames, the 3 rd pair of supporting frames, the 4 th pair of supporting frames, and the 5 th pair of supporting frames are sequentially arranged from top to bottom;
a 1 st pressure sensor is arranged on the 1 st left support frame or the 1 st right support frame, and the pressure data output end of the 1 st pressure sensor is connected with the 1 st input end of the pressure data of the singlechip; a 2 nd pressure sensor is arranged on the 2 nd left support frame or the 2 nd right support frame, and the pressure data output end of the 2 nd pressure sensor is connected with the 2 nd input end of the pressure data of the singlechip; a 3 rd pressure sensor is arranged on the 3 rd left support frame or the 3 rd right support frame, and the pressure data output end of the 3 rd pressure sensor is connected with the 3 rd input end of the pressure data of the single chip microcomputer; a 4 th pressure sensor is arranged on the 4 th left support frame or the 4 th right support frame, and the pressure data output end of the 4 th pressure sensor is connected with the 4 th input end of the pressure data of the single chip microcomputer; the 5 th left support frame or the 5 th right support frame is provided with a 5 th pressure sensor, and the pressure data output end of the 5 th pressure sensor is connected with the 5 th input end of the pressure data of the single chip microcomputer.
In a preferred embodiment of the present invention, the network data connection module comprises a network wired data connection module or/and a network wireless data connection module;
the network data connecting end of the network wired data connecting module is connected with the network wired data connecting end of the single chip microcomputer, and the network data connecting end of the network wireless data connecting module is connected with the network wireless data connecting end of the single chip microcomputer.
In a preferred embodiment of the present invention, the network wired data connection module comprises a hundreds of megabytes network wired data connection module or/and a gigabytes network wired data connection module;
the network data connecting end of the gigabit network wired data connecting module is connected with the gigabit network wired data connecting end of the single chip microcomputer;
the network wireless data connection module comprises one or any combination of a WiFi network wireless data connection module, a 3G network wireless data connection module, a 4G network wireless data connection module and a 5G network wireless data connection module;
the network data link of wiFi network wireless data connection module links to each other with the wiFi network wireless data link of singlechip, 3G network wireless data connection module's network data link links to each other with the 3G network wireless data link of singlechip, 4G network wireless data connection module's network data link links to each other with the 4G network wireless data link of singlechip, 5G network wireless data connection module's network data link links to each other with the 5G network wireless data link of singlechip.
In a preferred embodiment of the present invention, cabinet support legs are provided on a bottom surface of the cabinet.
In a preferred embodiment of the invention, a three-hole socket is arranged on the back of the cabinet, a ground terminal G of the three-hole socket is connected with the cabinet, a mains supply live line terminal L of the three-hole socket is respectively connected with an anode of the diode D6 and a cathode of the diode D5, a mains supply neutral line terminal N of the three-hole socket is respectively connected with an anode of the diode D3 and a cathode of the diode D4, a cathode of the diode D3 and a cathode of the diode D6 are respectively connected with a first end of the capacitor C2 and a first end of a 220V to 24V power input of the module, and an anode of the diode D4 and an anode of the diode D5 are respectively connected with a second end of the capacitor C2 and a second end of the 220V to 24V power input of the module;
the positive power output end of the 220V-to-24V module is respectively connected with the positive power supply end of the storage battery and the first end of the normally open contact of the relay KM1, the negative power output end of the 220V-to-24V module is respectively connected with the negative power supply end of the storage battery, the negative power input end of the 24V-to-5V module and the first end of the adjustable resistor R7, the second end of the adjustable resistor R7 is connected with the first end of a first path of normally closed contact of the relay KM2 and the first end of a second path of normally open contact of the relay KM2, the second end of the normally open contact of the relay KM1 is respectively connected with the positive power input end of a 24V-to-5V module, the first end of the first path of normally open contact of the relay KM2 and the first end of a second path of normally closed contact of the relay KM2, the first path of common end of the relay KM2 is connected with the first end of the power input of the magnetic lock, and the second path of common end of the relay KM2 is connected with the second end of the power input of the;
the positive end of a power supply output of the 24V-to-5V module is connected with the first end of a resistor R3, the negative end of the power supply output of the 24V-to-5V module is connected with a power ground, the second end of a resistor R3 is respectively connected with the negative electrode of a diode D1 and the first end of an input loop of a relay KM1, the positive electrode of a diode D1 and the second end of the input loop of a relay KM1 are respectively connected with the drain electrode of a field-effect tube Q1, the gate electrode of the field-effect tube Q1 is connected with the first end of a resistor R2, the second end of the resistor R2 is respectively connected with the first end of the resistor R1 and the power-off control end of the single chip microcomputer, and the second end of the resistor R1 and the source;
the positive end of a power supply output of the 24V-to-5V module is further connected with a first end of a resistor R4, a second end of the resistor R4 is respectively connected with a cathode of a diode D2 and a first end of an input loop of a relay KM2, an anode of the diode D2 and a second end of the input loop of the relay KM2 are respectively connected with a drain electrode of a field-effect tube Q2, a grid electrode of the field-effect tube Q2 is connected with a first end of the resistor R5, a second end of the resistor R5 is respectively connected with a first end of the resistor R6 and a current direction control end of the single chip microcomputer, and a second end of the resistor R6 and a source electrode of the field-effect tube Q2 are respectively connected.
The invention also discloses a working method of the singlechip safety device, which comprises the following steps:
s1, displaying the acquired two-dimensional code image on a display screen by the single chip microcomputer;
s2, the mobile handheld intelligent terminal decodes the two-dimensional code and sends the two-dimensional code to the cloud server for verification, and after the verification is passed, the cloud server sends the cabinet opening code to the single chip microcomputer;
and S3, after the single chip microcomputer receives the cabinet opening code, the cabinet door is opened.
In a preferred embodiment of the invention, the method for opening the cabinet door comprises the following steps: the single chip microcomputer sends a conduction level to a grid electrode of a field effect transistor Q1 and sends a conduction level to a grid electrode of a field effect transistor Q2; at the moment, the field effect transistor Q1 is in a conducting state, the input loop of the relay KM1 is conducted, the normally open contact of the relay KM1 is changed into a closed state from a normally open state, the field effect transistor Q2 is in a conducting state, the input loop of the relay KM2 is conducted, the first normally closed contact of the relay KM2 is changed into a disconnected state from a normally closed state, the first normally open contact of the relay KM2 is changed into a closed state from a normally open state, the second normally closed contact of the relay KM2 is changed into a disconnected state from a normally closed state, and the second normally open contact of the relay KM2 is changed into; the current direction of the magnetic lock is in the opposite direction; the cabinet door is opened.
In a preferred embodiment of the invention, the method for closing the cabinet door comprises the following steps: when the single chip microcomputer receives an approach signal sent by the cabinet door approach switch, the single chip microcomputer sends a turn-on level to a grid electrode of a field-effect tube Q1 and sends a turn-off level to a grid electrode of a field-effect tube Q2; at the moment, the field effect transistor Q1 is in a conducting state, the input loop of the relay KM1 is conducted, the normally open contact of the relay KM1 is changed into a closed state from a normally open state, the field effect transistor Q2 is in a cut-off state, the input loop of the relay KM2 is disconnected, the first normally closed contact of the relay KM2 is changed into a normally closed state, the first normally open contact of the relay KM2 is in a normally open state, the second normally closed contact of the relay KM2 is in a normally closed state, and the second normally open contact of the relay KM2 is in a normally; the current direction of the magnetic lock is a positive direction; closing the cabinet door;
after waiting for Ts, s represents time second, and the singlechip sends cut-off level to the grid of the field effect transistor Q1; at the moment, the field effect transistor Q1 is in a cut-off state, the input loop of the relay KM1 is disconnected, the normally open contact of the relay KM1 is in a normally open state, and the magnetic force is locked and de-energized.
In a preferred embodiment of the present invention, step S1 is preceded by the following steps:
s01, after the cloud server receives a cabinet door opening request command, the cloud server generates a random black and white two-dimensional code; transforming the random black-white two-dimensional code into a two-dimensional matrix:
Figure BDA0002865728620000061
wherein m isxyRepresentation matrix MWHThe value of the element at the x-th row and y-th column;
when it is m xy1 represents a random black-white two-dimensional code in mxyM is black, mxy0 represents the random black-white two-dimensional code in mxyIs white;
h represents the height of the two-dimensional code, and w represents the width of the two-dimensional code;
x is a positive integer less than or equal to h, and y is a positive integer less than or equal to w;
arranging the two-dimensional matrix of the character string from left to right from top to bottom in sequence to form a binary character string:
m11m12m13…m1wm21m22m23…m2wm31m32m33…m3w…mh1mh2mh3…mhw(ii) a Obtaining the length of the binary string as PWH
S02, carrying out primary operation on the random two-dimensional code generated in the step S01 to obtain an authentication character string;
s03, the certification character string obtained in step S02 is operated once to obtain the 1 st certification character string O1Obtaining the 1 st authentication character string O1Is of binary length QWH(ii) a Judging the operation frequency K:
K=INT(PWH/QWH)+1,
wherein, PWHRepresents m11m12m13…m1wm21m22m23…m2wm31m32m33…m3w…mh1mh2mh3…mhwLength of (d);
QWHindicating the 1 st authentication string O1Length of (d);
s04, for the 1 st authentication character string O1Performing the same operation as the step S03 to obtain the 1 st authentication string to obtain the 2 nd authentication string O2
For 2 nd authentication string O2Performing the same operation as the 1 st authentication string obtained in step S03 to obtain the 3 rd authentication string O3
For the 3 rd authentication string O3Performing the same operation as the 1 st authentication string obtained in step S03 to obtain a 4 th authentication string O4
……;
Authentication string O for K-1K-1Performing the same operation as the first authentication string obtained in step S03 to obtain the Kth authentication string OK
Sequentially arranging the 1 st authentication character string O 12 nd authentication string O2And 3 rd authentication string O3… …, K authentication string OKAre connected to obtain a connection character string O1O2O3…OK(ii) a Connect it with character string O1O2O3…OKConverting into binary concatenated string, and intercepting binary concatenated string from head with length PWHObtaining an intercepted character string;
s05, carrying out parity XOR processing on the intercepted character string obtained in the step S04 and the binary character string obtained in the step S01 to obtain a verification character string; transforming validation strings into a validation matrix MWH′:
Figure BDA0002865728620000071
Wherein m isxy' representation verification matrix MWH' element value at x row y column in;
when it is mxy' 1 denotes a two-dimensional code to be transmittedAt mxy' in place is black, mxy' 0 indicates that the two-dimensional code to be transmitted is in mxy' white at point;
m11′m12′m13′…m1w′m21′m22′m23′…m2w′m31′m32′m33′…m3w′…mh1′mh2′mh3′…mhw' denotes an authentication string;
then converting the verification matrix into a two-dimensional code to be sent;
and S06, sending the two-dimensional code to be sent in the step S05 to a single chip microcomputer, and sending the authentication character string in the step S02 to the mobile handheld intelligent terminal.
In conclusion, due to the adoption of the technical scheme, the mobile intelligent terminal carried by a mobile phone and the like can be used for opening the cabinet door, a key is not needed for opening the cabinet door, and the user experience is enhanced.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic diagram of the present invention.
Fig. 2 is a schematic circuit diagram of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
The invention provides a single chip microcomputer safety device, which comprises a management cabinet as shown in figure 1, wherein the management cabinet comprises a cabinet body 1 and a cabinet door 8 hinged with the cabinet body 1, and a long-strip magnetic body 9 is arranged at the edge of the back surface of the cabinet door 8, and can be a permanent magnet or an iron block; a magnetic lock 4 which is adaptive to the magnetic body 9 is arranged on the frame of the cabinet door 8; a display screen display area is arranged on the front surface of the cabinet surface, and a display screen is arranged in the display screen display area;
the left inner side wall and the right inner side wall of the cabinet body 1 are respectively provided with M pairs of supporting frames 3 for supporting and placing the supporting plates 2, wherein M is a positive integer larger than or equal to 1, the 1 st pair of supporting frames, the 2 nd pair of supporting frames, the 3 rd pair of supporting frames, … … and the M th pair of supporting frames are sequentially arranged from top to bottom, the M th pair of supporting frames comprises an M-th left supporting frame and an M-th right supporting frame, an M-th pressure sensor is arranged on the M-th left supporting frame or the M-th right supporting frame, M is a positive integer smaller than or equal to M, and the supporting plates 2 are placed on the M-th;
a cabinet door approach switch 7 for sensing a closing signal of a cabinet door 8 is arranged at the bottom of a frame of the cabinet body 1, a mounting box 5 is arranged at the bottom of the cabinet body 1, a PCB circuit board fixing mounting seat for fixedly mounting a PCB circuit board and a storage battery fixing mounting seat for fixedly mounting a storage battery are arranged in the mounting box 5, the PCB circuit board is fixedly mounted on the PCB circuit board fixing mounting seat, and the storage battery is fixedly mounted on the storage battery fixing mounting seat; a single chip microcomputer and a network data connection module are arranged on a PCB circuit board, the single chip microcomputer adopts an stm32f103 single chip microcomputer, a network data connection end of the network data connection module is connected with a network data connection end of the single chip microcomputer, a power-off control end of a magnetic lock 4 is connected with a power-off control end of the single chip microcomputer, a display end of a display screen is connected with a display end of the single chip microcomputer, a pressure data output end of an mth pressure sensor is connected with a pressure data mth input end of the single chip microcomputer, and a proximity signal output end of a cabinet door proximity switch 7 is connected with a proximity signal input end of the;
and after the management cabinet receives the cabinet door opening information, the cabinet door is opened.
In a preferred embodiment of the present invention, M is 5, and the 1 st pair of supporting frames, the 2 nd pair of supporting frames, the 3 rd pair of supporting frames, the 4 th pair of supporting frames, and the 5 th pair of supporting frames are sequentially arranged from top to bottom;
a 1 st pressure sensor is arranged on the 1 st left support frame or the 1 st right support frame, and the pressure data output end of the 1 st pressure sensor is connected with the 1 st input end of the pressure data of the singlechip; a 2 nd pressure sensor is arranged on the 2 nd left support frame or the 2 nd right support frame, and the pressure data output end of the 2 nd pressure sensor is connected with the 2 nd input end of the pressure data of the singlechip; a 3 rd pressure sensor is arranged on the 3 rd left support frame or the 3 rd right support frame, and the pressure data output end of the 3 rd pressure sensor is connected with the 3 rd input end of the pressure data of the single chip microcomputer; a 4 th pressure sensor is arranged on the 4 th left support frame or the 4 th right support frame, and the pressure data output end of the 4 th pressure sensor is connected with the 4 th input end of the pressure data of the single chip microcomputer; the 5 th left support frame or the 5 th right support frame is provided with a 5 th pressure sensor, and the pressure data output end of the 5 th pressure sensor is connected with the 5 th input end of the pressure data of the single chip microcomputer. When the weight in the management cabinet is increased or reduced, reminding information is sent to the mobile handheld intelligent terminal, and data information of the mobile handheld intelligent terminal is recorded.
In a preferred embodiment of the present invention, the network data connection module comprises a network wired data connection module or/and a network wireless data connection module;
the network data connecting end of the network wired data connecting module is connected with the network wired data connecting end of the single chip microcomputer, and the network data connecting end of the network wireless data connecting module is connected with the network wireless data connecting end of the single chip microcomputer.
In a preferred embodiment of the present invention, the network wired data connection module comprises a hundreds of megabytes network wired data connection module or/and a gigabytes network wired data connection module;
the network data connecting end of the gigabit network wired data connecting module is connected with the gigabit network wired data connecting end of the single chip microcomputer;
the network wireless data connection module comprises one or any combination of a WiFi network wireless data connection module, a 3G network wireless data connection module, a 4G network wireless data connection module and a 5G network wireless data connection module;
the network data link of wiFi network wireless data connection module links to each other with the wiFi network wireless data link of singlechip, 3G network wireless data connection module's network data link links to each other with the 3G network wireless data link of singlechip, 4G network wireless data connection module's network data link links to each other with the 4G network wireless data link of singlechip, 5G network wireless data connection module's network data link links to each other with the 5G network wireless data link of singlechip.
In a preferred embodiment of the present invention, cabinet support legs 6 are provided on the bottom surface of the cabinet 1.
In a preferred embodiment of the present invention, a three-hole socket is disposed on the back of the cabinet 1, as shown in fig. 2, a ground terminal G of the three-hole socket is connected to the cabinet 1, a commercial power terminal L of the three-hole socket is connected to an anode of the diode D6 and a cathode of the diode D5, a commercial power terminal N of the three-hole socket is connected to an anode of the diode D3 and a cathode of the diode D4, a cathode of the diode D3 and a cathode of the diode D6 are connected to a first end of the capacitor C2 and a first end of the 220V-to-24V module, and an anode of the diode D4 and an anode of the diode D5 are connected to a second end of the capacitor C2 and a second end of the 220V-to-24V module;
the positive power output end of the 220V-to-24V module is respectively connected with the positive power supply end of the storage battery and the first end of the normally open contact of the relay KM1, the negative power output end of the 220V-to-24V module is respectively connected with the negative power supply end of the storage battery, the negative power input end of the 24V-to-5V module and the first end of the adjustable resistor R7, the second end of the adjustable resistor R7 is connected with the first end of a first path of normally closed contact of the relay KM2 and the first end of a second path of normally open contact of the relay KM2, the second end of the normally open contact of the relay KM1 is respectively connected with the positive power input end of a 24V-to-5V module, the first end of the first path of normally open contact of the relay KM2 and the first end of a second path of normally closed contact of the relay KM2, the first path of common end of the relay KM2 is connected with the first end of the power input of the magnetic lock, and the second path of common end of the relay KM2 is connected with the second end of the power input of the;
the positive end of a power supply output of the 24V-to-5V module is connected with the first end of a resistor R3, the negative end of the power supply output of the 24V-to-5V module is connected with a power ground, the second end of a resistor R3 is respectively connected with the negative electrode of a diode D1 and the first end of an input loop of a relay KM1, the positive electrode of a diode D1 and the second end of the input loop of a relay KM1 are respectively connected with the drain electrode of a field-effect tube Q1, the gate electrode of the field-effect tube Q1 is connected with the first end of a resistor R2, the second end of the resistor R2 is respectively connected with the first end of the resistor R1 and the power-off control end of the single chip microcomputer, and the second end of the resistor R1 and the source;
the positive end of a power supply output of the 24V-to-5V module is further connected with a first end of a resistor R4, a second end of the resistor R4 is respectively connected with a cathode of a diode D2 and a first end of an input loop of a relay KM2, an anode of the diode D2 and a second end of the input loop of the relay KM2 are respectively connected with a drain electrode of a field-effect tube Q2, a grid electrode of the field-effect tube Q2 is connected with a first end of the resistor R5, a second end of the resistor R5 is respectively connected with a first end of the resistor R6 and a current direction control end of the single chip microcomputer, and a second end of the resistor R6 and a source electrode of the field-effect tube Q2 are respectively connected. The magnetic field intensity of the excitation coil can be adjusted by adjusting the resistance value of the adjustable resistor R7.
The invention also discloses a working method of the singlechip safety device, which comprises the following steps:
s1, displaying the acquired two-dimensional code image on a display screen by the single chip microcomputer;
s2, the mobile handheld intelligent terminal decodes the two-dimensional code and sends the two-dimensional code to the cloud server for verification, and after the verification is passed, the cloud server sends the cabinet opening code to the single chip microcomputer; in this embodiment, the cloud server verification method includes: after the cloud server receives the decoded two-dimensional code sent by the single chip microcomputer, the cloud server performs one operation on the received decoded two-dimensional code, wherein the operations in the patent of the invention all adopt an SHA-1 algorithm to obtain a comparison character string, and whether the comparison character string is consistent with the authentication character string is judged:
if the comparison character string is consistent with the authentication character string, the verification is passed; generating a cabinet opening code, wherein the generation method of the cabinet opening code comprises the following steps:
A=[a-MAC],
wherein, a represents a comparison character string, MAC represents the physical address of the management cabinet, represents that the comparison character string a is connected with the physical address MAC of the management cabinet, [ ] represents that one operation is carried out, A represents the open cabinet code;
and if the comparison character string is inconsistent with the authentication character string, the verification fails, reminding information is sent to the mobile handheld intelligent terminal, and the two-dimensional code displayed on the display screen is updated.
And S3, after the single chip microcomputer receives the cabinet opening code, the cabinet door is opened. In this embodiment, a '═ a' -MAC,
wherein, a ' represents the character string of opening cabinet, MAC represents the physical address of the management cabinet, -represents to connect the character string a ' of opening cabinet with the physical address MAC of the management cabinet, [ ] represents to carry on a operation, A ' represents the verification code of opening cabinet;
the method for obtaining the open cabinet character string a' comprises the following steps: the mobile handheld intelligent terminal acquired by the management cabinet sends the decoded two-dimensional code to the management cabinet, and the acquired decoded two-dimensional code is subjected to primary operation to obtain an open cabinet character string a'.
In a preferred embodiment of the invention, the method for opening the cabinet door comprises the following steps: the single chip microcomputer sends a conduction level to a grid electrode of a field effect transistor Q1 and sends a conduction level to a grid electrode of a field effect transistor Q2; at the moment, the field effect transistor Q1 is in a conducting state, the input loop of the relay KM1 is conducted, the normally open contact of the relay KM1 is changed into a closed state from a normally open state, the field effect transistor Q2 is in a conducting state, the input loop of the relay KM2 is conducted, the first normally closed contact of the relay KM2 is changed into a disconnected state from a normally closed state, the first normally open contact of the relay KM2 is changed into a closed state from a normally open state, the second normally closed contact of the relay KM2 is changed into a disconnected state from a normally closed state, and the second normally open contact of the relay KM2 is changed into; the current direction of the magnetic lock is in the opposite direction; the cabinet door is opened. Wherein magnetic lock includes excitation coil and permanent magnet, and its excitation coil sets up according to actual conditions with the relation of connection of permanent magnet, can be the relation of connection in fig. 2, and excitation coil is located the below of permanent magnet, and the magnetic pole south S of permanent magnet is in the top, and magnetic pole north N is in the below, and the produced magnetic field intensity of electric current that flows through excitation coil equals or is close the magnetic field intensity that its permanent magnet produced when it, and the opposite direction, and the magnetic field that magnetic lock produced weakens, is convenient for open its cabinet door.
In a preferred embodiment of the invention, the method for closing the cabinet door comprises the following steps: when the single chip microcomputer receives an approach signal sent by the cabinet door approach switch 7, the single chip microcomputer sends a turn-on level to the grid of the field-effect tube Q1 and sends a turn-off level to the grid of the field-effect tube Q2; at the moment, the field effect transistor Q1 is in a conducting state, the input loop of the relay KM1 is conducted, the normally open contact of the relay KM1 is changed into a closed state from a normally open state, the field effect transistor Q2 is in a cut-off state, the input loop of the relay KM2 is disconnected, the first normally closed contact of the relay KM2 is changed into a normally closed state, the first normally open contact of the relay KM2 is in a normally open state, the second normally closed contact of the relay KM2 is in a normally closed state, and the second normally open contact of the relay KM2 is in a normally; the current direction of the magnetic lock is a positive direction (the arrow direction in fig. 2 is a positive direction); closing the cabinet door;
after Ts is waited, s represents time second, and T is 0.1-0.5; the singlechip sends cut-off level to the grid of the field effect transistor Q1; at the moment, the field effect transistor Q1 is in a cut-off state, the input loop of the relay KM1 is disconnected, the normally open contact of the relay KM1 is in a normally open state, and the magnetic force is locked and de-energized. Reducing the electric energy loss.
In a preferred embodiment of the present invention, step S1 is preceded by the following steps:
s01, after the cloud server receives a cabinet door opening request command, the cloud server generates a random black and white two-dimensional code; transforming the random black-white two-dimensional code into a two-dimensional matrix:
Figure BDA0002865728620000131
wherein m isxyRepresentation matrix MWHThe value of the element at the x-th row and y-th column;
when it is m xy1 represents a random black-white two-dimensional code in mxyM is black, mxy0 represents the random black-white two-dimensional code in mxyIs white;
h represents the height of the two-dimensional code, and w represents the width of the two-dimensional code;
x is a positive integer less than or equal to h, and y is a positive integer less than or equal to w;
arranging the two-dimensional matrix of the character string from left to right from top to bottom in sequence to form a binary character string:
m11m12m13…m1wm21m22m23…m2wm31m32m33…m3w…mh1mh2mh3…mhw(ii) a Obtaining the length of the binary string as PWH
S02, carrying out primary operation on the random two-dimensional code generated in the step S01 to obtain an authentication character string;
s03, the certification character string obtained in step S02 is operated once to obtain the 1 st certification character string O1Obtaining the 1 st authentication character string O1Is of binary length QWH(ii) a Judging the operation frequency K:
K=INT(PWH/QWH)+1,
wherein, PWHRepresents m11m12m13…m1wm21m22m23…m2wm31m32m33…m3w…mh1mh2mh3…mhwLength of (d);
QWHindicating the 1 st authentication string O1Length of (d);
s04, for the 1 st authentication character string O1Performing the same operation as the step S03 to obtain the 1 st authentication string to obtain the 2 nd authentication string O2
For 2 nd authentication string O2Proceed once with the step S03 to obtain the 1 st authentication stringThe same operation method is used to obtain the 3 rd authentication character string O3
For the 3 rd authentication string O3Performing the same operation as the 1 st authentication string obtained in step S03 to obtain a 4 th authentication string O4
……;
Authentication string O for K-1K-1Performing the same operation as the first authentication string obtained in step S03 to obtain the Kth authentication string OK
Sequentially arranging the 1 st authentication character string O 12 nd authentication string O2And 3 rd authentication string O3… …, K authentication string OKAre connected to obtain a connection character string O1O2O3…OK(ii) a Connect it with character string O1O2O3…OKConverting into binary concatenated string, and intercepting binary concatenated string from head with length PWHObtaining an intercepted character string;
s05, carrying out parity XOR processing on the intercepted character string obtained in the step S04 and the binary character string obtained in the step S01 to obtain a verification character string; transforming validation strings into a validation matrix MWH′:
Figure BDA0002865728620000151
Wherein m isxy' representation verification matrix MWH' element value at x row y column in;
when it is mxy' 1 indicates that the two-dimensional code to be transmitted is in mxy' in place is black, mxy' 0 indicates that the two-dimensional code to be transmitted is in mxy' white at point;
m11′m12′m13′…m1w′m21′m22′m23′…m2w′m31′m32′m33′…m3w′…mh1′mh2′mh3′…mhw' denotes an authentication string;
then converting the verification matrix into a two-dimensional code to be sent;
and S06, sending the two-dimensional code to be sent in the step S05 to a single chip microcomputer, and sending the authentication character string in the step S02 to the mobile handheld intelligent terminal. Realize the safe transmission of the data and enhance the storage of important data.
In a preferred embodiment of the present invention, step S2 includes the following steps:
s21, the mobile handheld intelligent terminal scans the two-dimension code on the display screen to obtain a received two-dimension code, and the received two-dimension code is converted into a two-dimension receiving matrix MWH″:
Figure BDA0002865728620000152
Wherein m isxy"represents the receiving matrix MWH"the value of the element at the x row and y column;
when it is m xy1 indicates that the received two-dimensional code is mxy"in black, mxyAnd 0 indicates that the received two-dimensional code is mxy"in white;
two-dimensional receiving matrix MWH"binary received strings are arranged from left to right and from top to bottom:
m11″m12″m13″…m1w″m21″m22″m23″…m2w″m31″m32″m33″…m3w″…mh1″mh2″mh3″…mhw"; obtaining the length of the binary receiving character string as PWH′;
S22, the mobile hand-held intelligent terminal carries out one operation on the received authentication character string to obtain the 1 st character string O of the authentication character string1', obtaining the 1 st character string O of the certification1' binary length of QWH'; judging the operation frequency K':
K′=INT(PWH′/QWH′)+1,
PWHis' m11″m12″m13″…m1w″m21″m22″m23″…m2w″m31″m32″m33″…m3w″…mh1″mh2″mh3″…mhw"length of;
QWH' indicating authentication 1 st character string O1' length;
s23, for the 1 st character string O1' the same operation as that for obtaining the authentication 1 st character string in step S22 is performed once to obtain the authentication 2 nd character string O2′;
For authentication 2 nd character string O2' the same operation as that for the authentication No. 1 string obtained in step S22 is performed once to obtain the authentication No. 3 string O3′;
For authentication 3 rd character string O3' the same operation as that for the authentication No. 1 string obtained in step S22 is performed once to obtain the authentication No. 4 string O4′;
……;
For authentication K' -1 character string OK′-1'the same operation method as that for obtaining the first authentication string in step S22 is performed once to obtain the K' th authentication string OK″;
Sequentially authenticating the 1 st character string O1', authentication 2 nd character string O2', authentication 3 rd character string O3', … …, authentication K' character string OK"connect to get a connected first string O1′O2′O3′…OK"; connect it with the first character string O1′O2′O3′…OK"convert to binary concatenated first string," intercept binary concatenated first string from head with length PWH', obtaining a first intercepted character string;
s24, the first character string obtained in the step S23 is intercepted and the step S21Carrying out parity XOR processing on the binary system receiving character string obtained in the step (A) to obtain a verification first character string; transforming the validation first string into a validation first matrix MWH″′,
Figure BDA0002865728620000171
Wherein m isxy"' indicates that the first matrix M is verifiedWHThe value of the element at line x and column y in ";
when it is mxyAnd 1 indicates that the two-dimensional code is decoded at mxy"' position is black, mxy' 0 means that the two-dimensional code is decoded at mxyThe' position is white;
m11″′m12″′m13″′…m1w″′m21″′m22″′m23″′…m2w″′m31″′m32″′m33″′…m3w″′…mh1″′mh2″′mh3″′…mhw"' indicates that the first string is verified;
transforming the verification first matrix into a decoding two-dimensional code;
and S25, sending the decoded two-dimensional code in the step S24 to a cloud server.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. A single chip microcomputer safety device comprises a cabinet body (1) and a cabinet door (8) hinged with the cabinet body (1), and is characterized in that a strip-shaped magnetic body (9) is arranged at the edge of the back face of the cabinet door (8), and a magnetic lock (4) adaptive to the magnetic body (9) is arranged on the frame of the cabinet door (8); a display screen display area is arranged on the front surface of the cabinet surface, and a display screen is arranged in the display screen display area;
m pairs of supporting frames (3) used for supporting and placing the supporting plates (2) are respectively arranged on the left inner side wall and the right inner side wall of the cabinet body (1), wherein M is a positive integer larger than or equal to 1, the 1 st pair of supporting frames, the 2 nd pair of supporting frames, the 3 rd pair of supporting frames, … … and the M th pair of supporting frames are sequentially arranged from top to bottom, the M th pair of supporting frames comprise an M-th left supporting frame and an M-th right supporting frame, an M-th pressure sensor is arranged on the M-th left supporting frame or the M-th right supporting frame, M is a positive integer smaller than or equal to M, and the supporting plates (2) are placed on the M;
a cabinet door approach switch (7) used for sensing a closing signal of a cabinet door (8) is arranged at the bottom of a frame of the cabinet body (1), a mounting box (5) is arranged at the bottom of the cabinet body (1), a PCB circuit board fixing mounting seat used for fixedly mounting a PCB circuit board and a storage battery fixing mounting seat used for fixedly mounting a storage battery are arranged in the mounting box (5), the PCB circuit board is fixedly mounted on the PCB circuit board fixing mounting seat, and the storage battery is fixedly mounted on the storage battery fixing mounting seat; a singlechip and a network data connection module are arranged on a PCB circuit board, the network data connection end of the network data connection module is connected with the network data connection end of the singlechip, the power-off control end of the magnetic lock (4) is connected with the power-off control end of the singlechip, the display end of a display screen is connected with the display end of the singlechip, the pressure data output end of an mth pressure sensor is connected with the mth pressure data input end of the singlechip, and the approach signal output end of a cabinet door approach switch (7) is connected with the approach signal input end of the singlechip;
and after the management cabinet receives the cabinet door opening information, the cabinet door is opened.
2. The single-chip microcomputer safety device according to claim 1, wherein M is 5, and the 1 st pair of supporting frames, the 2 nd pair of supporting frames, the 3 rd pair of supporting frames, the 4 th pair of supporting frames and the 5 th pair of supporting frames are sequentially arranged from top to bottom;
a 1 st pressure sensor is arranged on the 1 st left support frame or the 1 st right support frame, and the pressure data output end of the 1 st pressure sensor is connected with the 1 st input end of the pressure data of the singlechip; a 2 nd pressure sensor is arranged on the 2 nd left support frame or the 2 nd right support frame, and the pressure data output end of the 2 nd pressure sensor is connected with the 2 nd input end of the pressure data of the singlechip; a 3 rd pressure sensor is arranged on the 3 rd left support frame or the 3 rd right support frame, and the pressure data output end of the 3 rd pressure sensor is connected with the 3 rd input end of the pressure data of the single chip microcomputer; a 4 th pressure sensor is arranged on the 4 th left support frame or the 4 th right support frame, and the pressure data output end of the 4 th pressure sensor is connected with the 4 th input end of the pressure data of the single chip microcomputer; the 5 th left support frame or the 5 th right support frame is provided with a 5 th pressure sensor, and the pressure data output end of the 5 th pressure sensor is connected with the 5 th input end of the pressure data of the single chip microcomputer.
3. The single-chip microcomputer safety device according to claim 1, wherein the network data connection module comprises a network wired data connection module or/and a network wireless data connection module;
the network data connecting end of the network wired data connecting module is connected with the network wired data connecting end of the single chip microcomputer, and the network data connecting end of the network wireless data connecting module is connected with the network wireless data connecting end of the single chip microcomputer.
4. The single-chip microcomputer safety device according to claim 3, wherein the network wired data connection module comprises a hundred-megabyte network wired data connection module or/and a gigabit network wired data connection module;
the network data connecting end of the gigabit network wired data connecting module is connected with the gigabit network wired data connecting end of the single chip microcomputer;
the network wireless data connection module comprises one or any combination of a WiFi network wireless data connection module, a 3G network wireless data connection module, a 4G network wireless data connection module and a 5G network wireless data connection module;
the network data link of wiFi network wireless data connection module links to each other with the wiFi network wireless data link of singlechip, 3G network wireless data connection module's network data link links to each other with the 3G network wireless data link of singlechip, 4G network wireless data connection module's network data link links to each other with the 4G network wireless data link of singlechip, 5G network wireless data connection module's network data link links to each other with the 5G network wireless data link of singlechip.
5. The single-chip microcomputer safety device according to claim 1, wherein cabinet body supporting feet (6) are arranged on the bottom surface of the cabinet body (1).
6. The single-chip microcomputer safety device according to claim 1, wherein a three-hole socket is arranged on the back of the cabinet body (1), a ground terminal G of the three-hole socket is connected with the cabinet body (1), a mains supply live line terminal L of the three-hole socket is respectively connected with an anode of a diode D6 and a cathode of a diode D5, a mains supply live line terminal N of the three-hole socket is respectively connected with an anode of a diode D3 and a cathode of a diode D4, a cathode of the diode D3 and a cathode of a diode D6 are respectively connected with a first end of a capacitor C2 and a first end of a 220V to 24V power input, and an anode of the diode D4 and an anode of the diode D5 are respectively connected with a second end of a capacitor C2 and a second end of the 220V to 24V power input;
the positive power output end of the 220V-to-24V module is respectively connected with the positive power supply end of the storage battery and the first end of the normally open contact of the relay KM1, the negative power output end of the 220V-to-24V module is respectively connected with the negative power supply end of the storage battery, the negative power input end of the 24V-to-5V module and the first end of the adjustable resistor R7, the second end of the adjustable resistor R7 is connected with the first end of a first path of normally closed contact of the relay KM2 and the first end of a second path of normally open contact of the relay KM2, the second end of the normally open contact of the relay KM1 is respectively connected with the positive power input end of a 24V-to-5V module, the first end of the first path of normally open contact of the relay KM2 and the first end of a second path of normally closed contact of the relay KM2, the first path of common end of the relay KM2 is connected with the first end of the power input of the magnetic lock, and the second path of common end of the relay KM2 is connected with the second end of the power input of the;
the positive end of a power supply output of the 24V-to-5V module is connected with the first end of a resistor R3, the negative end of the power supply output of the 24V-to-5V module is connected with a power ground, the second end of a resistor R3 is respectively connected with the negative electrode of a diode D1 and the first end of an input loop of a relay KM1, the positive electrode of a diode D1 and the second end of the input loop of a relay KM1 are respectively connected with the drain electrode of a field-effect tube Q1, the gate electrode of the field-effect tube Q1 is connected with the first end of a resistor R2, the second end of the resistor R2 is respectively connected with the first end of the resistor R1 and the power-off control end of the single chip microcomputer, and the second end of the resistor R1 and the source;
the positive end of a power supply output of the 24V-to-5V module is further connected with a first end of a resistor R4, a second end of the resistor R4 is respectively connected with a cathode of a diode D2 and a first end of an input loop of a relay KM2, an anode of the diode D2 and a second end of the input loop of the relay KM2 are respectively connected with a drain electrode of a field-effect tube Q2, a grid electrode of the field-effect tube Q2 is connected with a first end of the resistor R5, a second end of the resistor R5 is respectively connected with a first end of the resistor R6 and a current direction control end of the single chip microcomputer, and a second end of the resistor R6 and a source electrode of the field-effect tube Q2 are respectively connected.
7. A working method of a singlechip safety device is characterized by comprising the following steps:
s1, displaying the acquired two-dimensional code image on a display screen by the single chip microcomputer;
s2, the mobile handheld intelligent terminal decodes the two-dimensional code and sends the two-dimensional code to the cloud server for verification, and after the verification is passed, the cloud server sends the cabinet opening code to the single chip microcomputer;
and S3, after the single chip microcomputer receives the cabinet opening code, the cabinet door is opened.
8. The working method of the single-chip microcomputer safety device according to claim 7, wherein the method for opening the cabinet door comprises the following steps: the single chip microcomputer sends a conduction level to a grid electrode of a field effect transistor Q1 and sends a conduction level to a grid electrode of a field effect transistor Q2; at the moment, the field effect transistor Q1 is in a conducting state, the input loop of the relay KM1 is conducted, the normally open contact of the relay KM1 is changed into a closed state from a normally open state, the field effect transistor Q2 is in a conducting state, the input loop of the relay KM2 is conducted, the first normally closed contact of the relay KM2 is changed into a disconnected state from a normally closed state, the first normally open contact of the relay KM2 is changed into a closed state from a normally open state, the second normally closed contact of the relay KM2 is changed into a disconnected state from a normally closed state, and the second normally open contact of the relay KM2 is changed into; the current direction of the magnetic lock is in the opposite direction; the cabinet door is opened.
9. The working method of the single-chip microcomputer safety device according to claim 7, wherein the method for closing the cabinet door comprises the following steps: when the single chip microcomputer receives an approach signal sent by the cabinet door approach switch (7), the single chip microcomputer sends a turn-on level to the grid of the field-effect tube Q1 and sends a turn-off level to the grid of the field-effect tube Q2; at the moment, the field effect transistor Q1 is in a conducting state, the input loop of the relay KM1 is conducted, the normally open contact of the relay KM1 is changed into a closed state from a normally open state, the field effect transistor Q2 is in a cut-off state, the input loop of the relay KM2 is disconnected, the first normally closed contact of the relay KM2 is changed into a normally closed state, the first normally open contact of the relay KM2 is in a normally open state, the second normally closed contact of the relay KM2 is in a normally closed state, and the second normally open contact of the relay KM2 is in a normally; the current direction of the magnetic lock is a positive direction; closing the cabinet door;
after waiting for Ts, s represents time second, and the singlechip sends cut-off level to the grid of the field effect transistor Q1; at the moment, the field effect transistor Q1 is in a cut-off state, the input loop of the relay KM1 is disconnected, the normally open contact of the relay KM1 is in a normally open state, and the magnetic force is locked and de-energized.
10. The operating method of the one-chip microcomputer safety device according to claim 7, characterized by comprising the following steps before the step S1:
s01, after the cloud server receives a cabinet door opening request command, the cloud server generates a random black and white two-dimensional code; transforming the random black-white two-dimensional code into a two-dimensional matrix:
Figure FDA0002865728610000051
wherein m isxyRepresentation matrix MWHThe value of the element at the x-th row and y-th column;
when it is mxy1 represents a random black-white two-dimensional code in mxyM is black, mxy0 represents the random black-white two-dimensional code in mxyIs white;
h represents the height of the two-dimensional code, and w represents the width of the two-dimensional code;
x is a positive integer less than or equal to h, and y is a positive integer less than or equal to w;
arranging the two-dimensional matrix of the character string from left to right from top to bottom in sequence to form a binary character string:
m11m12m13…m1wm21m22m23…m2wm31m32m33…m3w…mh1mh2mh3…mhw(ii) a Obtaining the length of the binary string as PWH
S02, carrying out primary operation on the random two-dimensional code generated in the step S01 to obtain an authentication character string;
s03, the certification character string obtained in step S02 is operated once to obtain the 1 st certification character string O1Obtaining the 1 st authentication character string O1Is of binary length QWH(ii) a Judging the operation frequency K:
K=INT(PWH/QWH)+1,
wherein, PWHRepresents m11m12m13…m1wm21m22m23…m2wm31m32m33…m3w…mh1mh2mh3…mhwLength of (d);
QWHindicating the 1 st authentication string O1Length of (d);
s04, for the 1 st authentication character string O1The same operation method as that for obtaining the 1 st authentication character string in the step S03 is performed onceTo obtain the 2 nd authentication character string O2
For 2 nd authentication string O2Performing the same operation as the 1 st authentication string obtained in step S03 to obtain the 3 rd authentication string O3
For the 3 rd authentication string O3Performing the same operation as the 1 st authentication string obtained in step S03 to obtain a 4 th authentication string O4
……;
Authentication string O for K-1K-1Performing the same operation as the first authentication string obtained in step S03 to obtain the Kth authentication string OK
Sequentially arranging the 1 st authentication character string O12 nd authentication string O2And 3 rd authentication string O3… …, K authentication string OKAre connected to obtain a connection character string O1O2O3…OK(ii) a Connect it with character string O1O2O3…OKConverting into binary concatenated string, and intercepting binary concatenated string from head with length PWHObtaining an intercepted character string;
s05, carrying out parity XOR processing on the intercepted character string obtained in the step S04 and the binary character string obtained in the step S01 to obtain a verification character string; transforming validation strings into a validation matrix MWH′:
Figure FDA0002865728610000061
Wherein m isxy' representation verification matrix MWH' element value at x row y column in;
when it is mxy' 1 indicates that the two-dimensional code to be transmitted is in mxy' in place is black, mxy' 0 indicates that the two-dimensional code to be transmitted is in mxy' white at point;
m11′m12′m13′…m1w′m21′m22′m23′…m2w′m31′m32′m33′…m3w′…mh1′mh2′mh3′…mhw' denotes an authentication string;
then converting the verification matrix into a two-dimensional code to be sent;
and S06, sending the two-dimensional code to be sent in the step S05 to a single chip microcomputer, and sending the authentication character string in the step S02 to the mobile handheld intelligent terminal.
CN202011583659.6A 2020-12-28 2020-12-28 Singlechip safety device Withdrawn CN112766010A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011583659.6A CN112766010A (en) 2020-12-28 2020-12-28 Singlechip safety device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011583659.6A CN112766010A (en) 2020-12-28 2020-12-28 Singlechip safety device

Publications (1)

Publication Number Publication Date
CN112766010A true CN112766010A (en) 2021-05-07

Family

ID=75696510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011583659.6A Withdrawn CN112766010A (en) 2020-12-28 2020-12-28 Singlechip safety device

Country Status (1)

Country Link
CN (1) CN112766010A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114267109A (en) * 2021-12-15 2022-04-01 重庆海润节能技术股份有限公司 Infectious disease patient sample collection platform based on movable safety cabin

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204010160U (en) * 2014-08-27 2014-12-10 南京信息工程大学 The intelligent locker that Quick Response Code is unpacked
CN104318647A (en) * 2014-10-13 2015-01-28 长安大学 Access control system based on intelligent terminal and control method of access control system
CN204349226U (en) * 2015-02-04 2015-05-20 宁波市锦达电器设备制造有限公司 A kind of antitheft power distribution cabinet
CN204440558U (en) * 2015-02-25 2015-07-01 成都天宁通智能科技有限公司 Intelligent fingerprint management cabinet
CN205846770U (en) * 2016-06-23 2016-12-28 国网山东省电力公司高唐县供电公司 Convenience-for-people mobile phone charging cabinet
CN107038814A (en) * 2016-11-16 2017-08-11 安徽联展智能科技有限公司 A kind of public intelligent product register system
CN206610253U (en) * 2017-02-22 2017-11-03 郑州云海信息技术有限公司 A kind of display screen intelligent controlling device based on server system
CN108155701A (en) * 2018-02-27 2018-06-12 湖州金软电子科技有限公司 A kind of self-service charging unit of public mobile phone
CN109087417A (en) * 2018-07-23 2018-12-25 湖北工业大学 A kind of safe two dimensional code entrance guard authentication system and method
CN109559414A (en) * 2018-12-17 2019-04-02 武汉钢铁工程技术集团通信有限责任公司 A kind of gate lock for cabinet control method and system
CN110374453A (en) * 2019-07-31 2019-10-25 江苏金海湾智能制造有限公司 A kind of intelligent safe, system and management method
CN110930582A (en) * 2019-10-23 2020-03-27 广东工业大学 Intelligent sales counter and control method thereof
CN210199841U (en) * 2019-09-18 2020-03-27 深圳市斯特纽科技有限公司 Wired door control system for cabinet
CN212139839U (en) * 2020-03-12 2020-12-15 江苏海康博瑞电子有限公司 Intelligent file cabinet based on RFID technology

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204010160U (en) * 2014-08-27 2014-12-10 南京信息工程大学 The intelligent locker that Quick Response Code is unpacked
CN104318647A (en) * 2014-10-13 2015-01-28 长安大学 Access control system based on intelligent terminal and control method of access control system
CN204349226U (en) * 2015-02-04 2015-05-20 宁波市锦达电器设备制造有限公司 A kind of antitheft power distribution cabinet
CN204440558U (en) * 2015-02-25 2015-07-01 成都天宁通智能科技有限公司 Intelligent fingerprint management cabinet
CN205846770U (en) * 2016-06-23 2016-12-28 国网山东省电力公司高唐县供电公司 Convenience-for-people mobile phone charging cabinet
CN107038814A (en) * 2016-11-16 2017-08-11 安徽联展智能科技有限公司 A kind of public intelligent product register system
CN206610253U (en) * 2017-02-22 2017-11-03 郑州云海信息技术有限公司 A kind of display screen intelligent controlling device based on server system
CN108155701A (en) * 2018-02-27 2018-06-12 湖州金软电子科技有限公司 A kind of self-service charging unit of public mobile phone
CN109087417A (en) * 2018-07-23 2018-12-25 湖北工业大学 A kind of safe two dimensional code entrance guard authentication system and method
CN109559414A (en) * 2018-12-17 2019-04-02 武汉钢铁工程技术集团通信有限责任公司 A kind of gate lock for cabinet control method and system
CN110374453A (en) * 2019-07-31 2019-10-25 江苏金海湾智能制造有限公司 A kind of intelligent safe, system and management method
CN210199841U (en) * 2019-09-18 2020-03-27 深圳市斯特纽科技有限公司 Wired door control system for cabinet
CN110930582A (en) * 2019-10-23 2020-03-27 广东工业大学 Intelligent sales counter and control method thereof
CN212139839U (en) * 2020-03-12 2020-12-15 江苏海康博瑞电子有限公司 Intelligent file cabinet based on RFID technology

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114267109A (en) * 2021-12-15 2022-04-01 重庆海润节能技术股份有限公司 Infectious disease patient sample collection platform based on movable safety cabin

Similar Documents

Publication Publication Date Title
CN104157063B (en) A kind of gate control system and its control method
CN105809796B (en) A kind of hotel self-service moves in control system and method
CN106340104B (en) A kind of coded lock, coded lock control system and method
CN106097487A (en) A kind of off-line type gate control system based on smart mobile phone and control method thereof
CN104916022A (en) Intelligent lock control method, mobile terminal and intelligent lock system
CN205080626U (en) Intelligence lock system based on thing networking
CN204883882U (en) Fingerprint lock system and lock
CN112766010A (en) Singlechip safety device
CN103259664A (en) Nfc dynamic password chip and working method thereof
CN105530258A (en) Electronic signature apparatus and method
CN106850664A (en) Internet-of-things terminal method of controlling security and its system based on intelligent mobile terminal
CN205845134U (en) A kind of smart lock
CN106657166A (en) Identity verification method, terminal device and server
CN112686071A (en) Working method for realizing opening and closing of cabinet door through single chip microcomputer
CN106836990A (en) Fingerprint lock with wireless charging function
CN112837446A (en) Linkage human resource data cabinet by using mobile handheld intelligent terminal
CN102710599B (en) Fingerprint encryption method for photon key based on mobile phone
CN112686072A (en) Control method for human resource equipment device
CN106303022A (en) A kind of electronics key by voice-grade channel transmission password
CN206741574U (en) A kind of Internet of Things electronic lock unlocked based on recognition of face
CN109979053A (en) A kind of offline model Internet of Things lock device and cipher key transmission methods based on MULTIPLE DYNAMIC key
CN213276764U (en) Passive automatic lock
CN212460637U (en) Terminal management and control device with short message reminding function
CN114999045A (en) Passing system and method based on two-dimensional code encryption
CN210264225U (en) Durable intelligent lock

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210507

WW01 Invention patent application withdrawn after publication