A method, system and storage medium for facilitating board curing

By erasing anti -pirated sequence numbers and version data in the FLASH storage area of ​​the board card, and the updated data is written to solve the problem of the board and card that can not work properly due to accidental interruption during the board update process, it has achieved it. High -efficiency and stable board card solidification process.

CN119066722BActive Publication Date: 2025-01-24BEIJING JCZ TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411577756.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-07
Publication Date
2025-01-24
Estimated Expiration
2044-11-07

AI Technical Summary

Technical Problem

The update process of existing boards is complicated, and it is easy to fail due to sudden power failure or network interruption. After powering up again, the board cannot work normally, which increases the difficulty of curing.

Method used

Wipe the anti -pirated sequence number and the first board version data in the Flash storage area of ​​the board card, and write the updated second board version data into the Flash storage area to ensure the stability and success rate of the update process.

Benefits of technology

By erasing the anti-piracy serial number and version data, it prevents the board from not working properly due to unexpected interruptions during the update process, reduces the difficulty and labor costs of board curing, and improves update efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119066722B_ABST
    Figure CN119066722B_ABST
Patent Text Reader

Abstract

The invention discloses a method, system and storage medium for curing a board card. The board card comprises a Flash storage area and a DDR3 controller. A boot program, an anti-piracy serial number and first board card version data are stored in the Flash storage area. The anti-piracy serial number is set to prevent the program from being stolen. The anti-piracy serial number in the Flash storage area is erased to prevent the board card from being unable to work normally after re-electrical connection due to update failure caused by unexpected circumstances such as sudden power failure or network interruption during the update process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of board card burning, and in particular to a method and a storage medium for facilitating the curing of a board card. Background Art

[0002] At present, Xilinx's SOC series products are increasingly used in the market due to their advantages of high integration, low power consumption, excellent performance, and small size. Many companies will derive different series of products based on the same platform. Therefore, mass production must not only be simple to operate, but also need to improve efficiency. However, the development tools and burning process provided by the manufacturer are very complicated. The burning needs to be powered on again, and the burner is unstable during the burning process, which can easily cause the burning to fail midway. After the burning is completed, it is necessary to power on again to check whether the burning is successful. It is not suitable for batch production operations and technical personnel to update on site. At present, the burning process for board updates is relatively complicated. In order to reduce the difficulty of operation, the anti-piracy serial number is generally not processed. Therefore, when a power outage occurs during the board update process, the board will not be able to work normally after powering on again, which increases the difficulty of board solidification. Summary of the invention

[0003] In order to overcome the above-mentioned shortcomings, the purpose of the present invention is to provide a method, system and storage medium for facilitating the solidification of boards and cards, by setting an anti-piracy serial number to prevent the program from being stolen, and by erasing the anti-piracy serial number in the Flash storage area, to prevent the board and card from failing to work normally after re-electrical connection due to unexpected situations such as sudden power failure or network interruption during the update process, thereby reducing the difficulty of solidification of the board and card.

[0004] In order to achieve the above purpose, the technical solution adopted by the present invention is: a method for facilitating the curing of a board card, the board card includes a Flash storage area and a DDR3 controller, the Flash storage area stores an anti-piracy serial number and first board card version data, the method includes:

[0005] Obtaining the anti-piracy serial number and the first board version data, verifying the anti-piracy serial number, and obtaining the board version that needs to be updated according to the first board version data;

[0006] Get the update command, the board gets the second board version data that needs to be updated, determines that the hardware platform and application scenario corresponding to the second board version data are consistent with the hardware platform and application scenario of the first board version data, and sends the second board version data to the DDR3 controller;

[0007] Erasing the anti-piracy serial number in the Flash storage area, erasing the first board version data in the Flash storage area, and writing the second board version data in the DDR3 controller into the Flash storage area;

[0008] Confirm that the second board version data in the Flash storage area is consistent with the second board version data in the DDR3 controller, and update the anti-piracy serial number;

[0009] Get the update completion signal, restart the board, and get the board update result.

[0010] In this method, the anti-piracy serial number is obtained to prevent the program from being stolen. At the same time, the current program version can be learned according to the first board version data, so as to facilitate the selection of the corresponding version that needs to be updated, and the second board version data is obtained for comparison with the first board version data, so as to determine whether the second board version data corresponds to the current board; erasing the anti-piracy serial number in the Flash storage area is conducive to preventing the problem that the board cannot work normally after re-electrical connection after the update fails due to unexpected situations such as sudden power failure or network interruption during the update process, thereby reducing the difficulty of board solidification; erasing the first board version data in the Flash storage area is conducive to freeing up space, so as to store the second board version data; confirming that the second board version data in the Flash storage area is consistent with the second board version data in the DDR3 controller, thereby ensuring that the Flash storage area has completed the update of the second board version, and updating the anti-theft serial number is used to prevent the program in the subsequent board from being stolen; after the update is completed, the board is restarted, and the result of whether the update is successful is judged according to the running status of the board.

[0011] In some implementations, the Flash storage area also stores a boot program and an application program, and verifying the anti-piracy serial number includes: if the anti-piracy serial number verification is confirmed to be invalid, then running the boot program; if the anti-piracy serial number verification is confirmed to be valid, then running the application program.

[0012] In this method, the boot program is used to guide the board to update. If the anti-piracy serial number verification is invalid, it means that the anti-piracy serial number has been erased or is in the initial state. Run the boot program to guide the board to update. If the anti-piracy serial number verification is valid, it means that the board has been updated, or the anti-piracy serial number has not been erased, then run the application and select the processing method required for the board.

[0013] In some implementations, verifying the anti-piracy serial number further includes: confirming that the anti-piracy serial number is verified correctly, and running the application.

[0014] In this method, if the anti-piracy serial number is correctly verified, it means that the anti-piracy serial number has been re-updated and written or has not been erased, and the application program is run to check the version of the program in the board.

[0015] In some implementations, verifying the anti-piracy serial number further includes: confirming that the anti-piracy serial number verification is wrong, and the board continues to run the boot program.

[0016] In this method, an error in the anti-piracy serial number verification indicates that the board has been pirated, and the program will remain in the boot program without being updated to prevent the program from being leaked.

[0017] In some implementations, confirming that the second board version data in the Flash storage area is consistent with the second board version data in the DDR3 controller includes: reading the second board version data according to the starting address and length of the second board version data stored in the Flash storage area.

[0018] In this method, the second board version data stored in the Flash storage area is read to facilitate comparison with the second board version data in the DDR3 controller, thereby confirming that the data update result in the Flash storage area is correct.

[0019] In some implementations, the method for curing the board also includes a host computer, the host computer is connected to the board, and obtains an update completion signal. Restarting the board includes: the board returns the update completion signal to the host computer, and the host computer controls the board to restart.

[0020] In this method, the host computer is used to control the operation of the program in the board when the board is updated. After the board is updated, the board is restarted, and whether the update is successful is determined based on the program running when the board is restarted.

[0021] In some implementations, obtaining the board update result includes: if the board runs an application, the update is successful; if the board runs a boot program, the update fails.

[0022] In this method, if the board restarts and runs the application, it means that the board has been updated successfully. If the board runs the boot program, it means that the board has not been updated successfully and needs to be updated again through the boot program.

[0023] In some implementations, the board card further includes an indicator light, and obtaining the board card update result further includes: if the update is successful, the indicator light is off; if the update fails, the indicator light is on.

[0024] In this method, the indicator light helps to understand the result of the board update more directly.

[0025] The present invention also provides a system for curing a board card, comprising a board card and a host computer, wherein the board card comprises a DDR3 controller, a Flash storage area, an ENET network port module and a UART debugging module, the board card is connected to the host computer through the ENET network port, and the Flash storage area stores a boot program, an anti-piracy serial number, first board card version data and an application program.

[0026] In this technical solution, the host computer is used to provide the board with the application that needs to be updated, the DDR3 controller is used to temporarily store the application that needs to be updated, the Flash storage area is used to store the boot program, anti-piracy serial number, the first board version data and the application, the ENET network port module is used for the board to communicate with the host computer, and the UART debugging module prints data.

[0027] The present invention also provides a storage medium, in which a computer program is stored. When the computer program is executed, it is used to implement the above method.

[0028] The beneficial effects of the present invention are that the program is prevented from being stolen by setting an anti-piracy serial number, and the anti-piracy serial number in the Flash storage area is erased to prevent the problem of the board not being able to work normally after re-electrical connection after the update failure caused by unexpected situations such as sudden power failure or network interruption during the update process; after the board is updated, there is no need to manually power on the board again to obtain the update result of the board, which saves a lot of manpower, greatly improves the efficiency of board curing, and reduces the difficulty of board curing. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A schematic diagram of the process steps of a method for curing a board card according to an embodiment of the present invention;

[0030] Figure 2 A schematic diagram of hardware connection according to an embodiment of the present invention;

[0031] Figure 3 The present invention is a schematic flow chart of a method for curing a board according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more definite definition of the protection scope of the present invention.

[0033] Combined with Figure 1 To Attachment Figure 3 As shown, the present invention provides a method for curing a board card, wherein the memory of the board card includes a Flash storage area and a DDR3 controller, and the Flash storage area stores an anti-piracy serial number and first board card version data, and the method includes:

[0034] S100: Obtaining an anti-piracy serial number and first board version data, verifying the anti-piracy serial number, and obtaining a board version that needs to be updated according to the first board version data.

[0035] After the board is powered on, the anti-piracy serial number and the first board version data in the board are read. Each anti-piracy serial number stored in the board has a corresponding unique ID. The first board version data stores the current program version in the board. For example, the last two digits in the first board version data are used to represent the current version of the program in the board. For example, the first board version data is: 35681303, 03 indicates that the current version of the program in the board is version 03. Accordingly, by knowing the current version of the program in the board, it can be known that the next program version that needs to be updated on the board is version 04.

[0036] S200: Obtain an update command, the board obtains the second board version data that needs to be updated, determines that the hardware platform and application scenario corresponding to the second board version data are consistent with the hardware platform and application scenario of the first board version data, and sends the second board version data to the DDR3 controller.

[0037] The board obtains the second board version data, and the second board version data stores information about the hardware platform and application scenario to which the second board version data is adapted. The hardware platform and application scenario corresponding to the second board version data are compared and determined with the hardware platform and application scenario of the first board version data, to ensure that the second board version data is adapted to the board to be updated. For example, the first and second digits of the first board version data and the second board version data represent the hardware platform, and the third and fourth digits represent the application scenario. For example, the first board version data is 01023567, and the second board version data is 01026586. It can be learned that the first four digits of the first board version data are consistent with the first four digits of the second board version data, indicating that the hardware platform and application scenario corresponding to the second board version data are consistent with the hardware platform and application scenario of the first board version data.

[0038] S300: Erasing the anti-piracy serial number in the Flash storage area, erasing the first board version data in the Flash storage area, and writing the second board version data in the DDR3 controller into the Flash storage area.

[0039] For example, deleting the anti-piracy serial number data in the Flash storage area of ​​the board card is helpful to prevent the board card from not working properly after reconnecting due to unexpected situations such as sudden power outage or network interruption during the update process. Erasing the first board card version data in the Flash storage area is used to free up space to write the second board card version data.

[0040] S400: Confirm that the second board version data in the Flash storage area is consistent with the second board version data in the DDR3 controller, and update the anti-piracy serial number.

[0041] For example, the second board version data in the Flash storage area is read, and the second board version data in the Flash storage area is compared with the second board version data in the DDR3 controller to confirm that the second board version data in the Flash storage area is correct.

[0042] S500: Obtain an update completion signal, restart the board, and obtain the board update result.

[0043] For example, after the board is updated, an update completion message is sent, and then the board is restarted. Based on the result after the board is restarted, it is determined whether the update is successful. For example, after the board is restarted, the board version data stored in the Flash storage area is sent, and the version of the program in the board is determined based on the board version data, thereby determining whether the board update is successful.

[0044] Acquiring the anti-piracy serial number is used to prevent the program from being stolen. At the same time, the current program version can be learned based on the first board version data, so as to facilitate the selection of the corresponding version that needs to be updated, and the second board version data is obtained for comparison with the first board version data, so as to determine whether the second board version data corresponds to the current board; erasing the anti-piracy serial number in the Flash storage area is conducive to preventing the problem that the board cannot work normally after re-electrical connection after the update fails due to unexpected situations such as sudden power failure or network interruption during the update process, and reduces the difficulty of board solidification; erasing the first board version data in the Flash storage area is conducive to freeing up space, so as to store the second board version data; confirming that the second board version data in the Flash storage area is consistent with the second board version data in the DDR3 controller, thereby ensuring that the Flash storage area has completed the update of the second board version, and updating the anti-theft serial number is used to prevent the program in the subsequent board from being stolen; after the update is completed, restart the board, and judge whether the update is successful based on the running status of the board.

[0045] Continue to combine Figure 3 As shown, the Flash storage area also stores a boot program and an application program. Obtaining the board version that needs to be updated according to the anti-piracy serial number includes: confirming that the anti-piracy serial number verification is invalid, then running the boot program; confirming that the anti-piracy serial number verification is valid, then running the application program.

[0046] The boot program is used to guide the board to update. If the anti-piracy serial number verification is invalid, it means that the anti-piracy serial number has been erased. Run the boot program to guide the board to update. If the anti-piracy serial number verification is valid, it means that the board has been updated. Or if the anti-piracy serial number is not erased, run the application program. The current version of the board can be known according to the application program, and then the processing method required for the board can be selected.

[0047] For example, when verifying the anti-piracy serial number, if the data between the start position and the end position storing the anti-piracy serial number is all empty, it means that the verification is invalid, that is, the anti-piracy serial number has been erased.

[0048] Continue to combine Figure 3 As shown, in some implementations, obtaining the board version that needs to be updated based on the anti-piracy serial number also includes: confirming that the anti-piracy serial number is verified correctly and running the application.

[0049] For example, when verifying the anti-piracy serial number, a correct verification of the anti-piracy serial number indicates that the anti-piracy serial number has been re-updated and written or has not been erased. The application is run to check the version of the program in the board to determine whether the board needs to be updated again.

[0050] Continue to combine Figure 3 As shown, in some implementations, obtaining the board version that needs to be updated based on the anti-piracy serial number also includes: confirming that the anti-piracy serial number verification error occurs, and the board continues to run the boot program.

[0051] For example, when verifying the anti-piracy serial number, if the anti-piracy serial number verification error occurs, it means that the board is pirated, and the program will remain in the boot program and will not be updated to prevent the program from being leaked.

[0052] Continue to combine Figure 3 As shown, in some implementations, confirming that the second board version data in the Flash storage area is consistent with the second board version data in the DDR3 controller includes: reading the second board version data according to the starting address and length of the second board version data stored in the Flash storage area.

[0053] The second board version data stored in the Flash storage area is read to facilitate comparison with the second board version data in the DDR3 controller, thereby confirming that the data update result in the Flash storage area is correct.

[0054] Continue to combine Figure 2 As shown, in some embodiments, the method for curing the board card also includes a host computer, the host computer is connected to the board card, and obtains an update completion signal. Restarting the board card includes: the board card returns the update completion signal to the host computer, and the host computer controls the board card to restart.

[0055] The host computer is used to control the operation of the program in the board when the board is updated. After the board is updated, the board is restarted, and whether the update is successful is determined based on the program running when the board is restarted. For example, after the board completes the operation, the board sends an update completion signal to the host computer, and the host computer controls the board to restart. After the restart, the board sends the board version data stored in the Flash storage area, so as to determine the version of the program in the board based on the board version data, and then determine whether the board update is successful.

[0056] Continue to combine Figure 3 As shown, in some implementations, obtaining the board update result includes: if the board runs an application, the update is successful; if the board runs a boot program, the update fails.

[0057] For example, if the host computer controls the board and then restarts it and then runs the application, it means that the board has been updated successfully. If the board runs the boot program, it means that the board has not been updated successfully and needs to be updated again through the boot program.

[0058] In some implementations, the board card further includes an indicator light, and obtaining the board card update result further includes: if the update is successful, the indicator light is off; if the update fails, the indicator light is on, and the indicator light is helpful for more direct understanding of the board card update result.

[0059] Combined with Figure 3As shown, the method for facilitating the curing of the board card of the present invention first needs to power on the board card to ensure that the board card can operate normally during the updating process so that the board card can be updated normally. After the board card is powered on, it is necessary to read the anti-piracy serial number in the Flash storage area and compare the anti-piracy serial number to prevent the pirated board card from being updated, thereby causing the program to be leaked and causing losses. At the same time, the updating status of the board card is judged according to whether the anti-piracy serial number is valid; if the verification result is that the anti-piracy serial number is invalid, it means that the anti-piracy serial number stored in the board card has been erased. Usually, this situation occurs when the board card is updated. When the anti-piracy serial number stored in the board card is erased, After the anti-piracy serial number is detected, the power is cut off. When the board is electrically reconnected, the anti-piracy serial number stored inside the board has been erased. Therefore, when the board is powered on again and the anti-piracy serial number stored inside the board is verified, it will be detected that the anti-piracy serial number stored inside the board is empty, that is, the anti-piracy serial number stored inside the board is invalid. After knowing the status of the board, run the boot program to boot and update the board; if the anti-piracy serial number stored inside the board is verified to be valid, it means that the anti-piracy serial number stored inside the board has not been erased, or the anti-piracy serial number stored inside the board has been updated. When the anti-piracy serial number stored in the board is correct, it is necessary to detect whether it is correct to prevent piracy. When the anti-piracy serial number stored in the board is correct, the host computer controls the board to run the application program. It can judge the version of the program inside the board according to the application program running on the board, and then judge whether the board has been updated. At the same time, it can be used as a basis for judging whether the board update is successful. After verifying the anti-piracy serial number stored in the board, when the board receives the update command sent by the host computer, it sends the second board version data that needs to be updated to the board, reads the first board version data stored in the Flash storage area, and updates the first board version data. The second version data is compared with the first board version data stored in the Flash storage area inside the board, so as to confirm that the updated program is suitable for the hardware platform and application scenario of the board, and the second board version data is stored in the DDR3 controller, then the anti-piracy serial number and the first board version data are erased, and the second board version data stored in the DDR3 is written into the Flash storage area, and then the second board version data stored in the Flash storage area is read and compared with the second board version data stored in the DDR3, so as to ensure that the second board version data stored in the Flash storage area is updated correctly;After confirming that the second board version data stored in DDR3 is consistent with the second board version data stored in the Flash storage area, and after the application is updated, rewrite the anti-piracy serial number and send a more recent completion signal to the host computer. At this time, it is necessary to detect whether the update is successful. The host computer controls the board to restart. At this time, if the board runs the boot program after restarting, it means that the update is unsuccessful. The board is guided by the boot program to update again. If the board runs the application after restarting, it means that the board has been updated successfully. ;

[0060] Continue to combine Figure 2 As shown, the present invention also provides a system for curing a board card, including a board card and a host computer, the board card including a DDR3 controller, a Flash storage area, an ENET network port module and a UART debugging module, the board card is connected to the host computer through the ENET network port, the Flash storage area stores a boot program, an anti-piracy serial number, a first board card version data and an application program, the host computer is used to provide the board card with an application program that needs to be updated, the DDR3 controller is used to temporarily store the application program that needs to be updated, the Flash storage area is used to store the boot program, the anti-piracy serial number, the first board card version data and the application program, the ENET network port module is used for the board card to communicate with the host computer, and the UART debugging module prints data.

[0061] The present invention also provides a storage medium, in which a computer program is stored. When the computer program is executed, it is used to implement the above method.

[0062] In summary, the present invention provides a method, system and storage medium for curing a board card, which prevents the program from being stolen by setting an anti-piracy serial number, and adopts a method of erasing the anti-piracy serial number in the Flash storage area to prevent the board card from failing to work normally after re-electrical connection due to update failure caused by unexpected situations such as sudden power failure or network interruption during the update process; after the board card is updated, there is no need to manually power on the board card again to obtain the update result of the board card, which saves a lot of manpower, greatly improves the efficiency of board card curing, and reduces the difficulty of board card curing.

[0063] The above implementation modes are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with this technology to understand the content of the present invention and implement it. They cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for curing a board, characterized in that: The board includes a Flash storage area and a DDR3 controller, the Flash storage area stores an anti-piracy serial number and first board version data, and the method includes: Acquire the anti-piracy serial number and the first board version data, verify the anti-piracy serial number, and acquire the board version that needs to be updated according to the first board version data; Obtain an update command, the board obtains the second board version data that needs to be updated, determines that the hardware platform and application scenario corresponding to the second board version data are consistent with the hardware platform and application scenario of the first board version data, and sends the second board version data to the DDR3 controller; Erasing the anti-piracy serial number in the Flash storage area, erasing the first board version data in the Flash storage area, and writing the second board version data in the DDR3 controller into the Flash storage area; Confirm that the second board version data in the Flash storage area is consistent with the second board version data in the DDR3 controller, and update the anti-piracy serial number; Obtain an update completion signal, restart the board, and obtain the board update result; The Flash storage area also stores a boot program and an application program, wherein the checking of the anti-piracy serial number includes: confirming that the anti-piracy serial number is invalid, then running the boot program; confirming that the anti-piracy serial number is valid, then running the application program; The verifying the anti-piracy serial number also includes: confirming that the anti-piracy serial number is verified correctly and running the application; The checking of the anti-piracy serial number further comprises: confirming that the anti-piracy serial number is checked incorrectly, and the board continues to run the boot program; The confirming that the second board version data in the Flash storage area is consistent with the second board version data in the DDR3 controller comprises: reading the second board version data according to the starting address and length of the second board version data stored in the Flash storage area; It also includes a host computer, which is connected to the board card, and is characterized in that the obtaining of the update completion signal and restarting the board card comprises: the board card returns the update completion signal to the host computer, and the host computer controls the board card to restart; The obtaining of the board update result includes: if the board runs the application program, the update is successful; if the board runs the boot program, the update fails; The board card also includes an indicator light, and obtaining the board card update result also includes: if the update is successful, the indicator light is off; if the update fails, the indicator light is on.

2. A system for facilitating the curing of boards, characterized in that: The method for curing a board card according to claim 1 is applied, wherein the system includes a board card and a host computer, the board card includes a DDR3 controller, a Flash storage area, an ENET network port module and a UART debugging module, the board card is connected to the host computer through the ENET network port, and the Flash storage area stores a boot program, an anti-piracy serial number, a first board card version data and an application program.

3. A storage medium, characterized in that: The storage medium stores a computer program, which is used to implement the method according to claim 1 when executed.

Citation Information

Patent Citations

  • Program updating recognition method and system applied in embedded program development

    CN106775778A

  • Communication method, device and system based on acquisition board card and storage medium

    CN111585794A