CN113721953A - Firmware program upgrading method and device and display control equipment - Google Patents

Firmware program upgrading method and device and display control equipment Download PDF

Info

Publication number
CN113721953A
CN113721953A CN202110920885.7A CN202110920885A CN113721953A CN 113721953 A CN113721953 A CN 113721953A CN 202110920885 A CN202110920885 A CN 202110920885A CN 113721953 A CN113721953 A CN 113721953A
Authority
CN
China
Prior art keywords
version information
firmware
display control
firmware program
hardware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110920885.7A
Other languages
Chinese (zh)
Other versions
CN113721953B (en
Inventor
廖明进
韦桂锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN202110920885.7A priority Critical patent/CN113721953B/en
Publication of CN113721953A publication Critical patent/CN113721953A/en
Application granted granted Critical
Publication of CN113721953B publication Critical patent/CN113721953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a firmware program upgrading method, which is applied to a main control card of display control equipment and comprises the following steps: acquiring version information of the display control equipment; searching a target firmware program from a plurality of firmware programs prestored in the display control equipment according to the version information and the mapping relation between the version information and the firmware programs; and acquiring and loading the target firmware program for upgrading. The invention also discloses a firmware program upgrading device and a display control device, can simplify the program upgrading process of the display control device, and has the characteristics of high automation degree and convenience in maintenance and management.

Description

Firmware program upgrading method and device and display control equipment
Technical Field
The present invention relates to the field of display technologies, and in particular, to a firmware program upgrading method, a firmware program upgrading apparatus, and a display control device.
Background
On the one hand, in the technical field of display control, with the appearance of more various application scenarios, the architecture of the functions of the display control device is also more and more complex, and a single hardware device cannot meet the requirements, so that a card-type display control device is derived, for example, daughter cards such as pluggable and replaceable input cards and output cards are arranged on the card-type display control device, a user can select different daughter cards according to the requirements of the own scenarios, but the different daughter cards need the display control device to adapt to different firmware programs. On the other hand, in order to achieve a higher processing capability, hardware on the display control apparatus also needs to be replaced or upgraded. However, no matter the daughter card is replaced or the hardware is upgraded, the firmware program of the display control device needs to be manually updated in the prior art, and the upgrading process is complex.
Therefore, how to simplify the firmware program upgrading process of the display control device becomes an urgent problem to be solved.
Disclosure of Invention
Therefore, in order to overcome the prior art, the invention provides a firmware program upgrading method, a firmware program upgrading device and a display control device, which can simplify the firmware program upgrading process and have the characteristics of high automation degree and convenience in maintenance and management.
Specifically, on one hand, the firmware program upgrading method disclosed in the embodiment of the present invention is applied to a main control card of a display control device, and includes: acquiring version information of the display control equipment; searching a target firmware program from a plurality of firmware programs prestored in the display control equipment according to the version information and the mapping relation between the version information and the firmware programs; and acquiring and loading the target firmware program for upgrading.
In the prior display control equipment, a debugging worker needs to manually download an updating program every time of firmware upgrading, and the upgrading process is complex. The program upgrading process does not need manual operation, and the program upgrading process is greatly simplified.
In one embodiment of the present invention, the version information includes current version information and previous version information; the searching for the target firmware program from a plurality of firmware programs prestored in the display control device according to the version information and the mapping relationship between the version information and the firmware programs comprises: comparing the current version information with the previous version information; and searching the target firmware program from the plurality of firmware programs according to the mapping relationship between the current version information and the firmware programs when the current version information is inconsistent with the previous version information.
In this embodiment, before searching for the target firmware program, whether the current version information is consistent with the previous version information is compared, and if the current version information is consistent with the previous version information, searching is not needed, and searching for upgrading is needed only if the current version information is inconsistent with the previous version information, so that unnecessary searching processes are reduced, resources are saved, and upgrading time is saved.
In an embodiment of the present invention, the version information includes motherboard hardware version information and/or daughter card identification information.
In an embodiment of the present invention, the display control device includes a main board, and the main board is connected to the main control card; the version information comprises mainboard hardware version information; the acquiring version information of the display control device includes: sampling the resistance value of the mainboard; and determining the hardware version information of the mainboard as the version information according to the resistance value and the mapping relation between the resistance and the hardware version of the mainboard.
Different resistance values correspond to different hardware versions, and the present mainboard hardware version information is determined through the resistance value of the mainboard in the embodiment has the characteristics of simplicity and convenience.
In a second aspect, an embodiment of the present invention provides a firmware program upgrading apparatus applied to a main control card of a display control device, including: the version acquisition module is used for acquiring the version information of the display control equipment; the firmware query module is used for searching a target firmware program from a plurality of firmware programs prestored in the display control equipment according to the version information and the mapping relation between the version information and the firmware programs; and the program loading module is used for acquiring and loading the target firmware program for upgrading.
In this embodiment, a plurality of firmware programs suitable for different versions of information are pre-stored, and mapping relationships between the different firmware programs and different device version information are pre-set, when a device is upgraded, only the version information needs to be acquired by the acquisition module first, and a corresponding target firmware program can be automatically searched and matched according to the version information and the mapping relationship between the version information and the firmware program, and the upgrading process is completed after the target firmware program is acquired and loaded by the program loading module. The program upgrading process does not need manual operation, and the program upgrading process is greatly simplified.
In an embodiment of the present invention, the version information of the device includes motherboard hardware version information and/or daughter card identification information, and the version obtaining module includes: the hardware obtaining submodule is used for obtaining the hardware version information of the main board; and/or a sub-card obtaining sub-module, which is used for obtaining the sub-card identification information; the firmware inquiry module comprises: a hardware query submodule, configured to search a target hardware upgrade program from the plurality of firmware programs prestored in the display control device according to the motherboard hardware version information and the mapping relationship between the version information and the firmware program, so as to use the target hardware upgrade program as the target firmware program; and/or a sub-card inquiry sub-module, configured to search a target sub-card upgrading program from the multiple firmware programs pre-stored in the display control device according to the sub-card identification information and the mapping relationship between the version information and the firmware programs, so as to serve as the target firmware program.
In an embodiment of the present invention, the display control device includes a motherboard, the motherboard is connected to the main control card, the version obtaining module includes a hardware obtaining sub-module, and the hardware obtaining sub-module includes:
the sampling module is used for sampling the resistance value of the mainboard;
and the version query module is used for determining the hardware version information of the mainboard as the version information according to the resistance value and the mapping relation between the resistance and the hardware version of the mainboard.
In one embodiment of the present invention, the version information includes current version information and previous version information; the firmware inquiry module comprises: the comparison module is used for comparing the current version information with the previous version information; and the first query submodule is used for matching the target firmware program from the plurality of firmware programs prestored in the display control equipment according to the mapping relation between the current version information and the firmware program when the current version information is not consistent with the previous version information.
In this embodiment, the comparison module can compare the current version information with the previous version information, the first query submodule does not need to query when the two versions of information are consistent, and the first query submodule searches for the target firmware program when the two versions of information are inconsistent. Unnecessary matching processes are reduced, resources are saved, and upgrading time is saved.
On the other hand, an embodiment of the present invention provides a display control apparatus, including: a master control card; the main board is connected with the main control card; the main control card is configured to execute the firmware program upgrading method according to any one of the foregoing embodiments to upgrade the firmware program of the motherboard.
In one embodiment, the display control apparatus further includes: and the daughter card is electrically connected with the mainboard and the master control card and is configured with daughter card identification information.
On the other hand, the embodiment of the invention also provides a computer readable storage medium. The computer-readable storage medium has stored thereon computer-executable instructions for implementing the firmware program upgrade method of any one of the preceding claims.
As can be seen from the above, the embodiments of the present invention can achieve one or more of the following advantages:
(1) all possible firmware programs are prestored, and the mapping relation between the version information and the firmware programs is set, so that the target programs are automatically searched and updated, manual operation is not needed in the program updating process, and the program updating process is greatly simplified.
(2) Before searching the target firmware program, the current version information and the previous version information are compared, if the current version information and the previous version information are the same, matching is not needed, and if the current version information and the previous version information are different, matching and upgrading are carried out, so that the waste of resources can be reduced.
Drawings
The following detailed description of embodiments of the invention will be made with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a firmware program upgrading method according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a firmware program upgrading apparatus according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a version acquiring module in the firmware program upgrading apparatus shown in fig. 2.
Fig. 4 is a schematic structural diagram of a firmware query module in the firmware upgrading apparatus shown in fig. 2.
Fig. 5 is a schematic structural diagram of a hardware obtaining sub-module in the version obtaining module shown in fig. 3.
Fig. 6 is a schematic structural diagram of a display control apparatus according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a display control apparatus according to another embodiment of the present invention.
[ description of reference ]
100: firmware program upgrading device; 110: a version acquisition module; 111: a hardware acquisition submodule; 112: a daughter card acquisition submodule; 1111: a sampling module; 1112: a version query module; 120: a firmware query module; 121: a comparison module; 122: a first query submodule: 1221: a hardware query submodule: 1222: a daughter card query submodule; 130: a program loading module; 200: a display control device; 210: a master control card; 220: a main board; 230: daughter cards; 300: a computer-readable storage medium; 310: computer-executable instructions.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not a whole embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the division of the embodiments of the present invention is only for convenience of description and should not be construed as a limitation, and features of various embodiments may be combined and referred to each other without contradiction.
[ EXAMPLES one ]
In the existing display control device, whether hardware on a non-plug-in card controller is replaced or a daughter card on the plug-in card controller is plugged in and out, firmware programs such as an FPGA and an MCU on a display control device motherboard need to be updated, however, in the existing program updating method, a debugger generally downloads an updating program manually through an upper computer, and particularly, for the plug-in card control device, the updating program needs to be downloaded manually every time the daughter card is replaced, the updating process is complex, and the debugging difficulty is high, so as to solve the above-mentioned defects in the prior art, as shown in fig. 1, an embodiment of the present invention provides a firmware program updating method, which is used for simplifying the firmware program updating process of the display control device, so that the debugging is more convenient, and the automation degree is higher.
Specifically, referring to fig. 1, a firmware program upgrading method according to an embodiment of the present invention includes:
step S1: acquiring version information of the display control equipment;
step S2: searching a target firmware program from a plurality of firmware programs prestored in the display control equipment according to the version information and the mapping relation between the version information and the firmware programs; and
step S3: and acquiring and loading the target firmware program for upgrading.
The firmware program upgrading method is applied to a main control card of a display control device (which may be a card-inserted device or a non-card-inserted device), where the main control card is, for example, a main control card based on an arm (advanced RISC machines), where the version information in step S1 includes, for example, version information of main board hardware, and the display control device is further provided with, for example, a main board, the main board is connected to the main control card, and the main board is provided with a plurality of electrical elements, such as an FPGA (Programmable logic device) for video data processing and an MCU (micro control Unit) for processing control instructions, and other hardware, such as a Real Time Clock (RTC) chip and a FLASH Memory (FLASH Memory). When hardware such as RTC and FLASH is replaced or upgraded, the display control device will have different motherboard hardware version information, and at this time, firmware programs such as FPGA or MCU on the motherboard need to be upgraded to match the upgraded motherboard. Therefore, each version information has a firmware program uniquely corresponding to it, i.e., the mapping relationship between the version information and the firmware program mentioned in step S2. The plurality of firmware programs pre-stored in the display control device in step S2 are, for example, stored in a memory on the main control card, where the plurality of firmware programs refer to firmware programs corresponding to all version information when conditions allow, and may be selected according to the type of an actual application scenario and conditions such as memory resource occupation during actual application, so that different firmware programs are pre-stored as much as possible, and the more the pre-stored firmware programs are, the more convenient the upgrade operation is. The mapping relationship between the version information and the firmware program is used to represent the relationship between the version information of the display control device and the firmware program thereof, and may be in a table form or a document form. For example, the mapping relationship between the version information and the firmware program is that the version information a01 corresponds to the firmware program a01, the version information a02 corresponds to the firmware program a02, and the plurality of firmware programs pre-stored on the display control device include the firmware programs a01 and a02, for example, if the version information acquired in step S1 is a01, in step S2, the target firmware program a01 is searched from the firmware programs a01 and a02 according to a01 and the mapping relationship, and in step S3, the firmware program a01 is acquired and loaded for the FPGA or MCU on the motherboard to be upgraded. Of course, the above is merely an example, and is not intended as a limitation to understanding the present embodiment.
It should be noted that, in this embodiment, it is not limited that the plurality of firmware programs pre-stored in the display control device are fixed and unchangeable, and the number of the firmware programs pre-stored in the display control device is limited in practical application, so as to continuously update the display control device, the version information is more and more, and the plurality of firmware programs pre-stored in the display control device may not meet the matching of more version information, so that the plurality of firmware programs pre-stored in the display control device may still be supplemented or replaced by, for example, sending the firmware programs through an upper computer or obtaining the firmware programs through a cloud server, so as to meet more requirements, and meanwhile, the mapping relationship between the corresponding version information and the firmware programs needs to be supplemented or replaced. After a plurality of pre-stored firmware programs and the mapping relation between the version information and the firmware programs are supplemented or replaced, the display control equipment can still be automatically upgraded by the firmware program upgrading method. The embodiment emphasizes that after the firmware programs as many as possible are prestored in the display control device, the firmware program updating device does not need to be manually downloaded each time, so that the manual operation of the display control device during updating is reduced as much as possible, and the program upgrading process is simplified.
Further, in an embodiment, the version information includes, for example, the aforementioned motherboard hardware version information, and the step S1 specifically includes, for example:
step S111: sampling the resistance value of the mainboard;
step S112: and determining the hardware version information of the mainboard as the version information according to the resistance value and the mapping relation between the resistance and the hardware version of the mainboard.
Since the resistance value of the motherboard changes when the hardware on the motherboard changes, each piece of motherboard hardware version information has a resistance value uniquely corresponding to the hardware version information, and the unique correspondence is set as the mapping relationship between the resistance and the hardware version in step S112, which may be in a table form or a document form, and is pre-stored in the memory of the display control device, so that the motherboard hardware version information is determined as the version information according to the resistance value of the motherboard and the mapping relationship between the resistance and the hardware version when step S112 is executed. Of course, the resistance value of the main board may be a certain value or a range of values, and the embodiment is not limited. In step S111, the resistance of the motherboard may be sampled by an ADC (Analog-to-digital converter) for example.
Further, in one embodiment, step S2 further includes, for example:
step S211: and the firmware upgrading device is used for searching a target hardware upgrading program from the plurality of firmware programs prestored in the display control equipment according to the mainboard hardware version information and the mapping relation between the version information and the firmware programs to serve as the target firmware program.
It should be noted that the target hardware upgrade program in step S211 refers to a firmware program corresponding to the motherboard hardware version information and used for upgrading, for example, an FPGA or an MCU on the motherboard, so that the FPGA or the MCU on the motherboard can adapt to a corresponding hardware version.
Furthermore, in the card-inserted display control device, different daughter cards are often required to be replaced according to usage requirements, and the firmware programs of the FPGA and the MCU on the main card also need to be upgraded to match the replaced daughter card, where the daughter card may be, for example, an input card, an output card, a transmitter card or a cascade card used on the display control device, and the daughter card includes, for example, a processing chip and a microcontroller. As such, in one implementation, the version information mentioned in the foregoing step S1 further includes, for example, daughter card identification information, where the identification information of the daughter cards refers to, for example, a unique corresponding model id code of each daughter card (or each identical daughter card), for example, contains type information of the daughter cards, and the type information indicates, for example, whether it is an input card, an output card, a sending card, a cascading card, or the like. The identification information of the sub-card may also include, for example, interface type information of the sub-card, for example, whether the interface type information of the sub-card indicates that the interface is a dp (display port) interface, an SDI (digital component serial interface), an HDMI interface, or the like, or may also include, for example, hardware information of the sub-card, for example, whether the hardware information indicates a hardware version of a processing chip and a microcontroller on the sub-card, or the like. The identification information of the daughter cards is not limited to the modem id code of a single daughter card, for example, the identification information of the daughter card may be the modem id code of one daughter card when the display control device only replaces one of the daughter cards, and for example, the identification information of the daughter card may be a set of the modem id codes of a plurality of daughter cards when the display control device replaces a plurality of daughter cards simultaneously.
Further, in one embodiment, step S2 further includes, for example:
step S212: and searching a target sub-card upgrading program from the plurality of firmware programs prestored in the display control equipment according to the sub-card identification information and the mapping relation between the version information and the firmware programs to serve as the target firmware program.
It should be noted that the target daughter card upgrading program described in step S212 refers to an upgrading firmware program corresponding to the daughter card identification information and used for the motherboard, such as an FPGA or an MCU, so that the FPGA or the MCU on the motherboard can be adapted to the corresponding daughter card.
It should be noted that in the first embodiment of the present invention, the version information may only be one of the motherboard hardware version information and the daughter card identification information, or both of them. Correspondingly, step S2 may include only one of step S211 and step S212, or both. Correspondingly, the target firmware program may be one of the target hardware upgrade program and the daughter card upgrade program, or a combination thereof. And the target firmware program can be an upgrading program for an FPGA on the mainboard or an upgrading program for an MCU on the mainboard. The corresponding pre-stored firmware programs comprise firmware programs of the FPGA corresponding to different versions of information and firmware programs of the MCU corresponding to different versions of information.
Further, in an embodiment, the version information in step S1 further includes, for example, current version information and previous version information, and step S1 obtains the current version information, specifically, obtains current daughter card identification information by directly reading a ModeID code of the current daughter card, or obtains current motherboard hardware version information according to step S112. The former version information is, for example, manually preset, such as original motherboard hardware version information of the display control device, and is preset in the memory at the time of factory shipment, or is further, for example, automatically stored, and, for example, step S0 is further performed before step S1 is performed each time: detecting a variation of the display control apparatus and outputting a variation signal; wherein the change of the display control device refers to the occurrence of power-off restart of the display control device or hot plug action of the daughter card. The step S1 executed after the step S0 includes, for example: in response to the output of the variation signal in step S0, the acquired current version information is stored as the previous version information when step S1 is executed again (when step S0 outputs the variation signal again). For example, the version information is motherboard hardware version information mentioned in the foregoing embodiment, the resistance value of the initial motherboard of the display control device is R0, step S0 detects that the display control device is restarted after first power failure, and outputs a change signal, step S1 samples that the resistance value of the motherboard is R1 after power failure and restart in response to the change signal, the motherboard hardware version information corresponding to the resistance value R1 is current version information, the motherboard hardware version information corresponding to the resistance value R0 is previous version information, step S1 stores the motherboard hardware version information corresponding to the resistance value R1 in the memory, when the display control device is restarted after second power failure, step S0 outputs the change signal again, at this time, step S1 samples that the resistance value of the motherboard is R2 after second power failure and restart in response to the change signal, at this time, the motherboard hardware version information corresponding to the resistance value R2 is current version information, and the motherboard hardware version information corresponding to the motherboard resistance value R1 after first power failure is read that is previous version information of the motherboard hardware corresponding to the motherboard hardware version information after power failure and restart for the previous version information And (4) version information. When the version information is the identification information of the daughter card mentioned above, the execution principle of step S1, such as step S0, is similar to the above description, and will not be illustrated here.
In this embodiment, step S2 specifically includes, for example:
step S21: comparing the current version information with the previous version information;
step S22: and searching the target firmware program from the plurality of firmware programs according to the mapping relationship between the current version information and the firmware programs when the current version information is inconsistent with the previous version information.
As shown in the above example, after the first power-off restart, step S21 compares the motherboard hardware version information (current version information) corresponding to R1 with the motherboard hardware version information (previous version information) corresponding to R0, and step S22 searches the target firmware program in response to the inconsistency between the two, and if the two are the same, the target firmware program does not need to be searched. Or, for example, if the step S10 detects that the daughter card is plugged, a different daughter card may be replaced, where the current daughter card is the daughter card B, and the current version information obtained in step S1 is the modem id code of the daughter card B, and the modem id code of the daughter card B is prestored as the previous version information of the next plugging. When the plugging is detected next time, for example, the daughter card B is replaced by the daughter card C, step S1 obtains that the current version information is the ModeID code of the daughter card C, and the previous version information is the ModeID code of the daughter card B. The current version information (ModeID code of the daughter card C) and the previous version information (ModeID code of the daughter card B) are compared in step S21, and the target firmware program suitable for the daughter card C is searched in step S22 according to the inconsistency between the current version information and the previous version information. If the step S0 detects that the plugging action occurs, but the daughter card is not actually replaced, but still is the daughter card B, the step S22 does not need to search the target firmware program according to the correspondence between the previous version information and the current version information.
The embodiment is suitable for upgrading the MCU firmware program on the mainboard, and because the MCU program cannot be lost due to power failure, the matching process and the loading process of the target firmware can be skipped when the current version information and the previous version information are compared and the current version information and the previous version information are the same, so that the resource saving and unnecessary occupation of the updating time are facilitated. For upgrading the firmware program of the FPGA, the program is lost due to power failure, so that the target firmware program can be directly searched without going through step S21.
[ example two ]
Referring to fig. 2 to 5, a second embodiment of the present invention provides a firmware program upgrading apparatus 100, configured to execute any one of the firmware program upgrading methods in the first embodiment, where the firmware program upgrading apparatus 100 includes: a version obtaining module 110, a firmware querying module 120 and a program loading module 130, wherein the version obtaining module 110 is for performing the step S1, the firmware querying module 120 is for performing the step S2, and the program loading module 130 is for performing the step S3.
In one embodiment, the version information in the firmware program upgrading method includes, for example, current version information and previous version information, and referring to fig. 2, the firmware query module 120 includes, for example, a comparison module 121 and a first query submodule 122, where the comparison module 121 is, for example, configured to perform the foregoing step S21, and the first query submodule 122 is configured to perform the foregoing step S22. The firmware program upgrading apparatus 100 further includes a detection module, for example, configured to execute the foregoing step S0.
In an embodiment, referring to fig. 3 and fig. 4, the version information in the foregoing firmware program upgrading method includes, for example, motherboard hardware version information, the corresponding version obtaining module 110 includes, for example, a hardware obtaining sub-module 111 for obtaining the motherboard hardware version information, and the firmware querying module 120 includes, for example, a hardware querying sub-module 1221 for performing the foregoing step S211. When the version information further includes daughter card identification information, for example, the corresponding version obtaining module 110 further includes a daughter card obtaining sub-module 112 for obtaining the daughter card identification information, and the firmware querying module 120 further includes a daughter card querying sub-module 1222 for executing the foregoing step S212.
In one embodiment, when the version information includes motherboard hardware version information, referring to fig. 5, the hardware obtaining sub-module 111 includes, for example, a sampling module 1111 and a version querying module 1112, wherein the sampling module 1111 is used for executing the foregoing step S111, and the version querying module 1112 is used for executing the foregoing step S112.
The firmware program upgrading apparatus 100 according to the second embodiment of the present invention is configured to execute the firmware program upgrading method according to the first embodiment, and has the same beneficial effects as the first embodiment, which are not described herein again.
[ EXAMPLE III ]
A third embodiment of the present invention provides a display control device 200, and applies the firmware program upgrading method provided in the first embodiment and the firmware program upgrading apparatus 100 provided in the second embodiment, where the display control device 200 includes a main control card 210 and a main board 220, where the main control card 210 is, for example, a main control card based on an arm (advanced RISC machines) processor. The main control card 210 is configured to execute any firmware program upgrading method provided in the first embodiment to upgrade a firmware program of the motherboard 220. The main control card 210 is further provided with a memory, for example, for storing the mapping relationship between the version information and the firmware program and a plurality of firmware programs mentioned in step S2, the mapping relationship between the resistance and the hardware version mentioned in step S112, the previous version information pre-stored in step S1, and the like in the foregoing embodiment, and of course, the number of the memory may be one or more.
The main board 220 is connected to the main control card 210, and configured to receive a target firmware program sent by the main control card 210, where the main board 220 is provided with, for example, an FPGA (field programmable gate array) capable of being used for processing video data and an MCU (micro controller unit) capable of being used for processing a control instruction, where the FPGA is connected to the main control card 210 through, for example, an SPI (Serial Peripheral Interface) Bus, and the MCU is connected to the main control card 210 through, for example, a UART (Universal Asynchronous Receiver/Transmitter) Interface and a USB (Universal Serial Bus) Interface. Of course, other hardware such as RTC, FLASH, etc. are also included on the main board 220.
In an embodiment, as shown in fig. 6, the display control apparatus 200 further includes a sub-card 230, for example, where the number of the sub-cards 230 may be one or multiple, and the present embodiment does not limit the number of the sub-cards 230. Daughter card 230 electrically connects master card 210 and motherboard 220, and daughter card 230 is configured with the daughter card identification information mentioned in the previous embodiment. The main control card 210 can obtain the daughter card identification information, and match and load the target firmware program corresponding to the daughter card identification information. Data interaction is performed by the master card 220 with the daughter card 230.
Referring to fig. 8, the embodiment of the present invention provides another display control apparatus 200, wherein a first microcontroller (e.g., MCU) in the daughter card 230 (only one is shown in fig. 8, and may actually be multiple) is connected to a processing chip (e.g., an IC chip), the first microcontroller is used to load a firmware program and a configuration register of the processing chip, and the first microcontroller is further connected to the main control card 210 through, for example, a communication interface to implement functions such as transmission of daughter card identification information, interaction of control instructions, and updating of the program. The processing chip in the daughter card 230 is, for example, connected to the FPGA on the main board 220, and when the processing chip is, for example, an input card, the processing chip decodes or otherwise pre-processes video data input by an input source and sends the video data to the FPGA for further processing, for example, when the processing chip is an output card, the processing chip transmits data output by the main control card 210 to a receiving card of the display control system through an optical port or a network port.
The display control device 200 provided by the third embodiment of the present invention, which applies the firmware program upgrading method provided by the first embodiment of the present invention, has the same beneficial effects as the first embodiment of the present invention, and is not described again here.
[ EXAMPLE IV ]
As shown in fig. 7, an embodiment of the present invention provides a computer-readable storage medium 300. The computer-readable storage medium 300 is, for example, a nonvolatile memory, and specifically, for example: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). The computer-readable storage medium 300 has stored thereon computer-executable instructions 310. The computer-readable storage medium 300 may execute the computer-executable instructions 310 by one or more processors or processing devices to implement the firmware program upgrade method in the foregoing first embodiment.
It should be noted that, in the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and/or method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units/modules is only one logical division, and there may be other divisions in actual implementation, for example, multiple units or modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units/modules described as separate parts may or may not be physically separate, and parts displayed as units/modules may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units/modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated into one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated into one unit/module. The integrated units/modules may be implemented in the form of hardware, or may be implemented in the form of hardware plus software functional units/modules.
The integrated units/modules, which are implemented in the form of software functional units/modules, may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing one or more processors of a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention.
The beneficial effects of the above embodiment of the invention are as follows:
(1) all possible firmware programs are prestored, and the mapping relation between the version information and the firmware programs is set, so that the target programs are automatically searched and updated, manual operation is not needed in the program updating process, and the program updating process is greatly simplified.
(2) Before searching the target firmware program, the current version information and the previous version information are compared, if the current version information and the previous version information are the same, matching is not needed, and if the current version information and the previous version information are different, matching and upgrading are carried out, so that the waste of resources can be reduced.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A firmware program upgrading method is applied to a main control card of display control equipment, and is characterized by comprising the following steps:
acquiring version information of the display control equipment;
searching a target firmware program from a plurality of firmware programs prestored in the display control equipment according to the version information and the mapping relation between the version information and the firmware programs; and
and acquiring and loading the target firmware program for upgrading.
2. The firmware program upgrade method according to claim 1, wherein the version information includes current version information and previous version information;
the searching for the target firmware program from a plurality of firmware programs prestored in the display control device according to the version information and the mapping relationship between the version information and the firmware programs comprises:
comparing the current version information with the previous version information; and
and searching the target firmware program from the plurality of firmware programs according to the mapping relationship between the current version information and the firmware programs when the current version information is inconsistent with the previous version information.
3. The firmware program upgrade method according to claim 1, wherein the version information includes motherboard hardware version information and/or daughter card identification information.
4. The firmware program upgrading method according to claim 1, wherein the display control device comprises a main board, and the main board is connected with the main control card; the version information comprises mainboard hardware version information; the acquiring version information of the display control device includes:
sampling the resistance value of the mainboard; and
and determining the hardware version information of the mainboard as the version information according to the resistance value and the mapping relation between the resistance and the hardware version of the mainboard.
5. A firmware program upgrading device is applied to a main control card of display control equipment and is characterized by comprising the following components:
the version acquisition module is used for acquiring the version information of the display control equipment;
the firmware query module is used for searching a target firmware program from a plurality of firmware programs prestored in the display control equipment according to the version information and the mapping relation between the version information and the firmware programs;
and the program loading module is used for acquiring and loading the target firmware program for upgrading.
6. The firmware program upgrading apparatus according to claim 5, wherein the version information includes motherboard hardware version information and/or daughter card identification information, and the version obtaining module includes:
the hardware obtaining submodule is used for obtaining the hardware version information of the main board; and/or
The daughter card acquisition submodule is used for acquiring the daughter card identification information;
the firmware inquiry module comprises:
a hardware query submodule, configured to search a target hardware upgrade program from the plurality of firmware programs prestored in the display control device according to the motherboard hardware version information and the mapping relationship between the version information and the firmware program, so as to use the target hardware upgrade program as the target firmware program; and/or
And the daughter card inquiry submodule is used for searching a target daughter card upgrading program from the plurality of firmware programs prestored in the display control equipment according to the daughter card identification information and the mapping relation between the version information and the firmware programs to serve as the target firmware program.
7. The firmware program upgrading apparatus according to claim 5, wherein the display control device includes a motherboard, the motherboard is connected to the main control card, the version obtaining module includes a hardware obtaining sub-module, and the hardware obtaining sub-module includes:
the sampling module is used for sampling the resistance value of the mainboard;
and the version query module is used for determining the hardware version information of the mainboard as the version information according to the resistance value and the mapping relation between the resistance and the hardware version of the mainboard.
8. The firmware program upgrading apparatus according to claim 5, wherein the version information includes current version information and previous version information;
the firmware inquiry module comprises:
the comparison module is used for comparing the current version information with the previous version information;
and the first query submodule is used for matching the target firmware program from the plurality of firmware programs prestored in the display control equipment according to the mapping relation between the current version information and the firmware program when the current version information is not consistent with the previous version information.
9. A display control apparatus characterized by comprising:
a master control card;
the main board is connected with the main control card;
the main control card is used for executing the firmware program upgrading method according to any one of claims 1 to 4 to upgrade the firmware program of the mainboard.
10. The display control apparatus according to claim 9, characterized by further comprising:
and the daughter card is electrically connected with the mainboard and the master control card and is configured with daughter card identification information.
CN202110920885.7A 2021-08-11 2021-08-11 Firmware program upgrading method and device and display control equipment Active CN113721953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110920885.7A CN113721953B (en) 2021-08-11 2021-08-11 Firmware program upgrading method and device and display control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110920885.7A CN113721953B (en) 2021-08-11 2021-08-11 Firmware program upgrading method and device and display control equipment

Publications (2)

Publication Number Publication Date
CN113721953A true CN113721953A (en) 2021-11-30
CN113721953B CN113721953B (en) 2024-06-04

Family

ID=78675612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110920885.7A Active CN113721953B (en) 2021-08-11 2021-08-11 Firmware program upgrading method and device and display control equipment

Country Status (1)

Country Link
CN (1) CN113721953B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114936037A (en) * 2022-07-21 2022-08-23 天津七一二移动通信有限公司 Clamp implementation method compatible with multi-model railway CIR program upgrading

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008181228A (en) * 2007-01-23 2008-08-07 Sony Corp Management system, management method, terminal equipment, management server, and program
CN102073521A (en) * 2011-01-06 2011-05-25 深圳市朗驰欣创科技有限公司 Software updating system of plug-in card type machine and software updating method
CN104143067A (en) * 2014-08-05 2014-11-12 广东欧珀移动通信有限公司 Terminal device and implementation method of software sharing mechanism
CN106708544A (en) * 2015-08-13 2017-05-24 中兴通讯股份有限公司 Method and apparatus for assisting in firmware upgrading of electronic devices, and terminal
CN110268386A (en) * 2018-01-19 2019-09-20 深圳市大疆创新科技有限公司 A kind of firmware upgrade method, device, electronic equipment and control equipment
CN111026428A (en) * 2019-11-22 2020-04-17 同源微(北京)半导体技术有限公司 System and method capable of simultaneously remotely updating FPGA firmware programs in multiple board cards on line
CN111538516A (en) * 2020-04-24 2020-08-14 苏州浪潮智能科技有限公司 Server power firmware upgrading method, device, equipment and readable storage medium
CN111782276A (en) * 2019-04-04 2020-10-16 福州瑞芯微电子股份有限公司 Method and terminal for automatically identifying hardware version
CN113238790A (en) * 2021-05-28 2021-08-10 成都新易盛通信技术股份有限公司 Firmware program updating method and system based on SD card and EEPROM

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008181228A (en) * 2007-01-23 2008-08-07 Sony Corp Management system, management method, terminal equipment, management server, and program
CN102073521A (en) * 2011-01-06 2011-05-25 深圳市朗驰欣创科技有限公司 Software updating system of plug-in card type machine and software updating method
CN104143067A (en) * 2014-08-05 2014-11-12 广东欧珀移动通信有限公司 Terminal device and implementation method of software sharing mechanism
CN106708544A (en) * 2015-08-13 2017-05-24 中兴通讯股份有限公司 Method and apparatus for assisting in firmware upgrading of electronic devices, and terminal
CN110268386A (en) * 2018-01-19 2019-09-20 深圳市大疆创新科技有限公司 A kind of firmware upgrade method, device, electronic equipment and control equipment
CN111782276A (en) * 2019-04-04 2020-10-16 福州瑞芯微电子股份有限公司 Method and terminal for automatically identifying hardware version
CN111026428A (en) * 2019-11-22 2020-04-17 同源微(北京)半导体技术有限公司 System and method capable of simultaneously remotely updating FPGA firmware programs in multiple board cards on line
CN111538516A (en) * 2020-04-24 2020-08-14 苏州浪潮智能科技有限公司 Server power firmware upgrading method, device, equipment and readable storage medium
CN113238790A (en) * 2021-05-28 2021-08-10 成都新易盛通信技术股份有限公司 Firmware program updating method and system based on SD card and EEPROM

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MINSUNG SON,HEEYOUL KIM: "Blockchain-based secure firmware management system in IoT environment", 《INTERNATIONAL CONFERENCE ON ADVANCED COMMUNICATIONS TECHNOLOGY(ICACT)》, 31 December 2019 (2019-12-31), pages 142 - 146 *
孙华: "一种通过USB接口的可靠固件升级技术", 《单片机与嵌入式***应用》, no. 9, 30 September 2014 (2014-09-30), pages 10 - 13 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114936037A (en) * 2022-07-21 2022-08-23 天津七一二移动通信有限公司 Clamp implementation method compatible with multi-model railway CIR program upgrading

Also Published As

Publication number Publication date
CN113721953B (en) 2024-06-04

Similar Documents

Publication Publication Date Title
CN109814524B (en) Vehicle diagnosis method, device and system
CN107766236B (en) Test task automatic management method, device, equipment and storage medium
CN111338662A (en) Firmware upgrading method and device for slave station and terminal
CN110928559A (en) Data burning method and device, electronic equipment and storage medium
CN102073514A (en) Method for updating basic input/output system
CN113849272A (en) Method and device for adding GPU (graphics processing Unit) resources in virtual machine
US10416981B2 (en) Systems and methods for on-demand loading of added features for information handling system provisioning
CN110780908A (en) Screen display program upgrading method and system and terminal equipment
CN113721953B (en) Firmware program upgrading method and device and display control equipment
CN111930395B (en) Program downloading method of intelligent terminal and intelligent terminal
CN113835729A (en) Upgrading method and device, terminal equipment and computer readable storage medium
US20190050221A1 (en) Systems and methods for usage driven determination of update criticality
CN109446008B (en) Fault reason detection method, fault reason detection device and terminal equipment
CN115495161B (en) BIOS option modification validation method and device and storage medium
CN116149941A (en) Monitoring method and device of server component, server and storage medium
WO2023060893A1 (en) Storage space management method and apparatus, and device and storage medium
CN111857785A (en) MCU starting method and device and terminal equipment
CN112667538B (en) Method, system, equipment and medium for obtaining network card identification number
CN114253573A (en) PCIe device firmware batch upgrading method, system, terminal and storage medium
CN112003837B (en) Intelligent equipment adaptation method and device based on Modbus protocol and storage medium
CN113849269A (en) Method and device for adding GPU (graphics processing Unit) resources in virtual machine
CN115113871A (en) Front-end code version information checking method, device and equipment based on data middlebox
CN115080113A (en) Item code detection method and device, readable storage medium and electronic equipment
CN113778482A (en) Dynamic updating method of running program, embedded controller and electronic equipment
CN112527327A (en) Method, system, terminal and storage medium for factory restoration of UOS operating system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant