A firmware upgrade system and method based on BLVDS bus
Through the firmware upgrade system based on the BLVDS bus, combined with the Guomin lightweight encryption and decryption algorithm and Ethernet interface, an efficient and secure firmware upgrade is achieved, solving the problems of inefficient traditional JTAG interfaces and insufficient security in remote upgrades, and is suitable for industrial automation control fields.
Patent Information
- Application Number
- CN202310045810.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-30
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2043-01-30
AI Technical Summary
In the prior art, the point-to-point firmware upgrade of traditional JTAG interfaces is inefficient, and remote upgrades have security risks and slow upgrade speeds. Especially in large-scale control networks, it is difficult to upgrade equipment in batches and lacks security.
The firmware upgrade system based on the BLVDS bus is adopted, and the main control module and the IO expansion module combine the BLVDS bus and Ethernet interface to achieve firmware upgrades. The National Secret lightweight encryption and decryption algorithm is used to ensure security and efficiency, and support batch and point-to-point upgrade operations.
It has achieved efficient and secure firmware upgrades, solved the problem of upgrading difficulty and security in the later stages of mass production and use of equipment, reduced the risk of communication leakage, and improved the upgrade speed and flexibility.
Smart Images

Figure CN116107608B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of industrial automation control, and in particular to a firmware upgrade system and method based on a BLVDS bus. Background Art
[0002] BLVDS (Bus Low Voltage Differential Signaling) is a bus interface circuit based on LVDS technology. With the widespread adoption of industrial control networks, small control networks can have dozens of devices, while larger ones can have hundreds or even thousands. Networked control has brought significant convenience to our production and daily lives, but it has also created new challenges. With the use of networked control systems, product upgrades are essential, and upgrading every device in the network becomes a major maintenance challenge. Currently, device upgrades can be performed on-site or remotely. On-site upgrades involve point-to-point device upgrades using the traditional JTAG port, which is highly inefficient. For large control networks, individual upgrades are impractical. Remote upgrades are performed using common network interfaces such as Ethernet. However, these external communication interfaces carry the risk of introducing cyberattacks and tampering into the system.
[0003] Existing firmware upgrade solutions, similar to the present invention, include CN115357274A and CN115048130A. CN115357274A primarily addresses the insecurity of Ethernet upgrades, including encryption and decryption processing and packet upgrades. However, the encryption and decryption process requires increased resources and reduced real-time performance. If the firmware upgrade requires encryption and decryption transmission for all modules in the system, authentication interactions between modules are also required, making the upgrade process extremely cumbersome. Furthermore, each module requires its own encryption and decryption algorithms and authentication system, increasing the difficulty and resource consumption of device development and easily introducing unnecessary exceptions. CN115048130A also primarily proposes a software architecture for remote upgrades via Ethernet. Consequently, existing technologies present security risks such as communication leaks caused by remote upgrades, as well as upgrade speed issues. Furthermore, batch upgrades in the later stages of device mass production and use are difficult, lack security, and are inefficient and inflexible.
[0004] In view of this, it is necessary for the present invention to propose a firmware upgrade system and method based on the BLVDS bus. Summary of the Invention
[0005] The purpose of this invention is to provide a firmware upgrade system and method based on the BLVDS bus. This system addresses the inefficiency and inflexibility of point-to-point firmware upgrades using the traditional JTAG interface, as well as the difficulty and lack of security associated with batch upgrades required during the later stages of mass production. Furthermore, it addresses security concerns such as communication leaks and upgrade speed associated with remote upgrades. By leveraging the BLVDS bus for firmware upgrades, while also leveraging the flexibility and openness of Ethernet, this system ensures both efficient upgrades and firmware security for the entire system.
[0006] The present invention provides a firmware upgrade system based on a BLVDS bus, comprising: a main control module and multiple IO expansion modules, wherein the main control module and the IO expansion modules are communicatively connected via a backplane BLVDS bus, and are configured to obtain corresponding firmware execution commands and firmware upgrade programs according to a predefined message protocol of the firmware upgrade program, wherein the firmware execution commands are used to determine whether operations related to upgrading, erasing, or reading flash firmware upgrades are required;
[0007] The main control module is connected to the host computer through the remote upgrade interface on the upper side and is connected to the IO expansion module through the BLVDS bus on the lower side. When the firmware is upgraded, the main control module obtains the encrypted firmware upgrade program from the host computer through the remote upgrade interface, decrypts the encrypted firmware upgrade program, and packages the decrypted firmware upgrade program according to the command of the remote firmware upgrade message and the BLVDS bus protocol to output the BLVDS firmware upgrade message;
[0008] The IO expansion module is used to upgrade the firmware based on the BLVDS bus, identify the firmware execution command and extract the firmware upgrade program, convert the firmware execution command and the firmware upgrade program into register instructions or data operation instructions corresponding to the flash programming, and convert them into the timing corresponding to the flash interface and transmit them to the flash programming, thereby completing the upgrade, erase or read.
[0009] Preferably, the main control module is provided with an Ethernet interface and a BLVDS bus interface, the main control module is connected to the host computer via the Ethernet interface, and the main control module is connected to the plurality of IO expansion modules respectively via the BLVDS bus interface.
[0010] Preferably, the main control module includes a national secret lightweight encryption and decryption module, an interface communication management module, a BLVDS protocol conversion module and a FLASH driver module. The national secret lightweight encryption and decryption module is communicated with the interface communication management module, the interface communication management module and the BLVDS protocol conversion module in sequence. At the same time, the interface communication management module is communicated with the FLASH driver module. The national secret lightweight encryption and decryption module is connected to the Ethernet interface, the BLVDS protocol conversion module is connected to the BLVDS bus interface, and the FLASH driver module is connected to the FLASH interface.
[0011] Preferably, the IO expansion module includes an interface communication management module, a BLVDS protocol conversion module and a FLASH driver module. The BLVDS protocol conversion module and the interface communication management module and the FLASH driver module are connected in sequence, and the BLVDS protocol conversion module is connected to the BLVDS bus interface, and the FLASH driver module is connected to the FLASH interface.
[0012] Preferably, the remote firmware upgrade message includes an Ethernet firmware upgrade message, which adopts the Ethernet message format and adds firmware execution commands and firmware upgrade programs to the data. The commands include batch upgrade, point-to-point upgrade, erase, and read operations related to firmware flash upgrade properties.
[0013] Preferably, the BLVDS firmware upgrade message includes a command, an IO address, a length, data, and a checksum field, wherein the command includes operations related to batch upgrade, point-to-point upgrade, erasure, and reading of firmware flash attributes.
[0014] Preferably, the firmware upgrade program is packaged and encrypted by a host computer, and the encryption process adopts a national secret lightweight encryption algorithm.
[0015] Preferably, the remote upgrade interface includes any one of an Ethernet interface, a general CAN, an RS422, and a PCIE interface.
[0016] The present invention provides a firmware upgrade method based on a BLVDS bus, comprising:
[0017] During firmware upgrade, the main control module obtains the encrypted firmware upgrade program from the host computer via Ethernet. The firmware upgrade program is packaged and encrypted by the host computer. The encryption process adopts the national secret lightweight encryption algorithm.
[0018] The main control module decrypts the ciphertext firmware upgrade program, and packages the decrypted firmware upgrade program according to the command of the Ethernet upgrade message and the BLVDS bus protocol to output a BLVDS firmware upgrade message, wherein the BLVDS firmware upgrade message includes a command, an IO address, a length, data, and a checksum field;
[0019] The main control module and each IO expansion module obtain corresponding firmware execution commands and firmware upgrade programs according to a predefined firmware upgrade program message protocol, wherein the firmware execution command is used to determine whether upgrade, erase, read and other operations related to flash firmware upgrade are required;
[0020] The main control module and the IO expansion module identify the firmware execution command and extract the firmware upgrade program information through the interface communication management module, convert the firmware execution command and the firmware upgrade program into register instructions or data operation instructions corresponding to the flash writing, and convert them into the timing corresponding to the flash interface through the flash driving module and transmit them to the flash writing, thereby completing the upgrade, erase or read operation;
[0021] Among them, the commands include batch upgrade, point-to-point upgrade, erase, read and upgrade attribute-related operations of the firmware flash. The batch upgrade command is used to transmit the upgrade program to all IO expansion modules, and the point-to-point upgrade is targeted according to the address field in the upgrade program.
[0022] The present invention provides a computer-readable medium storing a computer program. When the computer program is executed by one or more processors, the BLVDS bus-based firmware upgrade method according to an embodiment of the present invention is implemented.
[0023] With respect to the prior art, the present invention has the following beneficial effects:
[0024] The present invention combines the universality of industrial Ethernet with the strong anti-interference and high-speed transmission advantages of the BLVDS bus to realize a firmware upgrade method and system based on the BLVDS bus. The present invention focuses on upgrading the firmware through the BLVDS bus. The main control module of the system can obtain the firmware upgrade program through Ethernet. The main control module is equipped with an encryption and decryption module for external Ethernet. The encryption and decryption algorithm adopts a national secret lightweight algorithm, which is safer than the commonly used international encryption and decryption algorithm. The lightweight algorithm ensures that its encryption and decryption process is more efficient than the ordinary encryption and decryption process. The vast majority of modules in the system are IO expansion modules, and the IO expansion modules use the BLVDS port for firmware upgrades. As an internal backplane bus, BLVDS uses a custom protocol and does not require an additional encryption algorithm. While ensuring efficient upgrades, it also ensures the firmware security of the entire system.
[0025] This invention addresses the inefficiency and inflexibility of traditional JTAG interface point-to-point firmware upgrades, and solves the difficulties and security issues of batch upgrades required in the later stages of mass production. It also addresses security risks such as communication leaks and upgrade speed issues brought about by remote upgrades. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 1 is a structural diagram of a firmware upgrade system based on a BLVDS bus according to an embodiment of the present invention;
[0027] Figure 2 Schematic diagram of the Ethernet firmware upgrade message format according to an embodiment of the present invention;
[0028] Figure 3 Schematic diagram of the BLVDS firmware upgrade message format in an embodiment of the present invention;
[0029] Figure 4 This is a diagram showing the internal structure of the main control module in an embodiment of the present invention;
[0030] Figure 5 This is a diagram of the internal structure of the IO expansion module in an embodiment of the present invention. DETAILED DESCRIPTION
[0031] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0032] The present invention provides a BLVDS bus-based firmware upgrade system comprising: a main control module and multiple IO expansion modules, wherein the main control module and the IO expansion modules are communicatively connected via a backplane BLVDS bus and are configured to obtain corresponding firmware execution commands and a firmware upgrade program according to a predefined firmware upgrade program message protocol, wherein the firmware execution commands are used to determine whether an upgrade, erasure, or read operation related to a flash firmware upgrade is required; wherein the remote firmware upgrade message comprises an Ethernet firmware upgrade message, wherein the message adopts an Ethernet message format and includes the firmware execution commands and the firmware upgrade program in the data, wherein the commands include batch upgrade, point-to-point upgrade, erasure, and read operation related to firmware flash upgrade attributes. The firmware upgrade program is packaged, encapsulated, and encrypted by a host computer, and the encryption process adopts a national secret lightweight encryption algorithm, which ensures both security and high efficiency of encryption and decryption.
[0033] The main control module is connected to the host computer through the remote upgrade interface at the top and is connected to the IO expansion module through the BLVDS bus at the bottom. It is used to obtain the encrypted firmware upgrade program from the host computer through the remote upgrade interface during the firmware upgrade, decrypt the encrypted firmware upgrade program, and package the decrypted firmware upgrade program according to the command of the remote firmware upgrade message and the BLVDS bus protocol to output a BLVDS firmware upgrade message; the BLVDS firmware upgrade message includes a command, IO address, length, data and check field, wherein the command includes batch upgrade, point-to-point upgrade, erase, read and other operations related to firmware flash attributes.
[0034] The IO expansion module is used to upgrade the firmware based on the BLVDS bus, identify the firmware execution command and extract the firmware upgrade program, convert the firmware execution command and the firmware upgrade program into register instructions or data operation instructions corresponding to the flash programming, and convert them into the timing corresponding to the flash interface and transmit them to the flash programming, thereby completing the upgrade, erase or read.
[0035] Specifically, the main control module is equipped with an Ethernet interface and a BLVDS bus interface. The main control module is connected to the host computer via the Ethernet interface, and the main control module is connected to the multiple IO expansion modules via the BLVDS bus interface. The main control module firmware upgrade method is converted from the traditional JTAG point-to-point upgrade to a flexible and open Ethernet upgrade. The upgrade program transmitted via the Ethernet port is encrypted using a lightweight national encryption algorithm to ensure the security of the upgrade program during Ethernet transmission.
[0036] Specifically, the main control module includes a national secret lightweight encryption and decryption module, an interface communication management module, a BLVDS protocol conversion module and a FLASH driver module. The national secret lightweight encryption and decryption module is communicated with the interface communication management module, the interface communication management module and the BLVDS protocol conversion module in sequence. At the same time, the interface communication management module is communicated with the FLASH driver module, the national secret lightweight encryption and decryption module is connected to the Ethernet interface, the BLVDS protocol conversion module is connected to the BLVDS bus interface, and the FLASH driver module is connected to the FLASH interface.
[0037] Specifically, the IO expansion module includes an interface communication management module, a BLVDS protocol conversion module, and a FLASH driver module. The BLVDS protocol conversion module is connected to the interface communication management module and the FLASH driver module in sequence. The BLVDS protocol conversion module is connected to the BLVDS bus interface, and the FLASH driver module is connected to the FLASH interface. The IO expansion module's firmware upgrade method is converted from traditional JTAG point-to-point upgrades to BLVDS bus-based upgrades. The security of the BLVDS bus's internal bus and the BLVDS bus's custom protocol ensure the security and efficiency of the upgrade process.
[0038] The embodiment of the present invention implements a firmware upgrade method and system based on the BLVDS bus based on the FPGA chip, and realizes the firmware upgrade module of the system's main control module and IO expansion module. The system includes a main control module and an IO expansion module, and the main control module and the IO expansion module are interconnected through the backplane BLVDS bus communication. The main control module has an Ethernet port, a BLVDS bus interface, etc., and the IO expansion module has a BLVDS interface. The main control module includes a national secret lightweight encryption and decryption module, an interface communication management module, a BLVDS protocol conversion module, a FLASH driver module, etc. The IO expansion module includes an interface communication management module, a BLVDS protocol conversion module, a FLASH driver module, etc. The main control module is connected to the host computer through Ethernet at the top and connected to the IO expansion module through BLVDS at the bottom. Appendix Figure 1 The following is a diagram of the system architecture.
[0039] The firmware upgrade process is as follows:
[0040] After power-on, the main control module obtains the encrypted firmware upgrade program from the host computer via Ethernet. The firmware upgrade program is packaged and encrypted by the host computer. The encryption process uses the national secret lightweight encryption algorithm. The Ethernet firmware upgrade message is as follows Figure 2 As shown in the figure, the message uses the common Ethernet message format and contains firmware execution commands and upgrade programs. The commands include batch upgrade, point-to-point upgrade, erase, read, and other operations on the firmware flash. The batch upgrade command is used to transmit the upgrade program to all I / O expansion modules, while point-to-point upgrade performs targeted upgrades based on the address field in the upgrade program.
[0041] The main control module decrypts the encrypted firmware upgrade program and packages the decrypted firmware upgrade program according to the command of the Ethernet upgrade message and the BLVDS bus protocol. The BLVDS firmware upgrade message is as follows: Figure 3As shown in the figure, a BLVDS firmware upgrade message includes fields such as command, I / O address, length, data, and checksum. Commands include batch upgrade, point-to-point upgrade, erase, and read operations on the firmware flash. Batch upgrade commands are used to transmit the upgrade program to all I / O expansion modules, while point-to-point upgrades are targeted based on the address field in the upgrade program.
[0042] The main control module and each IO expansion module obtain the corresponding firmware execution command and firmware upgrade program according to the predefined firmware upgrade program message protocol, where the firmware execution command is used to determine whether the flash firmware needs to be upgraded, erased, read, etc. The internal structure diagram of the main control module and IO expansion module is shown in the attached figure. Figure 4 , Attachment Figure 5 As shown. The main control module and the IO expansion module identify the firmware execution command and extract information such as the firmware upgrade program through the interface communication management module, convert the firmware execution command and the firmware upgrade program into register instructions or data operation instructions corresponding to the flash memory, and convert them into the timing corresponding to the flash memory interface through the flash memory driver module and transmit them to the flash memory, thereby completing the upgrade, erase or read operations. The technical solution adopted in the above embodiment can not only upgrade the firmware of the main control module and the IO expansion module, but also read the firmware from the flash memory or erase the firmware.
[0043] The embodiment of the present invention combines the universality of industrial Ethernet with the strong anti-interference and high-speed transmission advantages of the BLVDS bus to realize a firmware upgrade method and system based on the BLVDS bus. The present invention focuses on upgrading the firmware through the BLVDS bus. The main control module of the system can obtain the firmware upgrade program through Ethernet. The main control module is equipped with an encryption and decryption module for external Ethernet. The encryption and decryption algorithm adopts a national secret lightweight algorithm, which is safer than the commonly used international encryption and decryption algorithm. The lightweight algorithm ensures that its encryption and decryption process is more efficient than the ordinary encryption and decryption process. The vast majority of modules in the system are IO expansion modules, and the IO expansion modules use the BLVDS port for firmware upgrades. As an internal backplane bus, BLVDS uses a custom protocol and does not require an additional encryption algorithm. While ensuring efficient upgrades, it also ensures the firmware security of the entire system.
[0044] The preferred solution for this system is to implement it in hardware using an FPGA, which offers advantages in execution efficiency and real-time performance. However, similar devices implemented using software such as ARM are also within the scope of this invention. To avoid security risks such as communication leaks and upgrade speed issues caused by remote upgrades, a data encryption and decryption module can also be added to the BLVDS data transmission end of this invention.
[0045] The remote upgrade interface is not limited to the Ethernet interface, and other common interfaces such as CAN, RS422, PCIE, etc. should also fall within the scope of protection of the present invention.
[0046] The present invention provides a firmware upgrade method based on a BLVDS bus, comprising the following steps:
[0047] During firmware upgrade, the main control module obtains the encrypted firmware upgrade program from the host computer via Ethernet. The firmware upgrade program is packaged and encrypted by the host computer. The encryption process adopts the national secret lightweight encryption algorithm.
[0048] The main control module decrypts the ciphertext firmware upgrade program, and packages the decrypted firmware upgrade program according to the command of the Ethernet upgrade message and the BLVDS bus protocol to output a BLVDS firmware upgrade message, wherein the BLVDS firmware upgrade message includes a command, an IO address, a length, data, and a checksum field;
[0049] The main control module and each IO expansion module obtain corresponding firmware execution commands and firmware upgrade programs according to a predefined firmware upgrade program message protocol, wherein the firmware execution command is used to determine whether upgrade, erase, read and other operations related to flash firmware upgrade are required;
[0050] The main control module and the IO expansion module identify the firmware execution command and extract the firmware upgrade program information through the interface communication management module, convert the firmware execution command and the firmware upgrade program into register instructions or data operation instructions corresponding to the flash writing, and convert them into the timing corresponding to the flash interface through the flash driving module and transmit them to the flash writing, thereby completing the upgrade, erase or read operation;
[0051] Among them, the commands include batch upgrade, point-to-point upgrade, erase, read and upgrade attribute-related operations of the firmware flash. The batch upgrade command is used to transmit the upgrade program to all IO expansion modules, and the point-to-point upgrade is targeted according to the address field in the upgrade program.
[0052] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by one or more processors, the method for upgrading firmware based on the BLVDS bus as in the embodiment of the present invention is implemented. If the system / module in the embodiment is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of software, and the computer-readable storage medium can be a non-volatile computer-readable storage medium, or the computer-readable storage medium can be a volatile computer-readable storage medium. The computer-readable storage medium stores instructions, and when the instructions are run on a computer, the computer executes the steps of upgrading firmware based on the BLVDS bus in the embodiment.
[0053] Those skilled in the art will understand that the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of software. The computer software is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory ROM, a random access memory RAM, a magnetic disk, or an optical disk. Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0054] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A firmware upgrade system based on BLVDS bus, characterized in that: include: A main control module and multiple IO expansion modules, wherein the main control module and the IO expansion modules are communicatively connected via a backplane BLVDS bus, and are used to obtain corresponding firmware execution commands and firmware upgrade programs according to a predefined firmware upgrade program message protocol, wherein the firmware execution commands are used to determine whether upgrade, erasure, or read operations related to flash firmware upgrade are required; The main control module is connected to the host computer through the remote upgrade interface on the upper side and is connected to the IO expansion module through the BLVDS bus on the lower side. When the firmware is upgraded, the main control module obtains the encrypted firmware upgrade program from the host computer through the remote upgrade interface, decrypts the encrypted firmware upgrade program, and packages the decrypted firmware upgrade program according to the command of the remote firmware upgrade message and the BLVDS bus protocol to output the BLVDS firmware upgrade message; An IO expansion module is used to perform firmware upgrades based on the BLVDS bus, identify firmware execution commands and extract firmware upgrade programs, convert firmware execution commands and firmware upgrade programs into register instructions or data operation instructions corresponding to burning FLASH, and convert them into timing corresponding to the FLASH interface and transmit them to burning FLASH, thereby completing the upgrade, erasure or reading; the main control module is provided with an Ethernet interface and a BLVDS bus interface, the main control module is connected to the host computer through the Ethernet interface, and the main control module is connected to multiple IO expansion modules through the BLVDS bus interface; the main control module includes a national secret lightweight encryption and decryption module, an interface communication management module, a BLVDS protocol conversion module and a FLASH driver module, the national secret lightweight encryption and decryption module is sequentially communicated with the interface communication management module, the interface communication management module and the BLVDS protocol conversion module, and the interface communication management module is communicated with the FLASH driver module, the national secret lightweight encryption and decryption module is connected to the Ethernet interface, the BLVDS protocol conversion module is connected to the BLVDS bus interface, and the FLASH driver module is connected to the FLASH interface.
2. A firmware upgrade system based on a BLVDS bus as claimed in claim 1, characterized in that: The IO expansion module includes an interface communication management module, a BLVDS protocol conversion module and a FLASH driver module. The BLVDS protocol conversion module is connected to the interface communication management module and the FLASH driver module in sequence, and the BLVDS protocol conversion module is connected to the BLVDS bus interface, and the FLASH driver module is connected to the FLASH interface.
3. The firmware upgrade system based on the BLVDS bus according to claim 1, characterized in that: The remote firmware upgrade message includes an Ethernet firmware upgrade message, which adopts the Ethernet message format and adds firmware execution commands and firmware upgrade programs in the data. The commands include batch upgrade, point-to-point upgrade, erase, read and other operations related to firmware flash upgrade properties.
4. A firmware upgrade system based on a BLVDS bus as claimed in claim 1, characterized in that: The BLVDS firmware upgrade message includes a command, an IO address, a length, data, and a checksum field, wherein the command includes operations related to batch upgrade, point-to-point upgrade, erasure, and reading of firmware flash attributes.
5. The firmware upgrade system based on the BLVDS bus according to claim 1, characterized in that: The firmware upgrade program is packaged and encrypted by the host computer, and the encryption process adopts the national secret lightweight encryption algorithm.
6. The firmware upgrade system based on the BLVDS bus according to claim 1, characterized in that: The remote upgrade interface includes any one of an Ethernet interface, a general CAN interface, an RS422 interface, and a PCIE interface.
7. A firmware upgrade method based on BLVDS bus, characterized in that: A BLVDS bus-based firmware upgrade system according to any one of claims 1 to 6, comprising: During firmware upgrade, the main control module obtains the encrypted firmware upgrade program from the host computer via Ethernet. The firmware upgrade program is packaged and encrypted by the host computer. The encryption process adopts the national secret lightweight encryption algorithm. The main control module decrypts the ciphertext firmware upgrade program, and packages the decrypted firmware upgrade program according to the command of the Ethernet upgrade message and the BLVDS bus protocol to output a BLVDS firmware upgrade message, wherein the BLVDS firmware upgrade message includes a command, an IO address, a length, data, and a checksum field; The main control module and each IO expansion module obtain corresponding firmware execution commands and firmware upgrade programs according to a predefined firmware upgrade program message protocol, wherein the firmware execution command is used to determine whether upgrade, erase, read and other operations related to flash firmware upgrade are required; The main control module and the IO expansion module identify the firmware execution command and extract the firmware upgrade program information through the interface communication management module, convert the firmware execution command and the firmware upgrade program into register instructions or data operation instructions corresponding to the flash writing, and convert them into the timing corresponding to the flash interface through the flash driving module and transmit them to the flash writing, thereby completing the upgrade, erase or read operation; Among them, the commands include batch upgrade, point-to-point upgrade, erase, read and upgrade attribute-related operations of the firmware flash. The batch upgrade command is used to transmit the upgrade program to all IO expansion modules, and the point-to-point upgrade is targeted according to the address field in the upgrade program.
8. A computer-readable medium storing a computer program, characterized in that: When the computer program is executed by one or more processors, the BLVDS bus-based firmware upgrade method according to claim 7 is implemented.
Citation Information
Patent Citations
Firmware program reliable online upgrading system and method based on FPGA
CN115048130A
Remote IO equipment firmware upgrading method and system
CN115357274A
Industrial Ethernet-BLVDS bus interconnection communication device and industrial control system
CN108881302A
Firmware upgrading method and device
CN111104143A