Method and device for matching inner code and outer code in solid state disk, equipment and storage medium

By recognizing and matching barcodes and identification information in solid-state drive images, and automatically writing internal codes, the problem of inconsistency between internal and external codes caused by manual scanning is solved, achieving efficient matching of internal and external codes.

CN115238724BActive Publication Date: 2025-12-23SHENZHEN TIGO SEMICON
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210799086.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-06
Publication Date
2025-12-23
Estimated Expiration
2042-07-06

AI Technical Summary

Technical Problem

Manual barcode scanning is prone to duplicate scanning or missed scanning, leading to inconsistencies between the internal and external barcodes on solid-state drives.

Method used

By recognizing the barcode and identification information in the image to be tested, the system automatically matches and writes the code into the target solid-state drive, avoiding errors caused by manual operation.

Benefits of technology

Automatic matching of internal and external codes of solid-state drives is achieved, ensuring consistency, improving testing efficiency and reducing errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115238724B_ABST
    Figure CN115238724B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a solid state disk internal code and external code matching method, device, equipment and storage medium, relating to the technical field of solid state disk. The method comprises: acquiring a to-be-tested picture; identifying barcode information and identification information contained in the to-be-tested picture, matching the barcode information with the identification information; determining a target solid state disk corresponding to the barcode information according to the identification information matched by the barcode information; and writing the barcode information into the target solid state disk, thereby completing writing of the internal code of the target solid state disk. The whole process is automatically completed by a terminal, avoiding repeated scanning or missed scanning of barcodes in manual code scanning input, and the problem of inconsistency between the internal code and the external code of the solid state disk.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of solid state disks, and particularly relates to a matching method and device for internal code and external code of a solid state disk, equipment and a storage medium. BACKGROUND

[0002] The internal code refers to a serial number written in the solid state disk by software. The external code refers to a one-dimensional code or two-dimensional code attached to the surface of the solid state disk. The two codes are the same: the serial number in the solid state disk and the number attached to the surface (obtained by reading the one-dimensional code or two-dimensional code on the surface of the solid state disk) are completely consistent.

[0003] In the prior art, workers read the one-dimensional code or two-dimensional code on the surface of the solid state disk by hand, and input the read information into the solid state disk. Manual code scanning is prone to repeated scanning or missed scanning of the bar code, thereby causing inconsistency between the internal code and the external code of the solid state disk. SUMMARY

[0004] Embodiments of the present application provide a matching method and device for internal code and external code of a solid state disk, equipment and a storage medium, aiming to solve the problem of inconsistency between the internal code and the external code of the solid state disk caused by repeated scanning or missed scanning of the bar code in manual code scanning.

[0005] In a first aspect, embodiments of the present application provide a matching method for internal code and external code of a solid state disk, which comprises:

[0006] acquiring a to-be-tested picture;

[0007] identifying bar code information and identification information contained in the to-be-tested picture, and matching the bar code information and the identification information;

[0008] determining a target solid state disk corresponding to the bar code information according to the identification information matched by the bar code information;

[0009] writing the bar code information into the target solid state disk.

[0010] Further technical solutions are as follows:

[0011] determining whether a collection instruction is received;

[0012] if the collection instruction is received, controlling a collection device to collect the to-be-tested picture.

[0013] Further technical solutions are as follows:

[0014] matching identification information located in a preset area around the bar code information with the bar code information.

[0015] Further, the technical scheme is that the method further comprises:

[0016] querying the data interface corresponding to the identification information matched with the barcode information in preset identification-interface corresponding information;

[0017] connecting the solid state disk connected with the data interface corresponding to the identification information matched with the barcode information as the target solid state disk.

[0018] Further, the technical scheme is that the method further comprises:

[0019] acquiring the internal code of the target solid state disk;

[0020] judging whether the internal code of the target solid state disk is consistent with the barcode information;

[0021] if the internal code of the target solid state disk is consistent with the barcode information, determining that the target solid state disk is a qualified product.

[0022] Further, the technical scheme is that the method further comprises:

[0023] if the internal code of the target solid state disk is not consistent with the barcode information, determining that the target solid state disk is a unqualified product.

[0024] Further, the technical scheme is that the barcode information is one-dimensional code information or two-dimensional code information, and the identification information is number information.

[0025] In a second aspect, the embodiment of the present application further provides a solid state disk internal code and external code matching device, which comprises units for executing the above method.

[0026] In a third aspect, the embodiment of the present application further provides a computer device, which comprises a memory and a processor, the memory stores a computer program, and the processor executes the computer program to realize the above method.

[0027] In a fourth aspect, the embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program can realize the above method when executed by a processor.

[0028] The technical scheme of the present application identifies the barcode information and the identification information contained in the to-be-tested picture, matches the barcode information with the identification information, determines the target solid state disk corresponding to the barcode information according to the identification information matched by the barcode information, and writes the barcode information into the target solid state disk, thereby completing the writing of the internal code of the target solid state disk, the whole process being completed automatically by the terminal, and the problem of inconsistency between the internal code and the external code of the solid state disk caused by repeated scanning or missed scanning of the barcode in manual code scanning and inputting being avoided. BRIEF DESCRIPTION OF DRAWINGS

[0029] In order to more clearly illustrate the technical scheme in the embodiments of the present application, the drawings needed in the following embodiment description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0030] Figure 1 The flowchart of the matching method of the internal code and the external code of the solid state disk provided by the embodiment of the present application is shown.

[0031] Figure 2 The schematic diagram of the placement mode of the solid state disk of the matching method of the internal code and the external code of the solid state disk provided by the embodiment of the present application is shown.

[0032] Figure 3 The flowchart of the matching method of the internal code and the external code of the solid state disk provided by another embodiment of the present application is shown.

[0033] Figure 4 The schematic block diagram of the matching device of the internal code and the external code of the solid state disk provided by the embodiment of the present application is shown.

[0034] Figure 5 The schematic block diagram of the matching device of the internal code and the external code of the solid state disk provided by another embodiment of the present application is shown.

[0035] Figure 6 The schematic block diagram of the computer device provided by the embodiment of the present application is shown. DETAILED DESCRIPTION

[0036] The technical scheme in the embodiments of the present application will be described clearly and completely in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.

[0037] It should be understood that the terms "comprises" and "comprising," when used in this specification and the following claims, indicate the presence of the described features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0038] It should also be understood that the terms used in the specification and the appended claims are intended to describe particular embodiments and do not necessarily limit the present application. As used in the specification and the appended claims, the singular forms "a," "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0039] It should further be understood that the term "and / or" used in the specification and the appended claims, means one or more of the associated listed items, as well as all possible combinations of the items.

[0040] As used in the specification and the appended claims, the term "if' can be interpreted as meaning "when" or "once" or "in response to a determination" or "in response to a detection" depending on the context. Similarly, the phrase "if determined" or "if detected [the described condition or event]" can be interpreted to mean "once determined" or "in response to a determination" or "once detected [the described condition or event]" or "in response to a detection [the described condition or event]" depending on the context.

[0041] Referring to Figure 1 , Figure 1 is a flowchart of a method for matching an internal code and an external code of a solid state disk according to an embodiment of the present application. The method for matching the internal code and the external code of the solid state disk is applied in a terminal, and the purpose of the embodiment is to write the internal code into the solid state disk. As shown in the figure, the method comprises the following steps S11-S14.

[0042] S11, acquiring a picture to be tested.

[0043] In a specific implementation, the picture to be tested refers to a picture containing a solid state disk, wherein the surface of the solid state disk is provided with bar code information, and the side surface of the solid state disk is provided with identification information.

[0044] For example, referring to Figure 2 , a plurality of solid state disks 200 are arranged in an array on a shooting frame 100, and the surface of each solid state disk 200 is provided with bar code information 300. At the same time, the side surface of each solid state disk 200 is provided with identification information 400. The identification information 400 is fixed on the shooting frame 100. A collection device shoots the picture to be tested from a fixed position. The bar code information is one-dimensional code information or two-dimensional code information, and the identification information is number information, for example, numbers 1, 2, 3 and 4, etc.

[0045] In an embodiment, the step S11 comprises the following steps S111-S112.

[0046] S111, determining whether a collection instruction is received.

[0047] In a specific implementation, the collection instruction is input by a user, for example, through a button. The terminal determines in real time whether a collection instruction is received.

[0048] S112, if the collection instruction is received, controlling a collection device to collect the to-be-tested picture.

[0049] In a specific implementation, if the collection instruction is received, the collection device is controlled to collect the to-be-tested picture. The collection device can be, for example, a high-definition camera.

[0050] S12, identifying barcode information and identification information contained in the to-be-tested picture, and matching the barcode information with the identification information.

[0051] In a specific implementation, the terminal identifies barcode information and identification information contained in the to-be-tested picture. In order to improve efficiency, the barcode information and the identification information can be multiple. Therefore, after the barcode information and the identification information are identified, the barcode information and the identification information also need to be matched.

[0052] It should be noted that the identification of the barcode information and the identification information can be achieved through an OCR technology or other commonly used image recognition technologies, and the present application does not make a specific limitation thereon. Through the above technologies, the barcode information and the identification information can be identified and their positions can be located.

[0053] In an embodiment, the relative positions between the matched barcode information and the identification information are fixed. For example, the barcode information matched with the identification information is arranged on the left side of the real-time identification information, and the distance is a fixed value.

[0054] Therefore, the step S12 comprises: matching the identification information located in a preset area around the barcode information with the barcode information.

[0055] In the embodiment, the preset area can be specifically a rectangular frame area on the left side of the barcode information. The size of the rectangular frame is determined by the distance between the identification information and the barcode information, so as to ensure that the rectangular frame can completely frame the identification information of the barcode information.

[0056] S13, determining a target solid state disk corresponding to the barcode information according to the identification information matched with the barcode information.

[0057] In the embodiment, the target solid state disk corresponding to the barcode information is determined according to the identification information matched with the barcode information. At this time, the barcode information is used as the internal code of the target solid state disk.

[0058] For example, in an embodiment, the terminal includes a plurality of data interfaces, and each data interface corresponds to identification information. Identification-interface correspondence information is stored in the terminal in advance, and the identification-interface correspondence information is used to indicate the correspondence between the data interface and the identification information. Based on this, the above step S13 specifically includes:

[0059] S131, in the preset identification-interface correspondence information, the data interface corresponding to the identification information matched with the barcode information is queried.

[0060] S132, the solid state disk connected to the data interface corresponding to the identification information matched with the barcode information is used as the target solid state disk.

[0061] In the embodiment of the application, there is a one-to-one correspondence between the data interface, the barcode information and the identification information. The correspondence between the data interface and the identification information is preset, so that the correspondence between the data interface, the barcode information and the identification information can be established after the solid state disk is connected to the data interface, and the whole process does not need to input the information of the solid state disk into the terminal, thereby improving the test efficiency.

[0062] S14, the barcode information is written into the target solid state disk.

[0063] In the embodiment, the barcode information is written into the target solid state disk, and the barcode information is used as the internal code of the target solid state disk, thereby completing the writing of the internal code of the target solid state disk.

[0064] The technical scheme of the application comprises the following steps: identifying the barcode information and the identification information contained in the to-be-tested picture, matching the barcode information with the identification information, determining the target solid state disk corresponding to the barcode information according to the identification information matched with the barcode information, and writing the barcode information into the target solid state disk, thereby completing the writing of the internal code of the target solid state disk. The whole process is completed automatically by the terminal, and the problem of inconsistency between the internal code and the external code of the solid state disk caused by repeated scanning or missed scanning of the barcode in the manual code scanning and inputting is avoided.

[0065] Figure 3 is a flowchart of a solid state disk internal code and external code matching method provided by another embodiment of the application. The purpose of the embodiment is to check whether the internal code and the external code of the solid state disk are consistent. As shown in the figure, the embodiment comprises the following steps: Figure 3As shown, the matching method of the inner code and the outer code of the solid state disk in this embodiment includes steps S31-S37. Steps S31-S33 are similar to steps S11-S13 in the above embodiment, and will not be described here again. The steps S34-S37 added in this embodiment will be described in detail below.

[0066] S31, acquiring a picture to be tested.

[0067] S32, identifying barcode information and identification information contained in the picture to be tested, and matching the barcode information with the identification information.

[0068] S33, determining a target solid state disk corresponding to the barcode information according to the identification information matched by the barcode information.

[0069] S34, acquiring an inner code of the target solid state disk.

[0070] In this embodiment, the target solid state disk has completed the writing of the inner code, and the purpose of this embodiment is to check whether the inner code of the target solid state disk is consistent with the outer code.

[0071] Specifically, the inner code of the target solid state disk is first read.

[0072] S35, judging whether the inner code of the target solid state disk is consistent with the barcode information.

[0073] In a specific implementation, the barcode information is the outer code of the target solid state disk. Therefore, the terminal judges whether the inner code of the target solid state disk is consistent with the barcode information.

[0074] S36, if the inner code of the target solid state disk is consistent with the barcode information, determining that the target solid state disk is a qualified product.

[0075] In a specific implementation, if the inner code of the target solid state disk is consistent with the barcode information, it means that the inner code of the target solid state disk is consistent with the outer code, and therefore, it is determined that the target solid state disk is a qualified product.

[0076] S37, if the inner code of the target solid state disk is inconsistent with the barcode information, determining that the target solid state disk is an unqualified product.

[0077] In a specific implementation, if the inner code of the target solid state disk is inconsistent with the barcode information, it means that the inner code of the target solid state disk is inconsistent with the outer code, and therefore, it is determined that the target solid state disk is an unqualified product.

[0078] Referring to Figure 4 , Figure 4is a schematic block diagram of a solid state disk inner code and outer code matching device 20 provided by an embodiment of the present application. Corresponding to the above solid state disk inner code and outer code matching method, the present application further provides a solid state disk inner code and outer code matching device 20. The solid state disk inner code and outer code matching device 20 includes units for performing the above solid state disk inner code and outer code matching method, and the solid state disk inner code and outer code matching device 20 can be configured in a terminal such as a desktop computer, a tablet computer, a laptop computer, etc. Specifically, the solid state disk inner code and outer code matching device 20 includes:

[0079] A first acquisition unit 21 is configured to acquire a to-be-tested picture.

[0080] An identification unit 22 is configured to identify barcode information and identification information contained in the to-be-tested picture, and match the barcode information with the identification information.

[0081] A determination unit 23 is configured to determine a target solid state disk corresponding to the barcode information according to the identification information matched with the barcode information.

[0082] A writing unit 24 is configured to write the barcode information into the target solid state disk.

[0083] In an embodiment, the acquisition of the to-be-tested picture includes:

[0084] Judging whether a collection instruction is received.

[0085] If the collection instruction is received, controlling a collection device to collect the to-be-tested picture.

[0086] In an embodiment, the matching of the barcode information with the identification information includes:

[0087] Matching identification information located in a preset area around the barcode information with the barcode information.

[0088] In an embodiment, the determination of the target solid state disk corresponding to the barcode information according to the identification information matched with the barcode information includes:

[0089] Querying a data interface corresponding to the identification information matched with the barcode information in preset identification-interface corresponding information.

[0090] Taking a solid state disk connected with the data interface corresponding to the identification information matched with the barcode information as the target solid state disk.

[0091] Referring to Figure 5 , Figure 5is another embodiment of the present application provides a solid state disk code and the schematic diagram of the matching device 20 of outer code. Corresponding to the above solid state disk code and the matching method of outer code, the present application also provides a solid state disk code and the matching device 20 of outer code. The solid state disk code and the matching device 20 of outer code includes the unit for executing the above-mentioned solid state disk code and the matching method of outer code, the solid state disk code and the matching device 20 of outer code can be configured in desktop computer, tablet computer, portable computer and other terminals. Specifically, the solid state disk code and the matching device 20 of outer code includes:

[0092] The first acquisition unit 21 is used for acquiring a to-be-tested picture;

[0093] The identification unit 22 is used for identifying barcode information and identification information contained in the to-be-tested picture, and matching the barcode information with the identification information;

[0094] The determination unit 23 is used for determining a target solid state disk corresponding to the barcode information according to the identification information matched by the barcode information;

[0095] The second acquisition unit 25 acquires the inner code of the target solid state disk;

[0096] The judgment unit 26 is used for judging whether the inner code of the target solid state disk is consistent with the barcode information;

[0097] The first determination unit 27 is used for determining that the target solid state disk is a qualified product if the inner code of the target solid state disk is consistent with the barcode information;

[0098] The second determination unit 28 is used for determining that the target solid state disk is a unqualified product if the inner code of the target solid state disk is not consistent with the barcode information.

[0099] It should be noted that those skilled in the art can clearly understand the specific implementation process of the above-mentioned solid state disk code and the matching device 20 of outer code and each unit, which can refer to the corresponding description in the foregoing method embodiments, and here will not be repeated.

[0100] The above-mentioned solid state disk code and the matching device of outer code can be realized in the form of a computer program, which can run on the computer equipment as Figure 6 Shown.

[0101] As shown in Figure 6 The present application provides a computer device, which includes a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112 and the memory 113 complete mutual communication through the communication bus 114,

[0102] a memory 113 for storing a computer program;

[0103] In an embodiment of the present application, the processor 111, when executing the program stored in the memory 113, implements the steps of the matching method of the inner code and the outer code of the solid state disk provided by any one of the preceding method embodiments.

[0104] The present application also provides a computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the matching method of the inner code and the outer code of the solid state disk provided by any one of the preceding method embodiments.

[0105] The storage medium is an entity, non-transient storage medium, for example, can be a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a magnetic disk or an optical disk, and various entity storage media that can store program codes. The computer readable storage medium can be non-volatile or volatile.

[0106] Those skilled in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been described in general terms in the above description. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0107] In several embodiments of the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and actual implementation can have another division manner. For example, a plurality of units or components can be combined or integrated into another system, or some features can be omitted or not executed.

[0108] The steps in the method embodiments of the present application can be adjusted, combined and deleted in sequence according to actual needs. The units in the device embodiments of the present application can be combined, divided and deleted according to actual needs. In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.

[0109] The integrated unit, if realized in the form of a software function unit and sold or used as an independent product, can be stored in a storage medium. Based on such understanding, the technical solutions of the present application essentially or say the part of the prior art that contributes to the present application, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a terminal, or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application.

[0110] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0111] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, these modifications and variations of the present application also belong to the scope of the claims of the present application and its equivalent technologies, and the present application also intends to include these modifications and variations.

[0112] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for matching the internal and external codes of a solid-state drive, characterized in that, include: Obtain the image to be tested; Identify the barcode information and identification information contained in the image to be tested, and match the barcode information with the identification information; The target solid-state drive corresponding to the barcode information is determined based on the identification information matched with the barcode information; Write the barcode information into the target solid-state drive; The step of determining the target solid-state drive corresponding to the barcode information based on the identification information matched with the barcode information includes: Query the data interface corresponding to the identifier information that matches the barcode information in the preset identifier-interface correspondence information; The solid-state drive connected to the data interface corresponding to the identification information matched by the barcode information is taken as the target solid-state drive.

2. The method for matching the internal and external codes of a solid-state drive according to claim 1, characterized in that, The process of obtaining the image to be tested includes: Determine whether a data collection command has been received; If a data acquisition command is received, the acquisition device is controlled to acquire the image to be tested.

3. The method for matching the internal and external codes of a solid-state drive according to claim 1, characterized in that, The matching of barcode information with identification information includes: Match the identification information located within a preset area surrounding the barcode information with the barcode information.

4. The method for matching the internal and external codes of a solid-state drive according to claim 1, characterized in that, After determining the target solid-state drive corresponding to the barcode information based on the identification information matched with the barcode information, the method further includes: Obtain the internal code of the target solid-state drive; Determine whether the internal code of the target solid-state drive matches the barcode information; If the internal code of the target solid-state drive matches the barcode information, the target solid-state drive is determined to be a qualified product.

5. The method for matching the internal and external codes of a solid-state drive according to claim 4, characterized in that, The method further includes: If the internal code of the target solid-state drive does not match the barcode information, the target solid-state drive is determined to be a defective product.

6. The method for matching the internal and external codes of a solid-state drive according to claim 1, characterized in that, The barcode information is either a one-dimensional barcode or a two-dimensional barcode, and the identification information is a serial number.

7. A device for matching internal and external codes of a solid-state drive, characterized in that, Includes a unit for performing the method as described in any one of claims 1-6.

8. A computer device, characterized in that, The computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Identifier with two-dimensional code and method for finding person under guardianship based on identifier

    CN105847595A

  • Hard disk serial number management method and system, terminal and storage medium

    CN112214384A