Packaging box with box opening counting function, counting method and related products
By using the combination of Hall sensor and NFC device in the packaging box, the active opening number detection of the packaging box is realized, which solves the problem in the existing technology that the anti-tampering label is easy to be removed and re-attached, and improves the safety and accuracy. This ensures accurate recording and verification of the number of times the box is opened.
Patent Information
- Application Number
- CN202411040375.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-09-27
AI Technical Summary
The tamper-evident labels of existing packaging boxes can easily be removed and re-attached, thus losing the tamper-proof function. The detection mechanism is passive and cannot effectively prevent product replacement.
Design a packaging box with a box opening counting function. It uses Hall sensors and magnets to detect the open status of the box. It communicates with the NFC device through the main controller module, records and updates the number of box openings, and verifies the encrypted information through the NFC device. To ensure data security and accuracy.
It realizes the active detection of the number of box openings of the packaging box, prevents product replacement, improves safety and accuracy, and ensures that the label will not lose the box opening detection function.
Smart Images

Figure CN118701496A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of product packaging, and in particular to a packaging box with a box opening and counting function, a counting method and related products. Background Art
[0002] Product packaging boxes have the functions of protecting products, conveying product information, and promoting products. Packaging boxes usually do not have anti-counterfeiting functions. After opening, they can be repacked as they were. Putting fake products into the packaging gift box instead of the original products, and then repacking the gift box, will make consumers buy fakes. Especially in blind box products, it is common to take out highly rare products and replace them with authentic ordinary products. Therefore, packaging boxes with anti-tampering functions have gradually appeared.
[0003] There are two main types of anti-tampering technologies for packaging boxes currently on the market. One is to add anti-theft buckles / locks to the box-shaped structure. Opening the box body will irreversibly destroy such structures, such as the patent with publication number CN115504100A and titled "A New Type of Anti-Tampering Wine Box" and the patent with publication number CN211544218U and titled "Anti-counterfeiting Buckle Gift Box Structure and Gift Box". This type of technology has poor ease of use, and the locking device is easy to be copied, and then installed to replace the damaged anti-theft buckle / lock; the other type is to affix a label to the box-shaped structure, either directly pasted on the box body or in conjunction with other structures, such as the patent with publication number CN114394331A and titled "Anti-counterfeiting Gift Box".
[0004] For boxes with labels that need to be scanned, such as Figure 1 , whose tags usually adopt NFC sealing tags, such as Figure 2 , the principle is:
[0005] With an NFC chip with loop detection, the antenna has a long loop at the corner, and the label is provided with several areas that are easy to break the loop when the label is torn off. After the label is torn off, the loop is interrupted; as a passive NFC tag, when it is read by a mobile phone with NFC function, the NFC chip in the label detects the loop interruption and indicates that it has been opened. However, this type of label also has its disadvantages, including: if the label is completely removed with a hair dryer without destroying the loop structure and then pasted again, it can still be used; or, if the loop in the label is destroyed and then reconnected by some means, the label is read by a mobile phone with NFC function, and the label indicates that it is not opened. Both of the above methods make the label lose the box opening detection function, which can enable people to replace the product in the original packaging box with other products. Another disadvantage is that the detection mechanism is passive, and only when the mobile phone with NFC function reads the label can the chip be powered and the current state can be detected.
[0006] In view of the fact that existing labels can be easily removed and re-attached without being damaged, thus losing their anti-tampering function, and the detection mechanism is passive, there is an urgent need for a packaging box with an opening and counting function, a counting method and related products. Summary of the invention
[0007] In view of the above problems, the present invention provides a packaging box with a box opening and counting function, a counting method and related products.
[0008] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0009] In a first aspect, the present invention provides a packaging box with a box opening counting function, comprising: a box body, a detection and counting device for detecting box opening and recording the number of box openings, an NFC device capable of communicating with the detection and counting device to obtain the number of box openings, and a power supply device for powering the detection and counting device and the NFC device, wherein the detection and counting device, the NFC device and the power supply device are all arranged on the box body; the NFC device carries encrypted information to be verified, the NFC device can be communicated and connected with an external NFC device, and the NFC device is used to provide the number of box openings to the external NFC device when the encrypted information to be verified is verified.
[0010] In a preferred embodiment, the detection and counting device includes a Hall sensor, a magnet corresponding to the Hall sensor, and a main controller module connected to the Hall sensor, the main controller module is communicatively connected to the NFC device, the main controller module is arranged on a box body, the box body includes a box body and a cover of the box body, the Hall sensor and the magnet are respectively located on the box body and the cover, or respectively located on the cover and the box body, the power supply device supplies power to the Hall sensor and the main controller module, the Hall sensor is used to detect magnetic field changes to obtain magnetic field signal data, the main controller module is used to determine whether the number of box openings is increased by 1 to update the number of box openings based on the magnetic field signal data, and is used to send the updated number of box openings to the NFC device.
[0011] In a preferred embodiment, the box body has unique identification code information, the encrypted information to be verified is encrypted information uniquely corresponding to the unique identification code information, the encrypted information and the unique identification code information are used to verify whether the NFC device and the box body are in a corresponding relationship as set by the factory, and the NFC device is used to read the number of box openings when the encrypted information to be verified is verified. Specifically, the NFC device is used to read the number of box openings when verifying that the NFC device and the box body are in a corresponding relationship as set by the factory.
[0012] In a preferred embodiment, the encrypted information is a random number and ciphertext data, the unique identification code information is used as a key for decrypting the ciphertext data, the plaintext data obtained by decrypting the ciphertext data is used for comparison with the random number, and the comparison result is used as a verification result.
[0013] In a preferred embodiment, the memory of the NFC device is a read-only locked memory.
[0014] In a preferred embodiment, the communication between the main controller module and the NFC device includes communication authentication.
[0015] In a second aspect, the present invention provides a method for counting the number of times a packaging box is opened, wherein the packaging box is the packaging box described in the first aspect, and the counting method comprises:
[0016] Step 1: The Hall sensor detects the magnetic field formed by the magnet and transmits the detected magnetic field signal data to the main controller module;
[0017] Step 2: The main controller module compares the received magnetic field signal data with the magnetic field arrangement signal data pre-stored in the main controller module;
[0018] Step 3: When there is a box opening operation, the main controller module is compared and consistent, and the box opening times in the main controller module are increased by 1 to update the box opening times;
[0019] Step 4: The main controller module transmits the updated box opening times to the NFC module;
[0020] Step 5: The NFC module receives and updates the number of box opening times stored therein.
[0021] In a third aspect, the present invention provides a packaging box detection method, characterized in that the packaging box is the packaging box described in the first aspect, and the detection method comprises:
[0022] The external NFC device is close to the NFC module on the packaging box;
[0023] The external NFC device reads the encrypted information to be verified and verifies it;
[0024] If the verification result is passed, the NFC device reads the number of box openings, and the external NFC device obtains the number of box openings read by the NFC device. Otherwise, the NFC device cannot read the number of box openings.
[0025] In a preferred embodiment, the detection method is specifically:
[0026] The external NFC device is close to the NFC module on the packaging box;
[0027] Enter the unique identification code information of the box into the external NFC device;
[0028] authenticating the NFC device based on the unique identification code information;
[0029] The external NFC device obtains a verification result, where the verification result is a verification result of the NFC device based on the unique identification code information;
[0030] If the verification result is failed, it means that the box body and the NFC device are not in the corresponding relationship of the factory settings, and the number of box opening times cannot be read; if the verification result is passed, the NFC device reads the number of box opening times, and the external NFC device displays the number of box opening times read by the NFC device. If the number of box opening times is 0, it is determined that the packaging box is factory set and the product inside the packaging box is an original product. Otherwise, it cannot be determined whether the product inside the packaging box is an original product.
[0031] In a fourth aspect, the present invention provides an electronic device, comprising a storage device, a processing device, and a computer program stored on the storage device and executable on the processing device, wherein when the processing device executes the program, a method for counting the number of times a packaging box is opened as described in the second aspect is implemented.
[0032] In a fifth aspect, the present invention 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 counting the number of times a packaging box is opened as described in the second aspect is implemented.
[0033] The present invention provides a packaging box with a box opening counting function, which has a power supply device and a detection and counting device, and can continuously monitor whether the box is opened. The tag does not lose the box opening detection function, and the detection mechanism is active. The detection and counting device actively and continuously detects the number of box openings. The NFC device of the present invention carries encrypted information to be verified. The number of box openings can be read only after the encrypted information to be verified is verified, thereby improving security. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0035] Figure 1 The figure is a schematic diagram of an existing packaging box with a label;
[0036] Figure 2 This is a schematic diagram of the internal circuit wiring of the NFC sealing tag commonly used in existing tags;
[0037] Figure 3 The following is a flow chart of the detection method of the packaging box;
[0038] Figure 4 This is a schematic diagram of the buckle structure for button batteries;
[0039] Figure 5 This is the circuit principle diagram of MCU;
[0040] Figure 6 It is a schematic diagram of the positional relationship among the Hall sensor, the magnet and the box body;
[0041] Figure 7 This is a schematic diagram of a cross-sectional structure of a packaging box;
[0042] Figure 8 It is a circuit diagram of a switch type Hall sensor;
[0043] Fig. 9 A schematic diagram of a flexible magnetic material in which magnetic materials are arranged at intervals;
[0044] Fig.10 A schematic diagram of the principle of a verification method based on an NFC device;
[0045] Fig.11 An example diagram of a circuit structure of an NFC device;
[0046] Fig.12 This is the structural block diagram of FM11NT082C;
[0047] Fig.13 It is a schematic diagram of the positions of various parts in the circuit board;
[0048] Fig.14 A flow chart of a method for counting the number of times a packaging box is opened;
[0049] Fig.15 The following is a flow chart of the specific detection method for the packaging box;
[0050] Fig.16 The knife pattern for the packaging box and flip box;
[0051] Fig.17 The knife pattern for the packaging box, the sky box and the earth box;
[0052] Fig.18 The knife pattern for the packaging box and drawer box;
[0053] Among them, 100, packaging box, 10, box body, 21, Hall sensor, 22, magnet, 23, MCU, 30, NFC device, 31, NFC chip, 40, battery. DETAILED DESCRIPTION
[0054] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0055] As the packaging box 100 with the anti-tampering label is often encountered by some uncivilized people who secretly replace the products in the packaging box 100 and then sell or return them, the packaging box 100 needs to be improved to meet the needs. The current label can be taken off and then put back on the packaging box 100 for reuse, that is, it cannot be detected that it has been removed; and the identification of the label requires a mobile phone with NFC function to read the label for identification, and the identification is limited by the device, resulting in inconvenience. To this end, the present invention provides a packaging box 100 with a box opening counting function, a counting method and related products.
[0056] The following embodiments of the present invention can be performed separately, and the embodiments can also be performed in combination with each other, and the embodiments of the present invention do not specifically limit this. In the embodiments of the present invention, "first", "second", etc. are used to describe various components, but these components should not be limited by these terms. These terms are only used to distinguish one component from another component. In the present invention, "and / or" as mentioned refers to any and all combinations including one or more related listed items.
[0057] Next, a packaging box 100 with a box opening counting function, a counting method, and related products and their technical effects are described.
[0058] The present embodiment provides a packaging box 100 with a box opening counting function, the packaging box 100 comprises: a box body 10, a detection counting device arranged on the box body 10, an NFC device 30 arranged on the box body 10, and a power supply device arranged on the box body 10. The power supply device supplies power to the detection counting device and the NFC device 30, the detection counting device is used to detect the box opening and to record the number of box openings, the NFC device 30 can be connected to the detection counting device to obtain the number of box openings; the NFC device 30 carries encrypted information to be verified, and the NFC device 30 is used to provide the number of box openings to an external NFC device when the encrypted information to be verified is verified.
[0059] See also Figure 3 , the detection method of the packaging box 100 includes:
[0060] The external NFC device is close to the NFC module on the packaging box 100;
[0061] The external NFC device reads the encrypted information to be verified and verifies it;
[0062] If the verification result is not passed, the NFC device 30 reads the number of box openings, and the NFC device obtains the number of box openings read by the NFC device 30. Otherwise, the NFC device 30 cannot read the number of box openings.
[0063] In this embodiment, the external NFC device is a device with NFC function, hereinafter referred to as NFC device, which is used to approach the NFC device 30 to verify the encrypted information to be verified. The NFC device 30 can be an NFC device used to obtain the number of box openings and provide the number of box openings to the external device when the encrypted information to be verified is verified, or the number of box openings obtained by the NFC device 30 is not restricted by verification, and the number of box openings stored in it is provided to the NFC device when the verification is passed.
[0064] In this embodiment, the box body 10 has unique identification code information, and the encrypted information is: encrypted information that uniquely corresponds to the unique identification code information, the encrypted information and the unique identification code information are used to verify whether the NFC device 30 and the box body 10 are in a corresponding relationship as set by the factory, and the NFC device 30 is used to read the number of box openings when the encrypted information to be verified is verified. Specifically, the NFC device 30 is used to read the number of box openings when verifying that the NFC device 30 and the box body 10 are in a corresponding relationship as set by the factory.
[0065] Furthermore, the encrypted information is: a random number and ciphertext data.
[0066] In this embodiment, the box body 10 is a box body 10 with a cover body, and the box is opened when the cover body is opened. The cover body is a part of the box body 10, and the box body 10 includes a box body and a cover body, and the cover body can cover the box body. The box body 10 has a storage cavity, and the cover body serves as a cover of the storage cavity. Here, the connection relationship between the box body and the cover body is not limited. For example, when the cover body is not covered on the box body, the storage cavity is exposed, and the box body 10 and the cover body are in a disconnected state. For another example, the cover body is hinged to the box body 10, and the cover body can be rotated to expose the storage cavity.
[0067] In this embodiment, the unique identification code (UID) information on the box body 10 can be set on the box body, or on the cover, or on the box body and the cover, and the information on the box body and the information on the cover together constitute the unique identification code information. Usually, the unique identification code information is in the form of a two-dimensional code.
[0068] In this embodiment, the power supply device uses a disposable button battery 40, model CR2016 (diameter 20mm, thickness 1.6mm), and the button battery 40 is used to power the detection counting device and the NFC device 30. Specifically, the tag includes a tag substrate, which can be flexible, and a dedicated button battery 40 buckle is provided on the tag substrate, and its structure is as follows: Figure 4 .
[0069] The detection and counting device includes a box opening detection module and a main controller module. The box opening detection module is used to detect and record the opening of the cover body. The box opening detection module is connected to the main controller module. The main controller module is used to record the number of times the cover body is opened. The main controller module can communicate with the NFC device 30. Here, the main controller module can use MCU23, and its circuit schematic diagram is as follows Figure 5 The ultra-low power MCU 23, in combination with a disposable button battery 40, has a theoretical service life of more than 36 months, which can meet the shelf life requirements of most products.
[0070] Furthermore, the box opening detection module includes a Hall sensor 21 and a magnet 22. The Hall sensor 21 is used to detect the change in magnetic field as a basis for judging whether the box body is opened. The Hall sensor 21 is a transducer that converts the change in magnetic field into a change in output voltage. One of the Hall sensor 21 and the magnet 22 is set on the box body, and the other is set on the cover. The positional relationship between the Hall sensor 21, the magnet 22 and the box body 10 plate can be seen in Figure 6 The Hall sensor 21 and the magnet 22 may be separated by a plate of the box body 10. Figure 7 An example of a packaging box 100 structure is shown, where the detection counting device, NFC device 30 and battery 40 are all located in the side wall of the box body 10. The box body is in a closed state, and the Hall sensor 21 detects a strong magnetic field environment. When the box body 10 is opened, the Hall sensor 21 and the magnet 22 move relative to each other. The Hall sensor 21 detects that the magnetic field changes from strong to weak, causing a voltage change. The MCU 23 detects the change in the electrical signal and counts once, which is considered as one box opening.
[0071] The Hall sensor 21, the main controller module, the NFC device 30 and the battery 40 together serve as a tag, which can be set in the box body 10, or attached to the box body 10, or in other ways, which are not particularly limited here.
[0072] Preferably, the Hall sensor 21 is a switch type Hall sensor 21, which has the advantages of small size, wide operating voltage range, reliable operation, low price, etc. The partial circuit diagram of the packaging box 100 regarding the Hall sensor 21 is as shown in FIG. Figure 8 As shown, Figure 8The VCC port in the figure represents the input port, and the FB port represents the output port; R5 is a pull-up resistor, which is used to ensure that the FB port is usually in a high-level state; D1 is a power-on indicator light, D2 is a working indicator light, and LM393 is an operational amplifier. The operational amplifier plays the role of outputting high and low levels in this circuit; the voltage of port 2 of the operational amplifier is fixed to half of VCC, and port 3 is controlled by the Hall sensor 21 on the left to output high / low levels; 3144 represents the Hall sensor 21, and the two Hall sensors 21 are in an or relationship, that is, one of them detects a change in the magnetic field and can work. The specific working process is: the Hall sensor 21 detects a change in the magnetic field, and the output of port 3 of the operational amplifier changes from a high level to a low level, which is fed back to the operational amplifier. At this time, port 3 of the operational amplifier becomes a low level, and port 2 is a fixed voltage, that is, at this time, the output of port 1 changes from a high level to a low level; the signal is given to MCU23 through the FB port, and MCU23 processes the signal as data. It can be understood that in this embodiment Figure 5 , Figure 8 , Fig.11 and Fig.13 The circuit diagrams are only exemplary. The letter symbols in each circuit diagram are only exemplary distinguishing expressions in the circuit diagram in which they are located. If different circuit diagrams have the same letter symbols, it does not mean that they are the same product.
[0073] Furthermore, the magnet 22 adopts a Fig. 9 The magnetic stripe shown is a flexible magnetic material with magnetic materials arranged at intervals, and has different polarity distributions in the arrangement direction. With this magnetic stripe, multiple rapid changes in the magnetic field of N—S—N…—S—N—S can be regarded as one box opening. This judgment logic is more rigorous and avoids misjudgment of the presence or absence of a magnetic field due to vibration during transportation.
[0074] The following are examples of specific unpacking tests:
[0075] The tag detects the input of the magnetic field. When the change reaches the threshold, it is considered that the box has been opened, the count value increases by 1, and is updated to the NFC chip;
[0076] After counting, ignore the magnetic field changes within 2 seconds;
[0077] An example of the logic for box opening detection is:
[0078] Taking time T as the sampling unit, sampling n times as one round, when the number of magnetic field changes i reaches the threshold th, it is considered to be open;
[0079] If the threshold value is not reached at the end of this round, it is determined whether the magnetic field in this round has changed;
[0080] If there is a change, add another round of detection; the maximum number of detection rounds is m;
[0081] If there is no change, it is considered to be an interference signal and no response is made;
[0082] The initial values of the parameters can be set to: m=5, n=5, th=6, T=100ms.
[0083] The NFC device 30 can be connected to the detection and counting device in communication to read the number of box openings, i.e., the number of lid openings. Specifically, in one embodiment, when the verification result of the NFC device 30 based on the unique identification code information is passed, the NFC device 30 can be connected to the detection and counting device in communication, and the number of lid openings can be read through the NFC device 30. In one embodiment, the NFC device 30 is continuously connected to the detection and counting device in communication, and the counting information of the detection and counting device can be obtained. However, only when the result of the verification of the unique identification code information by the NFC device 30 is passed, the NFC device 30 allows the counting information in the NFC device 30 to be displayed (to an NFC device, such as a mobile phone, a handheld device, a dedicated reader, etc.). Here, the MCU 23 is directly connected to the NFC device 30 through the I2C interface, and data can be directly written to the NFC device 30.
[0084] The NFC device 30 is loaded with a website for verifying whether the NFC device 30 and the box body 10 are in the factory-set corresponding relationship. The unique identification code information is used as a key. The NFC device 30 (collectively referred to as an NFC device) is identified by a mobile phone with an NFC function, and a random number and ciphertext data can be obtained. The random number, ciphertext data and unique identification code information are used as inputs to the website. The unique identification code information is used as a key for decoding the ciphertext data. Finally, it is determined whether the decoded ciphertext data has passed the verification. Passing the verification indicates that the NFC device 30 and the box body 10 are in the factory-set corresponding relationship. For example, Fig.10 As shown, the plaintext data is obtained through the website, and the plaintext data and the random number are compared to obtain the verification result; specifically, the NFC device 30 may be loaded with a first algorithm, and the verification can be performed through the first algorithm; it can be understood that the NFC device 30 may be loaded with a second algorithm and the website, and the second algorithm and the website can be used to verify whether the unique identification code information is passed; it can also be that the NFC device has an APP, and the APP can verify the corresponding relationship between the NFC device 30 and the box body 10 as factory settings, and the number of box openings can be read after the verification is passed. In other embodiments, the unique identification code information may not be used as a key, and it may be used to verify whether the unique identification code information is consistent with the encrypted information in the NFC device 30. Specifically, it is also necessary to decode the encrypted information in the NFC device 30 and then compare it with the unique identification code information. If they are consistent, the verification result is passed, otherwise, it is not passed. The above is only an example and is not limited.
[0085] It is understandable that the NFC device 30 also has NFC terminal unique identification data. When leaving the factory, a one-to-one correspondence between unique identification code information and encryption information of the NFC terminal is set.
[0086] In this embodiment, the NFC device 30 is a read-only locked NFC device 30, and the number of times the cover is opened read by the NFC device 30 cannot be changed. Specifically, the NFC device 30 includes an NFC chip, and the NFC chip 31 has a built-in memory, which is a read-only locked memory.
[0087] As a specific example, the NFC chip 31 is Shanghai Fudan Microelectronics FM11NT082C (hereinafter referred to as NT082C), which is an NFC dual-interface tag chip that complies with the ISO / IEC14443-A protocol.
[0088] NT082C has built-in memory EEPROM. This NFC chip can be used for non-real-time data interaction between external processors and mobile phones or readers with NFC functions. For example, a mobile phone with NFC functions writes configuration information to EEPROM, and the external processor reads it when it is idle; or the LOG file of the device operation is written to EEPROM at regular intervals, and the mobile phone with NFC functions can read the LOG file when the device is not powered on. The read-write EEPROM can also be used to achieve real-time slow data interaction between the external processor and the mobile phone. The contactless interface of NT082C has a two-way security authentication function. The downstream authentication method is the authentication of the reader to the tag, which can be used for anti-counterfeiting and original factory verification of electronic products; the upstream authentication method is the authentication of the tag to the reader, which can be used to enable individual functions and access control of storage space permissions.
[0089] The NT082C is a dual-interface chip that supports ISO / IEC 14443-A. Its contactless interface communicates with the user's NFC device. The contact interface can achieve zero standby power consumption, communicate with MCU23 through the I2C interface, with a maximum data transmission rate of 1Mbps, and supports register soft reset function. Its total EEPROM capacity is 1K Bytes, the user area capacity is 888Bytes, the maximum erase and write times are up to 1 million times, and the data retention time is up to 20 years.
[0090] The security features of the NT082C are: each chip has an independent 7-byte UID, the UID cannot be rewritten, the storage area of the chip has a read-only lock function (irreversible, preventing the stored count data from being modified after locking), algorithm-based two-way security authentication (one of the user NFC device verification methods, see the technical problem solved by the present invention above - copying problem-2), the size of the user's security data area is adjustable, and the access rights to the security data area are controlled by the algorithm (the tag can come with more data content when it leaves the factory).
[0091] The NFC chip 31 supports two-way security authentication based on algorithms, specifically, the IC-Printing algorithm (abbreviated as Print algorithm), which is a 48-bit block cipher algorithm with an effective key length of 80 bits. The basic structure is an SP network with r=48 rounds. For details about the Print algorithm key authentication process, please refer to the key authentication process of Shanghai Fudan Microelectronics Group Co., Ltd.
[0092] See also Fig.11 and Fig.12 The schematic diagram of the NFC device 30 is as follows: Fig.11 The internal structure diagram of the NFC chip 31FM11NT082C is as follows: Fig.12As shown, it includes an integrated analog front end (AFE), a power management module (Power Managerment), a clock controller (Clock Controller), a Miller decoder (Miller Decoder), a Manchester / BPSK encoder (manchester / BPSK coder), an anti-collision engine module (Anticollision Engine), a protocol processing engine (Protocol Processing Engine), a FIFO memory, a CT controller (CT Controller) and a memory EEPROM. The integrated analog front end is connected to the clock controller and the Miller decoder, and the Manchester / BPSK encoder is connected to the integrated analog front end. The FIFO memory is connected to the anti-collision engine module and the CT controller, and the CT controller (CT Controller) and the I2C interface are both connected to the Diag mode module (Mode Diag), and the contact interface (EE interface) is connected to the memory EEPROM and the Diag mode module. The integrated analog front end is connected to the analog input pins IN1 and IN2 as RF antenna pins. The power management module connects the power pin VCC (used as the power supply of the contact interface) and the analog output pin VOUT (used for output after field energy rectification and voltage stabilization). The VCC pin is connected to the capacitors C6 and C7 connected in parallel and grounded. The VOUT pin is connected to the light-emitting diode, the first resistor R1 and the ground in sequence. The I2C interface corresponds to the SDA pin, the SCL pin, the CSN pin, the IRQ pin, and the NULL pin. The SDA pin is an open-drain output pin, which serves as the I2C data signal port. The SCL pin is a digital input pin, which serves as the I2C clock signal port. The CSN pin is a digital input pin, which corresponds to the contact interface power switch enable signal (low effective). The microcontroller is weakly pulled up inside, and the resistor R11, the resistor R10, and the capacitor C9 are connected at the same time. The other ends of the resistor R10 and the capacitor C9 are grounded, and the other end of the resistor R11 is connected to the power supply end. The IRQ pin is a digital output pin, which corresponds to the interrupt signal output and can be configured as push-pull high effective or open-drain low effective.
[0093] Preferably, in order to solve the problem of high-end fraud methods, the NFC chip 31 is removed from the PCB board, soldered on an informal PCB board specially used for changing data, and then soldered back after the data is changed. The communication between the detection and counting device and the NFC device 30 is encrypted, that is, the communication between the main controller module and the NFC device 30 includes communication authentication, and specifically, a key system is added to the communication of the main controller module.
[0094] As an example but not limitation of key communication, the number of box openings in the main controller module is encrypted and then transmitted to the NFC device 30. After receiving the encrypted number of box openings, the NFC device 30 decrypts it to obtain the number of box openings. Here, the encryption and decryption keys corresponding to the main controller module and the NFC device 30 can be generated when the initial connection is established during production. As another example but not limitation, the main controller module first checks whether the NFC device 30 is the corresponding NFC device 30 shipped from the factory. If so, the main controller module will send the information of the number of box openings to the NFC device 30.
[0095] As an example of a specific application, the NFC device 30 sends a request to the main controller module to obtain the number of box openings. The request carries a first parameter, which is randomly generated by the main controller module. The main controller module randomly generates a second parameter, concatenates the second parameter with the first parameter, and then uses a preset public key or private key to encrypt a string to obtain the string, and sends the string to the NFC device 30; the NFC device 30 parses the string and feeds back the parsing result to the main controller module, and the main controller module performs verification. If the main controller module confirms that the verification is successful, the main controller module sends the latest number of box openings to the NFC device 30.
[0096] The battery 40 is used as a power supply for the Hall sensor 21, the MCU 23, and the NFC device 30. The tag includes the battery 40, the Hall sensor 21, the MCU 23, and the NFC device 30. The Hall sensor 21, the MCU 23, the NFC device 30, and the battery 40 are located in the same circuit board. The position setting examples of each part in the circuit board are as follows: Fig.13 shown.
[0097] See also Fig.14 , a method for counting the number of times the packaging box 100 is opened is provided. The principle is that when the user opens the box, a relative movement will occur between the box body and the cover, and a relative movement will also occur between the magnet 22 and the Hall sensor 21; the Hall sensor 21 will detect the magnetic field formed by the magnet 22, and transmit the detected magnetic field signal data to MCU23; when MCU23 receives the magnetic field signal data, MCU23 will compare the magnetic field signal data with the magnetic field arrangement signal data pre-stored in MCU23; when the comparison is consistent, the count value of MCU23 will be updated, that is, the count is increased by 1, and the new count value is transmitted to the NFC module; when the NFC module receives the count value transmitted by MCU23, the NFC module will update the value stored in the memory. Therefore, the counting method includes:
[0098] Step 1: The Hall sensor 21 detects the magnetic field formed by the magnet 22 and transmits the detected magnetic field signal data to the main controller module;
[0099] Step 2: The main controller module compares the received magnetic field signal data with the magnetic field arrangement signal data pre-stored in the main controller module;
[0100] Step 3: When there is a box opening operation, the main controller module is compared and consistent, and the box opening times in the main controller module are increased by 1 to update the box opening times;
[0101] Step 4: The main controller module transmits the updated box opening times to the NFC module;
[0102] Step 5: The NFC module receives and updates the number of box opening times stored therein.
[0103] The present invention also provides an electronic device, including a storage device, a processing device and a computer program stored in the storage device and executable on the processing device, wherein the processing device implements the method for counting the number of times a packaging box is opened when executing the program.
[0104] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method for counting the number of times a packaging box is opened.
[0105] See also Fig.15 , specifically provides a packaging box 100 detection method, specifically a method for detecting whether the packaging box 100 is a factory device, including:
[0106] S1. The NFC device is close to the NFC module on the packaging box 100;
[0107] S2, inputting the unique identification code information of the box body 10 into the NFC device;
[0108] S3, verifying the NFC device 30 based on the unique identification code information;
[0109] S4, the NFC device obtains a verification result, where the verification result is a verification result of the NFC device 30 based on the unique identification code information;
[0110] S5. If the verification result is failed, it means that the box body 10 and the NFC device 30 are not in the corresponding relationship of the factory settings, and the number of box opening times cannot be read; if the verification result is passed, the NFC device 30 reads the number of box opening times, and the NFC device displays the number of box opening times read by the NFC device 30. If the number of box opening times is 0, it is determined that the packaging box 100 is the factory setting and the product inside the packaging box 100 is an original product. Otherwise, it cannot be determined whether the product inside the packaging box 100 is an original product.
[0111] In one embodiment, the NFC device approaches the NFC module on the packaging box 100 specifically as follows: the NFC device approaches the NFC module, and the NFC device obtains a random number and ciphertext data, that is, the random number and ciphertext data are generated by the NFC module; S3 specifically includes: decoding the ciphertext data based on the unique identification code information to obtain plaintext data, comparing the plaintext data and the random number to obtain a comparison result, the comparison result is a verification result, if the specific plaintext data and the random number correspond, the verification result is passed, otherwise it is failed.
[0112] The executor of S3 can be a website (including WeChat applet) that verifies the NFC function based on the unique identification code information and is close to the NFC device 30, and the server corresponding to the website directly obtains the random number and ciphertext data. It can also be that the NFC device has a corresponding APP loaded, and the APP can verify the NFC device 30 based on the unique identification code information.
[0113] That is to say, when the NFC device is close to the NFC module, the NFC device can open a preset website, and the server corresponding to the website can verify the NFC device 30 based on the unique identification code information; or the NFC device has an APP that can verify the NFC device 30 based on the unique identification code information.
[0114] In this embodiment, the thickest part of the label is 1.6mm (the thickness of a CR2016 battery 40). Taking a common 2.5mm thick gray board as an example, a 1.6mm groove is made on it, and the label is placed, and the outer surface is covered with facial paper. Similarly, the hard magnet 22 / soft magnet 22 is placed on the grooved gray board and covered with facial paper. After assembly, there is no difference in appearance from a general gray board box. The packaging box 100 is mostly a gray board box. Unlike a general cardboard box, the gray board box is mostly composed of two box bodies 10 inside and outside. Generally, the outer box (cover body) is moved to open / close the box body, the magnet 22 / soft magnet 22 is placed in the outer box, and the counting label is placed in the inner box (box body).
[0115] The following is an explanation of the three common box types: top and bottom, flip cover, and drawer.
[0116] Fig.16 This is a knife pattern of a flip box, with the outer box on the left and the inner box on the right. PCBA stands for the label. The flip box is usually fixed with a magnet 22 + iron block. When the box body is closed, the label and the flexible magnet 22 are close together, and the Hall sensor 21 on the counting label is in a strong magnetic field environment; when the box cover is opened, the distance between the flexible magnet 22 and the PCBA becomes farther, and the Hall sensor 21 is in a weak / no magnetic field environment. The counting label will indicate the number of times the box has been opened + 1, and this information will be encrypted and stored in the NFC chip 31, waiting for the user to read it.
[0117] Fig.17This is the knife pattern of the heaven and earth box. The upper picture is the sky cover and the lower picture is the ground cover.
[0118] Fig.18 It is a knife plate diagram of a drawer box, the upper picture is the outer box, and the lower picture is the inner box. The way to open it is to pull out the inner box. The reason why the counting label is placed in the inner box is that the inner box of the drawer box carries the contents, the gray board is thicker than the outer box, and the thickness of the counting label is obviously greater than the flexible magnet 22, so the flexible magnet 22 is placed in the outer box.
[0119] The installation position of the magnet 22 should coincide with the position of the Hall sensor 21 in the label. When the box is opened, the magnet 22 moves away from the Hall sensor 21, causing the magnetic field strength to change, triggering the Hall sensor 21 indication. For some magnetic stripe materials, it is necessary to pay attention to the inconsistency of the magnetism in the X-axis and Y-axis directions, and the direction of the magnetic stripe must be identified before installation; identification of the direction of the magnetic stripe: take two magnetic stripes, bring them close together to attract them, try to move one magnetic stripe in different directions, and record the direction that can be attracted and has a sense of paragraph. This direction is the direction in which the magnetic stripe moves when the box is opened after installation.
[0120] The packaging box 100 with the function of box opening counting of the present invention has a power supply device and a detection and counting device, which can continuously monitor whether the box is opened, and the tag will not lose the function of box opening detection. The detection mechanism is active, and the detection and counting device actively and continuously detects the number of box openings. Based on the NFC device, the current number of box openings can be obtained, and then it is known whether the packaging box 100 has been opened and the number of openings, which is conducive to judging whether the product in the packaging box 100 can be determined to be original. The NFC device 30 of the present invention carries encrypted information to be verified. The number of box openings can be read only after the encrypted information to be verified is verified, thereby improving security.
[0121] The invention has a wide scope of application:
[0122] Compared with the lock and buckle mechanism of the traditional physical structure, the label does not need to add any additional mechanism to the traditional structure of the packaging box 100 (only a groove needs to be made on the gray board), has better versatility, and is suitable for a variety of gift boxes.
[0123] The present invention has a high safety level:
[0124] The present invention uses encrypted data for background identification and verification to ensure that "fake chips" cannot pass through.
[0125] The present invention performs a read-only operation but not a write operation during the initialization phase of the NFC chip 31. This operation is irreversible, thereby ensuring that the data stored in the NFC chip 31 (number of times the box is opened) is authentic and valid and cannot be tampered with.
[0126] The MCU23 and NFC chip 31 on the tag are encrypted to achieve one-to-one identification. Only the unique MCU23 can write data to the unique corresponding NFC chip 31 through the I2C interface.
[0127] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0128] 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 them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may 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 scope of the technical solutions of the embodiments of the present invention.
Claims
1. A packaging box with a box opening and counting function, characterized in that: include: A box body, a detection and counting device for detecting box opening and recording the number of box openings, an NFC device capable of communicating with the detection and counting device to obtain the number of box openings, and a power supply device for supplying power to the detection and counting device and the NFC device, wherein the detection and counting device, the NFC device and the power supply device are all arranged on the box body; the NFC device carries encrypted information to be verified, and the NFC device can be communicated with an external NFC device, and is used to provide the number of box openings to the external NFC device when the encrypted information to be verified is verified.
2. A packaging box with a box opening and counting function as claimed in claim 1, characterized in that: The detection and counting device includes a Hall sensor, a magnet corresponding to the Hall sensor, and a main controller module connected to the Hall sensor. The main controller module is communicatively connected to the NFC device. The main controller module is arranged on a box body. The box body includes a box body and a cover of the box body. The Hall sensor and the magnet are respectively located on the box body and the cover, or respectively located on the cover and the box body. The power supply device supplies power to the Hall sensor and the main controller module. The Hall sensor is used to detect magnetic field changes to obtain magnetic field signal data. The main controller module is used to determine whether the number of box openings is increased by 1 to update the number of box openings based on the magnetic field signal data, and to send the updated number of box openings to the NFC device.
3. A packaging box with a box opening and counting function as claimed in claim 2, characterized in that: The box body has unique identification code information, the encrypted information to be verified is encrypted information uniquely corresponding to the unique identification code information, the encrypted information and the unique identification code information are used to verify whether the NFC device and the box body are in a corresponding relationship as set by the factory, and the NFC device is used to read the number of box openings when the encrypted information to be verified is verified. Specifically, the NFC device is used to read the number of box openings when verifying that the NFC device and the box body are in a corresponding relationship as set by the factory.
4. A packaging box with a box opening counting function as claimed in claim 3, characterized in that: The encrypted information is a random number and ciphertext data, the unique identification code information is used as a key for decrypting the ciphertext data, the plaintext data obtained by decrypting the ciphertext data is used for comparison with the random number, and the comparison result is used as a verification result.
5. A packaging box with a box opening and counting function as claimed in claim 2, characterized in that: The memory of the NFC device is a read-only locked memory.
6. A packaging box with a box opening and counting function as claimed in claim 1, characterized in that: The communication between the main controller module and the NFC device includes communication authentication.
7. A method for counting the number of times a package box is opened, characterized in that: The packaging box is the packaging box according to claims 2 to 5, and the counting method comprises: Step 1: The Hall sensor detects the magnetic field formed by the magnet and transmits the detected magnetic field signal data to the main controller module; Step 2: The main controller module compares the received magnetic field signal data with the magnetic field arrangement signal data pre-stored in the main controller module; Step 3: When there is a box opening operation, the main controller module is compared and consistent, and the box opening times in the main controller module are increased by 1 to update the box opening times; Step 4: The main controller module transmits the updated box opening times to the NFC module; Step 5: The NFC module receives and updates the number of box opening times stored therein.
8. A packaging box detection method, characterized in that: The packaging box is the packaging box according to claims 1 to 5, and the detection method comprises: The external NFC device is close to the NFC module on the packaging box; The external NFC device reads the encrypted information to be verified and verifies it; If the verification result is passed, the NFC device reads the number of box openings, and the external NFC device obtains the number of box openings read by the NFC device. Otherwise, the NFC device cannot read the number of box openings.
9. An electronic device comprising a storage device, a processing device, and a computer program stored in the storage device and executable on the processing device, characterized in that: When the processing device executes the program, the method for counting the number of times a packaging box is opened as described in claim 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, a method for counting the number of times a packaging box is opened is implemented as described in claim 7.
Citation Information
Patent Citations
Set top box pirate preventing method and set top box
CN103607645A
Anti-counterfeiting bottle cap based on security chip cryptographic algorithm and bottle cap activation and anti-counterfeiting method
CN111047337A
Anti-counterfeiting equipment and distributed identifier analysis system for realizing anti-counterfeiting
CN112101963A
Method, device and equipment for identifying near field communication (NFC) device and medium
CN116634428A
NFC interface product packaging box and box opening counting method
CN117963308A
