CN113190244A - Method and device for upgrading wireless module, computer equipment and storage medium - Google Patents

Method and device for upgrading wireless module, computer equipment and storage medium Download PDF

Info

Publication number
CN113190244A
CN113190244A CN202110323795.XA CN202110323795A CN113190244A CN 113190244 A CN113190244 A CN 113190244A CN 202110323795 A CN202110323795 A CN 202110323795A CN 113190244 A CN113190244 A CN 113190244A
Authority
CN
China
Prior art keywords
upgrading
wireless module
upgrade
partition
cache
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
CN202110323795.XA
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.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202110323795.XA priority Critical patent/CN113190244A/en
Publication of CN113190244A publication Critical patent/CN113190244A/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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Abstract

The application relates to a method and a device for upgrading a wireless module, computer equipment and a storage medium. The method comprises the following steps: mounting the cache partition to a host side through a USB interface of a wireless module, wherein the wireless module is divided into the cache partitions in advance; acquiring an upgrade package of the host side, and storing the upgrade package in the cache partition; receiving an upgrading instruction of the host side; and responding to the upgrading instruction, and upgrading the wireless module according to the upgrading packet. By adopting the method, the wireless module can be upgraded normally when no network exists or the network condition is poor.

Description

Method and device for upgrading wireless module, computer equipment and storage medium
Technical Field
The present application relates to the field of wireless module technologies, and in particular, to a method and an apparatus for upgrading a wireless module, a computer device, and a storage medium.
Background
The wireless module can be divided into a communication module and a positioning module according to functions, wherein the communication module can be divided into a cellular type and a non-cellular type communication module according to different communication technologies. With the development of wireless module technology, because the demand of users for communication is increasing with time, the iterative update of products is also accelerated greatly, and wireless module upgrading technology is appeared in order to adapt to the new demand of users for continuous development.
In The conventional technology, in The wireless communication module industry, software of a wireless module is mostly upgraded by using Over The Air software upgrade (i.e. FOTA, which is called Firmware Over-The-Air) of a mobile terminal.
However, current wireless modules cannot be upgraded when they cannot connect to cellular data or when a network failure occurs.
Disclosure of Invention
Accordingly, there is a need to provide a method, an apparatus, a computer device and a storage medium for upgrading a wireless module, which can enable the wireless module to normally upgrade the wireless module when there is no network or the network is in a bad condition.
A method of wireless module upgrade, the method comprising:
mounting the cache partition to a host side through a USB interface of a wireless module, wherein the wireless module is divided into the cache partitions in advance;
acquiring an upgrade package of the host side, and storing the upgrade package in the cache partition;
receiving an upgrading instruction of the host side;
and responding to the upgrading instruction, and upgrading the wireless module according to the upgrading packet.
In one embodiment, in response to the upgrade instruction, upgrading the wireless module according to the upgrade package includes:
mounting the cache partition and searching the upgrade package;
and upgrading the wireless module according to the searched upgrading packet.
In one embodiment, mounting the cache partition, looking up the upgrade package:
mounting the cache partition;
searching whether an upgrade package exists in the cache partition or not;
when the upgrading packet exists in the cache partition, the step of upgrading the wireless module according to the searched upgrading packet is executed;
and when the upgrading packet does not exist, the wireless module exits the upgrading mode.
In one embodiment, the upgrading the wireless module according to the found upgrade package further includes:
checking whether the wireless module needs to be upgraded or not;
if the wireless module needs to be upgraded, upgrading a common partition by combining the upgrading packet, and restarting the wireless module when the common partition is upgraded successfully, wherein the common partition is a systematic partition upgraded by the wireless module.
In one embodiment, when the upgrade of the normal partition fails, all the upgrade flags are cleared, and the upgrade of the normal partition is stopped.
In one embodiment, the file system format stored by the cache partition includes EXT4, FAT32, and UBI.
An apparatus for wireless module upgrade, the apparatus comprising:
the wireless module mounting module is used for mounting the cache partition to the host side through a USB interface of the wireless module, and the wireless module is divided into the cache partitions in advance;
the upgrade package storage module is used for acquiring the upgrade package of the host side and storing the upgrade package in the cache partition;
the upgrading instruction receiving module is used for receiving the upgrading instruction of the host side;
and the upgrading starting module is used for responding to the upgrading instruction and upgrading the wireless module according to the upgrading packet.
An apparatus for upgrading a wireless module, the upgrade starting module further comprising:
the upgrade package searching module is used for mounting the cache subarea and searching the upgrade package;
and the module upgrading module is used for upgrading the wireless module according to the searched upgrading packet.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
mounting the cache partition to a host side through a USB interface of a wireless module, wherein the wireless module is divided into the cache partitions in advance;
acquiring an upgrade package of the host side, and storing the upgrade package in the cache partition;
receiving an upgrading instruction of the host side;
and responding to the upgrading instruction, and upgrading the wireless module according to the upgrading packet.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
mounting the cache partition to a host side through a USB interface of a wireless module, wherein the wireless module is divided into the cache partitions in advance;
acquiring an upgrade package of the host side, and storing the upgrade package in the cache partition;
receiving an upgrading instruction of the host side;
and responding to the upgrading instruction, and upgrading the wireless module according to the upgrading packet.
According to the method, the device, the computer equipment and the storage medium for upgrading the wireless module, after the cache partition in the wireless module is mounted to the host side, the host side can identify the cache partition, and the cache partition is used as a USB flash disk on the host side and used for storing the upgrade package. After receiving and responding to the upgrading instruction of the host side, the wireless module can be upgraded according to the upgrading packet of the cache partition. The upgrading instruction is issued by the host side in the USB enumeration process, and the sending and receiving processes are not influenced by the network, so that the wireless module can be upgraded according to the upgrading packet in the cache partition after the wireless module corresponds to the upgrading instruction.
Therefore, the wireless module can be normally upgraded when no network exists or the network condition is not good.
Drawings
FIG. 1 is a diagram of an exemplary wireless module upgrade method;
FIG. 2 is a flow diagram illustrating a method for upgrading a wireless module according to one embodiment;
FIG. 3 is a flowchart illustrating a method for upgrading a wireless module according to another embodiment;
FIG. 4 is a block diagram of an apparatus for wireless module upgrade in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for upgrading the wireless module can be applied to the application environment shown in fig. 1. The wireless module 102 and the host 108 communicate with each other through a USB interface.
The wireless module 102 has a flash partition 104 therein, and in order to implement the upgrade process without being limited by the network, the wireless module 102 divides an empty cache partition 106 in the flash partition 104 in advance, and the cache partition 106 may be multiple. After the wireless module 102 is plugged into the host side 108 through the USB interface, the upgrade package of the host side 108 can be obtained. When the wireless module 102 needs to be upgraded, the host side 108 will issue an upgrade command to the wireless module 102 through USB enumeration. After obtaining the upgrade instruction, the wireless module 102 will respond to the upgrade instruction and mount the cache partition 106, thereby completing the upgrade with the upgrade package.
In one embodiment, as shown in fig. 2, a method for upgrading a wireless module is provided, which is described by taking the method as an example for being applied to the terminal in fig. 1, and includes the following steps:
step S202, the cache partition is mounted to the host side through a USB interface of the wireless module, wherein the wireless module is divided into the cache partitions in advance.
The upgraded wireless module is a communication module. When the cache partition is mounted on the host side, the cache partition corresponds to a "usb disk" inserted into the host side. The cache partition is mounted to the host side, which may be understood as inserting a "U disk" into the host side, and at this time, the host side may recognize the "U disk" (i.e., the cache partition).
Specifically, the wireless module is divided into cache partitions in advance, which means that before the cache partitions are mounted on the host side, the wireless module is already divided into cache partitions in a cache area (flash partition) inside the wireless module, and the cache partitions are empty cache partitions and have a certain storage space or capacity.
In the Linux system, "all files" are all placed in a tree directory structure with a root directory as a tree root. In Linux, any hardware device is also a file, and each hardware device has its own set of file system (file directory structure). Therefore, when these hardware devices are used in the Linux system, the hardware devices can be used only by combining the file directories of the Linux system and the hardware devices into one, and the process of combining the file directories of the Linux system and the file directories of the hardware devices into one is called "mounting". The specific implementation of mounting is to insert the USB interface of the wireless module into the interface of the host side, so that the host side can identify the wireless module.
Step S204, obtaining the upgrade package of the host side, and storing the upgrade package in the cache partition.
The upgrading package is a data package which stores relevant files for the wireless module to upgrade. When the functional requirement of the wireless module is delayed, the user can download the upgrade package to the host side for the subsequent upgrade of the wireless module. The upgrading package comprises a whole package and a differential package, wherein when the wireless module is upgraded by taking the whole package as the upgrading package, the upgrading is realized in a mode of covering the whole package, and all data in the system can be upgraded. The difference package is smaller than the whole package, and difference files between the two states before and after upgrading are stored in the difference package. Upgrading according to differential packages is one way of version-directed upgrading.
Specifically, after the wireless module mounts the cache partition to the host side, the host side can identify the cache partition, and the user copies the upgrade package to the cache partition (which is equivalent to a usb disk of the host side after the upgrade package is mounted to the host side) on the host side, so that the upgrade package is stored in the cache partition.
Step S206, receiving an upgrade instruction of the host side.
The upgrading instruction is sent by the host side, is sent through an AT port enumerated by a USB and is not limited or influenced by a network. The upgrade command can control the wireless module to enter an upgrade mode to prepare for upgrading.
And S208, responding to the upgrading instruction, and upgrading the wireless module according to the upgrading packet.
After the wireless module obtains the upgrading instruction sent by the host side, the wireless module responds to the upgrading instruction and starts upgrading according to the upgrading packet stored in the cache partition.
In the method for upgrading the wireless module, after the cache partition in the wireless module is mounted to the host side, the host side can identify the cache partition and use the cache partition as a USB flash disk on the host side for storing the upgrade package. After receiving and responding to the upgrading instruction of the host side, the wireless module can be upgraded according to the upgrading packet of the cache partition. The upgrading instruction is issued by the USB on the host side in the enumeration process, and the sending and receiving processes are not influenced by the network, so that the wireless module can be upgraded according to the upgrading packet in the cache partition after the wireless module corresponds to the upgrading instruction. The upgrading mode can be realized by mounting the wireless module to the host side, namely, a hardware connection upgrading mode is provided without being limited by a network state, so that the upgrading can be normally realized when the wireless module has no network or the network is not good.
In one embodiment, in response to the upgrade instruction, upgrading the wireless module according to the upgrade package includes: mounting the cache partition and searching the upgrade package; and upgrading the wireless module according to the searched upgrading packet.
Specifically, after receiving the upgrade instruction, the wireless module starts an upgrade process according to the upgrade instruction and enters an upgrade mode. The wireless module mounts the cache partition into the wireless module in an upgrading mode, so that a file system in the wireless module can be normally identified by the file system. And then the wireless module searches whether the cache partition has the upgrade package according to the upgrade program.
And when the upgrading package is detected in the cache partition according to the upgrading program, starting upgrading according to the searched upgrading package.
In this embodiment, the wireless module mounts the cache partition, so that the wireless module can identify the upgrade package in the cache partition, and upgrade is performed according to the identified upgrade package.
In one embodiment, mounting the cache partition and searching for the upgrade package includes:
mounting the cache partition, and searching whether an upgrade package exists in the cache partition; when the upgrading packet exists in the cache partition, the step of upgrading the wireless module according to the searched upgrading packet is executed; and when the upgrading packet does not exist, the wireless module exits the upgrading mode.
The wireless module firstly checks whether an upgrade package exists under a specific directory, exits from upgrading if the upgrade package does not exist, and checks the hash value of the file if the upgrade package exists so as to judge the integrity of the file. And if the file hash value is wrong, exiting the upgrade.
Specifically, after receiving the upgrade instruction, the wireless module starts an upgrade process according to the upgrade instruction and enters an upgrade mode. The wireless module mounts the cache partition into the wireless module in an upgrading mode, so that a file system in the wireless module can be normally identified by the file system.
After the wireless module is mounted on the cache partition, whether the cache partition has the upgrade package or not can be checked according to the upgrade program, and when the cache partition is checked to have no upgrade package according to the upgrade program, the wireless module cannot realize updating and upgrading, so that the wireless module exits the upgrade mode.
In this embodiment, before the wireless module is upgraded in response to the upgrade instruction, by checking in advance whether the upgrade package is stored in the cache partition, and then performing corresponding operations, it is avoided that the upgrade package does not exist and the wireless module is still in the upgrade mode state, and when it is determined that the upgrade package exists, the wireless module is upgraded smoothly.
In one embodiment, the upgrading the wireless module according to the found upgrade package further includes:
checking whether the wireless module needs to be upgraded or not; if the wireless module needs to be upgraded, upgrading a common partition by combining the upgrading packet, and restarting the wireless module when the common partition is upgraded successfully, wherein the common partition is a systematic partition upgraded by the wireless module.
The normal partition refers to a normal partition, and the normal partition includes a uboot partition system partition modem partition and the like. The cache partition is a userdata partition, and the wireless module cannot be upgraded when the cache partition is upgraded, namely the upgrading of the cache partition and the upgrading of the wireless module cannot occur simultaneously. When the normal partition, i.e. the normal partition, is upgraded successfully, the wireless module is started and restarted, and the wireless module is upgraded and updated, i.e. the upgrading of the wireless module is related to the upgrading of the normal partition, so that the normal partition is called a systematic partition for upgrading the wireless module.
Specifically, the wireless module starts the upgrade mode to upgrade after obtaining the upgrade package, and in the upgrade process, the wireless module can upgrade the common partition by combining the file system of the upgrade package and the content information of the upgrade package, and after the common partition is upgraded successfully, the wireless module needs to be restarted, and the upgrade work is completed after the wireless module is restarted.
In this embodiment, the upgrade package is combined to upgrade the common partition, so that the wireless module related to the common partition can be upgraded.
In one embodiment, when the upgrade of the normal partition fails, all the upgrade flags are cleared, and the upgrade of the normal partition is stopped.
The upgrading mark is generated in each time period in the upgrading process of the common partition, and the upgrading progress and upgrading stage conditions of the common partition in each time period are recorded.
Specifically, if the upgrade of the normal partition fails, all the upgrade flags are cleared, and the subsequent upgrade flow of the normal partition is terminated.
In this embodiment, when the upgrade of the common partition fails, the cache data of the wireless module is reduced by removing all the upgrade flags, and accordingly, the operating efficiency of the wireless module is improved. And when the upgrading of the common subarea fails, the upgrading of the common subarea is stopped, so that the invalid operation of the wireless module is avoided.
In one embodiment, the file system format stored by the cache partition includes EXT4, FAT32, and UBI.
The file system format stored by the cache partition includes, but is not limited to, EXT4, FAT32, UBI, and the like.
In the embodiment, various file system formats are stored, so that the upgrade packages with different file system formats can be conveniently and correspondingly identified.
In one embodiment, a method for wireless module upgrade includes: step S302 to step S314, wherein:
step S302, the cache partition is mounted to the host side through the USB interface of the wireless module, wherein the wireless module is divided into the cache partitions in advance.
Step S304, an upgrade package of the host side is obtained, and the upgrade package is stored in the cache partition.
Step S306, receiving an upgrading instruction of the host side.
Step S308, mounting the cache partition.
Step S310, searching whether the cache partition has an upgrade package.
And when the upgrade package exists in the cache partition, executing step S312, and performing wireless module upgrade according to the searched upgrade package.
When the upgrade package does not exist, step S314 is executed, and the wireless module exits the upgrade mode.
In the method for upgrading the wireless module, after the cache partition in the wireless module is mounted to the host side, the host side can identify the cache partition and use the cache partition as a USB flash disk on the host side for storing the upgrade package. After receiving and responding to the upgrading instruction of the host side, the wireless module mounts the cache partition, and whether an upgrading packet exists in the cache partition is searched locally after the mounting is delayed. After the upgrade package is found, the wireless module can be upgraded subsequently. Because the upgrading instruction is issued by the host side in the enumeration process of the USB, the sending and receiving processes are not influenced by the network, and the wireless module can be upgraded according to the upgrading packet in the cache partition after the wireless module corresponds to the upgrading instruction. The upgrading mode can be realized by mounting the wireless module to the host side, namely, a hardware connection upgrading mode is provided without being limited by a network state, so that the upgrading can be normally realized when the wireless module has no network or the network is not good.
It should be understood that, although the steps in the flowcharts related to the above embodiments are shown in sequence as indicated by the arrows, the steps are not necessarily executed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in each flowchart related to the above embodiments may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
In one embodiment, as shown in fig. 4, there is provided an apparatus for upgrading a wireless module, including: wireless module mount module 402, upgrade package storage module 404, upgrade order receiving module 406 and upgrade start module 408, wherein:
a wireless module mounting module 402, configured to mount the cache partition to the host side through a USB interface of the wireless module, where the wireless module is divided into cache partitions in advance;
an upgrade package storage module 404, configured to obtain an upgrade package on the host side, and store the upgrade package in the cache partition;
an upgrade instruction receiving module 406, configured to receive an upgrade instruction of the host side;
and the upgrade starting module 408 is configured to respond to the upgrade instruction and perform wireless module upgrade according to the upgrade package.
In one embodiment, the upgrade starting module further includes: upgrade package search module and module upgrading module, wherein:
the upgrade package searching module is used for mounting the cache subarea and searching the upgrade package;
and the module upgrading module is used for upgrading the wireless module according to the searched upgrading packet.
In one embodiment, the upgrade package lookup module includes: the buffer memory partition mounting module and the upgrade package are provided with a checking module, wherein:
the cache partition mounting module is used for mounting the cache partitions;
the upgrading packet existence checking module is used for searching whether the upgrading packet exists or not; when the upgrade package exists, the step of upgrading the wireless module according to the searched upgrade package is executed; and when the upgrading packet does not exist, the wireless module exits the upgrading mode.
In one embodiment, the apparatus for upgrading a wireless module further comprises: the wireless module upgrading checking module is used for checking whether the wireless module needs to be upgraded or not;
if the wireless module needs to be upgraded, upgrading a common partition by combining the upgrading packet, and restarting the wireless module when the common partition is upgraded successfully, wherein the common partition is a systematic partition upgraded by the wireless module.
In one embodiment, the wireless module upgrade check module is further configured to clear all upgrade flags and stop upgrading the common partition if the wireless module does not need to be upgraded.
For the specific limitation of the wireless module upgrading device, reference may be made to the above limitation of the wireless module upgrading method, and details are not described herein again. All or part of each module in the wireless module upgrading device can be realized by software, hardware and combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method for wireless module upgrade. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
mounting the cache partition to a host side through a USB interface of a wireless module, wherein the wireless module is divided into the cache partitions in advance;
acquiring an upgrade package of the host side, and storing the upgrade package in the cache partition;
receiving an upgrading instruction of the host side;
and responding to the upgrading instruction, and upgrading the wireless module according to the upgrading packet.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
responding to the upgrading instruction, and upgrading the wireless module according to the upgrading packet, wherein the upgrading instruction comprises the following steps:
mounting the cache partition and searching the upgrade package;
and upgrading the wireless module according to the searched upgrading packet.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
mounting the cache partition, and searching the upgrade package, including:
mounting the cache partition;
searching whether an upgrade package exists in the cache partition or not;
when the upgrading packet exists in the cache partition, the step of upgrading the wireless module according to the searched upgrading packet is executed;
and when the upgrading packet does not exist, the wireless module exits the upgrading mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
upgrading the wireless module according to the searched upgrade package, and further comprising:
checking whether the wireless module needs to be upgraded or not;
if the wireless module needs to be upgraded, upgrading a common partition by combining the upgrading packet, and restarting the wireless module when the common partition is upgraded successfully, wherein the common partition is a systematic partition upgraded by the wireless module.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and when the upgrading of the common partition fails, clearing all upgrading marks and stopping the upgrading of the common partition.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
mounting the cache partition to a host side through a USB interface of a wireless module, wherein the wireless module is divided into the cache partitions in advance;
acquiring an upgrade package of the host side, and storing the upgrade package in the cache partition;
receiving an upgrading instruction of the host side;
and responding to the upgrading instruction, and upgrading the wireless module according to the upgrading packet.
In one embodiment, the computer program when executed by the processor further performs the steps of:
responding to the upgrading instruction, and upgrading the wireless module according to the upgrading packet, wherein the upgrading instruction comprises the following steps:
mounting the cache partition and searching the upgrade package;
and upgrading the wireless module according to the searched upgrading packet.
In one embodiment, the computer program when executed by the processor further performs the steps of:
mounting the cache partition, and searching the upgrade package, including:
mounting the cache partition;
searching whether an upgrade package exists in the cache partition or not;
when the upgrading packet exists in the cache partition, the step of upgrading the wireless module according to the searched upgrading packet is executed;
and when the upgrading packet does not exist, the wireless module exits the upgrading mode.
In one embodiment, the computer program when executed by the processor further performs the steps of:
upgrading the wireless module according to the searched upgrade package, and further comprising:
checking whether the wireless module needs to be upgraded or not;
if the wireless module needs to be upgraded, upgrading a common partition by combining the upgrading packet, and restarting the wireless module when the common partition is upgraded successfully, wherein the common partition is a systematic partition upgraded by the wireless module.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when the upgrading of the common partition fails, clearing all upgrading marks and stopping the upgrading of the common partition.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for wireless module upgrade, the method comprising:
mounting the cache partition to a host side through a USB interface of a wireless module, wherein the wireless module is divided into the cache partitions in advance;
acquiring an upgrade package of the host side, and storing the upgrade package in the cache partition;
receiving an upgrading instruction of the host side;
and responding to the upgrading instruction, and upgrading the wireless module according to the upgrading packet.
2. The method of claim 1, wherein performing a wireless module upgrade according to the upgrade package in response to the upgrade instruction comprises:
mounting the cache partition and searching the upgrade package;
and upgrading the wireless module according to the searched upgrading packet.
3. The method of claim 2, wherein mounting the cache partition and looking up the upgrade package comprises:
mounting the cache partition;
searching whether an upgrade package exists in the cache partition or not;
when the upgrading packet exists in the cache partition, the step of upgrading the wireless module according to the searched upgrading packet is executed;
and when the upgrading packet does not exist, the wireless module exits the upgrading mode.
4. The method according to claim 1, wherein the upgrading of the wireless module is performed according to the searched upgrade package, further comprising:
checking whether the wireless module needs to be upgraded or not;
if the wireless module needs to be upgraded, upgrading a common partition by combining the upgrading packet, and restarting the wireless module when the common partition is upgraded successfully, wherein the common partition is a systematic partition upgraded by the wireless module.
5. The method of claim 4, wherein when the normal partition fails to be upgraded, all upgrade flags are cleared and the upgrade of the normal partition is stopped.
6. The method of any of claims 1-5, wherein the file system format stored by the cache partition comprises EXT4, FAT32, and UBI.
7. An apparatus for wireless module upgrade, the apparatus comprising:
the wireless module mounting module is used for mounting the cache partition to the host side through a USB interface of the wireless module, and the wireless module is divided into the cache partitions in advance;
the upgrade package storage module is used for acquiring the upgrade package of the host side and storing the upgrade package in the cache partition;
the upgrading instruction receiving module is used for receiving the upgrading instruction of the host side;
and the upgrading starting module is used for responding to the upgrading instruction and upgrading the wireless module according to the upgrading packet.
8. The apparatus of claim 7, the upgrade initiation module further comprising:
the upgrade package searching module is used for mounting the cache subarea and searching the upgrade package;
and the module upgrading module is used for upgrading the wireless module according to the searched upgrading packet.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110323795.XA 2021-03-26 2021-03-26 Method and device for upgrading wireless module, computer equipment and storage medium Pending CN113190244A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110323795.XA CN113190244A (en) 2021-03-26 2021-03-26 Method and device for upgrading wireless module, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110323795.XA CN113190244A (en) 2021-03-26 2021-03-26 Method and device for upgrading wireless module, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113190244A true CN113190244A (en) 2021-07-30

Family

ID=76973999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110323795.XA Pending CN113190244A (en) 2021-03-26 2021-03-26 Method and device for upgrading wireless module, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113190244A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448795A (en) * 2022-01-18 2022-05-06 深圳市联洲国际技术有限公司 Wireless module upgrading method, routing board, wireless communication system and processor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728116A (en) * 2004-07-26 2006-02-01 义隆电子股份有限公司 System of burning program applicable to USB interface in peripheral equipment of computer
CN101937349A (en) * 2010-08-28 2011-01-05 中兴通讯股份有限公司 Wireless communication terminal and software upgrading method thereof
CN104750527A (en) * 2015-03-27 2015-07-01 广州快飞计算机科技有限公司 Embedded system upgrading method and system
CN112423281A (en) * 2020-10-30 2021-02-26 深圳市广和通无线股份有限公司 Wireless module upgrading method and device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728116A (en) * 2004-07-26 2006-02-01 义隆电子股份有限公司 System of burning program applicable to USB interface in peripheral equipment of computer
CN101937349A (en) * 2010-08-28 2011-01-05 中兴通讯股份有限公司 Wireless communication terminal and software upgrading method thereof
CN104750527A (en) * 2015-03-27 2015-07-01 广州快飞计算机科技有限公司 Embedded system upgrading method and system
CN112423281A (en) * 2020-10-30 2021-02-26 深圳市广和通无线股份有限公司 Wireless module upgrading method and device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448795A (en) * 2022-01-18 2022-05-06 深圳市联洲国际技术有限公司 Wireless module upgrading method, routing board, wireless communication system and processor

Similar Documents

Publication Publication Date Title
JP5113700B2 (en) Firmware update apparatus and method
CN110597542B (en) Software automatic OTA (over the air) upgrading method and device and electronic equipment
US20110004871A1 (en) Embedded electronic device and firmware updating method thereof
US20230393840A1 (en) File update method and apparatus, device and storage medium
CN106775610B (en) Electronic equipment starting method and electronic equipment
CN107643898A (en) Terminal staging method and device
EP3113018A1 (en) Method and apparatus for running version file
CN106843947B (en) Method and device for processing code defects
CN105867962A (en) System upgrading method and device
CN114443081A (en) Terminal upgrading method and terminal
CN110580167A (en) system upgrading method, intelligent device and server
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
CN105677409A (en) System upgrading method and device
CN112882746B (en) Application program updating method and device, storage medium and computer equipment
CN109189480B (en) File system starting method and device
CN113190244A (en) Method and device for upgrading wireless module, computer equipment and storage medium
CN113032183A (en) System management method, device, computer equipment and storage medium
CN112860291B (en) Firmware upgrading method and device
CN106933604B (en) System upgrading method and device
CN107436783B (en) Differential upgrading method for mobile terminal, storage medium and mobile terminal
CN115951920A (en) Mobile equipment upgrading method and device, storage unit and mobile equipment
CN105701162B (en) Management method for user data partition of intelligent terminal and intelligent terminal
CN114296764A (en) System upgrading method and device, storage medium and electronic equipment
CN113778485A (en) System operation method and device of electronic chip, electronic chip and storage medium
CN117270914B (en) System upgrading method, device, equipment and medium of terminal equipment

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