Firmware upgrading protection method and mobile power supply leasing equipment

A firmware upgrade and firmware technology, applied in the field of computer-readable storage media, mobile power rental equipment, and firmware upgrade protection, can solve the problems of hindered upgrade progress, low efficiency, and long upgrade time, and achieve the effect of improving upgrade efficiency.

Pending Publication Date: 2020-03-17
SHENZHEN LAIDIAN TECH CO LTD
5 Cites 0 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a firmware upgrade protection method, a computer-readable storage medium and a mobile power supply rental device, aiming to solve the problem that the upgrade progress is blocked due...
View more

Method used

[0025] In one embodiment of the present invention, in the process of transferring the firmware data to be u...
View more

Abstract

The invention is suitable for the technical field of firmware, and provides a firmware upgrading protection method, a computer readable storage medium and mobile power supply leasing equipment. The firmware upgrading protection method comprises the steps: receiving a firmware upgrading request and to-be-upgraded firmware data issued by a server, and carrying out the caching; controlling the application program to reset and enter the boot area to run, and transmitting the firmware data to be upgraded in the cache to the boot area; when the upgrading process of transmitting the firmware data tobe upgraded in the cache to the bootstrap area is forced to be stopped, controlling to suspend the upgrading process, recovering the upgrading process after the blocking factor is eliminated, and continuing to transmit the residual firmware data to the bootstrap area; after receiving the complete firmware data, verifying the firmware data by the bootstrap area; if the verification succeeds, overwriting the original application program, and entering a new application program to run after the upgrading succeeds; and if the verification fails, transmitting the firmware data to be upgraded in thecache to the guide area again until the upgrading is finished. For the firmware upgrading protection method, the firmware upgrading process is independent and controllable, and the upgrading efficiency is improved.

Application Domain

Redundant operation error correctionSoftware deployment

Technology Topic

Software engineeringServer +4

Image

  • Firmware upgrading protection method and mobile power supply leasing equipment
  • Firmware upgrading protection method and mobile power supply leasing equipment

Examples

  • Experimental program(1)

Example Embodiment

[0018] In order to make the objectives, technical solutions, and beneficial effects of the present invention clearer, the following further describes the present invention in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
[0019] In order to illustrate the technical solution of the present invention, specific embodiments are used for description below.
[0020] See figure 1 An embodiment of the present invention provides a firmware upgrade protection method, the method may be executed by a mobile power rental device, and the method includes:
[0021] S1. Receive a firmware upgrade request issued by the server and firmware data to be upgraded.
[0022] S2. Cache the received firmware data to be upgraded.
[0023] S3. After the firmware data to be upgraded is received, the application program upgrade is triggered.
[0024] S4. The control application program is reset and enters the boot area to run, and transmits the firmware data to be upgraded in the cache to the boot area.
[0025] In an embodiment of the present invention, in the process of transmitting the firmware data to be upgraded in the cache to the boot area, a handshake is used to ensure the reachability of data transmission.
[0026] Before S4, the method may further include the following steps:
[0027] Judge whether there is a task currently, and if so, wait for the processing to complete the current task.
[0028] S5. When the upgrade process of transferring the firmware data to be upgraded in the cache to the boot area is forced to stop, control the suspension of the upgrade process, and after the obstructive factors are eliminated, resume the upgrade process and continue to transfer the remaining firmware data to the boot area .
[0029] S6. After the boot area receives the complete firmware data, verify the firmware data;
[0030] If the verification is successful, overwrite the original application, and enter the new application after the upgrade is successful;
[0031] If the verification fails, restart the transfer of the firmware data to be upgraded in the cache to the boot area until the upgrade is completed.
[0032] In an embodiment of the present invention, the verification of firmware data may specifically be:
[0033] Verify the firmware data through md5, aes, Des or aDes.
[0034] In an embodiment of the present invention, when the application program cannot run normally and the boot area cannot be used for firmware upgrade, the method further includes:
[0035] Reset the hardware part that needs to be upgraded. The MCU or the fixed program part inside the chip boot enters the boot area and waits for the upgrade request. When the firmware upgrade request issued by the server is received, the boot area will enter the upgrade state and start the upgrade.
[0036] In an embodiment of the present invention, the resetting of the hardware parts that need to be upgraded specifically includes: powering off and resetting the hardware parts that need to be upgraded, or automatically resetting the hardware parts that need to be upgraded according to a preset program.
[0037] An embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the firmware upgrade protection method provided by an embodiment of the present invention step.
[0038] figure 2 A specific structural block diagram of a mobile power rental device provided by an embodiment of the present invention is shown. A mobile power rental device 100 includes: one or more processors 101, a memory 102, and one or more computer programs, wherein The processor 101 and the memory 102 are connected by a bus. The one or more computer programs are stored in the memory 102 and are configured to be executed by the one or more processors 101. The processor 101 The steps of the firmware upgrade protection method provided by an embodiment of the present invention are implemented when the computer program is executed.
[0039] In the firmware upgrade protection method of the embodiment of the present invention, the firmware data to be upgraded in the cache is transmitted to the boot area, so in the case of a network disconnection, the device can use the firmware data cached in the boot area to upgrade normally; The application program is reset and enters the boot area. When the firmware data to be upgraded in the cache is transferred to the boot area and the upgrade process is forced to stop, control the suspension of the upgrade process. After the obstructive factors are eliminated, the upgrade process is resumed and the transmission continues The remaining firmware data; when the application program fails to run normally, power off and reset the hardware part that needs to be upgraded, enter the boot area and wait, and when there is an upgrade request, continue the previous upgrade process; the present invention effectively improves the efficiency of device upgrades. Affect the normal use of mobile power rental equipment.
[0040] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the storage medium can include: Read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
[0041] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modification, equivalent replacement and improvement made within the spirit and principle of the present invention shall be included in the protection of the present invention. Within range.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

Communication equipment upgrading method and device

PendingCN112422305AOptimize distribution pathImprove upgrade efficiency
Owner:ZTE CORP

Upgrading method and device, equipment and storage medium

PendingCN113778474AReduce upgrade timeImprove upgrade efficiency
Owner:CHINA MOBILE COMM LTD RES INST +1

Method for upgrading infrastructure software and related system

InactiveCN108874411AReduce hardware costsImprove upgrade efficiency
Owner:HUAWEI CLOUD COMPUTING TECH CO LTD

BMC upgrading method and device, equipment and medium

PendingCN114217832AImprove upgrade efficiencyreduce occupancy
Owner:INSPUR BEIJING ELECTRONICS INFORMATION IND

Remote upgrading method, system and device for BMC firmware

PendingCN112130876AImprove upgrade efficiencyRemote upgrade operation is simple and convenient
Owner:LANGCHAO ELECTRONIC INFORMATION IND CO LTD

Classification and recommendation of technical efficacy words

  • Improve upgrade efficiency

Firmware upgrade method and device of Zigbee equipment

InactiveCN107104836AReduce upgrade timeImprove upgrade efficiency
Owner:SHENZHEN OURUIBO ELECTRONICS

Upgrading method for motormeter software

InactiveCN108182080AImprove upgrade efficiencylower requirement
Owner:CHONGQING DELCO ELECTRONICS INSTR

Method for conducting remote wireless software upgrading on satellite time service device

ActiveCN107357621AImprove upgrade efficiencyReduce upgrade costs
Owner:CHENGDUSCEON ELECTRONICS

Method and device for upgrading application program based on Firefox operation system

ActiveCN106293790AImprove upgrade efficiencyReduce flow and time loss
Owner:TCL CORPORATION

Application upgrading method and terminal device

ActiveCN107491331AImprove upgrade efficiencyreduce interruptions
Owner:ONE CONNECT SMART TECH CO LTD SHENZHEN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products