CN114462104B - Client SN confirmation method and device and computer readable storage medium - Google Patents

Client SN confirmation method and device and computer readable storage medium Download PDF

Info

Publication number
CN114462104B
CN114462104B CN202111666572.XA CN202111666572A CN114462104B CN 114462104 B CN114462104 B CN 114462104B CN 202111666572 A CN202111666572 A CN 202111666572A CN 114462104 B CN114462104 B CN 114462104B
Authority
CN
China
Prior art keywords
client
bit
target
preset
target client
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.)
Active
Application number
CN202111666572.XA
Other languages
Chinese (zh)
Other versions
CN114462104A (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111666572.XA priority Critical patent/CN114462104B/en
Publication of CN114462104A publication Critical patent/CN114462104A/en
Application granted granted Critical
Publication of CN114462104B publication Critical patent/CN114462104B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/71Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
    • G06F21/73Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information by creating or determining hardware identification, e.g. serial numbers
    • 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)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a method, a device and a computer readable storage medium for confirming a client SN, which are characterized in that a manufacturer SN of a machine to be renovated is obtained, then the client SN corresponding to the manufacturer SM is obtained, whether the machine can be renovated is judged through the client SN, if so, the number of a first preset bit of the client SN is replaced, a number of a second preset bit of the client SN is generated, the numbers of the other bits are reserved, and a new client SN is generated by combining the number of the new first preset bit and the number of the new second preset bit. Therefore, the method can judge whether the machine can be renovated, if so, the first preset digit of the client SN is replaced, and a digit is also generated to replace the second preset digit of the client SN, so that different manufacturers SN use common renovation rules, the renovation rules are simpler, and the efficiency of the product is improved.

Description

Client SN confirmation method and device and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and apparatus for identifying a client SN, and a computer readable storage medium.
Background
With the rapid development of computers, the requirements of people on the machines are not strict, and the requirements of the traditional machines are changed from the strict requirements on the machines to the current requirements of ensuring the smoothness of the machines, so that the appearance is free from flaws. Many existing machines are not damaged, but the update speed is not kept up, so that the old machines are subjected to the refreshing operation, the existing refreshing operation is that the customer transmits the requirement for refreshing to a manufacturer, the original information of the old machines is collected, the original information is generated on the basis of the original information according to the refreshing rule, and the process is that engineers manually generate the refreshing information.
The manufacturer product Serial Number (SN) of the retreading machine is discontinuous, so that the retreading rule is complex and changeable, and the process of identifying a new SN is complex and is easy to make mistakes.
In view of the above technical problems, the search for a simple retreading rule is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a method and a device for confirming client SN and a computer readable storage medium.
In order to solve the above technical problems, the present application provides a method for validating a client SN, including:
acquiring a target manufacturer SN of a machine needing renovation;
acquiring a target client SN corresponding to the target vendor SN according to the corresponding relation between the vendor SN and the client SN;
judging whether the machine can be refurbished according to the target client SN;
if yes, replacing the number of the first preset bit of the target client SN, and generating a single digit to replace the number of the second preset bit of the target client SN;
and reserving the numbers of the rest bits, and generating a new target client SN by combining the new numbers of the first preset bits and the new numbers of the second preset bits.
Preferably, the first preset bit is an eighth bit, and the replacing the number of the first preset bit of the target client SN includes:
if the number of the eighth bit is 0, updating the number of the eighth bit to 7;
if the number of the eighth bit is 7, updating the number of the eighth bit to 8;
and if the number of the eighth bit is 8, updating the number of the eighth bit to 9.
Preferably, said determining from said target client SN whether said machine is refurbished comprises:
acquiring the number of the eighth bit of the client SN;
if the number of the eighth bit is equal to 9, no refurbishment is possible.
Preferably, after the remaining digits are reserved, generating a new target client SN by combining the new digits of the first preset digits and the new digits of the second preset digits, the method further includes:
judging whether the target client SN is completely retreaded according to the target manufacturer SN;
if yes, outputting the completely renovated prompt information;
if not, returning to the step of acquiring the target client SN corresponding to the target vendor SN according to the corresponding relation between the vendor SN and the client SN.
Preferably, said determining from said vendor SN whether said customer SN is refurbished completely comprises:
acquiring the number of the machines to be renovated according to the target manufacturer SN;
obtaining the number of the target clients SN which are completely renovated;
if the number of the machines is consistent with the number of the target clients SN, the renovation is complete;
if the number of machines is greater than the number of target clients SN, the refurbishment is not complete.
Preferably, after the outputting of the refurbished complete prompting message, the method further comprises:
the refurbished complete target client SN is output to a screen for sorting and sending to a manufacturer for production.
Preferably, after the outputting of the refurbished complete client SN to the screen, further comprises:
compressing the refurbished complete target client SN;
encrypting the compressed target client SN.
In order to solve the technical problems, the application also provides a device for confirming the client SN, which comprises
The first acquisition module is used for acquiring a target manufacturer SN of the machine needing to be renovated;
the second acquisition module is used for acquiring a target client SN corresponding to the target manufacturer SNM according to the corresponding relation between the manufacturer SN and the client SN;
the judging module is used for judging whether the machine can be retreaded according to the target client SN, and if so, triggering the replacing module;
the replacing module is configured to replace a number of the eighth first preset bit of the client SN, and generate a number to replace a number of the last second preset bit of the client SN;
and the generation module is used for reserving the numbers of the rest bits and generating a new client SN by combining the new numbers of the first preset bits and the new numbers of the second preset bits.
In order to solve the technical problem, the application also provides a confirmation device of the client SN, which comprises a memory for storing a computer program;
a processor for implementing the steps of the method for validating a client SN as described above when executing the computer program.
To solve the above technical problem, the present application further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method for validating a client SN as described above.
The application provides a method for confirming a client SN, which comprises the steps of obtaining a manufacturer SN of a machine to be renovated, obtaining a client SN corresponding to the manufacturer SM, judging whether the machine can be renovated through the client SN, if so, replacing a first preset digit of the client SN, generating a digit to replace a second preset digit of the client SN, reserving the digits of the rest digits, and generating a new client SN by combining the new first preset digit and the new second preset digit. Therefore, the method can judge whether the machine can be renovated, if so, the first preset digit of the client SN is replaced, and a digit is also generated to replace the second preset digit of the client SN, so that different manufacturers SN use common renovation rules, the renovation rules are simpler, and the efficiency of the product is improved.
On the basis, the application also provides a device for confirming the client SN and a computer storage medium, and the effect is the same as that of the client SN.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flowchart of a method for validating a client SN according to an embodiment of the present application;
FIG. 2 is a flowchart of another method for validating a client SN according to an embodiment of the present application;
FIG. 3 is a block diagram of a client SN confirmation device according to an embodiment of the present application;
fig. 4 is a block diagram of a confirmation device of a client SN according to another embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present application.
The core of the application is to provide a method, a device and a computer readable storage medium for confirming client SN.
In order to better understand the aspects of the present application, the present application will be described in further detail with reference to the accompanying drawings and detailed description.
Fig. 1 is a flowchart of a method for validating a client SN according to an embodiment of the present application, where the method for validating a client SN includes the following steps:
s10: the target vendor SN of the machine that needs to be refurbished is obtained.
S11: and acquiring the target client SN corresponding to the target vendor SN according to the corresponding relation between the vendor SN and the client SN.
S12: it is determined from the target client SN whether the machine is refurbished.
S13: changing the number of the first preset bit of the target client SN and generating
It can be understood that with the rapid development of computers, the requirements of people on the machines are not so strict, and the requirements of the machines in the past are changed from the strict requirements on the machines to the current requirements of ensuring that the machines are smooth and have no flaws in appearance. Many existing machines are not damaged, but the update speed is not kept up, so that the old machines are subjected to the refreshing operation, the existing refreshing operation is that the customer transmits the requirement for refreshing to a manufacturer, the original information of the old machines is collected, the original information is generated on the basis of the original information according to the refreshing rule, and the process is that engineers manually generate the refreshing information. The manufacturer SN of the retreading machine is discontinuous, so that the retreading rule is complex and changeable, and the process of identifying the new SN is complex and is easy to make mistakes. A method of validation of a client SN is therefore proposed.
As shown in step S10, a target manufacturer SN of a machine to be refurbished is obtained, wherein the manufacturer SN is a product serial number, and the product serial number refers to a unique code to define each product produced by an enterprise. This code may be automatically generated according to predefined encoding rules; or may be created manually. The method is mainly used for controlling the production process of the product, managing the production quality, tracking the stock of the material, after-sales service of the product, copyright control and the like. The bar code label is used for printing the serial number and is combined with the actual product, so that various roles of enterprises on the product can be realized. The acquisition of the target vendor SN of the machine to be refurbished means that the user inputs the vendor SN into the computer.
In addition, in step S11, the target client SN corresponding to the target vendor SN is obtained according to the correspondence between the vendor SN and the client SN, and in step S10, the user inputs the target vendor SN into the corresponding window, and automatically searches the client SN corresponding to the vendor SN from the database, where the client SN refers to the information number of the client. In step S12, whether the machine can be refurbished is determined according to the target client SN, and the embodiment is not limited to how to determine whether the machine can be refurbished, and only needs to ensure that whether the current machine can be refurbished can be determined. In addition, if the number of the first preset bit of the target client SN can be updated, the step proceeds to step S13, and in step S13, the number of the second preset bit of the target client SN is replaced with the number, and it should be noted that the number of the first preset bit is not limited in this embodiment, and the manner of replacing the number of the first preset bit may be selected according to the specific implementation situation. The embodiment is not limited to the specific position of the first preset bit, but as a preferred implementation, the specific position of the second preset bit is the last position of the client SN. On the basis, a digit is generated instead of the second preset digit, and how to generate the digit is not limited, and only needs to be ensured to be different from the previous digit.
In step S14, the numbers of the remaining bits are reserved, and the new target client SN is generated by combining the new numbers of the first preset bit and the second preset bit, that is, only the numbers of the first preset bit and the second preset bit are replaced, and the numbers of the other positions are not changed. In addition, the processing target client SN in this embodiment processes one batch at a time, instead of processing one batch at a time, so as to improve the quality and efficiency of the product.
According to the method for confirming the client SN, the manufacturer SN of the machine to be renovated is obtained, the client SN corresponding to the manufacturer SM is obtained, whether the machine can be renovated is judged through the client SN, if yes, the number of the first preset position of the client SN is replaced, one digit is generated to replace the number of the second preset position of the client SN, the numbers of the other digits are reserved, and the new client SN is generated by combining the number of the new first preset position and the number of the new second preset position. Therefore, the method can judge whether the machine can be renovated, if so, the first preset digit of the client SN is replaced, and a digit is also generated to replace the second preset digit of the client SN, so that different manufacturers SN use common renovation rules, the renovation rules are simpler, and the efficiency of the product is improved.
On the basis of the above embodiment, the description is made of the manner of changing the number of the first preset bit of the target client SN, and the specific manner of changing the number of the first preset bit of the target client SN is as follows:
the first preset bit is an eighth bit, if the number of the eighth bit is 0, the number of the eighth bit is updated to 7, if the number of the eighth bit is 7, the number of the eighth bit is updated to 8, and if the number of the eighth bit is 8, the number of the eighth bit is updated to 9. It can be seen that the present embodiment takes the eighth bit in the target client SN as the first preset bit and selects the new number according to the number of the eighth bit, and it is noted that if the eighth bit is 0, this machine is the first refurbishment, so the eighth bit is updated to 7, and 7 represents that it has been refurbished once, when the eighth bit is 7, this refurbishment is proved to be the second refurbishment, 7 is replaced to 8, and when the eighth bit is 8, this refurbishment is proved to be the third refurbishment, 8 is replaced to 9,9 represents that it has been refurbished three times, and when the eighth bit is 9, this machine is proved to be refurbished three times. It is noted that setting the first preset bit to the eighth bit is only a preferred embodiment, and the meaning of the number representation of the eighth bit is also a preferred embodiment, and thus, the number of the first preset bit of the guest target client SN is not limited to this.
According to the method for replacing the digits of the first preset bit of the target client SN, the digits of the new eighth bit are changed according to the specific numerical value of the eighth bit by setting the eighth bit as the first preset bit, so that the current renovation times can be clearly seen, the renovation information is more clear, the subsequent renovation work is also facilitated, and the working efficiency is improved.
As a preferred embodiment, how to determine whether the machine can be refurbished according to the target client SN is described as follows:
the number of the eighth bit of the client SN is acquired, and if the number of the eighth bit is equal to 9, no refurbishment is possible. In the above embodiment, it is mentioned that if the number of the eighth bit is 9, it is proved that the current machine has been refurbished three times and the maximum refurbished number of one machine is three times, and thus if the number of the eighth bit is 9, it is proved that the current machine cannot be refurbished.
According to the method for judging whether the machine can be refurbished according to the target client SN, the number of the eighth bit of the client SN is obtained, if the number of the eighth bit is equal to 9, the machine cannot be refurbished, the maximum refurbished frequency of the machine is 3, the refurbished frequency of the current machine can be obtained by judging the number of the eighth bit, the difficulty of judging whether the machine can be refurbished is reduced, and the working efficiency of updating refurbished information is improved.
In a specific embodiment, when generating a new target SN, missing processing may occur, that is, if 100 target SNs are generated, but only 90 cases are processed, and considering this case, another method for validating a client SN is provided, and fig. 2 is a flowchart of another method for validating a client SN provided in an embodiment of the present application, as shown in fig. 2, further includes, on the basis of step S14:
s15: and judging whether the target client SN is completely retreaded according to the target manufacturer SN, if so, entering the step S16, and if not, returning to the step S11.
S16: and outputting the completely retreaded prompt information.
It will be appreciated that when generating a new target client SN, missing processing may occur, specifically: there are 100 target clients SN, but only 90 target clients SN are processed, so another method for determining whether the target clients SN are completely refurbished is proposed, as in step S15, according to the target manufacturer SN, it should be noted that the embodiment does not limit how to determine whether the target clients SN are completely refurbished, and the number of target clients SN and the number of combined target clients SN can be compared, so that whether the target clients SN are completely refurbished can be selected according to specific implementation situations.
In addition, for the step S16, the prompt information of the complete refurbishment is output, and the embodiment does not limit the prompt information and how to output the prompt information, and only needs to make the current personnel know after the complete refurbishment.
The method and the device for processing the target clients SN in the embodiment judge whether the clients SN are completely retreaded after generating the new clients SN, avoid the condition of missing processing, ensure the working efficiency, improve the working accuracy and ensure that one batch of target clients SN is completely processed at a time.
On the basis of the above embodiment, a description will be given of a manner of judging whether the client SN is refurbished completely, specifically as follows:
and acquiring the number of machines needing to be renovated according to the number of target manufacturers SN, acquiring the number of target clients SN which are completely renovated if the number of machines is consistent with the number of target clients SN which are completely renovated, and if the number of machines is greater than the number of target clients SN which are completely renovated, not completely renovated.
It should be noted that, in step S11, the target client SN is obtained according to the correspondence between the vendor SN and the client SN, and the target client SN may be obtained through a database, or the number of target clients SN, that is, the number of machines to be refurbished, may be determined from the database. In addition, the number of retreaded complete target clients SN is not limited, and may be selected according to specific implementation. When the number of target clients SN is consistent with the number of retreaded complete target clients SN, the current machine is retreaded completely, and if the number of target clients SN is inconsistent with the number of retreaded complete target clients SN, the current machine is proved not to be retreaded completely.
In the method for judging whether the client SN is completely refurbished or not according to the embodiment, the number of machines to be refurbished is obtained according to the number of machines to be refurbished of the target manufacturer SN, if the number of machines is consistent with the number of the completely refurbished target clients SN, the refurbished is complete, and if the number of machines is greater than the number of the completely refurbished target clients SN, the refurbished is incomplete. The method has simple judgment mode, improves the renewing accuracy and improves the working efficiency.
On the basis of the above embodiment, after outputting the refurbishment complete prompting information, as shown in fig. 2, on the basis of S16, the method further includes the following steps:
s17: the refurbished complete target client SN is output to the screen.
As described in step S17, the refurbished complete target client SN is output to the screen, and after the target client SN is output to the screen, the target client SN can be sorted and sent to the manufacturer, who produces the machine according to the refurbished information.
According to the method and the device for outputting the updated target client SN to the screen, the updated target client SN is conveniently arranged, a manufacturer can produce the machine according to the updated information, and the working efficiency is improved.
In a specific embodiment, when the number of target clients SN is too large, there may be situations where data is too large to be transmitted to the manufacturer, or situations where data may be stolen during transmission, and considering both situations, another method for validating the client SN is proposed, as shown in fig. 2, further including, based on step S17:
s18: the refurbished complete target client SN is compressed.
S19: encrypting the compressed target client SN.
It will be appreciated that the number of target clients SN is too large, and the transmission to the manufacturer may have too large data to be transmitted, or may be stolen during the transmission, so that the retreaded complete target clients SN are compressed based on step S17, thereby facilitating the transmission of the target clients SN.
As described in step S19, the encryption is performed on the compressed target client SN, and in this embodiment, how to encrypt the compressed target client SN is not limited, and symmetric encryption or asymmetric encryption may be used, so long as the security of the compressed target client SN is ensured.
According to the method for confirming the client SN, the target client SN is completely retreaded, and the compressed target client SN is encrypted, so that the transmission difficulty of transmitting the target client SN is reduced, the security of the transmission process is guaranteed by encrypting the compressed target client SN, and even if the client SN is stolen, the client SN cannot be obtained without a corresponding key, and the working accuracy is improved.
In the above embodiment, the detailed description is given to the method for identifying the client SN, and the application also provides a corresponding embodiment of the device for identifying the client SN. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Fig. 3 is a block diagram of a client SN confirmation device according to an embodiment of the present application, where, as shown in fig. 3, the client SN confirmation device includes:
a first obtaining module 15, configured to obtain a target manufacturer SN of a machine that needs to be refurbished;
a second obtaining module 16, configured to obtain a target client SN corresponding to the target vendor SNM according to a correspondence between vendor SN and client SN;
a judging module 17, configured to judge whether the machine can be refurbished according to the target client SN, and if yes, trigger a replacing module 18;
a replacing module 18, configured to replace the digits of the eighth first preset bit of the client SN, and generate a digit instead of the digits of the last second preset bit of the client SN;
a generating module 19, configured to reserve the digits of the remaining bits, and generate a new client SN by combining the digits of the new first preset bit and the digits of the new second preset bit.
The method for confirming the client SN includes the steps of obtaining manufacturer SN of a machine to be refurbished, obtaining client SN corresponding to manufacturer SM, judging whether the machine can be refurbished through the client SN, if yes, replacing a first preset digit of the client SN, generating a digit to replace a second preset digit of the client SN, reserving the digits of the rest digits, and generating a new client SN by combining the digits of the new first preset digit and the digits of the new second preset digit. Therefore, the method can judge whether the machine can be renovated, if so, the first preset digit of the client SN is replaced, and a digit is also generated to replace the second preset digit of the client SN, so that different manufacturers SN use common renovation rules, the renovation rules are simpler, and the efficiency of the product is improved.
Fig. 4 is a block diagram of a client SN acknowledgement device according to another embodiment of the present application, and as shown in fig. 4, the client SN acknowledgement device includes: a memory 20 for storing a computer program;
the processor 21 is arranged to implement the steps of the method for validating a client SN as mentioned in the above embodiments when executing a computer program.
The confirmation device of the client SN provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (Graphics Processing Unit, GPU) for rendering and rendering of content required to be displayed by the display screen. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program, when loaded and executed by the processor 21, is capable of implementing the relevant steps of the method for validating a client SN disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. The data 203 may include, but is not limited to, data of a confirmation method of the client SN, and the like.
In some embodiments, the confirmation device of the client SN may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the structure shown in fig. 4 does not constitute a limitation of the validation means of the client SN and may include more or less components than those illustrated.
The client SN confirmation device provided in this embodiment includes a memory and a processor, where the memory is configured to store a computer program, and the processor is configured to implement a method for confirming a client SN when executing the computer program, obtain a manufacturer SN of a machine to be refurbished, obtain a client SN corresponding to the manufacturer SM, and determine whether the machine can be refurbished through the client SN, if yes, replace a first preset bit number of the client SN, generate a bit number to replace a second preset bit number of the client SN, reserve the remaining bits, and combine the new first preset bit number and the new second preset bit number to generate a new client SN. Therefore, the method can judge whether the machine can be renovated, if so, the first preset digit of the client SN is replaced, and a digit is also generated to replace the second preset digit of the client SN, so that different manufacturers SN use common renovation rules, the renovation rules are simpler, and the efficiency of the product is improved.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium for performing all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer readable storage medium provided in this embodiment stores a computer program, when the computer program is executed by a processor to perform a step of a method for validating a client SN, the computer program acquires a manufacturer SN of a machine to be refurbished, acquires a client SN corresponding to the manufacturer SM, determines whether the machine can be refurbished by the client SN, if so, replaces a first preset digit of the client SN, generates a digit instead of a second preset digit of the client SN, retains the digits of the remaining digits, and generates a new client SN in combination with the new first preset digit and the new second preset digit. Therefore, the method can judge whether the machine can be renovated, if so, the first preset digit of the client SN is replaced, and a digit is also generated to replace the second preset digit of the client SN, so that different manufacturers SN use common renovation rules, the renovation rules are simpler, and the efficiency of the product is improved.
The method, the device and the computer readable storage medium for confirming the client SN provided by the application are described in detail above. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for validating a client SN, comprising:
acquiring a target manufacturer SN of a machine needing renovation;
acquiring a target client SN corresponding to the target vendor SN according to the corresponding relation between the vendor SN and the client SN;
judging whether the machine can be refurbished according to the number of the first preset bit in the target client SN;
if yes, replacing the number of the first preset bit of the target client SN, and generating a single digit to replace the number of the second preset bit of the target client SN; wherein the first preset bit is any bit in the target client SN; the second preset bit is the last bit in the target client SN; the generated one-digit number for replacing the second preset bit is different from the original number of the second preset bit;
and reserving the numbers of the rest bits, and generating a new target client SN by combining the new numbers of the first preset bits and the new numbers of the second preset bits.
2. The method of claim 1, wherein the first predetermined bit is an eighth bit, and wherein replacing the number of the first predetermined bit of the target client SN comprises:
if the number of the eighth bit is 0, updating the number of the eighth bit to 7;
if the number of the eighth bit is 7, updating the number of the eighth bit to 8;
and if the number of the eighth bit is 8, updating the number of the eighth bit to 9.
3. The method of validating a client SN of claim 2, wherein the determining from the target client SN whether the machine is refurbished comprises:
acquiring the number of the eighth bit of the target client SN;
if the number of the eighth bit is equal to 9, no refurbishment is possible.
4. A method of validating a client SN according to any one of claims 1 to 3, wherein after the remaining digits are reserved to generate a new target client SN in combination with the new digits of the first preset digit and the new digits of the second preset digit, further comprising:
judging whether the target client SN is completely retreaded according to the target manufacturer SN;
if yes, outputting the completely renovated prompt information;
if not, returning to the step of acquiring the target client SN corresponding to the target vendor SN according to the corresponding relation between the vendor SN and the client SN.
5. The method of validating a client SN of claim 4, wherein determining whether the target client SN is refurbished based on the target vendor SN comprises:
acquiring the number of the machines to be renovated according to the target manufacturer SN;
obtaining the number of the target clients SN which are completely renovated;
if the number of the machines is consistent with the number of the target clients SN, the renovation is complete;
if the number of machines is greater than the number of target clients SN, the refurbishment is not complete.
6. The method of claim 5, further comprising, after the outputting of the refurbished complete hint information:
the refurbished complete target client SN is output to a screen for sorting and sending to a manufacturer for production.
7. The method of validating a client SN of claim 6, further comprising, after said outputting the refurbished complete target client SN to a screen:
compressing the refurbished complete target client SN;
encrypting the compressed target client SN.
8. An apparatus for confirming a client SN, comprising
The first acquisition module is used for acquiring a target manufacturer SN of the machine needing to be renovated;
the second acquisition module is used for acquiring a target client SN corresponding to the target manufacturer SN according to the corresponding relation between the manufacturer SN and the client SN;
the judging module is used for judging whether the machine can be retreaded according to the number of the first preset position in the target client SN, and if so, triggering the replacing module;
the replacing module is configured to replace the number of the first preset bit of the target client SN, and generate a one-bit number to replace the number of the second preset bit of the target client SN; wherein the first preset bit is any bit in the target client SN; the second preset bit is the last bit in the target client SN; the generated one-digit number for replacing the second preset bit is different from the original number of the second preset bit;
and the generation module is used for reserving the numbers of the rest bits and generating a new target client SN by combining the new numbers of the first preset bits and the new numbers of the second preset bits.
9. A client SN validation apparatus comprising a memory for storing a computer program;
processor for implementing the steps of the method for validating a client SN as defined in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method for validating a client SN as claimed in any one of claims 1 to 7.
CN202111666572.XA 2021-12-30 2021-12-30 Client SN confirmation method and device and computer readable storage medium Active CN114462104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111666572.XA CN114462104B (en) 2021-12-30 2021-12-30 Client SN confirmation method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111666572.XA CN114462104B (en) 2021-12-30 2021-12-30 Client SN confirmation method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114462104A CN114462104A (en) 2022-05-10
CN114462104B true CN114462104B (en) 2023-11-14

Family

ID=81408200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111666572.XA Active CN114462104B (en) 2021-12-30 2021-12-30 Client SN confirmation method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114462104B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102728988A (en) * 2011-04-10 2012-10-17 上海继顺磁性材料有限公司 Renovation method of soft magnetic ferrite core forming die
CN108664260A (en) * 2018-04-09 2018-10-16 南京百敖软件有限公司 BIOS bootings update the method for the machine sequence number from network automatically under a kind of factory mode
CN109564598A (en) * 2017-03-13 2019-04-02 华为技术有限公司 A kind of endpoint detection methods and terminal
CN112600811A (en) * 2020-12-07 2021-04-02 广州芯德通信科技股份有限公司 Tr069 protocol-based automatic authorization CPE method and system
CN113344598A (en) * 2021-06-30 2021-09-03 中国电信股份有限公司 Data verification method, device, medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102728988A (en) * 2011-04-10 2012-10-17 上海继顺磁性材料有限公司 Renovation method of soft magnetic ferrite core forming die
CN109564598A (en) * 2017-03-13 2019-04-02 华为技术有限公司 A kind of endpoint detection methods and terminal
CN108664260A (en) * 2018-04-09 2018-10-16 南京百敖软件有限公司 BIOS bootings update the method for the machine sequence number from network automatically under a kind of factory mode
CN112600811A (en) * 2020-12-07 2021-04-02 广州芯德通信科技股份有限公司 Tr069 protocol-based automatic authorization CPE method and system
CN113344598A (en) * 2021-06-30 2021-09-03 中国电信股份有限公司 Data verification method, device, medium and electronic equipment

Also Published As

Publication number Publication date
CN114462104A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
WO2017113792A1 (en) Bluetooth automatic connection method, master device, slave device, and system
US10887338B2 (en) Creating notes on lock screen
CN110795400B (en) File management method, device, equipment and medium
CN111859359A (en) Intelligent equipment authorization system, method, device, equipment and medium
CN114417364A (en) Data encryption method, federal modeling method, apparatus and computer device
CN104346035A (en) Indicating automatically corrected words
CN114462104B (en) Client SN confirmation method and device and computer readable storage medium
CN104346165B (en) Information processing equipment, information processing method, storage medium and information processing system
CN111381850B (en) BIOS firmware upgrading method, device, equipment and medium
CN110472215B (en) Bid file generation method, device, equipment and medium
WO2023147744A1 (en) Key state inspection method and apparatus, and device and medium
CN108985759B (en) Address generating method, system, equipment and storage medium for cryptocurrency
CN106845253A (en) Historical operation recording of encrypted method and device
CN112308440A (en) Work order processing method and device, computer equipment and computer readable storage medium
CN113327591B (en) Voice processing method and device
CN116450745B (en) Multi-device-based note file operation method, system and readable storage medium
JP2019128867A (en) Design information managing system, design information managing method, and program
JP2019153999A (en) Activation system and activation method
CN110324150B (en) Data storage method and device, computer readable storage medium and electronic equipment
WO2021077862A1 (en) File synchronization method and device
CN116881717A (en) Data training method, device and medium
JP2011233053A (en) Information processing apparatus, information processing method, and program
CN117708848A (en) Project management method and device
CN114168914A (en) Operation and maintenance safety management method and device
JP2007094979A (en) Programmable display, control program and recording medium recording with the program stored, screen creating device, and screen creating program and recording medium with the program stored

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
GR01 Patent grant
GR01 Patent grant