Device identifier distribution method and device based on multiple sub-servers, equipment and medium

By determining the target identification code and identification based on link information and device identification code in the AI ​​server, the problem of low efficiency in the sub-server device identification management is solved, the system flexibility and scalability are improved, and the sub-server resources are realized Efficient management and accurate alarm positioning.

CN119182661APending Publication Date: 2024-12-24EVEX TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411235263.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

The prior art has low efficiency in managing device identification of sub-servers in AI servers, resulting in insufficient computing resource utilization and deployment flexibility, and is unable to effectively distinguish PCIe resources on molecular servers and handle error alarm sources.

Method used

By determining the target identification code on the main server based on the preset link information and device identification code, and determining the target identification based on the relationship between the device identification and link information, the correlation storage and allocation are performed, and the efficiency of data identification and binding is improved.

Benefits of technology

It improves the efficiency of data identification and binding, improves the flexibility and scalability of the system, can accurately locate the alarm source and improve processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182661A_ABST
    Figure CN119182661A_ABST
Patent Text Reader

Abstract

The invention provides an equipment identifier distribution method and device based on multiple sub-servers, equipment and a medium. The method comprises the following steps: determining a target identification code according to preset link information and an equipment identification code of each sub-server, the sub-servers being in one-to-one correspondence with the equipment identification codes; according to an association relationship between a preset device identifier and link information, determining a device identifier corresponding to the preset link information as a target identifier, the device identifier being identifier data to be allocated to a data transfer medium; and distributing the target identifier to a data transfer medium corresponding to the preset link information, and carrying out associated storage on the target serial number, the preset link information and the target identifier. According to the method provided by the invention, the cost of manual deployment and operation and maintenance is saved, the identification and distribution efficiency of the data equipment is improved, and the flexibility and expandability of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer networks, and in particular to a method, apparatus, device and medium for allocating device identifiers based on multiple sub-servers. Background Art

[0002] Currently, artificial intelligence technology is developing rapidly, and the demand for artificial intelligence (AI) servers is also increasing. Graphics processing unit (GPU) modules, which are the core computing power of AI servers, have become a hot resource. In actual network applications and operation and maintenance processes, the requirements for computing resource utilization and deployment flexibility are also increasing. Therefore, sub-server-shaped AI resource servers with flexible deployment advantages are gradually gaining popularity.

[0003] However, the efficiency of device identification for each sub-server is currently low, and dedicated device identification is needed to improve processing efficiency. How to combine device identification to improve data processing efficiency is a problem that urgently needs to be solved. Summary of the invention

[0004] The present application provides a method, apparatus, device and medium for allocating device identification based on multiple sub-servers, so as to improve the efficiency of data identification and binding.

[0005] In a first aspect, the present application provides a method for allocating device identifiers based on multiple sub-servers, comprising:

[0006] Determine the target identification code according to the preset link information and the device identification code of each sub-server; wherein the sub-servers correspond to the device identification codes one by one;

[0007] According to the association relationship between the preset device identification and the link information, the device identification corresponding to the preset link information is determined as the target identification; wherein the device identification is identification data to be allocated to the data transfer medium;

[0008] The target identifier is allocated to a data transfer medium corresponding to the preset link information, and the target sequence number, the preset link information, and the target identifier are stored in association with each other.

[0009] In a second aspect, the present application provides a device identification allocation apparatus based on multiple sub-servers, comprising:

[0010] An identification code determination module, used to determine the preset link information and the device identification code of each sub-server, wherein the sub-servers correspond to the device identification codes one by one;

[0011] An identification determination module, used to determine the device identification corresponding to the preset link information as the target identification; wherein the device identification is identification data to be allocated to the data transfer medium;

[0012] The identification allocation module is used to allocate the target identification to the data transfer medium corresponding to the preset link information, and store the target identification code, the preset link information, and the target identification in association.

[0013] In a third aspect, the present application provides an electronic device, including: a memory, a processor;

[0014] Memory; Memory for storing instructions executable by the processor;

[0015] The processor executes the computer-executable instructions stored in the memory to implement the method according to the first aspect.

[0016] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.

[0017] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.

[0018] The present application provides a method, apparatus, device and medium for allocating device identification based on multiple sub-servers, wherein multiple sub-servers are connected to a main server, and multiple data transfer media are configured on the sub-servers. The data transfer media communicate with the main server through link information preset by the main server. The main server determines the target identification code according to the preset link information and the device identification code, and then determines the target identification according to the preset relationship between the device identification and the link information, and finally stores the target identification code, the preset link information, and the target identification in association. The embodiment of the present application realizes the mutual identification allocation of the target identification code and the target identification, processes the data, improves the efficiency of data identification and binding, and enhances the flexibility and scalability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] 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 present application.

[0020] Figure 1 A schematic diagram of interconnection and communication between a main server and a sub-server provided in an embodiment of the present application;

[0021] Figure 2A schematic diagram of a flow chart of a device identification allocation method based on multiple sub-servers provided in an embodiment of the present application;

[0022] Figure 3 An example diagram of a device list provided for an embodiment of the present application;

[0023] Figure 4 A schematic diagram of a flow chart of a device identification allocation method based on multiple sub-servers provided in an embodiment of the present application;

[0024] Figure 5 A structural block diagram of a device identification allocation apparatus based on multiple sub-servers provided in an embodiment of the present application;

[0025] Figure 6 A structural block diagram of an electronic device provided in an embodiment of the present application;

[0026] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment.

[0027] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0028] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0029] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0030] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0031] In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0032] It should be noted that due to space limitations, this application specification does not list all optional implementation methods. After reading this application specification, those skilled in the art should be able to think that as long as the technical features do not contradict each other, any combination of technical features can constitute an optional implementation method. Each embodiment is described in detail below.

[0033] Currently, artificial intelligence technology is developing rapidly, and the demand for AI servers is also increasing. As the core computing power of AI servers, GPU modules have become a hot resource. In actual network applications and operation and maintenance processes, the requirements for computing resource utilization and deployment flexibility are also getting higher and higher. Therefore, sub-server-shaped AI resource servers with flexible deployment advantages are gradually being praised.

[0034] In the sub-server form of AI servers, multiple data transfer media (English: Peripheral Component Interconnect Express Switch, abbreviated as PCIe Switch) and their downstream computing resources are usually included. At present, the market generally adopts a main server directly connected to a sub-server for deployment and management, which to a certain extent divides the computing resources into sub-servers as the smallest unit. When a main server is connected to two or more sub-servers at the same time, because these sub-servers have the same hardware design and PCIe Switch firmware, the main server will not be able to distinguish the bus (English: Peripheral Component Interconnect Express, abbreviated as PCIe) resources located on the same link on different sub-servers, resulting in conflicts in the logic of PCIe resource allocation by the central processing unit (Central Processing Unit, abbreviated as CPU), reducing the flexibility of deployment. In addition, when the main server receives an error mechanism (English: Advanced Error Reporting, abbreviated as AER) alarm from the PCIe device on the sub-server, it is also impossible to distinguish the sub-server from which the specific alarm comes.

[0035] In order to achieve effective management of these devices, each GPU sub-server needs to be uniquely identified. The existing technical solutions usually rely on manually set sub-server identification codes (English: Identity, abbreviated as ID) to achieve the positioning and management of GPU sub-servers. However, this method has certain limitations. For example, the manual setting process is cumbersome and error-prone, and automated management cannot be achieved. In addition, the existing technology lacks a comprehensive management method that can combine in-band and out-of-band information, thereby limiting the flexibility and scalability of the system.

[0036] The present application provides a method, apparatus, device and medium for allocating device identifiers based on multiple sub-servers, aiming to solve the above technical problems in the prior art.

[0037] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0038] Figure 1 A schematic diagram of interconnection and communication between a main server and a sub-server provided in an embodiment of the present application. Figure 1As shown, the main server includes a PCIe Switch and other downstream devices thereof. There are 4 PCIe Switches (hereinafter referred to as SW) in each sub-server. The sub-server is connected to the main server through cables. Each cable is connected to the mainboard of the sub-server and connected to a SW through the mainboard. Each SW in the sub-server can correspond to multiple link information and can connect up to 8 link information. SW1 and SW2 in sub-server 1 and SW1 and SW2 in sub-server 2 are all connected to the main server 1. SW3 and SW4 in sub-server 1 and SW3 and SW4 in sub-server 2 are all connected to the main server 2. The cable connects the SW on the main server and the sub-server, and the half-duplex communication bus (English: Inter-Integrated Circuit, abbreviated as I2C) link in the cable also connects the baseboard management controller (English: Baseboard Management Controller, abbreviated as BMC) of the main server with the BMC on the sub-server.

[0039] Figure 2 The present invention is a flowchart of a method for allocating device identifiers based on multiple sub-servers according to an embodiment of the present invention. The method can be performed by a device for allocating device identifiers based on multiple sub-servers. The method is applied to a main server, which is connected to multiple sub-servers. Multiple data transfer media are configured in the sub-servers. The main server communicates with the data transfer media through preset link information. The preset link information corresponds to the data transfer media one by one. Figure 2 As shown, the method comprises the following steps:

[0040] S201. Determine a target identification code according to preset link information and device identification codes of each sub-server; wherein the sub-servers correspond to the device identification codes one by one.

[0041] Exemplarily, there is a sub-server device list in the BMC program of the main server, and the device list mainly contains three items of data, one is the preset device identifier to be assigned to the connected sub-server, the second is the whole machine target identification code information of the sub-server corresponding to the device identifier, and the third is the I2C link information of the cable interface of the main server corresponding to the device identifier. Before the device identifier is assigned, the whole machine target identification code information of the sub-server corresponding to the device identifier is empty. The number of pre-assigned device identifiers is consistent with the number of cable interfaces supported by the main server, and corresponds one-to-one with the silk screen of the cable interface.

[0042] Link information refers to each link information connected to the main server. Each sub-server corresponds to multiple SWs, and each SW in the sub-server can correspond to multiple link information. Up to 8 link information can be connected. The device identification code is the unique identifier of the sub-server. The device identification code of the corresponding sub-server is determined according to the preset link information as the target identification code.

[0043] In this embodiment, the target identification code is determined according to the preset link information and the device identification code of each sub-server, including: according to the preset link information, based on the association relationship between the preset link information and the device identification code, the target identification code is determined from the device identification codes of each sub-server.

[0044] Specifically, the target identification code is determined based on the link information and the device identification code of each sub-server. The sub-server contains preset link information and device identification. The main server can determine the target identification code based on the preset link information and device identification. For example, the link information is Figure 1 The link information between the main server 1 and SW1 in the sub-server 1 is obtained, and the target transfer medium is determined to be SW1, and the target identification code is the device identification code of the sub-server 1.

[0045] The beneficial effect of this setting is to improve the efficiency of data identification and binding, and enhance the flexibility and scalability of the system.

[0046] S202. According to the association relationship between the preset device identification and the link information, determine the device identification corresponding to the preset link information as the target identification; wherein the device identification is identification data to be allocated to the data transfer medium.

[0047] Exemplarily, the device list of the sub-server contains preset device identifiers and link information, and each device identifier corresponds to the link information one by one, that is, the device list pre-stores the association relationship between the device identifier and the link information. After the BMC program of the main server reads the device identification code of the sub-server from the BMC of the sub-server through the I2C in the cable, the preset link information, that is, the device identifier related to the I2C link, can be searched in the device list of the sub-server as the target identifier.

[0048] For example, Figure 1 In the embodiment, the sub-server 1 stores a preset device identification and I2C link information. When the BMC program of the main server 1 reads the device identification code from the BMC of the sub-server 1 through the I2C link information, it first searches for the device identification code related to it in the device list of the sub-server 1 to determine the target identification.

[0049] S203: Allocate the target identifier to the data transfer medium corresponding to the preset link information, and store the target identification code, the preset link information, and the target identifier in association with each other.

[0050] Exemplarily, the target identifier is a device identifier related to the I2C link information. The I2C link information in the cable corresponds one-to-one to the main server and the target identifier. The sub-server contains multiple data transfer media SW. The target identification code can be determined through the preset link information in the sub-server device list. Finally, the determined target identification code, the preset link information and the target identifier are associated with each other and stored in the sub-server device list.

[0051] Figure 3 This is an example diagram of the device list provided in the embodiment of the present application. For example, if the I2C link corresponding to the cable is Bus 2 and its corresponding virtual target identifier is 0, then 0 is bound to the target identification code of the sub-server and recorded in the sub-server device list of the BMC in the main server, and the virtual target identifier 0 is set to the BMC program of the sub-server through the I2C in the cable.

[0052] In this embodiment, the sub-server corresponds to multiple groups of input and output pins; and further includes: if the multiple groups of input and output pins are all low-level signals, then executing to assign the target identifier to the data transfer medium corresponding to the preset link information.

[0053] Specifically, the SW peripheral hardware design on the sub-server provides 3*n groups of input and output pins, where n is the link information, that is: if a SW has n uplink cables, it needs 3*n groups of GPIO pins for connecting with the BMC or cables of the sub-server. The BMC or cable of the sub-server can transmit information to the SW by controlling the state of the input and output pins. The input and output pins are set to a pull-up high level by default. When the main server and the sub-server are not connected, it means that no recognition is made. At this time, it is in the pull-up state, otherwise it is in the pull-down state, and the pull-down state represents a low-level signal. After receiving the target identifier, the BMC program of the sub-server controls the pull-up and pull-down states of the input and output pins in binary form to set the virtual target identifier to the SW of the sub-server. For example, if the virtual target identification code is 0, which is represented as 000 in binary, the input and output pins are all set to the pull-down state.

[0054] The beneficial effect of such a setting is that the device status is distinguished according to the level, which is convenient for improving the processing efficiency of the device.

[0055] In this embodiment, multiple sub-servers are connected to the main server, and multiple data transfer media are configured on the sub-servers. The data transfer media communicate with the main server through the link information preset by the main server. The main server finally determines the target identification code based on the preset link information and the device identification code, and then determines the target identification based on the preset relationship between the device identification and the link information. Finally, the target identification code, the preset link information, and the target identification are associated and stored. The embodiment of the present application realizes data processing through mutual identification allocation of the target identification code and the target identification, improves the efficiency of data identification and binding, and enhances the flexibility and scalability of the system.

[0056] Figure 4 A schematic flow chart of a method for allocating device identifiers based on multiple sub-servers provided in an embodiment of the present disclosure.

[0057] In this embodiment, a data transfer medium has multiple terminal devices under it; assigning a target identifier to the data transfer medium corresponding to the preset link information includes: assigning the target identifier to each terminal device under the data transfer medium corresponding to the preset link information.

[0058] like Figure 4 As shown, the method comprises the following steps:

[0059] S401. Determine a target identification code according to preset link information and device identification codes of each sub-server; wherein the sub-servers correspond to the device identification codes one by one.

[0060] Exemplarily, this step may refer to the above-mentioned step S201 and will not be described in detail.

[0061] S402. According to the association relationship between the preset device identification and the link information, determine the device identification corresponding to the preset link information as the target identification; wherein the device identification is identification data to be allocated to the data transfer medium.

[0062] Exemplarily, this step may refer to the above-mentioned step S202 and will not be described in detail.

[0063] S403: Allocate the target identifier to each terminal device under the data transfer medium corresponding to the preset link information, and store the target serial number, the preset link information, and the target identifier in association.

[0064] For example, a SW can be connected to up to 8 link information, for example, Figure 1In the example, two link information are connected in one SW. The main server 1 reads the whole machine target identification code information of the sub-server 1 through the I2C of the cable corresponding to SW2, and finds the corresponding target identification 1 according to the I2C link information in the sub-server device list. 1 is bound to the target identification code of the sub-server 1, and the target identification is set to 1 through the I2C of the cable corresponding to SW2 to the BMC of the sub-server 1. After receiving it, the BMC program will also set the target identification 1 to SW2 by controlling the 3*2 groups of input and output pins around SW2 to pull down.

[0065] After the cable corresponding to SW1 on sub-server 2 is connected to main server 1, the BMC program of main server 1 will read the whole machine target identification code information of sub-server 2 through the cable, and the whole machine target identification code information of sub-server 2 does not currently exist in the sub-server device list. Therefore, main server 1 will bind the target identifier 2 corresponding to the I2C link of the cable at this time with the whole machine target identification code information of sub-server 2, and set 2 to the BMC of sub-server 2 through the I2C in the cable, and set the target identifier 2 to SW1 according to the binary representation 010 through the input and output of SW1 periphery.

[0066] In this embodiment, the target identifier is assigned to the data transfer medium corresponding to the preset link information, including: performing format conversion processing on the target identifier to obtain a converted target identifier; and assigning the converted target identifier to each terminal device under the data transfer medium corresponding to the preset link information.

[0067] Exemplarily, after receiving the target identifier, the BMC program of the sub-server controls the pull-up and pull-down states of the input and output in binary form and sets the target identifier to the SW of the sub-server. For example, if the virtual target identifier is 0, which is represented by 000 in binary, all the input and output pins are set to the pull-down state.

[0068] The beneficial effect of such a setting is that it facilitates the unification of formats, improves the efficiency and accuracy of subsequent data processing, and avoids data errors due to inconsistent formats.

[0069] In this embodiment, an initial string of a data transfer medium corresponding to the preset link information is generated according to a preset string generation rule; wherein the initial string represents the device type of the data transfer medium corresponding to the preset link information and its subordinate terminal devices; the converted target identifier is added to the preset character position in the initial string to obtain a target string; and the target string is assigned to each terminal device subordinate to the data transfer medium corresponding to the preset link information.

[0070] Exemplarily, in the firmware program of SW, bits are defined for the unique identifier (English: Physical Slot Number) assigned by the firmware. For example, the upper three bits of the unique identifier are defined as the target identifier, and the other ten bits are defined as other meanings. When SW is powered on, it will first identify the input and output pins, and save the target identifier in the upper three bits of the Physical Slot Number according to the mapping relationship between the input and output pins. Then, the corresponding Physical Slot Number will be set to each downstream port under SW (the value on each port is different).

[0071] In this embodiment, it also includes: receiving alarm information; wherein the alarm information represents an abnormal situation occurring in a terminal device under the data transfer medium; obtaining the target character string from the alarm information; extracting a target identifier from a preset character position of the target character string; and determining, based on the target identifier, the sub-server to which the data transfer medium corresponding to the alarm information belongs.

[0072] For example, when an alarm is generated, the basic input and output system (BIOS) needs to report the Physical Slot Number while reporting the error type. The BMC can parse the target identifier of the device and other information based on the Physical Slot Number; the BMC obtains the target identifier of the alarm-related component, and searches the sub-server device list to obtain the corresponding sub-server's entire machine target identification code information, thereby parsing the alarm information and finally reporting it to the operation and maintenance platform interface. The operation and maintenance personnel can obtain the target identifier through the alarm information, where the alarm information includes the target identification code and the corresponding cable silk screen position and other information, so as to accurately confirm the sub-server to which the alarm-related component belongs.

[0073] The beneficial effect of such a setting is that the alarm component can be accurately located, thereby improving the efficiency and accuracy of handling abnormal situations.

[0074] In this embodiment, the method further includes: determining a light emitting diode of a sub-server to which the data transfer medium corresponding to the alarm information belongs, and controlling the light emitting diode to light up.

[0075] Exemplarily, from the perspective of the main server, the alarm component is connected to a light-emitting diode. When an abnormality occurs in the device, the alarm component can be identified by lighting up the light-emitting diode, thereby assisting in physically locating the specific GPU sub-server.

[0076] The beneficial effect of such a setting is that it is convenient for staff to check the specific components that have failed, so as to quickly deal with the abnormal situation.

[0077] In this embodiment, multiple sub-servers are connected to the main server, and multiple data transfer media are configured on the sub-servers. The data transfer media communicate with the main server through the link information preset by the main server. The main server finally determines the target identification code based on the preset link information and the device identification code, and then determines the target identification based on the preset relationship between the device identification and the link information. Finally, the target identification code, the preset link information, and the target identification are associated and stored. The embodiment of the present application realizes data processing through mutual identification allocation of the target identification code and the target identification, improves the efficiency of data identification and binding, and enhances the flexibility and scalability of the system.

[0078] Figure 5 This is a structural block diagram of a device identification allocation apparatus based on multiple sub-servers provided in an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 5 The device identification allocation apparatus 500 based on multiple sub-servers includes: an identification code determination module 501, an identification determination module 502 and an identification allocation module 503. The apparatus is applied to a main server, the main server is connected to multiple sub-servers, and multiple data transfer media are configured in the sub-servers. The main server communicates with the data transfer media through preset link information, and the preset link information corresponds to the data transfer media one by one.

[0079] The identification code determination module 501 is used to determine the target identification code according to the preset link information and the device identification code of each sub-server; wherein the sub-servers correspond to the device identification codes one by one;

[0080] The identification determination module 502 is used to determine the device identification corresponding to the preset link information as the target identification according to the association relationship between the preset device identification and the link information; wherein the device identification is identification data to be allocated to the data transfer medium;

[0081] The identifier allocation module 503 is used to allocate the target identifier to the data transfer medium corresponding to the preset link information, and store the target identification code, the preset link information, and the target identifier in association.

[0082] In one example, the identification code determination module 501 includes:

[0083] A first determining unit, configured to determine a target transfer medium from a plurality of data transfer mediums connected to the main server according to the preset link information;

[0084] The second determining unit is used to determine the device identification code of the sub-server to which the target transfer medium belongs as the target identification code.

[0085] In one example, a data transfer medium has multiple terminal devices; the identification allocation module 503 is specifically used to:

[0086] The target identifier is allocated to each terminal device under the data transfer medium corresponding to the preset link information.

[0087] In one example, the identification allocation module 503 includes:

[0088] A format conversion unit, used for performing format conversion processing on the target identifier to obtain a converted target identifier;

[0089] The allocation unit is used to allocate the converted target identifier to each terminal device under the data transfer medium corresponding to the preset link information.

[0090] In one example, the allocation unit is specifically used for:

[0091] According to a preset string generation rule, an initial string of the data transfer medium corresponding to the preset link information is generated; wherein the initial string represents the device type of the data transfer medium corresponding to the preset link information and the terminal device under it;

[0092] Adding the converted target identifier to a preset character position in the initial character string to obtain a target character string;

[0093] The target character string is distributed to each terminal device under the data transfer medium corresponding to the preset link information.

[0094] In one example, it also includes:

[0095] An information receiving module, used to receive alarm information; wherein the alarm information represents an abnormal situation of a terminal device under the data transfer medium;

[0096] A character string acquisition module, used to acquire the target character string from the alarm information;

[0097] An identifier extraction module, used to extract the target identifier from a preset character position of the target character string;

[0098] The server determination module is used to determine the sub-server to which the data transfer medium corresponding to the alarm information belongs according to the target identifier.

[0099] In one example, it also includes:

[0100] The lighting module is used to determine the light emitting diode of the sub-server to which the data transfer medium corresponding to the alarm information belongs, and control the light emitting diode to light up.

[0101] In one example, the sub-server corresponds to multiple groups of input and output pins; and also includes:

[0102] The level judgment module is used to execute the allocation of the target identifier to the data transfer medium corresponding to the preset link information if the multiple groups of input and output pins are all low-level signals.

[0103] Figure 6 This is a structural block diagram of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device includes: a memory 61 and a processor 62; the memory 61 is a memory for storing instructions executable by the processor 62.

[0104] The processor 62 is configured to execute the method provided in the above embodiment.

[0105] The electronic device further includes a receiver 63 and a transmitter 64. The receiver 63 is used to receive instructions and data sent by other devices, and the transmitter 64 is used to send instructions and data to external devices.

[0106] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment, which device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0107] Device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output (I / O) interface 712 , a sensor component 714 , and a communication component 716 .

[0108] The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.

[0109] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0110] The power supply component 706 provides power to the various components of the device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 700.

[0111] The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0112] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the device 700 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0113] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0114] The sensor assembly 714 includes one or more sensors for providing various aspects of the status assessment of the device 700. For example, the sensor assembly 714 can detect the open / closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, and the sensor assembly 714 can also detect the position change of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0115] The communication component 716 is configured to facilitate wired or wireless communication between the device 700 and other devices. The device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0116] In an exemplary embodiment, the apparatus 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above methods.

[0117] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, and the instructions can be executed by the processor 720 of the device 700 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0118] A non-temporary computer-readable storage medium, when instructions in the storage medium are executed by a processor of a terminal device, enables the terminal device to execute the device identification allocation method based on multiple sub-servers of the terminal device.

[0119] The present application also discloses a computer program product, including a computer program, which implements the method described in this embodiment when executed by a processor.

[0120] Various embodiments of the systems and techniques described above in the present application can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs, which can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor, which can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0121] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or electronic device.

[0122] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0123] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0124] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data electronic device), or a computing system that includes middleware components (e.g., an application electronic device), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0125] The computer system may include a client and an electronic device. The client and the electronic device are generally far away from each other and usually interact through a communication network. The relationship between the client and the electronic device is generated by computer programs running on corresponding computers and having a client-electronic device relationship with each other. The electronic device may be a cloud electronic device, also known as a cloud computing electronic device or a cloud host, which is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The electronic device may also be an electronic device of a distributed system, or an electronic device combined with a blockchain. It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved, and this document is not limited here.

[0126] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0127] It should be understood that the present application is not limited to the precise structures that have been 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 present application is limited only by the appended claims.

Claims

1. A device identification allocation method based on multiple sub-servers, characterized in that: The method is applied to a main server, the main server is connected to a plurality of sub-servers, the sub-servers are configured with a plurality of data transfer media, the main server communicates with the data transfer media through preset link information, the preset link information corresponds to the data transfer media one by one; the method comprises: Determine the target identification code according to the preset link information and the device identification code of each sub-server; wherein the sub-servers correspond to the device identification codes one by one; According to the association relationship between the preset device identification and the link information, the device identification corresponding to the preset link information is determined as the target identification; wherein the device identification is identification data to be allocated to the data transfer medium; The target identifier is allocated to a data transfer medium corresponding to the preset link information, and the target identification code, the preset link information, and the target identifier are stored in association with each other.

2. The method according to claim 1, characterized in that Determining a target identification code according to the preset link information and the device identification code of each sub-server includes: According to the preset link information, based on the association between the preset link information and the device identification code, a target identification code is determined from the device identification codes of each sub-server.

3. The method according to claim 1, characterized in that A data transfer medium has multiple terminal devices under it; Allocating the target identifier to the data transfer medium corresponding to the preset link information includes: The target identifier is allocated to each terminal device under the data transfer medium corresponding to the preset link information.

4. The method according to claim 3, characterized in that Allocating the target identifier to the data transfer medium corresponding to the preset link information includes: Performing format conversion processing on the target identifier to obtain a converted target identifier; The converted target identifier is allocated to each terminal device under the data transfer medium corresponding to the preset link information.

5. The method according to claim 4, characterized in that Allocating the converted target identifier to each terminal device under the data transfer medium corresponding to the preset link information includes: According to a preset string generation rule, an initial string of the data transfer medium corresponding to the preset link information is generated; wherein the initial string represents the device type of the data transfer medium corresponding to the preset link information and the terminal device under it; Adding the converted target identifier to a preset character position in the initial character string to obtain a target character string; The target character string is distributed to each terminal device under the data transfer medium corresponding to the preset link information.

6. The method according to claim 5, characterized in that Also includes: Receiving alarm information; wherein the alarm information represents an abnormal situation of a terminal device under the data transfer medium; Acquire the target character string from the warning information; Extracting the target identifier from a preset character position of the target character string; According to the target identifier, the sub-server to which the data transfer medium corresponding to the alarm information belongs is determined.

7. The method according to claim 6, characterized in that Also includes: The light emitting diode of the sub-server to which the data transfer medium corresponding to the alarm information belongs is determined, and the light emitting diode is controlled to light up.

8. The method according to any one of claims 1 to 7, characterized in that The sub-server corresponds to a plurality of input and output pins; and further includes: If the plurality of groups of input and output pins are all low level signals, the step of allocating the target identifier to the data transfer medium corresponding to the preset link information is performed.

9. A device identification allocation device based on multiple sub-servers, characterized in that: The device is applied to a main server, the main server is connected to a plurality of sub-servers, the sub-servers are configured with a plurality of data transfer media, the main server communicates with the data transfer media through preset link information, the preset link information corresponds to the data transfer media one by one; the device comprises: An identification code determination module, used to determine a target identification code according to the preset link information and the device identification code of each sub-server; wherein the sub-servers correspond to the device identification codes one by one; An identification determination module, used to determine, according to the association relationship between the preset device identification and the link information, the device identification corresponding to the preset link information as the target identification; wherein the device identification is identification data to be allocated to the data transfer medium; The identification allocation module is used to allocate the target identification to the data transfer medium corresponding to the preset link information, and store the target identification code, the preset link information, and the target identification in association.

10. An electronic device, characterized in that: include: Memory, processor; Memory; a memory for storing instructions executable by the processor; The processor is configured to: execute the method according to any one of claims 1 to 8 according to the executable instructions.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.

12. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when being executed by a processor.