CN116225482A - Firmware upgrading method, system, device, electronic equipment and storage medium - Google Patents

Firmware upgrading method, system, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116225482A
CN116225482A CN202211611404.5A CN202211611404A CN116225482A CN 116225482 A CN116225482 A CN 116225482A CN 202211611404 A CN202211611404 A CN 202211611404A CN 116225482 A CN116225482 A CN 116225482A
Authority
CN
China
Prior art keywords
firmware
data
upgrading
upgrade
module
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.)
Pending
Application number
CN202211611404.5A
Other languages
Chinese (zh)
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 Guanghetong Wireless Communication Software Co ltd
Original Assignee
Shenzhen Guanghetong Wireless Communication Software 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 Guanghetong Wireless Communication Software Co ltd filed Critical Shenzhen Guanghetong Wireless Communication Software Co ltd
Priority to CN202211611404.5A priority Critical patent/CN116225482A/en
Publication of CN116225482A publication Critical patent/CN116225482A/en
Priority to PCT/CN2023/118249 priority patent/WO2024125002A1/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

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

Abstract

The application relates to a firmware upgrading method, a system, a device, electronic equipment and a storage medium, wherein the firmware upgrading method comprises the following steps: splitting the upgrade firmware data corresponding to the upgrade firmware by the server to obtain upgrade firmware sub-data with a plurality of preset lengths; and sequentially sending the plurality of firmware upgrading sub-data with preset lengths to the module through the upper computer so that the module can conveniently use the plurality of firmware upgrading sub-data with preset lengths received and stored in the target storage area to upgrade the firmware. In the application, after the server splits the upgrade firmware data corresponding to the upgrade firmware, the upgrade firmware data are sequentially sent to the upper computer, and then the upper computer sequentially sends the upgrade firmware data to the module and stores the upgrade firmware data in a target storage area of the module, so that the data size of single transmission is reduced, the situation that the module cannot acquire complete upgrade firmware data due to insufficient memory space of the upper computer or the module, and further firmware upgrade failure is caused is avoided, and the success rate of firmware upgrade is improved.

Description

Firmware upgrading method, system, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of firmware upgrade technologies, and in particular, to a firmware upgrade method, system, device, electronic apparatus, and storage medium.
Background
In the prior art, wireless communication modules basically support firmware upgrade of the modules by means of over-the-air (FOTA) of mobile terminals. The FOTA is a device that does not have a networking function, such as a mobile phone, a tablet computer, a portable media player, a mobile internet device, etc., and provides firmware upgrade service through a cloud upgrade technology. In the field of communication modules of the Internet of things, the FOTA is mainly applied to updating and upgrading the internal software modules of the chip to perform functions such as function optimization, demand customization and upgrading. That is, the user can use the network to obtain the upgrade package of the intelligent terminal system in an on-demand and easily-extensible manner, and perform cloud upgrade through the FOTA, so as to complete system repair and optimization.
In practical application of firmware upgrade by using the FOTA method, the module may not obtain the complete upgrade firmware of the module due to limited memory space of the module or the upper computer, so that the firmware upgrade of the module cannot be completed.
Disclosure of Invention
The application provides a firmware upgrading method, a system, a device, electronic equipment and a storage medium, which are used for solving the problem that the firmware upgrading of a module cannot be completed due to limited memory space of the module or an upper computer.
In a first aspect, the present application provides a firmware upgrade method, applied to a server, where the method includes:
splitting the upgrade firmware data corresponding to the upgrade firmware to obtain a plurality of upgrade firmware sub-data with preset lengths;
and sequentially sending the plurality of firmware upgrading sub-data with preset lengths to the module through the upper computer so that the module can conveniently upgrade the firmware by using the plurality of firmware upgrading sub-data with preset lengths which are received and stored in the target storage area by the module.
Optionally, the method further comprises:
and sending the total length of the updated firmware data to the upper computer so that the upper computer can send a firmware upgrading instruction to the module after determining that the upper computer receives complete updated firmware data based on the accumulated length of a plurality of pieces of updated firmware sub-data with preset lengths and the total length of the updated firmware data, which are sequentially received from the server, so as to instruct the module to carry out firmware upgrading.
In a second aspect, the present application provides a firmware upgrade method, applied to an upper computer, where the method includes:
acquiring a plurality of firmware upgrading sub-data with preset lengths, which are sequentially transmitted by a server; the plurality of upgrading firmware sub-data with preset lengths are obtained by splitting upgrading firmware data corresponding to the upgrading firmware by the server;
and sequentially sending the plurality of firmware upgrading sub-data with preset lengths to the module so that the module can conveniently upgrade the firmware by using the plurality of firmware upgrading sub-data with preset lengths which are received and stored in the target storage area by the module.
Optionally, the method further comprises:
receiving the total length of the upgrade firmware data sent by the server;
determining whether the upper computer receives complete upgrade firmware data or not based on the accumulated lengths of the upgrade firmware sub-data with the preset lengths and the total length of the upgrade firmware data;
and if the upper computer receives complete firmware upgrading data, sending a firmware upgrading instruction to the module to instruct the module to carry out firmware upgrading.
In a third aspect, the present application provides a firmware upgrade method, applied to a module, where the method includes:
receiving a plurality of firmware upgrading sub-data with preset lengths sequentially transmitted by a server through an upper computer and storing the firmware upgrading sub-data in a target storage area; the plurality of upgrading firmware sub-data with preset lengths are obtained by splitting upgrading firmware data corresponding to the upgrading firmware by the server;
and carrying out firmware upgrading by using a plurality of upgrading firmware sub-data with preset lengths stored in the target storage area.
In a fourth aspect, the present application provides a firmware upgrade system, where the firmware upgrade system includes a server, an upper computer, and a module; the server is in communication connection with the upper computer, and the upper computer is in communication connection with the module; wherein,,
the server is used for splitting the upgrade firmware data corresponding to the upgrade firmware to obtain a plurality of upgrade firmware sub-data with preset lengths; sequentially sending the plurality of firmware upgrading sub-data with preset lengths to an upper computer;
the upper computer is used for acquiring a plurality of upgrading firmware sub-data with preset lengths, which are sequentially transmitted by the server; sequentially sending a plurality of firmware upgrading sub-data with preset lengths to the module;
the module is used for receiving the plurality of firmware upgrading sub-data with preset lengths, which are sequentially transmitted by the upper computer, and storing the firmware upgrading sub-data in a target storage area; and carrying out firmware upgrading by using a plurality of upgrading firmware sub-data with preset lengths stored in the target storage area.
In a fifth aspect, the present application provides a firmware upgrade apparatus, the apparatus comprising:
the splitting module is used for splitting the upgrade firmware data corresponding to the upgrade firmware to obtain a plurality of upgrade firmware sub-data with preset lengths;
and the sending module is used for sequentially sending the plurality of firmware upgrading sub-data with preset lengths to the module through the upper computer so that the module can conveniently use the plurality of firmware upgrading sub-data with preset lengths received and stored in the target storage area to carry out firmware upgrading.
In a sixth aspect, the present application provides a firmware upgrade apparatus, the apparatus comprising:
the acquisition module acquires a plurality of upgrading firmware sub-data with preset lengths, which are sequentially transmitted by the server; the plurality of upgrading firmware sub-data with preset lengths are obtained by splitting upgrading firmware data corresponding to the upgrading firmware by the server;
and the sending module is used for sequentially sending the plurality of firmware upgrading sub-data with preset lengths to the module so that the module can conveniently use the plurality of firmware upgrading sub-data with preset lengths received and stored in the target storage area to carry out firmware upgrading.
In a seventh aspect, the present application provides a firmware upgrade apparatus, including:
the receiving module is used for receiving a plurality of pieces of firmware upgrading sub-data with preset lengths, which are sequentially transmitted by the server through the upper computer, and storing the firmware upgrading sub-data in the target storage area; the plurality of upgrading firmware sub-data with preset lengths are obtained by splitting upgrading firmware data corresponding to the upgrading firmware by the server;
and the upgrading module is used for upgrading the firmware by using a plurality of pieces of upgrading firmware sub-data with preset lengths stored in the target storage area.
In an eighth aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and a processor, configured to implement the steps of the firmware upgrading method according to any one of the embodiments of the first aspect, the second aspect, or the third aspect when executing the program stored in the memory.
A ninth aspect provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the firmware upgrade method according to any one of the embodiments of the first or second or third aspects.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
in the firmware upgrading method provided by the embodiment of the application, the server splits the upgrading firmware data corresponding to the upgrading firmware to obtain a plurality of upgrading firmware sub-data with preset lengths, and then sequentially sends the upgrading firmware sub-data with the preset lengths to the module through the upper computer so that the module can use the upgrading firmware sub-data with the preset lengths received and stored in the target storage area to conduct firmware upgrading. The server splits the upgrade firmware data corresponding to the upgrade firmware and then sequentially sends the upgrade firmware data to the upper computer, and then the upper computer sequentially sends the upgrade firmware data to the module and stores the upgrade firmware data in a target storage area of the module, so that the data quantity during single data transmission among the server, the upper computer and the module can be reduced, the situation that the module cannot acquire complete upgrade firmware data due to insufficient memory space of the upper computer or the module, and then firmware upgrade failure is caused is avoided, and the success rate of firmware upgrade is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of a firmware upgrade method provided in an embodiment of the present application;
fig. 2 is a second flowchart of a firmware upgrade method according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a firmware upgrade method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a firmware upgrade system according to an embodiment of the present application;
FIG. 5 is a flowchart of a firmware upgrade provided in an embodiment of the present application;
FIG. 6 is a schematic diagram I of a firmware upgrade apparatus according to an embodiment of the present application;
fig. 7 is a schematic diagram two of a firmware upgrading apparatus provided in an embodiment of the present application;
fig. 8 is a schematic diagram III of a firmware upgrading apparatus provided in an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
In order to solve the problem that firmware upgrade of a module cannot be completed due to limited memory space of the module or an upper computer, the embodiment of the application provides a firmware upgrade method, in an application server, as shown in fig. 1, the firmware upgrade method includes steps 101-102:
step 101: splitting the upgrade firmware data corresponding to the upgrade firmware to obtain a plurality of upgrade firmware sub-data with preset lengths.
The upgrade firmware is the upgrade firmware of the module, and is used for upgrading the firmware of the module.
Optionally, the server splits the upgrade firmware data corresponding to the upgrade firmware based on the size of the upgrade firmware of the module, that is, the total length of the upgrade firmware data corresponding to the upgrade firmware, to obtain upgrade firmware sub-data with a plurality of preset lengths.
That is, the plurality of upgrade firmware sub-data of the preset length may constitute complete upgrade firmware data.
The preset length of the upgrade firmware sub-data may be determined based on the total length of the upgrade firmware data. If the total length of the upgrade firmware data is longer, the length of the divided upgrade firmware sub-data, that is, the preset length, will also be longer.
In one possible implementation, the preset length includes a first preset length and a second preset length. At this time, if the total length of the upgrade firmware data is greater than or equal to the target total length, splitting the upgrade firmware data according to the first preset length to obtain a plurality of upgrade firmware sub-data with the first preset length; if the total length of the upgrade firmware data is smaller than the target total length, splitting the upgrade firmware data according to the second preset length to obtain a plurality of upgrade firmware sub-data with the second preset length. The first preset length is greater than the second preset length, and the target total length, the first preset length and the second preset length can be preset.
It can be understood that the target total length may be multiple, so that, for different total lengths of the upgrade firmware data, the preset length set when the upgrade firmware data is split may be adaptively adjusted, and at this time, the number of the obtained upgrade firmware sub-data with multiple preset lengths is not too large or too small. In this way, the number of times of the repeated transmission of the whole upgrade firmware data is limited within a certain range, so that the problems of more times of the repeated transmission and more complicated firmware upgrade operation are avoided, the problems of less times of the repeated transmission, longer data required to be transmitted at a time, smaller storage space of an upper computer or a module, incomplete data downloading of the upgrade firmware and failure of the firmware upgrade can be avoided.
In one possible implementation, the preset length may be a fixed value or a fixed range of values.
The predetermined length may be, for example, 5-10 kbytes.
Step 102: and sequentially sending the plurality of firmware upgrading sub-data with the preset length to the module through the upper computer so that the module can conveniently use the plurality of firmware upgrading sub-data with the preset length received and stored in the target storage area to upgrade the firmware.
That is, the server sequentially transmits the plurality of firmware sub-data with the preset length to the upper computer, and then the upper computer sequentially transmits the plurality of firmware sub-data with the preset length to the module. Correspondingly, the module receives a plurality of firmware upgrading sub-data with preset lengths, which are sequentially sent by the upper computer, and stores the firmware upgrading sub-data in the target storage area, and then the module uses the firmware upgrading sub-data with the preset lengths, which are stored in the target storage area, to upgrade the firmware.
The target storage area is a storage area in the module.
For example, the target storage area may be a FLASH or ROM, which is different from the module memory, and the data in the target storage area is not lost after the module is powered down.
It should be noted that, through the above-mentioned process, the server splits the firmware data that upgrades corresponding to firmware and then sends to the host computer in proper order, and then sends to the module in proper order by the host computer and stores in the target storage area of module, can reduce the data volume of single transmission, avoid because of the memory space of host computer or module is insufficient leads to the module can not obtain complete firmware data that upgrades, and then leads to the condition that the firmware upgrades the failure, improves the firmware upgrade success rate.
Optionally, the server further sends the total length of the firmware upgrading data to the upper computer, so that the upper computer can send a firmware upgrading instruction to the module after determining that the upper computer receives the complete firmware upgrading based on the accumulated lengths of the plurality of firmware upgrading sub-data with preset lengths and the total length of the firmware upgrading data, which are sequentially received from the server, so as to instruct the module to conduct firmware upgrading.
In this way, the upper computer can ensure that the upper computer has received complete upgrade firmware data and can completely send the upgrade firmware data to the module, so that the module can use the complete upgrade firmware data received and stored by the upper computer to upgrade the firmware of the module, and the module can be ensured to successfully upgrade the firmware under the condition that the memory space of the upper computer and the module is insufficient.
In order to solve the problem that the firmware upgrade of the module cannot be completed due to the limited memory space of the module or the upper computer, the embodiment of the application provides a firmware upgrade method applied to the upper computer, as shown in fig. 2, the firmware upgrade method includes steps 201-202:
step 201: and acquiring a plurality of pieces of firmware upgrading sub-data with preset lengths, which are sequentially transmitted by the server.
Optionally, the server sequentially sends a plurality of firmware upgrading sub-data with preset lengths to the upper computer, and correspondingly, the upper computer sequentially receives the firmware upgrading sub-data with preset lengths sent by the server. For an introduction of the process that the server obtains the plurality of firmware sub-data with the preset length, refer to the above, and will not be described herein.
In one possible implementation, the upper computer actively obtains upgrade firmware data required by the firmware upgrade of the module from the server. At this time, the upper computer can acquire upgrade firmware data corresponding to the upgrade firmware of the module from the server through the wireless network by using an http or ftp mode. In response, the server divides the upgrade firmware data corresponding to the upgrade firmware into a plurality of upgrade firmware sub-data with preset lengths, and sequentially sends the upgrade firmware sub-data to the upper computer so that the upper computer can acquire the upgrade firmware data.
Specifically, the user issues a user instruction to the upper computer, where the user instruction is used to instruct the upper computer to upgrade the firmware of the module. Correspondingly, after receiving a user instruction issued by a user, the upper computer invokes an interface provided by the module to dial data, and after the data dialing is successful, the upper computer accesses the server through the wireless network. In this way, the upper computer and the server can communicate through a wireless network. At this time, the upper computer can obtain the firmware upgrading data of the module from the server through the wireless network.
Step 202: and sequentially sending the plurality of firmware upgrading sub-data with the preset length to the module so that the module can conveniently upgrade the firmware by using the plurality of firmware upgrading sub-data with the preset length which are received and stored in the target storage area by the module.
Optionally, the upper computer sequentially sends the plurality of firmware sub-data with preset length to the module, and the corresponding module receives the plurality of firmware sub-data with preset length sequentially sent by the upper computer and stores the plurality of firmware sub-data with preset length in a target storage area of the module.
In one possible implementation manner, after the upper computer receives the firmware upgrading sub-data with a preset length, the upper computer sends the firmware upgrading sub-data with the preset length to the module. And then, the upper computer receives the other firmware upgrading sub-data with the preset length and sends the other firmware upgrading sub-data with the preset length to the module.
Specifically, the upper computer receives and caches upgrade firmware sub-data with a preset length, and deletes the upgrade firmware sub-data with the preset length cached in the upper computer after sending the upgrade firmware sub-data with the preset length to the module. And then, the upper computer receives and caches the upgrade firmware sub-data with another preset length, and deletes the upgrade firmware sub-data with the other preset length cached in the upper computer after sending the upgrade firmware sub-data with the other preset length to the module. Repeating the processes of receiving, caching, sending and deleting the updated firmware sub-data with the preset length until a plurality of updated firmware sub-data obtained by splitting the updated firmware data are sent to the module.
Optionally, the server sends the total length of the upgrade firmware data corresponding to the upgrade firmware of the module to the upper computer, and correspondingly, the upper computer receives the upgrade firmware data sent by the server. Then, the upper computer determines whether the upper computer receives complete upgrade firmware data based on the accumulated length of a plurality of upgrade firmware sub-data with preset lengths and the total length of the upgrade firmware data, which are received from the server. If the upper computer receives complete firmware upgrading data, a firmware upgrading instruction is sent to the module so as to instruct the module to upgrade the firmware.
The firmware upgrading instruction is used for triggering the module to upgrade the firmware.
That is, if the host computer does not receive the complete firmware upgrade data, the firmware upgrade instruction is not sent to the module. At this time, the upper computer continues to acquire the firmware upgrading data with the preset length from the server until the upper computer acquires the complete firmware upgrading data, and sends a firmware upgrading instruction to the module.
It will be appreciated that the firmware upgrade instruction may be sent to the module after or simultaneously with the host computer sending the complete upgrade firmware data that it obtains to the module.
In one possible implementation manner, if the accumulated length of the upgrade firmware sub-data with the preset length received by the upper computer reaches the total length of the upgrade firmware data, it is determined that the upper computer receives the complete upgrade firmware data. Otherwise, if the data is not reached, the upper computer is determined to not receive the complete upgrade firmware data.
In one possible implementation manner, the upper computer is located between the modules and communicates through a USB or PCIe interface, that is, the upper computer may sequentially send, to the modules, a plurality of firmware update sub-data with preset lengths, which are sequentially received from the server, through the USB or PCIe interface.
Through the process, the upper computer acquires the upgrade firmware data corresponding to the upgrade firmware of the module from the server in a divided manner, and then sequentially sends the upgrade firmware data to the module and stores the upgrade firmware data in the target storage area of the module, so that the data quantity of single transmission can be reduced, the situation that the module cannot acquire complete upgrade firmware data due to insufficient memory space of the upper computer or the module, and further firmware upgrade failure is caused is avoided, and the success rate of firmware upgrade is improved.
In addition, after the upper computer ensures that the upper computer has received complete firmware upgrading data and can completely send the firmware upgrading data to the module, the module is instructed to carry out firmware upgrading, and under the condition that the memory space of the upper computer or the module is limited, the module can obtain the complete firmware upgrading data, the firmware upgrading can be successfully carried out, and the success rate of the firmware upgrading is improved.
In order to solve the problem that the firmware upgrade of the module cannot be completed due to the limited memory space of the module or the upper computer, the embodiment of the present application provides a firmware upgrade method applied to the module, as shown in fig. 3, the firmware upgrade method includes steps 301-302:
step 301: and receiving a plurality of firmware upgrading sub-data with preset lengths, which are sequentially transmitted by the server through the upper computer, and storing the firmware upgrading sub-data in a target storage area.
The server splits the upgrade firmware data corresponding to the upgrade firmware when the plurality of upgrade firmware sub-data with preset lengths are obtained.
Step 302: and upgrading the firmware by using a plurality of upgrading firmware sub-data with preset lengths stored in the target storage area.
In one possible implementation, the module receives a firmware upgrade instruction issued by the host computer, and triggers the module to upgrade the firmware in response to the firmware upgrade instruction. And then restarting the module to enter an upgrade mode, and using upgrade firmware, namely upgrade firmware sub-data of a plurality of preset lengths stored in the target storage area, to upgrade the firmware.
Through the process, the server splits the upgrade firmware data corresponding to the upgrade firmware and then sequentially sends the upgrade firmware data to the upper computer, and then the upper computer sequentially sends the upgrade firmware data to the module and stores the upgrade firmware data in a target storage area of the module, such as FLASH or ROM, so that the data quantity of single transmission can be reduced, the situation that the module cannot acquire complete upgrade firmware data due to insufficient memory space of the upper computer or the module, and further firmware upgrade failure is caused is avoided, and the success rate of firmware upgrade is improved.
In summary, the application provides a firmware upgrading method of a module under the condition of limited storage space, which can realize the firmware upgrading of the module under the condition of limited storage space of the module and limited storage space of an upper computer, and ensure the success rate of the firmware upgrading of the module.
As shown in fig. 4, an embodiment of the present application provides a firmware upgrade system, which includes a server, an upper computer, and a module. The server is connected with the upper computer in a communication way, and the upper computer is connected with the module in a communication way.
The server is used for splitting the upgrade firmware data corresponding to the upgrade firmware to obtain a plurality of upgrade firmware sub-data with preset lengths; sequentially transmitting a plurality of firmware upgrading sub-data with preset lengths to an upper computer;
the upper computer is used for acquiring a plurality of upgrading firmware sub-data with preset lengths, which are sequentially transmitted by the server; sequentially sending a plurality of firmware upgrading sub-data with preset lengths to the module;
the module is used for receiving a plurality of upgrading firmware sub-data with preset lengths, which are sequentially transmitted by the upper computer, and storing the upgrading firmware sub-data in a target storage area; and upgrading the firmware by using a plurality of upgrading firmware sub-data with preset lengths stored in the target storage area.
For example, when the fota of the wireless module is upgraded, the data dialing is not performed in the module, but performed by the upper computer, and after the data dialing of the upper computer is successful, the upgrade firmware of the module is obtained from the server through the wireless network by using an http or ftp mode. The upper computer acquires upgrade firmware data with preset length (for example, 5-10 kbytes) from the server each time, sends the data to the module through the USB or PCIe interface, and stores the data into the FLASH or the ROM after the module receives the data. Thus, the updated firmware of the module after multiple data transmission is finally stored in the module FLASH or ROM. The upper computer issues an upgrade command to the module to trigger the module to upgrade the firmware, and the module is restarted to enter an upgrade mode to upgrade the firmware by using the upgrade firmware.
For example, as shown in fig. 5, a flowchart of a firmware upgrade of a module in the present application may be shown, and first, a user issues a user instruction to notify an upper computer to upgrade the firmware of the module. And then, the upper computer calls an interface provided by the module to dial data, and after the upper computer successfully dials the data, the data is sent to the module after the fixed-length upgrading firmware sub-data are obtained from the server each time. And after receiving the data, the module stores the data in FLASH or ROM, and after multiple data transmission, the upgrade firmware of the module is finally and completely stored in the FLASH or ROM of the module. And then, the upper computer sends an upgrade command to the module triggering module to upgrade the firmware. And finally, restarting the module to enter an upgrading mode, and upgrading the firmware by using the upgrading firmware.
As shown in fig. 6, an embodiment of the present application provides a firmware upgrade apparatus, which includes a splitting module 601 and a sending module 602.
The splitting module 601 is configured to split 5 the upgrade firmware data corresponding to the upgrade firmware to obtain a plurality of upgrade firmware sub-data with a preset length.
The sending module 602 is configured to send the plurality of firmware sub-data with the preset length to the module sequentially via the upper computer, so that the module uses the plurality of firmware sub-data with the preset length received and stored in the target storage area to perform firmware upgrade.
As shown in fig. 7, an embodiment of the present application provides a firmware upgrade apparatus, where the apparatus 0 includes an acquisition module 701 and a transmission module 702.
The acquiring module 701 acquires a plurality of firmware upgrading sub-data with preset lengths, which are sequentially transmitted by a server; the plurality of upgrading firmware sub-data with preset lengths are obtained by splitting upgrading firmware data corresponding to the upgrading firmware by the server.
A sending module 702 for sequentially sending 5 the updated firmware sub-data with a plurality of preset lengths to the module so that the module can use the updated firmware sub-data to receive and store the updated firmware sub-data in the target storage area
And upgrading the firmware sub-data to perform firmware upgrading.
As shown in fig. 8, an embodiment of the present application provides a firmware upgrade apparatus, which includes a receiving module 801 and an upgrade module 802.
A receiving module 801, configured to receive a plurality of firmware update sub-data with preset length 0 sequentially sent by a server through an upper computer, and store the firmware update sub-data in a target storage area; multiple preset length upgrade firmware
The sub data are obtained by splitting the upgrade firmware data corresponding to the upgrade firmware by the server;
the upgrade module 802 is configured to upgrade firmware by using a plurality of upgrade firmware sub-data with preset lengths stored in the target storage area.
As shown in fig. 9, an embodiment of the present application provides an electronic device, including a processor 901, a 5 communication interface 902, a memory 903, and a communication bus 904, where the processor 901 communicates
An interface 902, a memory 903, and a communication bus 904,
a memory 903 for storing a computer program;
in one embodiment of the present application, the processor 901 is configured to implement the steps of the firmware upgrading method provided in any one of the foregoing method embodiments when executing the program stored in the memory 903.
The present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the firmware upgrade method provided by any one of the method embodiments described above.
The electronic device provided in the embodiment of the application may be a module capable of implementing a communication function or a terminal device including the module, and the terminal device may be a mobile terminal or an intelligent terminal. The mobile terminal can be at least one of a mobile phone, a tablet computer, a notebook computer and the like; the intelligent terminal can be a terminal containing a wireless communication module, such as an intelligent automobile, an intelligent watch, a sharing bicycle, an intelligent cabinet and the like; the module may specifically be any one of a wireless communication module, such as a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, and an NB-IOT communication module.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A firmware upgrade method, applied to a server, the method comprising:
splitting the upgrade firmware data corresponding to the upgrade firmware to obtain a plurality of upgrade firmware sub-data with preset lengths;
and sequentially sending the plurality of firmware upgrading sub-data with preset lengths to the module through the upper computer so that the module can conveniently upgrade the firmware by using the plurality of firmware upgrading sub-data with preset lengths which are received and stored in the target storage area by the module.
2. The firmware upgrade method of claim 1, wherein the method further comprises:
and sending the total length of the updated firmware data to the upper computer so that the upper computer can send a firmware upgrading instruction to the module after determining that the upper computer receives complete updated firmware data based on the accumulated length of a plurality of pieces of updated firmware sub-data with preset lengths and the total length of the updated firmware data, which are sequentially received from the server, so as to instruct the module to carry out firmware upgrading.
3. The firmware upgrading method is characterized by being applied to an upper computer, and comprises the following steps:
acquiring a plurality of firmware upgrading sub-data with preset lengths, which are sequentially transmitted by a server; the plurality of upgrading firmware sub-data with preset lengths are obtained by splitting upgrading firmware data corresponding to the upgrading firmware by the server;
and sequentially sending the plurality of firmware upgrading sub-data with preset lengths to the module so that the module can conveniently upgrade the firmware by using the plurality of firmware upgrading sub-data with preset lengths which are received and stored in the target storage area by the module.
4. A firmware upgrade method according to claim 3, wherein the method further comprises:
receiving the total length of the upgrade firmware data sent by the server;
determining whether the upper computer receives complete upgrade firmware data or not based on the accumulated lengths of the upgrade firmware sub-data with the preset lengths and the total length of the upgrade firmware data;
and if the upper computer receives complete firmware upgrading data, sending a firmware upgrading instruction to the module to instruct the module to carry out firmware upgrading.
5. A firmware upgrade method, applied to the module, the method comprising:
receiving a plurality of firmware upgrading sub-data with preset lengths sequentially transmitted by a server through an upper computer and storing the firmware upgrading sub-data in a target storage area; the plurality of upgrading firmware sub-data with preset lengths are obtained by splitting upgrading firmware data corresponding to the upgrading firmware by the server;
and carrying out firmware upgrading by using a plurality of upgrading firmware sub-data with preset lengths stored in the target storage area.
6. The firmware upgrading system is characterized by comprising a server, an upper computer and a module; the server is in communication connection with the upper computer, and the upper computer is in communication connection with the module; wherein,,
the server is used for splitting the upgrade firmware data corresponding to the upgrade firmware to obtain a plurality of upgrade firmware sub-data with preset lengths; sequentially sending the plurality of firmware upgrading sub-data with preset lengths to an upper computer;
the upper computer is used for acquiring a plurality of upgrading firmware sub-data with preset lengths, which are sequentially transmitted by the server; sequentially sending a plurality of firmware upgrading sub-data with preset lengths to the module;
the module is used for receiving the plurality of firmware upgrading sub-data with preset lengths, which are sequentially transmitted by the upper computer, and storing the firmware upgrading sub-data in a target storage area; and carrying out firmware upgrading by using a plurality of upgrading firmware sub-data with preset lengths stored in the target storage area.
7. A firmware upgrade apparatus, characterized in that the firmware upgrade apparatus comprises:
the splitting module is used for splitting the upgrade firmware data corresponding to the upgrade firmware to obtain a plurality of upgrade firmware sub-data with preset lengths;
and the sending module is used for sequentially sending the plurality of firmware upgrading sub-data with preset lengths to the module through the upper computer so that the module can conveniently use the plurality of firmware upgrading sub-data with preset lengths received and stored in the target storage area to carry out firmware upgrading.
8. A firmware upgrade apparatus, characterized in that the firmware upgrade apparatus comprises:
the acquisition module acquires a plurality of upgrading firmware sub-data with preset lengths, which are sequentially transmitted by the server; the plurality of upgrading firmware sub-data with preset lengths are obtained by splitting upgrading firmware data corresponding to the upgrading firmware by the server;
and the sending module is used for sequentially sending the plurality of firmware upgrading sub-data with preset lengths to the module so that the module can conveniently use the plurality of firmware upgrading sub-data with preset lengths received and stored in the target storage area to carry out firmware upgrading.
9. A firmware upgrade apparatus, characterized in that the firmware upgrade apparatus comprises:
the receiving module is used for receiving a plurality of pieces of firmware upgrading sub-data with preset lengths, which are sequentially transmitted by the server through the upper computer, and storing the firmware upgrading sub-data in the target storage area; the plurality of upgrading firmware sub-data with preset lengths are obtained by splitting upgrading firmware data corresponding to the upgrading firmware by the server;
and the upgrading module is used for upgrading the firmware by using a plurality of pieces of upgrading firmware sub-data with preset lengths stored in the target storage area.
10. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the steps of the firmware upgrade method of any one of claims 1-5 when executing a program stored on a memory.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the firmware upgrade method according to any one of claims 1-5.
CN202211611404.5A 2022-12-14 2022-12-14 Firmware upgrading method, system, device, electronic equipment and storage medium Pending CN116225482A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211611404.5A CN116225482A (en) 2022-12-14 2022-12-14 Firmware upgrading method, system, device, electronic equipment and storage medium
PCT/CN2023/118249 WO2024125002A1 (en) 2022-12-14 2023-09-12 Firmware updating method, system and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211611404.5A CN116225482A (en) 2022-12-14 2022-12-14 Firmware upgrading method, system, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116225482A true CN116225482A (en) 2023-06-06

Family

ID=86577597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211611404.5A Pending CN116225482A (en) 2022-12-14 2022-12-14 Firmware upgrading method, system, device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN116225482A (en)
WO (1) WO2024125002A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024125002A1 (en) * 2022-12-14 2024-06-20 深圳市广和通无线通信软件有限公司 Firmware updating method, system and apparatus, electronic device, and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001142713A (en) * 1999-11-16 2001-05-25 Fujitsu I-Network Systems Ltd Upgrading method for firmware
CN109117168A (en) * 2018-08-29 2019-01-01 拓攻(南京)机器人有限公司 Unmanned plane firmware update, device, unmanned plane and storage medium
CN112130881A (en) * 2020-09-29 2020-12-25 广东芬尼克兹节能设备有限公司 Firmware remote upgrading method and device
CN113805921B (en) * 2021-09-26 2023-10-24 深圳威消保科技有限公司 Firmware remote upgrading method and device
CN116225482A (en) * 2022-12-14 2023-06-06 深圳市广和通无线通信软件有限公司 Firmware upgrading method, system, device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024125002A1 (en) * 2022-12-14 2024-06-20 深圳市广和通无线通信软件有限公司 Firmware updating method, system and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
WO2024125002A1 (en) 2024-06-20

Similar Documents

Publication Publication Date Title
KR101905019B1 (en) Method for upgrading terminal system, terminal, and system
CN107608701A (en) A kind of method and apparatus of firmware updating
CN104410665B (en) A kind of method for down loading and equipment upgrading bag
CN111142905B (en) OTA upgrading method, OTA server and OTA upgrading system
JP2001078258A5 (en)
CN104780189A (en) Software upgrading method and software upgrading device
JP4768735B2 (en) Portable wireless communication device and method for updating software
JP2009246983A (en) Method, software and apparatus for performing actions on wireless device using action lists and versioning
CN114124917B (en) Remote upgrading method, equipment, system and medium for ground locking piece
CN103188328A (en) Mobile terminal application program sharing method, server and system
CN110187904B (en) Device and method for updating vehicle controller firmware
CN105357031A (en) OTA (over the air) upgrade method and device
CN111488130A (en) Cloud printing method, device and system and cloud printer
CN116225482A (en) Firmware upgrading method, system, device, electronic equipment and storage medium
CN111158738A (en) Earphone firmware upgrading method and device and readable storage medium
CN1284820A (en) Mobile communication system capable of updating program in mobile terminal
CN113746892B (en) Remote upgrading method and wireless terminal equipment
CN111031142B (en) Software upgrading method, device and medium
US20020004386A1 (en) Apparatus comprising a storage device for storing performance data and method of updating this storage device
CN111181752B (en) Narrowband device upgrading method, mobile terminal and readable storage medium
CN110602688B (en) Terminal software upgrading method and upgrading system
CN116760815A (en) Firmware version upgrading method and device
CN101854442B (en) Network device and firmware updating method thereof
CN113434525B (en) Cache data updating method and device, storage medium and electronic device
CN105872106A (en) Over-the-air upgrade method, over-the-air server and terminal

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