A burning system and method for automatically adapting firmware

By designing a burning system that automatically adapts firmware, and using a hierarchical management test board and communication card to achieve automatic matching and burning, the problems of high manual matching error rate and low burning efficiency in the existing technology are solved, and efficient and accurate firmware burning and hardware self-test are achieved.

CN115129330BActive Publication Date: 2025-02-28ZHEJIANG FUYONG ELECTRONIC TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210641787.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-08
Publication Date
2025-02-28
Estimated Expiration
2042-06-08

AI Technical Summary

Technical Problem

The existing electronic paper module firmware burning system requires manual matching of different models of firmware, which is prone to errors and is difficult to quickly find damaged hardware during batch burning, which affects maintenance efficiency. At the same time, the verification of burned data requires rereading the data and increasing the burning time.

Method used

A burning system that automatically adapts firmware is designed to automatically match firmware burning through input devices, communication cards and multiple test boards. The system manages the test board program at a hierarchy, including the application layer, functional module layer, process event layer, protocol layer and hardware driver layer. It automatically selects the corresponding process events for burning according to the module model, and calculates the CRC check value in real time during the burning process to reduce the burning time.

Benefits of technology

It realizes automatic firmware burning for different modules, reduces the error rate and burning time of manual matching, improves the efficiency of batch burning and the accuracy of hardware self-test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A burning system and method for automatically adapting firmware, comprising an input device, a communication card, and a test board. The test board is divided into an application layer, a function module layer, a process event layer, a protocol layer, and a hardware driver layer from top to bottom according to hierarchical management in the program. The function module division corresponding to the burning of products of different models is the same, and the difference is the process event. In the process event layer, the process events governed by each function module are classified according to the product model, and the test board selects the corresponding process event according to the model for burning, so as to realize automatic adaptation and compatibility with any module. Before burning, the data to be burned is stored in a buffer area RAM1, and the burning data is divided into N parts. Each time 1 / N data is burned into the module and stored in the buffer area RAM2, and the CRC check values ​​V1 and V2 of RAM1 and RAM2 are calculated while burning. That is, it does not affect the burning, and at the same time, the calculation of V1 and V2 is completed by using the burning time, thereby improving the efficiency and speed of the check, and realizing the burning self-check.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic paper burning, and in particular to a burning system and method for automatically adapting firmware. Background Art

[0002] Electronic paper is also called digital paper. It is an ultra-thin and ultra-light display screen, which can be understood as a display that is as thin, soft, and erasable as paper. The firmware burning of the electronic paper module in the prior art is burned through a test board. The staff needs to transmit the information of the module to be burned to the test board through a data input device, and the test board burns the information into the product, such as a firmware burning method, device, and related equipment disclosed in patent number CN202110997958.2.

[0003] However, since different models of modules require different firmware to be downloaded to the test board, it involves the question of whether the firmware program matches the module. It is too troublesome to manually determine one by one, and it is easy to make mistakes when the firmware is burned in batches, making it difficult to quickly find damaged hardware and inconvenient for maintenance. In addition, the verification of the burned data is generally done after the burning is completed, and the burned data is read out for CRC verification, so the data needs to be read out again, which increases the burning time and affects the burning efficiency. Summary of the invention

[0004] In view of this, the present invention provides a system and method for automatically adapting firmware to solve the above technical problems.

[0005] A burning system for automatically adapting firmware includes an input device, a communication card connected to the input device, and multiple test boards connected to the communication card. The input device is used to input and store the burning parameters of modules of different models, and the communication card is used as an information transfer terminal between the input device and the test board to connect multiple test boards. The test board includes a microprocessor and a hardware self-test module. The test board is provided with multiple detection points connected to the hardware self-test module, and the detection points detect the voltage of different hardware, and the hardware self-test module determines whether the voltage is within a normal range. The test board is divided into an application layer, a function module layer, a process event layer, a protocol layer, and a hardware driver layer from top to bottom according to hierarchical management in the program, and the higher the level, the higher the level. The function module layer divides the control flow of a burning application into several function modules, and the function module layer schedules the process event layer. The function module division corresponding to the burning of products of different models is the same, and the difference is the process event. In the process event layer, the process event governed by each function module is classified according to the product model, so that the function module schedules the corresponding process event. The process event layer schedules the protocol layer and the hardware driver layer.

[0006] Furthermore, the communication card includes a microcontroller, a USB interface, and a communication card communication module. The microcontroller receives the module model output from the test board, and calls the burning parameters corresponding to the model from the input device and transmits them to the test board based on the received module model.

[0007] Furthermore, one end of the communication card is connected to the input device through the USB interface, and the other end is connected to the multiple test boards through the communication card communication module. The communication card communication module uses modbus / CAN bus communication or wireless communication.

[0008] Furthermore, the test board also includes an analog power supply module for power supply, a test board communication module connected to the communication card communication module, and the display driver module connected to the hardware self-test module.

[0009] Furthermore, the test board communication module selects bus communication or wireless communication, and matches the communication mode of the communication card communication module.

[0010] Furthermore, the automatic adaptation firmware burning system and method thereof also include a plurality of infrared scanners connected to the test board, and the infrared scanners read the model information of the module.

[0011] Furthermore, the application layer is used to expand the use of the test board, burning is one of the applications, the application layer schedules the functional module layer, the protocol layer is the communication protocol and special algorithm, and the protocol layer schedules the hardware driver layer.

[0012] A method for automatically adapting firmware to burn, comprising the following steps:

[0013] S1: Provide an input device, a communication card connected to the input device, multiple test boards connected to the communication card, and multiple infrared scanners connected to the test boards, wherein the test boards include a microprocessor, and the test boards control the infrared scanners to read the model information of the module and send the model information to the communication card;

[0014] S2: the communication card obtains the burning information data corresponding to the model from the input device and forwards it to the test board;

[0015] S3: The test board automatically matches the corresponding firmware for burning according to the model information;

[0016] S4: Before burning, the microprocessor needs to set up a buffer RAM1 to store the data to be burned, divide the burning data into N parts, burn 1 / N data into the ROM space of the module IC each time, and calculate the CRC check value V1 of the RAM1 buffer data while burning;

[0017] S5: After the 1 / N data is burned, the microprocessor opens a buffer RAM2, then reads the / N data just burned in the ROM of the module IC and stores it in RAM2, and then waits for the next cycle of burning data to calculate the CRC check value V2 for the data in the buffer RAM2, and so on until the N copies of the burning data are burned and the CRC check value V2 of the N copies of the burning data is obtained;

[0018] S6: Compare the CRC check value V1 with the accumulated CRC check value V2 of the N pieces of programming data to determine whether the programming is successful.

[0019] Furthermore, in the above step S1, one of the test boards is connected to one of the infrared scanners and corresponds to one module.

[0020] Compared with the prior art, the automatic firmware adaptation burning system provided by the present invention divides the test board into application layer, function module layer, process event layer, protocol layer, and hardware driver layer according to hierarchical management from top to bottom in the program. The function module layer divides a burning control process into several function modules. The function module division corresponding to the burning of products of different models is the same, and the difference is the process event. In the process event layer, the process event governed by each function module is classified according to the product model, which is convenient for the function module to schedule the corresponding process event. When burning, the test board can select the corresponding process event according to the model for burning, so as to realize automatic adaptation and compatibility with any module. In addition, the burning method of the automatic firmware adaptation stores the data to be burned in the buffer RAM1 and divides the burning data into N parts before burning, burns 1 / N data into the ROM space of the module IC each time, calculates the CRC check value V1 of the RAM1 buffer data while burning, and after the burning of 1 / N data is completed, the microprocessor opens a buffer RAM2, then reads out the 1 / N data just burned in the ROM of the module IC and stores it in RAM2, waits for the next cycle of burning data, calculates the CRC check value V2 for the data in the buffer RAM2, and so on, until the burning of N parts of the burning data is completed, and obtains the CRC check value V2 of the N parts of the burning data. In this way, the burning is not affected, and the calculation of V1 and V2 is completed by using the burning time, thereby improving the efficiency and speed of verification and realizing the burning self-check. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A schematic structural diagram of a burning system for automatically adapting firmware provided by the present invention.

[0022] Figure 2 for Figure 1 A schematic diagram of the structure of the communication card of the automatic firmware adaptation burning system.

[0023] Figure 3 for Figure 1 A schematic diagram of the structure of a test board of the automatic firmware adaptation burning system.

[0024] Figure 4 for Figure 1 Schematic diagram of the program hierarchy of the test board of the automatic firmware adaptation burning system.

[0025] Figure 5 for Figure 1 Flowchart of the method for burning the automatic adaptation firmware. DETAILED DESCRIPTION

[0026] The specific embodiments of the present invention are further described in detail below. It should be understood that the description of the embodiments of the present invention herein is not intended to limit the protection scope of the present invention.

[0027] like Figures 1 to 5 As shown, it is a schematic diagram of the structure of the automatic firmware adaptation burning system and method provided by the present invention. The automatic firmware adaptation burning system includes an input device 10, a communication card 20 connected to the input device 10, a plurality of test boards 30 connected to the communication card 20, and a plurality of infrared scanners 40 connected to the test boards 30. It can be imagined that the automatic firmware adaptation burning system and method also include other functional modules, such as a control module, a storage module, and a transmission module, etc., which are well known to those skilled in the art and will not be repeated here.

[0028] The input device 10 is used to input and store the programming parameters of different modules, which can be called when needed. The input device 10 can be an input device such as a USB flash drive, a programmable input panel, or a host computer to input and store the programming parameters of different models of modules.

[0029] The communication card 20 serves as an information transfer terminal between the input device 10 and the test board 30 and is used to call data and realize multi-communication.

[0030] The communication card 20 includes a microcontroller 21 , a USB interface 22 , and a communication card communication module 23 .

[0031] The microcontroller 21 is used to receive the module model output from the test board 30, and according to the received module model, call the burning parameters corresponding to the model from the input device 10 and transmit them to the test board 30. One end of the communication card 20 is connected to the input device 10 through the USB interface 22, and the other end is connected to multiple test boards 20 respectively through the communication card communication module 23, so as to realize one-to-many communication. The communication card communication module 23 can use the modbus / CAN bus communication mode, or can use Bluetooth, WiFi, or 2.4g and other wireless communication modes.

[0032] The test board 30 includes a microprocessor 31, a test board communication module 32 connected to the communication card communication module 23, an analog power supply module 33 for power supply, a hardware self-test module 34, and a display driver module 35 connected to the hardware self-test module 34.

[0033] The microprocessor 31 is a single chip microcomputer and is used to control the test board 30. A single chip microcomputer is an integrated circuit chip that uses ultra-large-scale integrated circuit technology to integrate modules with multiple functions into one chip. It is well known that a single chip microcomputer should have a central processing unit CPU, a read-only memory ROM, an interrupt system, a timer / counter, an analog multiplexer, and an A / D converter and other functional modules to control the operation of the entire test board 30. It should be a prior art and will not be described in detail here.

[0034] The test board communication module 32 can use bus communication or wireless communication, but it should match the communication mode of the communication card communication module 23. The test board 30 is provided with a plurality of detection points connected to the hardware self-checking module 34. The detection points detect the voltage of different hardware. The hardware self-checking module 34 determines whether the voltage is within the normal range and displays the detection result on the display driver module 35, so that it can intuitively know which specific hardware is damaged, which is convenient for subsequent maintenance.

[0035] One of the test boards 30 is connected to one of the infrared scanners 40 and corresponds to one module. The infrared scanner 40 is used to read the model information of the module, specifically by scanning the QR code on the module to determine the model. Then the model information is sent to the communication card 20 through the test board communication module 32. The communication card 20 obtains the product burning parameters of the corresponding model from the database of the input device 10 according to the model, and then forwards them to the test board 30 through the communication card communication module 23, and the test board 30 performs burning.

[0036] In order to be compatible with any module, the test board 30 is divided into an application layer 310, a function module layer 320, a process event layer 330, a protocol layer 340, and a hardware driver layer 350 from top to bottom in terms of program hierarchical management. The higher the level, the higher the level.

[0037] The application layer 310 is used to expand the use of the test board. Burning is only one of the applications. Other applications can be added to the application layer 310 to achieve other functions. The application layer 310 schedules the functional module layer 320.

[0038] The functional module layer 320 divides the control flow of a burning application into several functional modules, and the functional module layer 320 schedules the process event layer 330. The functional module divisions corresponding to the burning of different models of products are the same, and the difference is the process events. In the process event layer 320, the process events governed by each functional module are classified according to the product model, which is convenient for the functional module to schedule the corresponding process events. The process event layer 330 schedules the protocol layer 340 and the hardware driver layer 350. Therefore, after the communication board 20 forwards the burning parameters of the corresponding model of the product to the test board 30, the test board 30 selects the corresponding process event according to the model for burning, realizing automatic adaptation and compatibility with any module.

[0039] The protocol layer 340 is a communication protocol and a special algorithm, such as modbus / CAN wireless communication, USB driver protocol, and CRC check algorithm, etc. The protocol layer 340 schedules the hardware driver layer 350 .

[0040] The hardware driver layer 350 is used to drive the hardware of the test board 30, such as driving the RAM / ROM space management driver to store and cache the burning data during burning, and driving the A / D converter of the microprocessor 31 to convert the analog signal into a digital signal and transmit it to the hardware self-test module 34, that is, converting an input voltage signal into an output digital signal, so that the hardware self-test module 34 can detect whether each hardware is normal.

[0041] The present invention provides a method for automatically adapting firmware, comprising the following steps:

[0042] S1: Provide an input device 10, a communication card 20 connected to the input device 10, a plurality of test boards 30 connected to the communication card 20, and a plurality of infrared scanners 40 connected to the test board 30. The test board 30 includes a microprocessor 31. One test board 30 is connected to one infrared scanner 40 and corresponds to one module. The test board 30 controls the infrared scanner 40 to read the model information of the module and sends the model information to the communication card 20.

[0043] S2: the communication card 20 obtains the burning information data corresponding to the model from the input device 10 and forwards it to the test board 30 .

[0044] S3: The test board 30 automatically matches the corresponding firmware for burning according to the model information.

[0045] S4: Before burning, the microprocessor 31 needs to set aside a buffer RAM1 to store the data to be burned, divide the burned data into N parts, and burn 1 / N data into the ROM space of the module IC each time. While burning, the CRC check value V1 of the RAM1 buffer data is calculated.

[0046] S5: After the 1 / N data is burned, the microprocessor 31 opens a buffer RAM2, then reads the 1 / N data just burned in the ROM of the module IC and stores it in RAM2, and then waits for the next cycle of burning data to calculate the CRC check value V2 for the data in the buffer RAM2, and repeats this cycle until the N copies of the burning data are burned and the CRC check value V2 of the N copies of the burning data is obtained. In this way, the burning is not affected, and the calculation of V1 and V2 is completed by using the burning time.

[0047] S6: Compare the CRC check value V1 with the accumulated CRC check value V2 of the N pieces of programming data to determine whether the programming is successful.

[0048] Compared with the prior art, the automatic firmware adaptation burning system provided by the present invention divides the test board 30 into an application layer 310, a function module layer 320, a process event layer 330, a protocol layer 340, and a hardware driver layer 350 according to hierarchical management in the program. The function module layer 320 divides a burning control process into several function modules. The function module division corresponding to the burning of products of different models is the same, and the difference is the process event. In the process event layer 320, the process events governed by each function module are classified according to the product model, which is convenient for the function module to schedule the corresponding process event. When burning, the test board 30 can select the corresponding process event according to the model for burning, so as to realize automatic adaptation and compatibility with any module. In addition, the burning method of the automatic firmware adaptation stores the data to be burned in the buffer RAM1 and divides the burning data into N parts before burning, burns 1 / N data into the ROM space of the module IC each time, calculates the CRC check value V1 of the RAM1 buffer data while burning, and after the burning of 1 / N data is completed, the microprocessor 31 opens up a buffer RAM2, then reads out the 1 / N data just burned in the ROM of the module IC and stores it in the RAM2, waits for the next cycle of burning data, calculates the CRC check value V2 for the data in the buffer RAM2, and so on circulates until the burning of N parts of burning data is completed, and obtains the CRC check value V2 of the N parts of burning data. This does not affect the burning, and the burning time is used to complete the calculation of V1 and V2, thereby improving the efficiency and speed of verification and realizing the burning self-check.

[0049] The above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modification, equivalent substitution or improvement within the spirit of the present invention is included in the scope of the claims of the present invention.

Claims

1. A system for automatically adapting firmware, characterized in that: The automatic firmware adaptation burning system includes an input device, a communication card connected to the input device, multiple test boards connected to the communication card, and multiple infrared scanners connected to the test boards. The input device is used to input and store the burning parameters of modules of different models. The infrared scanner reads the model information of the module. The communication card includes a microcontroller, a USB interface, and a communication card communication module. The microcontroller receives the module model output from the test board, and calls the burning parameters corresponding to the model from the input device according to the received module model and transmits them to the test board. One end of the communication card is connected to the input device through the USB interface, and the other end is connected to the multiple test boards respectively through the communication card communication module. The communication card communication module adopts modbus / CAN bus communication or wireless communication. The communication card is used as the input device to communicate with the test boards. The information transfer terminal of the test board is connected to multiple test boards. The test board includes a microprocessor and a hardware self-test module. The test board is provided with multiple detection points connected to the hardware self-test module. The detection points detect the voltage of different hardware. The hardware self-test module determines whether the voltage is within the normal range. The test board is divided into an application layer, a functional module layer, a process event layer, a protocol layer, and a hardware driver layer from top to bottom according to hierarchical management in the program. The higher the level, the higher the level. The functional module layer divides the control flow of a burning application into several functional modules. The functional module layer schedules the process event layer. The functional module division corresponding to the burning of products of different models is the same. The difference is the process event. In the process event layer, the process events governed by each functional module are classified according to the product model so that the functional module schedules the corresponding process event. The process event layer schedules the protocol layer and the hardware driver layer.

2. The automatic firmware adaptation system as claimed in claim 1, characterized in that: The test board also includes a simulated power supply module for power supply, a test board communication module connected to the communication card communication module, and a display driver module connected to the hardware self-test module.

3. The automatic firmware adaptation system as claimed in claim 2, characterized in that: The test board communication module adopts bus communication or wireless communication, and matches the communication mode of the communication card communication module.

4. The automatic firmware adaptation system as claimed in claim 1, characterized in that: The application layer is used to expand the use of the test board, and burning is one of the applications. The application layer schedules the functional module layer. The protocol layer is a communication protocol and a special algorithm. The protocol layer schedules the hardware driver layer.

5. A method for automatically adapting firmware to burn, comprising the following steps: S1: Provide an input device, a communication card connected to the input device, multiple test boards connected to the communication card, and multiple infrared scanners connected to the test boards, wherein the test boards include a microprocessor, and the test boards control the infrared scanners to read the model information of the module and send the model information to the communication card; S2: the communication card obtains the burning information data corresponding to the model from the input device and forwards it to the test board; S3: The test board automatically matches the corresponding firmware for burning according to the model information; S4: Before burning, the microprocessor needs to set up a buffer RAM1 to store the data to be burned, divide the burning data into N parts, burn 1 / N data into the ROM space of the module IC each time, and calculate the CRC check value V1 of the RAM1 buffer data while burning; S5: After the 1 / N data is burned, the microprocessor opens a buffer RAM2, then reads the / N data just burned in the ROM of the module IC and stores it in RAM2, and then waits for the next cycle of burning data to calculate the CRC check value V2 for the data in the buffer RAM2, and so on until the N copies of the burning data are burned and the CRC check value V2 of the N copies of the burning data is obtained; S6: Compare the CRC check value V1 with the accumulated CRC check value V2 of the N pieces of programming data to determine whether the programming is successful.

6. The method for burning automatic adaptive firmware according to claim 5, characterized in that: In the above step S1, one of the test boards is connected to one of the infrared scanners and corresponds to one module.

Citation Information

Patent Citations

  • Firmware burning method and device and related equipment

    CN113687840A

  • Burning calibration verification method for power management IC

    CN109521355A

  • Automatic testing method and device of game controller and readable medium

    CN112965868A