Firmware upgrade status determination method, device, equipment and storage medium

By using mobile Wifi devices to send firmware upgrade instructions during the firmware upgrade process and determining the upgrade result status in combination with cached version information and delay time, the problem of inaccurate firmware upgrade status in the prior art is solved, and more accurate and reliable device upgrade control is achieved.

CN119149075BActive Publication Date: 2025-04-11ROYPOW TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411607453.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-04-11
Estimated Expiration
2044-11-12

AI Technical Summary

Technical Problem

In the prior art, the determination of the firmware upgrade status may not match the actual status, resulting in inaccurate and reliable upgrade control.

Method used

By mobile Wifi devices, send firmware upgrade instructions to the device to be upgraded, determine the firmware type, and determine the delay time according to the correspondence between the preset firmware type and the delay time. Combining cached version information and delay time, determine the upgrade result status of the firmware to be upgraded.

Benefits of technology

Improves the accuracy of firmware upgrade status and ensures reliability and precise control of the equipment upgrade process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119149075B_ABST
    Figure CN119149075B_ABST
Patent Text Reader

Abstract

The present application relates to the field of device upgrades, and in particular to a method, apparatus, device and storage medium for determining a firmware upgrade status. The method comprises: sending a firmware upgrade instruction to a device to be upgraded via a mobile Wifi device; determining the firmware type of the firmware to be upgraded included in the firmware upgrade instruction; determining the delay time corresponding to the firmware type of the firmware to be upgraded according to a preset correspondence between the firmware type and the delay time, wherein the delay time is the duration of the effective upgrade status detection after the firmware upgrade instruction is sent; determining the upgrade result status of the firmware to be upgraded according to the cached version information of the device to be upgraded and the delay time. Compared with the upgrade result status returned by the mobile Wifi device, this method can effectively improve the accuracy of the determined upgrade result status, which is conducive to more accurate and reliable upgrade control of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of device upgrades, and in particular to a method, apparatus, device and storage medium for determining a firmware upgrade status. Background Art

[0002] When upgrading the firmware of devices such as inverters, a mobile Wifi device is usually used to send a newer version of the firmware to the inverter. After the user terminal sends an upgrade instruction to the server, the server compares the server's firmware version with the device's firmware version based on the upgrade instruction. If the server has a newer version of the firmware, the newer version of the firmware is transmitted to the mobile Wifi device through the mobile data network, and the newer version of the firmware is transmitted to the device through the Wifi link between the mobile Wifi device and the device. The upgrade status is updated according to the information fed back by the device, so that the user can understand the upgrade progress in a timely manner.

[0003] However, during the update process of the upgrade status, the upgrade status is usually determined according to the download status of the device, or according to the communication stability between the device and the mobile Wifi device, which may not match the actual upgrade status and is not conducive to accurate and reliable upgrade control of the device. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a method, apparatus, device and storage medium for determining the firmware upgrade status to solve the problem that the firmware upgrade status determined in the prior art may not be consistent with the actual upgrade status, which is not conducive to accurate and reliable upgrade control of the device.

[0005] A first aspect of an embodiment of the present application provides a method for determining a firmware upgrade status, the method comprising:

[0006] Send firmware upgrade instructions to the device to be upgraded via a mobile Wifi device;

[0007] Determine the firmware type of the firmware to be upgraded included in the firmware upgrade instruction;

[0008] According to the preset correspondence between the firmware type and the delay time, determine the delay time corresponding to the firmware type of the firmware to be upgraded, the delay time being the duration of the effective upgrade status detection after the firmware upgrade instruction is sent;

[0009] The upgrade result status of the firmware to be upgraded is determined according to the cache version information of the device to be upgraded and the delay time.

[0010] In combination with the first aspect, in a first possible implementation manner of the first aspect, determining the upgrade result status of the firmware to be upgraded according to the cache version information of the device to be upgraded and the delay duration includes:

[0011] Within the time range of the above delay, obtain the cache version information of the above device to be upgraded;

[0012] When the cache version information is consistent with the firmware version information included in the firmware upgrade instruction, continue to execute the upgrade process, and update the upgrade result status to the upgrade success status according to the upgrade success response result returned by the device to be upgraded;

[0013] When the cache version information is inconsistent with the firmware version information included in the firmware upgrade instruction, the upgrade result status is updated to an upgrade failure status.

[0014] In combination with the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, when the cache version information is consistent with the firmware version information included in the firmware upgrade instruction, before continuing to execute the upgrade process, the method further includes:

[0015] Get the status information of the above cached version;

[0016] When the status information of the cached version is updated within the predetermined time period, the upgrade result status is updated to an upgrade failure status;

[0017] When the cached version status information is not updated within a predetermined period of time, the upgrade process is continued when the cached version information is consistent with the firmware version information included in the firmware upgrade instruction.

[0018] In combination with the first aspect, in a third possible implementation manner of the first aspect, after determining the delay time corresponding to the firmware type of the firmware to be upgraded according to a preset correspondence between the firmware type and the delay time, the delay time being the duration of the effective upgrade status detection after the firmware upgrade instruction is sent, the method further includes:

[0019] A firmware transmission path corresponding to the firmware type of the firmware to be upgraded;

[0020] According to the firmware transmission path, the delay time after the firmware upgrade instruction is sent is determined.

[0021] In combination with the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the device includes an inverter, and the firmware type includes AC side firmware, DC side firmware, PMU firmware, and BMS firmware;

[0022] The firmware transmission path corresponding to the firmware type of the firmware to be upgraded includes:

[0023] Determine that a first firmware transmission path of the PMU firmware is transmitted from the mobile Wifi device to the MPU component;

[0024] After determining that the second firmware transmission path of the AC side firmware is transmitted from the mobile Wifi device to the MPU component, it is sent to the AC side component in the MPU component;

[0025] After determining that the third firmware transmission path of the DC-side firmware is transmitted from the mobile Wifi device to the MPU component, it is sent down to the DC-side component in the MPU component;

[0026] After determining that the fourth firmware transmission path of the above-mentioned BMS firmware is transmitted from the mobile Wifi device to the MPU component, it is forwarded to the BMS component through the above-mentioned MPU component.

[0027] In combination with the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, determining, according to the firmware transmission path, a delay time after the firmware upgrade instruction is sent includes:

[0028] Determine, according to the first firmware transmission path, a first delay time of the PMU firmware after the firmware upgrade instruction is sent;

[0029] According to the second firmware transmission path, determining a second delay time of the AC side firmware after the firmware upgrade instruction is sent;

[0030] According to the third firmware transmission path, determining a third delay time of the DC side firmware after the firmware upgrade instruction is sent;

[0031] Determine, according to the fourth firmware transmission path, a fourth delay time of the BMS firmware after the firmware upgrade instruction is sent;

[0032] Among them, the above-mentioned first delay duration is smaller than the above-mentioned second delay duration, the above-mentioned first delay duration is smaller than the above-mentioned third delay duration, the above-mentioned second delay duration is smaller than the above-mentioned fourth delay duration, and the above-mentioned third delay duration is smaller than the above-mentioned fourth delay duration.

[0033] In combination with any one of the first aspect to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the method further includes:

[0034] Get the intermediate status returned by the above mobile Wifi device;

[0035] The upgrade process status of the firmware to be upgraded is updated according to the intermediate status.

[0036] A second aspect of an embodiment of the present application provides a device for determining a firmware upgrade status, the device comprising:

[0037] An instruction sending unit, used to send a firmware upgrade instruction to the device to be upgraded via a mobile Wifi device;

[0038] A firmware type determination unit, used to determine the firmware type of the firmware to be upgraded included in the above-mentioned firmware upgrade instruction;

[0039] A delay duration determining unit, used to determine the delay duration corresponding to the firmware type of the firmware to be upgraded according to a preset correspondence between the firmware type and the delay duration, wherein the delay duration is the duration of the effective upgrade status detection after the firmware upgrade instruction is sent;

[0040] The upgrade result status determining unit is used to determine the upgrade result status of the firmware to be upgraded according to the cache version information of the device to be upgraded and the delay time.

[0041] A third aspect of an embodiment of the present application provides a firmware upgrade status determination device, comprising a memory, a processor, and a computer program stored in the above-mentioned memory and executable on the above-mentioned processor, wherein the above-mentioned processor implements the steps of any one of the above-mentioned methods in the first aspect when executing the above-mentioned computer program.

[0042] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above methods in the first aspect are implemented.

[0043] Compared with the prior art, the embodiments of the present application have the following beneficial effects: when sending a firmware upgrade instruction to a device to be upgraded via a mobile Wifi device, the embodiments of the present application determine the firmware type of the firmware to be upgraded included in the firmware upgrade instruction, determine the delay time after the firmware upgrade instruction is sent based on the corresponding relationship between the firmware type and the delay time, and determine the upgrade result status of the firmware to be upgraded by the delay time and the cached version information of the device to be upgraded. The upgrade result status is determined by the delay time corresponding to the firmware type and the cached version information. Compared with the upgrade result status returned by the mobile Wifi device, this method can effectively improve the accuracy of the determined upgrade result status, which is conducive to more accurate and reliable upgrade control of the device. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0045] Figure 1 It is a schematic diagram of an implementation scenario of a method for determining a firmware upgrade status provided in an embodiment of the present application;

[0046] Figure 2 It is a schematic diagram of an implementation flow of a method for determining a firmware upgrade status provided in an embodiment of the present application;

[0047] Figure 3 It is a schematic diagram of an implementation flow of a method for determining a delay duration corresponding to a firmware type provided in an embodiment of the present application;

[0048] Figure 4 It is a schematic diagram of an implementation flow of a method for determining an upgrade result status of firmware to be upgraded provided in an embodiment of the present application;

[0049] Figure 5 is a schematic diagram of a device for determining a firmware upgrade status provided by an embodiment of the present application;

[0050] Figure 6 It is a schematic diagram of a firmware upgrade status determination device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0052] In order to illustrate the above technical solution of the present application, a specific embodiment is provided below for illustration.

[0053] When upgrading the firmware of devices such as inverters, mobile Wifi devices are usually used to transmit the latest version of the firmware. When the user initiates an upgrade request command, the server will receive this command and compare the firmware version on the server with the current firmware version of the device. If there is a newer firmware version on the server, the newer version of the firmware is sent to the mobile Wifi device via the mobile data network, and then the mobile Wifi device transmits the firmware to the device to be upgraded via the Wifi link. After the device to be upgraded receives the firmware, it will feedback the upgrade status, allowing the user to track the upgrade progress in real time.

[0054] However, when updating the upgrade status, if the upgrade status is judged only based on the download progress of the device or the stability of the communication connection between the device and the mobile Wifi device, inaccurate results may be obtained. This status update method may not truly reflect the actual completion of the firmware upgrade, thereby affecting the precise control and monitoring of the device upgrade process. Therefore, a more precise method is needed to ensure the accuracy of the upgrade status and the reliability of the upgrade process.

[0055] Figure 1 A schematic diagram of an implementation scenario of a method for determining a firmware upgrade status provided in an embodiment of the present application. The scenario includes a mobile Wifi device, a device to be upgraded, a server, and a user terminal. Among them, the mobile Wifi device includes a mobile communication module and a Wifi module. The mobile Wifi device can be connected to the server through the mobile communication module, and connected to the device to be upgraded through the Wifi module. The user terminal can be connected to the server through the mobile Wifi device, or the user terminal can also be directly connected to the server through a mobile communication network. The user terminal can upload the firmware to be upgraded (usually the latest version of the firmware) to the server. After the user terminal triggers the firmware upgrade instruction, the server can send a firmware upgrade instruction to the device to be upgraded through the mobile Wifi device, obtain the firmware version information cached by the device to be upgraded, compare the cached firmware version information with the version information of the firmware to be upgraded, and when it is determined that an upgrade is required, the server will update the version of the firmware and transmit it to the device to be upgraded through the mobile Wifi device to complete the firmware upgrade of the device to be upgraded, and return the upgrade status to the server, and transmit the upgrade status to the user terminal, so that the user can understand the upgrade progress in time.

[0056] Figure 2 A schematic diagram of the implementation flow of a method for determining a firmware upgrade status provided in an embodiment of the present application, the execution subject of the method may include a server and other devices, and the method is described in detail as follows:

[0057] In S201, a firmware upgrade instruction is sent to a device to be upgraded via a mobile Wifi device.

[0058] The mobile Wifi device in the embodiment of the present application may include portable Wifi, Wifi stick and other portable Wifi devices. Through the mobile Wifi device, convenient network services can be provided for the device to be upgraded, so as to obtain the firmware to be updated from the server, and the firmware of the device to be upgraded can be updated according to the downloaded firmware.

[0059] The device to be upgraded in the embodiment of the present application may include a device with a Wifi module, such as an inverter. In general, the device to be upgraded is within the coverage of home Wifi or public Wifi, and the staff needs to upgrade it through a mobile Wifi device. For example, for the inverter in a distributed photovoltaic power station, the staff needs to use a mobile Wifi device, including a Wifi stick, to upgrade the inverter.

[0060] When the server sends a firmware upgrade instruction to the device to be upgraded, the firmware upgrade instruction can be triggered when the server receives an updated version of the firmware uploaded by the user terminal, or the firmware version is updated through other means, or the server can send the firmware upgrade instruction to the device to be upgraded through a mobile Wifi device after receiving the firmware upgrade instruction issued by the user terminal.

[0061] In S202, the firmware type of the firmware to be upgraded included in the firmware upgrade instruction is determined.

[0062] The firmware types in the embodiments of the present application may have different types of firmware types depending on the device to be upgraded. For example, when the device to be upgraded is an inverter, the firmware types included in the device to be upgraded may include AC (Alternating Current in English, alternating current in Chinese) side firmware, DC (Direct Current in English, direct current in Chinese) side firmware, BMS (Battery Management System in English, battery management system in Chinese) firmware, and MPU (Microprocessor Unit, microprocessor unit in Chinese) firmware, etc.

[0063] The AC-side firmware is responsible for managing the inverter's conversion of DC into AC and synchronization with the grid, including the use of pulse width modulation (PWM) technology to control the on and off time of the switching devices to generate the required AC output waveform.

[0064] The DC-side firmware is used for the inverter's DC input management, including the implementation of maximum power point tracking and interface control with DC power sources such as solar panels.

[0065] The BMS firmware is responsible for monitoring and managing the status of the battery pack, including battery cell voltage and temperature monitoring, battery balancing, and charge and discharge management.

[0066] The MPU firmware can be used in the inverter to implement advanced control methods, including fuzzy logic control methods or neural network control methods, to optimize the performance and efficiency of the inverter.

[0067] This is not limited to inverters; other types of devices to be upgraded may have different firmware types.

[0068] In S203, the delay time corresponding to the firmware type of the firmware to be upgraded is determined according to the preset correspondence between the firmware type and the delay time.

[0069] The delay time is the duration of the effective upgrade status detection after the firmware upgrade instruction is sent.

[0070] The delay time refers to the delay time after the server sends the firmware upgrade instruction. Within the time range of the delay time, it can be used to detect the effective upgrade status, including the upgrade success status and the upgrade failure status. If it exceeds the delay time, it is directly determined as the upgrade failure status.

[0071] The corresponding relationship between the firmware type and the delay time in the embodiment of the present application can be set in advance by the staff. For example, the corresponding relationship between the firmware type and the delay time can be determined based on the empirical statistical data of the upgrade time required by the firmware type.

[0072] In a possible implementation, the embodiment of the present application can determine the delay time corresponding to the firmware type according to the firmware transmission path corresponding to the firmware type, so as to determine the upgrade result status of the device to be upgraded according to the delay time. The method for determining the delay time corresponding to the firmware type according to the firmware transmission path corresponding to the firmware type can be as follows: Figure 3 As shown, including:

[0073] In S301, a firmware transmission path corresponding to the firmware type of the firmware to be upgraded is determined.

[0074] When the device to be upgraded is an inverter, the firmware types of the firmware to be upgraded may include AC side firmware, DC side firmware, PMU firmware and BMS firmware. The locations of the firmware to be upgraded for each firmware type are different, so the firmware transmission paths corresponding to each firmware are also different.

[0075] Generally, during the inverter upgrade process, the downloaded firmware needs to pass through the monitoring PMU component and then be sent to the AC side component, DC side component or BMS component. After the PMU component obtains the firmware to be upgraded, if the firmware to be upgraded is used to upgrade the PMU component, it does not need to be forwarded and can be directly used for PMU component upgrade, and the time used to upgrade the PMU component is shorter. When the firmware to be upgraded is used to upgrade the AC component or DC component, the firmware to be upgraded needs to pass through the PMU component first, and then be sent to the AC component or DC component through internal transmission, and then the AC component or DC component is upgraded. Since the DC component or AC component is located inside the inverter, when the deviation of the data volume of different firmware to be upgraded is within a predetermined range, the upgrade time of the AC component or DC component is longer than the upgrade time of the PMU component. When upgrading the BMS components, after the inverter downloads the firmware to be upgraded of the BMS components, it needs to be forwarded to the BMS components through the PMU components. And because the amount of data transmitted each time when the BMS components set the transmission data frame is small, such as 256b, therefore, compared with the AC side components, DC side components and PMU components, the upgrade time of the BMS components is the longest.

[0076] When determining the firmware delivery path corresponding to each firmware type, the following may be included:

[0077] The first firmware transmission path of the PMU firmware is determined to be transmitted from the mobile Wifi device to the MPU component.

[0078] It is determined that the second firmware transmission path of the AC side firmware is transmitted from the mobile Wifi device to the MPU component, and then sent to the AC side component in the MPU component.

[0079] After determining that the third firmware transmission path of the DC side firmware is transmitted from the mobile Wifi device to the MPU component, it is sent down to the DC side component in the MPU component.

[0080] It is determined that the fourth firmware transmission path of the BMS firmware is transmitted from the mobile Wifi device to the MPU component, and then forwarded to the BMS component through the MPU component.

[0081] In S302, the delay time after the firmware upgrade instruction is sent is determined according to the firmware transmission path.

[0082] According to the difference of each firmware transmission path, the time required to complete the firmware upgrade of different transmission paths is also different. When the deviation of the firmware data volume meets the predetermined deviation range, the longer the firmware transmission path is, the longer the time required to complete the firmware upgrade is. Therefore, different delay time lengths can be determined according to different firmware transmission paths, which may include:

[0083] According to the first firmware transmission path, a first delay time length of the PMU firmware after the firmware upgrade instruction is sent is determined.

[0084] According to the second firmware transmission path, a second delay time length of the AC side firmware after the firmware upgrade instruction is sent is determined.

[0085] According to the third firmware transmission path, a third delay time length of the DC-side firmware after the firmware upgrade instruction is sent is determined.

[0086] According to the fourth firmware transmission path, a fourth delay time length of the BMS firmware after the firmware upgrade instruction is sent is determined.

[0087] Among them, the first delay duration is shorter than the second delay duration, the first delay duration is shorter than the third delay duration, the second delay duration is shorter than the fourth delay duration, and the third delay duration is shorter than the fourth delay duration.

[0088] That is, the longer the path for transmitting the firmware to the corresponding component of the device to be upgraded is, the more transmission time is required to complete the firmware transmission. Therefore, the longer the firmware transmission path is, the longer the time required to complete the firmware upgrade is, and the longer the delay time needs to be set.

[0089] In S204, the upgrade result status of the firmware to be upgraded is determined according to the cache version information of the device to be upgraded and the delay time.

[0090] The upgrade result status includes the upgrade success status and the upgrade failure status. The upgrade success status indicates that the device to be upgraded has successfully received and successfully installed the data of the firmware to be upgraded. The upgrade failure status indicates that the device to be upgraded has not successfully installed the firmware to be upgraded. The upgrade failure status may include that the firmware to be upgraded has been successfully received, but has not been transmitted to the component to be upgraded corresponding to the firmware to be upgraded, or has been successfully transmitted to the component to be upgraded but has failed to be successfully installed due to other reasons.

[0091] In order to improve the accuracy of the upgrade result status, the embodiment of the present application determines the upgrade result status based on the delay duration and cached version information, which can effectively reduce the error in the upgrade result status determined by the instruction returned by the mobile Wifi device and improve the user experience. After determining different delay durations according to different firmware types, the upgrade result status of the firmware to be upgraded can be determined within the delay duration based on the cached version information of the device to be upgraded. Specifically, Figure 4 As shown, including:

[0092] In S401, the cache version information of the device to be upgraded is obtained within the time range of the delay time.

[0093] The delay duration in the embodiment of the present application is the duration of the detection for determining that the firmware is in a valid upgrade state, and the duration is the duration starting after the firmware upgrade instruction is sent. If the delay duration is exceeded, it can be determined that the upgrade result state of the firmware to be upgraded is an upgrade failure state, and a status indicator of firmware upgrade failure can be sent to the user terminal.

[0094] If the device to be upgraded is in an upgrading state, the cached version information of the device to be upgraded is the version information of the firmware currently in the upgrading state.

[0095] In order to further improve the accuracy of the upgrade result status and reduce the possibility of mistakenly generating an upgrade failure status due to communication stability, the embodiment of the present application can also further obtain the status information of the cached version of the device to be upgraded after sending the firmware upgrade instruction for a predetermined time (the predetermined time is less than the delay time), and the status information may include the existence of updates within the predetermined time and the absence of updates within the predetermined time. If there is no update within the predetermined time, it means that the firmware to be upgraded has not been received, and the upgrade result status is updated to the upgrade failure status. If there is an update within the predetermined time, S402 can be continued to detect the consistency of the cached version information, thereby reducing the probability of mistakenly confirming the upgrade failure status due to network instability.

[0096] In S402, when the cache version information is consistent with the firmware version information included in the firmware upgrade instruction, the upgrade process is continued, and the upgrade result status is updated to an upgrade success status according to the upgrade success response result returned by the device to be upgraded.

[0097] In a possible implementation, during the firmware upgrade process of the device to be upgraded, there may be multiple different firmwares to be upgraded. In order to reduce the impact of other firmware upgrades on the upgrade result status, the cache version information can be compared with the firmware version information included in the firmware upgrade instruction to determine whether the two are the same firmware version. If they are the same firmware version, the upgrade process can continue, including continuing to send data of the firmware to be upgraded to the device to be upgraded, etc., until the download and installation of the firmware to be upgraded is completed, and a response result of the successful firmware upgrade returned by the device to be upgraded is received, and the upgrade result status is updated to a successful status according to the response result.

[0098] In S403, when the cache version information is inconsistent with the firmware version information included in the firmware upgrade instruction, the upgrade result status is updated to an upgrade failure status.

[0099] If the cached version information is inconsistent with the firmware version information included in the firmware upgrade instruction, it means that the firmware version information currently cached by the device to be upgraded is data of other firmware and is currently in the process of upgrading other firmware. Therefore, the upgrade result status of the upgrade failure status can be returned.

[0100] Since the embodiment of the present application determines the upgrade result status based on the comparison between the cached version information and the firmware version information of the firmware upgrade instruction within the delay period, it is not necessary to determine the upgrade result status based on the stability of the network status, whether the download is successful, etc., which can effectively improve the accuracy of the upgrade result status and is conducive to upgrading the device according to the upgrade status result.

[0101] In a possible implementation, in addition to determining the upgrade result status based on the delay duration and cached version information, the embodiment of the present application can directly determine the upgrade process status of the firmware to be upgraded based on the intermediate status returned by the mobile Wifi device for other intermediate states, including intermediate states such as starting to upgrade, starting to download, downloading, downloading completed, and downloading failed.

[0102] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0103] Figure 5 A schematic diagram of a device for determining a firmware upgrade status provided in an embodiment of the present application, the device comprising:

[0104] The instruction sending unit 501 is used to send a firmware upgrade instruction to the device to be upgraded via a mobile Wifi device;

[0105] The firmware type determination unit 502 is used to determine the firmware type of the firmware to be upgraded included in the above firmware upgrade instruction;

[0106] The delay duration determining unit 503 is used to determine the delay duration corresponding to the firmware type of the firmware to be upgraded according to the preset correspondence between the firmware type and the delay duration, wherein the delay duration is the duration of the effective upgrade status detection after the firmware upgrade instruction is sent;

[0107] The upgrade result status determining unit 504 is used to determine the upgrade result status of the firmware to be upgraded according to the cache version information of the device to be upgraded and the delay time.

[0108] Figure 5 The firmware upgrade status determination device shown, and Figure 1 The firmware upgrade status determination method shown corresponds to the following.

[0109] Figure 6 Schematic diagram of a firmware upgrade status determination device provided in an embodiment of the present application. Figure 6 As shown, the firmware upgrade status determination device 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60, such as a firmware upgrade status determination program. When the processor 60 executes the computer program 62, the steps in the above-mentioned firmware upgrade status determination method embodiments are implemented. Alternatively, when the processor 60 executes the computer program 62, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0110] Exemplarily, the computer program 62 may be divided into one or more modules / units, which are stored in the memory 61 and executed by the processor 60 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 62 in the firmware upgrade status determination device 6.

[0111] The firmware upgrade status determination device 6 may be a computing device such as a cloud server. The firmware upgrade status determination device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 6It is only an example of a firmware upgrade status determination device 6 and does not constitute a limitation of the firmware upgrade status determination device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the above-mentioned firmware upgrade status determination device may also include input and output devices, network access devices, buses, etc.

[0112] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0113] The memory 61 may be an internal storage unit of the firmware upgrade status determination device 6, such as a hard disk or memory of the firmware upgrade status determination device 6. The memory 61 may also be an external storage device of the firmware upgrade status determination device 6, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the firmware upgrade status determination device 6. Further, the memory 61 may also include both the internal storage unit of the firmware upgrade status determination device 6 and an external storage device. The memory 61 is used to store the computer program and other programs and data required by the firmware upgrade status determination device. The memory 61 may also be used to temporarily store data that has been output or is to be output.

[0114] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0115] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0116] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0117] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the above modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0118] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0119] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0120] If the above-mentioned integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by hardware related to computer program instructions. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the above-mentioned computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0121] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some of the technical features therein by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for determining a firmware upgrade status, characterized in that: The execution subject of the method is a server, and the method includes: Send firmware upgrade instructions to the device to be upgraded via a mobile Wifi device; Determine the firmware type of the firmware to be upgraded included in the firmware upgrade instruction, the device includes an inverter, the firmware type includes AC side firmware, DC side firmware, MPU firmware and BMS firmware, determine that the first firmware transmission path of the MPU firmware is transmitted from the mobile Wifi device to the MPU component; determine that the second firmware transmission path of the AC side firmware is transmitted from the mobile Wifi device to the MPU component, and then sent to the AC side component in the MPU component; determine that the third firmware transmission path of the DC side firmware is transmitted from the mobile Wifi device to the MPU component, and then sent to the DC side component in the MPU component; determine that the fourth firmware transmission path of the BMS firmware is transmitted from the mobile Wifi device to the MPU component, and then sent to the DC side component through the The MPU component forwards to the BMS component; according to the first firmware transmission path, determining the first delay time of the MPU firmware after the firmware upgrade instruction is sent; according to the second firmware transmission path, determining the second delay time of the AC side firmware after the firmware upgrade instruction is sent; according to the third firmware transmission path, determining the third delay time of the DC side firmware after the firmware upgrade instruction is sent; according to the fourth firmware transmission path, determining the fourth delay time of the BMS firmware after the firmware upgrade instruction is sent; wherein, the first delay time is less than the second delay time, the first delay time is less than the third delay time, the second delay time is less than the fourth delay time, and the third delay time is less than the fourth delay time; Determine the delay time corresponding to the firmware type of the firmware to be upgraded according to the preset correspondence between the firmware type and the delay time, wherein the delay time is the duration of the effective upgrade status detection after the firmware upgrade instruction is sent; The upgrade result status of the firmware to be upgraded is determined according to the cache version information of the device to be upgraded and the delay duration.

2. The method according to claim 1, characterized in that Determining the upgrade result status of the firmware to be upgraded according to the cache version information of the device to be upgraded and the delay duration includes: Acquire cached version information of the device to be upgraded within the time range of the delay duration; When the cache version information is consistent with the firmware version information included in the firmware upgrade instruction, continue to execute the upgrade process, and update the upgrade result status to an upgrade success status according to a response result of a successful upgrade returned by the device to be upgraded; When the cache version information is inconsistent with the firmware version information included in the firmware upgrade instruction, the upgrade result status is updated to an upgrade failure status.

3. The method according to claim 2, characterized in that When the cache version information is consistent with the firmware version information included in the firmware upgrade instruction, before continuing to execute the upgrade process, the method further includes: Obtaining status information of the cache version; When the status information of the cached version is updated within a predetermined period of time, updating the upgrade result status to an upgrade failure status; When the cache version status information is not updated within a predetermined period of time, the upgrade process is continued when the cache version information is consistent with the firmware version information included in the firmware upgrade instruction.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Obtaining the intermediate status returned by the mobile Wifi device; The upgrade process status of the firmware to be upgraded is updated according to the intermediate status.

5. A device for determining a firmware upgrade status, characterized in that: The device is used to implement the method according to any one of claims 1 to 4, the execution subject of the method is a server, and the device includes: An instruction sending unit, used to send a firmware upgrade instruction to the device to be upgraded via a mobile Wifi device; a firmware type determination unit, configured to determine a firmware type of the firmware to be upgraded included in the firmware upgrade instruction, the device including an inverter, the firmware type including AC side firmware, DC side firmware, MPU firmware and BMS firmware, and determining that a first firmware transmission path of the MPU firmware is transmitted from a mobile Wifi device to an MPU component; determining that a second firmware transmission path of the AC side firmware is transmitted from a mobile Wifi device to an MPU component and then sent to an AC side component in the MPU component; determining that a third firmware transmission path of the DC side firmware is transmitted from a mobile Wifi device to an MPU component and then sent to a DC side component in the MPU component; and determining that a fourth firmware transmission path of the BMS firmware is transmitted from a mobile Wifi device to an MPU component After that, it is forwarded to the BMS component through the MPU component; according to the first firmware transmission path, the first delay time of the MPU firmware after the firmware upgrade instruction is sent is determined; according to the second firmware transmission path, the second delay time of the AC side firmware after the firmware upgrade instruction is sent is determined; according to the third firmware transmission path, the third delay time of the DC side firmware after the firmware upgrade instruction is sent is determined; according to the fourth firmware transmission path, the fourth delay time of the BMS firmware after the firmware upgrade instruction is sent is determined; wherein, the first delay time is less than the second delay time, the first delay time is less than the third delay time, the second delay time is less than the fourth delay time, and the third delay time is less than the fourth delay time; A delay duration determining unit, configured to determine the delay duration corresponding to the firmware type of the firmware to be upgraded according to a preset correspondence between the firmware type and the delay duration, wherein the delay duration is the duration of the effective upgrade status detection after the firmware upgrade instruction is sent; An upgrade result status determining unit is used to determine the upgrade result status of the firmware to be upgraded according to the cache version information of the device to be upgraded and the delay time.

6. A device for determining a firmware upgrade status, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Photovoltaic cell firmware online upgrading method and device and storage medium

    CN115220759A

  • Apparatus and method for upgrading firmware of remote automatic meter reading terminal

    KR101428778B1