Industrial control product board system upgrading method

By implementing automatic detection, download and update system upgrade method under Uboot programs, the problem of the industrial control product board cannot be upgraded without desktop environment is solved, automated system upgrade and verification is realized, and maintenance convenience and reliability are improved.

CN119311292APending Publication Date: 2025-01-14KYLIN CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411373096.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The existing technology cannot achieve system upgrade on industrial control product boards without desktop environments, especially those product boards that are packaged in the entire machine and do not have external debugging serial ports, and cannot perform system upgrades through traditional OTA functions.

Method used

By implementing automatic detection, automatic download and automatic update logic under Uboot programs, the network and tftp servers are used to download and verify system files, and the system is automatically upgraded without disassembling the product shell, using red and green The indicator light shows the upgrade progress and results.

Benefits of technology

It realizes automatic system upgrade on the industrial control product board without a desktop environment, improves the convenience and reliability of system maintenance, and ensures the reliability of network transmission and visualization of the upgrade process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119311292A_ABST
    Figure CN119311292A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of system upgrading, and particularly provides a system upgrading method of an industrial control product board, which comprises the following steps sequentially executed by entering Uboot: S10: completing an initialization function of basic hardware; s20, whether a specific IP address exists or not is detected through a ping command, if not, an initial system is loaded and started, and if yes, the steps S30-S50 are executed, and system upgrading is carried out; s30, downloading a to-be-upgraded system file to a local memory from a device corresponding to the specific IP address through a tftp server; s40, crc verification of the system file to be upgraded is completed, and if crc verification fails, an initial system is loaded and started; s50, programming the to-be-upgraded system file into the corresponding disk partition; and S60, after programming is completed, loading and starting the upgraded system. Through the technical scheme, the technical problem that a system upgrading method in the prior art cannot be applied to an industrial control product board without a desktop environment is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of system upgrade, and specifically provides a system upgrade method for an industrial control product board. Background Art

[0002] With the increasing application and demand for domestic operating systems in the field of industrial control, some application scenarios without desktop environments have emerged. In such scenarios, when upgrading and updating the system, a convenient system upgrade method needs to be provided.

[0003] The general system upgrade method is usually based on the OTA function of the desktop environment, and the system upgrade is completed directly through the interface operation at the application layer. Although this method can quickly and conveniently complete the system upgrade function, there are limitations. For industrial control product boards that do not have a desktop environment, the entire machine has been encapsulated in a shell, and there is no external debugging serial port, the purpose of system upgrade cannot be achieved. Summary of the invention

[0004] In order to overcome the above defects, the present invention is proposed to solve the technical problem that the system upgrade method in the prior art cannot be applied to industrial control product boards without a desktop environment.

[0005] The present invention provides a system upgrade method for an industrial control product board. After the industrial control product board is connected to a network and powered on, the Uboot is entered and the following steps are performed in sequence: S10: Complete the initialization function of basic hardware; S20: Use the ping command to detect whether the specific IP address exists. If not, load and start the initial system. If it exists, execute steps S30-S50 to upgrade the system. S30: Downloading the system file to be upgraded from the device corresponding to the specific IP address to the local memory through the tftp server; S40: Complete the CRC check of the system file to be upgraded. If the CRC check fails, load and start the initial system; S50: Burn the system file to be upgraded into the corresponding disk partition; S60: After the flashing is completed, load and start the upgraded system.

[0006] Furthermore, the system upgrade method further includes: Configure the IP address of the network device that stores the system file to be upgraded to a specific IP address that can be detected by Uboot, then open the gadget on the tftp server and specify the path of the system file to be upgraded.

[0007] Furthermore, the industrial control product board is provided with a red LED light controlled by Uboot, and if there is a specific IP address, the red LED light is lit at the same time.

[0008] Further, when executing steps S30-S50, the red LED light flashes.

[0009] Further, after step S50 is executed, the red LED is always on.

[0010] Furthermore, the industrial control product board is provided with a green LED light controlled by Uboot, and if the CRC check fails, the green LED light is lit at the same time.

[0011] Furthermore, the step S50 also includes, if the system has a backup partition, then synchronously burning it into the backup partition.

[0012] Working principle and beneficial effects of the present invention: In the technical solution of the present invention, the automatic detection and automatic upgrade functions at power-on are realized under the Uboot program. Communication is established with the network device with the system files to be upgraded through the network, and the system files to be upgraded are downloaded through the TFTP server. The system files to be upgraded downloaded to the local will be CRC verified to ensure the reliability of network transmission. The automatic upgrade of the system is completed without disassembling the product shell for the industrial control product version without a desktop environment, which is convenient for system maintainers to upgrade and maintain the product. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The disclosure of the present invention will become more easily understood with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the scope of protection of the present invention. In addition, similar numbers in the figures are used to represent similar components, among which: Figure 1 It is a flowchart of the main steps of the system upgrade method in Example 1 of the present invention.

[0014] Figure 2 It is a flowchart of the main steps of the system upgrade method in Example 2 of the present invention. DETAILED DESCRIPTION

[0015] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention. Example 1

[0016] The system upgrade method proposed in this embodiment is mainly aimed at industrial control product boards that do not have a desktop environment, have a packaged shell, and do not have an external debugging serial port. The system upgrade of the industrial control product board is assisted by a network card and implements a set of automatic detection, automatic download, and automatic update logic under the Uboot boot loader.

[0017] Figure 1 1 is a schematic diagram of the main steps of the system upgrade method in Example 1 of the present invention. Figure 1 As shown, in the present embodiment, a method for upgrading an industrial control product board system enters the Uboot boot loader and sequentially executes the following steps S10 to S60 after the industrial control product board is connected to the network through a network card and powered on.

[0018] Step S10: The industrial control product board is powered on, and Uboot completes the initialization function of the basic hardware.

[0019] Step S20: Uboot uses the ping command to detect whether a device with a specific IP address exists. If not, the initial system is loaded and started normally; if it exists, steps S30-S50 are executed to upgrade the system.

[0020] In one implementation, the specific IP address corresponds to a network device that stores the system file to be upgraded, which can usually be a personal laptop or PC. On the corresponding network device, the IP address of the local machine (the network device) needs to be configured in advance as a specific IP address that can be detected by Uboot, and then the gadget on the tftp server is opened to specify the path of the system file or image to be upgraded, so as to prepare for the subsequent Uboot self-detection and automatic upgrade functions.

[0021] Step S30: Uboot downloads the system file to be upgraded from the device with a specific IP address to the local memory through the tftp server.

[0022] Step S40: Uboot completes the CRC check of the system file to be upgraded to ensure the correctness of the downloaded file and will not cause the upgraded system to malfunction. If the check fails, the initial system is loaded and started.

[0023] Step S50: Uboot burns the system file to be upgraded into the corresponding disk partition. If the system has a backup partition, it is burned into the backup partition synchronously.

[0024] In one implementation, if there is a system backup partition in the storage device (such as hard disk, eMMC, etc.) of the industrial control product board, the purpose of the backup partition is to prevent a partition from being accidentally damaged, causing the system to fail to boot normally; the system here refers to the software system environment of the current industrial control product board.

[0025] Step S60: After the burning is completed, the upgraded system is loaded and started.

[0026] Based on the above steps S10-S60, the automatic detection and automatic upgrade functions at power-on are realized under the Uboot program. Communication is established with the network device with the system files to be upgraded through the network, and the system files to be upgraded are downloaded through the TFTP server. The system files to be upgraded downloaded to the local computer will be CRC verified to ensure the reliability of network transmission. The automatic upgrade of the system without removing the product shell for the industrial control product version without a desktop environment is solved, which is convenient for system maintainers to upgrade and maintain the product. Example 2

[0027] Based on Example 1, the industrial control product board also has a red LED light and a green LED light controlled by the Uboot boot loader to indicate the progress and behavior during the system upgrade process. The system upgrade of the industrial control product board implements a set of automatic detection, automatic download, and automatic update logic under the Uboot boot loader with the assistance of a network card and indicator lights.

[0028] Figure 2 1 is a flow chart of the main steps of the system upgrade method in Embodiment 2 of the present invention. Figure 2 As shown, in the present embodiment, a method for upgrading an industrial control product board system enters the Uboot boot loader and sequentially executes the following steps S10 to S60 after the industrial control product board is connected to the network through a network card and powered on.

[0029] Step S10: The industrial control product board is powered on, and Uboot completes the initialization function of the basic hardware.

[0030] Step S20: Uboot uses the ping command to detect whether the device with the specific IP address exists. If not, the initial system is loaded normally to start. If it exists, steps S30-S50 are executed to upgrade the system. At the same time, when uboot detects the existence of the specific IP address, the red LED light is turned on to indicate that the device is detected and the process of automatically upgrading the system begins.

[0031] In one implementation, the specific IP address corresponds to a network device that stores the system file to be upgraded, which can usually be a personal laptop or PC. On the corresponding network device, the IP address of the local machine (the network device) needs to be configured in advance as a specific IP address that can be detected by Uboot, and then the gadget on the tftp server is opened to specify the path of the system file or image to be upgraded, so as to prepare for the subsequent Uboot self-detection and automatic upgrade functions.

[0032] After the red LED light is turned on in step S20, during the execution of steps S30-S50, if the execution goes smoothly, the Uboot control keeps flashing the red LED light, indicating that the automatic upgrade process is in progress.

[0033] Step S30: Uboot downloads the system file to be upgraded from the device with a specific IP address to the local memory through the tftp server.

[0034] Step S40: Uboot completes the CRC check of the system file to be upgraded to ensure the correctness of the downloaded file and will not cause the upgraded system to malfunction. If the check fails, the initial system is loaded and started, and the green LED light is turned on, indicating that the automatic upgrade has failed. The operation and maintenance personnel can perform corresponding maintenance on the industrial control product board according to the indicator light.

[0035] Step S50: Uboot burns the system file to be upgraded into the corresponding disk partition. If the system has a backup partition, it is burned into the backup partition synchronously.

[0036] Step S60: After the burning is completed, the upgraded system is loaded and started. Uboot controls the red LED light to be always on, indicating that the automatic upgrade process of the system is completed. In this embodiment, the LED light indicates the current operation and the final result, so that the system maintainer can see the specific progress and the next operation. In this way, the system maintainer can easily complete the automatic upgrade and debugging of the system for the industrial control product hardware in batches.

[0037] It should be pointed out that although the various steps in the above embodiments are described in a specific order, those skilled in the art can understand that in order to achieve the effects of the present invention, different steps do not have to be performed in such an order, and they can be performed simultaneously (in parallel) or in other orders. These changes are within the scope of protection of the present invention.

[0038] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. A system upgrade method for an industrial control product board, characterized in that: After the industrial control product board is connected to the network and powered on, enter Uboot and perform the following steps in sequence: S10: Complete the initialization function of basic hardware; S20: Use the ping command to detect whether the specific IP address exists. If not, load and start the initial system. If it exists, execute steps S30-S50 to upgrade the system. S30: Downloading the system file to be upgraded from the device corresponding to the specific IP address to the local memory through the tftp server; S40: Complete the CRC check of the system file to be upgraded. If the CRC check fails, load and start the initial system; S50: Burn the system file to be upgraded into the corresponding disk partition; S60: After the flashing is completed, load and start the upgraded system.

2. A system upgrade method for an industrial control product board according to claim 1, characterized in that: The system upgrade method further includes: Configure the IP address of the network device that stores the system file to be upgraded to a specific IP address that can be detected by Uboot, then open the gadget on the tftp server and specify the path of the system file to be upgraded.

3. A system upgrade method for an industrial control product board according to claim 1, characterized in that: The industrial control product board is provided with a red LED light controlled by Uboot. If a specific IP address exists, the red LED light is lit at the same time.

4. A system upgrade method for an industrial control product board according to claim 3, characterized in that: When executing steps S30-S50, the red LED light flashes.

5. A system upgrade method for an industrial control product board according to claim 4, characterized in that: After step S50 is executed, the red LED is always on.

6. The system upgrade method of an industrial control product board according to claim 1, characterized in that: The industrial control product board is provided with a green LED light controlled by Uboot. If the CRC check fails, the green LED light is lit at the same time.

7. A system upgrade method for an industrial control product board according to claim 1, characterized in that: The step S50 also includes, if the system has a backup partition, synchronously burning it into the backup partition.