Information burning method, system and equipment and storage medium
By directly writing the MAC address with the burning processor when the server is not powered on, the problem of long-term burning of the server network card is solved, and the production efficiency and equipment utilization rate are improved.
Patent Information
- Application Number
- CN202510619403.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2025-08-08
AI Technical Summary
In the prior art, the server network card MAC address burning process takes a long time, resulting in low server production efficiency, especially when batch burning, the startup operation is frequent, which increases the time cost.
The pre-configured burn-in processor directly writes the burn-in information into the memory without powering on the server, and uses the communication interface between the upper computer and the burn-in device to burn information, avoiding repeated booting.
Reduces the boot time in functional control tests, improves server production efficiency, and realizes efficient burning of batch MAC addresses.
Smart Images

Figure CN120447916A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of information burning, and in particular to an information burning method, system, device and storage medium. Background Art
[0002] With the rapid growth in server usage, server board production efficiency has become a key factor limiting overall production capacity. During the Functional Control Test (FCT) phase, the network interface card (NIC), a crucial component of the server, requires a unique Media Access Control Address (MAC) to be burned into the card. Taking the Intel I210 chip as an example, the relevant burning method requires connecting the NIC to a test environment, running the eeupdate64 software through the operating system to perform the burning, and then going through a complete power-on, power-off, and power-on cycle to verify that the NIC has properly updated its MAC address and completed the burning process.
[0003] However, because a single server boot takes a long time, typically five to ten minutes, multiple boot operations significantly increase the time required for the entire FCT process, reducing factory production efficiency. This is especially true when batch programming multiple MAC addresses, as repeated boot processes further increase time costs. Summary of the Invention
[0004] The present application provides an information burning method, system, device and storage medium to at least solve the problem of MAC address burning in the related art.
[0005] This application provides an information burning method, including:
[0006] Receiving a file to be burned sent by a host computer, wherein the file to be burned includes a first identifier for identifying a burning device and at least one piece of information to be burned;
[0007] Determining a target burning processor from at least one pre-configured burning processor, wherein an identifier of the target burning processor is associated with the first identifier;
[0008] When the burning device is not powered on, at least one piece of information to be burned is written into a memory of the burning device through a connection component configured by a target burning processor.
[0009] The present application also provides an information burning system, which includes a host computer and a burner, wherein the host computer and the burner are connected via a communication interface, wherein:
[0010] The host computer is used to generate at least one file to be burned according to at least one information to be burned obtained by scanning at least one burning device, and send the at least one file to be burned to the burner;
[0011] The burner is used to receive a file to be burned, wherein the file to be burned includes a first identifier for identifying the burning device and at least one information to be burned; determine a target burning processor from at least one pre-configured burning processor, wherein the identifier of the target burning processor and the first identifier are associated; and write the at least one information to be burned into a memory of the burning device via a connection component configured for the target burning processor when the burning device is not powered on.
[0012] The present application also provides an information burning device, comprising:
[0013] A receiving unit, configured to receive a file to be burned sent by a host computer, wherein the file to be burned includes a first identifier for identifying a burning device and at least one piece of information to be burned;
[0014] a determining unit, configured to determine a target burning processor from at least one pre-configured burning processor, wherein an identifier of the target burning processor is associated with the first identifier;
[0015] The burning unit is used for writing at least one information to be burned into the memory of the burning device through the connection component configured by the target burning processor when the burning device is not powered on.
[0016] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned information burning methods when executing the computer program.
[0017] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned information burning methods are implemented.
[0018] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned information burning methods when executed by a processor.
[0019] Through the present application, when the burning device is not turned on, at least one information to be burned is directly burned into the memory of the burning device through at least one pre-configured burning processor, thereby reducing the startup process in the functional control test and reducing the time cost of the test. Therefore, the technical problem of long time consumption and low efficiency of MAC address burning can be solved, and the technical effect of batch MAC address burning can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0021] Figure 1 A schematic diagram of the structure of an information burning system provided in an embodiment of the present application;
[0022] Figure 2 A flowchart of an information burning method provided in an embodiment of the present application;
[0023] Figure 3 A schematic diagram of the structure of a memory provided in an embodiment of the present application;
[0024] Figure 4 A flowchart of the host computer initialization provided in an embodiment of the present application;
[0025] Figure 5 A flowchart of a host computer programming provided in an embodiment of the present application;
[0026] Figure 6 This is a schematic diagram of the structure of an information burning device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0028] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.
[0029] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.
[0030] In conjunction with the specific application environment architecture or specific hardware architecture on which the execution of the information burning method depends, the specific application environment architecture or the specific hardware architecture is described herein.
[0031] Before describing this application in detail, it is first necessary to explain the professional terms involved.
[0032] Functional Control Test (FCT) performs functional tests on electronic devices or circuit boards. Based on product characteristics, operating descriptions, and design plans, a simulated operating environment is provided for the test target board. Functional testing is used to verify whether the printed circuit board assembly (PCBA) process and component quality meet shipment requirements. This generally refers specifically to PCBA functional testing.
[0033] MAC address, Ethernet address or physical address, is used to identify the location of network devices.
[0034] I210 chip, a network chip released by Intel.
[0035] eeupdate64 is a software tool provided by Intel to update the MAC address of Intel's network chips.
[0036] Flash memory / non-volatile memory is a form of electronically erasable programmable read-only memory that allows it to be erased or written multiple times during operation.
[0037] A datasheet is a document that contains detailed information about a specific product or device. It is usually provided by the product manufacturer or supplier and contains a detailed description of the product's performance, specifications, interfaces, functions, etc.
[0038] Firmware is a program that writes information to Flash.
[0039] QT is a cross-platform C++ graphical user interface application development framework developed by The Qt Company.
[0040] The embodiments of the present application provide an information burning method, and the method is described in detail in conjunction with the execution flow of the information burning method.
[0041] Figure 1 This is a structural diagram of an information burning system provided in an embodiment of the present application. The information burning system (hereinafter referred to as the burning system) includes a host computer and a burner, and the host computer and the burner are connected through a communication interface.
[0042] As you can understand, the burning system consists of a host computer and a burner. The host computer can be understood as software running on a computer device or a computer device equipped with the host computer, and the burner can be understood as a hardware device. The host computer and the burner are connected via a USB interface, specifically a USB cable. In the burning system, the host computer is the computer or control terminal responsible for controlling and managing the burning process, while the burner is the hardware device that actually performs the burning operation, usually containing multiple burning chips.
[0043] Optionally, it is configured to generate at least one file to be burned according to at least one piece of information to be burned obtained by scanning at least one burning device, and send the at least one file to be burned to the burner.
[0044] It is understandable that the scanning device (barcode scanner) obtains at least one MAC address from at least one plate scanned by the scanning device (barcode scanner). The host computer receives at least one MAC address and writes the MAC address into different burning files according to the plate corresponding to each MAC address. Finally, it sends it to the burner through the USB interface. Among them, each burning file corresponds to a plate. The plate refers to the burning device, such as a network device such as a network card. Manufacturers usually assign and burn a MAC address to each network device during the production process. Each network card has a globally unique MAC address, which is used to identify the device in network communications. By scanning the MAC address contained in the network card (which may be in the form of a QR code or barcode), the status, location and other information of the specific network card can be quickly and accurately recorded and tracked.
[0045] Optionally, the burner is configured to receive a file to be burned, wherein the file to be burned includes a first identifier for identifying the burning device and at least one information to be burned; determine a target burning processor from at least one pre-configured burning processor, wherein the identifier of the target burning processor is associated with the first identifier; and write the at least one information to be burned into a memory of the burning device via a connection component configured for the target burning processor when the burning device is not powered on.
[0046] As can be understood, the burner receives at least one file to be burned from the host computer, reads the file's contents, and ultimately burns it into the corresponding memory, which can be the Flash memory corresponding to the burning device. MAC address burning refers to programming or writing a unique MAC address into the non-volatile memory of the network interface controller (such as a network card), a key step in ensuring that each network device has a unique identifier on the network.
[0047] The burner includes a USB interface, a USB HUB module, at least one indicator light, at least one burning processor and at least one connecting component. The burner is connected to the host computer via the USB interface. The USB HUB module can be understood as a USB signal management module. The USB HUB module divides multiple USB signals, each of which is connected to a burning processor. The burning processor can be understood as a burning chip. Since the USB protocol divides access devices into USB hosts and USB devices, the host generally appears as a USB host. Based on this, the USB HUB module can be understood as a USB host. The burning chip is a USB bus adapter chip that can directly access the USB bus as a USB device. Specifically, the burning chip refers to an integrated circuit chip into which a program or configuration data is written. Each burning chip is configured with a connecting component, which can be a probe. The burning chip is connected to the Flash of the network card via the probe. The Flash generally uses a serial protocol for reading and writing. The burning chip receives the burning file via the USB bus and burns the MAC address in the burning file into the Flash via the probe when the network card is not turned on.
[0048] Based on the above embodiments, Figure 2 A flow chart of an information burning method provided in an embodiment of the present application is applied to the above-mentioned burning system, specifically including the following steps: Figure 2 The following steps are shown:
[0049] S201, receiving the file to be burned sent by the host computer.
[0050] The file to be burned includes a first identifier for identifying a burning device and at least one piece of information to be burned.
[0051] It is understood that the burning device can be a network card, such as an I210 network card. The following embodiment is described in detail using the network card as an example. When the network card is not powered on, a file to be burned issued by a host computer is received, and at least one information to be burned in the file to be burned is burned into the flash memory of the network card. The information to be burned can be a MAC address. The file to be burned includes a target identifier and at least one MAC address. The target identifier represents the network card corresponding to the MAC address, the flash memory of the network card, and / or the burning chip connected to the flash memory.
[0052] Optionally, before receiving the file to be burned sent by the host computer, the method further includes:
[0053] Scanning at least one piece of information to be burned on at least one burning device; classifying the at least one piece of information to be burned to determine the information to be burned corresponding to the at least one burning device; generating at least one file to be burned according to the identifier of the at least one burning device and the information to be burned corresponding to each burning device, so as to complete the information burning of the at least one burning device in parallel through at least one burning processor.
[0054] It is understandable that the MAC label on at least one board is scanned by a scanning device. Each board corresponds to a device, which means that a device may burn multiple MAC addresses. All scanned MAC addresses are classified, the MAC address corresponding to each network card is determined, and a file to be burned for each network card is generated based on the corresponding MAC address. For example, the MAC address is 001A2B3C4D5E. Subsequently, the host computer sends the generated at least one file to be burned to the burning chip (burning processor) corresponding to the network card, so that the MAC address is burned in parallel through at least one burning chip, that is, batch network card MAC address burning is achieved. For example, the programmer is configured with 10 programming chips. Each programming chip is connected to a Flash memory through a probe. Ten boards are scanned to obtain 10 MAC addresses. Among them, three MAC addresses are to be programmed into programming chip A, two MAC addresses are to be programmed into programming chip B, and one MAC address is to be programmed into each of the other programming chips C to H. In this case, the programming file is updated or generated based on the MAC address corresponding to each programming chip. The MAC addresses of programming chips A to H are each programmed into the Flash memory, thus achieving batch programming of multiple MAC addresses.
[0055] S202: Determine a target burning processor from at least one pre-configured burning processor.
[0056] There is an association between the identifier of the target burning processor and the first identifier.
[0057] It can be understood that, based on the above S201, after the burner receives the file to be burned, it reads the identifier of at least one pre-configured burning processor and matches / compares it with the first identifier, thereby determining the target burning processor for burning the network card. This identifier matching mechanism ensures that each burning processor only burns its corresponding MAC address to avoid burning errors.
[0058] Optionally, determining a target burning processor from at least one pre-configured burning processor may be specifically implemented by the following steps:
[0059] At least one second identifier preset by at least one burning processor is obtained; based on a first association relationship between the at least one second identifier and the first identifier, a target burning processor is determined in the at least one burning processor; wherein the first association relationship represents a connection relationship between the burning processor and the burning device.
[0060] It is understandable that the second identifier is used to uniquely identify the burning chip, that is, the specific burning chip can be determined according to the second identifier, and then the memory to which the burning chip is connected can be determined. The specific file to be burned can be determined according to the first identifier, and then the MAC address to be burned and the specific network card can be determined. The first association relationship usually represents the logical or physical connection relationship between the burning chip and the burning network card, and is usually defined by a mapping table, a database or a configuration file. The target burning processor refers to the burning chip whose identifier matches the first identifier and is ready for the burning operation. The network card refers to the network interface card that needs to be burned with firmware or configuration information, usually a hardware device with a MAC address. By presetting the identification information and establishing the association relationship, the precise matching between the burning chip and the network card is achieved, thereby ensuring the efficiency, accuracy and traceability of the burning process.
[0061] Optionally, before obtaining at least one second identifier preset by at least one burning processor, the method further includes:
[0062] A drive connection is established between a host computer and a burner, wherein the burner includes at least one burning processor and a connection component; an initial burning file is sent to a target virtual device in at least one virtual device included in the host computer, wherein the at least one virtual device is used to drive the at least one burning processor so that the at least one burning processor receives the initial burning file; indication information generated by the burner when receiving the initial burning file is obtained, wherein the indication information represents the position of the target burning processor driven by the target virtual device in the burner; a target identifier of the target burning processor is set, and a second association relationship is established between the target identifier and the target virtual device based on the position of the target virtual device in the host computer and the position of the target burning processor in the burner, until the association relationship between each burning processor and a different virtual device is established; wherein the second association relationship represents the connection relationship between the burning processor and the virtual device.
[0063] It is understandable that a dedicated driver for the burning chip is installed on the host computer. After the burner is inserted into the host computer, a driver connection can be established between the host computer and the burner. Through the driver connection, the host computer can identify and access each burning chip in the burner, providing a basis for subsequent burning operations. The device manager in the host computer includes multiple virtual devices. After the burner is inserted into the host computer, each virtual device corresponds to a specific burning chip. In other words, the device manager can determine the same number of virtual devices as the USB signal separated by the USB HUB module. For example, the host computer includes an initial interface developed based on QT. The initial interface is laid out with 10 container controls, named "Network Card 1" to "Network Card 10". Each container control represents a virtual device and is connected to a burning chip.
[0064] Understandably, after the host computer runs, at first obtain the quantity of virtual devices in the device manager, because the virtual device order that burner inserts the host computer after in device manager, produces is random, so at this moment, virtual device can't correspond one to one with the burning chip on the burner, in order to realize accurate burning, need to read the identification (ID) of each burning processor in advance, therefore, the burning chip ID needs to be pre-set.Concrete, can send initial burning file to one of them virtual device (target virtual device), namely once only write a virtual device, wherein, initial burning file refers to the data that need to be written in the burning chip, for example firmware, program code or configuration information etc., and initial burning file is mainly used in the identification setting of burning chip.Target virtual device refers to the virtual device that receives initial burning file.Observe the indicator light in the burner subsequently, obtain indication information, wherein, after burner receives the initial burning file, can generate an indication information, be used to represent that this burning file has successfully arrived a certain burning chip in the burner, in addition, indication information has also represented the physics or logical position of target burning processor in burner, is convenient to subsequent identification and location. For example, the indicator light at the burning chip A place lights, illustrating that burning chip A has received initial burning file, and burning chip A is exactly the target burning processor, and the target identification of target burning processor is now set, for example, target identification can the title of network card or the title of memory etc., and target identification is written in the reserved register of burning chip A.Simultaneously, set up the second associated relationship between target identification and the target virtual device, guarantee that virtual device can correctly drive and control corresponding burning chip, wherein, the second associated relationship represents the mapping relations between target identification and the target virtual device.Through the above-mentioned method, not only ensure that each burning processor has unique identification, but also can realize the accurate matching between virtual device and the burning chip.After completing the above steps, can continue to process other burning chips by host computer, distribute target identification for each burning processor, and set up the associated relationship between itself and the corresponding virtual device.
[0065] Optionally, set the target ID of the target processor to be burned. This can be achieved by following the steps below:
[0066] Display the initial interface of the host computer, wherein the initial interface includes an identification input area and an identification update control corresponding to the target virtual device; obtain the target information entered in the identification input area; respond to the triggering operation of the identification update control, set the target identification of the target burning processor according to the target information.
[0067] It is understandable that the interface of the host computer also includes an initialization control, which displays an initial interface in response to the triggering operation of the initialization control. The initial interface includes an identification input area and an identification update control for the target virtual device. The identification input area is used to input the ID of the target burning device, that is, to input an ID text box. The identification update control can be understood as a burning button or a control button, that is, an update ID button. The initial interface also includes a light indicator button. Triggering the light indicator button can send an initial burning file to a certain virtual device. For example, clicking the light indicator button sends the initial burning file to the first virtual device in the device manager, observing the indicator lights in the burner, and determining the target burning processor and its position in the burner based on the indicator lights. For example, if the third indicator light in the burner is on, the burning chip corresponding to the third indicator light is determined as the target burning processor. Subsequently, the ID is set according to the position of the target burning processor, and the ID is entered into the identification input area. The target information entered in the identification input area is obtained, and the target information can be regarded as the input ID. Subsequently, clicking the identification update control uses the ID in the target information as the target identification of the target burning processor to complete the update of a burning chip ID. Then, execute the above steps in sequence until all the chip IDs on the programmer are updated.
[0068] The memory includes a first storage area and a second storage area.
[0069] For example, see Figure 3 , Figure 3 A schematic diagram of the structure of a memory provided in an embodiment of the present application, taking the I210 network card as an example, its firmware is divided into two parts, which are stored in two segments of Flash space, and the address ranges of the two segments are 0x000000-0x000FFF and 0x001000-0x001FFF, respectively. Figure 3Sector 0 and Sector 1 are shown. Sector 0 and Sector 1 serve as backups for each other. The content at offset 0x25 determines whether the current sector is valid: 0x67 for valid and 0x27 for invalid. The typical programming method involves using the Intel-provided programming tool. After powering on the network card, run the command ". / eeupdate64e / nic=1 / mac=9CC2C47714F9" to program the network card. "eeupdate64e" is the programming tool, nic=1 is the designated network port, and "9CC2C47714F9" is the MAC address. After programming, the network card must be powered off and restarted to verify the MAC address. The checksum is a value generated by an algorithm to verify data integrity.
[0070] The specific burning process is as follows:
[0071] 1) Use eeupdate64e to burn the original file into the Flash that stores the I210 network card firmware and initialize the firmware;
[0072] 2) After the network card is powered on, use eeupdate64e to burn the MAC address and then power off to read the Flash content to a file;
[0073] 3) After the network card is powered on, shut down the computer and continue reading the Flash contents into the file until all MAC addresses are burned.
[0074] It is understandable that when the burning starts, the file content in Sector0 is copied to Sector1, the MAC address is written to the starting position of Sector1, and the check bit is updated. After the network card is powered off and restarted, the file content in Sector1 is updated to Sector0, and the MAC address is updated to the position 0x000236-0x00023A, and the content of Sector1 is set to invalid, that is, the 67 at the position 0x001025 is changed to 27. After the burning is completed, under normal circumstances, according to the datasheet of the network card, in order to ensure the correctness of the Flash content, the checksum of the firmware content 0x00 to 0x3F (that is, the byte address is 0x00 to 0x7F) is 0xBABA. After the calculation of normal burning, the checksum of the Flash content is 0xBABA, which means that the MAC address burning verification has passed. The specific burning process is not described in detail.
[0075] Optionally, generating at least one file to be burned according to the identifier of at least one burning device and the to-be-burned information corresponding to each burning device can be specifically achieved through the following steps:
[0076] Writing the to-be-burned information corresponding to the burning device into the starting position of the second storage area and updating the check bit of the second storage area, wherein the file content of the second storage area is the text content of the first storage area copied after the host computer is started; verifying the burning result based on the file content of the second storage area and the file content of the first storage area; and generating at least one to-be-burned file according to the identifier of at least one burning device and the text content of the second storage area if the burning result passes the verification.
[0077] Understandably, before the target burning processor that determines that burning device is corresponding, or with burning processor with virtual device binding before, just the file content of the first storage area is copied to the second storage area.In the process of carrying out MAC address burning based on target burning processor, the MAC address in the burning file is written to the second storage area, follow-up is interactive by the first storage area and the second storage area, completes checksum and calculates, generates and treats burning file, the calculation process of concrete generation process and checksum is referring to above-described embodiment, does not repeat them at this.Concrete, host computer reads the MAC address scanned, it is updated to the 0x000236-0x00023A position of Sector0 and Sector1 starting position and Sector0, calculate checksum and be updated in Sector0 and Sector1, the enable bit in Sector1 is changed to 27 from 67, after revising, the burning file is sent to burner by USB interface.
[0078] Optionally, after the host computer is started, the method further includes:
[0079] The original file corresponding to the first storage area in the initial burning file is copied to the second storage area.
[0080] As you can understand, the initial burning file is stored in a designated location within the host computer hardware. When the host computer program starts, it opens the initial burning file and reads its contents. Subsequently, the file contents in the first storage area (Sector 0) are copied to the second storage area (Sector 1). Subsequently, the ID of each burning processor is read in turn and bound to a virtual device in the device manager on the host computer.
[0081] S203 : When the burning device is not powered on, write at least one piece of information to be burned into a memory of the burning device through a connection component configured by the target burning processor.
[0082] Understandably, on the basis of above-mentioned S202, in the burning process, need to be connected by connecting component (probe) target burning processor and burning device (as network card, embedded device), be convenient to the follow-up MAC address write in the non-volatile memory (as Flash, EEPROM) of burning device.Wherein, connecting component is used to set up communication channel, guarantees that MAC address can be correctly transmitted and write in the memory of burning device.After burning is completed, by reading memory or using device driver verification MAC address correctly write, verification process may include checksum calculation, MAC address reading and comparison, and other possible verification modes are not limited.
[0083] Optionally, after burning at least one MAC address into a memory of the burning device through the connection component configured by the target burning processor, the method further includes:
[0084] Display the burning interface, wherein the burning interface includes a first display area and a second display area, the first display area is used to display the current burning information, and the second display area is used to display the current burning progress of all information.
[0085] It is understandable that the host computer will also display the burning interface during the burning process, that is, switching from the initial interface to the burning interface, wherein the burning interface includes a first display area and a second display area. The first display area can be in the form of a text box for displaying the currently burned MAC address, that is, displaying the MAC address, and the second display area for displaying the current burning progress of all MAC addresses. For example, if two MAC addresses need to be burned, after the burning of one MAC address is completed, the burning progress is 50%. The above steps are performed sequentially for all MAC addresses, and the burning progress is obtained by polling each burning chip register through the USB interface. The corresponding progress bar is updated according to the burning progress to facilitate the determination of the burning status.
[0086] The information burning method provided by this application is designed to design a burner that can freely set the number of burning chips, which can batch burn multiple network cards and realize the parallel burning of multiple network card MAC addresses, significantly improving the efficiency and production level in the network card production process, and can flexibly expand the number of burning chips. Compared with the process of powering on the network card, burning, and restarting the power supply for verification in the related art, the present application does not need to restart the network card before burning, and can burn directly, effectively reducing the number of startup times, without the need to repeat the startup operation, further shortening the burning time and the waiting time during the startup process, making the overall operation smoother and significantly improving the equipment utilization rate. At the same time, the present application also has good scalability and compatibility, and can be applied to different models of network equipment, providing efficient and stable technical support for large-scale production.
[0087] Based on the above embodiments, Figure 4The present invention provides a flowchart for initializing a host computer, which specifically includes the following steps:
[0088] 1) When the host computer is started, the network card is not powered on and started, and the burner is connected to the host computer, the initial interface of the host computer is displayed; 2) Reading devices from the device manager: In response to the triggering operation of the initialization control in the initial interface, the device information of at least one virtual device is read from the device manager of the host computer; 3) Sending the initial burning file to the target virtual device, so that the initial burning file is sent to the burning chip in the burner through the target virtual device; 4) Lighting up the indicator light: Lighting up the indicator light of the target burning processor that has received the initial burning file; 5) Inputting the ID: Inputting the ID of the target burner through the identification input area of the initial interface; 6) Burning the ID: Writing the ID into the reserved register of the target burner to complete the ID burning of the target burner; 7) Determining whether the ID burning of the last burning chip among all the burning chips included in the burner is completed; 8) If the ID burning of the last burning chip is completed, the initialization is terminated; 9) If the ID burning of the last burning chip is not completed, continuing to send the initial burning file to the next virtual device, and executing the above 4) to 7).
[0089] Based on the above embodiments, Figure 5 The present invention provides a flowchart of a host computer programming, which specifically includes the following steps:
[0090] 1) Read the initial file: When the host computer is started, the network card is not powered on, and the burner is connected to the host computer, read the initial burning file and copy the file content corresponding to the first storage area in the initial burning file to the second storage area; 2) Read the burning chip ID: read the ID of at least one burning processor in the burner; 3) Scan MAC: scan at least one MAC address of at least one card to obtain multiple MAC addresses; 4) Read MAC: determine the burning device corresponding to each MAC address, and read all MAC addresses to be burned for each network card; 5) Update file: update the file to be burned according to all MAC addresses; 6) Send file: send the updated file to be burned to the burning chip corresponding to the network card, so that all MAC addresses are written into the memory corresponding to the network card through the burning chip; 7) Determine whether the currently written MAC address is the last MAC address among all MAC addresses; 8) If it is the last MAC address, update the progress bar and the burning is completed; 9) If it is not the last MAC address, continue to wait for the scanned MAC address and execute the above 4) to 7).
[0091] Figure 6 This is a schematic diagram of the structure of an information recording device provided in an embodiment of the present application. The information recording device 600 includes a receiving unit 601, a determining unit 602, and a recording unit 603, wherein:
[0092] The receiving unit 601 is configured to receive a file to be burned sent by a host computer, wherein the file to be burned includes a first identifier for identifying a burning device and at least one piece of information to be burned;
[0093] The determining unit 602 is configured to determine a target burning processor from at least one pre-configured burning processor, wherein the identifier of the target burning processor is associated with the first identifier;
[0094] The burning unit 603 is configured to write at least one piece of information to be burned into a memory of the burning device through a connection component configured by a target burning processor when the burning device is not powered on.
[0095] Optionally, the determining unit 602 is configured to:
[0096] Acquiring at least one second identifier preset by at least one burning processor;
[0097] Based on a first association relationship between at least one second identifier and the first identifier, a target burning processor is determined from at least one burning processor; wherein the first association relationship represents a connection relationship between the burning processor and the burning device.
[0098] Optionally, the information burning device 600 is used to:
[0099] Establishing a driver connection between a host computer and a programmer, wherein the programmer includes at least one programmer processor and a connection component;
[0100] Sending the initial burning file to a target virtual device in at least one virtual device included in the host computer, wherein the at least one virtual device is used to drive at least one burning processor so that the at least one burning processor receives the initial burning file;
[0101] Acquiring indication information generated by the burner when receiving the initial burning file, wherein the indication information represents the position of the target burning processor driven by the target virtual device in the burner;
[0102] A target identifier of the target burning processor is set, and a second association relationship is established between the target identifier and the target virtual device according to the position of the target virtual device in the host computer and the position of the target burning processor in the burner, until the establishment of an association relationship between each burning processor and a different virtual device is completed; wherein the second association relationship represents the connection relationship between the burning processor and the virtual device.
[0103] Optionally, the information burning device 600 is used to:
[0104] Displaying the initial interface of the host computer, wherein the initial interface includes an identification input area and an identification update control corresponding to the target virtual device;
[0105] Get the target information entered in the identification input area;
[0106] In response to the triggering operation of the identifier update control, the target identifier of the target burning processor is set according to the target information.
[0107] Optionally, the information burning device 600 is used to:
[0108] Scanning at least one piece of information to be burned on at least one burning device;
[0109] Classifying at least one piece of information to be burned, and determining the information to be burned corresponding to at least one burning device;
[0110] At least one file to be burned is generated according to the identification of at least one burning device and the information to be burned corresponding to each burning device, so as to complete the information burning of at least one burning device in parallel through at least one burning processor.
[0111] The memory includes a first storage area and a second storage area.
[0112] Optionally, the information burning device 600 is used to:
[0113] Writing the to-be-burned information corresponding to the burning device into the starting position of the second storage area and updating the check bit of the second storage area, wherein the file content of the second storage area is the text content of the first storage area copied after the host computer is started;
[0114] Verify the burning result based on the file content of the second storage area and the file content of the first storage area;
[0115] When the burning result verification passes, at least one file to be burned is generated according to the identifier of at least one burning device and the text content of the second storage area.
[0116] Optionally, the information burning device 600 is used to:
[0117] Display the burning interface, wherein the burning interface includes a first display area and a second display area, the first display area is used to display the current burning information, and the second display area is used to display the current burning progress of all information.
[0118] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.
[0119] The embodiments of the present application further provide an information burning device. For descriptions of features in the embodiments corresponding to the information burning device, reference can be made to the relevant descriptions of the embodiments corresponding to the information burning method, which will not be repeated here.
[0120] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above-mentioned information burning method embodiments.
[0121] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above-mentioned information burning method embodiments when running.
[0122] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.
[0123] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned information burning method embodiments are implemented.
[0124] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned information burning method embodiments are implemented.
[0125] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0126] The above describes in detail the information burning method provided by this application. This document uses specific examples to illustrate the principles and implementation methods of this application. The description of the above examples is intended only to facilitate understanding of the method and core concepts of this application. It should be noted that those skilled in the art may make various improvements and modifications to this application without departing from the principles of this application, and such improvements and modifications also fall within the scope of protection of the claims of this application.
Claims
1. A method for burning information, characterized in that: include: Receiving a file to be burned sent by a host computer, wherein the file to be burned includes a first identifier for identifying a burning device and at least one piece of information to be burned; Determining a target burning processor from at least one pre-configured burning processor, wherein an identifier of the target burning processor is associated with the first identifier; When the burning device is not powered on, the at least one piece of information to be burned is written into a memory of the burning device through a connection component configured by the target burning processor.
2. The method according to claim 1, characterized in that The step of determining a target burning processor from at least one pre-configured burning processor includes: Acquiring at least one second identifier preset by the at least one burning processor; Based on a first association relationship between the at least one second identifier and the first identifier, a target burning processor is determined from the at least one burning processor; wherein the first association relationship represents a connection relationship between the burning processor and the burning device.
3. The method according to claim 2, characterized in that Before obtaining at least one second identifier preset by the at least one burning processor, the method further includes: Establishing a driver connection between the host computer and the burner, wherein the burner includes the at least one burning processor and the connection component; Sending the initial burning file to a target virtual device in at least one virtual device included in the host computer, wherein the at least one virtual device is used to drive the at least one burning processor so that the at least one burning processor receives the initial burning file; Acquiring indication information generated by the burner when receiving the initial burning file, wherein the indication information represents a position of a target burning processor driven by the target virtual device in the burner; A target identifier of the target burning processor is set, and a second association relationship is established between the target identifier and the target virtual device according to the position of the target virtual device in the host computer and the position of the target burning processor in the burner, until the establishment of an association relationship between each burning processor and a different virtual device is completed; wherein the second association relationship represents the connection relationship between the burning processor and the virtual device.
4. The method according to claim 3, characterized in that The step of setting the target identifier of the target burning processor includes: Displaying an initial interface of the host computer, wherein the initial interface includes an identification input area and an identification update control corresponding to the target virtual device; Acquire target information input in the identification input area; In response to the triggering operation of the identifier update control, the target identifier of the target burning processor is set according to the target information.
5. The method according to claim 1, wherein Before receiving the file to be burned sent by the host computer, the method further includes: Scanning at least one piece of information to be burned on at least one burning device; Classifying the at least one piece of information to be burned, and determining the at least one piece of information to be burned corresponding to the at least one burning device; At least one file to be burned is generated according to the identifier of the at least one burning device and the information to be burned corresponding to each burning device, so as to complete the information burning of the at least one burning device in parallel through the at least one burning processor.
6. The method according to claim 5, characterized in that The memory includes a first storage area and a second storage area, and generating at least one file to be burned according to the identifier of the at least one burning device and the to-be-burned information corresponding to each burning device includes: Writing the to-be-burned information corresponding to the burning device into the starting position of the second storage area, and updating the check bit of the second storage area, wherein the file content of the second storage area is the text content of the first storage area copied after the host computer is started; Verifying the programming result based on the file content of the second storage area and the file content of the first storage area; When the burning result verification passes, at least one file to be burned is generated according to the identification of the at least one burning device and the text content of the second storage area.
7. The method according to claim 1, characterized in that After the connection component configured by the target burning processor writes the at least one to-be-burned information into the memory of the burning device, the method further includes: The burning interface is displayed, wherein the burning interface includes a first display area and a second display area, the first display area is used to display the current burning information, and the second display area is used to display the current burning progress of all information.
8. An information burning system, characterized in that: The information burning system includes a host computer and a burner, wherein the host computer and the burner are connected via a communication interface, wherein: The host computer is used to generate at least one file to be burned according to at least one information to be burned obtained by scanning at least one burning device, and send the at least one file to be burned to the burner; The burner is configured to receive the file to be burned, wherein the file to be burned includes a first identifier for identifying a burning device and at least one information to be burned; determine a target burning processor from at least one pre-configured burning processor, wherein the identifier of the target burning processor is associated with the first identifier; and write the at least one information to be burned into a memory of the burning device via a connection component configured for the target burning processor when the burning device is not powered on.
9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the information burning method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the information burning method according to any one of claims 1 to 7.