Write-in method, device and equipment of DPU board card identification code and readable storage medium

Writing the identification code of the DPU board through serial port solves the problems of chip model limitation, long burning time, risk of electrostatic damage and cumbersome processes in the existing technology, and achieves an efficient, safe and simplified burning process.

CN120144142APending Publication Date: 2025-06-13YUSUR TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510269279.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

The existing DPU board and card burning technology has problems such as chip model limitation, long burning time, risk of electrostatic damage and cumbersome process.

Method used

Write identification codes through serial ports to avoid chip model restrictions, improve burning efficiency, reduce the risk of static damage, and simplify the burning process.

Benefits of technology

It realizes efficient burning without being restricted by chip model, avoids the risk of static damage, and simplifies the burning process, allowing multiple cards to be inserted at the same time for batch writing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120144142A_ABST
    Figure CN120144142A_ABST
Patent Text Reader

Abstract

The invention relates to a DPU board card identification code writing method, device and equipment and a readable storage medium. Identification code information to be written in of a target DPU board card is obtained, a read-write file of the target DPU board card is filled with the identification code information, write-in operation is executed based on a preset write instruction, the identification code information is written in a target chip of the target DPU board card through a target serial port, and when indication information that the write-in operation is completed is received, the target chip of the target DPU board card is written into the target chip of the target DPU board card. Reading operation is executed based on a preset reading instruction, the identification code information is read from the target chip of the target DPU board card through the target serial port, if the read identification code information is the same as the identification code information in the read-write file of the target DPU board card, it is determined that the identification code information of the target DPU board card is written successfully, and the step of writing the identification code of the next DPU board card is executed. Compared with the prior art, write-in in a serial port mode can be not limited by the chip model, the burning efficiency is improved, the risk of electrostatic damage caused by direct contact with the chip is avoided, and the burning process is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of DPU board flashing, and in particular, to a method, device, equipment and readable storage medium for writing an identification code of a DPU board. Background Art

[0002] With the continuous development of the Data Processing Unit (DPU), DPU boards are gradually moving towards mass production. The physical address (Mac) / serial number (SN) is the main feature for identifying different DPU boards, and it needs to be written into the Flash chip of the board when the board welding is completed, and the content posted on the label is consistent with the written information.

[0003] In the related art, usually before the board welding, the Mac / SN is written into the Flash chip of the board through a programmer. The main flashing steps of the existing programmer mainly include: selecting the chip model, loading the data file to be flashed, setting the operation options, placing the chip, and performing the flashing operation.

[0004] However, in the related art, there are the following disadvantages: 1) The flashed chip model needs to be within the support range of the programmer, and those not within cannot be flashed; 2) The flashing time using the programmer is relatively long and cannot meet the measurement requirements of mass production; 3) There is a risk of electrostatic damage during the manual flashing process of the chip; 4) After the flashing is completed, the board needs to be inserted into the host to read out the written information to verify whether the writing is correct, check whether there is any missing writing, and then paste the label, and the process is relatively cumbersome. Summary of the Invention

[0005] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a method, device, equipment and readable storage medium for writing an identification code of a DPU board. By writing through the serial port method, it can be not limited by the chip model, improve the flashing efficiency, avoid the risk of electrostatic damage caused by direct contact with the chip, and simplify the flashing process.

[0006] In a first aspect, an embodiment of the present disclosure provides a method for writing an identification code of a DPU board. A serial port driver program and a host computer program are pre-installed on a terminal device, and the target DPU board is communicatively connected to the terminal device through a target serial port. The method includes:

[0007] Identifying the port number of the target serial port through the serial port driver program;

[0008] In response to the user starting the host computer program, obtaining the identification code information to be written on the target DPU board, and filling the identification code information into the read-write file of the target DPU board;

[0009] In response to the operation of the user clicking the start button in the host computer program, a writing operation is performed based on a preset write instruction, and the identification code information is written onto the target chip of the target DPU board through the target serial port;

[0010] When receiving the indication information that the writing operation is completed, a reading operation is performed based on a preset read instruction, and the identification code information is read from the target chip of the target DPU board through the target serial port;

[0011] If the read identification code information is the same as the identification code information in the read-write file of the target DPU board, it is determined that the writing of the identification code information of the target DPU board is successful, and the writing step of the identification code of the next DPU board is executed.

[0012] In a second aspect, an embodiment of the present disclosure provides a device for writing an identification code of a DPU board. A serial port driver program and a host computer program are pre-installed on a terminal device, and the target DPU board is communicatively connected to the terminal device through the target serial port. The device includes:

[0013] An identification module, configured to identify the port number of the target serial port through the serial port driver program;

[0014] An acquisition module, configured to, in response to the user starting the host computer program, acquire the identification code information to be written on the target DPU board, and fill the identification code information into the read-write file of the target DPU board;

[0015] A writing module, configured to, in response to the operation of the user clicking the start button in the host computer program, perform a writing operation based on a preset write instruction, and write the identification code information onto the target chip of the target DPU board through the target serial port;

[0016] A reading module, configured to, when receiving the indication information that the writing operation is completed, perform a reading operation based on a preset read instruction, and read the identification code information from the target chip of the target DPU board through the target serial port;

[0017] A determination module, configured to, if the read identification code information is the same as the identification code information in the read-write file of the target DPU board, determine that the writing of the identification code information of the target DPU board is successful, and execute the writing step of the identification code of the next DPU board.

[0018] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0019] A memory;

[0020] A processor; and

[0021] A computer program;

[0022] Among them, the computer program is stored in the memory and is configured to be executed by the processor to implement the method described in the first aspect.

[0023] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method described in the first aspect.

[0024] In a fifth aspect, an embodiment of the present disclosure further provides a computer program product, which includes a computer program or instruction, and when the computer program or instruction is executed by a processor, the method described in the first aspect is implemented.

[0025] The method, device, equipment and readable storage medium for writing the identification code of the DPU board card provided by the embodiment of the present disclosure identify the port number of the target serial port through the serial port driver program. In response to the user starting the host computer program, obtain the identification code information to be written for the target DPU board card, fill the identification code information into the read-write file of the target DPU board card, and in response to the user clicking the start button in the host computer program, perform a write operation based on a preset write instruction, and write the identification code information to the target chip of the target DPU board card through the target serial port. When receiving the indication information that the write operation is completed, perform a read operation based on a preset read instruction, and read out the identification code information from the target chip of the target DPU board card through the target serial port. If the read-out identification code information is the same as the identification code information in the read-write file of the target DPU board card, it is determined that the writing of the identification code information of the target DPU board card is successful, and the writing step of the next DPU board card identification code is executed. Compared with the prior art, the embodiment of the present disclosure can be written through the serial port method, which is not limited by the chip model, improves the burning efficiency, avoids the risk of electrostatic damage caused by directly contacting the chip, simplifies the burning process, can insert multiple boards at the same time, complete a batch of writing and then replace the next batch, and avoids frequent plugging and unplugging of the boards during the writing process. Description of the Drawings

[0026] The drawings here are incorporated into the specification and constitute a part of this specification, showing the embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0028] Figure 1 It is a flowchart of the method for writing the identification code of the DPU board card provided by the embodiment of the present disclosure;

[0029] Figure 2 Flowchart of the method for writing the identification code of the DPU board provided by another embodiment of the present disclosure;

[0030] Figure 3 Flowchart of the method for writing the identification code of the DPU board provided by another embodiment of the present disclosure;

[0031] Figure 4 Schematic diagram of the application scenario provided by the embodiment of the present disclosure;

[0032] Figure 5 Schematic diagram of the structure of the device for writing the identification code of the DPU board provided by the embodiment of the present disclosure;

[0033] Figure 6 Schematic diagram of the structure of the electronic device provided by the embodiment of the present disclosure. Detailed implementation manners

[0034] In order to be able to more clearly understand the above-mentioned objects, features and advantages of the present disclosure, the solution of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.

[0035] In the following description, many specific details are set forth in order to fully understand the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all of the embodiments.

[0036] With the continuous development of the Data Processing Unit (DPU), DPU boards are gradually moving towards mass production. The physical address (Mac) / serial number (SN) is the main feature for identifying different DPU boards, and it needs to be written into the Flash chip of the board when the board welding is completed, and the content posted on the label is consistent with the written information.

[0037] In the related art, usually before the board welding, the Mac / SN is written into the Flash chip of the board through a programmer. The main steps of the existing programmer for burning include: selecting the chip model, loading the data file to be burned, setting the operation options, placing the chip, and performing the burning operation.

[0038] However, in the related art, there are the following disadvantages: 1) The chip model to be burned needs to be within the support range of the programmer, and those not within cannot be burned; 2) The burning time using the programmer is relatively long, and it cannot meet the measurement requirements of mass production; 3) There is a risk of electrostatic damage during the manual burning process of the chip; 4) After the burning is completed, the board needs to be inserted into the host to read out the written information to verify whether the writing is correct, check whether there is any missing writing, and then paste the label, and the process is relatively cumbersome.

[0039] In view of this problem, an embodiment of the present disclosure provides a method for writing an identification code of a DPU board. The following introduces this method in combination with specific embodiments.

[0040] Figure 1 FIG. is a flowchart of a method for writing an identification code of a DPU board provided by an embodiment of the present disclosure. The execution subject of this method is an electronic device. The electronic device can be a terminal device, such as a test host, and the test host can specifically be a portable mobile device such as a tablet computer or a notebook computer; it can also be a fixed device such as a personal computer, a smart home appliance, or a server. Among them, the server can be a single server, can be a server cluster, and the server cluster can be a distributed cluster or a centralized cluster. This method can be applied to the scenario of writing an identification code for a DPU board. It can be understood that the method for writing an identification code of a DPU board provided by an embodiment of the present disclosure can also be applied in other scenarios.

[0041] A DPU is a processor specifically used for data processing, focusing on data processing to achieve more efficient data processing and computing. In modern computer systems, a data processing unit (DPU) card is a key component that is responsible for processing a large amount of data and performing fast calculations.

[0042] The following introduces Figure 1 the method for writing an identification code of the DPU board shown below. First, install a serial port driver program and a host computer program on the terminal device, and communicate and connect the target DPU board with the terminal device through the target serial port. The specific steps included in this method are as follows:

[0043] S101. Identify the port number of the target serial port through the serial port driver program.

[0044] In this step, a serial port driver program and a host computer program are installed on the terminal device. The target DPU board is communicatively connected to the terminal device through the target serial port. As Figure 4 shown, connect the target DPU board and the terminal device through a serial cable, such as a universal asynchronous receiver / transmitter (Uart) serial cable. Further, the terminal device can identify the port number of the target serial port through the serial port driver program. The target DPU board is the DPU board for which the identification code is to be written.

[0045] S102. In response to the user starting the host computer program, obtain the identification code information to be written for the target DPU board, and fill the identification code information into the read / write file of the target DPU board.

[0046] In this step, the user will start the host computer program. In response to the user starting the host computer program, the terminal device will obtain the identification code information to be written to the target DPU board, and fill the identification code information into the read-write file of the target DPU board. Optionally, the identification code information may include physical address Mac information and / or serial number SN information. Specifically, when the user opens the host computer program, the identification code information to be written to the target DPU board can be obtained, and then the host computer program fills the identification code information into the read-write file of the target DPU board. The read-write file can be the nic_info.cfg file, which is the location for reading and writing the content of each board.

[0047] S103. In response to the user's operation of clicking the start button in the host computer program, perform a write operation based on a preset write instruction, and write the identification code information to the target chip of the target DPU board through the target serial port.

[0048] In this step, the user will click the start button in the host computer program. In response to the user's operation of clicking the start button in the host computer program, the terminal device will perform an identification code writing operation based on a preset write instruction, and write the identification code information to the target chip of the target DPU board through the target serial port. The target chip can be a Flash chip, which is not limited. Optionally, the preset write instruction can be expressed as: yscom-p COM14-w-f nic_info.cfg.

[0049] Among them, -p or --port is used to specify the port number of the serial port used by the host computer. Taking the port number COM14 as an example, it is not limited; -w indicates that network card information is to be written to the board; -f is used to specify the content of the written information.

[0050] In some embodiments, the target DPU board is inserted into a board base, and the board base is used to supply power to the target DPU board.

[0051] As Figure 4 shown, the target DPU board is inserted into the board base, and the board base will supply 12V power to the board. The board base can be a PCIE base, which is not limited.

[0052] In some embodiments, the board base is fixed on a preset template base, the preset template base is used to supply power to the board base, and the upper part of the target DPU board is fixed by a preset template cover.

[0053] As Figure 4As shown, the board card base is fixed on the preset template base. The preset template base is used to supply power to the board card base (12V - 10A). The number of inserted board cards can be adjusted according to actual needs. There is a QR code label pasted on the board card, and a scanning position for the board card QR code label is reserved. There is a preset template cover above the target DPU board card. The preset template cover is used to fix the board card and can check whether the board card is inserted in place.

[0054] S104. When receiving the indication information that the write operation is completed, perform a read operation based on the preset read instruction, and read the identification code information from the target chip of the target DPU board card through the target serial port.

[0055] In this step, if the write operation is completed, a prompt for the completion of the write operation will be given. When the terminal device receives the indication information that the write operation is completed, it will perform a read operation based on the preset read instruction, and read the identification code information from the target chip of the target DPU board card through the target serial port. Optionally, the preset read instruction can be expressed as: yscom-p COM14-r-f nic_info.cfg.

[0056] Among them, -p or --port is used to specify the port number of the serial port used by the host computer. Taking the port number COM14 as an example, it is not limited; -r indicates that the network card information is to be read from the board card; -f is used to indicate that the information read from the board card is to be jumped (dumped) to a specified file for comparison.

[0057] S105. If the read identification code information is the same as the identification code information in the read / write file of the target DPU board card, it is determined that the writing of the identification code information of the target DPU board card is successful, and the next writing step for the DPU board card identification code is executed.

[0058] The purpose of this step is to compare the information integrity and consistency. If the read identification code information from the target DPU board card is the same as the identification code information in the read / write file of the target DPU board card, it indicates that the writing is successful, and then the next writing step for the DPU board card identification code is executed.

[0059] In the embodiments of the present disclosure, the port number of the target serial port is identified through a serial port driver. In response to the user starting the host computer program, the identification code information to be written to the target DPU board is obtained, and the identification code information is filled into the read-write file of the target DPU board. In response to the user clicking the start button in the host computer program, a write operation is performed based on a preset write instruction, and the identification code information is written to the target chip of the target DPU board through the target serial port. When an indication information indicating that the write operation is completed is received, a read operation is performed based on a preset read instruction, and the identification code information is read from the target chip of the target DPU board through the target serial port. If the read identification code information is the same as the identification code information in the read-write file of the target DPU board, it is determined that the writing of the identification code information of the target DPU board is successful, and the writing step of the identification code of the next DPU board is executed. Compared with the prior art, in the embodiments of the present disclosure, writing through the serial port method is not limited by the chip model, can improve the burning efficiency, avoid the risk of electrostatic damage caused by directly contacting the chip, simplify the burning process, and multiple boards can be inserted simultaneously. After a batch of writing is completed, the next batch is replaced, avoiding frequent plugging and unplugging of the boards during the writing process.

[0060] Figure 2 The flowchart of the method for writing the identification code of the DPU board provided by another embodiment of the present disclosure is as Figure 2 shown, and the method includes the following steps:

[0061] S201. Identify the port number of the target serial port through the serial port driver.

[0062] Specifically, the implementation processes and principles of S201 and S101 are the same, and will not be elaborated here.

[0063] S202. In response to the user starting the host computer program, scan and identify the two-dimensional code label on the surface of the target DPU board through a scanning device to obtain the identification code information to be written to the target DPU board.

[0064] In this step, the user starts the host computer program, and the terminal device, in response to the user starting the host computer program, scans and identifies the two-dimensional code label on the surface of the target DPU board through a scanning device to obtain the identification code information to be written to the target DPU board. Optionally, the scanning device can be a barcode scanner, which is not limited.

[0065] S203. Fill the identification code information into the read-write file of the target DPU board.

[0066] Further, after obtaining the identification code information to be written to the target DPU board, the identification code information is filled into the read-write file of the target DPU board. The read-write file can be the nic_info.cfg file, which is used as the content position for reading and writing each board.

[0067] S204. Determine the target serial port based on the port number of the target serial port in the preset write instruction.

[0068] In this step, the terminal device responds to the operation of the user clicking the start button in the host computer program, and determines the target serial port according to the port number of the target serial port in the preset write instruction.

[0069] S205. Obtain the identification code information to be written from the read / write file of the target DPU board through the target serial port.

[0070] Furthermore, the terminal device obtains the identification code information to be written from the read / write file of the target DPU board through the target serial port.

[0071] S206. Write the identification code information to the target chip of the target DPU board through the target serial port.

[0072] After obtaining the identification code information to be written, the terminal device can write the identification code information to the target chip of the target DPU board through the target serial port.

[0073] S207. When receiving the indication information that the write operation is completed, perform a read operation based on the preset read instruction, and read the identification code information from the target chip of the target DPU board through the target serial port.

[0074] Specifically, the implementation processes and principles of S207 and S104 are the same, and will not be elaborated here.

[0075] S208. If the read identification code information is the same as the identification code information in the read / write file of the target DPU board, it is determined that the writing of the identification code information of the target DPU board is successful, and the writing step of the next DPU board identification code is executed.

[0076] Specifically, the implementation processes and principles of S208 and S105 are the same, and will not be elaborated here.

[0077] In the embodiments of the present disclosure, the port number of the target serial port is identified through a serial port driver. In response to the user starting the host computer program, a scanning device is used to scan and identify the QR code label on the surface of the target DPU board to obtain the identification code information to be written to the target DPU board, and the identification code information is filled into the read-write file of the target DPU board. Further, based on the port number of the target serial port in the preset write instruction, the target serial port is determined, and the identification code information to be written is obtained from the read-write file of the target DPU board through the target serial port, and the identification code information is written to the target chip of the target DPU board through the target serial port. When the indication information indicating that the write operation is completed is received, a read operation is performed based on the preset read instruction, and the identification code information is read from the target chip of the target DPU board through the target serial port. Furthermore, if the read identification code information is the same as the identification code information in the read-write file of the target DPU board, it is determined that the writing of the identification code information of the target DPU board is successful, and the writing step of the identification code of the next DPU board is executed. Compared with the prior art, the embodiments of the present disclosure can be written through the serial port method, which is not limited by the chip model, improves the burning efficiency, avoids the risk of electrostatic damage caused by direct contact with the chip, simplifies the burning process, can insert multiple boards at the same time, complete a batch of writing and then replace the next batch, and avoid frequent plugging and unplugging of the boards during the writing process.

[0078] Figure 3 The flowchart of the method for writing the identification code of the DPU board provided by another embodiment of the present disclosure is as Figure 3 shown, and the method includes the following steps:

[0079] S301. Identify the port number of the target serial port through the serial port driver.

[0080] Specifically, the implementation processes and principles of S301 and S101 are the same, and will not be elaborated here.

[0081] S302. In response to the user starting the host computer program, obtain the identification code information to be written to the target DPU board, and fill the identification code information into the read-write file of the target DPU board.

[0082] Specifically, the implementation processes and principles of S302 and S102 are the same, and will not be elaborated here.

[0083] S303. In response to the user clicking the start button in the host computer program, perform a write operation based on the preset write instruction, and write the identification code information to the target chip of the target DPU board through the target serial port.

[0084] Specifically, the implementation processes and principles of S303 and S103 are the same, and will not be elaborated here.

[0085] S304. Determine the target serial port based on the port number of the target serial port in the preset read instruction.

[0086] In this step, if the write operation is completed, a prompt indicating the completion of the write operation will be given. When the terminal device receives the indication information of the completion of the write operation, it will determine the target serial port according to the port number of the target serial port in the preset read instruction.

[0087] S305. Read the identification code information from the target chip of the target DPU board through the target serial port.

[0088] Furthermore, the terminal device will read the identification code information from the target chip of the target DPU board through the target serial port.

[0089] S306. Compare the read identification code information with the identification code information in the read / write file of the target DPU board.

[0090] After reading the identification code information, the terminal device will compare the read identification code information with the identification code information in the read / write file of the target DPU board to determine whether the identification code is successfully written.

[0091] S307. If the read identification code information is different from the identification code information in the read / write file of the target DPU board, update the read identification code information to the read / write file of the target DPU board.

[0092] In this step, if the read identification code information is different from the identification code information in the read / write file of the target DPU board, the terminal device will update the read identification code information to the read / write file of the target DPU board to keep the identification code information consistent.

[0093] S308. If the read identification code information is the same as the identification code information in the read / write file of the target DPU board, determine that the identification code information of the target DPU board is successfully written, and execute the next step of writing the identification code of the DPU board.

[0094] Specifically, the implementation processes and principles of S308 and S105 are the same, and will not be elaborated here.

[0095] In the embodiment of the present disclosure, the serial port driver program is used to identify the port number of the target serial port. In response to the user starting the host computer program, the identification code information to be written to the target DPU board is obtained, and the identification code information is filled into the read-write file of the target DPU board. In response to the user clicking the start button in the host computer program, a write operation is performed based on a preset write instruction, and the identification code information is written to the target chip of the target DPU board through the target serial port. Further, based on the port number of the target serial port in the preset read instruction, the target serial port is determined, and the identification code information is read from the target chip of the target DPU board through the target serial port. Then, the read identification code information is compared with the identification code information in the read-write file of the target DPU board. If the read identification code information is different from the identification code information in the read-write file of the target DPU board, the read identification code information is updated to the read-write file of the target DPU board. Furthermore, if the read identification code information is the same as the identification code information in the read-write file of the target DPU board, it is determined that the writing of the identification code information of the target DPU board is successful, and the writing step of the identification code of the next DPU board is executed. Compared with the prior art, the embodiment of the present disclosure can be written by a serial port method, which is not limited by the chip model, improves the burning efficiency, avoids the risk of electrostatic damage caused by direct contact with the chip, simplifies the burning process, can insert multiple boards at the same time, complete a batch of writing and then replace the next batch, and avoids frequent plugging and unplugging of the boards during the writing process.

[0096] Figure 5 FIG. is a schematic structural diagram of a device for writing an identification code of a DPU board provided by an embodiment of the present disclosure. The device for writing an identification code of a DPU board may be the terminal device described in the above embodiment, or the device for writing an identification code of a DPU board may be a component or assembly in the terminal device. The device for writing an identification code of a DPU board provided by an embodiment of the present disclosure may execute the processing flow provided by the embodiment of the method for writing an identification code of a DPU board. The serial port driver program and the host computer program are pre-installed on the terminal device, and the target DPU board is communicatively connected to the terminal device through the target serial port, such as Figure 5As shown in the figure, the writing device 40 for the DPU board identification code includes: an identification module 41, an acquisition module 42, a writing module 43, a reading module 44, and a determination module 45. Among them, the identification module 41 is used to identify the port number of the target serial port through the serial port driver program; the acquisition module 42 is used to, in response to the user starting the host computer program, acquire the identification code information to be written to the target DPU board, and fill the identification code information into the read-write file of the target DPU board; the writing module 43 is used to, in response to the user clicking the start button in the host computer program, perform a writing operation based on a preset write instruction, and write the identification code information to the target chip of the target DPU board through the target serial port; the reading module 44 is used to, when receiving the indication information that the writing operation is completed, perform a reading operation based on a preset read instruction, and read out the identification code information from the target chip of the target DPU board through the target serial port; the determination module 45 is used to, if the read-out identification code information is the same as the identification code information in the read-write file of the target DPU board, determine that the writing of the identification code information of the target DPU board is successful, and execute the next step of writing the DPU board identification code.

[0097] Optionally, the target DPU board is inserted on a board base, and the board base is used to supply power to the target DPU board.

[0098] Optionally, the board base is fixed on a preset template base, the preset template base is used to supply power to the board base, and the upper part of the target DPU board is fixed by a preset template cover.

[0099] Optionally, there is a QR code label on the surface of the target DPU board;

[0100] When the acquisition module 42 acquires the identification code information to be written to the target DPU board in response to the user starting the host computer program, it is specifically used for: in response to the user starting the host computer program, scanning and identifying the QR code label on the surface of the target DPU board through a scanning device to obtain the identification code information to be written to the target DPU board.

[0101] Optionally, the preset write instruction includes the port number of the target serial port;

[0102] When the writing module 43 performs a writing operation based on a preset write instruction and writes the identification code information to the target chip of the target DPU board through the target serial port, it is specifically used for: determining the target serial port based on the port number of the target serial port in the preset write instruction; obtaining the identification code information to be written from the read-write file of the target DPU board through the target serial port; and writing the identification code information to the target chip of the target DPU board through the target serial port.

[0103] Optionally, the preset read instruction includes the port number of the target serial port;

[0104] The reading module 44 performs a reading operation based on a preset read instruction. When reading the identification code information from the target chip of the target DPU board through the target serial port, it is specifically configured to: determine the target serial port based on the port number of the target serial port in the preset read instruction; read the identification code information from the target chip of the target DPU board through the target serial port.

[0105] Optionally, after performing the reading operation based on the preset read instruction and reading the identification code information from the target chip of the target DPU board, the device 40 further includes: a comparison module 46; the comparison module 46 is configured to compare the read identification code information with the identification code information in the read / write file of the target DPU board; if the read identification code information is different from the identification code information in the read / write file of the target DPU board, update the read identification code information to the read / write file of the target DPU board.

[0106] Figure 5 The DPU board identification code writing device in the illustrated embodiment can be used to implement the technical solutions of the above method embodiments. The implementation principles and technical effects are similar and will not be elaborated here.

[0107] Figure 6 This is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. Specifically, refer to Figure 6 , which shows a schematic structural diagram of the electronic device 600 suitable for implementing the embodiments of the present disclosure. Figure 6 The illustrated electronic device is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present disclosure.

[0108] As Figure 6 shown, the electronic device 600 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage device 608 into the random access memory (RAM) 603 to implement the DPU board identification code writing method of the embodiments as described in the present disclosure. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. The input / output (I / O) interface 605 is also connected to the bus 604.

[0109] Typically, the following devices can be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 can allow the electronic device 600 to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 6 the electronic device 600 with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. More or fewer devices can be alternatively implemented or had.

[0110] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program codes for executing the method shown in the flowchart, so as to implement the method for writing the DPU board identification code as described above. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present disclosure are executed.

[0111] It should be noted that the computer-readable medium described above can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program, which can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0112] In some embodiments, the client and the server can communicate using any currently known or future-developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (e.g., the Internet), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.

[0113] The above computer-readable medium can be included in the above electronic device; or it can exist separately without being assembled into the electronic device.

[0114] The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device is caused to:

[0115] Identify the port number of the target serial port through the serial port driver;

[0116] In response to the user starting the host computer program, obtain the identification code information to be written to the target DPU board, and fill the identification code information into the read-write file of the target DPU board;

[0117] In response to the user clicking the start button in the host computer program, perform a write operation based on a preset write instruction, and write the identification code information to the target chip of the target DPU board through the target serial port;

[0118] When receiving the indication information that the write operation is completed, perform a read operation based on a preset read instruction, and read out the identification code information from the target chip of the target DPU board through the target serial port;

[0119] If the read identification code information is the same as the identification code information in the read-write file of the target DPU board, it is determined that the writing of the identification code information of the target DPU board is successful, and the writing step of the identification code of the next DPU board is executed.

[0120] Optionally, when one or more of the above programs are executed by the electronic device, the electronic device may further execute the other steps described in the above embodiments.

[0121] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof. The above programming languages include, but are not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., by connecting through an Internet service provider using the Internet).

[0122] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks may occur in a different order than noted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.

[0123] The units involved in the embodiments described in the present disclosure can be implemented in software or in hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself.

[0124] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that can be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

[0125] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM or Flash memory), an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0126] The above description is only a preferred embodiment of the present disclosure and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present disclosure.

[0127] In addition, although the operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although a number of specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, the various features described in the context of a single embodiment may also be implemented separately or in any suitable sub-combination in multiple embodiments.

[0128] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms for implementing the claims.

Claims

1. A method for writing a DPU board identification code, characterized in that: The serial port driver and the host computer program are installed on the terminal device in advance, and the target DPU board is connected to the terminal device through the target serial port for communication. The method includes: Identify the port number of the target serial port through the serial port driver; In response to the user starting the host computer program, obtaining the identification code information to be written to the target DPU board card, and filling the identification code information into the read-write file of the target DPU board card; In response to the user clicking the start button in the host computer program, a write operation is performed based on a preset write instruction, and the identification code information is written into the target chip of the target DPU board through the target serial port; When receiving the indication information that the write operation is completed, performing the read operation based on the preset read instruction, and reading the identification code information from the target chip of the target DPU board through the target serial port; If the read identification code information is the same as the identification code information in the read-write file of the target DPU board, it is determined that the identification code information of the target DPU board is written successfully, and the next DPU board identification code writing step is executed.

2. The method according to claim 1, characterized in that The target DPU board is inserted into the board base, and the board base is used to supply power to the target DPU board.

3. The method according to claim 2, characterized in that The board base is fixed on a preset template base, and the preset template base is used to supply power to the board base. The top of the target DPU board is fixed by a preset template cover.

4. The method according to claim 1, characterized in that: The target DPU board has a QR code label on its surface; The step of obtaining the identification code information to be written to the target DPU board in response to the user starting the host computer program includes: In response to the user starting the host computer program, the QR code label on the surface of the target DPU board is scanned and identified by a scanning device to obtain the identification code information to be written to the target DPU board.

5. The method according to claim 1, characterized in that The preset write instruction includes the port number of the target serial port; The performing of the write operation based on the preset write instruction, and writing the identification code information into the target chip of the target DPU board through the target serial port, comprises: Determine the target serial port based on the port number of the target serial port in the preset write instruction; Obtaining the identification code information to be written from the read-write file of the target DPU board through the target serial port; The identification code information is written into the target chip of the target DPU board through the target serial port.

6. The method according to claim 1, characterized in that The preset read instruction includes the port number of the target serial port; The performing of the read operation based on the preset read instruction to read the identification code information from the target chip of the target DPU board through the target serial port includes: Determine the target serial port based on the port number of the target serial port in the preset read instruction; The identification code information is read from the target chip of the target DPU board through the target serial port.

7. The method according to claim 1, characterized in that After the read operation is performed based on the preset read instruction and the identification code information is read from the target chip of the target DPU board through the target serial port, the method further includes: Compare the read identification code information with the identification code information in the read-write file of the target DPU board; If the read identification code information is different from the identification code information in the read-write file of the target DPU board card, the read identification code information is updated to the read-write file of the target DPU board card.

8. A device for writing a DPU board identification code, characterized in that: The serial port driver and the host computer program are installed on the terminal device in advance, and the target DPU board is connected to the terminal device through the target serial port for communication. The device includes: An identification module, used for identifying the port number of the target serial port through a serial port driver; An acquisition module, used for acquiring identification code information to be written to a target DPU board in response to a user starting a host computer program, and filling the identification code information into a read-write file of the target DPU board; A writing module, for responding to a user clicking a start button in a host computer program, executing a writing operation based on a preset writing instruction, and writing the identification code information into a target chip of a target DPU board through a target serial port; A reading module, configured to, upon receiving an indication that a write operation is completed, perform a read operation based on a preset read instruction, and read the identification code information from a target chip of a target DPU board through a target serial port; The determination module is used to determine that the identification code information of the target DPU board is written successfully if the read identification code information is the same as the identification code information in the read-write file of the target DPU board, and execute the next DPU board identification code writing step.

9. An electronic device, characterized in that: include: Memory; processor; as well as Computer programs; The computer program is stored in the memory and is configured to be executed by the processor to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Intelligent CVC-200T hardware test system and method

    CN109342929A

  • User identification code burning method and device, storage medium and upper computer

    CN113485724A

  • Multi-channel automatic identification burning system and method

    CN113934439A

  • Serial number writing method and device, equipment and medium

    CN116719977A

  • DPU card firmware programming method and system and storage medium

    CN117573148A