A method and apparatus for data association
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING ACCTRUE TECH CO LTD
- Filing Date
- 2022-12-02
- Publication Date
- 2026-05-26
AI Technical Summary
[0003]现有技术中,关联关系数据采集存在采集率低、关联关系数据准确率低等问题
[0017] The above-mentioned at least one technical solution adopted in the embodiments of this disclosure can achieve the following beneficial effects: by collecting the large box code of the large box to be collected, a first data queue is formed; after the large box to be collected is loaded onto the pallet, the large box code of the large box to be collected on the top of the pallet is collected to form a second data queue, and the second data queue corresponds one-to-one with the large box code of the large box to be collected on the top of the pallet; based on the first data queue and the second data queue, pallet-associated large box data is obtained; the pallet-associated large box data is associated with the virtual pallet code to generate box-pallet association data, thereby realizing data association, which can improve the accuracy and reliability of data association, and can also improve the efficiency of data association.
Smart Images

Figure CN116303633B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of coding technology and automatic control of equipment, and in particular to a method and apparatus for data association. Background Technology
[0002] Currently, coding and data association technologies have become crucial components of IoT technology on automated production lines, forming its data foundation. Based on these technologies, data-driven factory operations, supply chain management, and consumer marketing can be achieved. Therefore, the requirements for product data association rates on production lines are extremely high.
[0003] In existing technologies, the collection of relational data suffers from problems such as low collection rate and low accuracy of relational data.
[0004] Therefore, a new data association method is proposed. Summary of the Invention
[0005] The technical problem to be solved by the present invention is that in the prior art, the collection of correlation data has problems such as low collection rate and low accuracy of correlation data.
[0006] The embodiments disclosed herein employ the following technical solutions:
[0007] This specification provides an embodiment of a data association method, which includes:
[0008] Collect the box codes of the large boxes to be collected to form the first data queue;
[0009] After the large box to be collected is loaded onto the pallet, the box code of the large box to be collected on the top of the pallet is collected to form a second data queue. The second data queue corresponds one-to-one with the box code of the large box to be collected on the top of the pallet.
[0010] Based on the first data queue and the second data queue, obtain pallet-associated large box data;
[0011] The pallet-associated large box data is linked with the virtual pallet code to generate box-pallet associated data, thus realizing data association.
[0012] This specification also provides a data association apparatus, which includes:
[0013] The large box acquisition module collects the box codes of the large boxes to be collected, forming the first data queue.
[0014] The pallet acquisition module collects the box codes of the large boxes to be acquired from the top of the pallet after the large boxes to be acquired are loaded onto the pallet, forming a second data queue. The second data queue corresponds one-to-one with the box codes of the large boxes to be acquired from the top of the pallet.
[0015] The calculation module obtains pallet-associated large box data based on the first data queue and the second data queue;
[0016] The association module associates the pallet-associated large box data with the virtual pallet code to generate box-pallet association data, thereby realizing data association.
[0017] The above-mentioned at least one technical solution adopted in the embodiments of this disclosure can achieve the following beneficial effects: by collecting the large box code of the large box to be collected, a first data queue is formed; after the large box to be collected is loaded onto the pallet, the large box code of the large box to be collected on the top of the pallet is collected to form a second data queue, and the second data queue corresponds one-to-one with the large box code of the large box to be collected on the top of the pallet; based on the first data queue and the second data queue, pallet-associated large box data is obtained; the pallet-associated large box data is associated with the virtual pallet code to generate box-pallet association data, thereby realizing data association, which can improve the accuracy and reliability of data association, and can also improve the efficiency of data association. Attached Figure Description
[0018] Figure 1 A schematic diagram of a data association system provided in an embodiment of this disclosure;
[0019] Figure 2 This is a schematic diagram illustrating a data association method provided in an embodiment of the present disclosure;
[0020] Figure 3 This is a schematic diagram illustrating the process of forming pallet-associated large box data as provided in the embodiments of this specification;
[0021] Figure 4 This is a schematic diagram of a data association device provided in an embodiment of the present disclosure. Detailed Implementation
[0022] The specific embodiments of the present invention will be described in detail below to facilitate a further understanding of the invention.
[0023] In this embodiment of the disclosure, in order to realize data association on an automated production line, this specification provides a hardware system for realizing data association. Figure 1 This is a schematic diagram of a data association system provided as an embodiment of this specification. For example... Figure 1 As shown, the system includes a main control system C1, a large box barcode reader S1, and a pallet-top barcode reader S2. Specifically, the main control system C1 records data from the large box barcode reader S1 and the pallet-top barcode reader S2, and calculates the box-pallet relationship. The large box barcode reader S1, also known as the large box traceability code scanner, is used to collect data from the QR code or barcode of each large box. The pallet-top barcode reader S2 is used to collect data from the QR code or barcode of the large box on the top layer of the pallet.
[0024] A barcode reader, also known as a scanner, is a device used to read the information contained in a barcode or QR code. The structure of a barcode scanner typically consists of the following parts: a light source, a receiving device, a photoelectric conversion component, a decoding circuit, and a computer interface.
[0025] Traceability codes refer to the unique QR code or one-dimensional code on each product to track the flow of goods. One code per item is like an ID card for each person, which can prevent counterfeit goods and cross-selling.
[0026] The large box code refers to the traceability code on the outer packaging of a product's large box. For example, a case of beer has a traceability code on its large box.
[0027] Based on the data association system provided in the embodiments of this specification, the embodiments of this specification also provide a schematic diagram of a data association method. Figure 2 This is a schematic diagram of a data association method provided in an embodiment of the present disclosure, such as... Figure 2 As shown, the method includes the following steps:
[0028] Step S201: Collect the box code of the large box to be collected to form the first data queue.
[0029] In this embodiment of the specification, the step of collecting the large box code of the large box to be collected to form a first data queue specifically includes:
[0030] Collect the QR code or barcode of the large box to be collected to form the first data queue.
[0031] Combination Figure 1 In this system, when a box of goods reaches the position of the large box barcode reader S1, the control system C1 begins operation. The large box barcode reader S1 scans the barcodes of each box one by one and sends the scanned data to the control system C1, forming a first data queue D1. The data in the first data queue is in the format of M1, M2, M3, M4… and is stored in the control system C1. The order of the data in the first data queue is consistent with the order in which the large boxes are transported along the large box track.
[0032] Step S203: After the large box to be collected is loaded onto the pallet, the large box code of the large box to be collected on the top of the pallet is collected to form a second data queue. The second data queue corresponds one-to-one with the large box code of the large box to be collected on the top of the pallet.
[0033] In this embodiment of the specification, after the large box to be collected is loaded onto the pallet, the large box code of the large box to be collected on the top of the pallet is collected to form a second data queue, specifically including:
[0034] After the large box to be collected is loaded onto the tray, the QR code or barcode of the large box to be collected on the top of the tray is collected to form a second data queue.
[0035] In this embodiment of the specification, after the large box to be collected is loaded onto the pallet, the large box code of the large box to be collected on the top of the pallet is collected to form a second data queue, specifically including:
[0036] After the large box to be collected is loaded onto the pallet, the box code of the large box to be collected is collected from the top of the pallet. The box code of the large box to be collected that cannot be obtained is represented by non-readable data, forming a second data queue.
[0037] In this embodiment of the specification, after the large box to be collected is loaded onto the pallet, the large box code of the large box to be collected on the top of the pallet is collected to form a second data queue, specifically including:
[0038] After the large boxes to be collected are loaded onto the pallet, the large box codes of the large boxes to be collected on the top of the pallet are collected. If the large boxes to be collected on the top of the pallet are not full, the position of the unfulfilled position on the top of the pallet is treated as 0, forming a second data queue.
[0039] In the embodiments described in this specification, the second data queue includes at least one readable data item.
[0040] Continuing from the previous example, after the large boxes are loaded onto the pallet, the pallet moves along the pallet track to the barcode reader S2 on top of the pallet. At this time, the control system C1 starts to execute the barcode reader S2 on top of the pallet to scan all the large boxes on the top of the pallet and obtain the data M17, M18, M19, and M20 of the last layer (top layer) of the pallet. This data is stored in the control system C1 as the second data queue D2.
[0041] It should be noted that there may be situations where the codes of one or more large boxes in the last (top) layer of the pallet cannot be read. For large box codes that cannot be read, they can be represented as NG. For example, if the first large box code cannot be read, then the second queue data can be represented as NG, M18, M19, M20; if the last large box code cannot be read, then the second queue data can be represented as M17, M18, M19, NG.
[0042] Of course, there may be situations where the last layer of the pallet is not full. In this case, there is no space for a large box on the last layer, which is represented by 0.
[0043] Additionally, it should be noted that the number of layers of large boxes on the large box pallet and the number of large boxes in each layer can be determined according to the specific circumstances, and no limit is imposed here. Figure 1 Each layer contains 4 large boxes, and the total number of layers of large boxes is 5. This is for illustrative purposes only.
[0044] Step S205: Based on the first data queue and the second data queue, obtain the pallet-associated large box data.
[0045] In this embodiment of the specification, obtaining pallet-associated large box data based on the first data queue and the second data queue specifically includes:
[0046] Based on the readable data in the second data queue, the data in the first data queue is located to obtain the data in the third queue.
[0047] Based on the duplicate data in the first data queue and the second data queue, an OR operation is performed to obtain the data in the fourth queue;
[0048] Based on the OR operation between the data in the third queue and the data in the fourth queue, the pallet-associated large box data is obtained.
[0049] Continuing from the previous example, after the barcode reader S2 on the top of the tray finishes scanning, there are a first data queue D1 and a second data queue D2 in the control system C1. The main control data system uses the readable data in the second data queue D2 to locate the data in the first data queue D1, and removes the second data queue D2 from the first data queue D1 to form the third data queue D3, that is, D3 = D1 - D2.
[0050] Furthermore, the overlapping portion of the first data queue D1 and the second data queue D2 is ORed to form the fourth data queue D4.
[0051] Finally, perform an OR operation on the third data queue D3 and the fourth data queue D4 to obtain the pallet-associated large box data, i.e., D3 + D4 = pallet-associated large box data.
[0052] To further understand the process of obtaining pallet-related large box data Figure 3 This is a schematic diagram illustrating the process of forming pallet-associated large box data as provided in the embodiments of this specification.
[0053] In actual production, the scanning rate of the barcode reader S2 on the top of the pallet cannot be guaranteed to be 100%. However, as long as there is readable data in the second data queue D2, the relationship between the pallet and the box can be accurately calculated.
[0054] Step S207: The pallet-associated large box data is associated with the virtual pallet code to generate box-pallet association data, thereby realizing data association.
[0055] In the embodiments described in this specification, the virtual tray code is a unique identifier for the tray, which is a random string of a preset length composed of numbers and literals.
[0056] In the embodiments described in this specification, the preset length of the virtual tray code is 40 bits.
[0057] Continuing from the previous example, the virtual tray code is generated by the control system C1, and the method of generating the virtual tray code does not constitute a limitation on this application.
[0058] The methods provided in the embodiments of this specification can improve the accuracy and reliability of data association, and also improve the efficiency of data association.
[0059] This disclosure provides a method for data association, and correspondingly, based on the same inventive concept, this disclosure also provides a data association apparatus applied to the product packaging process. Figure 4 This is a schematic diagram of a data association device provided in an embodiment of this disclosure. Figure 4 As shown, the device includes:
[0060] The large box acquisition module 401 acquires the large box code of the large box to be acquired, forming the first data queue;
[0061] The pallet acquisition module 403 acquires the large box code of the large box to be acquired on the pallet after the large box to be acquired is loaded onto the pallet, forming a second data queue. The second data queue corresponds one-to-one with the large box code of the large box to be acquired on the top of the pallet.
[0062] The calculation module 405 obtains pallet-associated large box data based on the first data queue and the second data queue;
[0063] The association module 407 associates the pallet-associated large box data with the virtual pallet code to generate box-pallet association data, thereby realizing data association.
[0064] In this embodiment of the specification, the step of collecting the large box code of the large box to be collected to form a first data queue specifically includes:
[0065] Collect the QR code or barcode of the large box to be collected to form the first data queue.
[0066] In this embodiment of the specification, after the large box to be collected is loaded onto the pallet, the large box code of the large box to be collected on the top of the pallet is collected to form a second data queue, specifically including:
[0067] After the large box to be collected is loaded onto the tray, the QR code or barcode of the large box to be collected on the top of the tray is collected to form a second data queue.
[0068] In this embodiment of the specification, after the large box to be collected is loaded onto the pallet, the large box code of the large box to be collected on the top of the pallet is collected to form a second data queue, specifically including:
[0069] After the large box to be collected is loaded onto the pallet, the box code of the large box to be collected is collected from the top of the pallet. The box code of the large box to be collected that cannot be obtained is represented by non-readable data, forming a second data queue.
[0070] In this embodiment of the specification, after the large box to be collected is loaded onto the pallet, the large box code of the large box to be collected on the top of the pallet is collected to form a second data queue, specifically including:
[0071] After the large boxes to be collected are loaded onto the pallet, the large box codes of the large boxes to be collected on the top of the pallet are collected. If the large boxes to be collected on the top of the pallet are not full, the position of the unfulfilled position on the top of the pallet is treated as 0, forming a second data queue.
[0072] In the embodiments described in this specification, the second data queue includes at least one readable data item.
[0073] In this embodiment of the specification, obtaining pallet-associated large box data based on the first data queue and the second data queue specifically includes:
[0074] Based on the readable data in the second data queue, the data in the first data queue is located to obtain the data in the third queue.
[0075] Based on the duplicate data in the first data queue and the second data queue, an OR operation is performed to obtain the data in the fourth queue;
[0076] Based on the OR operation between the data in the third queue and the data in the fourth queue, the pallet-associated large box data is obtained.
[0077] In the embodiments described in this specification, the virtual tray code is a unique identifier for the tray, which is a random string of a preset length composed of numbers and literals.
[0078] In the embodiments described in this specification, the preset length of the virtual tray code is 40 bits.
[0079] Although the present invention has been disclosed above with reference to embodiments, it is not intended to limit the present invention. Any person skilled in the art can make various different choices and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention is defined by the claims and their equivalents.
Claims
1. A method for data association, characterized in that, The method includes: Collect the box codes of the large boxes to be collected to form the first data queue; After the large box to be collected is loaded onto the pallet, the large box code of the large box to be collected on the top of the pallet is collected to form a second data queue. The second data queue corresponds one-to-one with the large box code of the large box to be collected on the top of the pallet. Based on the first data queue and the second data queue, pallet-associated large box data is obtained, specifically including: based on the readable data in the second data queue, data location is performed on the first data queue to obtain third queue data; based on the duplicate data in the first data queue and the second data queue, an OR operation is performed to obtain fourth queue data; based on the third queue data and the fourth queue data, an OR operation is performed to obtain the pallet-associated large box data. The pallet-associated large box data is linked with the virtual pallet code to generate box-pallet associated data, thus realizing data association.
2. The method as described in claim 1, characterized in that, The process of collecting the large box codes of the boxes to be collected, forming the first data queue, specifically includes: Collect the QR code or barcode of the large box to be collected to form the first data queue.
3. The method as described in claim 1, characterized in that, After the large box to be collected is loaded onto the pallet, the box number on the top of the collection pallet forms a second data queue, which specifically includes: After the large box to be collected is loaded onto the tray, the QR code or barcode of the large box to be collected on the top of the tray is collected to form a second data queue.
4. The method as described in claim 1, characterized in that, After the large box to be collected is loaded onto the pallet, the box number on the top of the collection pallet forms a second data queue, which specifically includes: After the large box to be collected is loaded onto the pallet, the box code of the large box to be collected is collected from the top of the pallet. The box code of the large box to be collected that cannot be obtained is represented by non-readable data, forming a second data queue.
5. The method as described in claim 1, characterized in that, After the large box to be collected is loaded onto the pallet, the box number on the top of the collection pallet forms a second data queue, which specifically includes: After the large boxes to be collected are loaded onto the pallet, the large box codes of the large boxes to be collected on the top of the pallet are collected. If the large boxes to be collected on the top of the pallet are not full, the position of the unfulfilled position on the top of the pallet is treated as 0, forming a second data queue.
6. The method as described in claim 1, characterized in that, The second data queue contains at least one readable data item.
7. The method as described in claim 1, characterized in that, The virtual tray code is a unique identifier for the tray, consisting of a random string of preset length composed of numbers and literals.
8. The method as described in claim 7, characterized in that, The virtual tray code has a preset length of 40 digits.
9. A data association device, characterized in that, The device includes: The large box acquisition module collects the box codes of the large boxes to be collected, forming the first data queue. The pallet acquisition module collects the box codes of the large boxes to be collected from the top of the pallet after the large boxes to be collected are loaded onto the pallet, forming a second data queue. The second data queue corresponds one-to-one with the box codes of the large boxes to be collected from the top of the pallet. The calculation module obtains pallet-associated large box data based on the first data queue and the second data queue, specifically including: locating data in the first data queue based on readable data in the second data queue to obtain third queue data; performing an OR operation on duplicate data in the first data queue and the second data queue to obtain fourth queue data; and performing an OR operation on the third queue data and the fourth queue data to obtain the pallet-associated large box data. The association module associates the pallet-associated large box data with the virtual pallet code to generate box-pallet association data, thereby realizing data association.