Sampling marking method, device, equipment and storage medium
The automated sampling and label printing method using mobile terminals and printing equipment solves the problems of missed detection and label errors in manual sampling, and improves the accuracy and efficiency of sampling results.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- QINGDAO AOLIPU AUTOMATIC CONTROL SYST CO LTD
- Filing Date
- 2022-12-30
- Publication Date
- 2026-04-28
AI Technical Summary
In existing technologies, manual product sampling inspections are prone to omissions and labeling errors, leading to inaccurate inspection results.
By combining mobile terminals and mobile printing devices, the system receives sampling information sent by the management unit, obtains real-time location and target location, arranges the sampling information according to the location, and generates barcode printing labels, thereby realizing automated sampling label printing.
It reduces the probability of sampling errors, improves the accuracy of sampling results, and reduces the time spent on sampling.
Smart Images

Figure CN115984029B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart factory technology, and in particular to a sampling and marking method, apparatus, equipment and storage medium. Background Technology
[0002] In various manufacturing industries, random sampling inspections are essential to ensure product quality. The sampling inspection process typically involves multiple steps, including sampling, labeling, submission for testing, and release.
[0003] Currently, in existing technologies, after product sampling inspection, the inspectors usually write the labels manually and send the labels and samples together for inspection.
[0004] However, the inventors have discovered that the existing technology has at least the following technical problems: manual sampling is prone to omissions and labeling errors, resulting in inaccurate sampling results. Summary of the Invention
[0005] This application provides a sampling and marking method, apparatus, equipment, and storage medium to solve the problem of inaccurate sampling results.
[0006] In a first aspect, this application provides a sampling and labeling method applied to a mobile terminal, comprising: receiving sampling information sent by a management unit, wherein the sampling information includes a sampling production line; acquiring a real-time location and a target location corresponding to the sampling production line in each sampling information; arranging and outputting at least N sampling information entries based on the real-time location and each target location, where N is a positive integer; responding to receiving a labeling instruction for any sampling information, reading product information data corresponding to any sampling information; generating a corresponding barcode based on the product information data, and sending the product information data and the barcode to a mobile printing device, so that the mobile printing device prints the product information data and the barcode into a label.
[0007] In one possible implementation, at least N sampled information entries are arranged and output based on the real-time location and each target location. This includes: determining the position differences corresponding to each sampled information entry based on the real-time location and each target location; arranging the sampled information entries based on each position difference to obtain a sampled information list; and outputting at least N sampled information entries from the sampled information list.
[0008] In one possible implementation, the sampling information includes: the sampling quantity. Accordingly, after receiving a marking instruction for any sampling information, the method further includes: subtracting one from the sampling quantity to obtain a new sampling quantity, and outputting the sampling information including the new sampling quantity.
[0009] In one possible implementation, after receiving a marking instruction for any sampling information, the method further includes: if the target position is the same as the real-time position, sending printing information to the mobile printing device according to the marking instruction; if the target position is different from the real-time position, outputting a position error message.
[0010] Secondly, this application provides a sampling and labeling method applied to a management unit, comprising: sending sampling information to a mobile terminal, the sampling information including a sampling production line, so that the mobile terminal can obtain the real-time location and the target location corresponding to the sampling production line in each sampling information; arranging and outputting at least N sampling information according to the real-time location and each target location, where N is a positive integer; responding to receiving a labeling instruction for any sampling information; reading the product information data corresponding to any sampling information; generating a corresponding barcode according to the product information data; and sending the product information data and the barcode to a mobile printing device so that the mobile printing device can print the product information data and the barcode into a label.
[0011] In one possible implementation, after sending the sampling information to the mobile terminal, the method further includes: receiving quality inspection failure information and generating new sampling information based on the quality inspection failure information; and sending the new sampling information to the mobile terminal.
[0012] Thirdly, this application provides a sampling and marking device, comprising: an information receiving module for receiving sampling information sent by a management unit, wherein the sampling information includes a sampling production line; a location acquisition module for acquiring the real-time location and the target location corresponding to the sampling production line in each sampling information; an information output module for arranging and outputting at least N sampling information entries according to the real-time location and each target location, where N is a positive integer; a data reading module for reading the product information data corresponding to any sampling information in response to receiving a marking instruction for any sampling information; and a data sending module for generating a corresponding barcode based on the product information data and sending the product information data and barcode to a mobile printing device, so that the mobile printing device prints the product information data and barcode into a label.
[0013] Fourthly, this application provides a sampling and marking device, comprising: a sampling information sending module, used to send sampling information to a mobile terminal, the sampling information including a sampling production line, so that the mobile terminal can obtain the real-time location and the target location corresponding to the sampling production line in each sampling information; arranging and outputting at least N sampling information according to the real-time location and each target location, where N is a positive integer; responding to receiving a marking instruction for any sampling information, reading the product information data corresponding to any sampling information, generating a corresponding barcode according to the product information data, and sending the product information data and barcode to a mobile printing device, so that the mobile printing device prints the product information data and barcode into a label.
[0014] Fifthly, this application provides an electronic device, including: a processor and a memory communicatively connected to the processor. The memory stores computer-executable instructions. The processor executes the computer-executable instructions stored in the memory, causing the processor to perform the sampling and marking method as described in the first or second aspect above.
[0015] In a sixth aspect, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the sampling and marking method as described in the first or second aspect above.
[0016] The sampling and labeling method, apparatus, equipment, and storage medium provided in this application receive sampling information sent by a management unit, obtain the real-time location and the target location corresponding to the sampling production line in each sampling information, arrange and output at least N sampling information based on the real-time location and each target location, and after receiving a labeling instruction for the sampling information, read the product information data corresponding to this sampling information, generate the corresponding barcode from the product information data, and send the product information data and barcode to a mobile printing device, so that the mobile printing device prints the product information data and barcode into a label, realizing the visualization of sampling information, reducing the probability of sampling errors by sampling personnel, and automatically printing labels, reducing the probability of writing errors by sampling personnel, increasing the accuracy of sampling results, and reducing the sampling time by outputting sampling information based on real-time location and target location. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0018] Figure 1 This is a schematic diagram illustrating an application scenario of the sampling and labeling method provided in the embodiments of this application;
[0019] Figure 2 Flowchart of the sampling and labeling method provided in the embodiments of this application Figure 1 ;
[0020] Figure 3 Flowchart of the sampling and labeling method provided in the embodiments of this application Figure 2 ;
[0021] Figure 4 A schematic diagram of the interaction flow of the sampling and labeling method provided in the embodiments of this application;
[0022] Figure 5 Schematic diagram of the sampling and marking device provided in the embodiments of this application Figure 1 ;
[0023] Figure 6 Schematic diagram of the sampling and marking device provided in the embodiments of this application Figure 2 ;
[0024] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0025] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0026] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0027] After products are manufactured in the factory, their quality needs to be inspected to ensure that users receive products that are practical, reliable, and safe.
[0028] Currently, product quality is typically inspected through manual sampling. Workers draw samples, write labels by hand, and attach the labels to the samples before sending them for testing. However, problems such as missed inspections and labeling errors may occur during the process, leading to inaccurate inspection results.
[0029] To address the aforementioned technical problems, the inventors propose the following technical concept: allowing staff to carry a mobile terminal and a mobile printing device. The mobile terminal displays sampling information and responds to the staff's instructions to control the mobile printing device to print labels.
[0030] Figure 1 This is a schematic diagram illustrating an application scenario of the sampling and labeling method provided in the embodiments of this application. For example... Figure 1 The scenario includes: a management unit 101, a mobile terminal 102, and a mobile printing device 103.
[0031] In the specific implementation process, the management unit 101 can be a server, computer, laptop, etc., used to send sampling information to the mobile terminal 102. MES (Manufacturing Execution System) and LIMS (Laboratory Information Management System) can be installed in the management unit 101.
[0032] The mobile terminal 102 can be a mobile phone, tablet computer, handheld computer, etc., used to receive sampling information to obtain real-time location and target locations corresponding to the sampling production line in the sampling information, output sampling information according to real-time location and target location, receive marking instructions input by sampling personnel according to sampling information, and send printing information to mobile printing device 103 according to marking instructions.
[0033] Mobile printing device 103, which may be mobile or portable printer, is used to print labels based on printing information.
[0034] The mobile terminal 102 and the mobile printing device 103 can be carried by the sampling personnel.
[0035] The connection between the management unit 101, the mobile terminal 102, and the mobile printing device 103 can be either wired or wireless. The wireless network connection can use various types of wired and wireless networks, such as, but not limited to: the Internet, local area network, Wireless Fidelity (WIFI), Wireless Local Area Networks (WLAN), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), 2G / 3G / 4G / 5G cellular networks, satellite communication networks, Bluetooth connection, etc.
[0036] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the sampling and labeling method. In other feasible embodiments of this application, the above architecture may include more or fewer components than illustrated, or combine some components, or split some components, or arrange different components, which can be determined according to the actual application scenario and is not limited here. Figure 1 The scenario shown can be implemented by hardware, software, or a combination of both.
[0037] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0038] Figure 2 Flowchart of the sampling and labeling method provided in the embodiments of this application Figure 1 The execution entity of this application embodiment can be Figure 1Mobile terminal 102 in the middle. For example... Figure 2 As shown, the method includes:
[0039] S201: Receive sampling information sent by the management unit, wherein the sampling information includes the sampling production line.
[0040] In this step, the sampling production line can be the name of the sampling production line, and the sampling information can also include the sampling location, the name of the sampling production line, the sampling quantity, the name of the sampled product, etc.
[0041] Sampling information includes, for example: “Area A; Packaging; Quantity 3; Milk powder”, “Second floor, East area; Freeze-dried; Quantity 10; Milk powder”, “Area 26A; Filling; Quantity 7; Beverage”. This application embodiment does not limit the specific content of the sampling information.
[0042] S202: Obtain the real-time location and the target location corresponding to the sampling production line in each sampling information.
[0043] In this step, the real-time location can be obtained by acquiring its own latitude and longitude coordinates and defining those coordinates as the real-time location, or by defining the interval containing those coordinates as the real-time location. The target location can be obtained by querying a preset correspondence between sampling production lines and their locations. This correspondence can be stored using tables, dictionaries, or key-value pairs. Multiple sampling information entries can correspond to one or more sampling production lines, and thus one or more target locations. The target location can be a single latitude and longitude coordinate.
[0044] S203: Based on the real-time location and the location of each target, arrange and output at least N sampled information, where N is a positive integer.
[0045] In this step, the position difference corresponding to each sampled information can be calculated based on the real-time location and the location of each target. After the position difference is written into the sampled information, the sampled information is sorted according to the magnitude of the position difference. The N sampled information entries with the highest or lowest positions in the sorted list are output, where N can be preset by the user or staff. N can also be dynamically adjusted according to the total number of sampled information entries. If N is greater than the total number of sampled information entries, the total number of sampled information entries is set to the value of N. The output method can be display output, voice output, or sending the sampled information to an external source.
[0046] For example, if there are currently 4 sampling information entries with corresponding position differences of 3 meters, 30 meters, 40 meters, and 70 meters, these position differences are written into the sampling information and then output. N can be 1, 5, 10, 15, 20, etc. When N is greater than the total number of sampling information jumps, N can also be set to the total number of sampling information entries or the product of the total number of sampling information entries and a preset value. The preset value can be a decimal or a fraction. This application embodiment does not limit the specific value of N.
[0047] S204: In response to receiving a marking instruction for any sampling information, read the product information data corresponding to any sampling information.
[0048] In this step, the marking command can be triggered by the displayed sampling information, or by clicking or long-pressing a button on the mobile terminal 102. The sampling information can be specific to a product or intermediate product, or associated with a product or intermediate product, and can be read from the pre-stored correspondence between product and product information. The marking command can be input by the sampling personnel, or by other devices or machinery.
[0049] For example, if sampling information A contains product A, the production line of product A, or the identifier of product A, then the sampling information is associated with product A. By reading the product information data corresponding to sampling information A, one can query the product information data corresponding to product A.
[0050] S205: Generate a corresponding barcode based on the product information data, and send the product information data and barcode to the mobile printing device so that the mobile printing device can print the product information data and barcode into a label.
[0051] In this step, product information data or specific data from the product information data can be input into a preset script to obtain the corresponding barcode. For example, the product code from the product information data can be input into a preset program or script to obtain the corresponding barcode.
[0052] The barcode can be either a one-dimensional barcode or a two-dimensional barcode.
[0053] As described in the above embodiments, this application embodiment obtains the real-time location and the target location corresponding to the sampling production line in each sampling information by receiving sampling information sent by the management unit. Based on the real-time location and each target location, at least N sampling information are arranged and output. After receiving the labeling instruction for the sampling information, the product information data corresponding to this sampling information is read, and the corresponding barcode is generated from the product information data. The product information data and the barcode are sent to the mobile printing device, so that the mobile printing device prints the product information data and the barcode into a label. This realizes the visualization of sampling information, reduces the probability of sampling errors by sampling personnel, and automatically prints labels, which reduces the probability of writing errors by sampling personnel and increases the accuracy of sampling results. Furthermore, since the sampling information is output according to the real-time location and the target location, the sampling time can be reduced.
[0054] In one possible implementation, in step S203 above, at least N sampled information items are arranged and output according to the real-time location and the locations of each target, including:
[0055] S2031: Determine the position difference corresponding to each sampled information based on the real-time location and the location of each target.
[0056] In this step, the longitude difference can be obtained by subtracting the longitude of the real-time location from the longitude of the target location, and the latitude difference can be obtained by subtracting the latitude of the real-time location from the latitude of the target location. The square root of the sum of the squares of the longitude and latitude differences is then taken to obtain the position difference. The longitude and latitude can be converted to meters before calculating the longitude and latitude differences, or they can be calculated and then converted to meters.
[0057] For example, if the longitude difference is 3m and the latitude difference is 4m, their sum of squares is 25m. 2 If the square root is 5m, then the position difference is 5m. This application does not limit the specific values of the longitude difference, latitude difference, and position difference in the embodiments.
[0058] In one possible implementation, this step can also involve subtracting the x-coordinate of the real-time position from the x-coordinate of the target position to obtain the x-coordinate difference, subtracting the y-coordinate of the real-time position from the y-coordinate of the target position to obtain the y-coordinate difference, and adding the x-coordinate difference and y-coordinate difference to obtain the position difference.
[0059] S2032: Arrange the sampling information according to the position difference to obtain the sampling information list, and output at least N sampling information in the sampling information list.
[0060] In this step, all sampled information can be arranged into a sampled information list according to the magnitude of the positional difference between each sampled information. The sampled information list can be arranged in ascending or descending order of positional difference. At least N sampled information entries should be output from the sampled information list. This could be the first N entries, the last N entries, or a subset of N entries; this can be preset. If the first or last N entries are output, they can correspond to the arrangement of positional differences in the sampled information list, and this correspondence can also be preset. The output can be in the order of the sampled information list.
[0061] If the number of sampling information entries in the sampling information list is less than N, then all sampling information entries in the sampling information list can be output, or a preset proportion of sampling information entries in the sampling information list can be output.
[0062] As can be seen from the description of the above embodiments, the embodiments of this application determine the position difference corresponding to each sampling information based on the real-time position and the target position, arrange each sampling information into a sampling information list according to the position difference, and output at least N sampling information in the sampling information list, thereby realizing the arrangement of sampling information according to the position difference, making it easier to find the sampling information with the closest position and increasing the sampling speed.
[0063] In one possible implementation, the above sampling information includes the number of samples.
[0064] The sample quantity can be a specific number, which can be followed by a quantifier.
[0065] For example, 3 pieces, 10 boxes, 7 pieces, etc.
[0066] Accordingly, after receiving the marking instruction for any sampling information in step S204 above, the method further includes:
[0067] S210: Subtract one from the sample quantity to obtain a new sample quantity, and output the sampling information including the new sample quantity.
[0068] In this step, for example, if the original sampling quantity was 8, after receiving the marking instruction input by the sampling personnel based on the sampling information, the sampling quantity is reduced to 7 and output. As another example, if the original sampling quantity was 12, after receiving the marking instruction input by the sampling personnel based on the sampling information, the sampling quantity is reduced to 11 and output. Yet another example, if the original sampling quantity was 3 boxes, after receiving the marking instruction input by the sampling personnel based on the sampling information, the sampling quantity is reduced to 2 boxes and output.
[0069] As can be seen from the description of the above embodiments, the embodiments of this application obtain a new desampling quantity by subtracting one from the sampling quantity, and output the sampling information including the new sampling quantity, thereby achieving the effect of updating the sampling quantity.
[0070] In one possible implementation, after receiving the marking instruction for any sampling information in step S204 above, the method further includes:
[0071] S211: If the target location is the same as the real-time location, then send printing information to the mobile printing device according to the marking instruction.
[0072] In this step, if the latitude and longitude coordinates of the target location are the same as the actually acquired latitude and longitude coordinates, then print information is sent to the mobile printing device according to the marking instruction. Alternatively, the range containing the latitude and longitude coordinates of the target location can be defined as the target range, and the range containing the same latitude and longitude coordinates of the actually acquired location can be defined as the actual range. If the target range and the actual range are the same, then print information is sent to the mobile printing device according to the marking instruction.
[0073] For example, the target address's latitude and longitude are (30°30′: 100°100′), and the real-time location is also (30°30′: 100°100′). Printing information is sent to the mobile printing device according to the marking instructions. Another example is that the longitude of both the target address and the real-time location are between 20°20′0″ and 20°21′0″, and the latitude is between 90°90′0″ and 90°91′0″. This application does not limit the specific values of latitude and longitude, nor does it limit the specific values of the latitude and longitude intervals.
[0074] S212: If the target position is different from the real-time position, output a position error message.
[0075] In this step, the target address differs from the real-time location, either because the target address and the actual location have different latitude and longitude, or because the target address and the real-time location fall within different latitude and longitude ranges. Error messages can be displayed or spoken. Examples of error messages include "Location error" or "Sampling location error," but this embodiment does not limit the specific content of the error messages.
[0076] As can be seen from the description of the above embodiments, the embodiments of this application obtain the target location and real-time location corresponding to the sampling production line in the sampling information. If the target address is the same as the real-time location, the printing information is sent to the mobile printing device according to the marking instruction. If the target location is different from the real-time location, an error prompt message is output, thereby ensuring the correctness of sampling and guaranteeing the accuracy of sampling.
[0077] Figure 3 Flowchart of the sampling and labeling method provided in the embodiments of this application Figure 2 The execution entity of this application embodiment can be Figure 1 Management unit 101 in the middle. For example... Figure 3 As shown, the method includes:
[0078] S301: Send sampling information to the mobile terminal, the sampling information including the sampling production line, so that the mobile terminal can obtain the real-time location and the target location corresponding to the sampling production line in each sampling information. According to the real-time location and each target location, arrange and output at least N sampling information, where N is a positive integer. In response to receiving a marking instruction for any sampling information, read the product information data corresponding to any sampling information, generate the corresponding barcode according to the product information data, and send the product information data and barcode to the mobile printing device so that the mobile printing device prints the product information data and barcode into a label.
[0079] In this step, the sampling information can be transmitted via wired or wireless means. The sampling information can be generated by the MES system described above. The sampling production line in any of the above embodiments can also be replaced by sampling products, sampling locations, etc.
[0080] As can be seen from the description of the above embodiments, the embodiments of this application send sampling information to a mobile terminal, thereby enabling the mobile terminal to output sampling information, receive the marking instructions input by the sampling personnel according to the sampling information, obtain product information data according to the marking instructions, generate corresponding barcodes according to the product information data, and send the product information data and barcodes to a mobile printing device, so that the mobile printing device prints the product information data and barcodes into labels, realizing automatic label printing, making it less likely for sampling information to be missed, thereby increasing the accuracy of sampling results.
[0081] In one possible implementation, after sending the sampling information to the mobile terminal in step S301, the method further includes:
[0082] S302: Receive quality inspection non-compliance information and generate new sampling information based on the quality inspection non-compliance information.
[0083] In this step, the quality inspection non-conformance information may include the results of the quality inspection non-conformance and the information of the non-conforming products. The process of generating sampling information based on the quality inspection non-conformance information may involve finding a preset correspondence between product information and location or between product information and production line based on the product information in the quality inspection non-conformance information, obtaining the target location or target production line, and determining the product information, the preset sampling quantity, and the target location or target production line as new sampling information.
[0084] The non-conforming quality inspection information can be input by laboratory personnel. Receiving this information can be achieved through the LIMS system, which receives the information and sends it to the MES system via an interface. The MES system then generates new sampling information based on this information. The MES system interfaces with the LIMS system, providing sample information. After inspection, the MES system issues a re-inspection command for non-conforming samples, thus generating new sampling information to verify the quality of materials in the production process. This approach also ensures reduced manpower and increased efficiency, avoiding human intervention that could affect the quality inspection results of production materials.
[0085] S303: Send the new sampling information to the mobile terminal.
[0086] In this step, the sampling information can be sent either via wired or wireless means.
[0087] As can be seen from the description of the above embodiments, the embodiments of this application receive quality inspection failure information, generate new sampling information based on the quality inspection failure information, and send the new sampling information to the mobile terminal, thereby achieving the effect of prompting for re-inspection when the sampling result is unqualified.
[0088] In one possible implementation, after step S303, the method further includes: if quality inspection failure information for the same product is received again within a preset time, a notification message is sent to the corresponding terminal device of the management personnel. The notification message can be sent via SMS, push notification, software message, or other similar means.
[0089] In one possible implementation, the MES system generates a sampling plan based on the production plan. Specifically, the total number of products in the production plan can be multiplied by a preset coefficient to obtain the sampling quantity in the sampling plan. The product types in the production plan are determined as the product types in the sampling calculation, and the locations corresponding to the preset product types are determined as the target locations. The same product can have multiple different target locations, and these multiple different target locations can be used as sampling points.
[0090] Figure 4 This is a schematic diagram illustrating the interactive flow of the sampling and labeling method provided in an embodiment of this application. Figure 4 As shown, the interactive flow of the sampling and labeling method includes:
[0091] S401: The management unit sends sampling information to the mobile terminal.
[0092] S402: The mobile terminal obtains the real-time location and the target location corresponding to the sampling production line in each sampling information.
[0093] S403: The mobile terminal arranges and outputs at least N sampled information based on the real-time location and the locations of each target, where N is a positive integer.
[0094] S404: The mobile terminal responds to receiving a marking instruction for any sampling information, reads the product information data corresponding to any sampling information, and generates the corresponding barcode based on the product information data.
[0095] S405: The mobile terminal sends product information data and barcodes to the mobile printing device.
[0096] S406: Mobile printing equipment prints product information data and barcodes into labels.
[0097] Figure 5 Schematic diagram of the sampling and marking device provided in the embodiments of this application Figure 1 .like Figure 5 As shown, the sampling and marking device 500 includes: an information receiving module 501, a position acquisition module 502, an information output module 503, a data reading module 504, and a data sending module 505.
[0098] The information receiving module 501 is used to receive sampling information sent by the management unit, wherein the sampling information includes the sampling production line;
[0099] The location acquisition module 502 is used to acquire the real-time location and the target location corresponding to the sampling production line in each sampling information;
[0100] The information output module 503 is used to arrange and output at least N sampled information items according to the real-time location and the location of each target, where N is a positive integer;
[0101] The data reading module 504 is used to read the product information data corresponding to any sampling information in response to receiving a marking instruction for any sampling information;
[0102] The data sending module 505 is used to generate a corresponding barcode based on the product information data, and send the product information data and barcode to the mobile printing device so that the mobile printing device can print the product information data and barcode into a label.
[0103] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.
[0104] In one possible implementation, the information output module 503 is specifically used to determine the position differences corresponding to each sampled information based on the real-time location and each target location. Based on each position difference, the sampled information is arranged to obtain a sampled information list, and at least N sampled information entries in the list are output.
[0105] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.
[0106] In one possible implementation, the sampling information includes: the sampling quantity. The sampling and marking device 500 also includes: a sampling quantity change module 506.
[0107] The sampling quantity change module 506 is used to subtract one from the sampling quantity to obtain a new sampling quantity, and output sampling information including the new sampling quantity.
[0108] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.
[0109] In one possible implementation, the sampling information includes: the sampling production line. The sampling and marking device 500 also includes: a position comparison module 507.
[0110] The position comparison module 507 is used to obtain the target position and real-time position corresponding to the sampling production line in the sampling information. If the target position and the real-time position are the same, printing information is sent to the mobile printing device according to the marking instruction. If the target position and the real-time position are different, a position error message is output.
[0111] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.
[0112] Figure 6 Schematic diagram of the sampling and marking device provided in the embodiments of this application Figure 2 .like Figure 6 As shown, the sampling and marking device 600 includes:
[0113] The sampling information sending module 601 is used to send sampling information to a mobile terminal. The sampling information includes sampling production lines, so that the mobile terminal can obtain the real-time location and the target location corresponding to the sampling production line in each sampling information. According to the real-time location and each target location, at least N sampling information are arranged and output, where N is a positive integer. In response to receiving a marking instruction for any sampling information, the module reads the product information data corresponding to any sampling information, generates the corresponding barcode according to the product information data, and sends the product information data and barcode to the mobile printing device so that the mobile printing device prints the product information data and barcode into a label.
[0114] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.
[0115] In one possible implementation, the sampling and marking device 600 further includes a re-inspection module 602.
[0116] The re-inspection module 602 is used to receive quality inspection failure information and generate new sampling information based on the failure information. The new sampling information is then sent to the mobile terminal.
[0117] The apparatus provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effects are similar, and will not be described again here.
[0118] To implement the above embodiments, this application also provides an electronic device.
[0119] refer to Figure 7 The diagram illustrates a structural schematic of an electronic device 700 suitable for implementing embodiments of this application. The electronic device 700 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0120] like Figure 7 As shown, the electronic device 700 may include a processor (e.g., a central processing unit, a graphics processing unit, etc.) 701 and a memory 702 communicatively connected to the processor. The memory 702 may be a read-only memory (ROM). The processor 701 can perform various appropriate actions and processes according to the program stored in the memory 702, computer-executed instructions, or programs loaded from the storage device 708 into the random access memory (RAM) 703, to implement the sampling and marking method in any of the above embodiments. The RAM 703 also stores various programs and data required for the operation of the electronic device 700. The processing device 701, the memory 702, and the RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0121] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic device 700 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 An electronic device 700 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0122] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable storage 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 device 709, or installed from storage device 708, or installed from memory 702. When the computer program is executed by processing device 701, it performs the functions defined in the methods of embodiments of this application.
[0123] It should be noted that the computer-readable storage medium described above in this application can be a computer-readable signal medium or a computer storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable storage medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable storage medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0124] The aforementioned computer-readable storage medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.
[0125] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the method shown in the above embodiments.
[0126] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof. These programming languages include object-oriented programming languages—such as Java, Smalltalk, and C++—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0127] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0128] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the units are not necessarily limiting of the module itself; for example, a sampling information output module can also be described as an "output module".
[0129] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0130] This application also provides a computer-readable storage medium storing computer-executable instructions. When the processor executes the computer-executable instructions, it implements the technical solution of the sampling and marking method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the sampling and marking method. Please refer to the implementation principle and beneficial effects of the sampling and marking method. It will not be repeated here.
[0131] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. 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 of the foregoing.
[0132] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the technical solution of the sampling and marking method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the sampling and marking method, and can be found in the implementation principle and beneficial effects of the sampling and marking method, which will not be repeated here.
[0133] The above description is merely a preferred embodiment of this application and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this application.
[0134] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0135] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A sampling and labeling method, characterized in that, Applied to a mobile terminal; the method includes: Receive sampling information sent by the management unit, wherein the sampling information includes the sampling production line; Obtain the real-time location of the mobile terminal and the target location corresponding to the sampling production line in each sampling information; Based on the real-time location and the locations of each target, at least N sample information entries are arranged and output, where N is a positive integer; In response to receiving a marking instruction for any of the at least N sampling information, read the product information data corresponding to any of the at least N sampling information; A corresponding barcode is generated based on the product information data, and the product information data and the barcode are sent to a mobile printing device so that the mobile printing device can print the product information data and the barcode into a label.
2. The method according to claim 1, characterized in that, The step of arranging and outputting at least N sampled information items based on the real-time location and each target location includes: Based on the real-time location and each target location, determine the location difference corresponding to each sampled information; Arrange the sampling information according to the position difference to obtain a sampling information list, and output at least N sampling information items in the sampling information list.
3. The method according to claim 1, characterized in that, The sampling information includes: the number of samples taken; Accordingly, after receiving the marking instruction for any sampling information, the method further includes: The sampling quantity is reduced by one to obtain a new sampling quantity, and the sampling information including the new sampling quantity is output.
4. The method according to any one of claims 1 to 3, characterized in that, After receiving the marking instruction for any sampling information, the method further includes: If the target location is the same as the real-time location, then print information is sent to the mobile printing device according to the marking instruction; If the target location is different from the real-time location, a location error message will be output.
5. A sampling and labeling method, characterized in that, Applied to management units, including: Sampling information, including sampling production lines, is sent to a mobile terminal to enable the mobile terminal to obtain its real-time location and the target location corresponding to the sampling production line in each sampling information. Based on the real-time location and each target location, at least N sampling information items are arranged and output, where N is a positive integer. In response to receiving a marking instruction for any of the at least N sampling information items, product information data corresponding to any of the at least N sampling information items is read, a corresponding barcode is generated based on the product information data, and the product information data and the barcode are sent to a mobile printing device so that the mobile printing device prints the product information data and the barcode into a label.
6. The method according to claim 5, characterized in that, After sending the sampling information to the mobile terminal, the method further includes: Receive information on non-compliance in quality inspection, and generate new sampling information based on the information on non-compliance in quality inspection; The new sampling information is sent to the mobile terminal.
7. A sampling and marking device, characterized in that, include: The information receiving module is used to receive sampling information sent by the management unit, wherein the sampling information includes the sampling production line; The location acquisition module is used to acquire the real-time location of the mobile terminal and the target location corresponding to the sampling production line mentioned in each sampling information; The information output module is used to arrange and output at least N sampled information items according to the real-time location and each target location, where N is a positive integer; The data reading module is used to read the product information data corresponding to any one of the at least N sampling information in response to receiving a marking instruction for any one of the at least N sampling information; The data sending module is used to generate a corresponding barcode based on the product information data, and send the product information data and the barcode to the mobile printing device so that the mobile printing device prints the product information data and the barcode into a label.
8. A sampling and marking device, characterized in that, include: A sampling information sending module is used to send sampling information to a mobile terminal. The sampling information includes a sampling production line, so that the mobile terminal can obtain the real-time location of the mobile terminal and the target location corresponding to the sampling production line in each sampling information. Based on the real-time location and each target location, at least N sampling information are arranged and output, where N is a positive integer. In response to receiving a marking instruction for any of the at least N sampling information, the module reads the product information data corresponding to any of the at least N sampling information, generates a corresponding barcode based on the product information data, and sends the product information data and the barcode to a mobile printing device so that the mobile printing device prints the product information data and the barcode into a label.
9. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the sampling and marking method as described in any one of claims 1 to 4 or 5 to 6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the sampling and marking method as described in any one of claims 1 to 4 or 5 to 6.
Citation Information
Patent Citations
Power grid equipment arrival sampling inspection method based on digital technology
CN114254951A
Ceramic tile quality monitoring method, device and system and computer readable storage medium
CN114548766A