Smart seal based on QR code recognition

By compressing the timestamp and seal ID, a low density QR code is generated, combined with the server-side seal records, the problem of slow generation of smart seals is solved, the recognition speed and user experience are improved, and real-time monitoring and recording and traceability of seals are realized. .

CN114792105BActive Publication Date: 2025-01-10人天通信集团有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210441091.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-25
Publication Date
2025-01-10
Estimated Expiration
2042-04-25

AI Technical Summary

Technical Problem

The slow speed of generating QR codes in smart seals leads to poor user experience.

Method used

By compressing the timestamp, seal ID and user identity identification information, a low-density QR code is generated, combined with the server-side seal records and account association, rapid identification and authorization are achieved, and 5-digit seal ID is used for traceability to reduce the QR code password password. , improve the recognition speed.

Benefits of technology

It greatly improves the speed of QR code recognition, simplifies the user application process, reduces the risk of private illegal stamps, and realizes real-time monitoring of seals and traceable checking functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114792105B_ABST
    Figure CN114792105B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of seal management, and proposes a smart seal based on QR code recognition, wherein the QR code includes a compressed timestamp, a seal ID and user identification information, the smart seal is connected to a server for communication, the server stores multiple seal records, each seal record includes a one-to-one corresponding company account, seal ID and seal code, each company account has corresponding user identification information, the seal ID is a 5-digit decimal code, and the compressed timestamp, seal ID and user identification information are integrated in a single QR code. Through the above technical solution, the problem of slow speed of generating QR codes by smart seals in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of seal management, and in particular to a smart seal based on two-dimensional code recognition. Background Art

[0002] Smart seals are to put the original seal in the seal machine, connect the seal machine with the Internet or Bluetooth, and when using the seal, you only need to apply for the seal on the APP or WeChat applet, and the administrator will monitor it in real time. The seal can be successfully affixed only after the administrator agrees to affix the seal. It can realize functions such as remote authorization, remote review, automatic photo uploading, full-process monitoring, full-process recording, stamping, and traceable records. It can control the content, number of times, personnel, and location of the seal in real time, greatly reducing the risk of private individuals stealing illegal seals and personal seals.

[0003] With the development of QR code technology, when applying for a seal, you can scan the code to simplify the application process. However, since each QR code contains multiple contents such as timestamp, seal ID, user identity recognition, etc., the generation process will be slow, resulting in a poor user experience. Summary of the invention

[0004] The present invention proposes a smart seal based on two-dimensional code recognition, which solves the problem of slow speed of generating two-dimensional codes by smart seals in related technologies.

[0005] The technical solution of the present invention is as follows: the two-dimensional code includes a compressed timestamp, a seal ID and user identification information, the smart seal is connected to a server for communication, the server stores a plurality of seal records, each seal record includes a one-to-one corresponding company account, seal ID and seal code, each company account has corresponding user identification information, the seal ID is a 5-digit decimal code,

[0006] The compressed timestamp, seal ID and user identification information are integrated into a single QR code.

[0007] Furthermore, the compressed timestamp is a 9-bit decimal code, and the compressed timestamp is obtained by intercepting the first 9 bits of the 13-bit timestamp.

[0008] Furthermore, the compressed timestamp, seal ID and user identification information are integrated into a single QR code, specifically including:

[0009] Generate a QR code image based on the compressed timestamp, seal ID and user identification information;

[0010] The two-dimensional code image is sent to a display screen, and the two-dimensional code image is enlarged according to the size of the display screen.

[0011] Furthermore, the smart seal is provided with a key KEY1 connected to the main control chip, and the key KEY1 is used to trigger the generation of a QR code image.

[0012] Furthermore, it also includes an automatic shutdown circuit, which includes a key KEY2, a transistor Q3 and a D trigger U3.

[0013] The first end of the key KEY2 is connected to the power supply VDD, and the second end of the key KEY2 is connected to the set end of the D flip-flop U3.

[0014] The base of the transistor Q3 is connected to the main control chip, the emitter of the transistor Q3 is grounded, the collector of the transistor Q3 is connected to the power supply VDD through the resistor R5, and the collector of the transistor Q3 is connected to the reset terminal of the D flip-flop U3.

[0015] The output end of the D flip-flop U3 is used to control the power on and off of the main control chip.

[0016] Furthermore, it includes a resistor R6, a diode D1 and a capacitor C1, the resistor R6 is connected in parallel with the diode D1, the anode of the diode D1 is connected to the second end of the key KEY2, the cathode of the diode D1 is connected to one end of the capacitor C1, and the other end of the capacitor C1 is grounded.

[0017] Furthermore, it also includes a transistor Q5, the base of the transistor Q5 is connected to the second end of the key KEY2 through the resistor R2, the emitter of the transistor Q5 is grounded, and the collector of the transistor Q5 is connected to the main control chip.

[0018] Furthermore, it also includes a transistor Q4, the base of which is connected to the output end of the D trigger U3 through a resistor R3, the emitter of which is connected to the power supply end of the main control chip, and the collector of which is connected to an external power supply VIN.

[0019] Furthermore, it also includes a driving chip U1 and a font library chip U2 both connected to the main control chip, and the driving chip U1 is used to drive the display screen.

[0020] The working principle and beneficial effects of the present invention are:

[0021] The present invention stores the 5-digit seal ID, company account and seal code in a one-to-one correspondence in the server, and each seal has a unique seal code. When a user needs to use a smart seal, the user scans the QR code on the display screen, and the server obtains the seal ID and the user's identity information; if the user's identity information can be found in the server, it is determined that the user has the authority to use the seal, and the seal automatically covers and can be used. At the same time, the server stores a company account associated with the user's identity information, and the company account of the company can be obtained through the user's identity information, and then the unique seal code is obtained through the company account and the seal ID. By saving the use record of the seal (including the user's identity information, use time, seal code, etc.), the seal can be traced.

[0022] The present invention associates the seal ID, company account and seal code, and can realize seal traceability by using a 5-digit seal ID, which greatly reduces the density of the two-dimensional code and is conducive to improving the recognition speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0024] Figure 1 This is a schematic diagram of the automatic shutdown circuit in the present invention;

[0025] Figure 2 A schematic diagram showing a circuit in the present invention;

[0026] Figure 3 This is a schematic diagram of the anti-shake circuit in the present invention;

[0027] Figure 4 It is the state transition diagram of S0~S3 in the present invention;

[0028] In the figure: 2 automatic shutdown circuit, 4 anti-shake circuit, 5 display circuit. DETAILED DESCRIPTION

[0029] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] In this embodiment, the QR code includes a compressed timestamp, a seal ID and user identification information. The smart seal is connected to a server for communication. The server stores multiple seal records. Each seal record includes a one-to-one corresponding company account, seal ID and seal code. Each company account has corresponding user identification information. The seal ID is a 5-digit decimal code.

[0031] The compressed timestamp, seal ID and user identification information are integrated into a single QR code.

[0032] The present invention stores the 5-digit seal ID, company account and seal code in a one-to-one correspondence in the server, and each seal has a unique seal code. When a user needs to use a smart seal, the user scans the QR code on the display screen, and the server obtains the seal ID and the user's identity information; if the user's identity information can be found in the server, it is determined that the user has the authority to use the seal, and the seal automatically covers and can be used. At the same time, the server stores a company account associated with the user's identity information, and the company account of the company can be obtained through the user's identity information, and then the unique seal code is obtained through the company account and the seal ID. By saving the use record of the seal (including the user's identity information, use time, seal code, etc.), the seal can be traced.

[0033] The present invention associates the seal ID, company account and seal code, and can realize seal traceability by using a 5-digit seal ID, which greatly reduces the density of the two-dimensional code and is conducive to improving the recognition speed.

[0034] Specifically, the smart seal has a built-in SIM card, and the SIM card number is set as the seal code according to the coding rules of the SIM card.

[0035] Furthermore, the compressed timestamp is a 9-bit decimal code, and the compressed timestamp is obtained by intercepting the first 9 bits of the 13-bit timestamp.

[0036] The 13-digit timestamp is automatically generated by the internal software of the smart seal. Those skilled in the art know that the 13-digit timestamp can achieve accurate timing in milliseconds. In this embodiment, the time timing can be accurate to minutes. Therefore, the first 9 digits of the 13-digit timestamp are taken as a compressed timestamp to generate an identification QR code, which further reduces the density of the QR code and is conducive to improving the recognition speed.

[0037] Furthermore, the compressed timestamp, seal ID and user identification information are integrated into a single QR code, specifically including:

[0038] Generate a QR code image based on the compressed timestamp, seal ID and user identification information;

[0039] The two-dimensional code image is sent to a display screen, and the two-dimensional code image is enlarged according to the size of the display screen.

[0040] Since the seal ID and timestamp are compressed in this embodiment, the density of the QR code is greatly reduced and the size of the QR code image is smaller; when it is actually displayed on the screen, it is enlarged and does not affect the user's normal scanning of the code.

[0041] Furthermore, the smart seal is provided with a key KEY1 connected to the main control chip, and the key KEY1 is used to trigger the generation of the two-dimensional code image.

[0042] The smart seal is also provided with a button KEY1. When the user needs to use the seal, he presses the button KEY1 to immediately generate a real-time QR code. If there is no response within 5 minutes, the QR code will be invalid, ensuring that the use time of the seal is recorded in real time.

[0043] Furthermore, it also includes an automatic shutdown circuit 2, such as Figure 1 As shown, the automatic shutdown circuit 2 includes a key KEY2, a transistor Q3 and a D trigger U3.

[0044] The first end of the key KEY2 is connected to the power supply VDD, and the second end of the key KEY2 is connected to the set end of the D flip-flop U3.

[0045] The base of the transistor Q3 is connected to the main control chip, the emitter of the transistor Q3 is grounded, the collector of the transistor Q3 is connected to the power supply VDD through the resistor R5, and the collector of the transistor Q3 is connected to the reset terminal of the D flip-flop U3.

[0046] The output end of the D flip-flop U3 is used to control the power on and off of the main control chip.

[0047] In order to prevent the smart seal of this embodiment from being in a standby state for a long time, this embodiment is provided with an automatic shutdown circuit 2, and its working principle is as follows: when it is necessary to turn on the power, press the button KEY1, the set end SET1 of the D flip-flop U3 is connected to the power supply VDD, the set end SET1 of the D flip-flop U3 is high level, the reset end RESET of the D flip-flop U3 is also high level, the output end Q1 of the D flip-flop U3 is high level, the control is turned on the power supply of the main control chip, and the main control chip is initialized internally; during the initialization of the main control chip, the I / O port of the main control chip outputs a high point level, the transistor Q3 is turned on, and the reset end RESET of the D flip-flop U3 is grounded. At this time, since the button KEY1 has not been released, the set end SET of the D flip-flop U3 is still high level, and the output end Q1 of the D flip-flop U3 is high level; thereafter, the button KEY1 is released, the set end SET1 of the D flip-flop U3 is low level, the reset end RESET of the D flip-flop U3 is also low level, the output end Q1 of the D flip-flop U3 remains high level unchanged, and the seal circuit is in a normal working state.

[0048] During normal operation, if the main control chip does not receive an external signal within the set time, the main control chip outputs a low-level signal CTRL to the base of the transistor Q3, the transistor Q3 is turned off, the reset terminal RESET of the D flip-flop U3 is high, the D flip-flop U3 is reset, and the output terminal Q1 of the D flip-flop U3 outputs a low level, which controls the disconnection of the power supply of the main control chip.

[0049] The main control chip can be a single-chip microcomputer, ARM, DSP or other control chip commonly used in the market. In this embodiment, the MSP430 single-chip microcomputer is specifically used.

[0050] Further, if Figure 1 As shown, it also includes a resistor R6, a diode D1 and a capacitor C1, the resistor R6 is connected in parallel with the diode D1, the anode of the diode D1 is connected to the second end of the key KEY2, the cathode of the diode D1 is connected to one end of the capacitor C1, and the other end of the capacitor C1 is grounded.

[0051] When the button KEY1 is pressed, the power supply VDD quickly charges the capacitor C1 through the diode D1. After the capacitor C1 is fully charged, the set terminal SET1 of the D flip-flop U3 is kept at a high level. In this way, during the initialization of the main control chip, even if the button KEY1 is released, the set terminal SET1 of the D flip-flop U3 can be kept at a high level, thereby ensuring that the output end of the D flip-flop U3 is at a high level.

[0052] Further, if Figure 1 As shown, it also includes a transistor Q5, the base of the transistor Q5 is connected to the second end of the key KEY2 through the resistor R2, the emitter of the transistor Q5 is grounded, and the collector of the transistor Q5 is connected to the main control chip.

[0053] When the seal circuit is working normally, transistor Q5 is not conducting, and the collector of transistor Q5 outputs a high-level signal KEY_IN to the main control chip; when the user wants to stop the seal working, he presses the button KEY1, transistor Q5 is turned on, and the collector of transistor Q5 outputs a low-level signal KEY_IN. When the main control chip detects this signal change, it delays for a period of time and then reads the KEY_IN signal. If it is still at a low level, it is determined that the user has input a shutdown signal. The main control chip first saves important operating data, and then outputs a low-level signal CTRL to the base of transistor Q3, turning off transistor Q3, and the reset terminal RESET of the D flip-flop U3 is high, the D flip-flop U3 is reset, and the output terminal Q1 of the D flip-flop U3 outputs a low level, which controls the disconnection of the power supply of the main control chip.

[0054] The configuration of the transistor Q5 in this embodiment enables automatic preservation of data when the user shuts down the computer, thereby preventing the user from suddenly shutting down the computer and causing loss of important data.

[0055] Further, if Figure 1 As shown, it also includes a transistor Q4, the base of which is connected to the output end of the D trigger U3 through a resistor R3, the emitter of which is connected to the power supply end of the main control chip, and the collector of which is connected to the external power supply VIN.

[0056] When the output terminal Q1 of the D flip-flop U3 is at a high level, the transistor Q4 is turned on, the power supply terminal VCC of the main control chip is connected to the external power supply VIN, and the main control chip starts to work; conversely, when the output terminal Q1 of the D flip-flop U3 is at a low level, the transistor Q4 is turned off, the power supply terminal VCC of the main control chip is disconnected from the external power supply VIN, and the main control chip stops working.

[0057] Further, if Figure 2 As shown, it also includes a driving chip U1 and a font chip U2 both connected to the main control chip, and the driving chip U1 is used to drive the display screen.

[0058] This embodiment uses a separate font library chip, and the main control chip does not need to pay attention to the specific operation process displayed on the screen, but only needs to output and return calls, which saves the computing resources of the main control chip.

[0059] Furthermore, an anti-shake circuit 4 is included, such as Figure 3 As shown, the anti-shake circuit 4 includes a D flip-flop U4, an AND gate chip U5 and an OR gate chip U7 connected in sequence.

[0060] The first clock input terminal and the second clock input terminal of the D flip-flop U4 are both connected to the main control chip, the first terminal of the key KEY1 is connected to the power supply 5V, the second terminal of the key KEY1 is grounded through the resistor R7, and the second terminal of the key KEY1 is connected to the first signal input terminal of the D flip-flop U4.

[0061] The second end of the key KEY1 is also connected to the 1A end and the 2A end of the AND gate chip U5 respectively, the first output end of the D flip-flop U4 is connected to the 2B end and the 3A end of the AND gate chip U5 respectively, the second output end of the D flip-flop U4 is connected to the 1B end and the 3B end of the AND gate chip U5 respectively, the 1Y end, the 2Y end and the 3Y end of the AND gate chip U5 are connected to the 1A end, the 1B end and the 1C end of the OR gate chip U7 respectively, the 1Y end of the OR gate chip U7 is connected to the second signal input end of the D flip-flop U4,

[0062] The second output terminal of the D trigger U4 is used as the output of the anti-shake circuit 4 and is connected to the main control chip.

[0063] This embodiment sets an anti-shake circuit 4 to prevent the key KEY1 from being triggered by mistake during the seal transportation process. The working principle is as follows: the anti-shake circuit 4 samples the input signal of the key KEY1 twice in succession. If both results are 0, it indicates that the key is released, and S =S0(0,0) means; S =S1(0,1) indicates that the key KEY1 is not pressed long enough, and the key action is invalid; S =S2(1,1) indicates that the two sampling results of key KEY1 are both 1, and key KEY1 is pressed; S =S3(1,0) indicates that the force applied when releasing the button is too short and the release action is invalid. Figure 4 As shown, it is the state transition diagram of S0, S1, S2, and S3, which is summarized as the data shown in Table 1 below, where X_1 represents the most recent sampling result of key KEY1, X_2 represents the judged key state, X_2=1 represents that the key is pressed, and X_2=0 represents that the key is released.

[0064] Table 1 Key state conversion

[0065]

[0066] From Table 1, we can get the following relationship:

[0067] (1)

[0068] Design the circuit diagram according to the above relationship, such as Figure 3 shown.

[0069] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A smart seal based on two-dimensional code recognition, wherein the two-dimensional code is used to be displayed on a display screen of the smart seal, characterized in that: The QR code includes a compressed timestamp, a seal ID and user identification information. The smart seal is connected to a server for communication. The server stores a plurality of seal records. Each seal record includes a corresponding company account, seal ID and seal code. Each company account has corresponding user identification information. The seal ID is a 5-digit decimal code. The compressed timestamp, seal ID and user identification information are integrated into a single QR code; The smart seal is provided with a key KEY1 connected to the main control chip, and the key KEY1 is used to trigger the generation of a QR code image; The automatic shutdown circuit (2) includes a key KEY2, a transistor Q3 and a D trigger U3. The first end of the key KEY2 is connected to the power supply VDD, and the second end of the key KEY2 is connected to the set end of the D flip-flop U3. The base of the transistor Q3 is connected to the main control chip, the emitter of the transistor Q3 is grounded, the collector of the transistor Q3 is connected to the power supply VDD through the resistor R5, and the collector of the transistor Q3 is connected to the reset terminal of the D flip-flop U3. The output end of the D flip-flop U3 is used to control the power on and off of the main control chip.

2. The smart seal based on two-dimensional code recognition according to claim 1 is characterized in that: The compressed timestamp is a 9-bit decimal code, and the compressed timestamp is obtained by intercepting the first 9 bits of the 13-bit timestamp.

3. The smart seal based on two-dimensional code recognition according to claim 1 is characterized in that: Also includes: The compressed timestamp, seal ID and user identification information are integrated into a single QR code, specifically including: Generate a QR code image based on the compressed timestamp, seal ID and user identification information; The two-dimensional code image is sent to a display screen, and the two-dimensional code image is enlarged according to the size of the display screen.

4. The smart seal based on two-dimensional code recognition according to claim 1 is characterized in that: It also includes a resistor R6, a diode D1 and a capacitor C1, the resistor R6 is connected in parallel with the diode D1, the anode of the diode D1 is connected to the second end of the key KEY2, the cathode of the diode D1 is connected to one end of the capacitor C1, and the other end of the capacitor C1 is grounded.

5. The smart seal based on two-dimensional code recognition according to claim 1 is characterized in that: It also includes a transistor Q5, the base of the transistor Q5 is connected to the second end of the key KEY2 through a resistor R2, the emitter of the transistor Q5 is grounded, and the collector of the transistor Q5 is connected to the main control chip.

6. The smart seal based on two-dimensional code recognition according to claim 1 is characterized in that: It also includes a transistor Q4, the base of which is connected to the output end of the D trigger U3 through a resistor R3, the emitter of which is connected to the power supply end of the main control chip, and the collector of which is connected to an external power supply VIN.

7. The smart seal based on two-dimensional code recognition according to claim 1 is characterized in that: It also includes a driving chip U1 and a font library chip U2 both connected to the main control chip, and the driving chip U1 is used to drive the display screen.

Citation Information

Patent Citations

  • Intelligent seal carrying intelligent chip

    CN108108611A

  • Intelligent seal system and method

    CN108564348A

  • Page electronic signature display method and device, equipment and storage medium

    CN112966197A