Box opening detection circuit, box opening detection method and case

By designing an unboxing detection circuit including an unboxing detection switch module and a power-off RTC time recording module, the problems of unreliable unboxing detection and high power consumption in the existing technology are solved, and unpacking in the power-off state is realized. Event detection and time recording ensure the non-tamperability and reliability of detection results.

CN118689142APending Publication Date: 2024-09-24ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410690269.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The physical-based unboxing detection in the existing technology has problems of tamperability and high power consumption, especially when the device is not powered, unboxing event detection cannot be performed.

Method used

An unpacking detection circuit including a power supply, an unpacking detection switch module, a power-off unpacking detection module, a power-off RTC time recording module and a microcontrol unit is designed. The unpacking event signal in the power-off state is used to pause the timing. And after the power supply is restored, the power-off and unpacking time is obtained to ensure that the test results cannot be tampered with.

Benefits of technology

It realizes unboxing event detection and time recording in the power-off state, improves the reliability of detection results, avoids the problems of low physical reliability and high power consumption, and enhances the safety of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689142A
    Figure CN118689142A
Patent Text Reader

Abstract

The invention provides a box opening detection circuit, a box opening detection method and a case, and relates to the technical field of box opening detection. The circuit comprises a power supply, a box opening detection switch module, a power-off box opening detection module, a power-off RTC time recording module and a micro-control unit MCU, wherein the box opening detection switch module is connected with the power supply, the power-off box opening detection module and the MCU; the power-off box opening detection module is connected with the power supply, the power-off RTC time recording module and the MCU, and the power-off box opening detection module is used for controlling the power-off RTC time recording module to stop timing based on a box opening device signal when the power supply is in a power-off state; and the MCU is used for determining the power-off box opening time corresponding to the box opening event from the power-off RTC time recording module based on the box opening device signal under the condition that the power supply is in the power-on state again. According to the invention, box opening event detection and box opening time recording in a power-off state can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of unpacking detection, and in particular to an unpacking detection circuit, an unpacking detection method and a chassis. Background Art

[0002] With the continuous development of industrial technology, equipment safety testing has received more and more attention. Whether the equipment is unpacked is an important part of equipment safety testing. The unpacking record can be used to determine whether the equipment has been operated without authorization. Therefore, how to conduct unpacking testing is an important part of the existing technology.

[0003] In the prior art, physical methods such as seals or anti-tampering labels are usually used for detection. That is, after each unpacking operation is completed, a seal or anti-tampering label is used to re-seal the box. If the seal is found to be removed, it can be determined that the device has been unpacked. In other technical solutions, a detection unit is used to detect the unpacking status, and an automatic alarm is triggered once an unauthorized unpacking operation is found.

[0004] However, there are at least the following problems in the prior art: physical unpacking detection can conceal unauthorized operations by reinstalling seals or anti-tampering labels; the method of using a detection unit requires power supply to the box, which cannot work without power supply, and continuous power supply will cause excessive energy consumption. Therefore, how to effectively perform unpacking detection is a problem that needs to be solved urgently. Summary of the invention

[0005] The present invention provides a box opening detection circuit, a box opening detection method and a chassis, which are used to solve the defect that the box opening detection cannot be effectively performed in the prior art, and realize the box opening event detection and the box opening time recording in the power-off state.

[0006] The present invention provides an unpacking detection circuit, comprising: a power supply, an unpacking detection switch module, a power-off unpacking detection module, a power-off RTC time recording module and a microcontroller unit MCU, wherein: The unpacking detection switch module is connected to the power supply, the power-off unpacking detection module and the MCU, and the unpacking detection switch module is used to generate an unpacking device signal corresponding to an unpacking event; The power-off unpacking detection module is connected to the power supply, the power-off RTC time recording module and the MCU, and the power-off unpacking detection module is used to control the power-off RTC time recording module to pause timing based on the unpacking device signal when the power supply is in a power-off state; The MCU is used to determine the power-off unpacking time corresponding to the unpacking event from the power-off RTC time recording module based on the unpacking device signal when the power supply is powered on again.

[0007] According to the unpacking detection circuit provided by the present invention, the power-off unpacking detection module includes a signal control circuit and a D trigger, wherein: The first end of the signal control circuit is connected to the power supply, the second end of the signal control circuit is connected to the target power supply, the first pin of the D flip-flop and the first output end of the unpacking detection switch module, and the signal control circuit is used to adjust the level state of the unpacking device signal based on the power supply state of the power supply and the target power supply; the target power supply includes an RTC battery and the power supply; The third pin of the D trigger is connected to the first end of the power-off RTC time recording module. The D trigger is used to generate a power-off unpacking alarm signal based on the level state of the unpacking device signal. The power-off unpacking alarm signal is used to control the timing state of the power-off RTC time recording module.

[0008] According to the unpacking detection circuit provided by the present invention, the power-off RTC time recording module includes: a clock source crystal oscillator and a power-off RTC chip, wherein: The first end of the clock source crystal oscillator serves as the first end of the power-off RTC time recording module, the third end of the clock source crystal oscillator is connected to the first end of the power-off RTC chip, the D trigger is used to control the clock source crystal oscillator to suspend output based on the power-off unpacking alarm signal when the unpacking event occurs and the power supply is in a power-off state; the communication end of the power-off RTC chip is connected to the MCU, and the power-off RTC chip is used to suspend timing when the clock source crystal oscillator suspends output; The MCU is used to obtain the recording time of the powered-off RTC chip when the power supply is powered on again, and determine the recording time of the powered-off RTC chip as the power-off and unpacking time of the unpacking event.

[0009] According to the unpacking detection circuit provided by the present invention, after the MCU obtains the recording time of the powered-off RTC chip, the MCU is further used to: Adjusting the level state of the power-off unpacking device clearing signal corresponding to the D flip-flop to clear the alarm; A reference time is acquired, and the reference time is sent to the powered-off RTC chip to correct the time of the powered-off RTC chip.

[0010] According to the unpacking detection circuit provided by the present invention, the unpacking detection switch module is further used to generate a presence signal; After the power supply is powered on again and before the power-off and unpacking time corresponding to the unpacking event is determined, the MCU is further configured to determine whether to obtain the unpacking device signal based on the level state of the presence signal.

[0011] The unpacking detection circuit provided according to the present invention further includes a power-on unpacking detection module, which is connected to the unpacking detection switch module, the target power supply and the MCU. The power-on unpacking detection module is used to generate a power-on unpacking alarm signal based on the unpacking device signal and the target power supply, and send the power-on unpacking alarm signal to the MCU.

[0012] According to the unpacking detection circuit provided by the present invention, it also includes a power-on RTC time recording module, which is connected to the MCU and the target power supply. The MCU is used to obtain the power-on unpacking time corresponding to the unpacking event from the power-on RTC time recording module based on the level state of the power-on unpacking alarm signal.

[0013] According to the unpacking detection circuit provided by the present invention, the power-on RTC time recording module includes a power-on RTC chip and a crystal, wherein: The power-on RTC chip is connected to the target power supply, the MCU and the crystal respectively, the crystal is used to provide a clock waveform to the power-on RTC chip, and the power-on RTC chip is used to perform timing based on the clock waveform.

[0014] The present invention further provides a box opening detection method, which is applied to the box opening detection circuit provided according to any one of the above items, and the method comprises: Generate a box opening device signal corresponding to the box opening event by using the box opening detection switch module; When the power supply is in a power-off state, the power-off RTC time recording module is controlled to pause timing based on the unpacking device signal by using the power-off unpacking detection module; When the power supply is powered on again, the MCU is used to determine the power-off unpacking time corresponding to the unpacking event from the power-off RTC time recording module based on the unpacking device signal.

[0015] The present invention further provides a chassis, comprising any one of the above-mentioned box opening detection circuits.

[0016] The unpacking detection circuit, unpacking detection method and chassis provided by the present invention, after an unpacking event occurs, an unpacking detection switch module generates an unpacking device signal corresponding to the unpacking event, and when the power supply is in a power-off state, the power-off unpacking detection module controls the power-off RTC time recording module to pause timing according to the unpacking device signal, so that the time of the power-off RTC time recording module is maintained at the moment when the unpacking event occurs; after the power supply is powered on again, the MCU obtains the power-off unpacking time corresponding to the unpacking event from the power-off RTC time recording module according to the unpacking device signal, completes the unpacking event detection and unpacking time recording in the power-off state, ensures the untamperability of the unpacking detection result, improves the reliability of the unpacking detection result, and facilitates the management and response to abnormal unpacking events. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 This is one of the structural schematic diagrams of the box opening detection circuit provided by the embodiment of the present invention.

[0019] Figure 2 Schematic diagram of a circuit of a box opening detection switch module provided in an embodiment of the present invention.

[0020] Figure 3 The figure is a circuit diagram of a power-off and box opening detection module provided in an embodiment of the present invention.

[0021] Figure 4 It is a circuit diagram of a power-off RTC time recording module provided by an embodiment of the present invention.

[0022] Figure 5 This is the second structural schematic diagram of the box opening detection circuit provided in the embodiment of the present invention.

[0023] Figure 6 The figure is a circuit diagram of a power-on unpacking detection module provided in an embodiment of the present invention.

[0024] Figure 7 This is the third structural schematic diagram of the box opening detection circuit provided in the embodiment of the present invention.

[0025] Figure 8 It is a circuit diagram of a power-on RTC time recording module provided in an embodiment of the present invention.

[0026] Fig. 9 It is a flowchart of the unpacking detection method provided by an embodiment of the present invention.

[0027] Reference numerals: 110: unpacking detection switch module; 120: power-off unpacking detection module; 121: signal control circuit; 130: power-off RTC time recording module; 140: MCU; 150: power-on unpacking detection module; 160: power-on RTC time recording module. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.

[0029] Combine the following Figure 1-Figure 8 The box opening detection circuit provided by the embodiment of the present invention is described.

[0030] In view of the problem that the prior art cannot effectively perform unpacking detection, an embodiment of the present invention provides an unpacking detection circuit. Figure 1 is one of the structural schematic diagrams of the unpacking detection circuit provided by the embodiment of the present invention, such as Figure 1 As shown, the unpacking detection circuit includes a power supply VCC_STBY_3V3, an unpacking detection switch module 110, a power-off unpacking detection module 120, a power-off RTC (Real_Time Clock) time recording module and an MCU (Micro Controller Unit) 140.

[0031] The unpacking detection switch module 110 is connected to the power supply VCC_STBY_3V3, the power-off unpacking detection module 120 and the MCU 140 , and is used to generate an unpacking device signal EVENT_KEY_OPEN corresponding to an unpacking event.

[0032] The power-off unpacking detection module 120 is connected to the power supply VCC_STBY_3V3, the power-off RTC time recording module 130 and the MCU140. The power-off unpacking detection module 120 is used to control the power-off RTC time recording module 130 to pause timing based on the unpacking device signal EVENT_KEY_OPEN when the power supply VCC_STBY_3V3 is in a power-off state.

[0033] The MCU 140 is used for determining the power-off opening time corresponding to the opening event from the power-off RTC time recording module 130 based on the opening device signal EVENT_KEY_OPEN when the power supply VCC_STBY_3V3 is in the power-on state again.

[0034] Specifically, since in the prior art, when the box is not powered, it is impossible to detect the box opening event, therefore, in the embodiment of the present invention, when the box opening event occurs at the power supply VCC_STBY_3V3 ( Figure 1 When the unpacking device EVENT_KEY_OPEN is in a power-off state (not shown in the figure), the unpacking detection switch module 110 generates an unpacking device signal EVENT_KEY_OPEN corresponding to the unpacking event. The level state of the unpacking device signal EVENT_KEY_OPEN can be used to determine whether an unpacking event has occurred. For example, if the unpacking device signal EVENT_KEY_OPEN is a high-level signal, an unpacking event has occurred. If the unpacking device signal EVENT_KEY_OPEN is a low-level signal, no unpacking event has occurred. After generating the unpacking device signal EVENT_KEY_OPEN, the power-off unpacking detection module 120 can obtain the unpacking device signal EVENT_KEY_OPEN, and because the power supply VCC_STBY_3V3 is in a power-off state, the power-off unpacking detection module 120 can control the power-off RTC time recording module 130 to suspend timing according to the unpacking device signal EVENT_KEY_OPEN, that is, the recorded time in the power-off RTC time recording module 130 is maintained at the moment when the unpacking event occurs in the power-off state, and the latched time is stored. In the current state, after the power supply VCC_STBY_3V3 is powered on again, that is, after the power supply VCC_STBY_3V3 is in the power-on state again, the powered-on MCU140 can receive the unpacking device signal EVENT_KEY_OPEN, and obtain the recording time from the power-off RTC time recording module 130 according to the unpacking device signal EVENT_KEY_OPEN, that is, obtain the power-off unpacking time of the unpacking event in the power-off state, realize the unpacking event detection in the power-off state, and record the power-off unpacking time. Without significantly increasing the hardware cost and system energy consumption, the unpacking event record contains more information. At the same time, it avoids the problem of low reliability caused by physical unpacking detection and improves the safety of the chassis.

[0035] Further, Figure 2 is a circuit diagram of the unpacking detection switch module provided by an embodiment of the present invention, such as Figure 2The unpacking detection switch module 110 includes: an unpacking detection reed WC1, a resistor R11, a pull-up resistor R12, a pull-up resistor R16, a first diode and a second diode, wherein: the second pin and the fourth pin of the unpacking detection reed WC1 are both grounded, the third pin and the first pin are both connected to the target power supply VCC_SYS_3V3, and the third pin of the unpacking detection reed WC1 is used to generate an unpacking device signal EVENT_KEY_OPEN. If the unpacking detection reed WC1 is in a conducting state, it indicates that no unpacking event has occurred. At this time, the unpacking device signal EVENT_KEY_OPEN generated by the third pin of the unpacking detection reed WC1 is a low-level signal. If the unpacking detection reed WC1 is in a disconnected state, it indicates that an unpacking event has occurred. At this time, the target power supply VCC_SYS_3V3 pulls up the signal of the third pin of the unpacking detection reed WC1 through the pull-up resistor R16, that is, pulls up the unpacking device signal EVENT_KEY_OPEN to a high-level signal.

[0036] It should be noted that if Figure 2 As shown, the power supply VCC_STBY_3V3 adjusts the level state of the opening device signal EVENT_KEY_OPEN through the second diode. BT1 is used to supply power to the RTC battery, and the RTC battery adjusts the level state of the opening device signal EVENT_KEY_OPEN through the first diode.

[0037] In addition, if Figure 2 As shown, the unpacking detection switch module 110 is also used to generate a presence signal PRSNT_KEY_DETECT_N, that is, the first pin of the unpacking detection reed WC1 is used to generate the presence signal PRSNT_KEY_DETECT_N, and the presence signal PRSNT_KEY_DETECT_N is used to indicate whether the unpacking detection circuit module is set on the chassis, further indicating whether the user has a need for unpacking detection, and ensuring the reliability of the unpacking detection signal. After the power supply VCC_STBY_3V3 is in the power-on state again, and before the power-off unpacking time corresponding to the unpacking event is determined, the MCU140 is also used to determine whether to obtain the unpacking device signal EVENT_KEY_OPEN based on the level state of the presence signal PRSNT_KEY_DETECT_N. That is, if the presence signal PRSNT_KEY_DETECT_N is a low-level signal, indicating that the unpacking detection circuit module is in place, the MCU140 can continue to obtain the unpacking device signal EVENT_KEY_OPEN for unpacking detection and alarm. If the presence signal PRSNT_KEY_DETECT_N is a high level signal, it indicates that the unpacking detection circuit module is not in place, and the user has no need for unpacking detection. The MCU 140 does not need to obtain the unpacking device signal EVENT_KEY_OPEN to perform unpacking detection and alarm.

[0038] Further, Figure 3 is a circuit diagram of a power-off and unpacking detection module provided by an embodiment of the present invention, such as Figure 3 As shown, the power-off and unpacking detection module 120 includes a signal control circuit 121 and a D trigger U1, wherein: The first end of the signal control circuit 121 is connected to the power supply VCC_STBY_3V3, the second end of the signal control circuit 121 is connected to the target power supply VCC_SYS_3V3, the first pin of the D flip-flop U1 and the first output end of the unpacking detection switch module 110, and the signal control circuit 121 is used to adjust the level state of the unpacking device signal EVENT_KEY_OPEN based on the power supply state of the power supply VCC_STBY_3V3 and the target power supply VCC_SYS_3V3; the target power supply VCC_SYS_3V3 S_3V3 includes an RTC battery and the power supply VCC_STBY_3V3; the third pin of the D trigger U1 is connected to the first end of the power-off RTC time recording module 130, and the D trigger U1 is used to generate a power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N based on the level state of the unpacking device signal EVENT_KEY_OPEN, and the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N is used to control the timing state of the power-off RTC time recording module 130.

[0039] Specifically, when the power supply VCC_STBY_3V3 is in the power-off state, the power supply VCC_STBY_3V3 inputs a low-level signal to the first end of the signal control circuit 121, so that the signal control circuit 121 is in the disconnected state. At this time, since the first pin of the D flip-flop U1 is also connected to the target power supply VCC_SYS_3V3, and an unboxing event occurs, the target power supply VCC_SYS_3V3 maintains a high-level signal of the first pin of the D flip-flop U1, that is, the unboxing device signal EVENT_KEY_OPEN maintains a high-level signal. When the first pin of the D flip-flop U1 is a high-level signal, the power-off unboxing alarm signal ALARM_OPEN_POWER_DOWN_N generated by the third pin of the D flip-flop U1 is a low-level signal. The power-off unboxing alarm signal ALARM_OPEN_POWER_DOWN_N is used to control the timing state of the power-off RTC time recording module 130. That is, when the power-off opening alarm signal ALARM_OPEN_POWER_DOWN_N is a low level signal, the power-off RTC time recording module 130 can be controlled to suspend timing, so that the recording time of the power-off RTC time recording module 130 ends when the opening event occurs in the power-off state. After the power supply VCC_STBY_3V3 is in the power-on state again, the signal control circuit 121 is in the on state, and the signal control circuit 121 can pull down the unpacking device signal EVENT_KEY_OPEN of the first pin of the D flip-flop U1 to a low level signal, and the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N generated by the third pin of the D flip-flop U1 after power-on again maintains the level state of the previous state, that is, the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N generated by the third pin of the D flip-flop U1 after power-on again maintains a low level signal, and controls the power-off RTC time recording module 130 to pause timing, so that after power-on again, the MCU140 obtains and records the power-off unpacking time corresponding to the unpacking event.

[0040] It should be noted that if no unpacking event occurs in the power-off state, the first pin of the D flip-flop U1 is a low-level signal, that is, the unpacking device signal EVENT_KEY_OPEN is a low-level signal, and the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N generated by the third pin of the D flip-flop U1 is a high-level signal. Since the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N is a high-level signal, the power-off RTC time recording module 130 can be controlled to keep timing. After the power supply VCC_STBY_3V3 is powered on again, the signal control circuit 121 pulls down the unpacking device signal EVENT_KEY_OPEN of the first pin of the D flip-flop U1 to a low-level signal, and the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N generated by the third pin of the D flip-flop U1 maintains a high-level signal, and the power-off RTC time recording module 130 is controlled to keep timing.

[0041] Furthermore, if Figure 3 As shown, the first pin, the second pin, the third pin, the sixth pin, the seventh pin and the eighth pin of the D flip-flop U1 are all connected to the target power supply VCC_SYS_3V3, and the target power supply VCC_SYS_3V3 includes the power supply VCC_STBY_3V3 and the RTC battery. When the power supply VCC_STBY_3V3 is in the power-on state, the power supply VCC_STBY_3V3 serves as the target power supply VCC_SYS_3V3. When the power supply VCC_STBY_3V3 is in the power-off state, the RTC battery serves as the target power supply VCC_SYS_3V3, ensuring that the D flip-flop U1 is powered on, thereby realizing the unpacking event detection in the power-off state.

[0042] It should be noted that after the first pin of the D trigger U1 receives the unpacking device signal EVENT_KEY_OPEN corresponding to the unpacking event, the power-off unpacking detection module 120 switches to the alarm state. When the power-off unpacking detection module 120 works in the alarm state, it continuously sends the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N to the MCU140, so as to send the power-off unpacking event to the MCU140 in real time.

[0043] Furthermore, if Figure 3As shown, the signal control circuit 121 includes a MOS transistor Q1, a resistor R7 and a capacitor C9, wherein: the gate of the MOS transistor Q1 is connected to one end of the resistor R7 and serves as the first end of the signal control circuit 121, the source of the MOS transistor Q1 is connected to the other end of the resistor R7 and one end of the capacitor C9, and both are grounded, and the drain of the MOS transistor Q1 is connected to the other end of the capacitor C9 and serves as the second end of the signal control circuit 121. When the power supply VCC_STBY_3V3 is in a power-off state, the output signal of the power supply VCC_STBY_3V3 is a low-level signal, that is, the gate of the MOS transistor Q1 inputs a low-level signal, so that the MOS transistor Q1 is in a cut-off state. At this time, if the unpacking event occurs in the power-off state, the unpacking device signal EVENT_KEY_OPEN generated by the unpacking switch detection module is a high-level signal. After the unpacking device signal EVENT_KEY_OPEN is transmitted to the first pin of the D flip-flop U1, the unpacking device signal EVENT_KEY_OPEN of the first pin of the D flip-flop U1 maintains a high-level signal. If the unpacking event does not occur in the power-off state, the unpacking device signal EVENT_KEY_OPEN generated by the unpacking switch detection module is a low-level signal, and the unpacking device signal EVENT_KEY_OPEN of the first pin of the D flip-flop U1 maintains a low-level signal. After the power supply VCC_STBY_3V3 is in the power-on state again, the output signal of the power supply VCC_STBY_3V3 is a high-level signal, that is, the gate of the MOS tube Q1 inputs a high-level signal, so that the MOS tube Q1 is in a conducting state. At this time, the signal control circuit 121 pulls down the unpacking device signal EVENT_KEY_OPEN of the first pin of the D flip-flop U1, that is, the unpacking device signal EVENT_KEY_OPEN is converted to a low-level signal.

[0044] It should be noted that the MOS tube Q1 is an N-channel MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor).

[0045] Further, Figure 4 : is a circuit diagram of a power-off RTC time recording module provided by an embodiment of the present invention, such as Figure 4 As shown, the power-off RTC time recording module 130 includes: a clock source crystal oscillator OSC1 and a power-off RTC chip U2, wherein: The first end of the clock source crystal oscillator OSC1 serves as the first end of the power-off RTC time recording module 130, the third end of the clock source crystal oscillator OSC1 is connected to the first end of the power-off RTC chip U2, and the D trigger U1 is used to control the clock source crystal oscillator OSC1 to suspend output based on the power-off open-box alarm signal ALARM_OPEN_POWER_DOWN_N when the open-box event occurs and the power supply VCC_STBY_3V3 is in a power-off state; The communication end of the powered-off RTC chip U2 is connected to the MCU140, and the powered-off RTC chip U2 is used to suspend timing when the clock source crystal oscillator OSC1 suspends output; The MCU 140 is used for obtaining the recording time of the powered-off RTC chip U2 when the power supply VCC_STBY_3V3 is powered on again, and determining the recording time of the powered-off RTC chip U2 as the powered-off and unpacking time of the unpacking event.

[0046] Specifically, in the power-off RTC time recording module 130, whether the clock source crystal oscillator OSC1 outputs or not is controlled by the level state of the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N generated by the third pin of the D flip-flop U1. If the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N is a high-level signal, the third-end clock of the clock source crystal oscillator OSC1 can be controlled to output a clock signal, and the power-off RTC chip U2 is controlled by the clock signal to keep timing. If the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N is a low-level signal, the third-end clock of the clock source crystal oscillator OSC1 can be controlled to suspend outputting the clock signal, and the power-off RTC chip U2 suspends timing when it does not receive the clock signal, and the time ends at the generation time of the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N, that is, the time when the unpacking event occurs in the power-off state. After the power supply VCC_STBY_3V3 is in the power supply state again, since the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N still maintains a low-level signal, the power-off RTC chip U2 still pauses timing. However, since the target power supply VCC_SYS_3V3 supplies power to the power-off RTC chip U2, the power-off RTC chip U2 is still in the working state. At this time, MCU140 can interact with the power-off RTC chip U2 through the I2C bus to obtain the recorded time of the power-off RTC chip U2 at this time, that is, the power-off unpacking time when the unpacking event occurs.

[0047] Further, after the MCU 140 obtains the recording time of the powered-off RTC chip U2, the MCU 140 is further configured to: Adjust the level state of the power-off opening device clearing signal EVENT_KEY_OPEN_CLEAR_N corresponding to the D flip-flop U1 to clear the alarm; Obtain a reference time, and send the reference time to the powered-off RTC chip U2 to correct the time of the powered-off RTC chip U2.

[0048] Specifically, Figure 3 As shown, after MCU140 obtains the recorded time of the power-off RTC chip U2, MCU140 can also pull down the power-off unpacking device clearing signal EVENT_KEY_OPEN_CLEAR_N of the sixth pin of the D flip-flop U1 to a low level signal to clear the alarm state of the power-off unpacking detection module 120. If the power-off unpacking device clearing signal EVENT_KEY_OPEN_CLEAR_N is a high level signal, the power-off unpacking detection module 120 maintains the alarm state. In addition, MCU140 can also obtain a reference signal and send the reference signal to the power-off RTC chip U2 through the I2C bus to correct the recorded time of the power-off RTC chip U2 to ensure the accuracy of the subsequent timing of the power-off RTC chip U2.

[0049] It should be noted that the embodiment of the present invention does not limit the order of the above-mentioned clearing of the alarm and correcting the time of the power-off RTC chip U2. The alarm can be cleared first and then the time of the power-off RTC chip U2 can be corrected, or the time of the power-off RTC chip U2 can be corrected first and then the alarm can be cleared. It is only necessary to ensure that the time of clearing the alarm and correcting the time of the power-off RTC chip U2 are performed after the MCU140 obtains the recorded time of the power-off RTC chip U2, so as to prevent the clearing of the alarm and the correction of the time of the power-off RTC chip U2 from affecting the acquisition of the recorded time of the power-off RTC chip U2.

[0050] Optionally, the MCU 140 may determine the acquired network time as a reference signal. In addition, since the power-on RTC time recording module 160 in the chassis always keeps timing, the MCU 140 may also obtain the recording time corresponding to the power-on RTC time recording module 160, and use the recording time corresponding to the power-on RTC time recording module 160 as the recording time. The embodiment of the present invention is not limited to this.

[0051] Further, Figure 5 FIG. 2 is a second structural diagram of the unpacking detection circuit provided by an embodiment of the present invention. Figure 5As shown, the unpacking detection circuit also includes a power-on unpacking detection module 150, which is connected to the unpacking detection switch module 110, the target power supply VCC_SYS_3V3 and the MCU140. The power-on unpacking detection module 150 is used to generate a power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N based on the unpacking device signal EVENT_KEY_OPEN and the target power supply VCC_SYS_3V3, and send the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N to the MCU140.

[0052] Specifically, in the embodiment of the present invention, in addition to performing unpacking detection in the power-off state, unpacking detection can also be performed in the power-on state. After an unpacking event occurs in the power-on state, the unpacking detection switch module 110 generates an unpacking device signal EVENT_KEY_OPEN corresponding to the unpacking event through the on-off state of the unpacking detection reed WC1. After receiving the unpacking device signal EVENT_KEY_OPEN, the power-on unpacking detection module 150 can determine whether an unpacking event occurs through the level state of the unpacking device signal EVENT_KEY_OPEN, and then generate a corresponding power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N, and send the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N to the MCU140, so as to upload the power-on alarm event to the MCU140 in real time.

[0053] Further, Figure 6 is a circuit diagram of a power-on unpacking detection module provided by an embodiment of the present invention, such as Figure 6As shown, the power-on unpacking detection module 150 includes a resistor R13, a resistor R15 and a MOS tube Q2, wherein: the gate of the MOS tube Q2 is connected to one end of the resistor R15 and serves as the first end of the power-on unpacking detection module 150, the first end of the power-on unpacking detection module 150 is connected to the third pin of the unpacking detection reed WC1 in the unpacking detection switch module 110, the source of the MOS tube Q2 is connected to the other end of the resistor R15, and both are grounded, the drain of the MOS tube Q2 is connected to one end of the resistor R13, the other end of the resistor R13 is connected to the target power supply VCC_SYS_3V3, the drain of the MOS tube Q2 serves as the second end of the power-on unpacking detection module 150, and the second end of the power-on unpacking detection module 150 is connected to the MCU140. When an unpacking event occurs in the power-on state, that is, when the unpacking device signal EVENT_KEY_OPEN is a high-level signal, the MOS tube Q2 is turned on, and the ground terminal pulls down the drain level of the MOS tube Q2, so that the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N generated by the second end of the power-on unpacking detection module 150 is a low-level signal. When an unpacking event does not occur in the power-on state, that is, when the unpacking device signal EVENT_KEY_OPEN is a low-level signal, the MOS tube Q2 is turned off, and the target power supply VCC_SYS_3V3 pulls up the drain level of the MOS tube Q2, so that the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N generated by the second end of the power-on unpacking detection module 150 is a high-level signal.

[0054] It should be noted that the MOS tube Q2 is an N-channel MOSFET.

[0055] It should be noted that no matter the power supply VCC_STBY_3V3 is in the power-on state or the power-off state, the unpacking detection switch module 110 generates the corresponding unpacking device signal EVENT_KEY_OPEN only according to whether an unpacking event occurs, that is, generates the corresponding unpacking device signal EVENT_KEY_OPEN according to the on / off state of the unpacking detection reed WC1.

[0056] Furthermore, when the power supply VCC_STBY_3V3 is in the power-on state, the unpacking detection switch module 110 generates the unpacking device signal EVENT_KEY_OPEN and also generates the in-position signal PRSNT_KEY_DETECT_N. After receiving the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N corresponding to the unpacking event, the MCU140 can first determine whether the unpacking detection switch module 110 is in position according to the level state of the in-position signal PRSNT_KEY_DETECT_N. If the in-position signal PRSNT_KEY_DETECT_N is a low-level signal, indicating that the unpacking detection circuit module is in position, the MCU140 can further perform unpacking detection and alarm according to the level state of the unpacking device signal EVENT_KEY_OPEN. If the in-place signal PRSNT_KEY_DETECT_N is a high-level signal, indicating that the unpacking detection circuit module is not in place, MCU140 does not need to perform unpacking detection and alarm according to the level state of the unpacking device signal EVENT_KEY_OPEN, and can perform packet loss processing and other operations on the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N and the unpacking device signal EVENT_KEY_OPEN.

[0057] Further, Figure 7 3 is a schematic diagram of the structure of the unpacking detection circuit provided by the embodiment of the present invention. Figure 7 As shown, the unpacking detection circuit also includes a power-on RTC time recording module 160, which is connected to the MCU 140 and the target power supply VCC_SYS_3V3. The MCU 140 is used to obtain the power-on unpacking time corresponding to the unpacking event from the power-on RTC time recording module 160 based on the level state of the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N.

[0058] Specifically, when the power supply VCC_STBY_3V3 is in the power-on state, the unpacking detection switch module 110 is in place, and the MCU140 receives the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N corresponding to the unpacking event, the MCU140 can interact with the power-on RTC time recording module 160 through the I2C bus, obtain the recorded time of the real-time timing of the power-on RTC time recording module 160, and determine the recorded time as the power-on unpacking time corresponding to the unpacking event.

[0059] Further, Figure 8 : is a circuit diagram of a power-on RTC time recording module provided by an embodiment of the present invention, such as Figure 8 As shown, the power-on RTC time recording module 160 includes a power-on RTC chip U3 and a crystal X2.

[0060] The powered-on RTC chip U3 is respectively connected to the target power supply VCC_SYS_3V3, the MCU140 and the crystal X2. The crystal X2 is used to provide a clock waveform to the powered-on RTC chip U3. The powered-on RTC chip U3 is used to perform timing based on the clock waveform.

[0061] Specifically, the timing state of the power-on RTC chip U3 in the power-on RTC time recording module 160 is controlled by the clock waveform output by the crystal X2. Since the crystal X2 is a passive crystal X2, that is, the crystal X2 always provides a clock waveform to the power-on RTC chip U3, the power-on RTC chip U3 keeps timing uninterrupted. After the MCU140 determines that an unboxing event occurs in the power-on state based on the unboxing device signal EVENT_KEY_OPEN, the power-on RTC chip U3 can be accessed through the I2C bus to obtain the recorded time of the real-time timing of the power-on RTC chip U3, and the recorded time is used as the power-on unboxing time of the unboxing event.

[0062] In addition, when the power supply VCC_STBY_3V3 is in the power-on state and the unpacking detection is performed, since the power supply VCC_STBY_3V3 outputs a high-level signal, the signal control circuit 121 is disconnected, so that the first pin of the D-type flip-flop U1 always maintains a low-level signal, and thus the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N output by the third pin of the D-type flip-flop U1 always maintains the signal state of the previous state, which is equivalent to the power-off unpacking detection module 120 being in the off state when the power-on unpacking detection is performed.

[0063] Optionally, the power-down unpacking alarm signal ALARM_OPEN_POWER_DOWN_N and the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N may have different signal characteristics, so that the MCU 140 can determine whether the received signal is the power-down unpacking alarm signal ALARM_OPEN_POWER_DOWN_N or the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N according to the signal characteristics. When the power-down unpacking alarm signal ALARM_OPEN_POWER_DOWN_N and the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N are both single continuous signals indicating binary information, MCU140 can receive the power-down unpacking alarm signal ALARM_OPEN_POWER_DOWN_N and the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N through different interfaces, that is, determine whether the received signal is the power-down unpacking alarm signal ALARM_OPEN_POWER_DOWN_N or the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N according to the interface for receiving the signal.

[0064] Further, after receiving the power-off unpacking alarm signal ALARM_OPEN_POWER_DOWN_N or the power-on unpacking alarm signal ALARM_OPEN_POWER_ON_N, MCU140 can generate an alarm prompt information to prompt the user of the abnormal situation of the chassis through the alarm prompt information. The alarm prompt information can be prompted in different ways, for example, a pop-up window prompt in the user terminal interface, a prompt by controlling the on and off of the indicator light, etc. The present invention does not limit the prompting method of the alarm prompt information.

[0065] It should be noted that the power-off RTC time recording module 130 and the power-on RTC time recording module 160 of the embodiment of the present invention can be independently configured.

[0066] The unpacking detection circuit provided by the embodiment of the present invention has the following characteristics: after an unpacking event occurs, the unpacking detection switch module generates an unpacking device signal corresponding to the unpacking event; when the power supply is in a power-off state, the power-off unpacking detection module controls the power-off RTC time recording module to pause timing according to the unpacking device signal, so that the time of the power-off RTC time recording module is maintained at the moment when the unpacking event occurs; after the power supply is powered on again, the MCU obtains the power-off unpacking time corresponding to the unpacking event from the power-off RTC time recording module according to the unpacking device signal, completes the unpacking event detection and unpacking time recording in the power-off state, ensures the unpacking detection result cannot be tampered with, improves the reliability of the unpacking detection result, and facilitates the management and response to abnormal unpacking events.

[0067] The embodiment of the present invention also provides a method for unpacking detection. Fig. 9 : is a schematic diagram of the process of the unpacking detection method provided by the present invention, such as Fig. 9 As shown, the unpacking detection method includes the following steps.

[0068] Step 910: Generate a box opening device signal corresponding to the box opening event by using the box opening detection switch module.

[0069] Step 920: When the power supply is in a power-off state, the power-off unpacking detection module is used to control the power-off RTC time recording module to pause timing based on the unpacking device signal.

[0070] Step 930: When the power supply is powered on again, using the MCU, based on the unpacking device signal, determine the power-off unpacking time corresponding to the unpacking event from the power-off RTC time recording module.

[0071] According to the unpacking detection method provided by the embodiment of the present invention, after an unpacking event occurs, the unpacking detection switch module generates an unpacking device signal corresponding to the unpacking event, and when the power supply is in a power-off state, the power-off unpacking detection module controls the power-off RTC time recording module to pause timing according to the unpacking device signal, so that the time of the power-off RTC time recording module is maintained at the moment when the unpacking event occurs; after the power supply is powered on again, the MCU obtains the power-off unpacking time corresponding to the unpacking event from the power-off RTC time recording module according to the unpacking device signal, completes the unpacking event detection and unpacking time recording in the power-off state, ensures the unpacking detection result cannot be tampered with, improves the reliability of the unpacking detection result, and facilitates the management and response to abnormal unpacking events.

[0072] In addition, an embodiment of the present invention further provides a chassis, wherein the chassis includes the box opening detection circuit as described in any one of the above items.

[0073] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored in a non-transitory computer-readable storage medium, when the computer program is executed by the box opening detection circuit, the computer can execute the box opening detection method provided by the above methods, the method includes: Generate a box opening device signal corresponding to the box opening event by using the box opening detection switch module; When the power supply is in a power-off state, the power-off RTC time recording module is controlled to pause timing based on the unpacking device signal by using the power-off unpacking detection module; When the power supply is powered on again, the MCU is used to determine the power-off unpacking time corresponding to the unpacking event from the power-off RTC time recording module based on the unpacking device signal.

[0074] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for performing the unpacking detection method provided by the above methods is implemented, and the method includes: Generate a box opening device signal corresponding to the box opening event by using the box opening detection switch module; When the power supply is in a power-off state, the power-off RTC time recording module is controlled to pause timing based on the unpacking device signal by using the power-off unpacking detection module; When the power supply is powered on again, the MCU is used to determine the power-off unpacking time corresponding to the unpacking event from the power-off RTC time recording module based on the unpacking device signal.

[0075] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0076] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0077] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A box opening detection circuit, It is characterized in that include: Power supply, unpacking detection switch module, power-off unpacking detection module, power-off RTC time recording module and microcontroller unit MCU, including: The unpacking detection switch module is connected to the power supply, the power-off unpacking detection module and the MCU, and the unpacking detection switch module is used to generate an unpacking device signal corresponding to an unpacking event; The power-off unpacking detection module is connected to the power supply, the power-off RTC time recording module and the MCU, and the power-off unpacking detection module is used to control the power-off RTC time recording module to pause timing based on the unpacking device signal when the power supply is in a power-off state; The MCU is used to determine the power-off unpacking time corresponding to the unpacking event from the power-off RTC time recording module based on the unpacking device signal when the power supply is powered on again.

2. The unpacking detection circuit according to claim 1, It is characterized in that The power-off and unpacking detection module includes a signal control circuit and a D trigger, wherein: The first end of the signal control circuit is connected to the power supply, the second end of the signal control circuit is connected to the target power supply, the first pin of the D flip-flop and the first output end of the unpacking detection switch module, and the signal control circuit is used to adjust the level state of the unpacking device signal based on the power supply state of the power supply and the target power supply; the target power supply includes an RTC battery and the power supply; The third pin of the D trigger is connected to the first end of the power-off RTC time recording module. The D trigger is used to generate a power-off unpacking alarm signal based on the level state of the unpacking device signal. The power-off unpacking alarm signal is used to control the timing state of the power-off RTC time recording module.

3. The unpacking detection circuit according to claim 2, It is characterized in that The power-off RTC time recording module includes: a clock source crystal oscillator and a power-off RTC chip, wherein: The first end of the clock source crystal oscillator serves as the first end of the power-off RTC time recording module, the third end of the clock source crystal oscillator is connected to the first end of the power-off RTC chip, the D trigger is used to control the clock source crystal oscillator to suspend output based on the power-off unpacking alarm signal when the unpacking event occurs and the power supply is in a power-off state; the communication end of the power-off RTC chip is connected to the MCU, and the power-off RTC chip is used to suspend timing when the clock source crystal oscillator suspends output; The MCU is used to obtain the recording time of the powered-off RTC chip when the power supply is powered on again, and determine the recording time of the powered-off RTC chip as the power-off and unpacking time of the unpacking event.

4. The box opening detection circuit according to claim 3, It is characterized in that After the MCU obtains the recorded time of the powered-off RTC chip, the MCU is further used for: Adjusting the level state of the power-off unpacking device clearing signal corresponding to the D flip-flop to clear the alarm; A reference time is acquired, and the reference time is sent to the powered-off RTC chip to correct the time of the powered-off RTC chip.

5. The box opening detection circuit according to any one of claims 1 to 4, It is characterized in that The unpacking detection switch module is also used to generate an in-place signal; After the power supply is powered on again and before the power-off and unpacking time corresponding to the unpacking event is determined, the MCU is further configured to determine whether to obtain the unpacking device signal based on the level state of the presence signal.

6. The box opening detection circuit according to any one of claims 2 to 4, It is characterized in that It also includes a power-on unpacking detection module, which is connected to the unpacking detection switch module, the target power supply and the MCU. The power-on unpacking detection module is used to generate a power-on unpacking alarm signal based on the unpacking device signal and the target power supply, and send the power-on unpacking alarm signal to the MCU.

7. The box opening detection circuit according to claim 6, It is characterized in that It also includes a power-on RTC time recording module, which is connected to the MCU and the target power supply. The MCU is used to obtain the power-on unpacking time corresponding to the unpacking event from the power-on RTC time recording module based on the level state of the power-on unpacking alarm signal.

8. The box opening detection circuit according to claim 7, It is characterized in that The power-on RTC time recording module includes a power-on RTC chip and a crystal, wherein: The power-on RTC chip is connected to the target power supply, the MCU and the crystal respectively, the crystal is used to provide a clock waveform to the power-on RTC chip, and the power-on RTC chip is used to perform timing based on the clock waveform.

9. A method for unpacking detection, It is characterized in that Applied to the unpacking detection circuit according to any one of claims 1 to 8, the method comprises: Generate a box opening device signal corresponding to the box opening event by using the box opening detection switch module; When the power supply is in a power-off state, the power-off RTC time recording module is controlled to pause timing based on the unpacking device signal by using the power-off unpacking detection module; When the power supply is powered on again, the MCU is used to determine the power-off unpacking time corresponding to the unpacking event from the power-off RTC time recording module based on the unpacking device signal.

10. A chassis, It is characterized in that The invention comprises a box opening detection circuit as described in any one of claims 1 to 8.