Cigarette waste treatment system and electronic scale terminal
The cigarette waste processing system, which integrates a weighing module, a touch screen, a processor module, and a coding machine, solves the problem of low waste processing efficiency in cigarette production, realizes automated data collection and management, and improves processing efficiency and data accuracy.
Patent Information
- Application Number
- CN202511496848.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-20
- Publication Date
- 2026-01-27
AI Technical Summary
Waste disposal efficiency is low in the cigarette production process. Traditional methods rely on manual operation, resulting in large data errors, fragmented information, and the inability to achieve full-process traceability. Furthermore, existing equipment and systems are difficult to adapt to the complex process and space constraints of cigarette production.
A cigarette waste treatment system is provided, including an electronic scale terminal, a handheld barcode scanner, and a central server. By integrating a weighing module, a touch screen, a processor module, an embedded coding machine, and rollers, the system realizes automatic weighing, data acquisition, and barcode printing of waste materials. Wireless communication and encryption algorithms ensure the integrity and security of data transmission and management.
It has achieved automation of cigarette waste treatment and integration of data management, which has improved processing efficiency, reduced manual operation time, lowered data error rate, and ensured data accuracy and traceability.
Smart Images

Figure CN121404599A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of cigarette production technology, and in particular to a cigarette waste treatment system and an electronic scale terminal. Background Technology
[0002] In the cigarette production process, waste is generated at multiple stages and is of complex types, encompassing cigarette residue, cigarette waste, and tobacco processing waste. Traditional waste disposal methods mainly rely on manual operation. Due to limited space in the workshop, weighing and data entry often cannot be completed in the same location in traditional waste disposal processes. Operators must weigh the waste in the weighing area and then move to a dedicated data entry station with recording tools to fill in the information. The entire process covers waste weighing, data recording, and subsequent processing.
[0003] Therefore, traditional methods of cigarette waste disposal suffer from low processing efficiency. Summary of the Invention
[0004] Therefore, it is necessary to provide a cigarette waste treatment system and electronic scale terminal that can improve the efficiency of cigarette waste treatment in response to the above-mentioned technical problems.
[0005] In a first aspect, this application provides a cigarette waste treatment system, comprising:
[0006] An electronic weighing terminal, deployed at least one waste generation station in a cigarette manufacturing workshop, includes a weighing module, a touch screen, a processor module, an embedded coding machine, and rollers. The weighing module obtains the initial weight of the waste from the cigarette manufacturing workshop, the touch screen obtains the attribute data of the waste, the processor module generates a barcode for the waste, and the embedded coding machine prints the barcode. The attribute data includes at least one of the following: waste type, unit number, and production shift. The barcode is affixed to the packaging of the packaged waste.
[0007] A handheld barcode scanner is used to scan the barcode of the packaged waste material to obtain the attribute data and initial weight of the waste material.
[0008] The central server is used to receive the attribute data of each waste material and the initial weight sent by the electronic scale terminal, and to store the attribute data of each waste material and the initial weight. It is also used to receive the re-weighing request for the waste material from the handheld barcode scanner.
[0009] In one embodiment, the weighing module is further configured to:
[0010] In cases where there is a need to reweigh any of the aforementioned waste materials, the target waste material to be reweighed is weighed to obtain the reweighed weight of the target waste material.
[0011] In one embodiment, the electronic scale terminal is also connected to the handheld barcode scanner and is further configured to receive the initial weight of the target waste sent by the handheld barcode scanner through the processor module when there is a need for reweighing any of the waste materials, and to verify the initial weight based on the reweighed weight.
[0012] In one embodiment, the processor module is further configured to:
[0013] The initial weight is verified based on the difference between the reweighed weight and the initial weight, as well as a weight error threshold; the weight error threshold is determined based on a preset initial threshold and a dynamic coefficient corresponding to the waste type of the waste.
[0014] If the difference is greater than the weight error threshold, the initial weight of the target waste is updated based on the reweighed weight, and the reweighed weight is sent to the central server.
[0015] In one embodiment, the electronic scale terminal further includes:
[0016] An alarm module, connected to the processor module, is used to trigger an alarm according to a preset alarm method in response to an alarm command from the processor module when the difference is greater than the weight error threshold.
[0017] In one embodiment, the central server is further configured to:
[0018] The initial weight and the attribute data are synchronously stored in the memory cache and persistent memory;
[0019] The least recently used eviction algorithm is used to update the storage records of the initial weight and the attribute data in the memory cache.
[0020] Secondly, this application also provides an electronic scale terminal, comprising:
[0021] A weighing module is used to weigh waste materials from the cigarette workshop to obtain the initial weight of the waste materials.
[0022] A touchscreen, communicatively connected to the weighing module, is used to display the initial weight and a blank waste property table, and to obtain the property data of the waste in response to a trigger operation on the waste property table.
[0023] The processor module is communicatively connected to the weighing module and the touch screen, respectively, and is used to acquire the initial weight and the attribute data, and generate a barcode for the waste material based on the initial weight and the attribute data;
[0024] An embedded coding machine, communicatively connected to the processor module, is used to print barcodes on the waste material in response to printing instructions from the processor module.
[0025] Rollers, mounted on the main frame of the electronic scale terminal, are used to move the electronic scale terminal within the cigarette workshop.
[0026] In one embodiment, the touchscreen is communicatively connected to the weighing module for displaying the initial weight and a blank waste property table, and for obtaining the property data of the waste in response to a trigger operation on the waste property table.
[0027] The waste attribute table includes a type component, a shift component, and a unit number component.
[0028] In one embodiment, the processor module is further configured to:
[0029] In response to trigger operations for the type component and the shift component respectively, the waste type and the production shift to which the waste belongs are obtained;
[0030] Based on the type of waste and the production shift to which it belongs, query the work order data obtained in advance from the central server to obtain the unit number to which the waste belongs, and fill the unit number to which it belongs into the unit number component;
[0031] or,
[0032] In response to trigger operations for the type component, the shift component, and the unit number component, the waste type, the production shift to which the waste belongs, and the unit number of the waste are obtained.
[0033] In one embodiment, the processor module is further configured to:
[0034] Obtain the timestamp corresponding to the current time, and convert the timestamp, the initial weight, and the attribute data into a structured string in a preset format;
[0035] The structured string is encrypted using a hash algorithm to obtain encrypted data;
[0036] Based on the encrypted data, a barcode is generated for the waste.
[0037] The aforementioned cigarette waste processing system and electronic scale terminal include an electronic scale terminal, a handheld barcode scanner, and a central server. The electronic scale terminal is deployed at at least one waste generation station in the cigarette workshop and includes a weighing module, a touchscreen, a processor module, an embedded barcode printer, and rollers. The weighing module obtains the initial weight of the waste from the cigarette workshop, the touchscreen obtains the attribute data of the waste, the processor module generates a barcode for the waste, and the embedded barcode printer prints the barcode. The attribute data includes at least one of waste type, unit number, and production shift. The barcode is printed on the packaged waste. The handheld barcode scanner scans the barcode on the packaged waste to obtain the... The central server receives the attribute data and initial weight of each waste material from the electronic scale terminal, stores the attribute data and initial weight of each waste material, and also receives re-weighing requests for the waste material from the handheld barcode scanner. This enables the direct acquisition of waste material weight and attribute data in the cigarette workshop, and the management of waste material data using barcodes, along with remote storage management by the central server. This achieves integrated operation of weighing, barcode scanning, and data uploading of waste material in the cigarette workshop, avoiding manual recording and management of waste material data, thereby improving the efficiency of cigarette waste material processing. Attached Figure Description
[0038] 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.
[0039] Figure 1 This is a structural block diagram of a cigarette waste treatment system in one embodiment;
[0040] Figure 2 This is a structural block diagram of a cigarette waste treatment system in another embodiment;
[0041] Figure 3 This is a structural block diagram of a cigarette waste treatment system in another embodiment;
[0042] Figure 4 This is a structural block diagram of an electronic scale terminal in one embodiment;
[0043] Figure 5 This is a schematic diagram of the software architecture of an electronic scale terminal in one embodiment;
[0044] Figure 6This is a schematic flowchart of a cigarette waste treatment method in one embodiment. Detailed Implementation
[0045] 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.
[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
[0047] Spatial relation terms such as “below,” “under,” “below,” “under,” “above,” “above,” etc., are used herein to describe the relationship between one element or feature shown in the figure and other elements or features. It should be understood that, in addition to the orientation shown in the figure, spatial relation terms also include different orientations of the device in use and operation. For example, if the device in the figure is flipped, the element or feature described as “below,” “under,” or “below” will be oriented “above” the other element or feature. Therefore, the exemplary terms “below” and “under” can include both above and below orientations. Furthermore, the device may also include other orientations (e.g., rotated 90 degrees or other orientations), and the spatial descriptive terms used herein will be interpreted accordingly.
[0048] It should be noted that when one element is considered to be "connected" to another element, it can be directly connected to the other element or connected to the other element through an intermediary element. Furthermore, in the following embodiments, "connection" should be understood as "electrical connection," "communication connection," etc., if there is transmission of electrical signals or data between the connected objects.
[0049] When used herein, the singular forms of “a,” “an,” and “the” may also include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising,” “including,” or “having,” etc., specify the presence of the stated feature, whole, step, operation, component, part, or combination thereof, but do not preclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof.
[0050] As described in the background section, the existing methods for handling cigarette waste suffer from low efficiency. The inventors discovered that this is due to the numerous and complex waste generation stages in the cigarette production process, encompassing cigarette residue, cigarette waste, and tobacco processing waste. Traditional waste handling methods rely heavily on manual operation, which has many drawbacks from waste weighing and data recording to subsequent processing. Manual weighing and recording are prone to data errors, and fragmented information makes full-process traceability difficult. Data from each stage lacks effective integration and is disconnected from the production management system, failing to form a closed-loop management system and severely hindering the improvement of production efficiency and quality control in cigarette companies. Furthermore, due to limited operational space in the workshop, weighing and data entry in traditional waste handling processes often cannot be completed in the same location. Operators must weigh the waste in the weighing area and then move to a dedicated data entry station with recording tools to fill in the information. This not only increases operational time costs, but frequent personnel movement and material handling also easily lead to data recording errors or omissions, further reducing processing efficiency. Furthermore, existing electronic scale software on the market is mostly general-purpose products with limited functionality, failing to meet the personalized and refined management needs of the cigarette industry's waste disposal. Enterprises face problems such as low efficiency, high costs, and unstable quality in production management. In recent years, industrial intelligent technology has developed rapidly and is widely used in the manufacturing sector. Regarding waste disposal, some industries have introduced automated weighing equipment and information management systems to achieve automatic data collection and preliminary transmission, but these often focus on single waste types or stages, lacking systematic integration. In the cigarette industry, although some companies have attempted to apply IoT technology to waste management, the software systems largely rely on external suppliers, resulting in low customization, poor system compatibility, and data security risks, making it difficult to adapt to the complex processes and management needs of cigarette production. At the same time, existing technologies have failed to effectively solve the operational difficulties caused by workshop space constraints. Even with automated equipment, the spatial separation of weighing and information entry processes has not been fully considered, resulting in data collection delays and inefficient information transmission. In key areas such as data verification, full-process traceability, and multi-system collaboration, existing technologies still have shortcomings and cannot meet the urgent needs of cigarette companies for intelligent and autonomous production management. There is an urgent need for a set of innovative, autonomous, and practical cigarette waste treatment technology solutions.
[0051] For the reasons mentioned above, this application provides a cigarette waste treatment system and an electronic scale terminal, which aim to improve the efficiency of cigarette waste treatment.
[0052] In view of the problems existing in the prior art, before describing the embodiments of this application in detail, the technical terms involved in the embodiments of this application are explained as follows:
[0053] Electronic scale terminal: An intelligent device integrating a weighing module, embedded coding machine, processor module, touch screen and rollers. It can automatically weigh and realize wireless data transmission, and is used for the collection and information processing of waste material weight in the workshop.
[0054] Batch Management System: The core data processing equipment deployed in the enterprise's computer room is responsible for storing production work order data, receiving waste information uploaded by terminals, and issuing configuration parameters. It is the central node for realizing closed-loop management of the entire process data.
[0055] Handheld PDA: Personal Digital Assistant, an industrial-grade handheld terminal device with barcode scanning and wireless communication functions, used for mobile weighing verification, data query and command interaction by operators.
[0056] Flutter: A cross-platform UI framework developed by Google that supports coding once and running on multiple devices. In this article, it is used to develop the front-end interactive interface of a smart electronic scale terminal to achieve cross-device adaptation.
[0057] Kotlin: A JVM-based programming language used in this paper to develop the device driver layer and business logic layer, enabling deep interaction with hardware and data processing.
[0058] ERP: Enterprise Resource Planning, is a system used for the management of the entire process of enterprise production, procurement, finance, etc. In this article, it refers to the existing production management system of an enterprise integrated with the waste disposal system.
[0059] MES: Manufacturing Execution System, which focuses on the management of the workshop production process. In this article, it refers to the production site management system that interfaces with the batch management server.
[0060] SHA-256 encryption algorithm: SecureHashAlgorithm256-bit, a cryptographic hash function that generates a 256-bit encrypted hash value. In this paper, it is used to generate encrypted traceability information for waste barcodes to ensure that the data cannot be tampered with.
[0061] Salt value: A randomly generated interference value that is combined with the original data for encryption to enhance the security of hash encryption. In this article, it specifically refers to a random value that is the unique identifier of the device and is used to improve the encryption strength of the barcode.
[0062] Provider framework: A state management framework in the Flutter ecosystem. In this article, it is used to listen to the weight data stream from the Kotlin layer to achieve real-time synchronization between the front-end interface and the back-end data.
[0063] WiFi / 4G / Bluetooth: Wireless communication technologies; WiFi is used for the main communication link between the smart electronic scale and the server, 4G is used for remote data transmission of the handheld PDA, and Bluetooth is used for short-range emergency connection between the terminal and the PDA, together solving the communication obstacles caused by the space constraints in the workshop.
[0064] Traceability Chain: By linking the entire process data records of waste from generation, weighing, coding, reweighing to archiving through barcode information, a reversible information chain is formed to achieve full traceability of the waste treatment process.
[0065] Threshold: The allowable error range for weight comparison. When the difference between the re-weighed weight and the original weighed weight exceeds this range, the system will automatically trigger an alarm to ensure data accuracy.
[0066] In one exemplary embodiment, such as Figure 1 As shown, a cigarette waste treatment system is provided, including an electronic scale terminal 10, a handheld barcode scanner 11, and a central server 12.
[0067] The electronic scale terminal 10 is deployed at at least one waste generation station in the cigarette workshop. It includes a weighing module 101, a touch screen 102, a processor module 103, an embedded coding machine 104, and rollers 105. The weighing module 101 obtains the initial weight of the waste in the cigarette workshop, the touch screen 102 obtains the attribute data of the waste, the processor module 103 generates a barcode for the waste, and the embedded coding machine 104 prints the barcode. The attribute data includes at least one of the following: waste type, unit number, and production shift. The barcode is printed on the packaging of the packaged waste. A handheld barcode scanner 11 is used to scan the barcode of the packaged waste to obtain the attribute data and initial weight of the waste. A central server 12 is used to receive and store the attribute data and initial weight of each waste sent by the electronic scale terminal 10, and is also used to receive re-weighing requests for the waste from the handheld barcode scanner 11.
[0068] It is understandable that the electronic scale terminal 10 is deployed at the waste generation station in the cigarette workshop, such as next to the cigarette packaging machine or in the testing room. In addition, for waste generation stations with movable handover, the electronic scale terminal 10 can be simplified by using an industrial-grade weighing sensor + embedded microcontroller (such as the STM32 series) combination, which can replace the existing integrated terminal and realize interaction through an external display screen, thereby reducing hardware costs. The handheld barcode scanner 11 can be a handheld PDA (Personal Digital Assistant), an industrial-grade handheld terminal device that can use the Android system and has a built-in barcode scanning engine (scanning speed ≥200 times / second). It includes a local area network communication module and a long-lasting battery, and has barcode scanning and wireless communication functions. It is used for mobile re-weighing verification, data query, and command interaction by operators and is carried by staff in the cigarette workshop. In addition, the handheld barcode scanner 11 can also achieve the same functions using a fixed barcode scanning station, fixed barcode scanning equipment, or a smartphone with a customized application installed in the workshop. When using a smartphone, it is necessary to ensure signal coverage in the workshop, and the application needs to pass enterprise security certification. The smartphone can replace the professional handheld barcode scanner 11 via Bluetooth external industrial-grade barcode scanning module and communicate via local area network. When using a fixed barcode scanning device, the barcode scanning module can be integrated into the electronic scale terminal 10 to reduce system complexity. The central server 12 is deployed in the data center server room as the core node for data storage and management. It can be an industrial-grade server (CPU central processing unit can be: Intel(R) Core(TM) 2 Duo, memory 32GB, hard disk 1TB), deployed on the hyper-converged platform of the data center server room, connected to the enterprise's internal LAN, storing production work order data, waste material weighing records, barcode information, etc., and providing API (Application Programming Interface) interface for terminal calls.
[0069] It should be noted that the electronic scale terminal 10 communicates with the central server 12 via a wireless local area network, and the handheld barcode scanner 11 also communicates with the central server 12 via a wireless local area network. The communication connection between the handheld barcode scanner 11 and the central server 12 supports offline data caching, and the data can be automatically synchronized after the network is restored. When needed, the handheld barcode scanner 11 and the electronic scale terminal 10 can be connected via wireless communication methods such as Bluetooth or local area network, or they can be connected via wired transmission for emergency data transmission or equipment debugging between them.
[0070] The aforementioned cigarette waste processing system includes an electronic weighing terminal 10, a handheld barcode scanner 11, and a central server 12. The electronic weighing terminal 10 is deployed at at least one waste generation station in the cigarette workshop and includes a weighing module 101, a touchscreen 102, a processor module 103, an embedded barcode printer 104, and rollers 105. The weighing module 101 obtains the initial weight of the waste from the cigarette workshop, the touchscreen 102 obtains the waste's attribute data, the processor module 103 generates a barcode for the waste, and the embedded barcode printer 104 prints the barcode. The attribute data includes at least one of the following: waste type, unit number, and production shift. The barcode is printed on the packaged waste. The handheld barcode scanner 11 is used to scan the packaged waste. The barcode is scanned to obtain the attribute data and initial weight of the waste material. The central server 12 is used to receive and store the attribute data and initial weight of each waste material sent by the electronic scale terminal 10. It is also used to receive re-weighing requests for waste materials from the handheld barcode scanner 11. This enables the weight and attribute data of waste materials to be obtained directly in the cigarette workshop, and the waste data is managed by barcodes. With the remote storage management of the central server 12, the integrated operation of weighing, barcode scanning, and data uploading of waste materials in the cigarette workshop is realized, avoiding manual recording and management of waste data, thereby improving the efficiency of cigarette waste treatment.
[0071] In one exemplary embodiment, the weighing module 101 is further configured to:
[0072] When there is a need to reweigh any waste material, the target waste material to be reweighed is weighed to obtain the reweighed weight of the target waste material.
[0073] It should be noted that when a target waste material needs to be re-weighed to verify whether there is a significant error in the initial weight, the staff uses a handheld barcode scanner 11 to scan the target waste material, parses the barcode data, and sends a re-weighing request to the central server 12. This allows the central server 12 to be aware that a re-weighing verification operation has been performed on the target waste material. The weighing module 101 weighs the target waste material to be re-weighed, obtains the re-weighed weight, and reports the re-weighed weight to the central server 12, enabling the central server 12 to trace the weighing operation record for the target waste material.
[0074] In this embodiment, the weighing module 101 can re-weigh the waste material, thereby verifying the weight data of the waste material and improving the accuracy of the weight data of the waste material.
[0075] In one exemplary embodiment, such as Figure 2As shown, the electronic scale terminal 10 is also connected to the handheld barcode scanner 11 and is also used to receive the initial weight of the target waste sent by the handheld barcode scanner 11 through the processor module 103 when there is a need for reweighing any waste material, and to verify the initial weight based on the reweighed weight.
[0076] Understandably, the handheld barcode scanner 11 is connected to the processor module 103 of the electronic scale terminal 10. The handheld barcode scanner 11 scans the barcode of the target waste material. The handheld barcode scanner 11 encapsulates the BarcodeScanner module based on the CameraAPI (Camera Application Programming Interface) to achieve rapid barcode recognition (supports Code128, recognition speed ≤ 0.5 seconds / time) and information parsing. After scanning, it automatically extracts the encrypted information in the barcode (such as decrypting it through AES (Advanced Encryption Standard, a symmetric key encryption algorithm) to obtain the initial weight, attribute data, etc.). Through the communication connection with the electronic scale terminal 10, the initial weight is sent to the processor module 103. The processor module 103 compares the initial weight with the re-weighing weight, thereby further improving the accuracy of data in the cigarette waste processing process. Furthermore, by scanning the barcode to obtain the initial weight data of the target waste material for subsequent verification, a complete closed loop is formed from waste generation, weighing and coding, re-weighing verification to data archiving, further improving the efficiency of waste processing.
[0077] In one exemplary embodiment, the processor module 103 is further configured to:
[0078] The initial weight is verified based on the difference between the re-weighed weight and the initial weight, as well as the weight error threshold. If the difference is greater than the weight error threshold, the initial weight of the target waste is updated based on the re-weighed weight, and the re-weighed weight is sent to the central server 12.
[0079] The weight error threshold is determined based on a preset initial threshold and a dynamic coefficient corresponding to the waste type, i.e., weight error threshold = max(preset initial threshold, σ × dynamic coefficient), where σ is the standard deviation obtained from multiple weighing data of the waste type. The preset initial threshold is typically set to 0.5g and can be adaptively adjusted via the central server 12.
[0080] The expression for calculating σ is:
[0081]
[0082] Where N=100, xi is the weight value of the i-th weighing, and is the average weight of 100 weighings; the dynamic coefficient can be 1.5, used to dynamically adjust the threshold range based on the fluctuation of historical data. A default tolerance of ±0.5g error is allowed (configurable on the server side).
[0083] Understandably, the reweighing weight and verification results (pass / fail) are uploaded to the server in real time to update the traceability status of the target waste.
[0084] In one exemplary embodiment, such as Figure 3 As shown, the electronic scale terminal 10 also includes:
[0085] The alarm module 106 is connected to the processor module 103 and is used to trigger an alarm in accordance with a preset alarm method when the difference is greater than the weight error threshold, in response to the alarm command of the processor module 103.
[0086] Understandably, the preset alarm methods may include audible and visual alarms, using a buzzer for sound alarms, and displaying alarm content such as "weight discrepancy" and highlighting the difference between the initial weight and the re-weighed weight in red on the touch screen 102 of the electronic terminal. Alarms may also be triggered by diodes, etc.
[0087] In this embodiment, an alarm module 106 is set up to issue an early warning when there is a large error in the weight data of the waste material, so that the staff can be aware of the error in the waste material processing in a timely manner and take corresponding measures, thereby reducing the error rate of waste material processing data management.
[0088] In one exemplary embodiment, the central server 12 is further configured to:
[0089] Initial weight and attribute data are synchronously stored in memory cache and persistent memory; the least recently used eviction algorithm is used to update the storage records of initial weight and attribute data in memory cache.
[0090] It should be noted that when the central server 12 uses offline data management, it employs a two-tier caching strategy: memory cache and persistent memory storage. The memory cache uses the LRU (Least Recently Used) eviction algorithm, the expression of which is as follows:
[0091] Elimination priority = α × last access timestamp weight + (1-α) × access frequency weight
[0092] For example, α = 0.7 (weighting coefficient for last access time), and 1 - α = 0.3 (weighting coefficient for access frequency). The weight of the last access timestamp is determined by converting the most recent access time into a relative value (e.g., the reciprocal of the number of minutes from the current time), and the calculation formula is as follows:
[0093] T w =1 / (t 当前 -t 最后访问 +1)
[0094] Where t is the timestamp, in minutes.
[0095] The frequency weight is determined by normalizing the number of visits, and the calculation formula is as follows:
[0096] F w =f / f max
[0097] Where f is the number of visits to the current record, f max (The maximum number of accesses in the cache) When the number of cached records in the memory cache of the central server 12 reaches the upper limit (10 records), the record with the lowest priority will be evicted first.
[0098] In one exemplary embodiment, such as Figure 4 As shown, an electronic scale terminal 10 is provided, including a weighing module 101, a touch screen 102, a processor module 103, an embedded coding machine 104, and a roller 105.
[0099] The system includes a weighing module 101 for weighing waste materials from the cigarette workshop to obtain their initial weight; a touchscreen 102, which is communicatively connected to the weighing module 101, for displaying the initial weight and a blank waste attribute table, and for obtaining the waste attribute data in response to trigger operations on the waste attribute table; a processor module 103, which is communicatively connected to both the weighing module 101 and the touchscreen 102, for acquiring the initial weight and attribute data, and generating a barcode for the waste based on the initial weight and attribute data; an embedded coding machine 104, which is communicatively connected to the processor module 103, for printing the barcode for the waste in response to printing instructions from the processor module 103; and rollers 105, which are mounted on the main frame of the electronic scale terminal 10, for moving the electronic scale terminal 10 within the cigarette workshop.
[0100] It should be noted that the electronic scale terminal 10 adopts a four-layer architecture of "front-end interaction - device driver - business logic - communication service", based on a hybrid development mode of Flutter + Kotlin (cross-platform interface framework and Kotlin programming language), which balances cross-platform adaptability and hardware interaction depth. The specific architecture is as follows: Figure 5As shown. The touchscreen 102 includes a Flutter front-end unit for displaying a visual interface, responding to user interactions, and displaying data. The middleware interaction engine is located in the processor module 103, enabling the driver control of hardware devices (including the weighing module 101 and the coding machine driver), data conversion, and state synchronization. The Kotlin business unit, also part of the processor module 103, is used for barcode generation, logic verification, and data processing. The processor module 103 also includes a communication unit for network connection, data transmission, and offline data caching.
[0101] Furthermore, the processor module 103 and the weighing module 101 can communicate via RS232 serial port protocol, encapsulating WeightReader (weight reading) class functions to realize weight data parsing. A sliding window weighted filtering algorithm is used to filter interference signals; the corresponding algorithm formula is as follows:
[0102]
[0103] Among them, W n The weight value after the nth filtering, k=3 (window size), w i =[3, 2, 1] (weighting coefficients), w i The final result is taken from three consecutive stable values (deviation ≤ 0.2g). For anomaly handling, when the sensor connection is interrupted, a local alarm is triggered (e.g., red flashing on the interface + buzzer notification), and a fault log is recorded.
[0104] The processor module 103 and the embedded coding machine 104 communicate via instruction drive. The instruction encapsulation is based on the ESC / POS printing instruction set (a standard instruction set for controlling printers) to develop utility classes such as LabelPrinter (a barcode label printing software). It supports barcode format customization, that is, automatically adjusting the field layout according to the waste type (e.g., shifting the "testing room waste smoke" barcode 2mm to the left and hiding the "unit" field area); printing parameter adaptation, setting the printing density (default level 3, which can be adjusted in the system settings), label width (fixed 50mm, matching the cigarette waste label specifications); status feedback, returning "success / out of paper / paper jam" status after printing is completed, and synchronizing to the interface displayed on the front-end touch screen 102.
[0105] Understandably, the weighing module 101 can include a high-precision weighing sensor, such as an integrated module with an accuracy of 0.1g. The touchscreen 102 can be a 10.1-inch Android touchscreen supporting multi-touch, and the embedded coding machine 104 can have a resolution of 300dpi and support thermal transfer. Furthermore, the electronic scale terminal 10 also includes a long-lasting lithium battery (not shown in the figure). Utilizing an electronic scale hardware platform, the three major functional modules are compactly integrated through a self-developed integrated structural design, reducing the floor space by 50% and adapting to limited workshop spaces. The movable frame combined with modular integration solves the problem of traditional equipment being scattered and occupying large amounts of space. In addition, the electronic scale terminal 10 can be moved and deployed at various waste-generating stations in the cigarette workshop via rollers 105, providing one-stop cigarette waste processing. This not only improves flexibility but also avoids relying on manual labor to record various data about the waste throughout the workshop.
[0106] In this embodiment, the inventors discovered that the Kotlin layer directly manipulates the hardware driver, reducing intermediate layer losses and improving the weighing data response speed to ≤1 second, with a coding success rate of ≥99.5%. The offline caching and automatic retry mechanism ensures no data loss within 30 minutes of network interruption, and guarantees 100% successful retransmission after recovery.
[0107] In one exemplary embodiment, the touchscreen 102 is communicatively connected to the weighing module 101 to display the initial weight and a blank waste attribute table, and to obtain the attribute data of the waste in response to a trigger operation on the waste attribute table; wherein the waste attribute table includes a type component, a shift component, and a unit number component.
[0108] Understandably, the touchscreen 102 provides a customized user interface to simplify the operation process for workshop personnel and adapt to the cigarette waste processing scenario. In terms of interface design, the top displays dynamic weighing values (accurate to 0.1g), coupled with a weight stabilization animation (the green border changes from flashing to solid), providing intuitive feedback on the weighing status. Technically, the system uses a Provider (ProviderFramework) framework to listen to the weight data stream from the Kotlin layer (refreshing 10 times per second), achieving real-time synchronization between the UI (User Interface) and the data.
[0109] The waste attribute table is a customized form. For waste types such as "waste cigarettes / machine-returned tobacco / runaway cigarettes," it displays a type component (a dropdown menu with an icon). The shift component in the waste attribute table includes "shift number," which typically defaults to the current shift but can be modified. The machine number component includes "machine number," which can be automatically matched to work orders or manually entered. This customized interactive interface improves the efficiency of entering cigarette waste attribute data, further enhancing waste processing efficiency.
[0110] In one exemplary embodiment, the processor module 103 is further configured to:
[0111] In response to trigger operations targeting the type component and shift component respectively, the waste type and production shift of the waste are obtained; based on the waste type and production shift, the work order data previously obtained from the central server 12 is queried to obtain the unit number of the waste, and the unit number is filled into the unit number component; or, in response to trigger operations targeting the type component, shift component and unit number component respectively, the waste type, production shift and unit number of the waste are obtained.
[0112] It should be noted that in the logical design of the processor module 103, whenever the electronic scale terminal 10 is started, it automatically downloads the daily roll package work order data from the central server 12 and caches it in the local SQLite database (a lightweight relational database management system). When the user selects the "unit number", the system matches the "brand number" and "production shift" information of the corresponding work order through the Work Order Matcher class, automatically fills it into the interface, and verifies its legality. If the unit number does not match the current shift (e.g., "Unit 3" is not scheduled for today), a pop-up window on the touch screen 102 will prompt "Unit information error, please select again".
[0113] For example, for "testing room waste smoke", the "unit number" field is automatically hidden, and only "type + shift" is retained, reducing invalid operations. In terms of intelligent association, after selecting the waste type, the system automatically matches the "brand" information (such as "Jiaozi (Shidai Yangguang)") from the cached work order data, without the need for manual input, thereby improving the efficiency of attribute data entry and further improving the efficiency of waste processing.
[0114] In this embodiment, the terminal starts up, automatically connects to the server, downloads the work order for the day, and caches it locally. The operator selects the "waste cigarettes" type, and the system automatically loads the unit list (associated with the work order). The operator places the waste material, and the weighing module 101 provides real-time weight feedback (after stabilization, the interface prompts "can be barcoded"). The operator clicks "generate barcode," and the processor module 103 generates a barcode containing unit information according to the rules and previews it on the front end via the touch screen 102. The operator clicks "print," and the processor module 103 issues a print command. The embedded barcode printer 104 drives the printer to send the command, and the touch screen 102 prompts "success" after printing is completed. The processor module 103 automatically uploads the data to the central server 12, and the central server 12 returns "recorded," thus ending the process. Through the above software function development, the intelligent electronic scale terminal 10 realizes the transformation of cigarette waste processing from "manual recording" to "automation and traceability." The inventors' research found that the processing time for a single cigarette waste is reduced from the traditional 3 minutes to 45 seconds, and the data error rate is reduced to below 0.1%.
[0115] In one exemplary embodiment, the processor module 103 is further configured to:
[0116] Obtain the timestamp corresponding to the current time, and convert the timestamp, initial weight, and attribute data into a structured string in a preset format; encrypt the structured string using a hash algorithm to obtain encrypted data; generate a barcode for the waste material based on the encrypted data.
[0117] Understandably, processor module 103 customizes barcodes according to preset rules, dynamically generating barcode content based on waste type (using a "type code + timestamp + unique identifier + check digit" structure). Waste cigarettes / recycled tobacco / running strips consist of a type code (2 digits) + machine number (2 digits) + date (8 digits) + weight (4 digits) + check digit (1 digit); waste cigarettes from the testing chamber consist of a type code (2 digits) + date (8 digits) + weight (4 digits) + check digit (1 digit) (no machine number field). Encryption processing uses an improved SHA-256 hash algorithm, the formula of which is as follows:
[0118] Hash = SHA256 (Type Code || Timestamp || Original Circle Data || Salt)
[0119] In this algorithm, || represents string concatenation; the type code is a 2-character string identifying the type of waste (e.g., "01" represents waste cigarettes, "02" represents waste cigarettes from the testing room, etc.); the timestamp is a 13-digit number, accurate to milliseconds, representing the current system time (in Unix timestamp format); the original metadata (i.e., attribute data and initial weight) is a structured string containing core information such as weight, unit number (if applicable), and shift; and the Salt is a 16-byte unique device identifier (pre-installed in the terminal hardware and cannot be tampered with) used to enhance the hash value's collision resistance. The hash value generated by this algorithm will serve as the core encryption information of the barcode, ensuring the integrity and security of the data during transmission and traceability.
[0120] It should be noted that after the barcode is generated, the touchscreen 102 allows staff to preview the barcode style and key information (type, date, weight, etc.) in real time. "Print" and "Regenerate" touch controls are displayed below the barcode. Operation prompts are also shown through Toast pop-ups and step-by-step animations (such as an arrow pointing to the "Confirm" button), lowering the barrier to entry for beginners.
[0121] In one exemplary embodiment, such as Figure 6 As shown, a method for treating cigarette waste is provided, applied to the cigarette waste treatment system described in any of the above claims, comprising:
[0122] Step 1, initialization phase: The intelligent electronic scale terminal 10 is powered on, automatically connects to WiFi and verifies communication with the batch management server; the server loads the production work order data for the day and pushes it to the terminal cache.
[0123] Step 2, Weighing and Coding Process (Taking waste cigarettes as an example): The operator places the waste material on the intelligent electronic scale, and the terminal automatically weighs and displays the real-time weight. The operator selects the waste type (e.g., "waste cigarettes"), shift, and machine unit (associated with work order information) via the Android touchscreen 102. The system automatically matches parameters such as brand. The terminal software's barcode generation engine generates a barcode containing encrypted traceability information (including type, machine unit, date, etc.) according to the batch management system rules, and the embedded coding machine 104 automatically prints it. The weighing data and barcode information are uploaded to the batch management server in real time via WiFi, and the server stores and sends a "successful reception" signal.
[0124] For example, the waste cigarette processing sub-process in the testing room differs from the processing of cigarette packaging waste. In the waste cigarette processing sub-process in the testing room, the display interface of the electronic scale terminal 10 hides the "unit" selection option, and the unit information is automatically removed when the barcode is generated, only including type, date, brand, and weight. Through dynamic display / hiding of fields in the front-end form and differentiated barcode rule design, the different needs of "cigarette packaging waste" and "waste cigarettes in the testing room" are accurately matched.
[0125] Step 3, Re-weighing and Verification Process: The operator uses a handheld PDA to scan the barcode on the coded waste material. The PDA parses the information and sends a re-weighing request to the server. The waste material is then placed back on the smart electronic scale (or moved to another terminal). After the terminal weighs the material, it is automatically compared with the original weight indicated by the barcode. If the difference exceeds a threshold (e.g., ±0.5g), the touchscreen alarm 102 is triggered. The verification result is synchronized to the server, updating the traceability record.
[0126] Understandably, in the event of a network anomaly, when the electronic scale terminal 10 detects a network interruption, it automatically activates its local cache (based on the LRU algorithm). Once the network is restored, data is retransmitted in chronological order to ensure no data loss. If the workshop network has extremely high stability (such as a direct fiber optic connection), the terminal's local cache can be disabled to reduce storage usage. Furthermore, for low-value waste materials (such as a small amount of strip material), forced reweighing can be disabled in the system settings, retaining only the weighing and coding process.
[0127] Step 4, Data Archiving and Traceability: The central server 12 summarizes data by day / batch, supporting multi-dimensional queries through "barcode-weight-time-unit" to form a closed-loop traceability chain.
[0128] In this embodiment, data acquisition and processing efficiency is significantly improved. The use of intelligent electronic scales for automatic weighing (0.1g accuracy) and wireless transmission technology replaces manual weighing and recording, reducing the data acquisition error rate from ±5% to ±0.1%. Through a customized interactive interface and automated data processing engine, the time for a single operation is reduced from 3 minutes to 40 seconds, improving efficiency by 80%. Simultaneously, centralized management of weighing, barcode, and verification data is achieved, resolving the problem of information fragmentation. Data integration and closed-loop management throughout the entire process are realized. Leveraging the central role of the batch management server, various data uploaded from electronic scales and handheld PDAs are integrated in real time and linked to production work order information, forming a complete closed loop from waste generation, weighing and coding, re-weighing and verification to data archiving. Multi-dimensional queries based on "barcode-weight-time-unit" are supported, enabling full-process monitoring and traceability, and resolving the disconnect with the production management system. The system's adaptability and compatibility have been significantly enhanced. Based on a customized architecture developed using a Flutter+Kotlin hybrid approach, differentiated functional modules were designed specifically for cigarette waste processing scenarios. Form fields and operational processes achieve 100% matching, meeting personalized and refined management needs. Core modules were independently developed and can seamlessly integrate with existing enterprise ERP / MES systems, achieving a 99.9% data interaction success rate, resolving issues of poor adaptability of general-purpose software and insufficient compatibility with external systems. Data security and reliability are effectively guaranteed. Barcodes are generated using the SHA-256 encryption algorithm (including a unique salt value for each device), combined with local server deployment and strict access control, reducing the risk of data leakage. An automated weight comparison and verification mechanism (automatic alarm for differences exceeding ±0.5g) reduces the manual verification error rate from 15% to below 0.5%, improving data reliability and meeting industry data security standards. Optimizing space utilization and operational processes, the intelligent electronic scale is equipped with a 105-frame mobile roller system and combined with handheld PDA wireless operation, overcoming workshop space limitations and solving the problem of separating weighing and data entry stations. Multi-mode wireless communication and offline operation functions reduce data upload latency from 5 minutes to within 10 seconds, simplifying the operation process by 60% and eliminating operational obstacles and data lag caused by spatial separation. An innovative triangular architecture of "Intelligent Electronic Scale Terminal 10 - Batch Management Server - Handheld PDA" and a four-layer software architecture are adopted to achieve "remote operation + real-time data synchronization," overcoming the impact of workshop space limitations on waste disposal. Encrypted barcodes are used as the core to connect the entire process, solving problems such as low efficiency, poor accuracy, and weak collaboration caused by insufficient manual operation and system integration, improving the intelligence level and management efficiency of cigarette waste disposal by more than 40%.
[0129] 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.
[0130] 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.
[0131] 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.
[0132] 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 cigarette waste treatment system, characterized in that, The system includes: An electronic weighing terminal, deployed at least one waste generation station in a cigarette manufacturing workshop, includes a weighing module, a touch screen, a processor module, an embedded coding machine, and rollers. The weighing module obtains the initial weight of the waste from the cigarette manufacturing workshop, the touch screen obtains the attribute data of the waste, the processor module generates a barcode for the waste, and the embedded coding machine prints the barcode. The attribute data includes at least one of the following: waste type, unit number, and production shift. The barcode is affixed to the packaging of the packaged waste. A handheld barcode scanner is used to scan the barcode of the packaged waste material to obtain the attribute data and initial weight of the waste material. The central server is used to receive the attribute data of each waste material and the initial weight sent by the electronic scale terminal, and to store the attribute data of each waste material and the initial weight. It is also used to receive the re-weighing request for the waste material from the handheld barcode scanner.
2. The system according to claim 1, characterized in that, The weighing module is also used for: In cases where there is a need to reweigh any of the aforementioned waste materials, the target waste material to be reweighed is weighed to obtain the reweighed weight of the target waste material.
3. The system according to claim 2, characterized in that, The electronic scale terminal is also connected to the handheld barcode scanner and is used to receive the initial weight of the target waste sent by the handheld barcode scanner through the processor module when there is a need for reweighing any of the waste materials, and to verify the initial weight based on the reweighed weight.
4. The system according to claim 3, characterized in that, The processor module is also used for: The initial weight is verified based on the difference between the reweighed weight and the initial weight, as well as a weight error threshold; the weight error threshold is determined based on a preset initial threshold and a dynamic coefficient corresponding to the waste type of the waste. If the difference is greater than the weight error threshold, the initial weight of the target waste is updated based on the reweighed weight, and the reweighed weight is sent to the central server.
5. The system according to claim 4, characterized in that, The electronic scale terminal also includes: An alarm module, connected to the processor module, is used to trigger an alarm according to a preset alarm method in response to an alarm command from the processor module when the difference is greater than the weight error threshold.
6. The system according to any one of claims 1 to 5, characterized in that, The central server is also used for: The initial weight and the attribute data are synchronously stored in the memory cache and persistent memory; The least recently used eviction algorithm is used to update the storage records of the initial weight and the attribute data in the memory cache.
7. An electronic scale terminal, characterized in that, include: A weighing module is used to weigh waste materials from the cigarette workshop to obtain the initial weight of the waste materials. A touchscreen, communicatively connected to the weighing module, is used to display the initial weight and a blank waste property table, and to obtain the property data of the waste in response to a trigger operation on the waste property table. The processor module is communicatively connected to the weighing module and the touch screen, respectively, and is used to acquire the initial weight and the attribute data, and generate a barcode for the waste material based on the initial weight and the attribute data; An embedded coding machine, communicatively connected to the processor module, is used to print barcodes on the waste material in response to printing instructions from the processor module. Rollers, mounted on the main frame of the electronic scale terminal, are used to move the electronic scale terminal within the cigarette workshop.
8. The electronic scale terminal according to claim 7, characterized in that, The touchscreen is communicatively connected to the weighing module and is used to display the initial weight and a blank waste property table, and to obtain the property data of the waste in response to a trigger operation on the waste property table. The waste attribute table includes a type component, a shift component, and a unit number component.
9. The electronic scale terminal according to claim 8, characterized in that, The processor module is also used for: In response to trigger operations for the type component and the shift component respectively, the waste type and the production shift to which the waste belongs are obtained; Based on the type of waste and the production shift to which it belongs, query the work order data obtained in advance from the central server to obtain the unit number to which the waste belongs, and fill the unit number to which it belongs into the unit number component; or, In response to trigger operations for the type component, the shift component, and the unit number component, the waste type, the production shift to which the waste belongs, and the unit number of the waste are obtained.
10. The electronic scale terminal according to claim 7, characterized in that, The processor module is also used for: Obtain the timestamp corresponding to the current time, and convert the timestamp, the initial weight, and the attribute data into a structured string in a preset format; The structured string is encrypted using a hash algorithm to obtain encrypted data; Based on the encrypted data, a barcode is generated for the waste.