An abnormal piece of cigarette monitoring method, device, equipment, system and storage medium

By automatically monitoring the production data of the box-condition association system and using tokens and time parameters to request information, the problem of data anomalies caused by QR code association failures in tobacco production was solved, achieving rapid and low-cost anomaly detection.

CN120047166BActive Publication Date: 2025-11-11JILIN TOBACCO IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510148731.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-02-11
Publication Date
2025-11-11
Estimated Expiration
2045-02-11

AI Technical Summary

Technical Problem

In existing technologies, when the QR code association for boxed, cartoned, and packaged cigarettes fails during the tobacco production process, the frequency of data anomaly detection is low and the cost of manual monitoring is high, making it difficult to detect anomalies in a timely manner.

Method used

By acquiring a token and constructing a time parameter request, the system automatically monitors and parses production data packets, compares quantity changes to determine anomalies, and notifies staff via alert devices and emails.

Benefits of technology

It enables automatic and frequent monitoring of production data from the box condition association system, reducing labor costs, quickly identifying abnormal data, and avoiding delays caused by manual inspection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120047166B_ABST
    Figure CN120047166B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, device, system, and storage medium for monitoring abnormal cigarette packs. The method includes a token acquisition step for acquiring and saving a token; a first duration monitoring step for refreshing the token; a production data acquisition step for acquiring and saving the number of displayed reporting failures, the number of displayed association failures, and the number of displayed reporting failures; a second duration monitoring step for acquiring production data again at second preset intervals; when the currently saved number of displayed reporting failures is greater than the previously saved number of displayed reporting failures, and / or the currently saved number of displayed association failures is greater than the previously saved number of displayed association failures, a first data anomaly alert is sent to an alerting device; when the currently saved number of displayed reporting failures is greater than a preset threshold, a second data anomaly alert is sent to the alerting device. This application realizes automatic monitoring of abnormal data in a box condition association system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of tobacco production, and more specifically, to a method, apparatus, equipment, system, and storage medium for monitoring abnormal cigarette shipments. Background Technology

[0002] In the tobacco production process, a box-condition association system is used to associate QR codes on cigarette packs, cartons, and cases, and then report this information to the State Tobacco Monopoly Administration's QR code management platform. In actual production, there are instances where the association between these QR codes fails, or where reporting of the association information to the State Tobacco Monopoly Administration's QR code management platform fails or is backlogged, all of which lead to data anomalies in the box-condition association system. Currently, staff monitor the box-condition association system approximately every half hour to check for data anomalies. This method has a low monitoring frequency and makes it difficult to detect anomalies promptly. Reducing the monitoring frequency would increase the workload and labor costs for staff. Summary of the Invention

[0003] To address at least one aspect of the above problems, the present invention provides a method, apparatus, device, system, and storage medium for monitoring abnormal smoke.

[0004] Firstly, this application provides a method for monitoring abnormal cigarette shipments, comprising the following steps: Obtaining a token (a data structure representing identity or permissions): sending a request to the box condition association system to obtain a token; receiving a login data packet from the box condition association system; sending the login data packet to the analysis software; receiving and saving the token from the analysis software; First-duration monitoring: after receiving the token, timestamp the token and start timing; when the timing reaches a first preset duration, return to the token acquisition step and refresh the token; Obtaining production data: obtaining the current time and converting it into a time parameter; constructing a request message including the time parameter and the token and sending it to the box condition association system; receiving production data packets from the box condition association system; parsing the production data packets to obtain the number of reported failures, the number of association failures, and... Display and save the reported quantity; Second duration monitoring step: Start timing when sending request information including time parameters and token to the box condition association system. When the timing duration reaches the second preset duration, return to the production data acquisition step; Anomaly judgment step: Compare the currently saved number of failed reported displays with the previously saved number of failed reported displays; Compare the currently saved number of failed displayed association displays with the previously saved number of failed displayed association displays; Compare the currently saved number of reported displays with a preset threshold; When the currently saved number of failed reported displays is greater than the previously saved number of failed reported displays, and / or the currently saved number of failed displayed association displays is greater than the previously saved number of failed displayed association displays, send a first data anomaly alert to the alert device; When the currently saved number of reported displays is greater than the preset threshold, send a second data anomaly alert to the alert device.

[0005] Preferably, the anomaly judgment step further includes: when the number of currently saved display reporting failures is greater than the number of previously saved display reporting failures, and / or the number of currently saved display association failures is greater than the number of previously saved display association failures, a first data anomaly alert message is sent to the email address of a second designated staff member via the email address of a first designated staff member; when the number of currently saved display reports is greater than a preset threshold, a second data anomaly alert message is sent to the email address of a second designated staff member via the email address of a first designated staff member.

[0006] Preferably, in the anomaly judgment step, sending the first data anomaly reminder information to the reminder device includes sending the first data anomaly reminder information to the display screen for a pop-up notification and sending the first data anomaly reminder information to the alarm device for an alarm; sending the second data anomaly reminder information to the reminder device includes sending the second data anomaly reminder information to the display screen for a pop-up notification.

[0007] Preferably, the second preset duration is in the range of 0.5 to 5 minutes.

[0008] Secondly, this application provides a monitoring device for abnormal cigarette cases. The device includes: a token acquisition module configured to send a request for acquiring a token to a box condition association system; receive a login data packet from the box condition association system; send the login data packet to analysis software; receive and save the token from the analysis software; a first duration monitoring module configured to timestamp the token and start timing after receiving the token, and return to the token acquisition step and refresh the token when the timing duration reaches a first preset duration; a production data acquisition module configured to acquire the current time and convert it into a time parameter; construct a request message including the time parameter and the token and send it to the box condition association system; receive a production data packet from the box condition association system; parse the production data packet to acquire and display the number of reported failures, the number of reported association failures, and the number of reported cases in progress. The system performs the following checks: First, it stores the number of reported failures. Second, it monitors the duration of data transmission. Third, it monitors the duration of data transmission. Fourth, it monitors the duration of data transmission. Fifth, it monitors the duration of data transmission. Sixth, it monitors the duration of data transmission. Seventh, it monitors the duration of data transmission. Eighth, it monitors the duration of data transmission. Ninth ...

[0009] Thirdly, this application provides a monitoring device for abnormal cigarette smoke, the device including a memory and a processor, the memory storing an abnormal monitoring program, and when the abnormal monitoring program is executed by the processor, implementing one of the abnormal cigarette smoke monitoring methods described above.

[0010] Preferably, the memory also stores the computer program for the box condition association system, the computer program for the State Administration of Radio and Television's QR code management platform, the computer program for the analysis software, and the computer program for the email.

[0011] Fourthly, this application provides a monitoring system for abnormal cigarettes, including the aforementioned monitoring device and reminder device, wherein the monitoring device and the reminder device are communicatively connected; the reminder device is used to receive first data abnormality reminder information and second data abnormality reminder information from the monitoring device, and to issue a reminder based on the first data abnormality reminder information and the second data abnormality reminder information.

[0012] Preferably, the reminder device includes: a display screen and an alarm device, both of which are communicatively connected to the monitoring equipment; the display screen is used to receive first data anomaly reminder information and second data anomaly reminder information from the monitoring equipment, and to display pop-up prompts based on the first data anomaly reminder information and the second data anomaly reminder information; the alarm device is used to receive the first data anomaly reminder information from the monitoring equipment, and to issue an alarm based on the first data anomaly reminder information.

[0013] Fifthly, this application provides a storage medium storing computer-readable instructions that, when executed by a processor, perform the method described in any one of the above descriptions.

[0014] The present invention provides a method, apparatus, device, system, and storage medium for monitoring abnormal smoke, which has the following beneficial effects:

[0015] This application automatically retrieves production data packets from the box condition association system according to a set second preset duration using time parameters and a token. It then parses the data packets to identify the number of reported failures, the number of reported association failures, and the number of reported data packets. Based on set abnormal data judgment conditions—namely, the number of currently saved reported failures being greater than the number of previously saved reported failures, the number of currently saved reported association failures being greater than the number of previously saved reported association failures, and the number of currently saved reported data packets being greater than preset thresholds—abnormal data is identified and an alert is issued. This achieves comprehensive and automatic monitoring of production data in the box condition association system. Furthermore, this application allows for a shorter second preset duration, significantly increasing the monitoring frequency with minimal cost increase. It also avoids situations where errors or omissions by staff lead to prolonged detection of abnormal data, facilitating rapid discovery of abnormal data in the box condition association system. Attached Figure Description

[0016] To better understand the above and other objects, features, advantages, and functions of the present invention, reference can be made to the embodiments shown in the accompanying drawings. The same reference numerals in the drawings refer to the same parts. Those skilled in the art should understand that the drawings are intended to schematically illustrate preferred embodiments of the invention and do not limit the scope of the invention in any way; the parts in the drawings are not drawn to scale.

[0017] Figure 1A flowchart of a method for monitoring abnormal smoke according to an embodiment of the present invention is shown;

[0018] Figure 2 A frame diagram of an abnormal smoke monitoring device according to an embodiment of the present invention is shown;

[0019] Figure 3 A framework diagram of an abnormal smoke monitoring system according to an embodiment of the present invention is shown.

[0020] Explanation of reference numerals in the attached figures:

[0021] 101. Token Acquisition Module; 102. First Duration Monitoring Module; 103. Production Data Acquisition Module; 104. Second Duration Monitoring Module; 105. Anomaly Detection Module; 2. Monitoring Equipment; 21. Memory; 211. Anomaly Monitoring Program; 212. Box Condition Association System; 213. National Bureau of Statistics QR Code Management Platform; 214. Analysis Software; 215. Email; 22. Processor; 3. Display Screen; 4. Alarm Device. Detailed Implementation

[0022] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0023] The term "comprising" and its variations as used herein signify open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "at least partially based on". The terms "one example embodiment" and "one embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc., may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0024] To at least partially address one or more of the aforementioned problems and other potential issues, embodiments of this disclosure propose a method for monitoring abnormal smoke, such as... Figure 1 As shown, it includes the following steps:

[0025] The steps for obtaining a token are as follows: send a request to the box condition association system to obtain a token; receive a login data packet from the box condition association system; send the login data packet to the analysis software; receive and save the token from the analysis software; preferably, in this application, the token is obtained by exchanging an appid for a query token, and the analysis software uses Fiddler software to analyze the login data packet to obtain the token.

[0026] The first duration monitoring step: After receiving the token, timestamp the token and start timing. When the timing reaches the first preset duration, return to the token acquisition step and refresh the token, thus establishing the token expiration mechanism.

[0027] The steps for obtaining production data are as follows: Obtain the current time and convert it into a time parameter. Preferably, the datetime function is used to obtain the current date. The rule for converting the current date into a time parameter is: convert the current date into the format "%Y-%m-%d"; construct request information including time parameters and token and send it to the box condition association system; receive production data packets from the box condition association system; parse the production data packets to obtain and save the number of reported failures, the number of association failures, and the number of reports in progress.

[0028] The second duration monitoring step: When sending request information including time parameters and token to the box condition association system, the timing starts. When the timing duration reaches the second preset duration, the process returns to the production data acquisition step to realize the setting of the monitoring frequency. Preferably, the range of the second preset duration is 0.5 to 5 minutes. For example, the second preset duration is set to 1 minute, that is, the production data acquisition step is repeated once every 1 minute.

[0029] Anomaly detection steps: Compare the number of currently saved display reporting failures with the number of previously saved display reporting failures; compare the number of currently saved display association failures with the number of previously saved display association failures; compare the number of currently saved display reports with the preset threshold.

[0030] When the number of currently saved display reporting failures is greater than the number of previously saved display reporting failures, and / or the number of currently saved display association failures is greater than the number of previously saved display association failures, a first data anomaly alert is sent to the alerting device. Specifically, sending the first data anomaly alert to the alerting device includes sending the first data anomaly alert to the display screen for a pop-up notification, such as displaying a pop-up message on the display screen saying "There are failed associations for cigarettes, please handle them promptly" or "There are failed reports for cigarettes, please handle them promptly," and sending the first data anomaly alert to the alarm device for an alarm. More specifically, the alarm device is an alarm light, and sending the first data anomaly alert to the alarm light causes the alarm light to flash. Preferably, when the number of currently saved display reporting failures is greater than the number of previously saved display reporting failures, and / or the number of currently saved display association failures is greater than the number of previously saved display association failures, the first data anomaly alert is also sent to the email address of a second designated staff member via email in the form of an email according to a first fixed template through the email address of a first designated staff member. This realizes multiple alert methods when abnormal data is detected.

[0031] When the number of currently saved reported data exceeds a preset threshold, a second data anomaly alert is sent to the alerting device. Specifically, sending the second data anomaly alert to the alerting device includes sending the second data anomaly alert to the display screen for a pop-up notification, such as displaying a pop-up message on the display screen saying "Report backlog has occurred, please handle it promptly." Preferably, when the number of currently saved reported data exceeds the preset threshold, the second data anomaly alert is also sent to the email address of the second designated staff member in the form of an email according to the second fixed template.

[0032] This application also provides a device for monitoring abnormal smoke, such as... Figure 2As shown, the device includes: a token acquisition module 101, configured to send a request for token acquisition to the box condition association system; receive login data packets from the box condition association system; send login data packets to the analysis software; receive and save the token from the analysis software; a first duration monitoring module 102, configured to timestamp the token and start timing after receiving the token, and return to the token acquisition step and refresh the token when the timing duration reaches a first preset duration; a production data acquisition module 103, configured to acquire the current time and convert it into a time parameter; construct a request message including the time parameter and the token and send it to the box condition association system; receive production data packets from the box condition association system; parse the production data packets to acquire and save the number of reported failures, the number of association failures, and the number of reports in progress; and a second... The duration monitoring module 104 is configured to start timing when sending request information including time parameters and token to the box condition association system, and return to the production data acquisition step when the timing duration reaches a second preset duration; the anomaly judgment module 105 is configured to compare the currently saved number of display reporting failures with the previously saved number of display reporting failures; compare the currently saved number of display association failures with the previously saved number of display association failures; compare the currently saved number of display reports with a preset threshold; when the currently saved number of display reporting failures is greater than the previously saved number of display reporting failures, and / or the currently saved number of display association failures is greater than the previously saved number of display association failures, a first data anomaly alert message is sent to the alerting device; when the currently saved number of display reports is greater than the preset threshold, a second data anomaly alert message is sent to the alerting device.

[0033] This application also provides a device for monitoring abnormal cigarette smoke, the device including a memory 21 and a processor 22, wherein the memory 21 stores an abnormal monitoring program 211, and when the abnormal monitoring program 211 is executed by the processor 22, it implements the method for monitoring abnormal cigarette smoke as described above. Preferably, as Figure 3 As shown, the memory 21 also stores the computer program of the box condition association system 212, the computer program of the State Administration of Radio and Television QR code management platform 213, the computer program of the analysis software 214, and the computer program of the mailbox 215. The anomaly monitoring program 211 interacts with the computer program of the box condition association system 212, the computer program of the analysis software 214, and the computer program of the mailbox 215 respectively.

[0034] This application also provides a monitoring system for abnormal smoke, such as Figure 3As shown, the device includes a monitoring device 2 for detecting abnormal cigarette smoke, as described above, and an alerting device. The monitoring device 2 and the alerting device are communicatively connected. The alerting device receives first and second data anomaly alert information from the monitoring device 2 and issues an alert based on the first and second data anomaly alert information. Preferably, the alerting device includes a display screen 3 and an alarm device 4, both of which are communicatively connected to the monitoring device 2. The display screen 3 receives the first and second data anomaly alert information from the monitoring device 2 and displays a pop-up notification based on the first and second data anomaly alert information. The alarm device 4 receives the first data anomaly alert information from the monitoring device 2 and issues an alarm based on the first data anomaly alert information. Specifically, the alarm device is an alarm light, which receives the first data anomaly alert information from the monitoring device 2 and issues an alarm based on the first data anomaly alert information.

[0035] This application also provides a storage medium storing computer-readable instructions that, when executed by a processor, perform the method described in any one of the above descriptions.

[0036] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical application, or technical improvements to the embodiments in the market, or to enable others skilled in the art to understand this document.

Claims

1. A method for monitoring abnormal smoke, characterized in that: Includes the following steps: Steps to obtain a token: Send a request to the box condition association system to obtain a token; Receive login data packets from the box condition association system; Send login data packets to the analysis software; Receive and save the token from the analytics software; First duration monitoring step: After receiving the token, timestamp the token and start timing. When the timing reaches the first preset duration, return to the token acquisition step and refresh the token. Steps to obtain production data: Obtain the current time and convert it into a time parameter; Construct a request message including the time parameter and token and send it to the box condition association system; Receive production data packets from the box condition association system; parse the production data packets to obtain and save the number of reported failures, the number of association failures, and the number of reports in progress. The second duration monitoring step: Start timing when sending request information including time parameters and token to the box condition association system. When the timing duration reaches the second preset duration, return to the production data acquisition step. Anomaly detection steps: Compare the currently saved number of failed display reports with the previously saved number of failed display reports; compare the currently saved number of failed display associations with the previously saved number of failed display associations; compare the currently saved number of failed display reports with a preset threshold; when the currently saved number of failed display reports is greater than the previously saved number of failed display reports, and / or the currently saved number of failed display associations is greater than the previously saved number of failed display associations, send a first data anomaly alert to the alerting device; when the currently saved number of failed display reports is greater than the preset threshold, send a second data anomaly alert to the alerting device.

2. The method for monitoring abnormal smoke according to claim 1, characterized in that: The anomaly judgment step further includes: when the number of currently saved display reporting failures is greater than the number of previously saved display reporting failures, and / or the number of currently saved display association failures is greater than the number of previously saved display association failures, a first data anomaly alert message is sent to the email address of a second designated staff member via the email address of a first designated staff member; when the number of currently saved display reports is greater than a preset threshold, a second data anomaly alert message is sent to the email address of a second designated staff member via the email address of a first designated staff member.

3. The method for monitoring abnormal smoke according to claim 1, characterized in that: The abnormality judgment step of sending the first data abnormality reminder information to the reminder device includes sending the first data abnormality reminder information to the display screen for pop-up prompt and sending the first data abnormality reminder information to the alarm device for alarm. Sending a second data anomaly alert to the alerting device includes sending the second data anomaly alert to the display screen for a pop-up notification.

4. The method for monitoring abnormal smoke according to claim 1, characterized in that: The second preset duration ranges from 0.5 to 5 minutes.

5. A device for monitoring abnormal smoke, characterized in that: The device includes: The token acquisition module (101) is configured to send a request for obtaining a token to the box condition association system; receive login data packets from the box condition association system; send login data packets to the analysis software; and receive and save the token from the analysis software. The first duration monitoring module (102) is configured to timestamp the token and start timing after receiving the token. When the timing duration reaches the first preset duration, it returns to the token acquisition step and refreshes the token. The production data acquisition module (103) is configured to acquire the current time and convert it into a time parameter; construct a request message including the time parameter and the token and send it to the box condition association system; receive production data packets from the box condition association system; parse the production data packets to obtain and save the number of reported failures, the number of association failures, and the number of reports in progress. The second duration monitoring module (104) is configured to start timing when sending request information including time parameters and token to the box condition association system, and return to the production data acquisition step when the timing duration reaches the second preset duration. The anomaly detection module (105) is configured to compare the number of currently saved display reporting failures with the number of previously saved display reporting failures; compare the number of currently saved display association failures with the number of previously saved display association failures; compare the number of currently saved display reports with a preset threshold; when the number of currently saved display reporting failures is greater than the number of previously saved display reporting failures, and / or the number of currently saved display association failures is greater than the number of previously saved display association failures, a first data anomaly alert message is sent to the alerting device; when the number of currently saved display reports is greater than the preset threshold, a second data anomaly alert message is sent to the alerting device.

6. A device for monitoring abnormal smoke, characterized in that: The device includes a memory (21) and a processor (22), wherein the memory stores an anomaly monitoring program (211), which, when executed by the processor (22), implements a method for monitoring abnormal cigarette smoke according to any one of claims 1 to 4.

7. The monitoring device for abnormal smoke according to claim 6, characterized in that: The memory (21) also stores the computer program of the box condition association system (212), the computer program of the national bureau QR code management platform (213), the computer program of the analysis software (214), and the computer program of the email (215).

8. A monitoring system for abnormal cigarette smoke, characterized in that: The device includes a monitoring device (2) for abnormal cigarette smoke as described in claim 6 or 7 and an alerting device, wherein the monitoring device (2) is communicatively connected to the alerting device; the alerting device is used to receive a first data abnormality alert information and a second data abnormality alert information from the monitoring device (2), and to issue an alert based on the first data abnormality alert information and the second data abnormality alert information.

9. The abnormal smoke monitoring system according to claim 8, characterized in that: The reminder device includes a display screen (3) and an alarm device (4), both of which are communicatively connected to the monitoring device (2). The display screen (3) is used to receive first data anomaly reminder information and second data anomaly reminder information from the monitoring device (2), and to provide pop-up reminders based on the first data anomaly reminder information and the second data anomaly reminder information. The alarm device (4) is used to receive first data anomaly reminder information from the monitoring device, and to issue an alarm based on the first data anomaly reminder information.

10. A storage medium, characterized in that: It stores computer-readable instructions that, when executed by a processor, perform the method according to any one of claims 1-4.

Citation Information

Patent Citations

  • Cigarette carton code early warning system

    CN116957712A

  • Methods and systems for generating address score information

    US20210110343A1