CN112988770A - Method and device for updating serial number, electronic equipment and storage medium - Google Patents

Method and device for updating serial number, electronic equipment and storage medium Download PDF

Info

Publication number
CN112988770A
CN112988770A CN202110172673.5A CN202110172673A CN112988770A CN 112988770 A CN112988770 A CN 112988770A CN 202110172673 A CN202110172673 A CN 202110172673A CN 112988770 A CN112988770 A CN 112988770A
Authority
CN
China
Prior art keywords
serial number
information
target
equipment
sequence composition
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.)
Granted
Application number
CN202110172673.5A
Other languages
Chinese (zh)
Other versions
CN112988770B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110172673.5A priority Critical patent/CN112988770B/en
Publication of CN112988770A publication Critical patent/CN112988770A/en
Application granted granted Critical
Publication of CN112988770B publication Critical patent/CN112988770B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2365Ensuring data consistency and integrity

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present application relates to the field of computer devices, and in particular, to a method and an apparatus for updating a serial number, an electronic device, and a computer-readable storage medium. The method comprises the following steps: acquiring equipment information of equipment to be updated, wherein the equipment information comprises an equipment label and configuration information of the equipment to be updated; determining a target sequence composition rule corresponding to the equipment tag from a preset rule set according to the equipment tag, wherein the preset rule set comprises at least one sequence composition rule, and each sequence composition rule has a corresponding relation with the equipment tag; generating a target serial number corresponding to the equipment to be updated according to the equipment label and the configuration information of the equipment to be updated according to a target sequence composition rule; and updating the serial number of the equipment to be updated into the target serial number. The method can unify entity management information and operation management information, eliminate obstacles in asset management and improve management efficiency.

Description

Method and device for updating serial number, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer devices, and in particular, to a method and an apparatus for updating a serial number, an electronic device, and a computer-readable storage medium.
Background
Nowadays, computer technology is rapidly developed, various application services are increased endlessly, and a great deal of demands are brought to terminal equipment and server equipment. For an enterprise having a large number of terminal devices and server devices, electronic devices used in various devices are important components of company assets, and are particularly important for statistics and management, and the important basis for management is serial numbers of the electronic devices.
At present, when an electronic device entity is managed, the electronic device entity is generally managed by taking a serial number on the electronic device as a basis. After the electronic devices are put into use formally, the operating department can also acquire the serial numbers of the electronic devices, input the serial numbers into the management system and manage the electronic devices according to the serial numbers.
However, the serial number on the electronic device is usually different from the serial number acquired by the operation department, so that the entity management information for managing the electronic device entity is inconsistent with the serial number in the operation management information used in the subsequent application operation on the electronic device, and the entity management information and the operation management information cannot be unified, thereby forming a barrier to asset management and reducing management efficiency.
Disclosure of Invention
Based on the technical problem, the application provides a serial number updating method, so as to unify entity management information and operation management information, eliminate obstacles in asset management and improve management efficiency.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of an embodiment of the present application, there is provided a method for updating a sequence number, including:
acquiring equipment information of equipment to be updated, wherein the equipment information comprises an equipment label and configuration information of the equipment to be updated;
determining a target sequence composition rule corresponding to the equipment tag from a preset rule set according to the equipment tag, wherein the preset rule set comprises at least one sequence composition rule, and each sequence composition rule has a corresponding relation with the equipment tag;
generating a target serial number corresponding to the equipment to be updated according to the equipment label of the equipment to be updated and the configuration information according to the target sequence composition rule;
and updating the serial number of the equipment to be updated into the target serial number.
According to an aspect of an embodiment of the present application, there is provided a serial number updating apparatus, including:
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring device information of a device to be updated, and the device information comprises a device tag and configuration information of the device to be updated;
the determining module is used for determining a target sequence composition rule corresponding to the equipment tag from a preset rule set according to the equipment tag, wherein the preset rule set comprises at least one sequence composition rule, and each sequence composition rule has a corresponding relation with the equipment tag;
the processing module is used for generating a target serial number corresponding to the equipment to be updated according to the equipment label of the equipment to be updated and the configuration information according to the target sequence composition rule;
and the updating module is used for updating the serial number of the equipment to be updated into the target serial number.
In some embodiments of the present application, based on the above technical solutions, the processing module includes:
an obtaining unit, configured to obtain at least two pieces of information to be processed from the device tag and the configuration information according to the target sequence composition rule;
the code conversion unit is used for carrying out code conversion on each piece of information to be processed in the at least two pieces of information to be processed;
and the splicing processing unit is used for splicing the transcoded at least two pieces of information to be processed to obtain the target serial number.
In some embodiments of the present application, based on the above technical solutions, the obtaining unit includes:
a reading subunit, configured to, if the target sequence composition rule is a first sequence composition rule, read a manufacturer code and a module serial number from the device tag and read origin information and a date code from the configuration information;
the splicing processing unit includes:
and the splicing subunit is used for splicing the preset data identifier, the transcoded manufacturer code, the transcoded producing place information, the transcoded date code and the transcoded module serial number into a target serial number.
In some embodiments of the present application, based on the above technical solutions, the obtaining unit includes:
a reading subunit, configured to, if the target sequence composition rule is a second sequence composition rule, read a manufacturer code and a module serial number from the device tag and read origin information and a date code from the configuration information;
the splicing processing unit includes:
a splicing subunit, configured to splice the transcoded manufacturer code, the transcoded manufacture location information, the transcoded date code, and the transcoded module serial number into a target serial number.
In some embodiments of the present application, based on the above technical solutions, the obtaining unit includes:
a reading subunit, configured to read a module serial number from the device tag and read a date code and manufacturer-specific data from the configuration information if the target sequence composition rule is a third sequence composition rule;
the splicing processing unit includes:
the intercepting subunit is used for intercepting the transcoded manufacturer specific data and the transcoded date code to obtain target manufacturer specific data and a target date code;
a concatenation subunit for concatenating the target manufacturer specific data, the target date code, and the module serial number into a target serial number.
In some embodiments of the present application, based on the above technical solutions, the update module includes:
the date intercepting unit is used for intercepting target date information from the target serial number according to the preset sequence position of the date information;
and the saving unit is used for saving the target date information to a first storage address and saving the target serial number to a second storage address, wherein the second storage address is determined according to the storage address of the serial number of the equipment to be updated.
In some embodiments of the present application, based on the above technical solution, the device to be updated is a memory device, the device information is serial presence detect SPD information, and the device tag includes a manufacturer number and a memory production date; a determination module comprising:
and a rule determining unit, configured to determine a target sequence composition rule corresponding to the memory device from a preset rule set according to the manufacturer number and the memory production date, where the preset rule set includes at least one sequence composition rule, and each sequence composition rule has a corresponding relationship with the manufacturer number and the memory production date.
According to an aspect of an embodiment of the present application, there is provided a serial number updating apparatus, including: a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to perform the method of serial number update as in the above solution via executing executable instructions.
According to an aspect of the embodiments of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method of serial number update as in the above technical solution.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method of providing serial number update in the various alternative implementations described above.
In the embodiment of the application, the composition rule of the serial number of the electronic device is determined through the equipment tag obtained from the electronic device, and then the preset serial number is spliced by using the equipment tag and the configuration information in the electronic device according to the composition rule, so that the serial number on the package of the electronic device can be directly obtained through an operating system, the obtained serial number of the electronic device is consistent with the physical serial number of the electronic device during operation management, the entity management information and the operation management information are unified, the obstruction in asset management is eliminated, and the management efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 is a schematic diagram of an application scenario in an embodiment of the present application;
FIG. 2 is a flow chart of a method for serial number update according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for serial number update according to an embodiment of the present application;
FIG. 4 is a flow chart of a method for serial number update in an embodiment of the present application;
FIG. 5 is a flow chart of a method for serial number update in an embodiment of the present application;
FIG. 6 is a flow chart illustrating a method for serial number update according to an embodiment of the present application;
FIG. 7 is a flow chart illustrating a method for serial number update according to an embodiment of the present application;
FIG. 8 is a block diagram schematically illustrating the components of an audio processing apparatus according to an embodiment of the present application;
FIG. 9 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It can be understood that the method described in the present application can be applied to environments and scenarios where a large number of hardware entities need to be managed, such as server operators, large data centers, large e-commerce, large databases, cloud server providers, and cloud platforms. In such an environment, a large number of servers and hardware devices such as computer terminals are generally required for providing the corresponding services, and the factories where the server entities are located and the personnel responsible for the operation of the servers are generally located in different regions and belong to different departments. In purchasing and entity management of the server, entity information such as serial numbers is generally entered into the management system by field scanning a bar code or a two-dimensional code on a package or a body of the electronic device by a worker in a factory, or manually inputting the information on the package or the body. After the server is put into operation, for example, for providing services or services such as internal management, an operator accesses the server by means of remote login to acquire various information of the electronic devices in the server and manage the server. However, there is often a problem that information entered at a factory is inconsistent with information acquired by an operator, thereby causing management difficulties.
In view of the above, the method provided by the present application can enable the serial number obtained from the server remotely to be the same as the serial number on the electronic device entity. For convenience of understanding, the present application provides a method for updating a serial number, which may be applied to a server, please refer to fig. 1, where fig. 1 is a schematic diagram of an application scenario in an embodiment of the present application. As shown in fig. 1, the application scenario includes a plant-side system 101, an operator-side system 102, and a management-side system 103. There are a large number of servers in the factory, when a new server enters the factory or a new electronic device is purchased, the serial number on the electronic device in the server is recorded into the factory-side system 101 and provided to the management-side system 103 by means of scanning or inputting by using the information recording device in the factory, and then the content of the access information of the server and the like is provided to the operation-side system 102. The operation side system 102 uses the server to perform service by logging in the server remotely, and remotely obtains the serial number of the electronic device in the server and sends the serial number to the management side system 103 for management, wherein the method described in the present application may be applied to the server in a factory, and specifically, the method described in the present application may be operated during the starting process of the server, and the serial number of the electronic device stored in the server is updated to the serial number on the surface of the electronic device entity or on the outer package. Therefore, the serial number acquired by the operation-side system 102 remotely via the server will be the same as the serial number stored in the plant-side system 101, and therefore, in the management-side system 103, the serial number of the electronic device acquired during operation management by the operation test is identical to the physical serial number of the electronic device stored in the plant test, so that the physical management information and the operation management information are unified, thereby eliminating the hindrance in asset management and improving the management efficiency.
In actual business, the serial number can be obtained in various different ways, however, regardless of the obtaining way, the data source of the serial number is the serial number stored in the server and updated by the method provided by the application, and therefore the serial number can be consistent with the serial number on the entity. Specifically, the obtaining manner may adopt at least the following three manners: 1) by means of remote login or direct on-site operation of the server, a service person can directly input a serial number query instruction (such as a dmi command) in an operating system of the server, and the server displays an updated serial number in the operating system; 2) through a query page provided by a management side system (such as a Baseboard Management Controller (BMC)), a serial number of a server managed by the management side system can be queried, the serial number is acquired from the server by the management side system, and the server sends the stored updated serial number to the management side system for management; 3) in the management side system, the serial number of the server can be inquired by inputting an inquiry command, and the management side system acquires the updated serial number stored in the server and displays the serial number on the management side system. It is to be understood that the above three manners are merely examples of the service entry for obtaining the sequence number, and are not limited thereto, and in practical applications, the service entry for obtaining the sequence number may depend on practical implementations, and is not limited herein.
It is understood that the above scenarios are only examples, and in a specific implementation, the plant-side, operation-side and management-side systems may be the same management system or more management systems, which is not limited herein. The factory test and the operation test are only logical division of functions, and the actual physical locations may be the same or different, and are not limited herein.
Specifically, in the present application, the electronic device may be various electronic devices such as a memory, a hard disk, a video card, or a processor installed in a computer or a server, and the computer or the server itself and other devices may obtain a serial number of the electronic device by communicating with the computer or the server.
The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and a big data and artificial intelligence platform. The terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
A distributed cloud storage system (hereinafter, referred to as a storage system) refers to a storage system that integrates a large number of storage devices (storage devices are also referred to as storage nodes) of different types in a network through application software or application interfaces to cooperatively work by using functions such as cluster application, grid technology, and a distributed storage file system, and provides a data storage function and a service access function to the outside.
At present, a storage method of a storage system is as follows: logical volumes are created, and when created, each logical volume is allocated physical storage space, which may be the disk composition of a certain storage device or of several storage devices. The client stores data on a certain logical volume, that is, the data is stored on a file system, the file system divides the data into a plurality of parts, each part is an object, the object not only contains the data but also contains additional information such as data identification (ID, ID entry), the file system writes each object into a physical storage space of the logical volume, and the file system records storage location information of each object, so that when the client requests to access the data, the file system can allow the client to access the data according to the storage location information of each object.
The process of allocating physical storage space for the logical volume by the storage system specifically includes: physical storage space is divided in advance into stripes according to a group of capacity measures of objects stored in a logical volume (the measures often have a large margin with respect to the capacity of the actual objects to be stored) and Redundant Array of Independent Disks (RAID), and one logical volume can be understood as one stripe, thereby allocating physical storage space to the logical volume.
Database (Database), which can be regarded as an electronic file cabinet in short, a place for storing electronic files, a user can add, query, update, delete, etc. to data in files. A "database" is a collection of data that is stored together in a manner that can be shared by multiple users, has as little redundancy as possible, and is independent of the application.
A Database Management System (DBMS) is a computer software System designed for managing a Database, and generally has basic functions of storage, interception, security assurance, backup, and the like. The database management system may classify the database according to the database model it supports, such as relational, XML (Extensible Markup Language); or classified according to the type of computer supported, e.g., server cluster, mobile phone; or sorted according to the Query Language used, such as SQL (Structured Query Language), XQuery, or sorted according to performance impulse emphasis, such as max size, maximum operating speed, or other sorting.
Big data (Big data) refers to a data set which cannot be captured, managed and processed by a conventional software tool within a certain time range, and is a massive, high-growth-rate and diversified information asset which can have stronger decision-making power, insight discovery power and flow optimization capability only by a new processing mode. With the advent of the cloud era, big data has attracted more and more attention, and the big data needs special technology to effectively process a large amount of data within a tolerance elapsed time. The method is suitable for the technology of big data, and comprises a large-scale parallel processing database, data mining, a distributed file system, a distributed database, a cloud computing platform, the Internet and an extensible storage system.
It is understood that the method of the present application can be applied to the concrete implementation scenario of the above technology. For the above technologies, a large number of servers are required as hardware support, and the management scenarios of various electronic products in the servers are application environments suitable for the method described in the present application. Therefore, similarly, the method described in the present application can be applied to any scene where a large number of similar electronic devices need to be managed, for example, a large number of office computers of a large company or a large game server.
The technical solutions provided in the present application are described in detail below with reference to specific embodiments.
In the embodiment of the present application, an application scenario taking a scenario of a cloud storage server as an example will be described. Referring to fig. 2, fig. 2 schematically shows a schematic flow chart of a serial number updating method in the present application, where the serial number updating method at least includes the following steps S201 to S204:
step S201, obtaining the device information of the device to be updated, wherein the device information comprises a device label and configuration information of the device to be updated.
Specifically, the serial number updating apparatus obtains device information of the device to be updated in the server through the server, where the device information includes a device tag and configuration information of the device to be updated. The device to be updated may be an electronic device. The device tag refers to information indicating a manufacturer of the electronic device, a device model, and the like for identifying the electronic device. The configuration information refers to parameter information adopted by the electronic device during operation, such as performance, voltage, bit width, key operation timing and the like.
It is understood that, for different types of devices to be updated, the types and data of the information included in the device tag and the configuration information may be different, and are not limited herein.
Step S202, according to the equipment label, determining a target sequence composition rule corresponding to the equipment label from a preset rule set, wherein the preset rule set comprises at least one sequence composition rule, and each sequence composition rule has a corresponding relation with the equipment label.
Specifically, the preset rule set is preset information, and is determined according to a composition rule of a serial number of the electronic device, where the composition rule of the serial number is included, that is, a correspondence between information included in the serial number and information on the device tag. The preset rule set may be stored on the server or in other storage locations accessible to the server. The sequence composition rules included in the preset rule set correspond to different equipment tags, and the target sequence composition rules corresponding to the serial number of the electronic equipment entity can be determined according to the equipment tags of the electronic devices. The target sequence composition rule includes information and composition modes required for composing the serial number of the electronic device entity.
And S203, generating a target serial number corresponding to the equipment to be updated according to the equipment label and the configuration information of the equipment to be updated according to the target sequence composition rule.
The information included in the target sequence number can be acquired from the device tag and the configuration information of the device to be updated according to the target sequence composition rule, and the target sequence number is generated by using the acquired information according to the rule in the target sequence composition rule. Specifically, the target serial number may include all or a part of the obtained information, or may perform preprocessing on the obtained information, such as transcoding or intercepting. The target serial number generated according to the target sequence composition rule is a serial number recorded on an electronic device entity or an electronic device external package.
It is understood that the target serial number may include information from both the device tag and the configuration information, and may also include only information from the device tag or only information from the configuration information, without limitation. In another embodiment, the target serial number may further include information other than the device information, such as preset information or information added according to a preset rule.
And S204, updating the serial number of the equipment to be updated into a target serial number.
Specifically, the serial number updating device updates the serial number of the device to be updated of the storage device to the obtained target serial number, wherein the serial number of the device to be updated is directly obtained from the device to be updated during the starting process or other processes of the server. This serial number is different from the target serial number and, of course, different from the serial number on the electronic device entity or the outer package.
The storage device may be a storage device on a server or a storage device in a remote device, which is not limited herein.
In the embodiment of the application, the composition rule of the serial number of the electronic device is determined through the equipment tag obtained from the electronic device, and then the preset serial number is spliced by using the equipment tag and the configuration information in the electronic device according to the composition rule, so that the serial number on the package of the electronic device can be directly obtained through an operating system, the obtained serial number of the electronic device is consistent with the physical serial number of the electronic device during operation management, the entity management information and the operation management information are unified, the obstruction in asset management is eliminated, and the management efficiency is improved.
In an embodiment of the present application, in order to generate the target serial number, the step S203 may further include the following steps S301 to S303, for convenience of introduction, please refer to fig. 3, and step S203. according to the target sequence composition rule, the target serial number corresponding to the device to be updated is generated according to the device tag and the configuration information of the device to be updated, including:
s301, acquiring at least two pieces of information to be processed from the equipment tag and the configuration information according to a target sequence composition rule;
s302, performing code conversion on each piece of information to be processed in at least two pieces of information to be processed;
and S303, splicing the transcoded at least two pieces of information to be processed to obtain a target serial number.
Specifically, the serial number updating device obtains at least two pieces of information to be processed from the device tag and the configuration information according to the target sequence composition rule. Typically, at least one of the at least two pieces of information to be processed is from the device tag and at least another one of the at least two pieces of information to be processed is from the configuration information.
After the information to be processed is acquired, the serial number updating device performs code conversion on the acquired information to be processed. Specifically, the device information may be encoded in various formats and stored in the device to be updated, so that the acquired information to be processed is the encoded content. Based on the adopted coding form, the serial number updating device performs code conversion on each piece of information to be processed.
The coding mode adopted by the device information may be agreed information. For example, if the device information of all the devices to be updated all adopt the same encoding mode, the information to be processed may be directly encoded and converted by adopting a preset encoding mode. Information to be processed stored in an electronic device is often encoded to save storage space. The information to be processed is subjected to code conversion, so that the information to be processed can be converted into original readable information, the obtained information has a more definite meaning, and management personnel can acquire the information of the equipment to be updated conveniently.
The coding modes adopted by the device information may be different, but the target sequence composition rule determined according to different device tags may correspond to a preset coding mode. For example, if the device information of the electronic device a is encoded in the encoding mode X and the device information of the electronic device B is encoded in the encoding mode Y, the serial number updating device may determine that the information to be processed comes from the electronic device a according to the device tag, and therefore encode and convert the information to be processed in the encoding mode X, or determine that the information to be processed comes from the electronic device B according to the device tag, and therefore encode and convert the information to be processed in the encoding mode Y.
In one embodiment, the serial number updating device may determine the encoding mode used from the device information, for example, the device information may include identification information of the encoding mode, such as a number corresponding to an encoding protocol, at a preset position. The serial number updating device can read the identification information from the device information and determine the coding mode, so as to perform code conversion on the information to be processed.
After the code conversion is completed, the serial number updating device may perform splicing processing on the information to be processed after the code conversion according to the sequence specified by the target sequence composition rule to obtain the target serial number. In one embodiment, before the splicing process, the information to be processed may be further preprocessed, such as by truncation or conversion, and then spliced.
In the embodiment of the application, at least two pieces of information to be processed are subjected to code conversion processing and then spliced into the target serial number, so that the target serial number has readability, management personnel can read needed information from the serial number directly, and management efficiency is improved.
In an embodiment of the present application, referring to fig. 4, in order to obtain a target serial number, the step S301, obtaining at least two pieces of information to be processed from a device tag and configuration information according to a target sequence composition rule, may include the following step S401:
step S401, if the target sequence composition rule is the first sequence composition rule, the manufacturer code and the module serial number are read from the equipment label, and the production place information and the date code are read from the configuration information.
In the first sequence composition rule, the composition mode of the sequence number is as follows: data identifier + manufacturer number + manufacture information + date code + module serial number, so that the serial number updating means acquires the manufacturer code and module serial number from the information included in the device tag and acquires the manufacture information and date code from the configuration information according to the first sequence composition rule. The specific representation of the origin information and the date code may vary depending on different implementations, for example, the origin information may be in the form of acronym, abbreviation, region number, zip code, etc., and the date code may be in various recording formats for the date, which is not limited herein. It is understood that the various types of information obtained are already encoded information, and the encoding method may adopt, for example, BCD code rules. The manufacturer code is information for identifying the manufacturer of the device to be updated, and may be predetermined codes according to rules agreed by the respective manufacturers, each of which can uniquely identify a manufacturer. The module serial number is a code for identifying the device to be updated, which can uniquely identify an electronic device within a range predetermined by a manufacturer. The manufacturer-specified range refers to a manufacturer-specified usage range of serial numbers, and serial numbers in different usage ranges may be the same, while in the same usage, the serial numbers have uniqueness. The use range may be determined according to one or more of a manufacturer, an electronic device model, a production lot, a production site, and a production date, and information for determining the use range may be obtained from the device tag or may be obtained from the device information.
In this embodiment, the splicing processing performed on at least two pieces of transcoded information to be processed in step S303 to obtain the target serial number may include the following step S402:
step S402, splicing the preset data identifier, the transcoded manufacturer code, the transcoded manufacture place information, the transcoded date code and the transcoded module serial number into a target serial number.
Specifically, the preset data identifier is a fixed identifier for identifying a serial number. The data identifier is typically fixed and unique within the range of use of the serial number. For example, if the manufacturer determines the data identifier of the electronic device a as S, the data identifier is S for all the electronic devices a of the manufacturer. Thus, it will be appreciated that, similar to the sequence composition rule, the data identifier may be determined based on information in the device tag.
The first sequence composition rule specifies the splicing sequence of various types of information in the sequence numbers. According to a first sequence composition rule, a data identifier, a transcoded manufacturer encoding, transcoded place of production information, a transcoded date encoding, and a transcoded module serial number may be concatenated to a target serial number. In one embodiment, the splicing order may also be a preset order stored in the server, and need not be obtained from the first sequence composition rule. The splicing operation may be performed by directly connecting character strings, or by connecting symbols (e.g., dash lines) according to a first sequence composition rule or a preset rule.
In the embodiment of the application, the manufacturer code and the module serial number are read from the equipment tag and the production place information and the date code are read from the configuration information according to the first sequence composition rule, and the read information is spliced into the target serial number by combining the data identifier according to the sequence composition rule, so that the composition mode of the target serial number is explicitly provided, and the feasibility of the scheme is improved.
In an embodiment of the present application, referring to fig. 5, in order to obtain a target serial number, the step S301, mentioned above, of obtaining at least two pieces of information to be processed from a device tag and configuration information according to a target sequence composition rule, may include the following step S501:
step S501, if the target sequence composition rule is a second sequence composition rule, reading the manufacturer code and the module serial number from the equipment label and reading the production place information and the date code from the configuration information.
In the second sequence composition rule, the sequence number is composed as follows: the serial number updating means acquires the manufacturer code and the module serial number from the information included in the device tag, and acquires the manufacture place information and the date code from the configuration information, according to the second sequence composition rule. For content introduction of each information and its encoding method, please refer to the description in step S401, which is not described herein again.
In this embodiment, the splicing processing performed on at least two pieces of transcoded information to be processed in step S303 to obtain the target serial number may include the following step S502:
step S502, splicing the transcoded manufacturer code, the transcoded manufacture place information, the transcoded date code and the transcoded module serial number into a target serial number.
Specifically, the second sequence composition rule specifies the splicing order of various types of information in the sequence numbers. According to a second sequence composition rule, the transcoded manufacturer code, the transcoded manufacture information, the transcoded date code and the transcoded module serial number may be concatenated into the target serial number. In one embodiment, the splicing order may also be a preset order stored in the server, and need not be obtained from the first sequence composition rule. The splicing operation may be performed by directly connecting character strings, or by connecting symbols (e.g., dash lines) according to a first sequence composition rule or a preset rule.
In the embodiment of the application, the manufacturer code and the module serial number are read from the equipment tag and the manufacture place information and the date code are read from the configuration information according to the second sequence composition rule, the manufacturer code and the module serial number are spliced into the target serial number, the module serial number stored in the electronic device is expanded into the serial number information on the electronic device entity, the entity serial number can be directly obtained from the server during the maintenance of the electronic device without additionally inquiring the entity serial number, and therefore the maintenance efficiency is improved.
In an embodiment of the present application, referring to fig. 6, in order to obtain a target serial number, the step S301, obtaining at least two pieces of information to be processed from a device tag and configuration information according to a target sequence composition rule, may include the following step S601:
if the target sequence composition rule is a third sequence composition rule, then the module serial number is read from the device tag and the date code and manufacturer specific data are read from the configuration information.
In the third sequence composition rule, the sequence numbers are composed as follows: manufacturer specific data + date code + module serial number, and therefore, the serial number updating means acquires the module serial number from the information included in the device tag and acquires the date code and the manufacturer specific data from the configuration information according to this third sequence composition rule. For the introduction of the module serial number, the date code, the coding method thereof, and the like, please refer to the description in step S401, which is not described herein again. The manufacturer-specific data refers to information that the manufacturer itself defines and stores in the electronic device, the content and meaning of which, etc., are defined by the manufacturer of the electronic device itself.
In this embodiment, the splicing processing performed in step S303 on at least two pieces of transcoded information to be processed to obtain the target serial number may include the following steps S602 to S603:
s602, intercepting the transcoded manufacturer specific data and the transcoded date code to obtain target manufacturer specific data and a target date code;
step s603. concatenate the target manufacturer specific data, the target date code, and the module serial number into a target serial number.
Specifically, the third sequence composition rule specifies the splicing sequence of various types of information in the sequence number, and also defines a specific interception mode for various types of information. In this embodiment, the transcoded manufacturer-specific data and the transcoded date encoding are intercepted according to a third sequence composition rule. Specifically, the first 7 bits of data of the manufacturer specific data and the last three bits of data of the date code may be intercepted as the target manufacturer specific data and the target date code. For example, if the manufacturer-specific data is 2C0F18121BA5, the truncated result is "2C 0F 181", and if the date code is in the yearly format, it is 2019 (indicating 19 th week of 2020), the truncated result is 019.
After interception, the target manufacturer specific data, target date code, and module serial number may be concatenated into a target serial number according to a third sequence composition rule. In one embodiment, the splicing order may also be a preset order stored in the server, and need not be obtained from the first sequence composition rule. The splicing operation may be performed by directly connecting character strings, or by connecting symbols (e.g., dash lines) according to a first sequence composition rule or a preset rule.
In the embodiment of the application, after the manufacturer specific data and the date code are intercepted according to the third sequence composition rule, the third sequence composition rule and the module serial number are spliced together to form the target serial number, so that the length of the target serial number can be shortened, the storage space of the server and the management system for storing the serial number is saved, and resources are saved.
In an embodiment of the present application, referring to fig. 7, in order to update the serial number, the step S204 described above updates the serial number of the device to be updated to the target serial number, which may include the following steps S701 to S702:
s701, intercepting target date information from a target serial number according to a preset sequence position of the date information;
step S702, the target date information is saved to a first storage address, and the target serial number is saved to a second storage address, wherein the second storage address is determined according to the storage address of the serial number of the equipment to be updated.
Specifically, the target serial number may include the already transcoded date information at a predetermined position according to the splicing manner and order. According to the predetermined position, the serial number updating device can intercept the target date information from the target serial number, wherein the predetermined position comprises the starting position and the length of the target date information in the serial number. For example, the serial number includes 18 bits of data, the predetermined position of the target date information may include a 7 th bit starting position, a length of 4, such as the serial number 802C0F18121 bxxxxxxc, where the first digit 8 is the first digit, and the target date information that can be intercepted is "1812", indicating that the production date of the electronic device is 12 weeks 2018.
Then, the serial number updating means saves the target date information to the first storage address and saves the target serial number to the second storage address. The second storage address is the storage address in the server originally used for storing the serial number, and the serial number stored in the address can be directly read from the electric device and stored during the starting process of the server, and the serial number is usually less in bits compared with the serial number on the entity or package of the electric device. The serial number updating device updates the serial number stored in the address to the target serial number obtained by the method, so that when the management system obtains the serial number of the electronic device from the server, the serial number read by the server from the second storage address is consistent with the serial number on the entity of the electronic device.
The first memory address and the second memory address may be in different memories, e.g., the target serial number is in a cache and the target date information is stored in a hard disk. The first storage address may also be a storage on other devices, for example, the target serial number is in the server and can be directly queried through the operating system of the server, and the target date information is stored in the server of the remote management system and needs to be queried through the remote management system.
In the embodiment of the application, the date information is intercepted in the process of updating the serial number and is separately stored in another address, and the convenience of equipment management is improved because the date information is not included in the information stored about the equipment to be updated, and the separately stored date information allows a user to directly inquire the production date of the electronic device.
In the embodiment of the application, the device to be updated is a memory device, the device information is Serial Presence Detect (SPD) information, and the device tag comprises a manufacturer number and a memory production date; the step s202, according to the device tag, determining a target sequence composition rule corresponding to the device tag from a preset rule set, including:
and determining a target sequence composition rule corresponding to the memory device according to the manufacturer number and the memory production date, wherein the preset rule set comprises at least one sequence composition rule, and each sequence composition rule has a corresponding relation with the manufacturer number and the memory production date.
Specifically, for a memory device, a server reads Serial Presence Detect (SPD) information stored in a memory at startup. SPD information is stored in an Electrically Erasable Programmable Read Only Memory (EEPROM) on a Memory device, which is typically 256 bytes in size. The contents included in the SPD information are set according to the specification in the solid state technology association (JEDEC) standard. And saving it in a Basic Input Output System (BIOS) during the process of starting the server, reads SPD information and saves it in a System Management BIOS (SMBIOS), and subsequently, when an operating System or other Management System or device of the server obtains SPD information of the memory device through the server, it obtains information from the SMBIOS.
The contents of the part included in the SPD information are shown in the following table:
Figure BDA0002939284110000161
Figure BDA0002939284110000171
TABLE 1 SPD information content
The byte number includes the number of the byte and the starting physical address, and the functional description explains the meaning of the information in the corresponding byte. In the present embodiment, bytes 320, 321, 325-328 are referred to as device tags, and bytes 322, 323-324, 353-381 are referred to as configuration information. It will be appreciated that the above illustration is only a portion of SPD information, and that the device tag and configuration information may also include other information in the SPD information.
The rules for serial numbers may be different for different models of memory produced by different memory manufacturers. Therefore, the preset rule set includes the relationship between the memory and the sequence composition rule of the sequence numbers, and a plurality of sequence composition rules form the preset rule set.
Generally, the serial number rule of the memory can be determined according to the manufacturer number and the memory production date, and in some cases, can also be determined according to the manufacturer number, the memory production date and the memory type.
The following illustrates the generation process of the memory serial number.
The serial number updating device may determine that the memory corresponds to a first sequence composition rule, wherein in the first sequence composition rule, the serial number is data identifier "S" + manufacturer number (byte 320, 321) + production address (byte 322) + production date (byte 323-. Then, the serial number updating means reads the corresponding information from the SPD information. This information is typically stored using BCD codes. The BCD code of each information is coded and converted into 16-system representation, the BCD code stored in one byte can be converted into 2-bit 16-system characters, and the target serial number at the final splicing position is a 19-bit serial number. For example, serial number "S802C 0F18121XA666 FE", where 802C is the manufacturer code, 0F corresponds to the production address, 1812 corresponds to the production date, and 1XA666FE corresponds to the serial number.
The serial number updating device may determine that the memory corresponds to a second sequence composition rule, wherein the second sequence composition rule comprises a serial number of manufacturer (bytes 320 and 321), a production address (byte 322), a production date (byte 323 and 324), and a serial number (byte 325 and 328). It is noted that the second sequence composition rule differs from the first sequence composition rule only in that the data identifier "S" is removed, and thus, will not be described in detail.
The serial number updating means may determine that the memory corresponds to a third sequence composition rule, wherein the third sequence composition rule comprises three parts, the first part is 7 digits contained in bytes 353-359 corresponding to the manufacturer specific information, they are also the first 7 digits in bytes 353-381 corresponding to the manufacturer specific information in its entirety, and after they are converted according to the BCD code, they need to be further converted into ASCII code to clarify its content. The second part is the result of removing the first character after the bytes 323-324 corresponding to the production date are converted according to the BCD code, namely the last three bits of the production date, for example, the content of the second part corresponding to 1809 (09 weeks 2018) is 809. The third portion is bytes 325 and 328 corresponding to the sequence number.
Therefore, in the third sequence composition rule, the sequence number is 353-359 + 323-324 (the last three bits) + 325-.
In the embodiment of the application, the target sequence composition rule corresponding to the memory device is determined through the manufacturer number and the memory production date, and the serial number generated according to the target sequence composition rule can be kept the same as the serial number recorded on the tag or the package of the memory, so that the serial number obtained by scanning the memory entity is the same as the serial number obtained through the server, and the management efficiency of the memory is improved.
It should be noted that although the various steps of the methods in this application are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the shown steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
The following describes an apparatus implementation of the present application that may be used to perform the method for serial number update in the above-described embodiments of the present application. Fig. 8 schematically shows a block diagram of the serial number updating apparatus in the embodiment of the present application. As shown in fig. 8, the serial number updating apparatus 800 may mainly include:
an obtaining module 801, configured to obtain device information of a device to be updated, where the device information includes a device tag and configuration information of the device to be updated;
a determining module 802, configured to determine, according to the device tag, a target sequence composition rule corresponding to the device tag from a preset rule set, where the preset rule set includes at least one sequence composition rule, and each sequence composition rule has a corresponding relationship with the device tag;
the processing module 803 is configured to generate a target serial number corresponding to the device to be updated according to the device tag and the configuration information of the device to be updated according to the target sequence composition rule;
an updating module 804, configured to update the serial number of the device to be updated to the target serial number.
In some embodiments of the present application, based on the above technical solutions, the processing module 803 includes:
the acquisition unit is used for acquiring at least two pieces of information to be processed from the equipment label and the configuration information according to the target sequence composition rule;
the code conversion unit is used for carrying out code conversion on each piece of information to be processed in the at least two pieces of information to be processed;
and the splicing processing unit is used for splicing the transcoded at least two pieces of information to be processed to obtain the target serial number.
In some embodiments of the present application, based on the above technical solutions, the obtaining unit includes:
a reading subunit, configured to read the manufacturer code and the module serial number from the device tag and read the place of manufacture information and the date code from the configuration information if the target sequence composition rule is the first sequence composition rule;
the splicing processing unit includes:
and the splicing subunit is used for splicing the preset data identifier, the transcoded manufacturer code, the transcoded place-of-production information, the transcoded date code and the transcoded module serial number into a target serial number.
In some embodiments of the present application, based on the above technical solutions, the obtaining unit includes:
a reading subunit, configured to read the manufacturer code and the module serial number from the device tag and read the place of manufacture information and the date code from the configuration information if the target sequence composition rule is the second sequence composition rule;
the splicing processing unit includes:
and the splicing subunit is used for splicing the transcoded manufacturer code, the transcoded manufacture place information, the transcoded date code and the transcoded module serial number into a target serial number.
In some embodiments of the present application, based on the above technical solutions, the obtaining unit includes:
a reading subunit, configured to read the module serial number from the device tag and read the date code and the manufacturer specific data from the configuration information if the target sequence composition rule is the third sequence composition rule;
the splicing processing unit includes:
the intercepting subunit is used for intercepting the transcoded manufacturer specific data and the transcoded date code to obtain target manufacturer specific data and a target date code;
and the splicing subunit is used for splicing the target manufacturer specific data, the target date code and the module serial number into a target serial number.
In some embodiments of the present application, based on the above technical solutions, the updating module 804 includes:
the date intercepting unit is used for intercepting target date information from the target serial number according to the preset sequence position of the date information;
and the saving unit is used for saving the target date information to a first storage address and saving the target serial number to a second storage address, wherein the second storage address is determined according to the storage address of the serial number of the equipment to be updated.
In some embodiments of the present application, based on the above technical solution, the device to be updated is a memory device, and the device information is serial presence detect SPD information, and the device tag includes a manufacturer number and a memory production date; the determining module 802 includes:
the rule determining unit is configured to determine a target sequence composition rule corresponding to the memory device from a preset rule set according to the manufacturer number and the memory production date, where the preset rule set includes at least one sequence composition rule, and each sequence composition rule has a corresponding relationship with the manufacturer number and the memory production date.
It should be noted that the apparatus provided in the foregoing embodiment and the method provided in the foregoing embodiment belong to the same concept, and the specific manner in which each module performs operations has been described in detail in the method embodiment, and is not described again here.
FIG. 9 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
It should be noted that the computer system 900 of the electronic device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments.
As shown in fig. 9, a computer system 900 includes a Central Processing Unit (CPU)901 that can perform various appropriate actions and processes in accordance with a program stored in a Read-Only Memory (ROM) 902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for system operation are also stored. The CPU 901, ROM 902, and RAM 903 are connected to each other via a bus 904. An Input/Output (I/O) interface 905 is also connected to bus 904.
The following components are connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 908 including a hard disk and the like; and a communication section 909 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
In particular, according to embodiments of the present application, the processes described in the various method flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The computer program executes various functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 901.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for sequence number update, comprising:
acquiring equipment information of equipment to be updated, wherein the equipment information comprises an equipment label and configuration information of the equipment to be updated;
determining a target sequence composition rule corresponding to the equipment tag from a preset rule set according to the equipment tag, wherein the preset rule set comprises at least one sequence composition rule, and each sequence composition rule has a corresponding relation with the equipment tag;
generating a target serial number corresponding to the equipment to be updated according to the equipment label of the equipment to be updated and the configuration information according to the target sequence composition rule;
and updating the serial number of the equipment to be updated into the target serial number.
2. The method according to claim 1, wherein the generating a target serial number corresponding to the device to be updated according to the device tag of the device to be updated and the configuration information according to the target sequence composition rule includes:
acquiring at least two pieces of information to be processed from the equipment tag and the configuration information according to the target sequence composition rule;
performing code conversion on each piece of information to be processed in the at least two pieces of information to be processed;
and splicing the transcoded at least two pieces of information to be processed to obtain a target serial number.
3. The method of claim 2, wherein the obtaining at least two pieces of information to be processed from the device tag and the configuration information according to the target sequence composition rule comprises:
if the target sequence composition rule is a first sequence composition rule, reading a manufacturer code and a module serial number from the equipment tag and reading manufacture place information and a date code from the configuration information;
the splicing processing of the transcoded at least two pieces of information to be processed to obtain the target sequence number comprises:
concatenating a preset data identifier, the transcoded manufacturer code, the transcoded manufacture information, the transcoded date code, and the transcoded module serial number as a target serial number.
4. The method of claim 2, wherein the obtaining at least two pieces of information to be processed from the device tag and the configuration information according to the target sequence composition rule comprises:
if the target sequence composition rule is a second sequence composition rule, reading a manufacturer code and a module serial number from the equipment tag and reading manufacture place information and a date code from the configuration information;
the splicing processing of the transcoded at least two pieces of information to be processed to obtain the target sequence number comprises:
splicing the transcoded manufacturer code, the transcoded place-of-production information, the transcoded date code, and the transcoded module serial number into a target serial number.
5. The method of claim 2, wherein the obtaining at least two pieces of information to be processed from the device tag and the configuration information according to the target sequence composition rule comprises:
if the target sequence composition rule is a third sequence composition rule, reading a module serial number from the device tag and a date code and manufacturer specific data from the configuration information;
the splicing processing of the transcoded at least two pieces of information to be processed to obtain the target sequence number comprises:
intercepting the transcoded manufacturer specific data and the transcoded date code to obtain target manufacturer specific data and a target date code;
concatenating the target manufacturer-specific data, the target date code, and the module serial number into a target serial number.
6. The method of claim 1, wherein the updating the serial number of the device to be updated to the target serial number comprises:
intercepting target date information from the target serial number according to a preset sequence position of the date information;
and saving the target date information to a first storage address, and saving the target serial number to a second storage address, wherein the second storage address is determined according to the storage address of the serial number of the equipment to be updated.
7. The method according to any one of claims 1-6, wherein the device to be updated is a memory device, and the device information is Serial Presence Detect (SPD) information, the device tag including a manufacturer number and a memory production date; determining a target sequence composition rule corresponding to the equipment tag from a preset rule set according to the equipment tag, wherein the determining comprises the following steps:
and determining a target sequence composition rule corresponding to the memory device from a preset rule set according to the manufacturer number and the memory production date, wherein the preset rule set comprises at least one sequence composition rule, and each sequence composition rule has a corresponding relation with the manufacturer number and the memory production date.
8. A serial number updating apparatus, comprising:
the device comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring device information of a device to be updated, and the device information comprises a device tag and configuration information of the device to be updated;
the determining module is used for determining a target sequence composition rule corresponding to the equipment tag from a preset rule set according to the equipment tag, wherein the preset rule set comprises at least one sequence composition rule, and each sequence composition rule has a corresponding relation with the equipment tag;
the processing module is used for generating a target serial number corresponding to the equipment to be updated according to the equipment label of the equipment to be updated and the configuration information according to the target sequence composition rule;
and the updating module is used for updating the serial number of the equipment to be updated into the target serial number.
9. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of serial number updating of any of claims 1-7 via execution of the executable instructions.
10. A computer-readable medium, on which a computer program is stored which, when being executed by a processor, carries out the method for serial number updating according to any one of claims 1 to 7.
CN202110172673.5A 2021-02-08 2021-02-08 Method, device, electronic equipment and storage medium for updating serial number Active CN112988770B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110172673.5A CN112988770B (en) 2021-02-08 2021-02-08 Method, device, electronic equipment and storage medium for updating serial number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110172673.5A CN112988770B (en) 2021-02-08 2021-02-08 Method, device, electronic equipment and storage medium for updating serial number

Publications (2)

Publication Number Publication Date
CN112988770A true CN112988770A (en) 2021-06-18
CN112988770B CN112988770B (en) 2024-03-26

Family

ID=76347619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110172673.5A Active CN112988770B (en) 2021-02-08 2021-02-08 Method, device, electronic equipment and storage medium for updating serial number

Country Status (1)

Country Link
CN (1) CN112988770B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168910A (en) * 2022-02-14 2022-03-11 成都万创科技股份有限公司 Android equipment serial number generation equipment and method
CN115174527A (en) * 2022-07-12 2022-10-11 腾讯科技(深圳)有限公司 Serial number processing method and device, computing equipment and storage medium
CN116186796A (en) * 2023-02-21 2023-05-30 中国人民解放军海军工程大学 Sequence number generation method, system, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800842A (en) * 2018-12-06 2019-05-24 珠海西山居移动游戏科技有限公司 A kind of assets unique identification code generating method and system
CN110197520A (en) * 2019-04-25 2019-09-03 珠海格力电器股份有限公司 Label generating method, device, terminal device and computer readable storage medium
CN111160876A (en) * 2020-01-08 2020-05-15 重庆忽米网络科技有限公司 Internet of things identification analysis information input method based on input equipment identity
CN111339047A (en) * 2020-02-28 2020-06-26 江苏苏宁物流有限公司 Data interaction method, device and system
CN112184367A (en) * 2020-09-17 2021-01-05 北京同邦卓益科技有限公司 Order processing method and device
CN112231568A (en) * 2020-10-22 2021-01-15 携程计算机技术(上海)有限公司 Hotel label automatic configuration method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800842A (en) * 2018-12-06 2019-05-24 珠海西山居移动游戏科技有限公司 A kind of assets unique identification code generating method and system
CN110197520A (en) * 2019-04-25 2019-09-03 珠海格力电器股份有限公司 Label generating method, device, terminal device and computer readable storage medium
CN111160876A (en) * 2020-01-08 2020-05-15 重庆忽米网络科技有限公司 Internet of things identification analysis information input method based on input equipment identity
CN111339047A (en) * 2020-02-28 2020-06-26 江苏苏宁物流有限公司 Data interaction method, device and system
CN112184367A (en) * 2020-09-17 2021-01-05 北京同邦卓益科技有限公司 Order processing method and device
CN112231568A (en) * 2020-10-22 2021-01-15 携程计算机技术(上海)有限公司 Hotel label automatic configuration method and device, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168910A (en) * 2022-02-14 2022-03-11 成都万创科技股份有限公司 Android equipment serial number generation equipment and method
CN115174527A (en) * 2022-07-12 2022-10-11 腾讯科技(深圳)有限公司 Serial number processing method and device, computing equipment and storage medium
CN115174527B (en) * 2022-07-12 2024-02-13 腾讯科技(深圳)有限公司 Sequence number processing method and device, computing equipment and storage medium
CN116186796A (en) * 2023-02-21 2023-05-30 中国人民解放军海军工程大学 Sequence number generation method, system, electronic equipment and storage medium
CN116186796B (en) * 2023-02-21 2024-01-30 中国人民解放军海军工程大学 Sequence number generation method, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112988770B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
CN112988770B (en) Method, device, electronic equipment and storage medium for updating serial number
CN112506946A (en) Service data query method, device, equipment and storage medium
US20070276970A1 (en) Data Consistency Validation
CN111125496B (en) Price query method, device and system
CN111460129B (en) Method, device, electronic equipment and storage medium for generating identification
CN109522751B (en) Access right control method and device, electronic equipment and computer readable medium
CN112699151B (en) Data processing method, device, equipment and medium
CN104881454A (en) Updating method and system of parameter
CN111611249A (en) Data management method, device, equipment and storage medium
CN112671734A (en) Message processing method facing multiple data sources and related equipment thereof
CN110879808B (en) Information processing method and device
CN116719799A (en) Environment-friendly data management method, device, computer equipment and storage medium
CN113190517B (en) Data integration method and device, electronic equipment and computer readable medium
CN113254457B (en) Account checking method, account checking system and computer readable storage medium
CN113434506B (en) Data management and retrieval method, device, computer equipment and readable storage medium
CN114185941A (en) Report data query method and device, electronic equipment and storage medium
CN116069725A (en) File migration method, device, apparatus, medium and program product
CN115982133A (en) Data processing method and device
CN115330540A (en) Method and device for processing transaction data
CN114356945A (en) Data processing method, data processing device, computer equipment and storage medium
CN115017185A (en) Data processing method, device and storage medium
CN112559233A (en) Method, device, equipment and computer readable medium for identifying fault type
CN113268506A (en) Cache database query method and device, electronic equipment and readable storage medium
CN110866002A (en) Method and device for processing sub-table data
CN113449035B (en) Data synchronization method, device, computer equipment and readable storage medium

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