Hardware program packaging and upgrading method, device and electronic equipment

By automatically judging device information and model information, the problem of inefficient compatibility judgment in hardware program upgrades is solved, and efficient upgrade of hardware programs is achieved.

CN114995849BActive Publication Date: 2025-08-15SHENZHEN LIDING PHOTOELECTRIC TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210472243.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2025-08-15
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

In the prior art, it is necessary to manually determine whether the hardware in the device is compatible when upgrading the hardware program, resulting in inefficient upgrades.

Method used

By judging the device information and model information of the device to be upgraded, the PCB board upgrade program that is compatible with the preset upgrade program is automatically determined, and package it into a fixed format hardware program upgrade file package to the device.

Benefits of technology

It realizes automatic compatible judgment of hardware programs and efficient upgrades, improving upgrade efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114995849B_ABST
    Figure CN114995849B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, and electronic device for packaging and upgrading a hardware program. The method comprises: determining, based on a preset upgrade program, whether device information of a device to be upgraded is identical to preset device information; if identical, determining the model information of the PCB board to be upgraded and each PCB board to be upgraded in the device to be upgraded; determining, from among several preset PCB board upgrade programs, a first target preset PCB board upgrade program that is identical to the model information of the PCB board to be upgraded; determining, from among the first target preset PCB board upgrade program, a second target preset PCB board upgrade program that is compatible with the PCB board to be upgraded; packaging the second target preset PCB board upgrade program into a hardware program upgrade file package in a preset format, and sending the hardware program upgrade file package to the device to be upgraded. The method can package the preset upgrade program into a file in a fixed format, thereby resolving the problem of hardware incompatibility in the sending device, and automatically determining whether multiple PCB boards in the device can upgrade the PCB board program, thereby improving upgrade efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of program upgrade, and in particular to a method, device and electronic device for hardware program packaging and upgrading. Background Art

[0002] A sending device includes multiple hardware components, such as the main board, backup board, input board, output board, and front panel. Each component has its own corresponding hardware program. As device functionality evolves, the required program versions also need to be updated. A single sending device may require multiple hardware program upgrades. However, when upgrading, consideration must be given to whether the hardware programs in the device can quickly achieve compatibility with each other and whether the hardware program can simultaneously upgrade multiple components as needed.

[0003] In the prior art, the hardware program must be compatible with the device and can simultaneously upgrade multiple hardware items. This requires manual upgrades after judgment by the staff, which significantly reduces the efficiency of the upgrade. Therefore, people in this field are in urgent need of finding a new technical solution to solve the above problems. Summary of the Invention

[0004] In order to overcome the problems existing in the related art, the present invention discloses a method, device and electronic device for hardware program packaging and upgrading.

[0005] According to a first aspect of the disclosed embodiments of the present invention, a method for hardware program package upgrade is provided, the method comprising:

[0006] According to a preset upgrade program, determining whether device information of the device to be upgraded is the same as preset device information corresponding to the preset upgrade program, wherein the preset upgrade program includes several preset PCB board upgrade programs;

[0007] If the device information of the device to be upgraded is the same as the preset device information, determining the PCB boards to be upgraded in the device to be upgraded and the model information of each PCB board to be upgraded;

[0008] Determining a first target preset PCB board upgrade program consistent with the model information of the PCB board to be upgraded from the plurality of preset PCB board upgrade programs;

[0009] Determining a second target preset PCB board upgrade program compatible with the PCB board to be upgraded from the first target preset PCB board upgrade program;

[0010] The second target preset PCB board upgrade program is packaged into a hardware program upgrade file package in a preset format, and the hardware program upgrade file package is sent to the device to be upgraded.

[0011] Optionally, packaging the second target preset PCB board upgrade program into a hardware program upgrade file package in a preset format includes:

[0012] If the second target preset PCB board upgrade program includes a mainboard program and a backplane program, packaging the second target preset PCB board program into a hardware program upgrade file package in a BIN format;

[0013] If the second target preset PCB board upgrade program includes an input board program and an output board program, the second target preset PCB board program is packaged into a hardware program upgrade file package in HEX format.

[0014] Optionally, determining whether the device information of the device to be upgraded is the same as the preset device information corresponding to the preset upgrade program includes:

[0015] Obtaining the device type and device model of the device to be upgraded, and the preset device type and preset device model corresponding to the preset upgrade program;

[0016] It is determined whether the device type and device model of the device to be upgraded are the same as the preset device type and preset device model corresponding to the preset upgrade program.

[0017] Optionally, determining a second target preset PCB board upgrade program compatible with the PCB board to be upgraded in the first target preset PCB board upgrade program includes:

[0018] Obtain first length information of a PCB program in the PCB board to be upgraded;

[0019] Obtain second length information of each first target preset PCB board upgrade program;

[0020] determining whether the first length information is the same as the second length information, and if so, determining that the first target preset PCB board upgrade program is compatible with the PCB board to be upgraded;

[0021] A first target preset PCB board upgrade program compatible with the PCB board to be upgraded is determined as a second target preset PCB board upgrade program.

[0022] Optionally, the method further includes:

[0023] Determine the device to be upgraded based on the mode type selected by the user, the mode types including: network card mode, sending card mode and playback box mode;

[0024] If the mode type selected by the user is the network card mode, the devices to be upgraded are the receiving card and the display module;

[0025] If the mode type selected by the user is the sending card mode, the devices to be upgraded are the sending card, receiving card and display module;

[0026] If the mode type selected by the user is the player box mode, the devices to be upgraded are the player box, the receiving card and the display module.

[0027] According to a second aspect of the disclosed embodiments of the present invention, there is provided a hardware program packaging and upgrading device, the device comprising:

[0028] a device information determination module, which determines, based on a preset upgrade program, whether device information of the device to be upgraded is the same as preset device information corresponding to the preset upgrade program, wherein the preset upgrade program includes several preset PCB board upgrade programs;

[0029] a model information determination module connected to the device information determination module, and determining the PCB board to be upgraded and the model information of each PCB board to be upgraded in the device to be upgraded if the device information of the device to be upgraded is the same as the preset device information;

[0030] a first target determination module, connected to the model information determination module, for determining a first target preset PCB board upgrade program consistent with the model information of the PCB board to be upgraded from among the plurality of preset PCB board upgrade programs;

[0031] a second target determination module, connected to the first target determination module, for determining a second target preset PCB board upgrade program compatible with the PCB board to be upgraded from the first target preset PCB board upgrade program;

[0032] The upgrade program packaging module is connected to the second target determination module, packages the second target preset PCB board upgrade program into a hardware program upgrade file package in a preset format, and sends the hardware program upgrade file package to the device to be upgraded.

[0033] Optionally, the upgrade program packaging module includes:

[0034] A BIN file packaging unit, if the second target preset PCB board upgrade program includes a mainboard program and a backplane program, packages the second target preset PCB board program into a hardware program upgrade file package in a BIN format;

[0035] The HEX file packaging unit packages the second target preset PCB board program into a hardware program upgrade file package in HEX format if the second target preset PCB board upgrade program includes an input board program and an output board program.

[0036] According to a third aspect of the disclosed embodiments of the present invention, there is provided an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0037] Memory for storing instructions executable by the processor;

[0038] The processor is configured to implement the steps of the hardware program packaging and upgrading method described in the first aspect of the embodiment disclosed in the present invention when executing instructions stored in the memory.

[0039] In summary, the present invention discloses a method, device, and electronic device for packaging and upgrading a hardware program. The method includes: judging, based on a preset upgrade program, whether device information of a device to be upgraded is identical to preset device information; if identical, determining the model information of the PCB board to be upgraded and each PCB board to be upgraded in the device to be upgraded; determining, from among several preset PCB board upgrade programs, a first target preset PCB board upgrade program that is consistent with the model information of the PCB board to be upgraded; determining, from among the first target preset PCB board upgrade program, a second target preset PCB board upgrade program that is compatible with the PCB board to be upgraded; packaging the second target preset PCB board upgrade program into a hardware program upgrade file package in a preset format, and sending the hardware program upgrade file package to the device to be upgraded.

[0040] It can package the preset upgrade program into a file with a fixed format to solve the problem of hardware incompatibility in the sending device, and automatically determine whether multiple PCB boards in the device can upgrade the PCB board program, thereby improving the upgrade efficiency.

[0041] Other features and advantages disclosed in the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following detailed description, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0043] Figure 1 is a flowchart of a method for packaging and upgrading a hardware program according to an exemplary embodiment;

[0044] Figure 2 This is a schematic diagram of the interface for package upgrade of a PCB board upgrade program;

[0045] Figure 3 is based on Figure 1 A flowchart of a flowchart of a file packaging method is shown;

[0046] Figure 4is a flowchart of a method for determining a device to be upgraded according to an exemplary embodiment;

[0047] Figure 5 This is a schematic diagram of the display interface when the host computer software detects the receiving card;

[0048] Figure 6 This is a structural block diagram of a hardware program packaging and upgrading device according to an exemplary embodiment;

[0049] Figure 7 is based on Figure 6 A structural block diagram of an upgrade program packaging module is shown;

[0050] Figure 8 is based on Figure 6 A structural block diagram of a device information judgment module is shown;

[0051] Figure 9 is based on Figure 6 A structural block diagram of a second target determination module is shown;

[0052] Figure 10 The figure is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0053] The following is a detailed description of the specific embodiments disclosed in the present invention in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to illustrate and explain the present invention and are not intended to limit the present invention.

[0054] Figure 1 FIG. 1 is a flowchart of a method for upgrading a hardware program package according to an exemplary embodiment. Figure 1 As shown, the method includes:

[0055] In step 101, according to a preset upgrade program, it is determined whether the device information of the device to be upgraded is the same as the preset device information corresponding to the preset upgrade program.

[0056] The preset upgrade program includes several preset PCB board upgrade programs.

[0057] For example, the hardware program package upgrade method disclosed in the present invention is executed in the host computer software, which is connected to each device. Usually, the host computer software sends a detection instruction to each device to determine the device to be upgraded that needs to be upgraded.

[0058] It should be noted that the various devices connected to the host computer software include but are not limited to: sending cards, receiving cards, video processing devices, etc. When manually testing each device, it is determined which devices need to be upgraded, and the devices that need to be upgraded are identified as devices to be upgraded and sent to the host computer software.

[0059] Specifically, obtain the device type and device model of the device to be upgraded, as well as the preset device type and preset device model corresponding to the preset upgrade program; and determine whether the device type and device model of the device to be upgraded are the same as the preset device type and preset device model corresponding to the preset upgrade program.

[0060] For example, after determining the device to be upgraded, the host computer software sends a detection command to the device to detect whether the device information of the device to be upgraded is the same as the device information corresponding to the preset upgrade program. The device information includes the device type and device model. The device type refers to the type of device to be upgraded, such as a sending card or video processing device, a receiving card, or a playback box. The device model refers to the specific model of the device to be upgraded, such as a sending card model A and a receiving card model B. The preset upgrade program corresponds to one or more preset device types and preset device models, indicating that the preset upgrade program can be used to upgrade devices of the preset device types and preset device models.

[0061] In step 102, if the device information of the device to be upgraded is the same as the preset device information, the PCB boards to be upgraded in the device to be upgraded and the model information of each PCB board to be upgraded are determined.

[0062] For example, since different devices to be upgraded contain different numbers of PCB boards (some devices contain multiple PCB boards) and model information, and even devices to be upgraded of the same device type may contain different PCB boards (for example, the PCB boards in ordinary sending cards and customized sending cards are different), therefore, if the device information of the device to be upgraded is the same as the preset device information corresponding to the preset upgrade program, it is necessary to determine whether the PCB board to be upgraded in the device to be upgraded is the same as the model information corresponding to the preset PCB board upgrade program.

[0063] In step 103, a first target preset PCB board upgrade program that is consistent with the model information of the PCB board to be upgraded is determined from the plurality of preset PCB board upgrade programs.

[0064] For example, based on the model information of the PCB board to be upgraded, among multiple preset PCB board upgrade programs, the preset PCB board model information corresponding to each preset PCB board upgrade program is determined, and the preset PCB board upgrade program corresponding to the preset PCB board model information consistent with the model information of the PCB board to be upgraded is determined as the first target preset PCB board upgrade program.

[0065] In the disclosed embodiments of the present invention, a sending card is used as an example to illustrate the device to be upgraded (it should be noted that a sending card or a video processing device can be referred to as a sending device, and the sending device includes an FPGA board and a RAM board, and the FPGA board and RAM board of the sending device also include a main board, a backplane, an input sub-board, an output sub-board, and a front panel). If the device to be upgraded is a sending card and the device information of the sending card is the same as the device information corresponding to the preset upgrade program, the next step is to determine whether the PCB board to be upgraded in the sending card is the same as the preset PCB board model information corresponding to the preset upgrade program. For the sending card, it is necessary to determine whether the model information of the FPGA board and RAM board contained in the sending card is the same as the preset PCB board model information. After determining that they are the same, it is necessary to further determine whether the main board, backplane, input sub-board, output sub-board (the input sub-board and output sub-board are associated with the input interface and output interface), and front panel of the FPGA board or RAM board are the same as the preset PCB board model information (the same applies to video processing devices, and only the sending card and video processing device need to determine whether the model information of the main board, backplane, input sub-board, output sub-board, and front panel is the same as the preset PCB board model information).

[0066] For example, if the FPGA board model information in the sending card is PFGA1, and the RAM board model information in the sending card is RAM2, and the preset PCB board model information corresponding to the preset PCB board upgrade program includes FPGA1 and RAM1, then the FPGA board model information in the sending card is determined to be the same as the preset PCB board model information, while the RAM board model information in the sending card is different from the preset PCB board model information. Therefore, it is necessary to further determine whether the model information of the mainboard, backplane, input sub-board, output sub-board, and front panel of the FPGA board in the sending card is the same as the preset PCB board model information. If they are the same, the preset PCB board upgrade program with the same model information is determined as the first target preset PCB board upgrade program.

[0067] In addition, in another embodiment disclosed in the present invention, the device to be upgraded can also be a receiving card or a playback box. The PCB board in the receiving card only includes an FPGA board and a RAM board, and does not include a main board, a backboard, an input sub-board, an output sub-board and a front panel, etc., while the PCB board in the playback box only includes a RAM board, and does not include an FPGA board, a main board, a backboard, an input sub-board, an output sub-board and a front panel. Therefore, the step of judging whether the model information of the PCB board to be upgraded in the receiving card and the playback box is the same as the preset PCB board model information is different from the judgment step of the sending card.

[0068] Specifically, if the device to be upgraded is a receiving card, after determining that the device information of the device to be upgraded is the same as the device information corresponding to the preset upgrade program, when determining whether the model information of the PCB board to be upgraded in the device to be upgraded is the same as the preset PCB board model information corresponding to the preset upgrade program, it is only necessary to determine whether the model information of the FPGA board and the RAM board in the receiving card are the same as the preset PCB board model information. If the device to be upgraded is a playback box, after determining that the device information of the device to be upgraded is the same as the device information corresponding to the preset upgrade program, when determining whether the model information of the PCB board to be upgraded in the device to be upgraded is the same as the preset PCB board model information corresponding to the preset upgrade program, it is only necessary to determine whether the model information of the RAM board in the playback box is the same as the preset PCB board model information.

[0069] In step 104, a second target preset PCB board upgrade program that is compatible with the PCB board to be upgraded is determined from the first target preset PCB board upgrade program.

[0070] For example, when the device information and preset PCB board model information corresponding to the preset upgrade program are consistent with the device to be upgraded and the PCB board to be upgraded, as long as the preset upgrade program is compatible with the device to be upgraded, the preset upgrade program can be used to upgrade the device to be upgraded.

[0071] Specifically, first length information of a PCB program in a PCB board to be upgraded is obtained; second length information of each first target preset PCB board upgrade program is obtained; whether the first length information is identical to the second length information is determined; if so, it is determined that the first target preset PCB board upgrade program is compatible with the PCB board to be upgraded; and the first target preset PCB board upgrade program compatible with the PCB board to be upgraded is determined as the second target preset PCB board upgrade program.

[0072] For example, to determine whether the preset upgrade program is compatible with the PCB board to be upgraded, it is necessary to determine whether the length of the first target preset PCB board upgrade program, whose device information and preset PCB board model information in the preset upgrade ascending order are the same as those of the PCB board to be upgraded, is the same as the length of the original PCB program in the PCB board to be upgraded, that is, to determine whether the first length information is the same as the second length information, and determine the first target preset PCB board upgrade program corresponding to the second length information that is the same as the first length information as the second target preset PCB board upgrade program, so as to package the second target preset PCB board upgrade program according to the following step 105.

[0073] Specifically, if the device to be upgraded is a sending card, a video processing device or a receiving card, it is also necessary to judge whether the PCB board to be upgraded in the sending card, the video processing device or the receiving card is compatible with the preset PCB board upgrade program. And if the device to be upgraded is a play box, since the PCB board in the play box only has a RAM board, it is not necessary to judge whether the PCB board to be upgraded in the play box is compatible with the preset PCB board upgrade program. That is, if the device to be upgraded is a sending card, a video processing device or a receiving card, it is necessary to execute step 104 (i.e., it is necessary to execute steps 101-105 when the hardware program package upgrade method executed by sending card, video processing device or receiving card), if the device to be upgraded is a play box, it is not necessary to execute step 104 (i.e., it is only necessary to execute steps 101-103 and step 105 when the hardware program package upgrade method executed by play box).

[0074] In step 105, the second target preset PCB board upgrade program is packaged into a hardware program upgrade file package in a preset format, and the hardware program upgrade file package is sent to the device to be upgraded.

[0075] For example, the second target preset PCB board upgrade program is packaged according to a preset format, and the packaged hardware program upgrade file package is sent to the corresponding PCB board to be upgraded in the device to be upgraded, so that the PCB board to be upgraded performs the program upgrade, such as Figure 2 The figure shows the interface for packaging and upgrading the upgrade program of the second target preset PCB board in the host computer software (the device to be upgraded is the sending card).

[0076] Specifically, Figure 3 This is a flowchart of a file packaging method, such as Figure 3 As shown, step 105 includes:

[0077] In step 1051, if the second target preset PCB board upgrade program includes a mainboard program and a backplane program, the second target preset PCB board program is packaged into a hardware program upgrade file package in a BIN format.

[0078] In step 1052, if the second target preset PCB board upgrade program includes an input board program and an output board program, the second target preset PCB board program is packaged into a hardware program upgrade file package in HEX format.

[0079] For example, under normal circumstances, the second target preset PCB board upgrade program is packaged into a hexadecimal hardware program upgrade file package, and the hardware program upgrade file package adopts a preset format, such as BIN format or HEX format. Specifically, the format adopted by the hardware program upgrade file package is related to the type of program contained therein. If it contains a mainboard program and a backplane program, it is packaged into a hardware program upgrade file package in BIN format. If it contains an input daughterboard program and an output daughterboard program, it is packaged into a hardware program upgrade file package in HEX format. In this way, according to the format of the file package, the type of program contained therein can be determined, which facilitates the identification of the file package. Taking the BIN file package containing the mainboard program and the backplane program as an example, various parameter information can be set in the hardware program upgrade file package in BIN format. The parameter information at the beginning of the file package is a 128-bit GUID (for identifying the file package), mainboard information (including length information, version number and type), CRC (for checking whether an error occurs, that is, determining whether the mainboard program information is complete), mainboard program information (program length information), backplane information and backplane program information, etc.

[0080] It is understandable that since only the sending card and the video processing device include PCB boards such as the main board, backplane, input sub-board, output sub-board, and front panel, the above steps 1051 and 1052 are only performed when the device to be upgraded is the sending card and the video processing device. If the device to be upgraded is a receiving card or a playback box, after determining the second target preset PCB board upgrade program corresponding to the receiving card or the playback box, the second target preset PCB board upgrade program for the receiving card or the playback box is directly packaged into a hardware program upgrade file package in BIN format (i.e., the preset format corresponding to the receiving card and the playback box is BIN format).

[0081] Figure 4 FIG. 1 is a flow chart showing a method for determining a device to be upgraded according to an exemplary embodiment. Figure 4 As shown, the method includes:

[0082] In step 401, the device to be upgraded is determined according to the mode type selected by the user, and the mode types include: network card mode, sending card mode and playback box mode.

[0083] For example, when determining the device to be upgraded, it can also be determined based on the mode type selected by the user in the upper computer software. Each mode type represents a screen-driving method. For example, the network card mode means that the network card drives the display screen, the sending card mode means that the sending card mode drives the display screen, and the playback box mode means that the playback box drives the display screen. Therefore, according to different screen-driving methods, the devices involved in this mode can be determined as devices to be upgraded.

[0084] In step 402, if the mode type selected by the user is the network card mode, the devices to be upgraded are the receiving card and the display module.

[0085] For example, after determining that the mode type is the network card mode, it can be determined that the device to be upgraded is the required device when the network card drives the display screen, namely the receiving card and the display module. After determining the device to be upgraded, it is also necessary to determine which PCB boards in the receiving card and the display module can be upgraded through the preset upgrade program. Among them, when determining the PCB board in the receiving card that can be upgraded through the preset upgrade program, first determine whether the device information of the receiving card is the same as the device information corresponding to the preset upgrade program. If the same, it is also necessary to determine whether the model information of the FPGA board and the RAM board in the receiving card is the same as the preset PCB board model information, and determine the FPGA board or RAM board whose model information is the same as the preset PCB board model information and is compatible with the preset upgrade program as the target PCB board to be upgraded that can be upgraded through the preset upgrade program. The upgrade of the display module is generally related to the receiving card, and the RAM board in the display module can also be upgraded. That is, when the device information of the display module is the same as the device information corresponding to the program to be upgraded, the RAM board whose model information is the same as the preset PCB board model information is determined as the target PCB board to be upgraded. The second target preset PCB board upgrade program corresponding to the target PCB board to be upgraded is packaged to obtain a hardware program upgrade file package (BIN format). If the user selects the network card mode, the corresponding hardware program upgrade file package can be called to batch upgrade all target PCB boards to be upgraded in the network card mode.

[0086] In addition, during the program upgrade process, the upper computer software will display the progress status and bit error rate to enable the staff to determine the program upgrade status. Finally, an upgrade status list will be generated to record the upgrade completion status of each device to be upgraded and the list will be sent to the preset recipient.

[0087] It should be noted that in the network card mode disclosed in the embodiments of the present invention, only a Gigabit network card can detect the receiving card. This means that the network card must be a Gigabit network card when used with a screen. The specific steps for determining whether a network card is a Gigabit network card include: if the network card contains characters such as Gigabit, GBE, 10 / 100 / 1000M, or RTL8169, the network card is determined to be a Gigabit network card; if the network card contains characters such as Fast Ethernet, 10 / 100, or FE, the network card is determined to be a 100M network card. 100M network cards do not support receiving card upgrades.

[0088] In addition, before the user selects the network card mode and determines the device to be upgraded, it is also necessary to send a detection command to the receiving card in the form of a detection receiving card program. After detecting all the receiving cards connected to the host computer software, the host computer software will display the receiving card "serial number", "network port number", "version", "whether it supports upgrade", "whether it supports writing fonts", "bit error rate", and "progress status" (i.e., receiving card list). Figure 5 The following diagram shows the interface displayed when the host computer software detects receiving cards. If "Yes" is displayed for "Is Upgrade Supported," the host computer software can read back the receiving card program. If "No" is displayed for "Is Upgrade Supported," the host computer software cannot read back the receiving card program. In the resulting detected receiving card list, the receiving card serial number can be determined based on the order of detected receiving cards, or based on the order in which the receiving cards are connected.

[0089] In addition, when detecting the sending card, you can select a single network port or multiple network ports.

[0090] In step 403, if the mode type selected by the user is the sending card mode, the devices to be upgraded are the sending card, the receiving card and the display module.

[0091] For example, when the devices to be upgraded are a sending card, a receiving card, and a display module, for the sending card, the above steps 101-105 can be used to determine whether the device information of the sending card is the same as the device information corresponding to the preset upgrade program, and whether the model information of the PCB board to be upgraded in the sending card is the same as the preset PCB board model information corresponding to the preset upgrade program, and to determine the target PCB board to be upgraded and the hardware program upgrade file package. For the receiving card and display module, the method for determining the target PCB board to be upgraded and the hardware program upgrade file package is the same as the processing process for the receiving card and display module in step 402. In this way, if the user selects the sending card mode again in a subsequent operation, the hardware program upgrade file package corresponding to the sending card mode in step 403 of the disclosed embodiment of the present invention can be called to perform a hardware upgrade.

[0092] In step 404, if the mode type selected by the user is the player box mode, the devices to be upgraded are the player box, the receiving card and the display module.

[0093] For example, similarly, in the playback box mode, the target PCB board to be upgraded in the playback box, receiving card and display module is determined (it can be understood that there is only a RAM board in the playback box and display module. When the model information of the RAM board is the same as the preset PCB board model information, the RAM board in the playback box or display module can be determined as the target PCB board to be upgraded) and a hardware program upgrade file package is generated according to the preset upgrade program. When the user selects the same mode type, the corresponding hardware program upgrade file package is called to realize the repeated circulation and use of the same file package without the need to call it in the database.

[0094] Figure 6 FIG. 1 is a structural block diagram of a hardware program package upgrade device according to an exemplary embodiment. Figure 6 As shown, the apparatus 600 includes:

[0095] The device information determination module 610 determines whether the device information of the device to be upgraded is the same as the preset device information corresponding to the preset upgrade program according to the preset upgrade program, wherein the preset upgrade program includes several preset PCB board upgrade programs;

[0096] The model information determination module 620 is connected to the device information determination module 610, and determines the PCBs to be upgraded and the model information of each PCB to be upgraded in the device to be upgraded if the device information of the device to be upgraded is the same as the preset device information;

[0097] A first target determination module 630 is connected to the model information determination module 620 and determines a first target preset PCB board upgrade program that is consistent with the model information of the PCB board to be upgraded from the plurality of preset PCB board upgrade programs;

[0098] A second target determination module 640 is connected to the first target determination module 630, and determines a second target preset PCB board upgrade program compatible with the PCB board to be upgraded from the first target preset PCB board upgrade program;

[0099] The upgrade program packaging module 650 is connected to the second target determination module 640, packages the second target preset PCB board upgrade program into a hardware program upgrade file package in a preset format, and sends the hardware program upgrade file package to the device to be upgraded.

[0100] Figure 7 is based on Figure 6 A structural block diagram of an upgrade program packaging module is shown, such as Figure 6 As shown, the upgrade program packaging module 650 includes:

[0101] The BIN file packaging unit 651 packages the second target preset PCB board program into a hardware program upgrade file package in a BIN format if the second target preset PCB board upgrade program includes a mainboard program and a backplane program;

[0102] The HEX file packaging unit 652 packages the second target preset PCB board program into a hardware program upgrade file package in HEX format if the second target preset PCB board upgrade program includes an input board program and an output board program.

[0103] Figure 8 is based on Figure 6 A structural block diagram of a device information judgment module is shown in FIG. Figure 8 As shown, the device information determination module 610 includes:

[0104] The device information acquisition unit 611 acquires the device type and device model of the device to be upgraded, and the preset device type and preset device model corresponding to the preset upgrade program;

[0105] The device information determining unit 612 is connected to the device information acquiring unit 611 and determines whether the device type and device model of the device to be upgraded are the same as the preset device type and preset device model corresponding to the preset upgrade program.

[0106] Figure 9 is based on Figure 6 A structural block diagram of a second target determination module is shown in FIG. Figure 9 As shown, the second target determination module 640 includes:

[0107] The first length information obtaining unit 641 obtains first length information of the PCB program in the PCB board to be upgraded;

[0108] The second length information obtaining unit 642 is connected to the first length information obtaining unit 641 and obtains the second length information of each first target preset PCB board upgrade program;

[0109] A compatibility determination unit 643 is connected to the second length information acquisition unit 642 and determines whether the first length information is the same as the second length information. If they are the same, it is determined that the first target preset PCB board upgrade program is compatible with the PCB board to be upgraded.

[0110] The second target determining unit 644 is connected to the compatibility judging unit 643 and determines the first target preset PCB board upgrading program that is compatible with the PCB board to be upgraded as the second target preset PCB board upgrading program.

[0111] Figure 10 FIG. 1 is a schematic structural diagram of an electronic device according to an exemplary embodiment. Figure 10 As shown, it includes a processor 001, a communication interface 002, a memory 003 and a communication bus 004, wherein the processor 001, the communication interface 002, and the memory 003 communicate with each other through the communication bus 004.

[0112] Memory 003, used for storing computer programs;

[0113] The processor 001 is configured to implement the above-mentioned hardware program package upgrade method when executing the program stored in the memory 003. The method includes:

[0114] According to a preset upgrade program, determining whether device information of the device to be upgraded is the same as preset device information corresponding to the preset upgrade program, wherein the preset upgrade program includes several preset PCB board upgrade programs;

[0115] If the device information of the device to be upgraded is the same as the preset device information, determining the PCB board to be upgraded in the device to be upgraded and the model information of each PCB board to be upgraded;

[0116] Determining a first target preset PCB board upgrade program that is consistent with the model information of the PCB board to be upgraded from the plurality of preset PCB board upgrade programs;

[0117] Determining a second target preset PCB board upgrade program compatible with the PCB board to be upgraded from the first target preset PCB board upgrade program;

[0118] The second target preset PCB board upgrade program is packaged into a hardware program upgrade file package in a preset format, and the hardware program upgrade file package is sent to the device to be upgraded.

[0119] In summary, the present invention discloses a method, device, and electronic device for packaging and upgrading a hardware program. The method comprises: determining, based on a preset upgrade program, whether the device information of a device to be upgraded is identical to the preset device information; if identical, determining the model information of the PCB board to be upgraded and each PCB board to be upgraded in the device to be upgraded; determining, from among several preset PCB board upgrade programs, a first target preset PCB board upgrade program that is consistent with the model information of the PCB board to be upgraded; determining, from among the first target preset PCB board upgrade program, a second target preset PCB board upgrade program that is compatible with the PCB board to be upgraded; packaging the second target preset PCB board upgrade program into a hardware program upgrade file package in a preset format, and sending the hardware program upgrade file package to the device to be upgraded. The method can package the preset upgrade program into a file in a fixed format, thereby resolving the problem of hardware incompatibility in the sending device, and automatically determining whether multiple PCB boards in the device can upgrade the PCB board program, thereby improving upgrade efficiency.

[0120] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings. However, the present disclosure is not limited to the specific details of the above embodiments. Within the technical concept of the present disclosure, various simple modifications can be made to the technical solutions of the present disclosure, and these simple modifications all fall within the scope of protection of the present disclosure.

[0121] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any appropriate manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0122] In addition, the various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A method for upgrading a hardware program package, characterized in that: The method comprises: According to a preset upgrade program, determining whether device information of the device to be upgraded is the same as preset device information corresponding to the preset upgrade program, wherein the preset upgrade program includes several preset PCB board upgrade programs; If the device information of the device to be upgraded is the same as the preset device information, determining the PCB boards to be upgraded in the device to be upgraded and the model information of each PCB board to be upgraded; Determining a first target preset PCB board upgrade program consistent with the model information of the PCB board to be upgraded from the plurality of preset PCB board upgrade programs; Determining a second target preset PCB board upgrade program compatible with the PCB board to be upgraded from the first target preset PCB board upgrade program; Packaging the second target preset PCB board upgrade program into a hardware program upgrade file package in a preset format, and sending the hardware program upgrade file package to the device to be upgraded; The determining of a second target preset PCB board upgrade program compatible with the PCB board to be upgraded from the first target preset PCB board upgrade program includes: obtaining first length information of the PCB program in the PCB board to be upgraded; obtaining second length information of each first target preset PCB board upgrade program; determining whether the first length information is the same as the second length information, and if so, determining that the first target preset PCB board upgrade program is compatible with the PCB board to be upgraded; and determining the first target preset PCB board upgrade program compatible with the PCB board to be upgraded as the second target preset PCB board upgrade program; The method also includes: determining the device to be upgraded based on the mode type selected by the user, the mode types including: network card mode, sending card mode and playback box mode; if the mode type selected by the user is network card mode, the devices to be upgraded are the receiving card and the display module; if the mode type selected by the user is sending card mode, the devices to be upgraded are the sending card, the receiving card and the display module; if the mode type selected by the user is playback box mode, the devices to be upgraded are the playback box, the receiving card and the display module.

2. The hardware program package upgrade method according to claim 1, characterized in that: The step of packaging the second target preset PCB board upgrade program into a hardware program upgrade file package in a preset format includes: If the second target preset PCB board upgrade program includes a mainboard program and a backplane program, packaging the second target preset PCB board program into a hardware program upgrade file package in a BIN format; If the second target preset PCB board upgrade program includes an input board program and an output board program, the second target preset PCB board program is packaged into a hardware program upgrade file package in HEX format.

3. The hardware program package upgrade method according to claim 1, characterized in that: The determining whether the device information of the device to be upgraded is the same as the preset device information corresponding to the preset upgrade program includes: Obtaining the device type and device model of the device to be upgraded, and the preset device type and preset device model corresponding to the preset upgrade program; It is determined whether the device type and device model of the device to be upgraded are the same as the preset device type and preset device model corresponding to the preset upgrade program.

4. A hardware program package upgrade device, characterized in that: The device comprises: a device information determination module, which determines, based on a preset upgrade program, whether device information of the device to be upgraded is the same as preset device information corresponding to the preset upgrade program, wherein the preset upgrade program includes several preset PCB board upgrade programs; a model information determination module connected to the device information determination module, and determining the PCB board to be upgraded and the model information of each PCB board to be upgraded in the device to be upgraded if the device information of the device to be upgraded is the same as the preset device information; a first target determination module, connected to the model information determination module, for determining a first target preset PCB board upgrade program consistent with the model information of the PCB board to be upgraded from among the plurality of preset PCB board upgrade programs; a second target determination module, connected to the first target determination module, for determining a second target preset PCB board upgrade program compatible with the PCB board to be upgraded from the first target preset PCB board upgrade program; an upgrade program packaging module, connected to the second target determination module, packaging the second target preset PCB board upgrade program into a hardware program upgrade file package in a preset format, and sending the hardware program upgrade file package to the device to be upgraded; The second target determination module includes: a first length information acquisition unit, which acquires first length information of a PCB program in a PCB board to be upgraded; a second length information acquisition unit, which is connected to the first length information acquisition unit and acquires second length information of each first target preset PCB board upgrade program; a compatibility judgment unit, which is connected to the second length information acquisition unit and determines whether the first length information is the same as the second length information, and if so, determines that the first target preset PCB board upgrade program is compatible with the PCB board to be upgraded; and a second target determination unit, which is connected to the compatibility judgment unit, determines the first target preset PCB board upgrade program that is compatible with the PCB board to be upgraded as the second target preset PCB board upgrade program. It also includes: determining the device to be upgraded according to the mode type selected by the user, and the mode types include: network card mode, sending card mode and playback box mode; if the mode type selected by the user is network card mode, the devices to be upgraded are the receiving card and display module; if the mode type selected by the user is sending card mode, the devices to be upgraded are the sending card, receiving card and display module; if the mode type selected by the user is playback box mode, the devices to be upgraded are the playback box, receiving card and display module.

5. The hardware program package upgrade device according to claim 4, characterized in that: The upgrade program packaging module includes: A BIN file packaging unit, if the second target preset PCB board upgrade program includes a mainboard program and a backplane program, packages the second target preset PCB board program into a hardware program upgrade file package in a BIN format; The HEX file packaging unit packages the second target preset PCB board program into a hardware program upgrade file package in HEX format if the second target preset PCB board upgrade program includes an input board program and an output board program.

6. The hardware program package upgrade device according to claim 4, characterized in that: The device information determination module includes: a device information acquisition unit for acquiring the device type and device model of the device to be upgraded, and the preset device type and preset device model corresponding to the preset upgrade program; The device information determination unit is connected to the device information acquisition unit and determines whether the device type and device model of the device to be upgraded are the same as the preset device type and preset device model corresponding to the preset upgrade program.

7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing instructions executable by the processor; The processor is configured to implement the steps of the hardware program packaging and upgrading method according to any one of claims 1 to 3 when executing instructions stored in the memory.

Citation Information

Patent Citations

  • Method and device for providing driving information

    CN104750504A

  • Method for realizing software edition upgrading

    CN1859191A