Cigarette packet information storage method and cigarette packet information tracing method and device

By acquiring and associating the identification information, processing order, and time of the cigarette packs, the problem of the inability to trace the dwell time of the cigarette packs in the beautification machine was solved, and accurate traceability of the quality defects of the cigarette packs was achieved.

CN121883035APending Publication Date: 2026-04-17LONGYAN CIGARETTE FACTORY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202512048988.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-31
Publication Date
2026-04-17

AI Technical Summary

Technical Problem

Existing technology cannot accurately trace the time that cigarette packs remain in the cigarette pack beautification machine, making it impossible to determine whether quality defects are caused by the cigarette pack beautification machine.

Method used

By acquiring the identification information, processing order, and start time of the cigarette packs, the system identifies the completed cigarette packs, associates and stores their identification information, start time, and end time, and calculates the processing time to achieve accurate traceability.

Benefits of technology

It can quickly find the processing time of the target cigarette pack and accurately trace whether the quality defect was caused by the cigarette pack beautification machine, thus improving the accuracy of traceability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121883035A_ABST
    Figure CN121883035A_ABST
Patent Text Reader

Abstract

The invention relates to a cigarette packet information storage method and a cigarette packet information tracing method and device. The cigarette packet information storage method comprises the following steps: acquiring identification information of a first cigarette packet to be packaged at the current moment, a first processing sequence for packaging the first cigarette packet and starting time; under the condition that the first processing sequence is larger than a preset sequence threshold value, according to the first processing sequence corresponding to the first cigarette packet, a second cigarette packet which is packaged at the current moment is determined; according to the start time corresponding to the first cigarette packet, determining the end time for packaging the second cigarette packet; and for each second cigarette packet, carrying out associated storage on the identification information, the starting time and the ending time of the second cigarette packet. According to the method, the identification information, the starting time and the ending time of the second cigarette packet are stored in an associated manner, so that the starting time and the ending time of the target cigarette packet during packaging processing can be quickly searched according to the identification information of the target cigarette packet to be traced, and accurate traceability can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cigarette detection technology, and in particular to a method for storing cigarette pack information, a method for tracing cigarette pack information, and an apparatus. Background Technology

[0002] In cigarette packaging production, cigarette pack beautification machines can be used to iron out curls and wrinkles in the heat-shrinkable film of the cigarette pack's sealing transparent paper, ensuring that the transparent paper on the cigarette pack surface is flat and the edges are neat, meeting the strict appearance quality requirements of the cigarette pack.

[0003] When cigarette packs remain in the cigarette pack finishing machine for too long, there is a certain probability that quality defects such as poor appearance, stuck inner box lids, and stuck cigarettes will occur. When consumers provide feedback or inspectors discover these quality defects during quality inspection of finished cigarettes, a defect tracing analysis is necessary to determine whether the defective cigarette packs were caused by prolonged stay in the finishing machine.

[0004] Typically, cigarette pack finishing machines cannot provide the dwell time of each pack within the machine. Therefore, when the aforementioned quality defects exist in the cigarette packs, it's impossible to accurately trace whether the finishing machine caused the problem. Thus, how to accurately trace the origin of cigarette packs is a pressing issue that needs to be addressed. Summary of the Invention

[0005] Therefore, it is necessary to provide a method for storing cigarette pack information, a method for tracing cigarette pack information, and a device for accurately tracing the origin of cigarettes, in order to address the aforementioned technical problems.

[0006] Firstly, this application provides a method for storing cigarette pack information, including:

[0007] Obtain the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time;

[0008] If the first processing order corresponding to the first cigarette pack is greater than the preset order threshold, the second cigarette pack that has been packaged at the current moment is determined according to the first processing order corresponding to the first cigarette pack.

[0009] The end time for sealing the second cigarette pack is determined based on the start time corresponding to the first cigarette pack.

[0010] For each second pack of cigarettes, the identification information, start time, and end time of the second pack are associated and stored.

[0011] In one embodiment, determining the second cigarette pack that has been packaged at the current moment according to the first processing order corresponding to the first cigarette pack includes: determining the order difference between the first processing order corresponding to the first cigarette pack and a preset order threshold; and taking the cigarette pack with the same second processing order and order difference as the second cigarette pack.

[0012] In one embodiment, the identification information, start time, and end time of the second cigarette pack are associated and stored together, including: determining the processing time for packaging the second cigarette pack based on the start time and end time; and associating and storing the identification information, start time, end time, and processing time of the second cigarette pack together.

[0013] In one embodiment, the second cigarette pack is composed of at least two stacked individual cigarette packs; accordingly, the identification information, start time, and end time of the second cigarette pack are associated and stored, including: obtaining the identification information of each individual cigarette pack in the second cigarette pack; and for each individual cigarette pack, associating and storing the identification information of the individual cigarette pack, the start time of the second cigarette pack, and the end time of the second cigarette pack.

[0014] Secondly, this application provides a method for tracing information on cigarette packs, including:

[0015] Obtain the target identification information of the target cigarette pack to be traced;

[0016] Based on the target identification information and the reference start time and reference end time associated with each reference identification information, determine the target start time and target end time corresponding to the target identification information;

[0017] The processing time for sealing the target cigarette pack is determined based on the target start time and target end time.

[0018] Based on the processing time, information traceability is performed on the target cigarette pack.

[0019] Thirdly, this application also provides a cigarette pack information storage device, comprising:

[0020] The acquisition module is used to acquire the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time.

[0021] The first determining module is used to determine the second cigarette pack that has been packaged at the current moment, based on the first processing order corresponding to the first cigarette pack, when the first processing order corresponding to the first cigarette pack is greater than a preset order threshold.

[0022] The second determining module is used to determine the end time of the sealing process of the second cigarette pack based on the start time corresponding to the first cigarette pack;

[0023] The association module is used to associate and store the identification information, start time, and end time of each second pack of cigarettes.

[0024] Fourthly, this application also provides a cigarette pack information traceability device, comprising:

[0025] The acquisition module is used to acquire the target identification information of the target cigarette pack to be traced.

[0026] The first determining module is used to determine the target start time and target end time corresponding to the target identifier information based on the target identifier information and the reference start time and reference end time associated with each reference identifier information.

[0027] The second determining module is used to determine the processing time for packaging the target cigarette pack based on the target start time and target end time.

[0028] The third determination module is used to trace the information of the target cigarette pack based on the processing time.

[0029] Fifthly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0030] Obtain the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time;

[0031] If the first processing order corresponding to the first cigarette pack is greater than the preset order threshold, the second cigarette pack that has been packaged at the current moment is determined according to the first processing order corresponding to the first cigarette pack.

[0032] The end time for sealing the second cigarette pack is determined based on the start time corresponding to the first cigarette pack.

[0033] For each second pack of cigarettes, the identification information, start time, and end time of the second pack are associated and stored.

[0034] Sixthly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0035] Obtain the target identification information of the target cigarette pack to be traced;

[0036] Based on the target identification information and the reference start time and reference end time associated with each reference identification information, determine the target start time and target end time corresponding to the target identification information;

[0037] The processing time for sealing the target cigarette pack is determined based on the target start time and target end time.

[0038] Based on the processing time, information traceability is performed on the target cigarette pack.

[0039] In a seventh aspect, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0040] Obtain the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time;

[0041] If the first processing order corresponding to the first cigarette pack is greater than the preset order threshold, the second cigarette pack that has been packaged at the current moment is determined according to the first processing order corresponding to the first cigarette pack.

[0042] The end time for sealing the second cigarette pack is determined based on the start time corresponding to the first cigarette pack.

[0043] For each second pack of cigarettes, the identification information, start time, and end time of the second pack are associated and stored.

[0044] Eighthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0045] Obtain the target identification information of the target cigarette pack to be traced;

[0046] Based on the target identification information and the reference start time and reference end time associated with each reference identification information, determine the target start time and target end time corresponding to the target identification information;

[0047] The processing time for sealing the target cigarette pack is determined based on the target start time and target end time.

[0048] Based on the processing time, information traceability is performed on the target cigarette pack.

[0049] Ninthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0050] Obtain the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time;

[0051] If the first processing order corresponding to the first cigarette pack is greater than the preset order threshold, the second cigarette pack that has been packaged at the current moment is determined according to the first processing order corresponding to the first cigarette pack.

[0052] The end time for sealing the second cigarette pack is determined based on the start time corresponding to the first cigarette pack.

[0053] For each second pack of cigarettes, the identification information, start time, and end time of the second pack are associated and stored.

[0054] In a tenth aspect, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0055] Obtain the target identification information of the target cigarette pack to be traced;

[0056] Based on the target identification information and the reference start time and reference end time associated with each reference identification information, determine the target start time and target end time corresponding to the target identification information;

[0057] The processing time for sealing the target cigarette pack is determined based on the target start time and target end time.

[0058] Based on the processing time, information traceability is performed on the target cigarette pack.

[0059] The aforementioned cigarette pack information storage method, cigarette pack information traceability method, and apparatus, wherein the cigarette pack information storage method includes: acquiring the identification information of a first cigarette pack to be packaged at the current moment, the first processing order for packaging the first cigarette pack, and the start time; if the first processing order corresponding to the first cigarette pack is greater than a preset order threshold, determining a second cigarette pack that has been packaged at the current moment according to the first processing order corresponding to the first cigarette pack; determining the end time for packaging the second cigarette pack according to the start time corresponding to the first cigarette pack; and storing the identification information, start time, and end time of each second cigarette pack in association. In the above process, by storing the identification information, start time, and end time of the second cigarette pack in association, when tracing the target cigarette pack to be traced, the start time and end time of the packaging process of the target cigarette pack can be quickly found according to the identification information of the target cigarette pack, thereby determining the processing time of the target cigarette pack (such as the dwell time in the cigarette pack beautification machine), and thus accurately tracing the target cigarette pack, such as accurately tracing whether the quality defect of the target cigarette pack is caused by the cigarette pack beautification machine. Attached Figure Description

[0060] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0061] Figure 1 This is a flowchart illustrating a method for storing cigarette pack information in one embodiment;

[0062] Figure 2 This is a flowchart illustrating the method for storing cigarette pack information in another embodiment;

[0063] Figure 3 This is a flowchart illustrating a method for tracing cigarette pack information in one embodiment;

[0064] Figure 4 This is a flowchart illustrating the cigarette pack information traceability method in another embodiment;

[0065] Figure 5 This is a structural block diagram of a cigarette pack beauty machine in one embodiment;

[0066] Figure 6 This is a structural block diagram of a cigarette pack information storage device in one embodiment;

[0067] Figure 7 This is a structural block diagram of a cigarette pack information traceability device in one embodiment;

[0068] Figure 8 This is an internal structural diagram of a computer device in one embodiment.

[0069] Attached labels: 1. Beauty machine smoke pack inlet; 2. Beauty machine heating component; 3. Beauty machine smoke pack outlet channel; 4. Double smoke pack; 5. Smoke pack QR code; 6. Smoke pack conveying channel; 7. QR code scanning device. Detailed Implementation

[0070] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0071] In one exemplary embodiment, a method for storing cigarette pack information is provided. Taking the application of this method to an industrial control computer as an example, the industrial control computer can communicate with a packaging device (such as a cigarette pack beautification machine) that packages cigarette packs. Figure 1 As shown, the method for storing cigarette pack information includes the following steps:

[0072] S110, obtain the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time.

[0073] The identification information can be understood as information used to identify the identity of the cigarette pack. For example, the identification information may include a QR code, barcode, or other arbitrary form of identification information. In some embodiments, the identification information of the first cigarette pack may be pre-set on the first cigarette pack.

[0074] The packaging process can be understood as sealing the cigarette pack. Specifically, it can be understood as ironing out the curls and wrinkles of the heat-shrinkable film sealing the cigarette pack so that the transparent film on the surface of the cigarette pack is flat and the edges are neat.

[0075] It is important to understand that during the packaging of the first cigarette pack, at least one first cigarette pack enters the packaging device sequentially. The first processing order can be understood as the order in which the packaging processes of each first cigarette pack are performed. In some embodiments, the first processing order of each first cigarette pack can be determined starting from the first cigarette pack to be packaged. For example, the first processing order of the first cigarette pack to be packaged is 1, the first processing order of the second cigarette pack to be packaged is 2, the first processing order of the second cigarette pack to be packaged is 3, and so on, with the first processing order of the Nth cigarette pack to be packaged being N, where N is a positive integer greater than or equal to 1.

[0076] In one exemplary embodiment, a barcode scanner installed on a cigarette pack beautification machine can scan the QR code on a first cigarette pack located at the entrance of the machine at the current moment to obtain the QR code on the first cigarette pack. The cumulative number of scans by the scanner at the current moment can be used as the first processing order corresponding to the first cigarette pack. The scanning time of the scanner can be used as the start time corresponding to the first cigarette pack. In some embodiments, the time information corresponding to the current moment can also be used as the start time corresponding to the first cigarette pack. It is worth noting that in this embodiment, the scanning time of the scanner can be considered as the time information corresponding to the current moment.

[0077] S120, if the first processing order corresponding to the first cigarette pack is greater than the preset order threshold, determine the second cigarette pack that has been packaged at the current moment according to the first processing order corresponding to the first cigarette pack.

[0078] In some embodiments, a preset order threshold can be determined based on the maximum number of cigarette packs that can be stored in the packaging device and are undergoing packaging. For example, the maximum number of cigarette packs that can be stored in the cigarette pack beautification machine channel is 7, so the preset order threshold can be determined to be 7.

[0079] Understandably, if the first processing order of the first cigarette pack to be packaged at the current moment is not greater than a preset order threshold, there is no second cigarette pack that has been packaged at the current moment. For example, if the preset order threshold is 7, and the first processing order of the first cigarette pack to be packaged at the current moment is 5, meaning the maximum number of cigarette packs that the cigarette pack beautification machine channel can hold is 7, and the scanning device has accumulated 5 scans at the current moment, meaning the number of cigarette packs entering the cigarette pack beautification machine channel is 5, then in this case, there is no second cigarette pack that has been packaged at the current moment.

[0080] If the first processing order of the first cigarette pack to be packaged at the current moment is greater than the preset order threshold, then there is a second cigarette pack that has been packaged at the current moment. For example, if the preset order threshold is 7, and the first processing order of the first cigarette pack to be packaged at the current moment is 8, meaning the maximum number of cigarette packs that the cigarette pack beautification machine channel can hold is 7, and the scanning device has accumulated 8 scans at the current moment, then in this case, there is a second cigarette pack that has been packaged at the current moment, which is the first cigarette pack to enter the cigarette pack beautification machine channel.

[0081] In some embodiments, the order difference between the first processing order corresponding to the first cigarette pack and the preset order threshold can be determined; the cigarette pack with the same second processing order and order difference can be used as the second cigarette pack.

[0082] It can be understood that the order difference between the first processing order corresponding to the first cigarette pack and the preset order threshold represents the number of cigarette packs that have been packaged at the current moment. The cigarette packs with the same second processing order and order difference are the second cigarette packs that have been packaged at the current moment, i.e., the most recently packaged second cigarette pack. For example, if the preset order threshold is 7, and the first processing order corresponding to the first cigarette pack to be packaged at the current moment is 10, and the order difference between the first processing order and the preset threshold is 3, then the cigarette pack with a second processing order of 3 can be considered the second cigarette pack.

[0083] S130, determine the end time for sealing the second cigarette pack based on the start time corresponding to the first cigarette pack.

[0084] In practice, the start time of the first cigarette pack can be used as the end time for the packaging process of the second cigarette pack.

[0085] S140, for each second pack of cigarettes, the identification information, start time and end time of the second pack of cigarettes are associated and stored.

[0086] In some embodiments, the identification information and start time of the second cigarette pack can be obtained before the second cigarette pack is packaged. For example, the identification information and start time of the second cigarette pack can be obtained when the second cigarette pack is placed at the entrance of the cigarette pack beautification machine and the QR code of the second cigarette pack is scanned by a barcode scanner installed on the cigarette pack beautification machine.

[0087] In some embodiments, the identification information, start time, and end time of the associated second cigarette pack are stored in a database.

[0088] In one optional embodiment, associating and storing the identification information, start time, and end time of the second cigarette pack may include: determining the processing time for packaging the second cigarette pack based on the start time and end time; and associating and storing the identification information, start time, end time, and processing time of the second cigarette pack.

[0089] It is understandable that the time difference between the end time and the start time represents the processing time for sealing the second cigarette pack. By associating and storing the identification information, start time, end time, and processing time of the second cigarette pack, more comprehensive information about the cigarette pack to be traced can be obtained when tracing its origin, thus enabling accurate traceability.

[0090] In one optional embodiment, the second cigarette pack is composed of at least two stacked individual cigarette packs. Accordingly, storing the identification information, start time, and end time of the second cigarette pack in association may include: obtaining the identification information of each individual cigarette pack in the second cigarette pack; and for each individual cigarette pack, storing the identification information of that individual cigarette pack, the start time of the second cigarette pack, and the end time of the second cigarette pack in association.

[0091] For example, the second pack of cigarettes is made up of two single packs stacked together. The identification information for the two single packs of cigarettes is 20251024000001 and 20251024000002, respectively. The start time of the second pack is 08:08:08:122 on October 24, 2025, and the end time is 08:08:08:422 on October 24, 2025. Therefore, 20251024000001 can be associated with and stored in conjunction with 08:08:08:122 and 08:08:08:422 on October 24, 2025, and 20251024000002 can be associated with and stored in conjunction with 08:08:08:122 and 08:08:08:422 on October 24, 2025.

[0092] In one optional embodiment, if there is no first cigarette pack to be packaged at the current moment, the end time of the second cigarette pack that has been packaged at the current moment can be obtained by manually timing, or the end time of the second cigarette pack at the current moment can be determined based on the transmission rate of the packaging device and the number of cigarette packs remaining in the packaging device.

[0093] The aforementioned cigarette pack information storage method can obtain the identification information of the first cigarette pack to be packaged at the current moment, the first processing order for packaging the first cigarette pack, and the start time; if the first processing order corresponding to the first cigarette pack is greater than a preset order threshold, the second cigarette pack that has been packaged at the current moment is determined according to the first processing order corresponding to the first cigarette pack; the end time for packaging the second cigarette pack is determined according to the start time corresponding to the first cigarette pack; for each second cigarette pack, the identification information, start time, and end time of the second cigarette pack are associated and stored; in the above process, by associating and storing the identification information, start time, and end time of the second cigarette pack, when tracing the source of the target cigarette pack, the start time and end time of the packaging process of the target cigarette pack can be quickly found according to the identification information of the target cigarette pack, thereby determining the processing time of the target cigarette pack (such as the time spent in the cigarette pack beautification machine), and thus accurately tracing the source of the target cigarette pack, such as accurately tracing whether the quality defect of the target cigarette pack is caused by the cigarette pack beautification machine.

[0094] Based on the technical solutions of the above embodiments, this application also provides another optional embodiment, in which the method for storing cigarette pack information is described in detail.

[0095] See Figure 2 The method for storing cigarette pack information shown includes:

[0096] S210, obtain the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time.

[0097] S220, if the first processing order corresponding to the first cigarette pack is greater than the preset order threshold, determine the order difference between the first processing order corresponding to the first cigarette pack and the preset order threshold.

[0098] S230, the cigarette pack with the same second processing order and the order difference is taken as the second cigarette pack that has been packaged at the current time.

[0099] S240, determine the end time for sealing the second cigarette pack based on the start time corresponding to the first cigarette pack.

[0100] S250, determine the processing time for sealing the second cigarette pack based on the start and end times.

[0101] S260, for each second pack of cigarettes, obtain the identification information of each individual pack of cigarettes in that second pack.

[0102] S270: For each single pack of cigarettes, the identification information of the single pack, the start time of the second pack, the end time of the second pack, and the processing time are associated and stored.

[0103] In one exemplary embodiment, a method for tracing cigarette pack information is provided, such as... Figure 3 As shown, the method for tracing information on cigarette packs includes the following steps:

[0104] S310, Obtain the target identification information of the target cigarette pack to be traced.

[0105] The target identification information can be understood as information used to identify the identity of the target cigarette pack. For example, the target identification information may include a QR code, barcode, or other arbitrary form of identification information.

[0106] In some embodiments, the target identification information of the target cigarette pack may be pre-set on the target cigarette pack.

[0107] In some embodiments, when the target identification information is a QR code, the QR code on the target cigarette pack can be scanned using a handheld scanning device.

[0108] S320, based on the target identification information and the reference start time and reference end time associated with each reference identification information, determine the target start time and target end time corresponding to the target identification information.

[0109] The reference start time and reference end time associated with each reference identifier can be pre-stored in the database.

[0110] Among them, the reference start time and reference end time associated with each reference identifier can be determined according to... Figure 1 The information storage method for the cigarette packs shown is obtained; the specific process will not be elaborated further.

[0111] S330, determine the processing time for sealing the target cigarette pack based on the target start time and target end time.

[0112] Understandably, the difference between the target end time and the target start time can be used as the processing time for packaging the target cigarette pack.

[0113] S340, based on the processing time, performs information tracing of the target cigarette pack.

[0114] In some embodiments, the difference between the processing time and the preset processing time can be used to determine whether the target cigarette pack has stayed in the packaging equipment for too long, thereby accurately tracing whether the quality defects of the target cigarette pack are caused by the packaging equipment.

[0115] In this embodiment, the reference start time and reference end time associated with each reference identifier information can be used to quickly find the start and end times of the target cigarette pack during the packaging process. This allows for the determination of the processing time of the target cigarette pack (such as the time spent in the cigarette pack beautification machine), and thus enables accurate traceability of the target cigarette pack. For example, it can be used to accurately trace whether the quality defects of the target cigarette pack were caused by the cigarette pack beautification machine.

[0116] In one exemplary embodiment, such as Figure 4 As shown, a method for tracing information from cigarette packs is provided, which can be applied to applications such as... Figure 5 The cigarette pack beauty machine shown.

[0117] See Figure 5 The illustrated cigarette pack beauty machine includes a cigarette pack inlet 1, a heating element 2, a cigarette pack outlet channel 3, a cigarette pack conveying channel 6, a QR code scanning device 7, and a QR code scanning device mounting bracket 8. The QR code scanning device 7 is mounted on the bottom of the cigarette pack via the mounting bracket 8, with its scanning port at the same height as the cigarette pack inlet 1. The scanning port of the QR code scanning device 7 can scan the QR code 5 on the cigarette pack 4 located at the cigarette pack inlet 1.

[0118] The double cigarette pack 4, which is formed by stacking two single cigarette packs, can pass through the cigarette pack conveying channel 6 and reach the position of the beauty machine heating component 2. The beauty machine heating component 2 can seal the passing double cigarette pack 4, and the sealed double cigarette pack 4 can be output through the beauty machine cigarette pack outlet channel 3.

[0119] The QR code scanning device 7 in the cigarette pack beautification machine can be connected to the industrial control computer via a network cable. The Internet Protocol Address (IP address) of the QR code scanning device 7 is configured using the device configuration software, ensuring that the IP address of the QR code scanning device 7 is on the same network segment as the IP address of the QR code scanning device 7 on the industrial control computer. A target parsing program can then verify and parse the original data of the QR code information scanned by the QR code scanning device 7 to ensure its integrity and validity.

[0120] like Figure 4The cigarette pack information traceability method shown involves the mechanical pusher pushing the cigarette pack double pack 4 output from the upstream machine into the cigarette pack inlet 1 of the beauty machine. The QR code scanning device 7 can then be activated to scan the QR code information of the cigarette pack double pack 4. This QR code is then transmitted to the industrial control computer via a network cable. Simultaneously, the current time of the industrial control computer is associated with the QR code of the cigarette pack double pack 4 and stored in the database as the entry time of the cigarette pack double pack 4 into the beauty machine. For example, if the QR codes of the cigarette pack double pack 4 are 20251024000001 and 20251024000002, and the current time is 08:08:08:122 on October 24, 2025, then 20251024000001 and 20251024000002 are respectively associated with 08:08:08:122 on October 24, 2025 and stored in the database.

[0121] Next, determine if the current number of scans, n, is greater than 7. If n is not greater than 7, continue scanning the QR code on the cigarette pack 4. If n is greater than 7, since the beauty machine channel can only hold 7 sets of cigarette packs, the current scan time is the exit time of the (n-7th)th scanned cigarette pack. Use this current scan time as the exit time of the (n-7th)th scanned cigarette pack. Based on the difference between the entry and exit times of the (n-7th)th scans, the dwell time of the (n-7th)th scanned cigarette pack in the beauty machine is obtained. This dwell time is associated with the QR code information of the (n-7th)th scan and stored in the database. Therefore, the entry time, exit time, and dwell time of the (n-7th)th scanned cigarette pack are all associated with that cigarette pack.

[0122] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0123] Based on the same inventive concept, this application also provides a cigarette pack information storage device for implementing the cigarette pack information storage method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the cigarette pack information storage device provided below can be found in the limitations of the cigarette pack information storage method described above, and will not be repeated here.

[0124] In one exemplary embodiment, such as Figure 6 As shown, a cigarette pack information storage device is provided, including: an acquisition module 610, a first determination module 620, a second determination module 630, and an association module 640, wherein:

[0125] The acquisition module 610 is used to acquire the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time.

[0126] The first determining module 620 is used to determine the second cigarette pack that has been packaged at the current moment, based on the first processing order corresponding to the first cigarette pack, when the first processing order corresponding to the first cigarette pack is greater than a preset order threshold.

[0127] The second determining module 630 is used to determine the end time of the sealing process of the second cigarette pack based on the start time corresponding to the first cigarette pack;

[0128] The association module 640 is used to associate and store the identification information, start time and end time of each second cigarette pack.

[0129] In one embodiment, the first determining module 620 is specifically used to: determine the order difference between the first processing order corresponding to the first cigarette pack and the preset order threshold; and take the cigarette pack with the same second processing order and order difference as the second cigarette pack.

[0130] In one embodiment, the association module 640 is specifically used to: determine the processing time for packaging the second cigarette pack based on the start time and end time; and associate and store the identification information of the second cigarette pack, the start time, the end time, and the processing time.

[0131] In one embodiment, the second cigarette pack is composed of at least two stacked individual cigarette packs; correspondingly, the association module 640 is specifically used to: obtain the identification information of each individual cigarette pack in the second cigarette pack; and for each individual cigarette pack, associate and store the identification information of the individual cigarette pack, the start time of the second cigarette pack, and the end time of the second cigarette pack.

[0132] Each module in the aforementioned cigarette pack information storage device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0133] Based on the same inventive concept, this application also provides a cigarette pack information traceability device for implementing the cigarette pack information traceability method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the cigarette pack information traceability device provided below can be found in the limitations of the cigarette pack information traceability method described above, and will not be repeated here.

[0134] In one exemplary embodiment, such as Figure 7 As shown, a cigarette pack information traceability device is provided, comprising: an acquisition module 710, a first determination module 720, a second determination module 730, and a third determination module 740, wherein:

[0135] The acquisition module 710 is used to acquire the target identification information of the target cigarette pack to be traced.

[0136] The first determining module 720 is used to determine the target start time and target end time corresponding to the target identifier information based on the target identifier information and the reference start time and reference end time associated with each reference identifier information.

[0137] The second determining module 730 is used to determine the processing time for sealing the target cigarette pack based on the target start time and the target end time.

[0138] The third determination module 740 is used to trace the information of the target cigarette pack based on the processing time.

[0139] Each module in the aforementioned cigarette pack information traceability device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0140] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8As shown, the computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores data such as identification information, start time, end time, and processing time. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for storing or tracing information about cigarette packs.

[0141] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0142] In one exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the cigarette pack information storage method provided in any of the above embodiments, or to implement the following steps:

[0143] Obtain the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time;

[0144] If the first processing order corresponding to the first cigarette pack is greater than the preset order threshold, the second cigarette pack that has been packaged at the current moment is determined according to the first processing order corresponding to the first cigarette pack.

[0145] The end time for sealing the second cigarette pack is determined based on the start time corresponding to the first cigarette pack.

[0146] For each second pack of cigarettes, the identification information, start time, and end time of the second pack are associated and stored.

[0147] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining the order difference between the first processing order corresponding to the first cigarette pack and a preset order threshold; and taking the cigarette pack with the same second processing order and order difference as the second cigarette pack.

[0148] In one embodiment, when the processor executes the computer program, it further performs the following steps: determining the processing time for packaging the second cigarette pack based on the start time and end time; and storing the identification information of the second cigarette pack, the start time, the end time, and the processing time in association.

[0149] In one embodiment, the second cigarette pack is composed of at least two stacked individual cigarette packs; when the processor executes the computer program, it also performs the following steps: obtaining the identification information of each individual cigarette pack in the second cigarette pack; and for each individual cigarette pack, associating and storing the identification information of the individual cigarette pack, the start time of the second cigarette pack, and the end time of the second cigarette pack.

[0150] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When executed by a processor, the computer program implements the steps of the cigarette pack information storage method provided in any of the above embodiments, or implements the following steps:

[0151] Obtain the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time;

[0152] If the first processing order corresponding to the first cigarette pack is greater than the preset order threshold, the second cigarette pack that has been packaged at the current moment is determined according to the first processing order corresponding to the first cigarette pack.

[0153] The end time for sealing the second cigarette pack is determined based on the start time corresponding to the first cigarette pack.

[0154] For each second pack of cigarettes, the identification information, start time, and end time of the second pack are associated and stored.

[0155] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0156] Determine the order difference between the first processing order corresponding to the first cigarette pack and the preset order threshold; take the cigarette pack with the same second processing order and order difference as the second cigarette pack.

[0157] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0158] Based on the start and end times, determine the processing time for sealing the second cigarette pack; associate and store the identification information of the second cigarette pack, the start time, the end time, and the processing time.

[0159] In one embodiment, the second cigarette pack is composed of at least two stacked individual cigarette packs; when the computer program is executed by the processor, it further performs the following steps: obtaining the identification information of each individual cigarette pack in the second cigarette pack; and for each individual cigarette pack, associating and storing the identification information of the individual cigarette pack, the start time of the second cigarette pack, and the end time of the second cigarette pack.

[0160] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the cigarette pack information storage method provided in any of the above embodiments, or implements the following steps:

[0161] Obtain the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time;

[0162] If the first processing order corresponding to the first cigarette pack is greater than the preset order threshold, the second cigarette pack that has been packaged at the current moment is determined according to the first processing order corresponding to the first cigarette pack.

[0163] The end time for sealing the second cigarette pack is determined based on the start time corresponding to the first cigarette pack.

[0164] For each second pack of cigarettes, the identification information, start time, and end time of the second pack are associated and stored.

[0165] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0166] Determine the order difference between the first processing order corresponding to the first cigarette pack and the preset order threshold; take the cigarette pack with the same second processing order and order difference as the second cigarette pack.

[0167] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0168] Based on the start and end times, determine the processing time for sealing the second cigarette pack; associate and store the identification information of the second cigarette pack, the start time, the end time, and the processing time.

[0169] In one embodiment, the second cigarette pack is composed of at least two stacked individual cigarette packs; when the computer program is executed by the processor, it further performs the following steps: obtaining the identification information of each individual cigarette pack in the second cigarette pack; and for each individual cigarette pack, associating and storing the identification information of the individual cigarette pack, the start time of the second cigarette pack, and the end time of the second cigarette pack.

[0170] In one exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the cigarette pack information traceability method provided in any of the above embodiments.

[0171] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the cigarette pack information tracing method provided in any of the above embodiments.

[0172] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the cigarette pack information traceability method provided in any of the above embodiments.

[0173] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0174] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0175] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for storing information in cigarette packs, characterized in that, The method includes: Obtain the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time; If the first processing order corresponding to the first cigarette pack is greater than the preset order threshold, the second cigarette pack that has been packaged at the current moment is determined according to the first processing order corresponding to the first cigarette pack. The end time for packaging the second cigarette pack is determined based on the start time corresponding to the first cigarette pack. For each second pack of cigarettes, the identification information, start time, and end time of the second pack are associated and stored.

2. The method according to claim 1, characterized in that, Based on the first processing order corresponding to the first cigarette pack, the second cigarette pack that has been packaged at the current moment is determined, including: Determine the order difference between the first processing order corresponding to the first cigarette pack and the preset order threshold; The cigarette packs whose corresponding second processing order is the same as the order difference are used as the second cigarette packs.

3. The method according to claim 1, characterized in that, The identification information, start time, and end time of the second cigarette pack are associated and stored, including: The processing time for packaging the second cigarette pack is determined based on the start time and the end time. The identification information, start time, end time, and processing duration of the second cigarette pack are associated and stored.

4. The method according to claim 1, characterized in that, The second cigarette pack is composed of at least two single cigarette packs stacked together; Accordingly, the identification information, start time, and end time of the second cigarette pack are associated and stored, including: Obtain the identification information of each individual cigarette pack in the second cigarette pack; For each individual pack of cigarettes, the identification information of the individual pack, the start time of the second pack, and the end time of the second pack are associated and stored.

5. A method for tracing information on cigarette packs, characterized in that, The method includes: Obtain the target identification information of the target cigarette pack to be traced; Based on the target identification information and the reference start time and reference end time associated with each reference identification information, determine the target start time and target end time corresponding to the target identification information; The processing time for packaging the target cigarette pack is determined based on the target start time and the target end time. Based on the processing time, information tracing is performed on the target cigarette pack.

6. A cigarette pack information traceability device, characterized in that, The device includes: The acquisition module is used to acquire the identification information of the first cigarette pack to be packaged at the current time, the first processing order for packaging the first cigarette pack, and the start time. The first determining module is used to determine the second cigarette pack that has been packaged at the current moment, based on the first processing order corresponding to the first cigarette pack, when the first processing order corresponding to the first cigarette pack is greater than a preset order threshold. The second determining module is used to determine the end time of the packaging process for the second cigarette pack based on the start time corresponding to the first cigarette pack; The association module is used to associate and store the identification information, start time, and end time of each second cigarette pack.

7. A cigarette pack information traceability device, characterized in that, The device includes: The acquisition module is used to acquire the target identification information of the target cigarette pack to be traced. The first determining module is used to determine the target start time and target end time corresponding to the target identifier information based on the target identifier information and the reference start time and reference end time associated with each reference identifier information. The second determining module is used to determine the processing time for packaging the target cigarette pack based on the target start time and the target end time. The third determining module is used to trace the information of the target cigarette pack based on the processing time.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4, or the steps of the method according to claim 5.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4, or the steps of the method according to claim 5.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4, or the steps of the method according to claim 5.