CN111126004A - Method, device and equipment for generating product sequence code and computer readable storage medium - Google Patents

Method, device and equipment for generating product sequence code and computer readable storage medium Download PDF

Info

Publication number
CN111126004A
CN111126004A CN201911400200.5A CN201911400200A CN111126004A CN 111126004 A CN111126004 A CN 111126004A CN 201911400200 A CN201911400200 A CN 201911400200A CN 111126004 A CN111126004 A CN 111126004A
Authority
CN
China
Prior art keywords
data
current production
generating
sequence code
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911400200.5A
Other languages
Chinese (zh)
Inventor
张翔
徐建廷
叶欣
黄裕全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Biwin Storage Technology Co Ltd
Original Assignee
Biwin Storage Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Biwin Storage Technology Co Ltd filed Critical Biwin Storage Technology Co Ltd
Priority to CN201911400200.5A priority Critical patent/CN111126004A/en
Publication of CN111126004A publication Critical patent/CN111126004A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/04Manufacturing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Manufacturing & Machinery (AREA)
  • Data Mining & Analysis (AREA)
  • Computational Linguistics (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a device and equipment for generating a product sequence code and a computer readable storage medium, wherein the method for generating the product sequence code comprises the following steps: acquiring current production data of the production equipment, wherein the current production data comprises a current equipment address and a current system date; acquiring first data of a first storage position, wherein the first data comprises a device address and a system date; judging whether the first data is consistent with the current production data; if the first data is completely consistent with the current production data, second data of a second storage position is obtained, the second data is processed to obtain first coded data, and a first product sequence code is generated according to the first data and the first coded data; and if the first data is not completely consistent with the current production data, generating a second product sequence code according to the current production data and the first target data. The invention has the beneficial effects of solving the problems of repeated serial numbers and complex operation.

Description

Method, device and equipment for generating product sequence code and computer readable storage medium
Technical Field
The invention relates to the technical field of product coding, in particular to a method, a device, equipment and a computer readable storage medium for generating a product sequence code.
Background
The product Serial Number is a specific marking mode adopted by a product manufacturer to identify each produced product, is also called as an SN code (abbreviation of Serial Number), and is mainly used for product production process control, production quality management, after-sales service management and other aspects, so as to manage production, sales, use and maintenance of the product.
At present, a commonly used method for generating a product serial code of an electronic device is as follows: several product serial codes are randomly generated in advance according to requirements, different product serial codes are distributed to different products and input into the products in a label form or by a scanning device, however, because the mode easily causes the problem of repeated distribution of serial numbers, the input product serial codes need to be read out from the products one by one to judge whether the products are distributed and input without errors. Therefore, the method for generating the serial number which sequentially completes the preset serial number, the assigned serial number and the check serial number has the problems of complex operation and low efficiency.
Disclosure of Invention
The invention mainly aims to provide a method for generating a product sequence code, and aims to solve the problems of complex operation and low efficiency of a mass production tool in the prior art.
In order to achieve the above object, the present invention provides a method for generating a product serial code, which comprises:
acquiring current production data of production equipment, wherein the current production data comprises a current equipment address and a current system date;
acquiring first data of a first storage position, wherein the first data comprises a device address and a system date;
judging whether the first data is consistent with the current production data;
if the first data is completely consistent with the current production data, second data of a second storage position is obtained, the second data is processed to obtain first coded data, and a first product sequence code is generated according to the first data and the first coded data;
and if the first data and the current production data are not completely consistent, generating a second product sequence code according to the current production data and the first target data.
Preferably, after the first product sequence code is generated or the second product sequence code is generated, the product sequence code generation method further comprises updating the second data according to the first encoding data or the first target data; and if the current production data is not completely consistent with the first data, updating the first data according to the current production data.
Preferably, the method for generating a product serial code further comprises:
acquiring timing information of a clock module;
and when the timing information of the clock module reaches a preset time value, storing the first data and the second data to a third storage position.
Preferably, the method for generating a product serial code further comprises:
when a starting operation instruction is received, obtaining current production data of production equipment, wherein the current production data comprises a current equipment address and a current system date;
acquiring storage data of a third storage position, wherein the storage data comprises third data and fourth data, and the third data comprises a storage device address and a storage system date;
judging whether the current production data is consistent with the third data;
if the current production data and the third data are completely consistent, adding the fourth data and the second target data to obtain second coded data, and generating a third product sequence code according to the third data and the second coded data;
and if the current production data and the third data are not completely consistent, generating a fourth product sequence code according to the current production data and the first target data.
Preferably, after the generating the third product sequence code or the generating the fourth product sequence code, the product sequence code generating method further includes:
updating the fourth data and the second data according to the second encoding data or the first target data;
and if the current production data is not completely consistent with the third data, updating the third data and the first data according to the current production data.
Preferably, after the generating the third product sequence code or the fourth product sequence code, the method further includes:
and activating the clock module to count again.
Preferably, after the generating the third product sequence code or the fourth product sequence code, the method further includes:
and storing the generated product sequence code into a fixed block of the chip to be encoded.
The invention also provides a product sequence code generating device, which comprises:
the system comprises a current production data acquisition module, a data processing module and a data processing module, wherein the current production data acquisition module is used for acquiring current production data of production equipment, and the current production data comprises a current equipment address and a current system date;
the device comprises a first data acquisition module, a second data acquisition module and a data processing module, wherein the first data acquisition module is used for acquiring first data of a first storage position, and the first data comprises a device address and a system date;
the comparison module is used for judging whether the first data is consistent with the current production data;
the first product sequence code generating module is used for acquiring second data of a second storage position when the first data is completely consistent with the current production data, processing the second data to obtain first coded data, and generating a first product sequence code according to the first data and the first coded data;
and the second product sequence code generating module is used for generating a second product sequence code according to the current production data and the first target data when the first data and the current production data are not completely consistent.
Based on the foregoing method for generating a product serial code, the present invention further provides a device for generating a product serial code, where the device includes:
a memory for storing a computer program;
a processor, configured to implement the steps of the product serial code generation method in the foregoing embodiments when executing the computer program, where the steps of the product serial code generation method at least include:
acquiring current production data of production equipment, wherein the current production data comprises a current equipment address and a current system date;
acquiring first data of a first storage position, wherein the first data comprises a device address and a system date;
judging whether the first data is consistent with the current production data;
if the first data is completely consistent with the current production data, second data of a second storage position is obtained, the second data is processed to obtain first coded data, and a first product sequence code is generated according to the first data and the first coded data;
and if the first data and the current production data are not completely consistent, generating a second product sequence code according to the current production data and the first target data.
Based on the foregoing product sequence code generation method, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the product sequence code generation method, where the steps of the product sequence code generation method at least include:
acquiring current production data of production equipment, wherein the current production data comprises a current equipment address and a current system date;
acquiring first data of a first storage position, wherein the first data comprises a device address and a system date;
judging whether the first data is consistent with the current production data;
if the first data is completely consistent with the current production data, second data of a second storage position is obtained, the second data is processed to obtain first coded data, and a first product sequence code is generated according to the first data and the first coded data;
and if the first data and the current production data are not completely consistent, generating a second product sequence code according to the current production data and the first target data.
Compared with the prior art, the embodiment of the invention has the beneficial effects that: the invention divides the product serial code into a first part consisting of the device address and the system date and a second part consisting of the first coding data, and determines the generation mode of the second part of the product serial code by judging whether the first data stored in the mass production tool is consistent with the current production data acquired by the production device, namely, the first coding data is generated after the first data is reset to the first target data or processed on the basis of the originally recorded second data. By the design, even if various products are coded simultaneously in serial port communication of production equipment and a mass production tool, the serial code of each product is unique and cannot be repeated. Moreover, the unique serial code is automatically generated for each product in sequence, and the mass production tool does not need to be set in advance, so that the use difficulty of the mass production tool is reduced, and the serial code generation efficiency is improved. Moreover, the production data contained in the product sequence code is customized to the production equipment and the production date, and the production time and the production equipment are easy to trace and position when the product quality problem occurs in the follow-up process, so that the problem is solved fundamentally.
Drawings
FIG. 1 is a flow chart of steps in one embodiment of a method for generating product serial codes in accordance with the present invention;
FIG. 2 is a flow chart of steps in a further embodiment of a method of generating product serial codes in accordance with the present invention;
FIG. 3 is a flow chart of steps in a further embodiment of a method of generating product serial codes in accordance with the present invention;
FIG. 4 is a flow chart of steps in a further embodiment of a method of generating product serial codes in accordance with the present invention;
fig. 5 is a functional block diagram of a product serial code generating apparatus according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to the embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same elements or elements having the same functions throughout. The embodiments described below with reference to the drawings are exemplary and intended to be illustrative of the present invention and should not be construed as limiting the present invention, and all other embodiments that can be obtained by one skilled in the art based on the embodiments of the present invention without inventive efforts shall fall within the scope of protection of the present invention.
The invention provides a method for generating a product serial code, which, in an embodiment, as shown in fig. 1, includes:
step S10: and acquiring current production data of the production equipment, wherein the current production data comprises a current equipment address and a current system date.
The product serial code generation device is often called a "mass production tool" in practical use as an execution subject of the product serial code generation method, and for convenience of description, is called a "mass production tool" in each of the following embodiments. After the mass production tool is started, several main processes of initialization, product sequence code generation and product sequence code writing into the product are completed in sequence. The initialization refers to that the production equipment needs to be identified and original storage data in the hard disk needs to be updated when the mass production tool is opened every time, and the original storage data serve as a basis for subsequently generating the product serial code. This embodiment is the operation step after the mass production tool completes initialization. In the embodiment, the current device address, that is, the MAC address of the production device to which the mass production tool is currently connected, and the current system time, that is, the current date when the current production data is obtained, that is, the output date of the product, may be directly captured by the production device system.
Step S20: first data of a first storage location is obtained, the first data including a device address and a system date.
In this step, the mass production tool acquires first data from a first storage location in a register of the mass production tool, where the first storage location is one of the storage areas of the register, the first data is data that has been stored in the register before acquiring the current production data, and the first data is data that was saved in the first storage location after the last product serial code was generated.
Step S30: and judging whether the first data is consistent with the current production data.
In this step, if the two codes are identical, the mass production tool continuously codes the products produced by the same production equipment on the same day. If the data is inconsistent with the data, the data indicates that the production equipment connected with the mass production tool is replaced or the date is updated.
Step S40: and if the first data is completely consistent with the current production data, acquiring second data of a second storage position, processing the second data to obtain first coded data, and generating a first product sequence code according to the first data and the first coded data.
In this step, when it is determined that the first data in the register is completely consistent with the acquired current production data, the second data stored in another area (a second storage location) in the register is continuously acquired, where the second data is a custom value or a count of produced products, and the second data is processed to obtain second encoded data, specifically, if the second data is added with specified data to form first encoded data, if the second data is added with 1, the first encoded data functions to be combined with the first data to form a product serial code. The method specifically comprises the following steps: and combining the first data as a first part of the product sequence code and the first coded data as a second part of the product sequence code to form the first product sequence code. That is, the product serial code of the present embodiment includes two parts: the device address and system time form a first part and the first coded data form a second part, or on the basis of the first coded data, enterprise information is further included as a third part. And under the condition that the first data is consistent with the current production data, combining the first data with the first coded data to form the first product serial code.
Step S50: and if the first data is not completely consistent with the current production data, generating a second product sequence code according to the current production data and the first target data.
In this step, that the first data is not completely consistent with the current production data means that the device address in the first data is not consistent with the current device address, or the system date in the first data is not consistent with the current system date. And when any one of the production data and the target data is inconsistent, the current production data is used as a first part of the product serial code, the first target data is used as a second part of the product serial code, and the first target data and the second target data are combined to form a second product serial code. In this step, the first target data may be any customized value, such as 0.
In the embodiment, the product serial code is divided into a first part consisting of the device address and the system date and a second part consisting of the first coded data, and the generation mode of the second part of the product serial code is determined by judging whether the first data stored in the mass production tool is consistent with the current production data acquired from the production device, namely, the first coded data is generated after the first coded data is reset to the first target data or processed on the basis of the originally recorded second data. By the design, even if various products are coded simultaneously in serial port communication of production equipment and a mass production tool, the serial code of each product is unique and cannot be repeated. Moreover, the unique serial code is automatically generated for each product in sequence, and the mass production tool does not need to be set in advance, so that the use difficulty of the mass production tool is reduced, and the serial code generation efficiency is improved. Moreover, the production data contained in the product sequence code is customized to the production equipment and the production date, and the production time and the production equipment are easily traced and positioned when the subsequent product quality problem occurs, so that the problem is solved fundamentally.
In a preferred embodiment, as shown in fig. 2, after the generating the first product sequence code or the generating the second product sequence code, i.e. after step S40 or S50, the method for generating the product sequence code further includes:
step S60: the second data is updated based on the first encoded data or the first target data.
The purpose of this step is to update the second data in the second storage location after each generation of one product sequence code is completed, as a basis for the generation of second encoded data for subsequent products. The updating mode is divided into two cases, firstly, under the condition that the current production data is consistent with the first data, the determined first coded data is used as new second data to replace the second data in the original second storage position; secondly, under the condition that the current production data is not completely consistent with the first data, the second data needs to be reset to zero, so that the first target data is used as new second data to replace the original second data.
For the second case, the method further includes step S70: and if the current production data is not completely consistent with the first data, updating the first data according to the current production data.
The purpose of this step is to update the first data in the first storage location as a basis for the generation of a product serial code for a subsequent product.
In a preferred embodiment, as shown in fig. 3, the method for generating the product serial code further includes:
s80: acquiring timing information of a clock module;
s90: and when the timing information of the clock module reaches a preset time value, storing the first data and the second data to a third storage position.
In this embodiment, the third storage location is preferably a hard disk, and the cloud server may be used, and the purpose of this embodiment is to store the data in the register to the hard disk at preset intervals, so as to prevent data loss caused by sudden time such as sudden power failure, especially under the condition that the copy-back mechanism is already closed without a mass production tool, and store the data in the hard disk without being affected by a sudden accident, so that a product sequence code (especially the second portion) generated by the data is not confused or partially lost. The embodiment adopts the mode that the first data and the second data are acquired at intervals and stored in the hard disk, and aims to prevent the production efficiency from being influenced by too frequent equipment identification processes. The embodiment stores the production information into the hard disk through the interval preset time so as to realize data persistence, effectively avoid data loss caused by accidents such as sudden power failure and the like, solve the problem of sequence number repetition caused by data loss, and simultaneously take into account the problem of production efficiency. In step S80, the mass production tool reads the timing information of the clock module from the clock module, and in other embodiments, the timing module may send the timing information to the mass production tool when the timing information reaches a preset time value, and the mass production tool saves the first data and the second data to the third storage location after receiving the timing information.
In a preferred embodiment, as shown in fig. 4, the method for generating the product serial code further includes:
step S100: and when receiving a starting operation instruction, acquiring current production data of the production equipment, wherein the current production data comprises a current equipment address and a current system date.
The present embodiment is an initialization process when the mass production tool is started, that is, a process that needs to be executed when the mass production tool is started every time. At the beginning of starting, the current production data of the production equipment needs to be obtained first for comparison with the data in the hard disk.
Step S110: and acquiring the stored data of the third storage position, wherein the stored data comprises third data and fourth data, and the third data comprises a storage device address and a storage system date.
The step judges whether the stored data in the hard disk is consistent with the current production data, the consistency indicates that the stored data in the hard disk records the currently accessed production equipment and the current date, and can be used as the basis for generating the subsequent product serial code, and the inconsistency indicates that the stored data in the hard disk cannot be used as the basis for generating the subsequent product serial code. In this step, the fourth data is data consistent with the second data, such as counting or custom value of the produced product.
Step S120: and judging whether the current production data is consistent with the third data.
Step S130: and if the current production data is completely consistent with the third data, adding the fourth data and the second target data to obtain second coded data, and generating a third product sequence code according to the third data and the second coded data.
In order to prevent the second coded data from being repeated due to lack of data stored in the hard disk for a certain period of time, the step is characterized in that the fourth data stored in the hard disk is updated every time the mass production tool is opened, namely, the second target data is added on the basis of the original fourth data, for example, the fourth data is automatically increased by 300 every time the fourth data is restarted, and preferably, the second target data is not less than the actual number of products produced by the production equipment within the preset period of time timed by the clock module. The embodiment can effectively avoid the second coding data in the product sequence code generated later from being repeated. Similarly, the product serial code also includes two parts, i.e. the production data and the encoded data, i.e. the third data and the second encoded data in this step.
Step S140: and if the current production data and the third data are not completely consistent, generating a fourth product sequence code according to the current production data and the first target data.
I.e. the current production data is retained as a first part of the sequence code and the first target data is retained as a second part of the sequence code, wherein the first target data is preferably 0.
In a preferred embodiment, as shown in fig. 4, after generating the third product serial code or the fourth product serial code, i.e. after step S130 or step S140, the method further includes:
step S150: the fourth data and the second data are updated based on the second encoded data or the first target data.
The same as step S60, the stored data is updated after the generation of a product serial code is completed, except that in this step, the fourth data in the third storage location and the second data in the second storage location are updated simultaneously, the third data is updated to the second encoded data when the third data is consistent with the current production data, and the third data is updated to the first target data when the third data is inconsistent with the current production data, that is, the data in the hard disk and the register are updated simultaneously. The purpose of updating the hard disk is to ensure that data persistence is not easy to lose, and the purpose of updating the register is to facilitate subsequent data processing.
Step S160: and if the current production data is not completely consistent with the third data, updating the third data and the first data according to the current production data.
The step is to update the production data in the hard disk and the register.
In a preferred embodiment, after the generating the third product sequence code or the generating the fourth product sequence code, i.e. after the step S130 or the step S140, the method further includes:
and activating the clock module to count again.
That is, each time the mass production tool is powered on again, the time is counted again, and the first data and the second data are stored in the third storage position, namely the hard disk, at the next preset time node.
The product targeted by the method is a DDR chip, and therefore has a memory space, and after the third product serial code is generated or the fourth product serial code is generated, that is, after step S130 or step S140, the method for generating the product serial code further includes: the product sequence code can be recorded by adopting a binary method, and after the generation is finished, the generated product sequence code is written into a fixed block of the chip to be coded.
Based on the method for generating a product serial code described in the foregoing embodiment, the present invention further provides a device for generating a product serial code, where the product serial code is composed of a prefix and a suffix, and as shown in fig. 5, the device for generating a product serial code includes:
a current production data obtaining module 10, configured to obtain current production data of a production device, where the current production data includes a current device address and a current system date;
a first data obtaining module 20, configured to obtain first data of a first storage location, where the first data includes a device address and a system date;
a comparison module 30, configured to determine whether the first data is consistent with the current production data;
the first product sequence code generating module 40 is configured to, when the first data is completely consistent with the current production data, obtain second data of a second storage location, process the second data to obtain first encoded data, and generate a first product sequence code according to the first data and the first encoded data;
and a second product serial code generating module 50, configured to generate a second product serial code according to the current production data and the first target data when the first data and the current production data are not completely consistent.
In this embodiment, the first data obtaining module 10 is connected to the production device through a serial port to obtain a device address and a system time of the production device. The first data obtaining module 20 is connected to a hard disk in a mass production tool to read data stored in the hard disk. In this embodiment, the functions of the modules in the device for generating the product serial code and the overall process of how to generate the product serial code by using the modules in cooperation may refer to the detailed description of the method for generating the product serial code in the first embodiment, which is not repeated herein.
In a preferred embodiment, as shown in fig. 5, the product serial code generating apparatus further includes:
a second data updating module 60 for updating the second data according to the first encoded data or the first target data;
a first data updating module 70, configured to update the first data according to the current production data when the current production data is not completely consistent with the first data.
In a preferred embodiment, as shown in fig. 5, the product serial code generating apparatus further includes:
a clock obtaining module 80, configured to obtain timing information of the clock module;
the saving module 90 is configured to save the first data and the second data to a third storage location when the timing information of the clock module reaches a preset time value.
In a preferred embodiment, as shown in fig. 5, the product serial code generating apparatus further includes:
a production data obtaining module 100, configured to obtain current production data of a production device when a start operation instruction is received, where the current production data includes a current device address and a current system date;
a storage data obtaining module 110, configured to obtain storage data of a third storage location, where the storage data includes third data and fourth data, and the third data includes a storage device address and a storage system date;
a judging module 120, configured to judge whether the current production data is consistent with the third data;
a third product sequence code generating module 130, configured to, when the current production data is completely consistent with the third data, add the fourth data and the second target data to obtain second encoded data, and generate a third product sequence code according to the third data and the second encoded data;
and a fourth product serial code generating module 140, configured to generate a fourth product serial code according to the current production data and the first target data when the current production data and the third data are not completely consistent.
In a preferred embodiment, as shown in fig. 5, the product serial code generating apparatus further includes:
a fourth data updating module 150, configured to update the fourth data and the second data according to the second encoded data or the first target data;
and a third data updating module 160, configured to update the third data and the first data according to the current production data when the current production data is not completely consistent with the third data.
In a preferred embodiment, as shown in fig. 5, the product serial code generating apparatus further includes:
and a clock activation module 170 for activating the clock module to re-time.
In a preferred embodiment, as shown in fig. 5, the product serial code generating apparatus further includes:
and the writing module 180 is used for storing the generated product sequence code into a fixed block of the chip to be encoded.
Based on the product sequence code generation method described in the foregoing embodiment, the present invention further provides a product sequence code generation device, including:
a memory for storing a computer program;
a processor, configured to implement the steps of the product serial code generation method in the foregoing embodiments when executing the computer program, where the steps of the product serial code generation method at least include:
acquiring current production data of the production equipment, wherein the current production data comprises a current equipment address and a current system date;
acquiring first data of a first storage position, wherein the first data comprises a device address and a system date;
judging whether the first data is consistent with the current production data;
if the first data is completely consistent with the current production data, second data of a second storage position is obtained, the second data is processed to obtain first coded data, and a first product sequence code is generated according to the first data and the first coded data;
and if the first data is not completely consistent with the current production data, generating a second product sequence code according to the current production data and the first target data.
Based on the product serial code generation method described in the foregoing embodiment, the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the product serial code generation method are implemented, where the steps of the product serial code generation method at least include:
acquiring current production data of the production equipment, wherein the current production data comprises a current equipment address and a current system date;
acquiring first data of a first storage position, wherein the first data comprises a device address and a system date;
judging whether the first data is consistent with the current production data;
if the first data is completely consistent with the current production data, second data of a second storage position is obtained, the second data is processed to obtain first coded data, and a first product sequence code is generated according to the first data and the first coded data;
and if the first data is not completely consistent with the current production data, generating a second product sequence code according to the current production data and the first target data.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above is only a part or preferred embodiment of the present invention, and neither the text nor the drawings should limit the scope of the present invention, and all equivalent structural changes made by the present specification and the contents of the drawings or the related technical fields directly/indirectly using the present specification and the drawings are included in the scope of the present invention.

Claims (10)

1. A method for generating a product serial code, comprising:
acquiring current production data of production equipment, wherein the current production data comprises a current equipment address and a current system date;
acquiring first data of a first storage position, wherein the first data comprises a device address and a system date;
judging whether the first data is consistent with the current production data;
if the first data is completely consistent with the current production data, second data of a second storage position is obtained, the second data is processed to obtain first coded data, and a first product sequence code is generated according to the first data and the first coded data;
and if the first data and the current production data are not completely consistent, generating a second product sequence code according to the current production data and the first target data.
2. The method of claim 1, wherein after generating the first product sequence code or generating the second product sequence code, the method further comprises:
updating the second data according to the first encoding data or the first target data;
and if the current production data is not completely consistent with the first data, updating the first data according to the current production data.
3. The method of generating a product serial code according to claim 2, further comprising:
acquiring timing information of a clock module;
and when the timing information of the clock module reaches a preset time value, storing the first data and the second data to a third storage position.
4. The method of generating a product serial code according to claim 1, further comprising:
when a starting operation instruction is received, obtaining current production data of production equipment, wherein the current production data comprises a current equipment address and a current system date;
acquiring storage data of a third storage position, wherein the storage data comprises third data and fourth data, and the third data comprises a storage device address and a storage system date;
judging whether the current production data is consistent with the third data;
if the current production data and the third data are completely consistent, adding the fourth data and the second target data to obtain second coded data, and generating a third product sequence code according to the third data and the second coded data;
and if the current production data and the third data are not completely consistent, generating a fourth product sequence code according to the current production data and the first target data.
5. The method of claim 4, wherein after generating the third product sequence code or generating the fourth product sequence code, the method further comprises:
updating the fourth data and the second data according to the second encoding data or the first target data;
and if the current production data is not completely consistent with the third data, updating the third data and the first data according to the current production data.
6. The method of claim 4, wherein after generating the third product sequence code or generating the fourth product sequence code, the method further comprises:
and activating the clock module to count again.
7. The method according to any one of claims 1 to 6, wherein after the generating the third product sequence code or the fourth product sequence code, further comprising:
and storing the generated product sequence code into a fixed block of the chip to be encoded.
8. A product serial code generating apparatus, comprising:
the system comprises a current production data acquisition module, a data processing module and a data processing module, wherein the current production data acquisition module is used for acquiring current production data of production equipment, and the current production data comprises a current equipment address and a current system date;
the device comprises a first data acquisition module, a second data acquisition module and a data processing module, wherein the first data acquisition module is used for acquiring first data of a first storage position, and the first data comprises a device address and a system date;
the comparison module is used for judging whether the first data is consistent with the current production data;
the first product sequence code generating module is used for acquiring second data of a second storage position when the first data is completely consistent with the current production data, processing the second data to obtain first coded data, and generating a first product sequence code according to the first data and the first coded data;
and the second product sequence code generating module is used for generating a second product sequence code according to the current production data and the first target data when the first data and the current production data are not completely consistent.
9. A product serial code generating apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the product serial code generation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of the product serial code generation method according to any one of claims 1 to 7.
CN201911400200.5A 2019-12-30 2019-12-30 Method, device and equipment for generating product sequence code and computer readable storage medium Pending CN111126004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911400200.5A CN111126004A (en) 2019-12-30 2019-12-30 Method, device and equipment for generating product sequence code and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911400200.5A CN111126004A (en) 2019-12-30 2019-12-30 Method, device and equipment for generating product sequence code and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111126004A true CN111126004A (en) 2020-05-08

Family

ID=70505609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911400200.5A Pending CN111126004A (en) 2019-12-30 2019-12-30 Method, device and equipment for generating product sequence code and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111126004A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114595105A (en) * 2022-05-09 2022-06-07 深圳佰维存储科技股份有限公司 PSN uniqueness design method and device, readable storage medium and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783126A (en) * 2019-01-10 2019-05-21 珠海金山网络游戏科技有限公司 A kind of distribution Global ID's generation method and its device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783126A (en) * 2019-01-10 2019-05-21 珠海金山网络游戏科技有限公司 A kind of distribution Global ID's generation method and its device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114595105A (en) * 2022-05-09 2022-06-07 深圳佰维存储科技股份有限公司 PSN uniqueness design method and device, readable storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN109815291B (en) Data synchronization method and device, electronic equipment and storage medium
CN111723079A (en) Data migration method and device, computer equipment and storage medium
CN107678918B (en) OSD heartbeat mechanism setting method and device of distributed file system
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN107438832B (en) Data refreshing method and device and computer readable storage medium
CN108345462B (en) Method and device for upgrading components
CN102546135A (en) System and method for switching between active and standby servers
CN109120067A (en) A kind of sequence of events recording report method, device, equipment and readable storage medium storing program for executing
CN112637284A (en) Redo log storage method and device, electronic device and storage medium
CN112069195A (en) Database-based message transmission method and device, electronic equipment and storage medium
CN115982072A (en) Information communication method, device, computer equipment and storage medium
CN111126004A (en) Method, device and equipment for generating product sequence code and computer readable storage medium
CN111078384A (en) Method and device for migrating core data, computer equipment and storage medium
CN109213589B (en) Message processing method and device
CN110704198B (en) Data operation method, device, storage medium and processor
CN110471896A (en) A kind of data processing method, system and server
US20150081647A1 (en) Server and method for updating data of server
CN114356970A (en) Storage system resource caching method and device
CN113312412A (en) Statistical data acquisition method and device, electronic equipment and storage medium
CN114116848A (en) Data identifier generation method and device, computer equipment and storage medium
CN110147379B (en) Information acquisition method and device based on data lock and computer equipment
CN113806407A (en) Method, device and storage medium for obtaining order numbers in batch based on cache
CN113676353A (en) Control method and device for equipment, storage medium and electronic device
CN111857604A (en) Method, apparatus, device and medium for quickly reconstructing packet management mapping reverse lookup table
CN105279103A (en) Data management method and apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518000 floors 1-3 and 4 of buildings 4 and 8, zone 2, Zhongguan honghualing Industrial South Zone, No. 1213 Liuxian Avenue, Pingshan community, Taoyuan Street, Nanshan District, Shenzhen, Guangdong

Applicant after: BIWIN STORAGE TECHNOLOGY Co.,Ltd.

Address before: 518000 1st, 2nd, 4th and 5th floors of No.4 factory building, tongfuyu industrial town, Taoyuan Street, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: BIWIN STORAGE TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information