CN113805921A - Firmware remote upgrading method and device - Google Patents

Firmware remote upgrading method and device Download PDF

Info

Publication number
CN113805921A
CN113805921A CN202111129234.2A CN202111129234A CN113805921A CN 113805921 A CN113805921 A CN 113805921A CN 202111129234 A CN202111129234 A CN 202111129234A CN 113805921 A CN113805921 A CN 113805921A
Authority
CN
China
Prior art keywords
firmware
target host
updating
program
target
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
CN202111129234.2A
Other languages
Chinese (zh)
Other versions
CN113805921B (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.)
Shenzhen Weixiaobao Technology Co ltd
Original Assignee
Shenzhen Weixiaobao 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 Shenzhen Weixiaobao Technology Co ltd filed Critical Shenzhen Weixiaobao Technology Co ltd
Priority to CN202111129234.2A priority Critical patent/CN113805921B/en
Publication of CN113805921A publication Critical patent/CN113805921A/en
Application granted granted Critical
Publication of CN113805921B publication Critical patent/CN113805921B/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal 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 invention discloses a method and a device for remotely upgrading firmware, wherein the method comprises the following steps: performing firmware detection on the target host to determine whether the target host needs to update the firmware; when the target host computer is confirmed to need to update the firmware, calling an update firmware program adapted to the target host computer; splitting the updating firmware program into a plurality of updating data packets and transmitting the updating data packets to a preset upper computer; and detecting whether the system state of the target host is normal or not by using the preset upper computer, if so, transmitting the firmware updating program to the target host, and otherwise, sending a prompt of system abnormity. Compared with the prior art in which wireless network transmission is used, the method for receiving the corresponding firmware updating program by the target host through wired transmission is more stable and reliable, avoids the distortion problem of data in the transmission process, and improves the reliability and the installation success probability of the firmware updating of the target host.

Description

Firmware remote upgrading method and device
Technical Field
The invention relates to the technical field of communication, in particular to a firmware remote upgrading method and device.
Background
Firmware (Firmware) refers to a device "driver" stored in the device, and bears the most basic and bottom layer work of an operating system, and the operating system can realize the running action of a specific machine according to the standard device driver through the Firmware. Therefore, in the hardware device, the firmware is the soul of the hardware device, and determines the function and performance of the hardware device. In order to repair product defects, meet changing demands and new functions, and shorten product cycles, the firmware of the device is upgraded. The existing firmware upgrading method is that equipment to be upgraded sends a firmware upgrading request to a server, and the server transmits an upgrading firmware program matched with the equipment to be upgraded to the equipment to be upgraded, so that the method is convenient and quick, can realize firmware upgrading on line, improves the experience of a user, and has the following problems at the same time: the device firmware is easily influenced by a network and a system in the updating process, and data distortion occurs in the process of downloading and updating the firmware program, so that the final updating fails, the time cost is wasted, and the experience of a user is reduced.
Disclosure of Invention
Aiming at the problems shown above, the invention provides a firmware remote upgrading method and device to solve the problems mentioned in the background art that the final update fails, the time cost is wasted, and the user experience is reduced due to the fact that the device firmware is easily influenced by a network and a system during the update process and data distortion occurs during the downloading and updating process of the firmware program.
A firmware remote upgrading method comprises the following steps:
performing firmware detection on the target host to determine whether the target host needs to update the firmware;
when the target host computer is confirmed to need to update the firmware, calling an update firmware program adapted to the target host computer;
splitting the updating firmware program into a plurality of updating data packets and transmitting the updating data packets to a preset upper computer;
and detecting whether the system state of the target host is normal or not by using the preset upper computer, if so, transmitting the firmware updating program to the target host, and otherwise, sending a prompt of system abnormity.
Preferably, the performing firmware detection on the target host to determine whether the target host needs to update the firmware includes:
detecting a current firmware program version of the target host;
confirming whether the current firmware program version is the latest firmware program version, if so, confirming that the target host does not need to upgrade the firmware, otherwise, confirming whether the latest firmware program version is downloaded in the target host;
if so, sending a prompt for installing the latest firmware program version to the target host;
otherwise, confirming that the target host needs to upgrade the firmware, and acquiring and recording the serial number of the target host.
Preferably, when it is determined that the target host needs to update the firmware, invoking an update firmware program adapted to the target host includes:
acquiring a plurality of corresponding first updating firmware according to the current firmware program version of the target host;
acquiring a host model of the target host, and matching the host model in a preset firmware library to determine a second updating firmware adapted to the target host;
confirming a target first updating firmware which is the same as the second updating firmware in the plurality of first updating firmware as an adaptive updating firmware of the target host;
and calling the update program of the target first update firmware and confirming the update program as the update firmware program.
Preferably, before the firmware updating program is split into a plurality of updating data packets and transmitted to a preset upper computer, the method further includes:
sending a prompt whether to upgrade the firmware to the target host, receiving a feedback instruction of the target host, and generating an upgrade confirmation instruction when the feedback instruction confirms upgrading;
sending the upgrading confirmation instruction to a preset server;
receiving a network data frame detection instruction fed back by the preset server and detecting a current network data frame of the target host;
and checking the current network data frame, and downloading the firmware updating program from the preset server when the current network data frame passes the checking.
Preferably, the splitting the firmware updating program into a plurality of updating data packets and transmitting the updating data packets to a preset upper computer includes:
determining a target data type corresponding to the firmware updating program and generating a splitting task according to the target data type;
creating a task thread and an operation parameter corresponding to each link in the split task;
after the creation is finished, performing splitting test on preset data based on the splitting task to obtain a test result;
and judging whether the task thread and the operation parameters are qualified or not according to the test result, if so, splitting the firmware updating program into a plurality of updating data packets based on the splitting task, and transmitting the updating data packets to a preset upper computer.
Preferably, the detecting, by using the preset upper computer, whether the system state of the target host is normal or not, if so, transmitting the firmware updating program to the target host, and otherwise, sending a warning of system abnormality, includes:
generating a test instruction on the preset upper computer, and feeding the test instruction back to the target host computer through a network;
detecting whether the target host receives the test instruction, if so, confirming that the network system of the target host is normal, otherwise, confirming that the network system of the target host is abnormal;
receiving operation feedback of the target host computer for the test instruction, and judging whether an operating system of the target host computer is normal or not according to the operation feedback;
when the network system and the operating system of the target host are both normal, the system state of the target host is confirmed to be normal, the updated firmware program is transmitted to the target host, and when any one of the network system and the operating system of the target host is abnormal, the system state of the target host is confirmed to be abnormal, and a prompt of system abnormality is sent.
Preferably, the method further comprises:
creating a preset boot environment related to the updated firmware program, and uploading the preset boot environment to the target host;
receiving the modification content of the user on the preset guide environment, and modifying the preset guide environment according to the modification content to obtain a target guide environment;
updating the current firmware program of the target host by using the updated firmware program in the target boot environment, and detecting the updating progress in real time;
and when the updating progress is the updating completion, storing the updating firmware program into the historical version firmware program of the target host.
Preferably, before updating the current firmware program of the target host by using the updated firmware program in the target boot environment and detecting the update progress in real time, the method further includes:
creating a script file for the target boot environment according to the updated firmware program;
associating the created script file with a plurality of firmware to be updated of the target host;
after the association is finished, installing the target boot environment on the target host, and acquiring a test configuration file related to the firmware updating program from a preset file library;
generating an installation test task of the updated firmware program based on the test configuration file;
determining the cycle test times and the cycle test circuit of the installation test task according to the type of the operating system, the CPU and the operation and storage parameters of the target host;
acquiring a test address of the installation test task, and importing the firmware updating program into the target boot environment according to the test address;
executing installation test work of updating the firmware program for a target number of times by using the test line according to the installation test task in the target boot environment;
acquiring execution information in each installation test working process, judging whether the update work of the updated firmware program on the target host can be finished in the target boot environment according to the execution information, if so, confirming that the updated firmware program can be normally installed on the target host, otherwise, confirming that the updated firmware program cannot be normally installed on the target host;
when the fact that the updated firmware program cannot be normally installed on the target host is confirmed, detecting whether an installation line of the target host is abnormal or not, and if yes, repairing the installation line through a repairing tool;
and after the repair is finished, carrying out the installation test again, and confirming that the updated firmware program can be normally installed on the target host when the test is passed.
Preferably, before updating the current firmware program of the target host by using the updated firmware program in the target boot environment and detecting the update progress in real time, the method further includes:
acquiring historical working information of the target host;
determining the working time period and the idle time period of the target host according to the historical working information;
determining a firmware updating time point of the target host according to the idle time period and the expected installation time of the updated firmware program;
acquiring a plurality of computer functions of the updated firmware program, and constructing a function table according to the computer functions;
acquiring a source code of each computer function, matching the source code of each computer function in a current firmware program of a target host to confirm whether a matching result exists, if so, confirming that the current firmware program is compatible with the updated firmware program, otherwise, confirming that the current firmware program is incompatible with the updated firmware program;
when the two are incompatible, obtaining a patch file corresponding to a target computer function without a matching result, and installing the patch file on the target host;
and after the installation is finished, sending an update prompt to the target host when the update time point is reached.
A firmware remote upgrade apparatus, the apparatus comprising:
the confirmation module is used for detecting the firmware of the target host to confirm whether the firmware needs to be upgraded or not;
the calling module is used for calling the updating firmware program adapted to the target host when the target host is confirmed to need to update the firmware;
the splitting module is used for splitting the firmware updating program into a plurality of updating data packets and transmitting the updating data packets to a preset upper computer;
and the transmission module is used for detecting whether the system state of the target host is normal or not by utilizing the preset upper computer, transmitting the firmware updating program to the target host if the system state of the target host is normal, and otherwise, sending a system abnormity prompt.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flowchart illustrating a method for remotely upgrading firmware according to the present invention;
FIG. 2 is another flowchart of a firmware remote upgrade method according to the present invention;
FIG. 3 is a flowchart illustrating a method for remotely upgrading firmware according to the present invention;
FIG. 4 is a screenshot of an embodiment of a method for remotely upgrading firmware provided by the present invention;
fig. 5 is a schematic structural diagram of a firmware remote upgrade apparatus provided in the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Firmware (Firmware) refers to a device "driver" stored in the device, and bears the most basic and bottom layer work of an operating system, and the operating system can realize the running action of a specific machine according to the standard device driver through the Firmware. Therefore, in the hardware device, the firmware is the soul of the hardware device, and determines the function and performance of the hardware device. In order to repair product defects, meet changing demands and new functions, and shorten product cycles, the firmware of the device is upgraded. The existing firmware upgrading method is that equipment to be upgraded sends a firmware upgrading request to a server, and the server transmits an upgrading firmware program matched with the equipment to be upgraded to the equipment to be upgraded, so that the method is convenient and quick, can realize firmware upgrading on line, improves the experience of a user, and has the following problems at the same time: the device firmware is easily influenced by a network and a system in the updating process, and data distortion occurs in the process of downloading and updating the firmware program, so that the final updating fails, the time cost is wasted, and the experience of a user is reduced. In order to solve the above problem, the present embodiment discloses a method for remotely upgrading firmware.
A method for remotely upgrading firmware, as shown in fig. 1, includes the following steps:
s101, detecting the firmware of a target host to determine whether the target host needs to upgrade the firmware;
step S102, when the target host computer is confirmed to need to upgrade the firmware, calling an updating firmware program adapted to the target host computer;
s103, splitting the firmware updating program into a plurality of updating data packets and transmitting the updating data packets to a preset upper computer;
and step S104, detecting whether the system state of the target host is normal or not by using the preset upper computer, if so, transmitting the firmware updating program to the target host, and otherwise, sending a system abnormity prompt.
The working principle of the technical scheme is as follows: firstly, firmware detection is carried out on a target host to confirm whether the target host needs to be upgraded, when the target host needs to be upgraded, an updating firmware program adapted to the target host is called, then the updating firmware program is split into a plurality of updating data packets and transmitted to a preset upper computer, finally whether the system state of the target host is normal is detected through the preset upper computer, and when the system state of the target host is displayed normally, the updating firmware program is transmitted to the target host through wired connection so that the target host can carry out firmware updating operation.
The beneficial effects of the above technical scheme are: compared with the prior art which utilizes wireless network transmission, the method has the advantages that the method utilizes a wired transmission mode to ensure that the target host receives the corresponding firmware updating program more stably and reliably, avoids the distortion problem of data in the transmission process, improves the reliability and the installation success probability of the firmware updating of the target host, further, can effectively evaluate whether the target host can update the firmware in the current state by detecting whether the system state of the target host is normal or not, thereby effectively carrying out prompt adjustment when the firmware cannot be updated so as to ensure the complete installation of the firmware updating program, further improving the reliability and the stability of the firmware updating, and solving the problem that the final updating fails because the equipment firmware updating process is easily influenced by the network and the system and the data distortion occurs in the process of downloading the firmware updating in the prior art, the time cost is wasted, and the experience of the user is reduced.
In one embodiment, as shown in fig. 2, the performing firmware detection on the target host to determine whether it needs to upgrade the firmware includes:
step S201, detecting the current firmware program version of the target host;
step S202, confirming whether the current firmware program version is the latest firmware program version, if so, confirming that the target host does not need to upgrade the firmware, otherwise, confirming whether the latest firmware program version is downloaded in the target host;
step S203, if yes, a prompt for installing the latest firmware program version is sent to the target host;
step S204, otherwise, confirming that the target host needs to upgrade the firmware, and acquiring and recording the serial number of the target host;
in this embodiment, if the latest firmware program version is downloaded in the target host, the latest firmware program version is detected, and after the latest firmware program version is detected, the latest firmware program version can be used to update the current firmware version in the target host.
The beneficial effects of the above technical scheme are: whether the target host needs to update the firmware can be quickly determined by comparing the firmware versions, so that the working efficiency is improved, further, repeated downloading of the updated firmware program can be avoided by detecting whether the latest firmware program version is downloaded in the target host in advance, the working efficiency is further improved, the memory utilization rate of the target host is also reduced, and the experience of a user is improved.
In one embodiment, as shown in fig. 3, when it is determined that the target host needs to upgrade the firmware, invoking an update firmware program adapted to the target host includes:
step S301, acquiring a plurality of corresponding first updating firmware according to the current firmware program version of the target host;
step S302, obtaining the host model of the target host, and matching the host model in a preset firmware library to determine a second updating firmware adapted to the target host;
step S303, confirming a target first update firmware which is the same as the second update firmware in the plurality of first update firmware as an adaptive update firmware of the target host;
step S304, the update program of the target first update firmware is called and confirmed as the update firmware program.
The beneficial effects of the above technical scheme are: the applicable updating firmware is determined according to the host model of the target host, so that the final updating firmware program can better meet the operating system requirement of the target host, the compatibility between the target host system and each firmware during operation is ensured, and the working stability of the target host is improved laterally.
In one embodiment, before the dividing the update firmware program into a plurality of update packets and transmitting the update packets to the preset upper computer, the method further includes:
sending a prompt whether to upgrade the firmware to the target host, receiving a feedback instruction of the target host, and generating an upgrade confirmation instruction when the feedback instruction confirms upgrading;
sending the upgrading confirmation instruction to a preset server;
receiving a network data frame detection instruction fed back by the preset server and detecting a current network data frame of the target host;
and checking the current network data frame, and downloading the firmware updating program from the preset server when the current network data frame passes the checking.
The beneficial effects of the above technical scheme are: whether the network of the target host is stable can be effectively evaluated by detecting the current network data frame of the target host and carrying out qualification test, and the stability of data transmission can be further improved.
In one embodiment, the splitting the firmware updating program into a plurality of updating data packets and transmitting the updating data packets to a preset upper computer includes:
determining a target data type corresponding to the firmware updating program and generating a splitting task according to the target data type;
creating a task thread and an operation parameter corresponding to each link in the split task;
after the creation is finished, performing splitting test on preset data based on the splitting task to obtain a test result;
and judging whether the task thread and the operation parameters are qualified or not according to the test result, if so, splitting the firmware updating program into a plurality of updating data packets based on the splitting task, and transmitting the updating data packets to a preset upper computer.
The beneficial effects of the above technical scheme are: the firmware updating method has the advantages that the splitting task is generated, the task thread and the operation parameters are set, so that the firmware updating program can be stably split into the plurality of updating data packets, the conditions of data disorder, distortion and the like cannot be caused, the stability and the integrity of data transmission are guaranteed, further, the splitting work of the firmware updating program can be more accurately guaranteed to be stably carried out by testing the splitting task, and the integral stability and reliability are improved.
In an embodiment, the detecting, by using the preset upper computer, whether a system state of the target host is normal or not, if so, transmitting the firmware updating program to the target host, and otherwise, sending a warning of system abnormality includes:
generating a test instruction on the preset upper computer, and feeding the test instruction back to the target host computer through a network;
detecting whether the target host receives the test instruction, if so, confirming that the network system of the target host is normal, otherwise, confirming that the network system of the target host is abnormal;
receiving operation feedback of the target host computer for the test instruction, and judging whether an operating system of the target host computer is normal or not according to the operation feedback;
when the network system and the operating system of the target host are both normal, the system state of the target host is confirmed to be normal, the updated firmware program is transmitted to the target host, and when any one of the network system and the operating system of the target host is abnormal, the system state of the target host is confirmed to be abnormal, and a prompt of system abnormality is sent.
The beneficial effects of the above technical scheme are: by simultaneously carrying out exception testing on the network system and the operating system of the target host, the target host can be ensured to completely receive the updated firmware program and can be enabled to completely install the updated firmware program, the overall stability and reliability are improved, and the firmware updating efficiency is ensured.
In one embodiment, the method further comprises:
creating a preset boot environment related to the updated firmware program, and uploading the preset boot environment to the target host;
receiving the modification content of the user on the preset guide environment, and modifying the preset guide environment according to the modification content to obtain a target guide environment;
updating the current firmware program of the target host by using the updated firmware program in the target boot environment, and detecting the updating progress in real time;
when the updating progress is updating completion, storing the updating firmware program into a historical version firmware program of a target host;
in this embodiment, the user can selectively update the firmware by modifying the preset boot environment, and can intelligently update the firmware according to the needs and wishes of the user.
The beneficial effects of the above technical scheme are: the target host can install the updated firmware program more compatibly by constructing the boot environment, so that the installation efficiency is improved, meanwhile, a user can also select firmware updating by himself, the experience of the user is improved, furthermore, the user can conveniently change the firmware program version of the target host and check the updating record by storing the historical version firmware program, and the flexibility of firmware updating is improved.
In one embodiment, as shown in fig. 4, includes:
and when the firmware is upgraded, sending an upgrade confirmation to the server, receiving the returned network judgment data frame in real time, and replying the network judgment data frame in real time. When the server network check is passed, the firmware program to be upgraded sent by the server is received, the firmware program to be upgraded is split into a plurality of data packets, the data packets are sent to the equipment to be upgraded one by one through wired connection, and the firmware program to be upgraded is stored as a historical version firmware program and used for replacing the firmware program version of the equipment to be upgraded.
The beneficial effects of the above technical scheme are: the problem of data distortion caused by network influence in the firmware upgrading process can be avoided, and the reliability of firmware upgrading is improved. In addition, by storing the historical version firmware program, the version of the firmware program can be conveniently changed and the upgrade record can be conveniently checked, and the flexibility of firmware upgrade is improved.
In one embodiment, before updating the current firmware program of the target host using the updated firmware program in the target boot environment and detecting the progress of the update in real time, the method further comprises:
creating a script file for the target boot environment according to the updated firmware program;
associating the created script file with a plurality of firmware to be updated of the target host;
after the association is finished, installing the target boot environment on the target host, and acquiring a test configuration file related to the firmware updating program from a preset file library;
generating an installation test task of the updated firmware program based on the test configuration file;
determining the cycle test times and the cycle test circuit of the installation test task according to the type of the operating system, the CPU and the operation and storage parameters of the target host;
acquiring a test address of the installation test task, and importing the firmware updating program into the target boot environment according to the test address;
executing installation test work of updating the firmware program for a target number of times by using the test line according to the installation test task in the target boot environment;
acquiring execution information in each installation test working process, judging whether the update work of the updated firmware program on the target host can be finished in the target boot environment according to the execution information, if so, confirming that the updated firmware program can be normally installed on the target host, otherwise, confirming that the updated firmware program cannot be normally installed on the target host;
when the fact that the updated firmware program cannot be normally installed on the target host is confirmed, detecting whether an installation line of the target host is abnormal or not, and if yes, repairing the installation line through a repairing tool;
and after the repair is finished, carrying out the installation test again, and confirming that the updated firmware program can be normally installed on the target host when the test is passed.
The beneficial effects of the above technical scheme are: whether the target host can complete the complete installation of the updated firmware program in the target boot environment can be effectively evaluated by performing the firmware update test work of the target host in the target boot environment, so that the installation stability and success probability of the target host for the updated firmware program are ensured, further, the target host can be further ensured to successfully install the updated firmware program by repairing the installation line of the target host, and the stability is further improved.
In one embodiment, before updating the current firmware program of the target host using the updated firmware program in the target boot environment and detecting the progress of the update in real time, the method further comprises:
acquiring historical working information of the target host;
determining the working time period and the idle time period of the target host according to the historical working information;
determining a firmware updating time point of the target host according to the idle time period and the expected installation time of the updated firmware program;
acquiring a plurality of computer functions of the updated firmware program, and constructing a function table according to the computer functions;
acquiring a source code of each computer function, matching the source code of each computer function in a current firmware program of a target host to confirm whether a matching result exists, if so, confirming that the current firmware program is compatible with the updated firmware program, otherwise, confirming that the current firmware program is incompatible with the updated firmware program;
when the two are incompatible, obtaining a patch file corresponding to a target computer function without a matching result, and installing the patch file on the target host;
and after the installation is finished, sending an update prompt to the target host when the update time point is reached.
The beneficial effects of the above technical scheme are: the firmware updating time point of the target host is intelligently determined, so that the busy working period of the target host can be effectively avoided, the working efficiency of the target host is effectively improved, further, the target host can perfectly and compatibly operate a firmware updating program by performing compatibility test on the target host and installing a patch file, the condition that part of firmware cannot work is avoided, and the stability and the working efficiency of the target host are improved.
The present invention also discloses a firmware remote upgrading apparatus, as shown in fig. 5, the apparatus includes:
a confirmation module 501, configured to perform firmware detection on a target host to confirm whether the target host needs to update firmware;
a calling module 502, configured to call, when it is determined that the target host needs to update the firmware, an update firmware program adapted to the target host;
the splitting module 503 is configured to split the firmware updating program into a plurality of updating data packets, and transmit the updating data packets to a preset upper computer;
the transmission module 504 is configured to detect whether a system state of the target host is normal by using the preset upper computer, transmit the firmware update program to the target host if the system state of the target host is normal, and otherwise, send a warning of system abnormality.
The working principle and the advantageous effects of the above technical solution have been explained in the method claims, and are not described herein again.
It will be understood by those skilled in the art that the first and second terms of the present invention refer to different stages of application.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method for remotely upgrading firmware is characterized by comprising the following steps:
performing firmware detection on the target host to determine whether the target host needs to update the firmware;
when the target host computer is confirmed to need to update the firmware, calling an update firmware program adapted to the target host computer;
splitting the updating firmware program into a plurality of updating data packets and transmitting the updating data packets to a preset upper computer;
and detecting whether the system state of the target host is normal or not by using the preset upper computer, if so, transmitting the firmware updating program to the target host, and otherwise, sending a prompt of system abnormity.
2. The method for remotely upgrading firmware according to claim 1, wherein the detecting the firmware of the target host to determine whether the target host needs to upgrade the firmware comprises:
detecting a current firmware program version of the target host;
confirming whether the current firmware program version is the latest firmware program version, if so, confirming that the target host does not need to upgrade the firmware, otherwise, confirming whether the latest firmware program version is downloaded in the target host;
if so, sending a prompt for installing the latest firmware program version to the target host;
otherwise, confirming that the target host needs to upgrade the firmware, and acquiring and recording the serial number of the target host.
3. The method for remotely upgrading firmware according to claim 1, wherein when it is determined that the target host needs to upgrade firmware, the method for calling the update firmware program adapted to the target host comprises:
acquiring a plurality of corresponding first updating firmware according to the current firmware program version of the target host;
acquiring a host model of the target host, and matching the host model in a preset firmware library to determine a second updating firmware adapted to the target host;
confirming a target first updating firmware which is the same as the second updating firmware in the plurality of first updating firmware as an adaptive updating firmware of the target host;
and calling the update program of the target first update firmware and confirming the update program as the update firmware program.
4. The method for remotely upgrading firmware according to claim 1, wherein before the step of splitting the firmware updating program into a plurality of updating data packets and transmitting the updating data packets to a preset upper computer, the method further comprises the following steps:
sending a prompt whether to upgrade the firmware to the target host, receiving a feedback instruction of the target host, and generating an upgrade confirmation instruction when the feedback instruction confirms upgrading;
sending the upgrading confirmation instruction to a preset server;
receiving a network data frame detection instruction fed back by the preset server and detecting a current network data frame of the target host;
and checking the current network data frame, and downloading the firmware updating program from the preset server when the current network data frame passes the checking.
5. The method for remotely upgrading firmware according to claim 1, wherein the splitting the firmware updating program into a plurality of updating data packets and transmitting the updating data packets to a preset upper computer comprises:
determining a target data type corresponding to the firmware updating program and generating a splitting task according to the target data type;
creating a task thread and an operation parameter corresponding to each link in the split task;
after the creation is finished, performing splitting test on preset data based on the splitting task to obtain a test result;
and judging whether the task thread and the operation parameters are qualified or not according to the test result, if so, splitting the firmware updating program into a plurality of updating data packets based on the splitting task, and transmitting the updating data packets to a preset upper computer.
6. The method for remotely upgrading firmware according to claim 1, wherein the step of detecting whether the system state of the target host is normal by using the preset upper computer, if so, transmitting the firmware updating program to the target host, and otherwise, sending a system abnormality prompt includes:
generating a test instruction on the preset upper computer, and feeding the test instruction back to the target host computer through a network;
detecting whether the target host receives the test instruction, if so, confirming that the network system of the target host is normal, otherwise, confirming that the network system of the target host is abnormal;
receiving operation feedback of the target host computer for the test instruction, and judging whether an operating system of the target host computer is normal or not according to the operation feedback;
when the network system and the operating system of the target host are both normal, the system state of the target host is confirmed to be normal, the updated firmware program is transmitted to the target host, and when any one of the network system and the operating system of the target host is abnormal, the system state of the target host is confirmed to be abnormal, and a prompt of system abnormality is sent.
7. The method for remotely upgrading firmware according to claim 1, further comprising:
creating a preset boot environment related to the updated firmware program, and uploading the preset boot environment to the target host;
receiving the modification content of the user on the preset guide environment, and modifying the preset guide environment according to the modification content to obtain a target guide environment;
updating the current firmware program of the target host by using the updated firmware program in the target boot environment, and detecting the updating progress in real time;
and when the updating progress is the updating completion, storing the updating firmware program into the historical version firmware program of the target host.
8. The method according to claim 7, wherein before updating the current firmware program of the target host with the updated firmware program in the target boot environment and detecting the progress of the update in real time, the method further comprises:
creating a script file for the target boot environment according to the updated firmware program;
associating the created script file with a plurality of firmware to be updated of the target host;
after the association is finished, installing the target boot environment on the target host, and acquiring a test configuration file related to the firmware updating program from a preset file library;
generating an installation test task of the updated firmware program based on the test configuration file;
determining the cycle test times and the cycle test circuit of the installation test task according to the type of the operating system, the CPU and the operation and storage parameters of the target host;
acquiring a test address of the installation test task, and importing the firmware updating program into the target boot environment according to the test address;
executing installation test work of updating the firmware program for a target number of times by using the test line according to the installation test task in the target boot environment;
acquiring execution information in each installation test working process, judging whether the update work of the updated firmware program on the target host can be finished in the target boot environment according to the execution information, if so, confirming that the updated firmware program can be normally installed on the target host, otherwise, confirming that the updated firmware program cannot be normally installed on the target host;
when the fact that the updated firmware program cannot be normally installed on the target host is confirmed, detecting whether an installation line of the target host is abnormal or not, and if yes, repairing the installation line through a repairing tool;
and after the repair is finished, carrying out the installation test again, and confirming that the updated firmware program can be normally installed on the target host when the test is passed.
9. The method according to claim 7, wherein before updating the current firmware program of the target host with the updated firmware program in the target boot environment and detecting the progress of the update in real time, the method further comprises:
acquiring historical working information of the target host;
determining the working time period and the idle time period of the target host according to the historical working information;
determining a firmware updating time point of the target host according to the idle time period and the expected installation time of the updated firmware program;
acquiring a plurality of computer functions of the updated firmware program, and constructing a function table according to the computer functions;
acquiring a source code of each computer function, matching the source code of each computer function in a current firmware program of a target host to confirm whether a matching result exists, if so, confirming that the current firmware program is compatible with the updated firmware program, otherwise, confirming that the current firmware program is incompatible with the updated firmware program;
when the two are incompatible, obtaining a patch file corresponding to a target computer function without a matching result, and installing the patch file on the target host;
and after the installation is finished, sending an update prompt to the target host when the update time point is reached.
10. A device for remotely upgrading firmware, the device comprising:
the confirmation module is used for detecting the firmware of the target host to confirm whether the firmware needs to be upgraded or not;
the calling module is used for calling the updating firmware program adapted to the target host when the target host is confirmed to need to update the firmware;
the splitting module is used for splitting the firmware updating program into a plurality of updating data packets and transmitting the updating data packets to a preset upper computer;
and the transmission module is used for detecting whether the system state of the target host is normal or not by utilizing the preset upper computer, transmitting the firmware updating program to the target host if the system state of the target host is normal, and otherwise, sending a system abnormity prompt.
CN202111129234.2A 2021-09-26 2021-09-26 Firmware remote upgrading method and device Active CN113805921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111129234.2A CN113805921B (en) 2021-09-26 2021-09-26 Firmware remote upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111129234.2A CN113805921B (en) 2021-09-26 2021-09-26 Firmware remote upgrading method and device

Publications (2)

Publication Number Publication Date
CN113805921A true CN113805921A (en) 2021-12-17
CN113805921B CN113805921B (en) 2023-10-24

Family

ID=78938655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111129234.2A Active CN113805921B (en) 2021-09-26 2021-09-26 Firmware remote upgrading method and device

Country Status (1)

Country Link
CN (1) CN113805921B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109189434A (en) * 2018-09-20 2019-01-11 安徽南瑞中天电力电子有限公司 A kind of online upgrading method of electric energy meter
WO2019203865A1 (en) * 2018-04-20 2019-10-24 Carrier Corporation Automatic device-to-device firmware upgrade of a wireless network
CN110389778A (en) * 2019-07-19 2019-10-29 苏州浪潮智能科技有限公司 A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform
WO2020082984A1 (en) * 2018-10-25 2020-04-30 华为技术有限公司 Firmware upgrade method and apparatus, and terminal
CN111475188A (en) * 2020-03-27 2020-07-31 苏州浪潮智能科技有限公司 Power module firmware updating method, device, equipment and storage medium
CN112130881A (en) * 2020-09-29 2020-12-25 广东芬尼克兹节能设备有限公司 Firmware remote upgrading method and device
CN113064619A (en) * 2021-04-02 2021-07-02 上海高仙自动化科技发展有限公司 Firmware upgrading method, device, system, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019203865A1 (en) * 2018-04-20 2019-10-24 Carrier Corporation Automatic device-to-device firmware upgrade of a wireless network
CN109189434A (en) * 2018-09-20 2019-01-11 安徽南瑞中天电力电子有限公司 A kind of online upgrading method of electric energy meter
WO2020082984A1 (en) * 2018-10-25 2020-04-30 华为技术有限公司 Firmware upgrade method and apparatus, and terminal
CN110389778A (en) * 2019-07-19 2019-10-29 苏州浪潮智能科技有限公司 A kind of isomery accelerates the MCU firmware upgrade method and relevant apparatus of platform
CN111475188A (en) * 2020-03-27 2020-07-31 苏州浪潮智能科技有限公司 Power module firmware updating method, device, equipment and storage medium
CN112130881A (en) * 2020-09-29 2020-12-25 广东芬尼克兹节能设备有限公司 Firmware remote upgrading method and device
CN113064619A (en) * 2021-04-02 2021-07-02 上海高仙自动化科技发展有限公司 Firmware upgrading method, device, system, equipment and storage medium

Also Published As

Publication number Publication date
CN113805921B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN111104143B (en) Firmware upgrading method and upgrading device
US20030051235A1 (en) Method and apparatus for verifying and analyzing computer software installation
US20090089775A1 (en) Automated Software Upgrade And Distribution
EP2456257A1 (en) Method and system for upgrading wireless data card
CN106802814B (en) Method and device for upgrading software version
CN104424095A (en) Automatic testing method and system of mobile terminal
CN111651366A (en) SDK test method, device, equipment and storage medium
CN111796849A (en) Firmware remote upgrading method and device
CN112104501A (en) Remote software upgrading method for agricultural machinery subsoiling Internet of things terminal equipment
CN106648762B (en) Method and device for building development environment
CN112333278A (en) Intelligent equipment upgrading method and system and intelligent equipment
CN107357612A (en) Application program updating detection method and device
CN105045640A (en) Software upgrading method and device and intelligent equipment
CN111324365A (en) Method and equipment for upgrading super-converged system
CN113297055A (en) Cloud testing system and method
CN105095006A (en) Method and device for repairing software installation failure
CN113805921B (en) Firmware remote upgrading method and device
CN111475188A (en) Power module firmware updating method, device, equipment and storage medium
CN116126379A (en) BIOS firmware upgrading method, device, equipment and storage medium
JP2006006467A (en) Maintenance support system and maintenance method of home electric goods
CN114443097A (en) Single-chip microcomputer firmware upgrading method used in conference unit
CN113504928A (en) Automatic application deployment method and device
KR20040022020A (en) Display device and method for upgrading firmware remotely
EP3862884A1 (en) Device testing arrangement
CN116225966B (en) Application evaluation method and system based on intelligent watch

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