Method for Associating Cigarette Carton and Strip Two-Dimensional Code Information with Multi-Point Verification Function

By adding box code inspection stations and reasonable data repair methods to the cigarette packaging machine, the problem of low QR code reading rate of the cigarette packaging machine is solved, improving the yield rate and maintaining decoding efficiency.

CN116265340BActive Publication Date: 2025-08-01NEW TREND INT LOGIS TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111557397.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-19
Publication Date
2025-08-01
Estimated Expiration
2041-12-19

AI Technical Summary

Technical Problem

The existing cigarette packaging machines have low reading rate during QR code reading, resulting in a decrease in yield rate, failing to effectively utilize the data repair function, resulting in an increase in the records of reading failure and a large number of goods were eliminated.

Method used

Add a box code inspection station before the box code reading station, process the barcode that fails to be read by the pre-read queue and the main read queue, and insert separators or separators in appropriate locations to optimize the data repair process and ensure the accuracy of data association.

Benefits of technology

Through the data repair method of multi-point checksum optimization, the information association failure caused by reading failure is reduced, the yield rate is improved, and the efficiency of decoding time is maintained.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and discloses a method for associating cigarette carton and strip two-dimensional code information with a multi-point verification function. By means of a better scheme, the head and tail positioning codes of the cigarette carton and strip two-dimensional code information are determined. At the same time, at reasonable verification positions and with better data repair, the rejection of strips caused by the failure of associating strip information due to the existence of unreadable records in the carton code queue and the failure of reading at the carton code verification station is greatly reduced, and the yield is increased. Using a phase insertion delimiter does not require reducing the decoding time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and particularly to a method for associating cigarette carton and strip two-dimensional code information with multi-point verification function. Background Art

[0002] The auxiliary machine of the tobacco packaging machine is responsible for processes such as adding small transparencies to small boxes, packing small boxes into strips, and adding strip transparencies to strip boxes. The equipment has a high degree of automation and good integration. At present, the State Tobacco Monopoly Administration is organizing technical forces to track tobacco products by adding two-dimensional codes to tobacco product packaging. Therefore, it is necessary to transform the existing tobacco packaging machines to achieve the reading of two-dimensional codes on the production line. Due to the limitations of the existing equipment and working conditions on the production line, in addition to installing barcode readers, a series of data recovery and verification are also required to improve the data reading rate and ensure accuracy.

[0003] In the actual existing test solutions, the data repair function is not used. Due to the influence of the recognition rate, a large number of goods are rejected, resulting in a decrease in the actual finished product rate. Chinese Patent Document CN2021106475822 discloses a method and device for associating cigarette carton and strip two-dimensional code information with verification function, which is different in the verification position, the data recovery method, and the method of pulling small box data corresponding to strip cigarettes.

[0004] The present invention provides a method for associating cigarette carton and strip two-dimensional code information with multi-point verification function, which reduces the rejection of strips caused by the failure of associating strip information due to the existence of unreadable records in the carton code queue and the failure of reading at the carton code verification station, increases the finished product rate, and uses phase insertion delimiters without the need to reduce the decoding time. Summary of the Invention

[0005] The purpose of the present invention is to provide a method for associating cigarette carton and strip two-dimensional code information with multi-point verification function, which reduces the rejection of strips caused by the failure of associating strip information due to the existence of unreadable records in the carton code queue and the failure of reading at the carton code verification station, and increases the finished product rate.

[0006] To achieve the above technical purpose and reach the above technical effect, the present invention discloses a method for associating cigarette carton and strip two-dimensional code information with multi-point verification function.

[0007] First, before the carton code reading station, there will be a carton code inspection station. The carton code inspection station is usually located before the small carton is wrapped in the small transparent film. It is used to verify the quality of the two-dimensional code and reject it when the reading fails. The small cartons after being read by the carton code inspection station may be rejected due to unreadable two-dimensional codes or other reasons (failed appearance inspection, hot start). For the vacancies generated by the rejection, the equipment body will fill them through a supplementary packer before the carton code reading station. The barcodes read by the carton code inspection station (Item information: where State.Decoded is set, BarCode stores the recognized barcode, the same below, or the position where the recognition fails: Item information, where State.Decoded is not set, the same below) are put into the "pre-reading queue". For those rejected due to non-software reasons (such as failed equipment appearance detection, hot start, etc.) after being scanned by the carton code inspection station, the ToBeEjected corresponding to the small carton data should be set. If the carton code reading station is designed to read one barcode each time: the read barcode (or the position where the recognition fails) is put into the "main reading queue"; if the carton code reading station is designed to read two barcodes in a stacked package each time, there will be three possibilities. 1. If two barcodes can be successfully read or it can be confirmed which small cartons the unread barcodes belong to: in the order consistent with the pre-reading queue according to the stacking order, the two barcode information (or the positions where the recognition fails) are put into the "main reading sequence". 2. If one barcode can be read: an ItemWithMissingPair information (where State.Decoded is set and BarCode stores the recognized barcode) is put into the "main reading sequence". 3. If no barcode can be read: an ItemWithMissingPair information (where State.Decoded is not set) is put into the "main reading sequence"; or two Item information (where State.Decoded is not set) are put into the "main reading sequence".

[0008] Secondly, when the carton code reading station of the packaging machine can determine that the current scanning position is the first pack (or the first two packs) of a strip based on the phase, before triggering the scanning, a Splitter object is inserted into the "main reading queue". This object will be used to split the small carton data. This splitting method is called the delimiter method below. When associating the carton and strip data, the delimiter method and the split code method are two mutually exclusive methods;

[0009] When using the delimiter method,

[0010] S1. At an appropriate trigger position (such as the generation moment of the 25 - flat package, the trigger moment at the barcode reading station, etc.), extract the data in the box code queue, form a box code package, and place it in the "box code package queue". The rule for forming a data package is to continuously extract multiple box codes from the "box code queue" until a Splitter object is extracted. The Validated property of the package uses late binding (calculating the value of the expression each time it is obtained), and its expression is:

[0011] a. When the number of small box barcode elements in the package is 10 and the Validated of each element is true, set it to True;

[0012] b. In other cases, set it to False;<s

[0013] c. This method does not set the Pending state;

[0014] S2. When data is added to the "barcode reading queue", extract the data as the barcode to be bound, extract a package (containing multiple box codes) from the "box code package queue", and bind the barcode and the box code as box - barcode associated data. Its state uses late binding (calculating the value of the expression each time it is obtained), and its expression is:

[0015] a. When the barcode's Validated is true and the box code package's Validated is True, set it to True;

[0016] b. In other cases, set it to False;

[0017] c. This method does not set the Pending state;

[0018] S3. Due to the difference in the number of workstations between the packing trigger moment and the barcode reading station, it is necessary to manually count the number of small boxes (accurate to the number of strips) between the two, and insert a Splitter object at the head of the "box code queue" according to the number of strips (rounded up) for workstation alignment;

[0019] When using the separator code method,

[0020] W1. It is necessary to add a box code verification workstation. According to the model limitations, it can usually be installed at a position suitable for reading the barcode of the first stack (the 1st / 2nd package) of the 25 - flat package or at a position suitable for reading the barcode of the fifth stack (the 9th / 10th package) of the 25 - flat package;

[0021] W2. The box code verification workstation reads two barcodes of one stack (two boxes) at a time, and the value returned each time is packed and placed in the "box code verification queue". The acceptable return values are:

[0022] a. When two barcodes are successfully read: Return two barcode elements (BarCodeWithLocation objects) with Location attribute values (location numbers, such as 1 / 2 / 9 / 10).

[0023] b. When one barcode is successfully read: Return one barcode element (BarCodeWithLocation object) without a Location attribute value.

[0024] c. When no barcode is read: Return an empty array.

[0025] W3. At appropriate trigger positions (such as the generation moment of the 25-piece flat package, the trigger moment of the barcode reading station, the trigger moment of the box code verification station, etc.), extract the data in the box code queue, form a box code package, and place it in the "box code package queue".

[0026] W4. After data is added to the "barcode reading queue", extract its data as the barcode to be bound, extract one package (containing multiple box codes) from the "box code package queue", and bind the barcode and the box code as box-barcode associated data. Its status adopts late binding (calculate the value of the expression each time it is obtained), and its expression is:

[0027] a. When the barcode Validated is true and the Validated of the box code package is True, set it to True.

[0028] b. When the barcode Validated is true and the Validated of the box code package is Pending, set it to Pending.

[0029] c. In other cases, set it to False.

[0030] W5. At the packing trigger moment, there is a difference in the number of workstations between the barcode reading station. It is necessary to manually count the number of small boxes between the two (accurate to the number of strips), and insert an empty package object at the head of the "box code package queue" according to the number of strips (rounded up) for workstation alignment.

[0031] The present invention has the following beneficial effects: At reasonable verification positions and with better data repair, it greatly reduces the rejection of strips caused by the failure of reading records in the box code queue and the failure of reading at the box code verification station, increasing the yield. Using phase insertion delimiters does not require reducing the decoding time. Detailed implementation manners

[0032] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments.

[0033] The present invention discloses a method for associating cigarette carton and strip two-dimensional code information with a multi-point verification function, characterized in that:

[0034] First, before the carton code reading station, there is also a carton code inspection station, which is usually located before the small box is inserted into the small transparent film, used to verify the quality of the two-dimensional code and reject it when the reading fails. The small box after being read by the carton code inspection station may be rejected due to unreadable two-dimensional code or other reasons (failed appearance inspection, hot start). For the vacancies generated by the rejection, the equipment body will make up for them through a replenishing device before the carton code reading station. The barcodes read by the carton code inspection station (Item information: where State.Decoded is set, BarCode stores the recognized barcode, the same below, or the position where recognition fails: Item information, where State.Decoded is not set, the same below) are put into the "pre-reading queue". If the small box is rejected due to non-software reasons (such as failed equipment appearance inspection, hot start, etc.) after being scanned by the carton code inspection station, the ToBeEjected corresponding to the small box data should be set. If the carton code reading station is designed to read one barcode each time: the read barcode (or the position where recognition fails) is put into the "main reading queue"; if the carton code reading station is designed to read two stacked barcodes each time, there are three possibilities: 1. If two barcodes can be successfully read or the small box to which the unread barcode belongs can be confirmed: in the order consistent with the pre-reading queue according to the stacking order, the two barcode information (or the position where recognition fails) are put into the "main reading sequence"; 2. If one barcode can be read: an ItemWithMissingPair information (where State.Decoded is set and BarCode stores the recognized barcode) is put into the "main reading sequence"; 3. If no barcode can be read: an ItemWithMissingPair information (where State.Decoded is not set) is put into the "main reading sequence"; or two Item information (where State.Decoded is not set) are put into the "main reading sequence";

[0035] Secondly, when the carton code reading station of the packaging machine can judge that the current scanning position is the first pack (or the first two packs) of a strip according to the phase, before triggering the scanning, a Splitter object is inserted into the "main reading queue", and this object will be used to split the small box data. This splitting method is hereinafter referred to as the delimiter method. When associating the carton and strip data, the delimiter method and the split code method are two mutually exclusive methods;

[0036] When using the delimiter method,

[0037] S1. At an appropriate trigger position (such as the generation moment of the 25-ping package, the trigger moment of the barcode reading station, etc.), extract the data in the box code queue, form a box code package, and place it in the "box code package queue". The rule for forming the data package is to continuously extract multiple box codes from the "box code queue" until a Splitter object is extracted. The Validated attribute of the package uses late binding (calculating the value of the expression each time it is obtained), and its expression is:

[0038] a. When the number of small box barcode elements in the package is 10 and the Validated of each element is true, set it to True;

[0039] b. In other cases, set it to False;

[0040] c. This method does not set the Pending state;

[0041] S2. When data is added to the "barcode reading queue", extract the data as the barcode to be bound, extract a package (containing multiple box codes) from the "box code package queue", and bind the barcode and the box code as box-barcode associated data. Its state uses late binding (calculating the value of the expression each time it is obtained), and its expression is:

[0042] a. When the barcode Validated is true and the Validated of the box code package is True, set it to True;

[0043] b. In other cases, set it to False;

[0044] c. This method does not set the Pending state;

[0045] S3. Due to the difference in the number of workstations between the packing trigger moment and the barcode reading station, it is necessary to manually count the number of small boxes between the two (accurate to the number of strips), and insert a Splitter object at the head of the "box code queue" according to the number of strips (rounded up) for workstation alignment;

[0046] When using the separator code method,

[0047] W1. It is necessary to add a box code verification workstation. According to the model limitations, it can usually be installed at a position suitable for reading the barcode of the first stack (the 1st / 2nd package) of the 25-ping package or at a position suitable for reading the barcode of the fifth stack (the 9th / 10th package) of the 25-ping package;

[0048] W2. The box code verification workstation reads two barcodes of one stack (two boxes) at a time, and the value returned each time is packed and placed in the "box code verification queue". The acceptable return values are:

[0049] a. When two barcodes are successfully read: Return two barcode elements (BarCodeWithLocation objects) with Location attribute values (location numbers, e.g., 1 / 2 / 9 / 10).

[0050] b. When one barcode is successfully read: Return one barcode element (BarCodeWithLocation object) without a Location attribute value.

[0051] c. When no barcode is read: Return an empty array.

[0052] W3. At an appropriate trigger position (e.g., the generation moment of the 25-piece flat package, the trigger moment of the barcode reading station, the trigger moment of the box barcode verification station, etc.), extract the data in the box barcode queue, form a box barcode package, and place it in the "box barcode package queue".

[0053] W4. After data is added to the "barcode reading queue", extract its data as the barcode to be bound, extract a package from the "box barcode package queue" (containing multiple box barcodes), and bind the barcode and the box barcode as box-barcode association data. Its status uses late binding (calculate the value of the expression each time it is obtained), and its expression is as follows:

[0054] a. When the barcode Validated is true and the Validated of the box barcode package is True, set it to True.

[0055] b. When the barcode Validated is true and the Validated of the box barcode package is Pending, set it to Pending.

[0056] c. In other cases, set it to False.

[0057] W5. At the packing trigger moment, there is a difference in the number of workstations between the barcode reading station. It is necessary to manually count the number of small boxes between the two (accurate to the number of strips), and insert an empty package object at the head of the "box barcode package queue" according to the number of strips (rounded up) for workstation alignment.

[0058] Enumerations used:

[0059] BarCodeStates: byte;

[0060] Undefined = 0, Requested = 1, ScanningSucceeded = 7, ScanningFailed = 11, EjectRequested = 15;

[0061] Bit sequence (from low to high):

[0062] Requested: Scanning applied;

[0063] Scanned: Scanning triggered;

[0064] Decoded: Decoding received;

[0065] ToBeEjected: Rejection from other reasons;

[0066] 0: Not used in this invention;

[0067] 0: Not used in this invention;

[0068] 0: Not used in this invention;

[0069] 0: Not used in this invention;

[0070] Note: Only the cartons with the status of ScanningSucceeded (bit sequence 00000100) will not be rejected;

[0071] PackageValidation: byte;

[0072] True: Validation successful;

[0073] False: Confirmation failed;

[0074] Pending: To be confirmed. It means that it is not possible to confirm whether this package is successfully validated or failed at this moment;

[0075] Undefined: Undefined;

[0076] Entities used:

[0077] Entity Class:;

[0078] StreamAbstractItem;

[0079] int Length;

[0080] bool Validated = false;

[0081] StatefulItem;

[0082] BarCodeStates State;

[0083] Item: StatefulItem;

[0084] string BarCode;

[0085] int Length = 1;

[0086] bool Validated = State == ScanningSucceeded;

[0087] ItemWithMissingPair: The Item indicates that for two Items in the stacked package, at most one barcode has been read, and it is impossible to confirm which one is missing (if the State is abnormal, both are missing);

[0088] int Length = 2;

[0089] bool Validated = false;

[0090] PlaceHolder: StatefulItem represents a placeholder;

[0091] int Length = 1;

[0092] BarCodeStates State = 8 (ToBeEjected);

[0093] Splitter: StreamAbstractItem represents a separator. It is used to split cigarette data in the present invention;

[0094] int Length = 0;

[0095] Package;

[0096] PackageValidation Validated;

[0097] Nullable <guid>StorageId;

[0098] Item[] Items;

[0099] BarCodeWithLocation: Item;

[0100] int Location.

[0101] Advantages of the present invention: At reasonable verification positions and with better data repair, the rejection of barcodes caused by the failure of reading records in the box code queue and the failure of reading at the box code verification station, which leads to the failure of barcode information association, is greatly reduced, and the yield is increased. By using phase insertion delimiters, there is no need to reduce the decoding time.

[0102] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed by the present invention should be covered by the protection scope of the present invention.< / guid>

Claims

1. A method for associating two-dimensional barcode information of cigarette cartons and cartons with a multi-point verification function, characterized in that: First, before the carton code reading station, there is also a carton code inspection station. The carton code inspection station is located before the small carton enters the small transparent box and is used to verify the quality of the two-dimensional bar code and reject it in case of reading failure. For the small cartons after being read by the carton code inspection station, if the two-dimensional bar code cannot be read or for other reasons (such as failed appearance inspection or hot start), the small cartons are rejected. The empty positions caused by rejection will be filled by the equipment body through a replenisher before the carton code reading station. For the two-dimensional bar codes read by the carton code inspection station, the two-dimensional bar code includes Item information: where State.Decoded is set, BarCode stores the recognized two-dimensional bar code, and the same below; or the positions where recognition fails: State.Decoded in the Item information is not set, and the same below. They are put into the "pre-reading queue". For those rejected due to non-software reasons (such as failed equipment appearance detection or hot start) after being scanned by the carton code inspection station, the ToBeEjected corresponding to the small carton data will be set. If the carton code reading station is designed to read one two-dimensional bar code each time: the read two-dimensional bar code or the position where recognition fails is put into the "main reading queue"; if the carton code reading station is designed to read two two-dimensional bar codes of stacked cartons each time, there are three possibilities:

1. If two two-dimensional bar codes can be successfully read or the small cartons to which the unread two-dimensional bar codes belong can be confirmed: in the order consistent with the pre-reading queue according to the stacking order of the cartons, the two two-dimensional bar code information or the positions where recognition fails are put into the "main reading queue"; 2. If one two-dimensional bar code can be read: an ItemWithMissingPair information is put into the "main reading queue", where State.Decoded is set and BarCode stores the recognized two-dimensional bar code; 3. If no two-dimensional bar code can be read: an ItemWithMissingPair information is put into the "main reading queue", where State.Decoded is not set; or two Item information are put into the "main reading queue", where State.Decoded is not set; Second, when the carton code reading station of the packaging machine can judge that the current scanning position is the first carton or the first two cartons of a strip according to the phase, before triggering the scanning, a Splitter object is inserted into the "main reading queue". This object will be used to split the small carton data. This splitting method is hereinafter referred to as the delimiter method. When associating the carton and strip data, the delimiter method and the delimiter code method are two mutually exclusive methods; When using the delimiter method, S1. At appropriate trigger positions, including the generation moment of the two-five flat package and the trigger moment of the two-dimensional bar code reading station, extract the data in the carton code queue to form a carton code package and place it in the "carton code package queue". The rule for forming the carton code package is to continuously extract multiple carton codes from the "carton code queue" until the Validated attribute of the Splitter object package is late-bound, and the value of the calculation expression is bound each time it is obtained. The expression is: a. Set it to True when the number of 2D barcode elements in the carton code package is 10 and the Validated of each 2D barcode element is true. b. Set it to False in other cases. c. This method does not set the Pending status. S2. After data is added to the "strip 2D barcode reading queue", extract the data as the strip 2D barcode to be bound. Extract a carton code package from the "carton code package queue", which contains multiple carton codes. Bind the strip 2D barcode and the carton code into carton-strip association data. Its status uses late binding, and the value of the calculation expression is calculated each time it is obtained. The expression is: a. Set it to True when the Validated of the strip 2D barcode is true and the Validated of the carton code package is True. b. Set it to False in other cases. c. This method does not set the Pending status. S3. Due to the difference in the number of workstations between the packing trigger time and the 2D barcode reading workstation, it is necessary to manually count the number of small cartons between the two and round up to the nearest whole number according to the number of strips, and insert a Splitter object at the head of the "carton code queue" for workstation alignment. When using the separator code method, W1. It is necessary to add a carton code verification workstation, which is installed at a position suitable for reading the 2D barcodes of the first stack or the fifth stack of the 25 flat packages according to the model restrictions. The first stack is the first and second cartons, and the fifth stack is the ninth and tenth cartons. W2. The carton code verification workstation reads two 2D barcodes of one stack at a time, two cartons in one stack, and the values returned each time are packed and placed in the "carton code verification queue". The acceptable return values are: a. When two 2D barcodes are successfully read: Return two 2D barcode elements with Location attribute values, and their position numbers are 1, 2, 9, and 10, which are BarCodeWithLocation objects. b. When one 2D barcode is successfully read: Return a 2D barcode element without a Location attribute value, which is a BarCodeWithLocation object. c. When no 2D barcode is read: Return an empty array. W3. At appropriate trigger positions, including the generation time of the 25 flat packages, the trigger time of the 2D barcode reading workstation, and the trigger time of the carton code verification workstation, extract the data in the carton code queue, form a carton code package, and place it in the "carton code package queue". W4. After data is added to the "strip 2D barcode reading queue", extract the data as the strip 2D barcode to be bound. Extract a carton code package from the "carton code package queue", which contains multiple carton codes. Bind the strip 2D barcode and the carton code into carton-strip association data. Its status uses late binding, and the value of the calculation expression is calculated each time it is obtained. The expression is: a. Set it to True when the Validated of the strip 2D barcode is true and the Validated of the carton code package is True. b. Set it to Pending when the Validated of the strip 2D barcode is true and the Validated of the carton code package is Pending. c. Set it to False in other cases. At the moment of W5 packing trigger, there is a difference in the number of workstations between the two-dimensional barcode reading station. It is necessary to manually count the number of small boxes between the two, and round up to the nearest whole number according to the number of strips, and insert an empty package object at the head of the "box code package queue" for workstation alignment.

Citation Information

Patent Citations

  • Automatic proofreading system and method for cigarette packaging two-dimension codes

    CN105217074A

  • Cigarette packet introduced two-dimensional code detecting and information-associating system

    CN110733690A