Equipment identification code automatic extraction method and device, equipment and storage medium

Through the automatic extraction method of identification codes in the production of smart TVs, the problems of low efficiency and high risks caused by insufficient identification codes in the production of smart TVs are solved, the automatic management of the identification code management space is realized, and the production efficiency and stability are improved.

CN118568138APending Publication Date: 2024-08-30TCL OVERSEAS ELECTRONIC (HUIZHOU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410738813.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the production process of smart TVs, the need for dedicated personnel to provide identification codes results in low work efficiency and high risks, and may lead to production line shutdowns and production shutdowns, affecting delivery rates and increasing the risk of customer claims.

Method used

The automatic extraction method of equipment identification codes is adopted, and classification processing based on identification code types is automatically triggered to extract identification codes at regular intervals to ensure that the number of identification codes in the identification code management space is always within a certain range and avoid the risk of shutdown caused by insufficient identification codes.

Benefits of technology

It improves the work efficiency of smart TV production, reduces the risk of manual management, avoids shutdowns and production shutdowns due to insufficient identification codes, and enhances the stability of production and reliability of delivery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568138A
    Figure CN118568138A
Patent Text Reader

Abstract

The invention discloses an equipment identification code automatic extraction method and device, equipment and a storage medium, and the method comprises the steps: carrying out the classification processing of an equipment identification code based on an identification code type, and obtaining the classification result information of the identification code; determining to-be-compensated identification code type information based on the identification code classification result information; determining target identification code information based on the identification code type information to be compensated; and extracting the target identification code according to the target identification code information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of identification code extraction, and in particular to a method, device, equipment and storage medium for automatically extracting a device identification code. Background Art

[0002] There is a large amount of identification code information in smart TVs, which will be burned into the smart TVs during production. The premise of burning is that there must be enough identification codes available in a timely manner.

[0003] In the current identification code burning process, a dedicated person is required to provide identification codes for each production line, which means that the time spent on this position accounts for more than 1 / 3 of the working time, greatly reducing the efficiency of the production line. In addition, during the production of smart TVs, the failure of dedicated personnel to provide identification codes in a timely manner may lead to the risk of production line shutdown and production suspension, increasing production risks, reducing delivery rates, and in serious cases, resulting in risks such as customer claims;

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for automatically extracting device identification codes, aiming to solve the technical problem that in the production process of smart TVs, a dedicated person is required to provide identification codes for production line use, which results in low work efficiency and high risks.

[0006] To achieve the above object, the present invention provides a method for automatically extracting a device identification code, the method comprising the following steps:

[0007] Classify the device identification codes based on the identification code types and determine the identification code classification result information;

[0008] Based on the identification code classification result information, determining the type information of the identification code to be compensated;

[0009] Determining target identification code information based on the identification code type information to be compensated;

[0010] Based on the target identification code information, the target identification code is determined.

[0011] Optionally, the step of determining target identification code information based on the identification code type information to be compensated includes:

[0012] Searching for compensation data in the compensation data storage space based on the type information of the identification code to be compensated, and determining a residual value of the compensation data in the compensation data storage space; the compensation data storage space is a space for storing compensation data;

[0013] Determining the quantity to be extracted according to the residual value of the compensation data;

[0014] The target identification code information is determined in the compensation data storage space; the number of the target identification codes is the number to be extracted.

[0015] Optionally, the step of determining the quantity to be extracted according to the compensation data margin value includes:

[0016] Obtaining a preset extraction amount threshold corresponding to the type information of the identification code to be compensated in the compensation data storage space;

[0017] Based on the identification code type information to be compensated, determining the target quantity to be automatically extracted;

[0018] When the compensation data margin value is not lower than the preset extraction amount threshold, taking the target amount as the amount to be extracted;

[0019] When the remaining amount of the compensation data is lower than the preset extraction amount threshold, the preset value is determined as the amount to be extracted.

[0020] Optionally, the step of determining the target identification code information in the compensation data storage space includes:

[0021] Generate a virtual batch number for extracting the device identification code; the virtual batch number is used to identify the extraction process of the device identification code for automatic extraction verification;

[0022] Target identification code information is determined in the compensation data storage space.

[0023] Optionally, the automatic extraction verification includes:

[0024] When extracting the device identification code, extracting records based on the virtual batch number to obtain an automatic extraction record table;

[0025] When the device extraction code is extracted, an extraction record table is generated based on the successfully extracted device identification code;

[0026] Performing data verification according to the automatic extraction record table and the extraction record table;

[0027] When the data verification fails, the process returns to the step of determining the target identification code information from the compensation data storage space based on the quantity to be extracted.

[0028] Optionally, the step of determining the target identification code based on the target identification code information includes:

[0029] A parallel access restriction is set for the compensation data storage space, and the target identification code is extracted from the compensation data storage space according to the target identification code information.

[0030] Optionally, the step of classifying the device identification codes based on the identification code types and determining the identification code classification result information includes:

[0031] Timed triggering of device identification code classification query request;

[0032] When the device identification code classification query request is triggered, residual statistics are performed on the device identification codes in the device identification code space according to the device identification code type to obtain identification code classification result information.

[0033] In addition, to achieve the above-mentioned purpose, the present invention also proposes a device for automatically extracting a device identification code, the device for automatically extracting a device identification code comprising:

[0034] A classification statistics module is used to classify the device identification codes based on the identification code types and determine the identification code classification result information;

[0035] A compensation management module, used to determine the type information of the identification code to be compensated based on the identification code classification result information;

[0036] An identification code statistics module, used to determine target identification code information based on the identification code type information to be compensated;

[0037] The automatic extraction module is used to determine the target identification code based on the target identification code information.

[0038] In addition, to achieve the above-mentioned purpose, the present invention also proposes a device for automatically extracting a device identification code, which includes: a memory, a processor, and a device identification code automatic extraction program stored in the memory and executable on the processor, wherein the device identification code automatic extraction program is configured to implement the steps of the device identification code automatic extraction method as described above.

[0039] In addition, to achieve the above objectives, the present invention also proposes a storage medium, on which a device identification code automatic extraction program is stored, and when the device identification code automatic extraction program is executed by a processor, the steps of the device identification code automatic extraction method as described above are implemented.

[0040] The embodiment of the present invention classifies the device identification codes based on the identification code type to obtain identification code classification result information; based on the identification code classification result information, determines the identification code type information to be compensated; based on the identification code type information to be compensated, determines the target identification code information; and extracts the target identification code according to the target identification code information. Since a timed automatic triggering method is adopted, the user sets the triggering frequency according to the actual application situation, so that the automatic extraction of the identification code can be realized, and the device identification code support is provided to the production line in a timely manner, avoiding the problems of low work efficiency and high risk caused by manual triggering. And according to the identification code classification information obtained by the classification process, the identification code type information to be compensated is determined, and according to the identification code type information to be compensated, the target identification code information to be extracted is determined, so that the number of device identification codes in the device identification code management space can always be kept within a certain range, avoiding the risk of shutdown and production suspension due to insufficient number of device identification codes, and improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a structural schematic diagram of a device for automatically extracting a device identification code from a hardware operating environment involved in an embodiment of the present invention;

[0042] Figure 2 It is a flowchart of the first embodiment of the method for automatically extracting a device identification code of the present invention;

[0043] Figure 3 It is a flow chart of the second embodiment of the method for automatically extracting a device identification code according to the present invention;

[0044] Figure 4 A schematic diagram of a flow chart of a third embodiment of a method for automatically extracting a device identification code according to the present invention;

[0045] Figure 5 A flowchart of an application scenario of the method for automatically extracting a device identification code according to the present invention;

[0046] Figure 6 It is a structural block diagram of the first embodiment of the device for automatically extracting device identification codes according to the present invention.

[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0049] Reference Figure 1 , Figure 1 This is a schematic diagram of a device structure for automatically extracting a device identification code from a hardware operating environment according to an embodiment of the present invention.

[0050] like Figure 1 As shown, the device identification code automatic extraction device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0051] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the device for automatically extracting the device identification code, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0052] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a device identification code automatic extraction program.

[0053] exist Figure 1 In the device for automatic extraction of device identification codes shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the device for automatic extraction of device identification codes of the present invention can be arranged in the device for automatic extraction of device identification codes, and the device for automatic extraction of device identification codes calls the device for automatic extraction of device identification codes stored in the memory 1005 through the processor 1001, and executes the device for automatic extraction of device identification codes provided in an embodiment of the present invention.

[0054] The embodiment of the present invention provides a method for automatically extracting a device identification code. Figure 2 , Figure 2 1 is a flow chart of a first embodiment of a method for automatically extracting a device identification code according to the present invention.

[0055] In this embodiment, the method for automatically extracting a device identification code includes the following steps:

[0056] Step S10: classifying the device identification codes based on the identification code types to determine identification code classification result information.

[0057] It should be noted that the execution subject of the method of this embodiment can be a terminal device with data processing, surplus statistics and program running functions, such as an industrial computer, a server, etc., or an electronic device with the same or similar functions, such as the above-mentioned device identification code automatic extraction device. The following takes the device identification code automatic extraction device (hereinafter referred to as the extraction device) as an example to illustrate this embodiment and the following embodiments.

[0058] It should be explained that the automatic device identification code extraction method of the embodiment of the present invention can be applied to scenarios where device identification code extraction is required, such as display production scenarios, smart TV production scenarios, mobile phone production processes, automobile production processes, etc., and the embodiment of the present invention is not limited to this.

[0059] It should be noted that, in order to facilitate a detailed description of the method for automatically extracting a device identification code of the present invention, the present invention and the following embodiments are described by taking the automatic extraction of a device identification code of a smart TV as an example.

[0060] It can be understood that the above-mentioned identification code types are also the identification code types involved in the production process. For example, in the production process of smart TVs, device identification codes of types such as smart chip identification codes, MAC addresses, device identification numbers, serial numbers, and cell identification codes may be included.

[0061] It should be understood that different types of device identification codes may be stored in the identification code management space, and corresponding databases or data tables may be provided in the identification code management space for the storage and management of these device identification codes. For example, for a smart chip identification code, there may be a corresponding smart chip identification code data table for storing the smart chip identification code.

[0062] It should be noted that the above-mentioned identification code management space is a storage space for managing device identification code data, which can be a specific physical space or an abstract data space, and the embodiment of the present invention does not limit this.

[0063] It needs to be explained that the above-mentioned identification code management space is used to allocate, use and manage the stored identification codes. Through the identification code management space, the device identification code corresponding to each identification code type can be allocated to the corresponding production line, so that each production line can burn the identification code into the production equipment in time.

[0064] In order to facilitate the description of the automatic extraction method of the device identification code of the present invention, the present invention takes a data table as an example of a storage method of various types of device identification codes to describe the embodiment of the present invention and the following embodiments in detail.

[0065] It should be understood that any device identification code may be stored in the identification code data table corresponding to each type of device identification code. By performing residual statistics on the number of device identification codes stored in the identification code data table, the identification code residual corresponding to the identification code type can be determined.

[0066] It should be explained that classifying the device identification codes means classifying them according to their identification code types, thereby determining various types of device identification codes in the identification code management space and the remaining information of the device identification codes, that is, obtaining the identification code classification result information.

[0067] It should be noted that in order to obtain the remaining information of the device identification code, the device identification code type can be determined according to the classification result of the classification processing, and the remaining statistics of each device identification code type can be performed to determine the identification code remaining corresponding to each device identification code type. The embodiment of the present invention does not limit the method of counting the remaining of the device identification code, which can be counted in the form of traversal, in the form of serial number, in the form of view, etc.

[0068] In one implementation of the embodiment of the present invention, a field for indicating a stored identification code serial number may be provided in the identification code data table. When a device identification code is stored in the identification code data table, the identification code serial number may be set for the field. Each time a device identification code is stored, its corresponding identification code serial number is the current maximum identification code serial number plus one; each time a device identification code is taken out, the identification code serial number in the identification code data is modified accordingly. In this way, when performing the remainder statistics, the device identification code remainder in the identification code data table can be directly determined according to the identification code serial number.

[0069] It should be noted that the triggering method for the residual statistics may be a timing triggering, or may be triggered according to a user instruction, or may be other methods, which are not limited in the embodiment of the present invention.

[0070] In one implementation of the present invention, the user can view the device identification code balance in the identification code data table corresponding to each identification code type in real time, and perform operations such as balance entry, threshold modification, and type management according to the device identification code balance. Specifically, when the user needs to view the device identification code balance, a balance statistics request can be triggered to perform balance statistics.

[0071] It should be noted that the battery remaining statistics request triggered by the user may be a battery remaining statistics request corresponding to a single identification code type or a battery remaining statistics request corresponding to multiple identification code types, which is not limited in the embodiment of the present invention.

[0072] In one implementation of the present invention, the extraction device may also trigger a balance statistics request at a fixed time, for example, triggering a balance statistics request once every hour to perform balance statistics of the device identification code. Specifically, the step of classifying the device identification code based on the identification code type and determining the identification code classification result information includes:

[0073] Timed triggering of device identification code classification query request;

[0074] When the device identification code classification query request is triggered, residual statistics are performed on the device identification codes in the device identification code space according to the device identification code type to obtain identification code classification result information.

[0075] It should be noted that, when the timing is triggered, the present invention does not limit the triggering interval of the surplus statistics request, and can be set according to the production line scale and the identification code burning speed in the actual application, such as triggering once every hour, once every half hour, once every two hours, etc.

[0076] In the specific implementation, the extraction device classifies the device identification code based on the identification code type and obtains the identification code classification result information. Since it adopts the timed automatic triggering method, the user sets the triggering frequency according to the actual application situation, so that the automatic extraction of the identification code can be realized, and the equipment identification code support is provided to the production line in time, avoiding the problems of low work efficiency and high risk caused by manual triggering.

[0077] Step S20: determining the type information of the identification code to be compensated based on the identification code classification result information;

[0078] Step S30: determining target identification code information based on the identification code type information to be compensated;

[0079] Step S40: Determine the target identification code based on the target identification code information.

[0080] It should be understood that when the identification code classification result information is obtained, it can be determined whether the remaining number of device identification codes corresponding to each identification code type is lower than the preset remaining threshold value according to the remaining statistical result in the identification code classification result information. If there is an identification code type whose remaining number of device identification codes is lower than the preset remaining threshold value, then the type is determined as the identification code type to be compensated.

[0081] It is understandable that for the type of identification code to be compensated, the extraction equipment needs to perform margin compensation on it to avoid production stoppage due to problems such as insufficient number of identification codes during the production line production process.

[0082] It should be noted that the embodiment of the present invention does not limit the specific number of the above-mentioned preset margin thresholds, and can be selected according to the needs of the actual production process, such as 500, 1000, etc.

[0083] It should be explained that the above-mentioned compensation data storage space is a space for storing compensation data. The compensation data storage space is a storage space for managing compensation data, which can be a specific physical space or an abstract data space, and the embodiment of the present invention does not limit this.

[0084] It can be understood that in order to facilitate the storage and management of compensation data, the compensation data storage space may include data tables corresponding to each identification code type. For the specific setting of the compensation data storage space, reference can be made to the description of the above-mentioned identification code management space, which will not be elaborated in the embodiment of the present invention.

[0085] In one embodiment of the present invention, the identification code management space and the compensation data storage space can be arranged in the same device, for example, in an extraction device. The management of the identification code management space and the compensation data storage space can be realized through different modules, and the data interaction between the identification code management space and the compensation data storage space can be realized through the interaction between the modules.

[0086] In another embodiment of the present invention, the identification code management space and the compensation data storage space may be arranged in different devices. For example, the extraction device may include an identification code storage end and an identification code use end.

[0087] It should be noted that the identification code storage end is a device end provided with a storage space for compensation data, and the identification code use end is a device end provided with an identification code management space.

[0088] In actual applications, the identification code user can perform classification processing and remaining statistics at regular intervals, and initiate an extraction request to the identification code storage end when the device identification code remaining is insufficient to realize identification code extraction.

[0089] For the convenience of description, the present invention takes the example that the identification code management space and the above-mentioned compensation data storage space can be set in the same device, and describes the embodiment of the present invention and the following embodiments in detail. For the case where they are set in different devices, the description of setting in the same device can be referred to for adaptive modification, and the embodiment of the present invention will not be repeated in detail.

[0090] In a specific implementation, the extraction device determines the type information of the identification code to be compensated based on the identification code classification result information; determines the target identification code information based on the identification code type information to be compensated; and extracts the target identification code based on the target identification code information. Since the identification code type information to be compensated is determined based on the identification code classification information obtained by the classification process, and the target identification code information to be extracted is determined based on the identification code type information to be compensated, the number of device identification codes in the device identification code management space can always be kept within a certain range, avoiding the risk of shutdown and production suspension due to insufficient number of device identification codes, and improving production efficiency.

[0091] The embodiment of the present invention classifies the device identification codes based on the identification code type to obtain identification code classification result information; based on the identification code classification result information, determines the identification code type information to be compensated; based on the identification code type information to be compensated, determines the target identification code information; and extracts the target identification code according to the target identification code information. Since a timed automatic triggering method is adopted, the user sets the triggering frequency according to the actual application situation, so that the automatic extraction of the identification code can be realized, and the device identification code support is provided to the production line in a timely manner, avoiding the problems of low work efficiency and high risk caused by manual triggering. And according to the identification code classification information obtained by the classification process, the identification code type information to be compensated is determined, and according to the identification code type information to be compensated, the target identification code information to be extracted is determined, so that the number of device identification codes in the device identification code management space can always be kept within a certain range, avoiding the risk of shutdown and production suspension due to insufficient number of device identification codes, and improving production efficiency.

[0092] Based on the first embodiment of the method for automatically extracting a device identification code of the present invention as described above, a second embodiment of the method for automatically extracting a device identification code of the present invention is proposed.

[0093] refer to Figure 3 , Figure 3 Schematic diagram of the flow chart of the second embodiment of the method for automatically extracting a device identification code according to the present invention.

[0094] In this embodiment, the step of determining the type information of the identification code to be compensated based on the identification code classification result information includes:

[0095] Step S21: obtaining a preset remaining threshold of the device identification code based on the identification code classification result information.

[0096] It should be noted that the preset remaining threshold of the device identification code is also the remaining threshold for judging the remaining number of each type of device identification code. For each type of identification code, the corresponding preset remaining threshold can be the same or different, and the embodiment of the present invention does not limit this.

[0097] Step S22: judging the remaining quantity of each identification code type based on the preset remaining quantity threshold; the remaining quantity statistical result is represented by the statistical remaining quantity of each identification code type;

[0098] Step S23: when the remaining quantity of the identification code type is lower than the preset remaining quantity threshold, determining the identification code type information to be supplemented according to the identification code type.

[0099] It can be understood that, for an identification code type in the device identification code management space, if the remaining number of device identification codes corresponding to the identification code type is lower than the corresponding preset margin threshold, the identification code type can be determined as the identification code type to be compensated, so as to realize automatic extraction of the device identification code corresponding to the type; if the remaining number of device identification codes corresponding to the identification code type is not lower than the corresponding preset margin threshold, it means that the number of device identification codes corresponding to the identification code type is sufficient and no automatic extraction is required. That is, by comparing the remaining number of the device identification code type with the preset margin threshold corresponding to the device identification code type, the identification code type information to be compensated can be determined.

[0100] In a specific implementation, the extraction device obtains the preset surplus threshold of the device identification code based on the identification code classification result information; the remaining number of each identification code type is judged based on the preset surplus threshold; the surplus statistical result is represented as the statistical remaining number of each identification code type; when the remaining number of the identification code type is lower than the preset surplus threshold, the identification code type information to be supplemented is determined according to the identification code type. Since the identification code type is determined as the identification code type to be compensated when the remaining number of the identification code type is lower than the preset surplus threshold, the automatic extraction of the device identification code corresponding to the identification code type is realized, which avoids the shutdown and production stoppage caused by insufficient number of equipment identification codes in the production process and improves production efficiency.

[0101] Furthermore, in order to ensure that the compensation data in the compensation data storage space is sufficient, the step of determining the target identification code information based on the identification code type information to be compensated includes:

[0102] Step S310: searching for compensation data in the compensation data storage space based on the type information of the identification code to be compensated, and determining the compensation data margin value in the compensation data storage space; the compensation data storage space is a space for storing compensation data;

[0103] Step S320: determining the quantity to be extracted according to the compensation data surplus value;

[0104] Step S330: determining target identification code information in the compensation data storage space; the number of target identification codes is the number to be extracted.

[0105] It is understandable that when the identification code type information to be compensated is determined, the identification code type to be compensated, that is, the identification code type to be compensated, can be determined based on the identification code type information to be compensated. Further, the compensation data storage space corresponding to the identification code type to be compensated can be determined, so as to determine the target identification code information from the compensation data storage space and extract the target identification code.

[0106] It should be noted that for different identification code types, the corresponding compensation data storage spaces may be the same or different. When the compensation data storage spaces corresponding to different identification code types are the same, different data tables or databases may be provided for different types of identification codes to facilitate identification of different identification code types.

[0107] It should be explained that in order to ensure that the compensating data storage space contains enough device identification codes so that the extraction device can extract the device identification codes in the compensating data storage space to the device identification code management space. A corresponding preset extraction threshold can be set for each identification code type in the compensating data storage space. By real-time monitoring the number of device identification codes of each identification code type in the compensating data storage space, when the number of device identification codes of an identification code type is lower than the preset extraction threshold, the extraction device can initiate a balance reminder to the user so that the user can replenish it in time to avoid insufficient balance. In addition, when the balance of device identification codes in the compensating data storage space is insufficient, the device identification codes in the compensating data storage space can also be supplemented.

[0108] It is understandable that the above balance reminder may be in the form of an email reminder, a message reminder, or other reminder methods, which is not limited in the embodiment of the present invention.

[0109] In one implementation of the embodiment of the present invention, the user can initiate a balance entry function to import the device identification code into the compensation data storage space. The user can also set and modify parameters such as the preset extraction threshold, preset balance threshold, identification code type, etc. in the compensation data storage space and the identification code management space to meet user needs.

[0110] In an implementation of the present invention, the step of determining the quantity to be extracted according to the compensation data margin value includes:

[0111] Obtaining a preset extraction amount threshold corresponding to the type information of the identification code to be compensated in the compensation data storage space;

[0112] Based on the identification code type information to be compensated, determining the target quantity to be automatically extracted;

[0113] When the compensation data margin value is not lower than the preset extraction amount threshold, taking the target amount as the amount to be extracted;

[0114] When the compensation data margin value is lower than the preset extraction amount threshold, the preset value is determined as the amount to be extracted, and the preset value may be zero or other preset values.

[0115] It is understandable that the target quantity may be an initial rated value preset by a user, or may be determined according to the type of identification code to be compensated and the remaining number of the type of identification code to be compensated.

[0116] It should be understood that for device identification codes of different identification code types, their consumption speeds on the production line are different, so the preset extraction amount threshold, preset remaining threshold, initial rated value and other thresholds or values ​​set for different identification code types may be different.

[0117] It can be understood that the target identification code information may include the identification code type of the target identification code, that is, the identification code type to be compensated, and information such as the number to be extracted corresponding to the identification code type to be compensated.

[0118] In one implementation of the embodiment of the present invention, the target quantity may be obtained by determining the target quantity based on the initial rated value preset by the user and the remaining quantity of the identification code type to be compensated. For example, the initial rated value of the identification code type to be compensated is 500, and the preset margin threshold of the identification code type to be compensated is 1000. When the remaining quantity of the identification code type to be compensated is 300, it is necessary to extract twice the initial rated quantity; when the remaining quantity of the identification code type to be compensated is 900, it is necessary to extract 1 times the rated quantity. Specifically, the target quantity may be an integer multiple of the initial rated quantity. By extracting the device identification codes of the target quantity, the remaining quantity of the identification code type to be compensated can be compensated to not less than the preset margin threshold.

[0119] In one implementation of the embodiment of the present invention, for the device identification codes in the compensation data storage space, among which the device identification codes of each identification code type, a suspension extraction threshold may also be set, and the suspension extraction threshold is less than the preset extraction amount threshold. When the number of device identification codes of this type in the compensation data storage space is not less than the preset extraction amount threshold, the first extraction strategy may be adopted to perform normal extraction, that is, the number of automatically extracted to be extracted is determined as the target number; when the number of device identification codes of this type in the compensation data storage space is between the preset extraction amount threshold and the suspension extraction threshold, the second extraction strategy may be adopted to reduce the extraction range of the device identification code, that is, the number to be extracted is determined according to the target number and the actual extraction range, and a reminder of serious shortage of balance may also be initiated to the user; when the number of device identification codes of this type in the compensation data storage space is less than the suspension extraction threshold, the third extraction strategy may be adopted to suspend the extraction of device identification codes of this identification code type.

[0120] It can be understood that the above-mentioned reduction in the amplitude of device code extraction may be to reduce the number of device code extraction to half or three quarters, or other proportions, which is not limited in the embodiment of the present invention.

[0121] It should be understood that by setting different extraction gradients for automatic extraction, the extraction strategy can be changed according to the number of device identification codes in the compensation data storage space during automatic extraction, thereby enhancing the flexibility of automatic extraction and improving the practicality and application scope of automatic extraction.

[0122] The embodiment of the present invention searches based on the type information of the identification code to be compensated, determines the compensation data margin in the compensation data storage space; determines the number to be automatically extracted based on the compensation data margin; and determines the target identification code information in the compensation data storage space based on the number to be extracted. Since the supplementary data margin is determined in the supplementary data storage space based on the type information of the identification code to be compensated, and then the number to be extracted is determined; and the target identification code information is determined in the supplementary data storage space based on the number to be extracted, so that the type of identification code to be compensated in the identification code management space is supplemented in time, it is ensured that there are enough equipment identification codes in the identification code management space for the production line to use.

[0123] Based on the above embodiments, in order to improve the extraction quality of the device identification code, a third embodiment of the method of the present invention is proposed. Figure 4 , Figure 4 Schematic diagram of the flow chart of the third embodiment of the method for automatically extracting a device identification code according to the present invention.

[0124] In this embodiment, the step of determining the target identification code information in the compensation data storage space includes:

[0125] Generate a virtual batch number for extracting the device identification code; the virtual batch number is used to identify the extraction process of the device identification code for automatic extraction verification;

[0126] The target identification code information is determined in the compensation data storage space. It should be noted that in order to identify the extraction of device identification codes of each identification code type, a corresponding virtual batch number can be set for the identification code extraction process corresponding to the different identification code types. Through the virtual batch number, the extraction process management, such as extraction priority, extraction record management, etc., can be realized, and the embodiment of the present invention does not limit this.

[0127] In one implementation of an embodiment of the present invention, different initial rated values ​​may be set for device identification codes of different identification code types, and the initial rated value may be set based on a preset margin threshold. For example, if the preset margin threshold is 500, the initial rated value may also be set to 500. The embodiment of the present invention does not limit the specific number of the initial rated values ​​and the relationship between the initial rated value and the preset margin threshold, and may be selected according to the actual application situation.

[0128] It is understandable that, since the number of device identification codes of each identification code type in the compensation data storage space may adopt different extraction strategies in different ranges, the number to be extracted in this extraction process can be set based on the extraction strategy of this extraction process. For example, the initial rated value is 500, the target extraction number determined according to the initial rated value is 500, and the extraction strategy is the first extraction strategy, then 500 device identification codes are extracted this time.

[0129] In a specific implementation, since the number of devices to be extracted corresponding to the device identification codes of the types of devices to be compensated is determined according to different extraction strategies, the gradient restrictions in the extraction process are clarified, and the flexibility of automatic extraction is improved.

[0130] Target identification code information is determined from the compensation data storage space based on the number to be extracted.

[0131] It is understandable that when the number to be extracted is determined, the extraction device can extract the corresponding number of device identification codes from the compensation data storage space to the identification code management space. When extracting the device identification code, the extraction record can also be made based on the virtual batch number to generate an automatic extraction record table. Through the automatic extraction record table, the automatic extraction can be verified.

[0132] In one embodiment of the present invention, in order to ensure the stability of automatic extraction and data consistency, the step of determining the target identification code based on the target identification code information includes:

[0133] A parallel access restriction is set for the compensation data storage space, and the target identification code is extracted from the compensation data storage space according to the target identification code information.

[0134] When the fetch is complete, the parallel access restriction is released.

[0135] It is understandable that when parallel access restrictions are applied to the compensation data storage space, other tasks or devices are prevented from accessing the compensation data storage space, so that only one device or task is allowed to access the compensation data storage space in the same implementation, thereby ensuring data consistency.

[0136] It should be noted that, in the embodiment of the present invention, the operation of performing parallel access restriction may be locking, or may be priority control, etc., which is not limited in the embodiment of the present invention.

[0137] In one embodiment of the present invention, in order to ensure the extraction quality, the automatic extraction verification includes:

[0138] Step S321: when extracting the device identification code, extracting records based on the virtual batch number to obtain an automatic extraction record table;

[0139] Step S322: when the device extraction code is extracted, an extraction record table is generated based on the successfully extracted device identification code;

[0140] Step S323: performing data verification according to the automatic extraction record table and the extraction record table;

[0141] Step S324: when the data verification fails, return to the step of determining the target identification code information from the compensation data storage space based on the quantity to be extracted.

[0142] It should be noted that for different identification code types, the corresponding virtual batch numbers may be different. For each batch of extraction process, when the extraction is completed, the successfully extracted device identification code can be determined, and an extraction record table can be generated based on the successfully extracted device identification code.

[0143] It should be understood that when the extraction record table corresponding to the virtual batch number exists, the extraction record table will no longer be generated, and the device identification code will be directly added to the existing extraction record table.

[0144] It is understandable that data comparison can be performed based on the extraction record table and the automatic extraction record table generated by the extraction process. When the device identification codes in the extraction record table and the automatic extraction record table are consistent, the device identification code in the extraction record table can be inserted into the identification code data table of the corresponding identification code type in the identification code management space. When the insertion is completed, the cache data and corresponding records generated by the extraction process can be deleted to optimize system resources. When the device identification codes in the extraction record table and the automatic extraction record table are inconsistent, the automatic extraction process of the identification code type can be repeated.

[0145] It should be understood that when the device identification code in the compensation data storage space is successfully extracted to the identification code management space, the corresponding device identification code can be deleted from the compensation data storage space.

[0146] The embodiment of the present invention generates a virtual batch number for extracting a device identification code through an extraction device; determines the target identification code information from the compensation data storage space based on the quantity to be extracted; extracts the device identification code from the compensation data storage space based on the quantity to be extracted; when extracting the device identification code, extracts the record based on the virtual batch number to obtain an automatic extraction record table, which is used for automatic extraction verification. Since a virtual batch number is generated to identify the extraction process, and an extraction record is obtained based on the virtual batch number to obtain an automatic extraction record table for automatic extraction verification, the extraction quality of the automatic extraction is improved.

[0147] Figure 5 The present invention is a flowchart of an application scenario of the method for automatically extracting a device identification code.

[0148] like Figure 5 As shown, the device identification code automatic extraction method of the present invention can be applied to the device identification code automatic extraction system. The system includes an identification code storage end and an identification code use end, wherein the identification code storage end is provided with an import service module, and the identification code use end is provided with an identification code management module. The import service module can realize data import management and compensation data storage space management, and the identification code management module can realize the management of the identification code management space.

[0149] Specifically, the functions of the identification code management module can be as follows:

[0150] 1. Timed triggering of margin statistics: The identification code management module can trigger margin statistics at a regular time and obtain margin statistics results in case of abnormality;

[0151] 2. If the balance statistics result triggers the extraction condition, an extraction request is generated; if not triggered, it is skipped.

[0152] It is understandable that when the balance statistics result triggers the extraction condition, that is, when the number of device identification codes of the identification code type is lower than the preset encounter threshold, the identification code type can be determined as the identification code type to be compensated and an extraction request can be generated based on the identification code type.

[0153] Furthermore, the identification code management module may send the extraction request to the import service module, and the import service module may perform the following operations:

[0154] 1. Threshold judgment: The import service module can monitor the number of device identification codes corresponding to each identification code type in the compensation data storage space in real time. If the number of device identification codes is not lower than the preset extraction threshold, then when an extraction request corresponding to the identification code type is received, the identification code is extracted according to the first extraction strategy; when the number of device identification codes of this type in the compensation data storage space is between the preset extraction threshold and the suspension extraction threshold, the identification code is extracted according to the second extraction strategy to reduce the extraction amplitude of the device identification code and initiate a serious insufficient balance reminder to the user; when the number of device identification codes of this type in the compensation data storage space is lower than the suspension extraction threshold, the third extraction strategy can be adopted to suspend the extraction of device identification codes of this identification code type, that is, to determine that the number of extracted codes is 0.

[0155] 2. Determine the quantity to be withdrawn: When a withdrawal request is received, the quantity to be withdrawn can be determined according to the withdrawal strategy corresponding to the type of identification code to be compensated.

[0156] 3. Parallel access restrictions: When determining the quantity to be extracted, parallel access restrictions can be imposed on the compensation data storage space.

[0157] 4. Create a virtual batch number and generate an automatic extraction record table: Import the service module to create a virtual batch number for automatic extraction, and perform automatic extraction, generating an automatic extraction record table during the extraction process.

[0158] 5. Extraction complete, release parallel access restrictions: When the extraction is complete, the parallel access restrictions can be released so that other tasks or devices can access the compensation data storage space.

[0159] Furthermore, during the extraction process, the import service module may return the device identification code in the compensation data storage space to the identification code management module; the identification code management module may generate an extraction record table according to the received device identification code.

[0160] Further, when the extraction is completed, the identification code management module can return the extraction record table to the import service module so that the import service module can:

[0161] 1. Compare the tables according to the virtual batch number: When the import service module receives the extraction record table, it can compare the extraction record table with the automatic extraction record table according to the virtual batch number. If the data are consistent, the corresponding device identification code in the compensation data storage space is deleted; if the data are inconsistent, the information is returned to the identification code management module to enable the identification code management module to delete the corresponding device identification code in the extraction record table.

[0162] It is understandable that when the table comparison is completed, the cache data generated by the automatic extraction in the import service module can be deleted. That is, the import service module executes 2. Delete cache data.

[0163] It should be understood that when the table comparison is completed, the identification code management module also correspondingly deletes the cache data generated during the automatic extraction process.

[0164] By applying the automatic extraction method of equipment identification codes of the present invention, the risk of production line shutdown or production suspension due to insufficient identification codes is avoided, labor costs are reduced, work efficiency is improved, offline manual management is converted to online IT-based automatic management, and delivery risks are reduced.

[0165] In addition, an embodiment of the present invention further provides a storage medium, on which a device identification code automatic extraction program is stored. When the device identification code automatic extraction program is executed by a processor, the steps of the device identification code automatic extraction method described above are implemented.

[0166] Based on the first embodiment of the method for automatically extracting a device identification code of the present invention, a first embodiment of the device identification code automatic extraction device of the present invention is proposed. Figure 6 , Figure 6 It is a structural block diagram of the first embodiment of the device for automatically extracting device identification codes according to the present invention.

[0167] like Figure 6 As shown, the device for automatically extracting a device identification code provided in an embodiment of the present invention includes:

[0168] The classification statistics module 601 is used to classify the device identification codes based on the identification code types and determine the identification code classification result information;

[0169] A compensation management module 602, configured to determine information on the type of identification code to be compensated based on the identification code classification result information;

[0170] The identification code statistics module 603 is used to determine the target identification code information based on the identification code type information to be compensated;

[0171] The automatic extraction module 604 is used to determine the target identification code based on the target identification code information.

[0172] The embodiment of the present invention classifies the device identification codes based on the identification code type to obtain identification code classification result information; based on the identification code classification result information, determines the identification code type information to be compensated; based on the identification code type information to be compensated, determines the target identification code information; and extracts the target identification code according to the target identification code information. Since a timed automatic triggering method is adopted, the user sets the triggering frequency according to the actual application situation, so that the automatic extraction of the identification code can be realized, and the device identification code support is provided to the production line in a timely manner, avoiding the problems of low work efficiency and high risk caused by manual triggering. And according to the identification code classification information obtained by the classification process, the identification code type information to be compensated is determined, and according to the identification code type information to be compensated, the target identification code information to be extracted is determined, so that the number of device identification codes in the device identification code management space can always be kept within a certain range, avoiding the risk of shutdown and production suspension due to insufficient number of device identification codes, and improving production efficiency.

[0173] In one implementation of an embodiment of the present invention, the identification code statistics module 603 is also used to search for compensation data in the compensation data storage space based on the type information of the identification code to be compensated, and determine the compensation data remainder value in the compensation data storage space; the compensation data storage space is a space for storing compensation data; based on the compensation data remainder value, the number to be extracted is determined; the target identification code information is determined in the compensation data storage space; the number of target identification codes is the number to be extracted.

[0174] In one implementation of an embodiment of the present invention, the identification code statistics module 603 is also used to obtain a preset extraction quantity threshold corresponding to the identification code type information to be compensated in the compensation data storage space; based on the identification code type information to be compensated, determine the target quantity for automatic extraction; when the compensation data remainder value is not lower than the preset extraction quantity threshold, use the target quantity as the quantity to be extracted; when the compensation data remainder value is lower than the preset extraction quantity threshold, determine the preset value as the quantity to be extracted.

[0175] In one implementation of an embodiment of the present invention, the identification code statistics module 603 is also used to generate a virtual batch number for extracting the device identification code; the virtual batch number is used to identify the extraction process of the device identification code for automatic extraction verification; and the target identification code information is determined in the compensation data storage space.

[0176] In one implementation of the embodiment of the present invention, the automatic extraction module 604 is also used to extract records based on the virtual batch number to obtain an automatic extraction record table when extracting the device identification code; when the device extraction code is extracted, an extraction record table is generated based on the successfully extracted device identification code; data verification is performed according to the automatic extraction record table and the extraction record table; when the data verification fails, return to the step of determining the target identification code information from the compensation data storage space based on the number to be extracted. In one implementation of the embodiment of the present invention, the automatic extraction module 604 is also used to set parallel access restrictions on the compensation data storage space, and extract the target identification code from the compensation data storage space according to the target identification code information.

[0177] In an implementation of the embodiment of the present invention, the automatic extraction module 604 is further used to set parallel access restrictions on the compensation data storage space, and extract the target identification code from the compensation data storage space according to the target identification code information.

[0178] In one implementation of an embodiment of the present invention, the classification statistics module 601 is also used to periodically trigger a device identification code classification query request; when the device identification code classification query request is triggered, the residual statistics of the device identification codes in the device identification code space are performed according to the device identification code type to obtain the identification code classification result information.

[0179] Other embodiments or specific implementations of the device for automatically extracting the device identification code of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.

[0180] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0181] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0182] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0183] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for automatically extracting a device identification code, characterized in that: The method comprises: Classify the device identification codes based on the identification code types and determine the identification code classification result information; Based on the identification code classification result information, determining the type information of the identification code to be compensated; Determining target identification code information based on the identification code type information to be compensated; Based on the target identification code information, the target identification code is determined.

2. The method for automatically extracting a device identification code according to claim 1, characterized in that: The step of determining target identification code information based on the identification code type information to be compensated comprises: Searching for compensation data in the compensation data storage space based on the type information of the identification code to be compensated, and determining a residual value of the compensation data in the compensation data storage space; the compensation data storage space is a space for storing compensation data; Determining the quantity to be extracted according to the residual value of the compensation data; The target identification code information is determined in the compensation data storage space; the number of the target identification codes is the number to be extracted.

3. The method for automatically extracting a device identification code according to claim 2, characterized in that: The step of determining the quantity to be extracted according to the compensation data margin value comprises: Obtaining a preset extraction amount threshold corresponding to the type information of the identification code to be compensated in the compensation data storage space; Based on the identification code type information to be compensated, determining the target quantity to be automatically extracted; When the compensation data margin value is not lower than the preset extraction amount threshold, taking the target amount as the amount to be extracted; When the remaining amount of the compensation data is lower than the preset extraction amount threshold, the preset value is determined as the amount to be extracted.

4. The method for automatically extracting a device identification code according to claim 2, wherein: The step of determining the target identification code information in the compensation data storage space comprises: Generate a virtual batch number for extracting the device identification code; the virtual batch number is used to identify the extraction process of the device identification code for automatic extraction verification; Target identification code information is determined in the compensation data storage space.

5. The method for automatically extracting a device identification code according to claim 4, characterized in that: The automatic extraction verification comprises: When extracting the device identification code, extracting records based on the virtual batch number to obtain an automatic extraction record table; When the device extraction code is extracted, an extraction record table is generated based on the successfully extracted device identification code; Performing data verification according to the automatic extraction record table and the extraction record table; When the data verification fails, the process returns to the step of determining the target identification code information from the compensation data storage space based on the quantity to be extracted.

6. The method for automatically extracting a device identification code according to claim 4, characterized in that: The step of determining the target identification code based on the target identification code information includes: A parallel access restriction is set for the compensation data storage space, and the target identification code is extracted from the compensation data storage space according to the target identification code information.

7. The method for automatically extracting a device identification code according to any one of claims 1 to 6, characterized in that: The step of classifying the device identification codes based on the identification code types and determining the identification code classification result information comprises: Timed triggering of device identification code classification query request; When the device identification code classification query request is triggered, residual statistics are performed on the device identification codes in the device identification code space according to the device identification code type to obtain identification code classification result information.

8. A device for automatically extracting a device identification code, characterized in that: The device identification code automatic extraction device comprises: A classification statistics module is used to classify the device identification codes based on the identification code types and determine the identification code classification result information; A compensation management module, used to determine the type information of the identification code to be compensated based on the identification code classification result information; An identification code statistics module, used to determine target identification code information based on the identification code type information to be compensated; The automatic extraction module is used to determine the target identification code based on the target identification code information.

9. A device for automatically extracting a device identification code, characterized in that: The device for automatically extracting device identification codes comprises: a memory, a processor and a program for automatically extracting device identification codes stored in the memory and executable on the processor, wherein the program for automatically extracting device identification codes is configured to implement the steps of the method for automatically extracting device identification codes as described in any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores a device identification code automatic extraction program, and when the device identification code automatic extraction program is executed by the processor, the steps of the device identification code automatic extraction method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • File uploading method and device, file downloading method and device, computer equipment and storage medium

    CN112565393A

  • Identification generation method and device

    CN116975069A