Tobacco leaf receiving information processing method and device, equipment and storage medium

By using mobile terminals to scan tobacco bales and bundles at tobacco purchasing stations, generating codes, and uploading them to the server, the problems of low information accuracy and management efficiency caused by manual data entry are solved, and information accuracy and traceability are achieved.

CN121599299APending Publication Date: 2026-03-03YUNNAN TOBACCO CORP QUJING BRANCH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511857919.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-10
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

In tobacco purchasing stations, existing technologies that manually input information about tobacco bags and bundles are prone to data deviations, resulting in low information accuracy, low management efficiency, and excessively high labor costs.

Method used

The system uses a mobile terminal to scan the QR code on the cigarette pack to obtain the first sequence information, and responds to the cigarette handle grading operation to obtain the second sequence information. The system then generates cigarette handle coding information through encoding processing, uploads it to the server for storage, and parses and prints the relevant information on the target terminal.

Benefits of technology

It improved the accuracy and management efficiency of information on cigarette packs and handles, ensured the accuracy of information correspondence, enhanced data traceability, and solved the information accuracy problem caused by manual data entry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121599299A_ABST
    Figure CN121599299A_ABST
Patent Text Reader

Abstract

The invention discloses a tobacco leaf receiving information processing method and device, equipment and a storage medium. The method is applied to a mobile terminal, and comprises the following steps: in response to a cigarette packet information acquisition instruction, scanning a to-be-identified identifier attached to a target cigarette packet, and determining first sequence information corresponding to the to-be-identified identifier; in response to the cigarette bundle grading triggering operation in the target cigarette packet, multiple pieces of second sequence information corresponding to the cigarette bundle grading triggering operation are obtained; for a plurality of pieces of second sequence information, encoding the first sequence information and each piece of second sequence information to obtain tobacco bundle encoding information corresponding to each target tobacco bundle; for the multiple pieces of cigarette bundle coding information, each piece of encrypted cigarette bundle coding information is sent to a target server in sequence, so that the target server determines target data corresponding to a target cigarette bundle based on the encrypted cigarette bundle coding information and stores and processes the target data, according to the invention, the management efficiency and the information management accuracy of the target cigarette packet and the corresponding target cigarette bundle information are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information processing technology, and in particular to a method, apparatus, device, and storage medium for processing information received from tobacco leaves. Background Technology

[0002] In the scenario of receiving tobacco bales at tobacco purchasing stations, the relevant information of the received tobacco bales is usually entered manually. That is, the staff manually record the tobacco bale number, the grade of each tobacco bundle in the bale, and the serial number of the tobacco bundle. The information is then manually entered into the system, and finally, labels corresponding to the information are manually formatted and printed.

[0003] In practical applications, due to the large number of tobacco bales received by tobacco purchasing stations and the large number of tobacco bundles contained in each bale, the correspondence between tobacco bales and tobacco bundles needs to be repeatedly checked. Therefore, the above method is prone to data deviations due to human error, such as incorrect tobacco bale numbers, confusion of tobacco bundle grades, duplicate numbers, and inaccurate correspondence between tobacco bales and tobacco bundles, resulting in low information accuracy and inconvenience for subsequent traceability. Furthermore, the above method also suffers from low information management efficiency and excessively high labor costs. Summary of the Invention

[0004] This invention provides a method, apparatus, device, and storage medium for processing tobacco leaf receiving information, which improves the management efficiency and accuracy of information management for target tobacco packages and corresponding target tobacco bundles.

[0005] According to one aspect of the present invention, a method for processing tobacco leaf receiving information is provided, applied to a mobile terminal, the method comprising:

[0006] In response to the cigarette pack information collection command, the identification mark affixed to the target cigarette pack is scanned to determine the first sequence information corresponding to the identification mark; wherein, the first sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the target cigarette pack;

[0007] In response to the graded triggering operation of the tobacco handle in the target tobacco pack, multiple second sequence information corresponding to the graded triggering operation of the tobacco handle is obtained; wherein, the second sequence information is used to characterize the initial grade information and triggering order information of the tobacco handle corresponding to each target tobacco handle in the target tobacco pack, the target tobacco pack includes multiple target tobacco handles, and the target tobacco handle includes multiple tobacco leaves;

[0008] For multiple second sequence information, the first sequence information and each second sequence information are encoded to obtain the cigarette handle encoding information corresponding to each target cigarette handle;

[0009] For multiple cigarette handle codes, each encrypted cigarette handle code is sent to the target server in sequence, so that the target server can determine the target data corresponding to the target cigarette handle based on the encrypted cigarette handle code and store and process it.

[0010] According to another aspect of the present invention, a method for processing tobacco leaf receiving information is provided, applied to a target terminal, the method comprising:

[0011] Receive the first data sent by the target server; wherein, the first data is the target data stored by the target server that is related to the cigarette handle to be processed in the cigarette pack to be processed;

[0012] The first data is parsed and processed to obtain the data to be processed corresponding to the first data; wherein, the data to be processed includes at least: the third sequence information corresponding to the cigarette pack to be processed and the fourth sequence information corresponding to the cigarette handle to be processed. The third sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the cigarette pack to be processed; the fourth sequence information is used to characterize the initial grade information and triggering sequence information of the cigarette handle corresponding to the cigarette handle to be processed.

[0013] Based on the fourth sequence information in the data to be processed, determine the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed.

[0014] Based on the initial grade information of the cigarette handle to be processed, retrieve the template to be used corresponding to the initial grade information of the cigarette handle to be processed; wherein, the template to be used is a template among multiple preset templates;

[0015] Identify the data to be filled in the data to be processed that corresponds to the template to be used, and fill the data to be filled into the template to be used, so as to obtain the label to be printed corresponding to the cigarette handle to be processed and print it.

[0016] According to another aspect of the present invention, a tobacco leaf receiving information processing device is provided, applied to a mobile terminal, the device comprising:

[0017] The first sequence determination module is used to respond to the cigarette pack information collection command, scan the identification mark affixed to the target cigarette pack, and determine the first sequence information corresponding to the identification mark; wherein, the first sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the target cigarette pack;

[0018] The second sequence determination module is used to respond to the graded triggering operation of the tobacco handle in the target tobacco pack and obtain multiple second sequence information corresponding to the graded triggering operation of the tobacco handle; wherein, the second sequence information is used to characterize the initial grade information and triggering order information of the tobacco handle corresponding to each target tobacco handle in the target tobacco pack, the target tobacco pack includes multiple target tobacco handles, and the target tobacco handle includes multiple tobacco leaves;

[0019] The encoding information determination module is used to encode the first sequence information and each second sequence information for multiple second sequence information to obtain the cigarette handle encoding information corresponding to each target cigarette handle;

[0020] The encoding information sending module is used to send each encrypted cigarette handle encoding information to the target server in sequence for multiple cigarette handle encoding information, so that the target server can determine the target data corresponding to the target cigarette handle based on the encrypted cigarette handle encoding information and store and process it.

[0021] According to another aspect of the present invention, a tobacco leaf receiving information processing apparatus is provided, applied to a target terminal, the apparatus comprising:

[0022] The data receiving module is used to receive the first data sent by the target server; wherein, the first data is the target data stored by the target server and related to the cigarette handle to be processed in the cigarette pack to be processed;

[0023] The data parsing module is used to parse and process the first data to obtain the data to be processed corresponding to the first data; wherein, the data to be processed includes at least: the third sequence information corresponding to the cigarette pack to be processed and the fourth sequence information corresponding to the cigarette handle to be processed. The third sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the cigarette pack to be processed; the fourth sequence information is used to characterize the initial grade information and triggering sequence information of the cigarette handle corresponding to the cigarette handle to be processed.

[0024] The grade information determination module is used to determine the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed based on the fourth sequence information in the data to be processed.

[0025] The template retrieval module is used to retrieve the template to be used corresponding to the initial grade information of the cigarette handle to be processed, based on the initial grade information of the cigarette handle to be processed; wherein, the template to be used is a template among multiple preset templates;

[0026] The label printing module is used to determine the data to be filled in the data to be processed, which corresponds to the template to be used, and to fill the data to be filled into the template to be used, so as to obtain the label to be printed corresponding to the cigarette handle to be processed and print it.

[0027] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0028] At least one processor; and

[0029] A memory that is communicatively connected to at least one processor; wherein,

[0030] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to perform the tobacco leaf receiving information processing method according to any embodiment of the present invention.

[0031] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the tobacco leaf receiving information processing method of any embodiment of the present invention.

[0032] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, characterized in that, when executed by a processor, the computer program implements the tobacco leaf receiving information processing method as described in any embodiment of the present invention.

[0033] The technical solution of this invention, in response to a cigarette pack information collection command, scans the identification mark affixed to the target cigarette pack to determine the first sequence information corresponding to the target cigarette pack. In response to a graded trigger operation on the cigarette handle in the target cigarette pack, multiple second sequence information corresponding to the graded trigger operation are obtained. For each of the multiple second sequence information, the first sequence information and each second sequence information are encoded to obtain cigarette handle encoding information corresponding to each target cigarette handle. For each of the multiple cigarette handle encoding information, each encrypted cigarette handle encoding information is sent sequentially to the target server, so that the target server determines and stores the target data corresponding to the target cigarette handle based on the encrypted cigarette handle encoding information. This invention, by determining the cigarette handle encoding information corresponding to each target cigarette handle in the target cigarette pack, ensures the accuracy of the correspondence between the target cigarette pack and the target cigarette handle, and also ensures the accuracy of the information corresponding to the target cigarette pack and the target cigarette handle. This solves the problems of low information accuracy and inaccurate correspondence caused by manual recording of corresponding information in the prior art, improves the accuracy and efficiency of information management, and enhances data traceability.

[0034] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

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

[0036] Figure 1This is a flowchart of a tobacco leaf receiving information processing method provided in an embodiment of the present invention;

[0037] Figure 2 This is a flowchart of a tobacco leaf receiving information processing method provided in an embodiment of the present invention;

[0038] Figure 3 This is a schematic diagram of the structure of a tobacco leaf receiving and processing device provided in an embodiment of the present invention;

[0039] Figure 4 This is a schematic diagram of the structure of a tobacco leaf receiving and processing device provided in an embodiment of the present invention;

[0040] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the tobacco leaf receiving information processing method according to an embodiment of the present invention. Detailed Implementation

[0041] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0042] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0043] Example 1

[0044] Figure 1 This is a flowchart of a tobacco leaf receiving information processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the management of information corresponding to tobacco bales and tobacco bundles received by tobacco purchasing stations. This method can be executed by a tobacco leaf receiving information processing device, which can be implemented in hardware and / or software. This device can be configured in electronic devices such as mobile phones, computers, or servers. Figure 1 As shown, the method includes:

[0045] S110, in response to the cigarette pack information collection command, scan the identification mark attached to the target cigarette pack and determine the first sequence information corresponding to the identification mark.

[0046] The tobacco pack information collection instruction can be an instruction used to instruct the mobile terminal to collect relevant information from the tobacco pack. Optionally, the tobacco pack information collection instruction can be related to a corresponding collection trigger operation by the user on the information collection interface of the mobile terminal. The target tobacco pack can be the tobacco pack for which information collection is currently required. It should be noted that the tobacco pack includes multiple tobacco bundles, and each tobacco bundle consists of multiple tobacco leaves. Correspondingly, the target tobacco pack includes multiple target tobacco bundles, and each target tobacco bundle includes multiple tobacco leaves. For example, the tobacco pack may include 20 to 30 tobacco bundles, and each tobacco bundle may include 10 tobacco leaves.

[0047] It should be noted that the target tobacco bales received by the tobacco purchasing station will have an identification label affixed to them. This identification label contains information about the receiving station, the receiving date, and the batch number of the target tobacco bale. The identification label can be affixed to a predetermined location on the target tobacco bale to represent the first sequence information of the target tobacco bale. Optionally, the identification label can be a QR code corresponding to the target tobacco bale. This QR code uses the QR code format and has an error correction level of H to ensure that it can still be identified even when stained or partially damaged.

[0048] The first sequence information, also known as the tobacco pack sequence information, can be used to characterize the receiving station information, receiving date, and receiving batch number information of the target tobacco pack. Optionally, the first sequence information can be a tobacco pack serial number corresponding to the target tobacco pack, set according to a preset format. The receiving station information can be used to identify the tobacco purchasing station that received the target tobacco pack. For example, if the first four digits of the first sequence information are 0102, the corresponding receiving station information could be: the second tobacco purchasing station in region A. The receiving date can be understood as the date the target tobacco pack was received. Optionally, the receiving date can be represented by an 8-digit number in the format "YYYYMMDD". The receiving batch number information is related to the receiving date and can indicate which batch the target tobacco pack belongs to within the receiving date. For example, if the last three digits of the first sequence information are 001, the corresponding receiving batch number information is 001, indicating that the target tobacco pack is the first batch of tobacco packs within the receiving date.

[0049] Specifically, upon receiving a tobacco pack information collection instruction, the system invokes the scanning control corresponding to the mobile terminal to scan the identification mark affixed to the target tobacco pack, thereby obtaining the first sequence of information corresponding to the target tobacco pack. Scanning the identification mark using a mobile terminal eliminates the limitations of traditional fixed terminals, allowing tobacco pack information collection to be adapted to complex operational scenarios such as open-air and temporary sites outside tobacco purchasing stations.

[0050] For example, to improve the convenience of collecting tobacco leaf receiving information, the mobile terminal can be a smartphone. This mobile terminal is equipped with a scanning control for recognizing the identifiers to be identified. The scanning control is configured with an image enhancement algorithm to adapt to the complex lighting conditions outside the tobacco leaf purchasing station.

[0051] The identification identifier is a QR code, and the first sequence information is the cigarette pack serial number. Before the target cigarette pack enters the off-site grading process, a QR code representing the above information can be generated based on the receiving station information, receiving date, and receiving batch number information corresponding to the target cigarette pack. This QR code is then affixed to a predetermined location on the outside of the target cigarette pack.

[0052] When a tobacco purchasing station receives a target tobacco bale, staff can click the information collection control on the mobile terminal's information collection interface. This allows the mobile terminal to scan the QR code on the target tobacco bale, obtaining the first sequence information corresponding to the identifier. For example, staff can open the corresponding app on the mobile terminal, enter their account and password (fingerprint / facial recognition assisted login is supported), and access the "Information Collection" interface. By clicking the "Scan" control on the information collection interface, they issue a tobacco bale information collection command, causing the mobile terminal to use its camera to scan the QR code affixed to the target tobacco bale, obtain the tobacco bale serial number, and associate the tobacco bale serial number with the current collection task. The read tobacco bale serial number is displayed in real time at the top of the mobile terminal interface. For example, if the scanned tobacco bale serial number is 0102YYYYMMDD001, where 0102 represents the receiving station information, i.e., the second tobacco purchasing station in region A; YYYYMMDD represents the receiving date; and 001 represents the receiving batch number, indicating that the target tobacco bale is from the first batch within the receiving date. It should be noted that the corresponding app on the mobile terminal integrates image enhancement algorithms (brightness adjustment, noise reduction processing), which improves the QR code recognition success rate to over 98%, and can still be accurately recognized even in low light or when the QR code is slightly dirty.

[0053] It should also be noted that if it is impossible to scan the identifier to be identified in order to determine the first sequence information corresponding to the identifier, the first sequence information can be entered manually.

[0054] S120, In response to the graded triggering operation of the cigarette handle in the target cigarette pack, obtain multiple second sequence information corresponding to the graded triggering operation of the cigarette handle.

[0055] The first part, "Classification Trigger Operation for Cigarette Handles in the Target Cigarette Pack," refers to the trigger operation corresponding to the classification processing of each target cigarette pack within the pack. The second sequence information, namely, the cigarette handle sequence information, is used to characterize the initial grade information and trigger order information of each target cigarette handle in the target cigarette pack. The initial grade information can characterize the grade of the cigarette handle in the target cigarette pack. For example, the initial grade information could be "Medium Orange I," "Upper Orange II," etc. The trigger order information can be understood as the order in which the corresponding staff member classifies the target cigarette handles. For example, if there are 3 target cigarette handles in the target cigarette pack, namely a, b, and c, then the staff member will first classify target cigarette handle a, triggering the corresponding cigarette handle classification operation. For example, the trigger order information for target cigarette handle a could be "first."

[0056] Optionally, the second sequence information can be represented by the cigarette handle serial number. For example, the second sequence information of the target cigarette handle a can be the cigarette handle serial number 00102. Here, 001 represents the triggering order information of the target cigarette handle a, that is, it means that the target cigarette handle a is the first one to be triggered (the first one to have its initial cigarette handle level information recorded). 02 indicates that the initial cigarette handle level information of the target cigarette handle is upper orange two.

[0057] Specifically, upon detecting a trigger operation for classifying cigarette handles within the target cigarette pack, the initial grade information and trigger sequence information of the cigarette handles corresponding to the graded trigger operation are determined. Based on the initial grade information and trigger sequence information of each target cigarette handle in the target cigarette pack, a second sequence of information corresponding to each target cigarette handle is generated. It should be noted that since the target cigarette pack contains multiple target cigarette handles, multiple second sequence information can be obtained.

[0058] In this embodiment of the invention, the method for determining the second sequence information corresponding to the target cigarette handle may be as follows: for multiple target cigarette handles in the target cigarette pack, in response to the triggering operation of classifying the target cigarette handle, the initial grade information of the cigarette handle corresponding to the target cigarette handle is determined; according to the preset grade mapping relationship, the grade identification information corresponding to the initial grade information of the cigarette handle is determined; based on the triggering sequence information of the target cigarette handle, the sequence number information corresponding to the target cigarette handle is determined; the grade identification information and the sequence number information are concatenated to determine the second sequence information.

[0059] The triggering operation for classifying the target cigarette handle can be an operation that classifies each target cigarette handle in the target cigarette pack. The preset level mapping relationship can be the correspondence between the initial level information of the cigarette handle and the level identification information. That is, through the preset level mapping relationship, the level identification information corresponding to the current target cigarette handle can be determined. The triggering sequence information for the target cigarette handle can be understood as the order in which the target cigarette handle is triggered for leveling. The sequence number information is used to represent the triggering sequence information. The second sequence information can include the sequence number information and the level identification information.

[0060] Specifically, for multiple target cigarette handles in a target cigarette pack, in response to a trigger operation that grades the target cigarette handles, the initial grade information of the current target cigarette handle corresponding to the trigger operation is determined. Based on a preset grade mapping relationship, grade identifier information matching the initial grade information of the cigarette handle is determined. According to the trigger sequence information of the current target cigarette handle, the sequence number information corresponding to the current target cigarette handle is determined. The sequence number information and grade identifier information are concatenated to determine the second sequence information corresponding to the current target cigarette handle.

[0061] For example, based on the above example, staff can classify each target cigarette handle within the target cigarette pack one by one. That is, in the "Information Collection" interface of the corresponding APP, by triggering the selection of the grade option in the "Cigarette Handle Grade" drop-down box (e.g., "Medium Orange I" or "Upper Orange II"), the mobile terminal determines the initial grade information and triggering sequence information (entry order) of the cigarette handle according to the corresponding cigarette handle grade triggering operation. According to the preset grade mapping relationship, such as '01' representing Medium Orange I and '02' representing Upper Orange II, the grade identification information corresponding to the initial grade information of the cigarette handle is determined. At the same time, according to the triggering sequence information, the sequence number information is automatically generated (incrementing from 001 according to the entry order). If it is necessary to supplement the number of cigarette handles (default 1 handle / record), it can be manually entered in the "Quantity" field, which supports batch entry (e.g., entering 5 target cigarette handles of the same grade at once). For example, the second sequence information determined above can be 00102, where 001 is the sequence number information and 02 is the grade identification information.

[0062] S130. For multiple second sequence information, encode the first sequence information and each second sequence information to obtain the cigarette handle encoding information corresponding to each target cigarette handle.

[0063] Among them, the cigarette handle coding information can be used to characterize the specific information corresponding to each target cigarette handle in the target cigarette pack.

[0064] Specifically, for multiple second sequence information, the first sequence information corresponding to the target cigarette pack and the second sequence information corresponding to each target cigarette handle are encoded to obtain the cigarette handle encoding information corresponding to each target cigarette handle.

[0065] In this embodiment of the invention, the specific method for encoding the first sequence information and the second sequence information to obtain the cigarette handle encoding information may be as follows: hashing the first sequence information to determine the hash value to be used corresponding to the first sequence information; processing the first sequence information according to the first check bit generation algorithm to determine the first check identifier bit; obtaining the cigarette pack encoding information corresponding to the target cigarette pack based on the hash value to be used and the first check identifier bit; processing the first sequence information and the second sequence information according to the second check bit generation algorithm to determine the second check identifier bit; and determining the cigarette handle encoding information based on the cigarette pack encoding information, the second sequence information, and the second check identifier bit.

[0066] The hash value to be used can be the hash value obtained after encoding the first sequence information according to a hash algorithm. Optionally, the hash algorithm can be the SHA-256 hash algorithm. The first checksum generation algorithm can be used to generate a checksum identifier corresponding to the target cigarette pack. The checksum identifier corresponding to the target cigarette pack can be used as the first checksum identifier. The cigarette pack encoding information can be determined by concatenating the hash value to be used and the first checksum identifier. The second checksum generation algorithm can be used to generate a checksum identifier corresponding to the target cigarette pack. The checksum identifier corresponding to the target cigarette pack can be used as the second checksum identifier. The cigarette pack encoding information can be determined by concatenating the cigarette pack encoding information, the second sequence information, and the second checksum identifier.

[0067] Specifically, the first sequence information is hashed to determine the hash value to be used corresponding to the first sequence information. The first summation result corresponding to each number in the first sequence information is determined according to the first checksum generation algorithm. Based on the modulo parameter corresponding to the first checksum generation algorithm, the first summation result is modulo-processed to obtain the first checksum identifier. The hash value to be used and the first checksum identifier are concatenated to obtain the cigarette pack encoding information corresponding to the target cigarette pack.

[0068] The second summation result corresponding to each number in the first and second sequence information is determined according to the second check bit generation algorithm. Based on the modulo parameter corresponding to the second check bit generation algorithm, the second summation result is modulo-processed to obtain the second check identifier bit. The cigarette pack code information, the second sequence information, and the second check identifier bit are concatenated to determine the cigarette handle code information.

[0069] For example, in conjunction with the above example, if the receiving station information of the target cigarette pack corresponds to the first four digits in the first sequence information, the receiving date corresponds to the 5th to 12th digits in the first sequence information, and the receiving batch number information corresponds to the last three digits in the first sequence information, then the first sequence information can be composed of: the 4 digits corresponding to the receiving station information (e.g., '0102' represents the second purchasing station in region A) + the 8 digits corresponding to the receiving date + the 3 digits corresponding to the receiving batch number information (e.g., '001' represents the first batch on that day)".

[0070] The first sequence of information is hashed using the SHA-256 hash algorithm to determine the hash value to be used. If the first sequence of information consists of 15 digits, the sum of these 15 digits is determined to obtain the first sum. This first sum is then modulo 100 to generate a two-digit first checksum. For example, if the sum of the 15 digits in the first sequence of information is 18, taking the modulo 100 of 18 yields the two-digit first checksum: 18. The hash value to be used and the first checksum are then concatenated to obtain the cigarette pack code information.

[0071] If the sequence number of the target cigarette holder is the first three digits of the second sequence information, and the grade identification information corresponds to the last two digits of the second sequence information, then the second sequence information can be composed of: 3 digits corresponding to the sequence number information (such as '001' '002') + 2 digits corresponding to the grade identification information (such as '01' representing middle orange one, '02' representing upper orange two).

[0072] The numbers in the first and second sequence information are summed to determine the second sum. The second sum is modulo 10 to obtain a 1-bit second check flag. The cigarette pack code information, the second sequence information, and the second check flag are concatenated to obtain the cigarette handle code information.

[0073] By using first and second sequence information, and setting corresponding first and second verification flags, the cigarette handle coding information is determined based on the association between the first and second sequence information, the first and second verification flags, and the second verification flags. This ensures the uniqueness of the cigarette pack sequence information and the cigarette handle sequence information, and can quickly identify coding errors, solving the problem of inaccurate correspondence between cigarette pack and cigarette handle information in existing technologies. It achieves a strong binding between cigarette pack information and cigarette handle information, providing a clear data association for subsequent traceability.

[0074] S140. For multiple cigarette handle codes, each encrypted cigarette handle code is sent to the target server in sequence, so that the target server can determine the target data corresponding to the target cigarette handle based on the encrypted cigarette handle code and store and process it.

[0075] The target server can receive and parse the encrypted cigarette handle encoding information to generate structured data. The encrypted cigarette handle encoding information can be obtained by encrypting existing cigarette handle encoding information. The target data is the structured data corresponding to the encrypted cigarette handle encoding information. For example, the target data may include: the first sequence information of the target cigarette pack to which the target cigarette handle belongs, the second sequence information of the target cigarette handle, the initial grade information of the target cigarette handle, and the reception time corresponding to the target cigarette handle, etc.

[0076] Optionally, to improve data traceability, the employee's work ID and the cigarette handle code information corresponding to the cigarette handle grading trigger operation can be encrypted together and uploaded to the target server. Optionally, the work ID and cigarette handle code information can be encrypted and uploaded to the target server via HTTPS protocol.

[0077] Specifically, for multiple cigarette handle codes, each cigarette handle code is encrypted, and the encrypted cigarette handle codes are uploaded to the target server in sequence. The target server processes the encrypted cigarette handle codes to determine the target data corresponding to the target cigarette handle and stores the target data.

[0078] It should also be noted that if a network problem is detected that prevents the encrypted cigarette handle encoding information from being transmitted to the target server, the encrypted cigarette handle encoding information can be cached offline first. When the network is detected to be in a normal state, the encrypted cigarette handle encoding information can be retrieved from the cache and transmitted to the target server.

[0079] For example, the target server can be a cloud server, which deploys a data processing engine and uses a distributed architecture to achieve load balancing. Even in scenarios where multiple mobile terminals simultaneously upload encrypted cigarette holder encoding information, the data reception response time can still be maintained at ≤1 second, and CPU utilization at ≤70%, avoiding data congestion. Simultaneously, the server has a built-in data backup mechanism that automatically backs up data every hour to prevent data loss and ensure long-term stable system operation.

[0080] The cigarette handle encoding information is encrypted to obtain encrypted cigarette handle encoding information. If the current network is detected to be in a normal state, the encrypted cigarette handle encoding information is uploaded to the target server, and the corresponding upload response information is displayed, such as "Upload successful". If the current network is detected to have a problem, the encrypted cigarette handle encoding information is cached offline, so that when the current network is detected to be in a normal state, the encrypted cigarette handle encoding information is uploaded to the target server, and the corresponding re-upload response information is displayed, such as "Re-upload successful". Based on this, by caching the encrypted cigarette handle encoding information offline, it can be ensured that the encrypted cigarette handle encoding information is not lost under unstable network conditions, which can effectively solve the problem of insufficient network coverage in the scenario outside the tobacco leaf purchasing station.

[0081] In this embodiment of the invention, after receiving the encrypted cigarette handle encoding information, the target server processes the encrypted cigarette handle encoding information to determine the target data. This can be achieved by: decrypting the encrypted cigarette handle encoding information to determine the cigarette handle encoding information, the corresponding cigarette pack encoding information, and the first verification identifier corresponding to the cigarette pack encoding information; determining the reference cigarette pack sequence information corresponding to the cigarette pack encoding information based on multiple pre-stored preset cigarette pack sequence information; processing the reference cigarette pack sequence information based on the first verification identifier generation algorithm to determine the reference verification identifier; and binding the cigarette handle encoding information and the reference cigarette pack sequence information together to obtain the target data if the reference verification identifier matches the first verification identifier.

[0082] The preset cigarette pack sequence information can be the cigarette pack sequence information corresponding to the cigarette handles that need to be uploaded, which is pre-stored on the target server. For example, multiple preset cigarette pack sequence information can be the cigarette pack sequence information corresponding to all the cigarette handles that need to be uploaded to the target server. The baseline cigarette pack sequence information can be the preset cigarette pack sequence information that matches the cigarette pack encoding information. The baseline verification flag can be the cigarette pack verification flag corresponding to the baseline cigarette pack sequence information.

[0083] Specifically, the encrypted cigarette handle encoding information is decrypted to determine the cigarette handle encoding information. The cigarette handle encoding information is then parsed to determine the corresponding cigarette pack encoding information. The cigarette pack encoding information is then parsed to determine the first verification flag and the hash value to be used. The hash value to be used is processed to determine the first sequence information corresponding to it. From multiple pre-stored preset cigarette pack sequences, a reference cigarette pack sequence information matching the first sequence information is determined. The reference cigarette pack sequence information is processed according to the first verification flag generation algorithm to determine the reference verification flag. If the reference verification flag matches the first verification flag, the cigarette handle encoding information and the reference cigarette pack sequence information are associated to obtain associated data. The associated data is parsed to determine the target data corresponding to the associated data. It should be noted that, in the process of parsing the associated data to determine the target data, the first sequence information can be verified based on the first verification flag corresponding to the associated data, and the second sequence information can be verified based on the second verification flag. If the verification is successful, the verified first sequence information, the verified second sequence information, the receiving station information, the receiving date and the receiving batch number information corresponding to the first sequence information, and the cigarette handle initial level information and triggering sequence information corresponding to the second sequence information can be used as the target data.

[0084] It should be noted that if the target server detects that the currently uploaded cigarette handle code information matches the previously uploaded cigarette handle code information, it will mark the currently uploaded cigarette handle code information and generate a duplicate upload warning message, which will then be sent back to the mobile terminal. For example, the duplicate upload warning message could be something like "This cigarette handle has already been entered and does not need to be repeated."

[0085] For example, referring to the above example and taking the cloud server as the target server, after the cloud server receives the encrypted cigarette handle code information uploaded by the mobile terminal, it decrypts the encrypted cigarette handle code information to determine the cigarette handle code information. It then parses the cigarette handle code information to determine the cigarette pack code information corresponding to the cigarette handle code information, as well as the first sequence information and first verification flag corresponding to the cigarette pack code information. The first sequence information is matched with multiple preset cigarette pack sequence information (including all cigarette pack sequence information for the current day) in the cigarette pack sequence library. If a reference cigarette pack sequence information corresponding to the first sequence information is detected, and the reference verification flag matches the first verification flag, the cigarette handle code information and the reference cigarette pack sequence information are bound together to obtain the target data, thereby achieving the associated storage of cigarette pack data and cigarette handle data. If no reference cigarette pack sequence information corresponding to the first sequence information exists, or if the reference verification flag does not match the first verification flag, a warning message is generated and sent to the mobile terminal so that the mobile terminal re-uploads the encrypted cigarette handle code information. For example, the warning message could be "The encrypted cigarette handle code is invalid, please re-upload" or "The first verification identifier should be 15, it is currently 11, please check" or similar messages.

[0086] The technical solution of this embodiment, in response to a cigarette pack information collection command, scans the identification mark affixed to the target cigarette pack to determine the first sequence information corresponding to the target cigarette pack. In response to a graded trigger operation on the cigarette handle in the target cigarette pack, multiple second sequence information corresponding to the graded trigger operation are obtained. For each of the multiple second sequence information, the first sequence information and each second sequence information are encoded to obtain cigarette handle encoding information corresponding to each target cigarette handle. For each of the multiple cigarette handle encoding information, each encrypted cigarette handle encoding information is sent sequentially to the target server, so that the target server, based on the encrypted cigarette handle encoding information, determines and stores the target data corresponding to the target cigarette handle. This invention, by determining the cigarette handle encoding information corresponding to each target cigarette handle in the target cigarette pack, ensures the accuracy of the correspondence between the target cigarette pack and the target cigarette handle, and also ensures the accuracy of the information on the target cigarette pack and the corresponding information on the target cigarette handle. This solves the problems of low information accuracy and inaccurate correspondence caused by manual recording of corresponding information in the prior art, improving the accuracy and efficiency of information management, and enhancing data traceability.

[0087] Example 2

[0088] Figure 2This is a flowchart of a tobacco leaf receiving information processing method provided in Embodiment 2 of the present invention. Based on the above embodiments, after the target server stores the target data of the corresponding tobacco bundle, the target data can be retrieved from the target server for parsing and verification, thereby realizing the printing of information. Specific implementation details can be found in the technical solution of this embodiment. Technical terms that are the same as or corresponding to those in the above embodiments will not be repeated here. Figure 2 As shown, the method includes:

[0089] S210. Receive the first data sent by the target server; wherein the first data is target data stored by the target server that is related to the cigarette handle to be processed in the cigarette pack to be processed.

[0090] It should be noted that the target server can send the stored target data to the target terminal according to a preset data synchronization frequency. Therefore, the currently sent target data can be regarded as the first data. Accordingly, the cigarette pack corresponding to the first data is regarded as the cigarette pack to be processed, and the cigarette handle corresponding to the first data is regarded as the cigarette handle to be processed.

[0091] Specifically, it receives the first data sent by the target server and prints the corresponding cigarette handle information based on the first data.

[0092] It should also be noted that the target terminal can be a terminal that can be associated with the corresponding printing device. For example, the target terminal can be a computer terminal.

[0093] For example, the target terminal is a computer terminal, and the target server is a cloud server. The computer terminal can monitor the data stream of the cloud server in real time according to the corresponding information management algorithm, and synchronize the target data sent by the cloud server to the local machine every 30 seconds, that is, obtain the first data.

[0094] S220. The first data is parsed and processed to obtain the data to be processed corresponding to the first data.

[0095] The data to be processed includes at least: third sequence information corresponding to the cigarette pack to be processed and fourth sequence information corresponding to the cigarette handle to be processed. The third sequence information is used to characterize the receiving station information, receiving date, and receiving batch number information of the cigarette pack to be processed; the fourth sequence information is used to characterize the initial grade information and triggering sequence information of the cigarette handle corresponding to the cigarette handle to be processed.

[0096] Specifically, the first data is parsed to determine whether the third and fourth sequence information contained in the first data meet the data verification requirements. If they do, the third and fourth sequence information are used as data to be processed.

[0097] In this embodiment of the invention, the method for parsing the first data may be as follows: parsing the first data to determine the third sequence information and the fourth sequence information corresponding to the first data; and determining the third sequence information and the fourth sequence information as data to be processed when it is determined that the third sequence information conforms to the preset cigarette pack sequence setting rule and the fourth sequence information conforms to the preset cigarette handle sequence setting rule.

[0098] The preset cigarette pack sequence setting rules can be understood as the rules for setting the cigarette pack sequence information. By setting the preset cigarette pack sequence rules, it can be determined whether the third sequence information is correct and whether the numbers in the third sequence information meet the requirements. Similarly, the preset cigarette handle sequence setting rules can be understood as the rules for setting the cigarette handle sequence information. By setting the preset cigarette handle sequence rules, it can be determined whether the fourth sequence information is correct and whether the numbers in the fourth sequence information meet the requirements.

[0099] Specifically, the first data is parsed to determine the third and fourth sequence information. The third and fourth sequence information are then validated. If the third sequence information conforms to the preset cigarette pack sequence setting rules and the fourth sequence information conforms to the preset cigarette handle sequence setting rules, then the third and fourth sequence information are used as data to be processed.

[0100] It should be noted that if the third sequence information does not conform to the preset cigarette pack sequence setting rules or the fourth sequence information does not conform to the preset cigarette handle sequence setting rules, a corresponding prompt message will be generated to retrieve the first data from the target server again based on the prompt message. For example, the prompt message could be "Invalid or abnormal data exists, marked." Correspondingly, invalid or abnormal data can be marked in red, and the reason for the abnormality corresponding to the prompt message can be displayed. For example, the reason for the abnormality could be that the third sequence information is in the wrong format.

[0101] For example, in conjunction with the above example, after obtaining the first data, the first data is automatically parsed to determine the third sequence information, fourth sequence information, initial grade information of the cigarette pack, etc., and the above information is subjected to data integrity verification processing, such as whether the third sequence information conforms to the preset cigarette pack sequence setting rules.

[0102] S230. Based on the fourth sequence information in the data to be processed, determine the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed.

[0103] Specifically, the fourth sequence information in the data to be processed is parsed to determine the initial level information and trigger sequence information of the cigarette handle to be processed corresponding to the fourth sequence information.

[0104] S240. Based on the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed, retrieve the template to be used corresponding to the initial grade information of the cigarette handle to be processed.

[0105] The template to be used is one of several preset templates. The preset templates are pre-stored label templates that are compatible with various grades of cigarette handles.

[0106] Specifically, based on the initial grade information of the cigarette handle to be processed, a template that matches the initial grade information of the cigarette handle to be processed is retrieved from multiple preset templates.

[0107] S250. Determine the data to be filled in the data to be processed that corresponds to the template to be used, and fill the data to be filled into the template to be used to obtain the label to be printed corresponding to the cigarette handle to be processed and print it.

[0108] The data to be filled can be determined based on the parsing of the data to be processed. Optionally, the data to be filled may include: third sequence information, receiving station information corresponding to the third sequence information, receiving date and receiving batch number information, fourth sequence information, and initial grade information and triggering sequence information of the cigarette handle corresponding to the fourth sequence information, etc. The label to be printed can be the label of the cigarette handle to be printed.

[0109] Specifically, the data to be processed is parsed to obtain the receiving station information, receiving date, and receiving batch number information corresponding to the third sequence information, as well as the initial grade information and trigger sequence information of the tobacco bundle corresponding to the fourth sequence information. The third sequence information, fourth sequence information, receiving station information, receiving date, receiving batch number information, initial grade information of the tobacco bundle, and trigger sequence information are used as fill-in information and filled into the preset positions of the template to be used, resulting in the label to be printed corresponding to the tobacco bundle to be processed. After obtaining the label to be printed, the operating status of the printing device corresponding to the target terminal is determined. If the printing device is confirmed to be operating normally, the label to be printed is processed based on the printing device. This method of automatically matching the template to be used and filling in the data for printing can shorten printing time and effectively adapt to the timeliness requirements of the peak tobacco receiving season.

[0110] For example, the printing device can be a label printer. Multiple preset templates can be stored in a preset label template library. The preset label template library contains preset templates for different grades of cigarette handles (e.g., if the initial grade information of the cigarette handle to be processed is Medium Orange 1, then the corresponding preset template can be an orange font label template; if the initial grade information of the cigarette handle to be processed is Upper Orange 2, then the corresponding preset template can be a yellow font label template; the default template size is 80mm × 50mm, which can be customized). Based on the parsed initial grade information of the cigarette handle, the preset template is automatically matched to obtain the template to be used. For fixed fields in the template to be used (purchasing station name, national standard grade description), the preset content is automatically filled; for dynamic fields in the template to be used (third sequence information, fourth sequence information, printing time), the data to be filled is automatically filled according to the data to be filled corresponding to the data to be processed, so as to obtain the label to be printed.

[0111] For shipping labels to be printed, staff can select the labels to be printed from the corresponding data list (single or multiple selections are supported; when multiple selections are made, they are grouped and sorted according to the third sequence information), and click the "Print" button to send a print command to the connected label printer (resolution ≥ 300 dpi). Simultaneously, the "Print Status" field will be marked "Printed" and the print time will be recorded. If the printer is not connected or consumables are insufficient, a pop-up window will display "Printer not ready, please check device connection and consumables." Printing can be retried after the problem is resolved. To avoid duplicate printing of shipping labels, "Printed" labels can be marked as grayed out by default and cannot be selected. Reprinting is only possible after manually unmarking the label. It should be noted that recording the printing status of shipping labels can prevent duplicate printing or omissions, and the label printer supports grouping printing according to the fourth sequence information to avoid resource waste caused by duplicate printing and improve the batch processing efficiency of shipping labels.

[0112] It should be noted that the technical solution provided by the embodiments of this invention can reduce the data management deviation rate to below 0.1%. For example, in a test at a tobacco purchasing station, the information processing deviation rate for 500 batches of tobacco packs (a total of 12,000 tobacco bundles) was only 0.008%, far lower than the existing technology level, ensuring the accuracy of the correspondence between tobacco packs and tobacco bundles and providing reliable data support for subsequent traceability. The technical solution provided by the embodiments of this invention can effectively reduce labor costs; for example, only two staff members are needed, one to interact with the mobile terminal and the other to interact with the target terminal, significantly improving information processing efficiency.

[0113] It should also be noted that a complete traceability chain can be formed by recording information such as the pending use identifier (cigarette pack QR code), cigarette pack sequence information, cigarette handle sequence information, receiving time, and operator. This allows for quick (within 3 seconds) retrieval of the entire process information by scanning the cigarette pack QR code or entering the cigarette handle sequence information. Based on this, it is convenient to quickly locate problematic data or operators, enabling timely problem tracing and operator training, thereby improving the accuracy of quality control. Simultaneously, the above-mentioned entire process information can be visualized into corresponding charts for subsequent data analysis and management; for example, the entire process information can be exported as an Excel report.

[0114] The technical solution of this embodiment involves receiving first data sent by the target server and determining the data to be processed corresponding to the first data. Based on the fourth sequence information in the data to be processed, the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed is determined. According to the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed, the template to be used corresponding to the initial grade information of the cigarette handle to be processed is retrieved. The data to be filled in the data to be processed corresponding to the template to be used is determined, and the data to be filled in the template to be used is filled to obtain the label to be printed corresponding to the cigarette handle to be processed, and then printed. This invention achieves real-time synchronous processing of data between the mobile terminal and the target terminal through the target server. After the encrypted cigarette handle encoding information is uploaded to the mobile terminal, data parsing, template matching, and print triggering processing can be automatically completed by the target terminal without manual intervention. The overall process is seamless, solving the problem of weak process coordination in the prior art and improving the efficiency of label printing.

[0115] Example 3

[0116] Figure 3 This is a schematic diagram of a tobacco leaf receiving and processing device provided in Embodiment 3 of the present invention. This device is applied to a mobile terminal, such as... Figure 3 As shown, the device includes: a first sequence determination module 310, a second sequence determination module 320, an encoding information determination module 330, and an encoding information transmission module 340.

[0117] The first sequence determination module 310 is used to scan the identification mark affixed to the target cigarette pack in response to the cigarette pack information collection command, and determine the first sequence information corresponding to the identification mark; wherein, the first sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the target cigarette pack; the second sequence determination module 320 is used to obtain multiple second sequence information corresponding to the cigarette handle grading trigger operation in the target cigarette pack in response to the cigarette handle grading trigger operation; wherein, the second sequence information is used to characterize the initial cigarette handle level of each target cigarette handle in the target cigarette pack. The target tobacco pack includes multiple target tobacco bundles, each containing multiple tobacco leaves. An encoding information determination module 330 is used to encode the first sequence information and each of the multiple second sequence information to obtain tobacco bundle encoding information corresponding to each target tobacco bundle. An encoding information sending module 340 is used to sequentially send each encrypted tobacco bundle encoding information to the target server, so that the target server determines and stores the target data corresponding to the target tobacco bundle based on the encrypted tobacco bundle encoding information.

[0118] The technical solution of this embodiment, in response to a cigarette pack information collection command, scans the identification mark affixed to the target cigarette pack to determine the first sequence information corresponding to the target cigarette pack. In response to a graded trigger operation on the cigarette handle in the target cigarette pack, multiple second sequence information corresponding to the graded trigger operation are obtained. For each of the multiple second sequence information, the first sequence information and each second sequence information are encoded to obtain cigarette handle encoding information corresponding to each target cigarette handle. For each of the multiple cigarette handle encoding information, each encrypted cigarette handle encoding information is sent sequentially to the target server, so that the target server determines and stores the target data corresponding to the target cigarette handle based on the encrypted cigarette handle encoding information. This invention, by determining the cigarette handle encoding information corresponding to each target cigarette handle in the target cigarette pack, ensures the accuracy of the correspondence between the target cigarette pack and the target cigarette handle, and also ensures the accuracy of the information corresponding to the target cigarette pack and the target cigarette handle. This solves the problems of low information accuracy and inaccurate correspondence caused by manual recording of corresponding information in the prior art, improves the accuracy and efficiency of information management, and enhances data traceability.

[0119] Based on the above embodiments, optionally, the second sequence determination module is used to, for multiple target cigarette handles in the target cigarette pack, in response to a trigger operation for classifying the target cigarette handles, determine the initial grade information of the cigarette handles of the target cigarette handles; determine the grade identifier information corresponding to the initial grade information of the cigarette handles of the target cigarette handles according to a preset grade mapping relationship; determine the sequence number information corresponding to the target cigarette handles based on the trigger sequence information of the target cigarette handles; and concatenate the grade identifier information and the sequence number information to determine the second sequence information.

[0120] Optionally, the encoding information determination module is used to perform hash processing on the first sequence information to determine the hash value to be used corresponding to the first sequence information; process the first sequence information according to the first check bit generation algorithm to determine the first check identifier bit; obtain the cigarette pack encoding information corresponding to the target cigarette pack based on the hash value to be used and the first check identifier bit; process the first sequence information and the second sequence information according to the second check bit generation algorithm to determine the second check identifier bit; and determine the cigarette handle encoding information based on the cigarette pack encoding information, the second sequence information, and the second check identifier bit.

[0121] Optionally, the encoded information sending module includes: a target data determining unit, used to decrypt the encrypted cigarette handle encoding information, determine the cigarette handle encoding information, the cigarette pack encoding information corresponding to the cigarette handle encoding information, and the first verification identifier bit corresponding to the cigarette pack encoding information; determine the reference cigarette pack sequence information corresponding to the cigarette pack encoding information based on multiple pre-stored preset cigarette pack sequence information; process the reference cigarette pack sequence information based on the first verification identifier bit generation algorithm to determine the reference verification identifier bit; if the reference verification identifier bit is consistent with the first verification identifier bit, then bind the cigarette handle encoding information and the reference cigarette pack sequence information to obtain target data.

[0122] The tobacco leaf receiving information processing device provided in the embodiments of the present invention can execute the tobacco leaf receiving information processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0123] Example 4

[0124] Figure 4 This is a schematic diagram of a tobacco leaf receiving and processing device provided in an embodiment of the present invention. This device is applied to a target terminal, such as... Figure 4 As shown, the device includes: a data receiving module 410, a data parsing module 420, a grade information determination module 430, a template calling module 440, and a waybill printing module 450.

[0125] A data receiving module 410 is used to receive first data sent by a target server; wherein the first data is target data stored by the target server related to the cigarette handle to be processed in the cigarette pack to be processed; a data parsing module 420 is used to parse and process the first data to obtain the data to be processed corresponding to the first data; wherein the data to be processed includes at least: third sequence information corresponding to the cigarette pack to be processed and fourth sequence information corresponding to the cigarette handle to be processed, wherein the third sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the cigarette pack to be processed; and the fourth sequence information is used to characterize the initial status of the cigarette handle corresponding to the cigarette handle to be processed. The system includes: a grade information and trigger sequence information; a grade information determination module 430, used to determine the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed based on the fourth sequence information in the data to be processed; a template retrieval module 440, used to retrieve the template to be used corresponding to the initial grade information of the cigarette handle to be processed based on the initial grade information of the cigarette handle to be processed; wherein, the template to be used is a template among multiple preset templates; and a label printing module 450, used to determine the data to be filled in the data to be processed corresponding to the template to be used, and fill the data to be filled into the template to be used, thereby obtaining the label to be printed corresponding to the cigarette handle to be processed and printing it.

[0126] The technical solution of this embodiment involves receiving first data sent by the target server and determining the data to be processed corresponding to the first data. Based on the fourth sequence information in the data to be processed, the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed is determined. According to the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed, the template to be used corresponding to the initial grade information of the cigarette handle to be processed is retrieved. The data to be filled in the data to be processed corresponding to the template to be used is determined, and the data to be filled in the template to be used is filled to obtain the label to be printed corresponding to the cigarette handle to be processed, and then printed. This invention achieves real-time synchronous processing of data between the mobile terminal and the target terminal through the target server. After the encrypted cigarette handle encoding information is uploaded to the mobile terminal, data parsing, template matching, and print triggering processing can be automatically completed by the target terminal without manual intervention. The overall process is seamless, solving the problem of weak process coordination in the prior art and improving the efficiency of label printing.

[0127] Based on the above embodiments, optionally, a data parsing module is used to parse and process the first data to determine the third sequence information and the fourth sequence information corresponding to the first data; if it is determined that the third sequence information conforms to the preset cigarette pack sequence setting rules and the fourth sequence information conforms to the preset cigarette handle sequence setting rules, the third sequence information and the fourth sequence information are determined as data to be processed.

[0128] The tobacco leaf receiving information processing device provided in the embodiments of the present invention can execute the tobacco leaf receiving information processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0129] Example 5

[0130] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0131] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0132] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0133] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the tobacco leaf receiving information processing method.

[0134] In some embodiments, the tobacco leaf receiving information processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the tobacco leaf receiving information processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the tobacco leaf receiving information processing method by any other suitable means (e.g., by means of firmware).

[0135] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0136] Computer programs for implementing the tobacco leaf receiving information processing method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0137] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication unit 19, or installed from storage unit 18, or installed from ROM 12. When the computer program is executed by processor 11, it performs the functions defined in the methods of the embodiments of the present invention.

[0138] Example 6

[0139] Embodiment 6 of the present invention also provides a computer-readable storage medium storing computer instructions for causing a processor to execute a tobacco leaf receiving information processing method, applied to a mobile terminal, the method comprising:

[0140] In response to the cigarette pack information collection command, the identification mark affixed to the target cigarette pack is scanned to determine the first sequence information corresponding to the identification mark; wherein, the first sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the target cigarette pack;

[0141] In response to the graded triggering operation of the tobacco handle in the target tobacco pack, a plurality of second sequence information corresponding to the graded triggering operation of the tobacco handle is obtained; wherein, the second sequence information is used to characterize the initial grade information and triggering order information of the tobacco handle corresponding to each target tobacco handle in the target tobacco pack, the target tobacco pack: includes a plurality of target tobacco handles, and the target tobacco handle includes a plurality of tobacco leaves;

[0142] For the plurality of second sequence information, the first sequence information and each second sequence information are encoded to obtain the cigarette handle encoding information corresponding to each target cigarette handle;

[0143] For multiple cigarette handle codes, each encrypted cigarette handle code is sent sequentially to the target server, so that the target server determines and stores the target data corresponding to the target cigarette handle based on the encrypted cigarette handle code. Alternatively,

[0144] A method for processing tobacco leaf receiving information, applied to a target terminal, the method comprising:

[0145] Receive first data sent by the target server; wherein, the first data is target data stored by the target server that is related to the cigarette handle to be processed in the cigarette pack to be processed;

[0146] The first data is parsed to obtain the data to be processed corresponding to the first data; wherein, the data to be processed includes at least: third sequence information corresponding to the cigarette pack to be processed and fourth sequence information corresponding to the cigarette handle to be processed, wherein the third sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the cigarette pack to be processed; wherein the fourth sequence information is used to characterize the initial grade information and triggering sequence information of the cigarette handle corresponding to the cigarette handle to be processed;

[0147] Based on the fourth sequence information in the data to be processed, determine the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed;

[0148] Based on the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed, the template to be used corresponding to the initial grade information of the cigarette handle to be processed is retrieved; wherein, the template to be used is a template among multiple preset templates;

[0149] Identify the data to be filled in the data to be processed that corresponds to the template to be used, and fill the data to be filled into the template to be used to obtain the label to be printed corresponding to the cigarette handle to be processed and print it.

[0150] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0151] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0152] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0153] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0154] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0155] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for processing tobacco leaf receiving information, characterized in that, Applied to a mobile terminal, the method includes: In response to the cigarette pack information collection command, the identification mark affixed to the target cigarette pack is scanned to determine the first sequence information corresponding to the identification mark; wherein, the first sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the target cigarette pack; In response to the graded triggering operation of the tobacco handle in the target tobacco pack, a plurality of second sequence information corresponding to the graded triggering operation of the tobacco handle is obtained; wherein, the second sequence information is used to characterize the initial grade information and triggering order information of the tobacco handle corresponding to each target tobacco handle in the target tobacco pack, the target tobacco pack: includes a plurality of target tobacco handles, and the target tobacco handle includes a plurality of tobacco leaves; For the plurality of second sequence information, the first sequence information and each second sequence information are encoded to obtain the cigarette handle encoding information corresponding to each target cigarette handle; For multiple cigarette handle codes, each encrypted cigarette handle code is sent to the target server in sequence, so that the target server can determine the target data corresponding to the target cigarette handle based on the encrypted cigarette handle code and store and process it.

2. The method according to claim 1, characterized in that, In response to the grading trigger operation of the cigarette handle in the target cigarette pack, a plurality of second sequence information corresponding to the grading trigger operation of the cigarette handle is obtained, including: For multiple target cigarette handles in the target cigarette pack, in response to a trigger operation that grades the target cigarette handles, the initial grade information of the cigarette handles is determined. Based on the preset level mapping relationship, determine the level identification information corresponding to the initial level information of the target cigarette handle; Based on the triggering sequence information of the target cigarette holder, determine the sequence number information corresponding to the target cigarette holder; The grade identification information and the sequence number information are concatenated to determine the second sequence information.

3. The method according to claim 1, characterized in that, The step of encoding the first sequence information and each second sequence information to obtain the cigarette handle encoding information corresponding to each target cigarette handle includes: Perform hash processing on the first sequence information to determine the hash value to be used corresponding to the first sequence information; The first sequence information is processed according to the first check bit generation algorithm to determine the first check identifier bit; Based on the hash value to be used and the first verification identifier, the cigarette pack encoding information corresponding to the target cigarette pack is obtained; The first sequence information and the second sequence information are processed according to the second check bit generation algorithm to determine the second check bit; The cigarette handle encoding information is determined based on the cigarette pack encoding information, the second sequence information, and the second verification identifier.

4. The method according to claim 1, characterized in that, The step of determining the target data corresponding to the target cigarette handle based on the encrypted cigarette handle encoding information includes: The encrypted cigarette handle encoding information is decrypted to determine the cigarette handle encoding information, the cigarette pack encoding information corresponding to the cigarette handle encoding information, and the first verification flag bit corresponding to the cigarette pack encoding information; Based on multiple pre-stored preset cigarette pack sequence information, determine the reference cigarette pack sequence information corresponding to the cigarette pack encoding information; The reference cigarette pack sequence information is processed based on the first check bit generation algorithm to determine the reference check identifier bit; If the reference verification flag bit matches the first verification flag bit, the cigarette handle encoding information is bound to the reference cigarette pack sequence information to obtain the target data.

5. A method for processing tobacco leaf receiving information, characterized in that, Applied to a target terminal, the method includes: Receive first data sent by the target server; wherein, the first data is target data stored by the target server that is related to the cigarette handle to be processed in the cigarette pack to be processed; The first data is parsed to obtain the data to be processed corresponding to the first data; wherein, the data to be processed includes at least: third sequence information corresponding to the cigarette pack to be processed and fourth sequence information corresponding to the cigarette handle to be processed, wherein the third sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the cigarette pack to be processed; wherein the fourth sequence information is used to characterize the initial grade information and triggering sequence information of the cigarette handle corresponding to the cigarette handle to be processed; Based on the fourth sequence information in the data to be processed, determine the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed; Based on the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed, the template to be used corresponding to the initial grade information of the cigarette handle to be processed is retrieved; wherein, the template to be used is a template among multiple preset templates; Identify the data to be filled in the data to be processed that corresponds to the template to be used, and fill the data to be filled into the template to be used to obtain the label to be printed corresponding to the cigarette handle to be processed and print it.

6. The method according to claim 5, characterized in that, The step of parsing the first data to obtain the data to be processed corresponding to the first data includes: The first data is parsed to determine the third sequence information and the fourth sequence information corresponding to the first data. If the third sequence information conforms to the preset cigarette pack sequence setting rule and the fourth sequence information conforms to the preset cigarette handle sequence setting rule, the third sequence information and the fourth sequence information are determined as data to be processed.

7. A tobacco leaf receiving and information processing device, characterized in that, The device, applied to a mobile terminal, includes: The first sequence determination module is used to scan the identification mark affixed to the target cigarette pack in response to the cigarette pack information collection command, and determine the first sequence information corresponding to the identification mark; wherein, the first sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the target cigarette pack; The second sequence determination module is used to obtain multiple second sequence information corresponding to the tobacco handle grading trigger operation in response to the tobacco handle grading trigger operation in the target tobacco pack; wherein, the second sequence information is used to characterize the initial grade information and triggering order information of each target tobacco handle in the target tobacco pack, the target tobacco pack includes multiple target tobacco handles, and the target tobacco handle includes multiple tobacco leaves; The encoding information determination module is used to encode the first sequence information and each second sequence information for the plurality of second sequence information to obtain the cigarette handle encoding information corresponding to each target cigarette handle; The encoding information sending module is used to sequentially send each encrypted cigarette handle encoding information to the target server for multiple cigarette handle encoding information, so that the target server can determine the target data corresponding to the target cigarette handle based on the encrypted cigarette handle encoding information and store and process it.

8. A tobacco leaf receiving and information processing device, characterized in that, Applied to a target terminal, the device includes: The data receiving module is used to receive the first data sent by the target server; wherein the first data is target data stored by the target server that is related to the cigarette handle to be processed in the cigarette pack to be processed; A data parsing module is used to parse and process the first data to obtain the data to be processed corresponding to the first data; wherein, the data to be processed includes at least: third sequence information corresponding to the cigarette pack to be processed and fourth sequence information corresponding to the cigarette handle to be processed, wherein the third sequence information is used to characterize the receiving station information, receiving date and receiving batch number information of the cigarette pack to be processed; and the fourth sequence information is used to characterize the initial grade information and triggering sequence information of the cigarette handle corresponding to the cigarette handle to be processed. The grade information determination module is used to determine the initial grade information of the cigarette handle corresponding to the cigarette handle to be processed based on the fourth sequence information in the data to be processed; The template calling module is used to retrieve the template to be used corresponding to the initial grade information of the cigarette handle to be processed, based on the initial grade information of the cigarette handle to be processed; wherein, the template to be used is a template among multiple preset templates; The label printing module is used to determine the data to be filled in the data to be processed that corresponds to the template to be used, and to fill the data to be filled into the template to be used, so as to obtain the label to be printed corresponding to the cigarette handle to be processed and print it.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the tobacco leaf receiving information processing method according to any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that are used to cause a processor to execute the tobacco leaf receiving information processing method according to any one of claims 1-6.