Firmware upgrading system of mobile routing equipment

By designing a system for firmware management, downloading and upgrading servers in Mi Fi devices, the version branch inheritance and timeliness requirements in firmware upgrade tasks are solved, and efficient and timely upgrade and version matching of the device firmware is achieved, and networking failures are avoided.

CN118897686APending Publication Date: 2024-11-05BEIJING SHUMI NETWORK TECH CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410995509.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The firmware upgrade task of Mi Fi devices cannot be simply replaced due to the version branch inheritance relationship between the new and old versions. The old version needs to be downloaded and installed in time after the new version is released, otherwise it may lead to network failures, and the firmware upgrade system of existing conventional devices cannot meet the requirements. These specific requirements.

Method used

A system is designed including a firmware management server, a firmware download server and a firmware upgrade server. It ensures the legality and integrity of firmware downloads through blacklist verification, token comparison and summary verification, and logs into the network every time on the mobile routing device. When performing firmware version query and upgrade processing, set parent version parameters to customize the version inheritance relationship.

Benefits of technology

Improve the timeliness and version matching of device firmware upgrades, ensure that different firmware versions can match different upgrade versions, and avoid network failures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897686A_ABST
    Figure CN118897686A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to a firmware upgrading system for mobile routing devices. The system comprises a firmware management server, a firmware downloading server, a firmware upgrading server and a plurality of mobile routing devices. According to the method and the device, the timeliness of upgrading the firmware of the equipment can be improved, and different upgrading versions can be matched for different firmware versions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a firmware upgrade system for a mobile routing device. Background Art

[0002] The similarities between mobile routing (Mobile WiFi, Mi Fi) devices and conventional WiFi routing devices (referred to as conventional devices) are that they can both provide wireless hotspots and LAN routing services for access devices; the difference is that most conventional devices connect to the Internet by accessing broadband lines / network cables, while Mi Fi devices connect to the Internet by logging into the mobile communication network through built-in identity recognition modules (such as SIM modules, eSIM modules, vSIM modules, etc.).

[0003] The firmware upgrade management method for conventional devices is: after the remote server generates a new version of the firmware, it will be placed on the download server. Each conventional device will periodically query the download server to confirm whether a new version has been generated. If a new version is confirmed to exist, the new version of the firmware will be downloaded and installed according to the automatic / manual upgrade mode set locally. There is no necessary version branch inheritance relationship between the new and old versions of the firmware of conventional devices, so when upgrading, you only need to download the new version to replace the old version; even if the old version of the firmware of conventional devices is not upgraded for a long time, it will not cause the device to be unusable, so there will be no frequent queries to the download server, and the new version of the firmware will not be downloaded when the new version is confirmed to exist.

[0004] The firmware of Mi Fi devices consists of two parts: a conventional firmware part similar to conventional devices, and a SIM firmware part related to the built-in identity module. Among them, the difference between the SIM firmware part and the conventional firmware part is that: 1) there is a branch inheritance relationship between the new and old versions, and the old version cannot be simply replaced with the latest version. For example, the latest version of the firmware is the firmware related to mobile communication network A. This version of the firmware can only be used to upgrade Mi F i devices using mobile communication network A, and cannot be used to upgrade Mi Fi devices using mobile communication network B; 2) Once the new version of the firmware is released, each Mi Fi device needs to download and install it in time, otherwise it may cause the device to have a network failure later. That is to say, compared with conventional devices, the firmware upgrade task of Mi Fi devices will have additional specific requirements for the matching of firmware versions and the timeliness of firmware upgrades. In this case, if the firmware upgrade system of conventional devices is simply applied to handle the firmware upgrade task of Mi Fi devices, these two additional requirements cannot be met. Therefore, it is necessary to customize a new firmware upgrade system for the firmware upgrade task of Mi Fi devices, which is also the technical problem that the present invention needs to solve. Summary of the invention

[0005] The purpose of the present invention is to provide a firmware upgrade system for a mobile routing device in view of the defects of the prior art, the system comprising: a firmware management server, a firmware download server, a firmware upgrade server and a plurality of mobile routing devices; wherein the firmware management server is used to publish a new version of the firmware package to the firmware download server and synchronize the firmware version of the management server; the firmware download server is used to store firmware files and allocate a download interface and a download token for each firmware file, and is also used to first use blacklist verification + legal device verification to shield illegal requests when receiving a firmware download application sent by a mobile routing device, then extract the firmware based on token comparison, then perform a digest check on the extracted firmware file, and then push the firmware file to the mobile routing device after the check passes; the firmware upgrade server is used to feedback the new / old version corresponding to the current device and the new version download address / digest / token to the mobile routing device when receiving an upgrade query application from the mobile routing device, and is also used to receive an upgrade progress application sent by the mobile routing device based on the device upgrade progress information in the current application The device upgrade list on the server side is updated, and is also used to continuously count and display the device upgrade information of the day based on the device upgrade list; each mobile routing device is used to obtain a corresponding Internet IP address from the mobile communication network side of the current login each time the network is successfully logged in to update the local device address information, and the corresponding upgrade query application composed of the device address / identification / version information stored locally on the device is sent to the firmware upgrade server, and when the query application receipt sent back by the firmware upgrade server is not an abnormal prompt information, an upgrade progress application for indicating the start download status is sent to the firmware upgrade server, and a firmware download application is sent to the firmware download server, and after receiving the firmware file sent by the firmware download server, it is verified, and after the verification is successful, an upgrade progress application for indicating the download completion status is sent to the firmware upgrade server, and the firmware upgrade is installed based on the firmware file downloaded this time, and when the firmware upgrade installation is completed, an upgrade progress application for indicating the upgrade completion status is sent to the firmware upgrade server. The present invention performs a firmware version query each time the mobile routing device logs on to the network, and immediately starts the download upgrade process after a new version of the firmware is found, and customizes the corresponding version inheritance relationship for each new version by setting the parent version parameter. The present invention can not only improve the timeliness of device firmware upgrades, but also match different upgrade versions for different firmware versions.

[0006] To achieve the above-mentioned purpose, an embodiment of the present invention provides a firmware upgrade system for a mobile routing device, the system comprising: a firmware management server, a firmware download server, a firmware upgrade server and a plurality of mobile routing devices;

[0007] The firmware management server is connected to the firmware download server and the firmware upgrade server respectively by accessing the local area network or the wide area network; each of the mobile routing devices is connected to the firmware download server and the firmware upgrade server respectively by accessing the wide area network by logging into the mobile communication network;

[0008] The firmware management server is used to receive a new version firmware package input by a manager as a corresponding first version firmware package; extract the corresponding first new version number, first parent version number set, first firmware file and first digital summary from the first version firmware package; and send a first firmware release instruction carrying the first new version number, the first firmware file and the first digital summary to the firmware download server; and receive the first instruction feedback data sent back by the firmware download server; and extract the corresponding first version download address and first download token from the first instruction feedback data; and update the first version information list preset locally on the management server according to the first new version number, the first parent version number set, the first digital summary, the first version download address, and the first version token to obtain the corresponding first update record; and send the first data synchronization instruction carrying the first update record to the firmware upgrade server;

[0009] The firmware download server is used to extract the corresponding first new version number, the first firmware file and the first digital summary from the first firmware release instruction when receiving the first firmware release instruction sent by the firmware management server; and store the first firmware file to obtain the corresponding first storage address; and allocate a download service interface address to the first storage address as the corresponding first version download address, and continuously listen for download applications on the first version download address allocated at that time; and perform a token generation process based on a preset token generation mechanism to obtain the corresponding first download token; and update the first download information list preset locally on the download server based on the first new version number, the first digital summary, the first version download address, the first download token and the first storage address; and send the first instruction feedback data carrying the first version download address and the first download token back to the firmware management server;

[0010] The firmware download server is further configured to use the current first version download address as the corresponding current download address each time a first firmware download application sent by the mobile routing device is intercepted at each first version download address, and extract the corresponding first application address, first device identifier and first device token from the first firmware download application intercepted by the current download address; and identify whether the first application address belongs to the blacklist according to a first blacklist address list preset locally on the download server to obtain a corresponding first identification result; and when the first identification result is that it does not belong to the blacklist, identify whether the first device identifier is a legitimate device according to the first device list preset locally on the download server. Identify and obtain a corresponding second identification result; and when the second identification result is a legal device, extract the firmware file and the digital summary according to the first device token, the current download address and the first download information list to obtain the corresponding second firmware file and the second digital summary; and verify the second firmware file according to the second digital summary to obtain the corresponding first verification result; and when the first verification result is a successful verification, send back a first download application receipt carrying the second firmware file to the first application address; the first identification result includes belonging to the blacklist and not belonging to the blacklist; the second identification result includes a legal device and an illegal device; the first verification result includes a successful verification and a failed verification;

[0011] The firmware upgrade server is used to extract the corresponding first update record from the first data synchronization instruction when receiving the first data synchronization instruction sent by the firmware management server; and update the second version information list preset locally on the upgrade server according to the first update record;

[0012] The firmware upgrade server is further configured to, upon receiving a first upgrade query application sent by any of the mobile routing devices, extract the corresponding second application address, the second device identifier and the first device version from the first upgrade query application; and perform an upgrade version query according to the first device version and the second version information list to obtain a corresponding upgrade version information record; and identify whether the upgrade version information record is empty; if so, set the corresponding first query application receipt as a preset prompt information of no upgrade version; if not, use the upgrade version information record as the corresponding first query application receipt; and send the first query application receipt back to the second application address;

[0013] The firmware upgrade server is further configured to extract the corresponding third application address, third device identifier, first device old version, first device new version and first device upgrade progress from the first upgrade progress application upon receiving the first upgrade progress application sent by any of the mobile routing devices; and update the first device upgrade list preset locally on the upgrade server based on the third device identifier, the first device old version, the first device new version and the first device upgrade progress; the first device upgrade progress includes download start, download completion and upgrade completion;

[0014] The firmware upgrade server is further used to regularly collect statistics and display the device upgrade information of the day according to the first device upgrade list at a preset refresh frequency;

[0015] Each of the mobile routing devices is used to obtain a corresponding Internet IP address as the corresponding current address from the mobile communication network side logged in at that time each time the mobile communication network is successfully logged in through the built-in identity recognition module; and based on the current address, the device address information stored locally in the device is updated; and after the update is successful, the device address information, device identification information and device version information stored locally in the device are extracted as the corresponding second application address, the second device identification and the first device version to form the corresponding first upgrade query application and send it to the firmware upgrade server; and receive the first query application receipt sent back by the firmware upgrade server; and when the first query application receipt is not the prompt information of the no upgrade version, based on the first query application receipt and the device identification information, the progress application indicating the start download status is encapsulated to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server; and based on the first query application receipt and the The device identification information is used to encapsulate the firmware download application to obtain the corresponding first firmware download application and send it to the firmware download server; and the first download application receipt sent back by the firmware download server is received, and the corresponding second firmware file is extracted from the first download application receipt; and the second firmware file is subjected to firmware verification according to the first query application receipt to obtain the corresponding second verification result; and when the second verification result is verification success, the progress application indicating the download completion status is encapsulated based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server; and the firmware upgrade is installed based on the second firmware file; and when the firmware upgrade installation is completed, the progress application indicating the upgrade completion status is encapsulated based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server; the second verification result includes verification success and verification failure.

[0016] Preferably, the first version firmware package includes the first new version number, the first parent version number set, the first firmware file and the first digital summary; the first new version number is the unique version number of the current firmware; the first parent version number set includes one or more first parent version numbers, and the first new version number has a version inheritance relationship with each of the first parent version numbers; the first firmware file is the installation file of the current firmware; the first digital summary is the digital summary information obtained by performing digital summary calculation on the first firmware file based on the MD5 digital summary algorithm;

[0017] The first version information list includes multiple first version information records; the first version information record includes a first record identification field, a first version field, a first parent version field, a first download address field, a first summary field and a first token field; when the first first version information record is added to the first version information list, the corresponding first record identification field is automatically set to 1, and the first record identification field of each first version information record added after the first first version information record is automatically set to the sum of the first record identification field of the previous first version information record plus 1;

[0018] The first download information list includes a plurality of first download information records; the first download information record includes a second version field, a second summary field, a second download address field, a second token field and a first storage address field;

[0019] When the first blacklist address list is not empty, it consists of one or more first blacklist addresses;

[0020] The first device list includes a plurality of first legal device identifiers; the first legal device identifiers correspond one to one with the mobile routing devices;

[0021] The second version information list includes multiple second version information records; the second version information record includes a second record identification field, a third version field, a second parent version field, a third download address field, a third summary field and a third token field; when the first second version information record is added to the second version information list, the corresponding second record identification field is automatically set to 1, and the second record identification field of each second version information record added after the first second version information record is automatically set to the sum of the second record identification field of the previous second version information record plus 1;

[0022] The first device upgrade list includes multiple first device upgrade records; the first device upgrade record includes a first device identification field, a first old version field, a first new version field, a first upgrade progress field, a first upgrade start time field and a first upgrade end time field.

[0023] Preferably, the firmware management server is specifically configured to, when the first version information list preset locally on the management server is updated according to the first new version number, the first parent version number set, the first digital summary, the first version download address, and the first version token to obtain a corresponding first update record, use the first version information record in which the first version field in the first version information list matches the first new version number as the corresponding current matching record;

[0024] and identifying whether the current matching record is empty;

[0025] If the current matching record is empty, then add a first version information record in the first version information list as the corresponding current added record; and set the first version field, the first parent version field, the first download address field, the first summary field and the first token field of the current added record to the corresponding first new version number, the first parent version number set, the first version download address, the first digital summary and the first version token;

[0026] If the current matching record is not empty, then the first version field, the first parent version field, the first download address field, the first summary field and the first token field of the current matching record are updated to the corresponding first new version number, the first parent version number set, the first version download address, the first digital summary and the first version token;

[0027] The first version field, the first parent version field, the first download address field, the first summary field and the first token field of the current matching record that have been set or updated are extracted to form the corresponding first update record.

[0028] Preferably, the firmware download server is specifically used to, when updating the first download information list locally preset on the download server based on the first new version number, the first digital summary, the first version download address, the first download token and the first storage address, add a new first download information record in the first download information list as the corresponding current newly added record; and set the second version field, the second summary field, the second download address field, the second token field and the first storage address field of the current newly added record to the corresponding first new version number, the first digital summary, the first version download address, the first download token and the first storage address.

[0029] Preferably, the firmware download server is specifically used to confirm whether there is a first blacklist address matching the first application address in the first blacklist address list when obtaining a corresponding first identification result by identifying whether the first application address belongs to the blacklist according to a first blacklist address list preset locally on the download server; if it is confirmed to exist, setting the corresponding first identification result as belonging to the blacklist; if it is confirmed not to exist, setting the corresponding first identification result as not belonging to the blacklist.

[0030] Preferably, the firmware download server is specifically used to confirm whether there is the first legal device identifier matching the first device identifier in the first device list when obtaining the corresponding second identification result by identifying whether the first device identifier is a legal device according to the first device list locally preset by the download server; if it is confirmed to exist, setting the corresponding second identification result as a legal device; if it is confirmed not to exist, setting the corresponding second identification result as an illegal device.

[0031] Preferably, the firmware download server is specifically used to, when the firmware file and digital summary are extracted according to the first device token, the current download address and the first download information list to obtain the corresponding second firmware file and second digital summary, use the first download information record in the first download information list in which the second token field matches the first device token and the second download address field matches the current download address as the corresponding current record; and extract the second summary field and the first storage address field of the current record as the corresponding current digital summary and current storage address; and extract the first firmware file stored at the current storage address as the corresponding current firmware file; and use the current firmware file and the current digital summary as the corresponding second firmware file and the second digital summary.

[0032] Preferably, the firmware download server is specifically used to, when the second firmware file is verified according to the second digital summary to obtain the corresponding first verification result, perform digital summary calculation on the second firmware file based on the MD5 digital summary algorithm to obtain a current digital summary; and identify whether the current digital summary matches the second digital summary; if they match, set the corresponding first verification result to successful verification; if they do not match, set the corresponding first verification result to failed verification.

[0033] Preferably, the firmware upgrade server is specifically used to extract the first version field, the first parent version field, the first download address field, the first summary field and the first token field in the first update record as the corresponding current version number, the current parent version number set, the current download address, the current digital summary and the current token when updating the second version information list preset locally on the upgrade server according to the first update record;

[0034] and taking the second version information record whose third version field in the second version information list matches the current version number as the corresponding current matching record;

[0035] and identifying whether the current matching record is empty;

[0036] If the current matching record is empty, then add a second version information record in the second version information list as the corresponding current added record; and set the third version field, the second parent version field, the third download address field, the third summary field and the third token field of the current added record to the corresponding current version number, the current parent version number set, the current download address, the current digital summary and the current token;

[0037] If the current matching record is not empty, the third version field, the second parent version field, the third download address field, the third summary field and the third token field of the current matching record are updated to the corresponding current version number, the current parent version number set, the current download address, the current digital summary and the current token.

[0038] Preferably, the firmware upgrade server is specifically configured to record the second version information record matching the first device version in the third version field in the second version information list as the corresponding first matching record when performing an upgrade version query according to the first device version and the second version information list to obtain a corresponding upgrade version information record;

[0039] and identifying whether the first matching record is empty;

[0040] If the first matching record is empty, then the corresponding upgrade version information record is set to be empty;

[0041] If the first matching record is not empty, the second version information record in the second parent version field in the second version information list that contains a parent version number that matches the first device version is recorded as the corresponding second matching record; and whether the number of the second matching records is unique is identified. If it is unique, the unique second matching record is used as the corresponding current matching record; if it is not unique, the second matching record with the largest second record identification field is used as the corresponding current matching record; and the third version field, the third download address field, the third summary field and the third token field of the current matching record are extracted as the corresponding new version number, new version download address, new version summary and new version token; and the first device version is used as the corresponding old version number; and the obtained new version number, the old version number, the new version download address, the new version summary and the new version token constitute the corresponding upgraded version information record.

[0042] Preferably, the firmware upgrade server is specifically used to identify the upgrade progress of the first device when the first device upgrade list locally preset on the upgrade server is updated based on the third device identifier, the old version of the first device, the new version of the first device and the upgrade progress of the first device;

[0043] If the upgrade progress of the first device is to start downloading, then a new first device upgrade record is added to the first device upgrade list as the corresponding current record; and the first device identification field, the first old version field, the first new version field and the first upgrade progress field of the current record are set to the corresponding third device identification, the first device old version, the first device new version and the first device upgrade progress; and the first upgrade start time field of the current record is set to the current server time; and the first upgrade end time field of the current record is set to empty;

[0044] If the upgrade progress of the first device is download completion, the first device identification field, the first old version field and the first new version field in the first device upgrade list are matched with the corresponding third device identification, the first device old version and the first device new version, and the first upgrade progress field is to start downloading and the first upgrade end time field is empty, and the first device upgrade record is used as the corresponding current record; and the first upgrade progress field of the current record is updated to the corresponding first device upgrade progress;

[0045] If the upgrade progress of the first device is completed, the first device identification field, the first old version field and the first new version field in the first device upgrade list are matched with the corresponding third device identification, the first device old version and the first device new version, and the first device upgrade record whose first upgrade progress field is download complete and the first upgrade end time field is empty is taken as the corresponding current record; and the first upgrade progress field of the current record is updated to the corresponding first device upgrade progress; and the first upgrade end time field of the current record is set to the current server time.

[0046] Preferably, the firmware upgrade server is specifically configured to periodically use the current server time as the corresponding refresh time at the refresh frequency when counting and displaying the device upgrade information of the day according to the first device upgrade list at the preset refresh frequency;

[0047] and extracting the year, month and day information of the current refresh time as the corresponding current day information;

[0048] and extracting all first device upgrade records in the first device upgrade list whose year, month, and day information of the first upgrade start time field matches the current day information to form a corresponding current day upgrade record list;

[0049] and clustering the first device upgrade records in the current day upgrade record list based on the first new version field, clustering the first device upgrade records with the same first new version field into a column to form a corresponding first category record subset;

[0050] and counting the total number of the first device upgrade records of each of the first record subsets to obtain the corresponding total number of the first record;

[0051] and using the first new version field corresponding to each of the first record subsets and the total number of the first record as the corresponding first upgrade version number and the first upgrade device number to form a corresponding first upgrade information;

[0052] And a corresponding daily upgrade list is formed by all the first-category upgrade information obtained;

[0053] And calculate the sum of all the obtained total numbers of the first category records and use the calculation result as the total number of devices upgraded on the corresponding day;

[0054] The upgrade list for the day and the total number of devices upgraded on the day are dynamically displayed.

[0055] Preferably, the mobile routing device is specifically used for extracting the corresponding new version number, the old version number and the new version download address from the first query application receipt when the progress application indicating the start download status is encapsulated based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and sending it to the firmware upgrade server; and using the new version download address as a corresponding third application address, using the device identification information as a corresponding third device identification, using the old version number as a corresponding old version of the first device, and using the new version number as a corresponding new version of the first device, and setting a corresponding first device upgrade progress as start download; and using the third application address, the third device identification, the old version of the first device, the new version of the first device and the first device upgrade progress obtained this time to form a corresponding first upgrade progress application and send it to the firmware upgrade server;

[0056] The mobile routing device is specifically configured to extract the corresponding new version number, the old version number and the new version download address from the first query application receipt when the first upgrade progress application is packaged based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server; and use the new version download address as a corresponding third application address, the device identification information as a corresponding third device identification, the old version number as a corresponding old version of the first device, and the new version number as a corresponding new version of the first device, and set a corresponding first device upgrade progress as download completion; and use the third application address, the third device identification, the old version of the first device, the new version of the first device and the first device upgrade progress obtained this time to form a corresponding first upgrade progress application and send it to the firmware upgrade server;

[0057] The mobile routing device is specifically configured to extract the corresponding new version number, the old version number and the new version download address from the first query application receipt when the first query application receipt and the device identification information are encapsulated to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server; and use the new version download address as a corresponding third application address, the device identification information as a corresponding third device identification, the old version number as a corresponding old version of the first device, and the new version number as a corresponding new version of the first device, and set a corresponding first device upgrade progress as upgrade completion; and use the third application address, the third device identification, the old version of the first device, the new version of the first device and the first device upgrade progress obtained this time to form a corresponding first upgrade progress application and send it to the firmware upgrade server.

[0058] Preferably, the mobile routing device is specifically used to extract the corresponding new version download address and the new version token from the first query application receipt when the corresponding first firmware download application is packaged based on the first query application receipt and the device identification information and sent to the firmware download server; and use the new version download address as the corresponding first application address, the device identification information as the corresponding first device identification, and the new version token as the corresponding first device token; and use the first application address, the first device identification and the first device token obtained this time to form a corresponding first firmware download application and send it to the firmware download server.

[0059] Preferably, the mobile routing device is specifically used for, when the second firmware file is subjected to firmware verification according to the first query application receipt to obtain a corresponding second verification result, extracting the corresponding new version digest from the first query application receipt as the corresponding first digest; and performing digital digest calculation on the second firmware file based on the MD5 digital digest algorithm to obtain a second digest; and identifying whether the first and second digests match; if they match, setting the corresponding second verification result to verification success; if they do not match, setting the corresponding second verification result to verification failure.

[0060] The embodiment of the present invention provides a firmware upgrade system for a mobile routing device, the system comprising: a firmware management server, a firmware download server, a firmware upgrade server and a plurality of mobile routing devices; wherein the firmware management server is used to publish a new version firmware package to the firmware download server and synchronize the firmware version of the management server; the firmware download server is used to store firmware files and allocate a download interface and a download token to each firmware file, and is also used to first use blacklist verification + legal device verification to shield illegal requests when receiving a firmware download application sent by a mobile routing device, then extract firmware based on token comparison, then perform a summary check on the extracted firmware file, and then push the firmware file to the mobile routing device after the check passes; the firmware upgrade server is used to feedback the new / old version corresponding to the current device and the new version download address / summary / token to the mobile routing device when receiving an upgrade query application from the mobile routing device, and is also used to perform a server-side upgrade query based on the device upgrade progress information in the current application when receiving an upgrade progress application sent by the mobile routing device. The device upgrade list is updated and is also used to continuously count and display the device upgrade information of the day based on the device upgrade list; each mobile routing device is used to obtain a corresponding Internet IP address from the mobile communication network side of the current login each time the network is successfully logged in to update the local device address information, and the corresponding upgrade query application composed of the device address / identification / version information stored locally on the device is sent to the firmware upgrade server, and when the query application receipt sent back by the firmware upgrade server is not an abnormal prompt information, an upgrade progress application for indicating the start download status is sent to the firmware upgrade server, and a firmware download application is sent to the firmware download server, and after receiving the firmware file sent by the firmware download server, it is verified, and after the verification is successful, an upgrade progress application for indicating the download completion status is sent to the firmware upgrade server, and the firmware upgrade is installed based on the firmware file downloaded this time, and when the firmware upgrade installation is completed, an upgrade progress application for indicating the upgrade completion status is sent to the firmware upgrade server. The embodiment of the present invention performs a firmware version query each time the mobile routing device logs on to the network, and immediately starts the download upgrade process after a new version of the firmware is found, and customizes the corresponding version inheritance relationship for each new version by setting the parent version parameter. The embodiment of the present invention not only improves the timeliness of the device firmware upgrade, but also can match different upgrade versions for different firmware versions. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] Figure 1 A schematic diagram of modules of a firmware upgrade system for a mobile routing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] The firmware upgrade system of the mobile routing device provided by the embodiment of the present invention is as follows Figure 1 As shown in the module diagram of a firmware upgrade system for a mobile routing device provided by an embodiment of the present invention, the system includes: a firmware management server 1, a firmware download server 2, a firmware upgrade server 3 and multiple mobile routing devices 4.

[0064] The connection relationship between the components in the system of the embodiment of the present invention is as follows: the firmware management server 1 is connected to the firmware download server 2 and the firmware upgrade server 3 respectively by accessing the local area network or the wide area network; each mobile routing device 4 is connected to the firmware download server 2 and the firmware upgrade server 3 respectively by accessing the wide area network by logging into the mobile communication network.

[0065] (I) Firmware management server 1:

[0066] The firmware management server 1 of the embodiment of the present invention may be a software / hardware module, device, equipment, terminal, server, system or platform.

[0067] The firmware management server 1 is used to receive a new version firmware package input by a management personnel as a corresponding first version firmware package; and extract the corresponding first new version number, first parent version number set, first firmware file and first digital summary from the first version firmware package; and send a first firmware release instruction carrying the first new version number, first firmware file and first digital summary to the firmware download server 2; and receive the first instruction feedback data sent back by the firmware download server 2; and extract the corresponding first version download address and first download token from the first instruction feedback data; and update the first version information list preset locally on the management server according to the first new version number, first parent version number set, first digital summary, first version download address, and first version token to obtain the corresponding first update record; and send the first data synchronization instruction carrying the first update record to the firmware upgrade server 3.

[0068] Here, the first version firmware package of an embodiment of the present invention includes a first new version number, a first parent version number set, a first firmware file and a first digital summary; wherein the first new version number is the unique version number of the current firmware; the first parent version number set includes one or more first parent version numbers, and the first new version number has a version inheritance relationship with each first parent version number; the first firmware file is the installation file of the current firmware; the first digital summary is the digital summary information obtained by performing a digital summary calculation on the first firmware file based on the MD5 digital summary algorithm; the version numbers of the embodiments of the present invention are composed of a major version, a minor version and a revised version.

[0069] The first version information list of an embodiment of the present invention includes multiple first version information records; the first version information record includes a first record identification field, a first version field, a first parent version field, a first download address field, a first summary field and a first token field; when the first first version information record is added to the first version information list, the corresponding first record identification field is automatically set to 1, and the first record identification field of each first version information record added after the first first version information record is automatically set to the sum of the first record identification field of the previous first version information record plus 1.

[0070] In a specific implementation of an embodiment of the present invention, the firmware management server 1 is specifically used to update the first version information list preset locally on the management server according to the first new version number, the first parent version number set, the first digital summary, the first version download address, and the first version token to obtain a corresponding first update record:

[0071] Step A1, taking the first version information record in the first version information list that matches the first version field with the first new version number as the corresponding current matching record;

[0072] Step A2, identifying whether the current matching record is empty;

[0073] Step A3, if the current matching record is empty, add a first version information record in the first version information list as the corresponding currently added record; and set the first version field, first parent version field, first download address field, first summary field and first token field of the currently added record to the corresponding first new version number, first parent version number set, first version download address, first digital summary and first version token;

[0074] Step A4, if the current matching record is not empty, then update the first version field, the first parent version field, the first download address field, the first summary field and the first token field of the current matching record to the corresponding first new version number, the first parent version number set, the first version download address, the first digital summary and the first version token;

[0075] Step A5, extract the first version field, the first parent version field, the first download address field, the first summary field and the first token field of the current matching record that has been set or updated to form a corresponding first update record.

[0076] (II) Firmware download server 2:

[0077] The firmware download server 2 of the embodiment of the present invention may be a software / hardware module, device, equipment, terminal, server, system or platform.

[0078] The firmware download server 2 is used to extract the corresponding first new version number, the first firmware file and the first digital summary from the first firmware release instruction when receiving the first firmware release instruction sent by the firmware management server 1; and store the first firmware file to obtain the corresponding first storage address; and assign a download service interface address to the first storage address as the corresponding first version download address, and continuously listen for download applications at the first version download address assigned at that time; and perform a token generation process based on a preset token generation mechanism to obtain the corresponding first download token; and update the first download information list preset locally on the download server based on the first new version number, the first digital summary, the first version download address, the first download token and the first storage address; and send the first instruction feedback data carrying the first version download address and the first download token back to the firmware management server 1.

[0079] Here, the token generation mechanism is a pre-set token mechanism, which can be implemented by any common token mechanism currently used, and the embodiment of the present invention does not limit this mechanism.

[0080] The first download information list includes a plurality of first download information records; the first download information record includes a second version field, a second summary field, a second download address field, a second token field and a first storage address field.

[0081] In another specific implementation of an embodiment of the present invention, the firmware download server 2 is specifically used to, when updating the first download information list locally preset on the download server based on the first new version number, the first digital summary, the first version download address, the first download token and the first storage address, add a new first download information record in the first download information list as the corresponding current newly added record; and set the second version field, the second summary field, the second download address field, the second token field and the first storage address field of the current newly added record to the corresponding first new version number, the first digital summary, the first version download address, the first download token and the first storage address.

[0082] The firmware download server 2 is also used for taking the current first version download address as the corresponding current download address each time a first firmware download application sent by a mobile routing device 4 is intercepted at each first version download address, and extracting the corresponding first application address, the first device identifier and the first device token from the first firmware download application intercepted at the current download address; and identifying whether the first application address belongs to the blacklist according to the first blacklist address list preset locally on the download server to obtain a corresponding first identification result; and when the first identification result is that it does not belong to the blacklist, identifying whether the first device identifier is a legal device according to the first device list preset locally on the download server to obtain a corresponding second identification result; and when the second identification result is a legal device, extracting the firmware file and the digital summary according to the first device token, the current download address and the first download information list to obtain the corresponding second firmware file and the second digital summary; and verifying the second firmware file according to the second digital summary to obtain the corresponding first verification result; and when the first verification result is that the verification is successful, sending the first download application receipt carrying the second firmware file back to the first application address.

[0083] Here, when the first blacklist address list is not empty, it is composed of one or more first blacklist addresses. The first device list includes multiple first legal device identifiers; the first legal device identifiers correspond one-to-one to the mobile routing device 4. The first identification result includes belonging to the blacklist and not belonging to the blacklist. The second identification result includes legal devices and illegal devices. The first verification result includes verification success and verification failure.

[0084] In another specific implementation method of the embodiment of the present invention, the firmware download server 2 is specifically used to confirm whether there is a first blacklist address matching the first application address in the first blacklist address list when obtaining a corresponding first identification result by identifying whether the first application address belongs to the blacklist according to the first blacklist address list preset locally on the download server. If it is confirmed that it exists, the corresponding first identification result is set to belong to the blacklist; if it is confirmed that it does not exist, the corresponding first identification result is set to not belong to the blacklist.

[0085] In another specific implementation method of the embodiment of the present invention, the firmware download server 2 is specifically used to confirm whether there is a first legal device identifier matching the first device identifier in the first device list when obtaining a corresponding second identification result by identifying whether the first device identifier is a legal device according to a first device list preset locally on the download server. If it is confirmed to exist, the corresponding second identification result is set as a legal device; if it is confirmed not to exist, the corresponding second identification result is set as an illegal device.

[0086] In another specific implementation method of an embodiment of the present invention, the firmware download server 2 is specifically used to extract the firmware file and digital summary according to the first device token, the current download address and the first download information list to obtain the corresponding second firmware file and the second digital summary. The first download information record in which the second token field in the first download information list matches the first device token and the second download address field matches the current download address is used as the corresponding current record; and the second summary field and the first storage address field of the current record are extracted as the corresponding current digital summary and current storage address; and the first firmware file stored at the current storage address is extracted as the corresponding current firmware file; and the current firmware file and the current digital summary are used as the corresponding second firmware file and the second digital summary.

[0087] In another specific implementation method of the embodiment of the present invention, the firmware download server 2 is specifically used to, when the second firmware file is verified according to the second digital digest to obtain the corresponding first verification result, perform digital summary calculation on the second firmware file based on the MD5 digital summary algorithm to obtain the current digital summary; and identify whether the current digital summary matches the second digital summary; if they match, set the corresponding first verification result to successful verification; if they do not match, set the corresponding first verification result to failed verification.

[0088] (III) Firmware upgrade server 3:

[0089] The firmware upgrade server 3 of the embodiment of the present invention may be a software / hardware module, device, equipment, terminal, server, system or platform.

[0090] The firmware upgrade server 3 is used to extract the corresponding first update record from the first data synchronization instruction when receiving the first data synchronization instruction sent by the firmware management server 1; and update the second version information list preset locally on the upgrade server according to the first update record.

[0091] Among them, the second version information list of the embodiment of the present invention can be regarded as a mirror table of the first version information list, so the data formats of the two are completely consistent. The second version information list includes multiple second version information records; the second version information record includes a second record identification field, a third version field, a second parent version field, a third download address field, a third summary field and a third token field; when the first second version information record is added to the second version information list, the corresponding second record identification field is automatically set to 1, and the second record identification field of each second version information record added after the first second version information record is automatically set to the sum of the second record identification field of the previous second version information record plus 1.

[0092] In another specific implementation of the embodiment of the present invention, the firmware upgrade server 3 is specifically configured to, when updating the second version information list preset locally on the upgrade server according to the first update record:

[0093] Step B1, extracting the first version field, the first parent version field, the first download address field, the first summary field and the first token field in the first update record as the corresponding current version number, the current parent version number set, the current download address, the current digital summary and the current token;

[0094] Step B2, taking the second version information record in which the third version field in the second version information list matches the current version number as the corresponding current matching record;

[0095] Step B3, identifying whether the current matching record is empty;

[0096] Step B4, if the current matching record is empty, add a second version information record in the second version information list as the corresponding current added record; and set the third version field, second parent version field, third download address field, third summary field and third token field of the current added record to the corresponding current version number, current parent version number set, current download address, current digital summary and current token;

[0097] Step B5, if the current matching record is not empty, update the third version field, second parent version field, third download address field, third summary field and third token field of the current matching record to the corresponding current version number, current parent version number set, current download address, current digital summary and current token.

[0098] The firmware upgrade server 3 is also used to extract the corresponding second application address, second device identifier and first device version from the first upgrade query application when receiving the first upgrade query application sent by any mobile routing device 4; and perform an upgrade version query according to the first device version and the second version information list to obtain the corresponding upgrade version information record; and identify whether the upgrade version information record is empty; if so, set the corresponding first query application receipt as the preset prompt information of no upgrade version; if not, use the upgrade version information record as the corresponding first query application receipt; and send the first query application receipt back to the second application address.

[0099] In another specific implementation of the embodiment of the present invention, the firmware upgrade server 3 is specifically configured to perform an upgrade version query according to the first device version and the second version information list to obtain a corresponding upgrade version information record:

[0100] Step C1, recording the second version information record that matches the first device version in the third version field in the second version information list as the corresponding first matching record;

[0101] Step C2, identifying whether the first matching record is empty;

[0102] Step C3, if the first matching record is empty, then set the corresponding upgrade version information record to empty;

[0103] Step C4, if the first matching record is not empty, then the second version information record in the second parent version field of the second version information list that has a parent version number matching the first device version is recorded as the corresponding second matching record; and whether the number of second matching records is unique is identified. If it is unique, the unique second matching record is used as the corresponding current matching record; if it is not unique, the second matching record with the largest second record identification field is used as the corresponding current matching record; and the third version field, third download address field, third summary field and third token field of the current matching record are extracted as the corresponding new version number, new version download address, new version summary and new version token; and the first device version is used as the corresponding old version number; and the corresponding upgraded version information record is composed of the obtained new version number, old version number, new version download address, new version summary and new version token.

[0104] The firmware upgrade server 3 is also used to extract the corresponding third application address, third device identifier, old version of the first device, new version of the first device and upgrade progress of the first device from the first upgrade progress application when receiving the first upgrade progress application sent by any mobile routing device 4; and update the first device upgrade list locally preset on the upgrade server based on the third device identifier, old version of the first device, new version of the first device and upgrade progress of the first device.

[0105] Here, the first device upgrade list includes multiple first device upgrade records; the first device upgrade record includes a first device identification field, a first old version field, a first new version field, a first upgrade progress field, a first upgrade start time field, and a first upgrade end time field. The first device upgrade progress includes download start, download completion, and upgrade completion.

[0106] In another specific implementation of the embodiment of the present invention, the firmware upgrade server 3 is specifically used to update the first device upgrade list preset locally on the upgrade server based on the third device identifier, the old version of the first device, the new version of the first device and the upgrade progress of the first device:

[0107] Step D1, identifying the upgrade progress of the first device;

[0108] Step D2, if the first device upgrade progress is to start downloading, then add a first device upgrade record in the first device upgrade list as the corresponding current record; and set the first device identification field, the first old version field, the first new version field and the first upgrade progress field of the current record to the corresponding third device identification, the first device old version, the first device new version and the first device upgrade progress; and set the first upgrade start time field of the current record to the current server time; and set the first upgrade end time field of the current record to empty;

[0109] Step D3, if the upgrade progress of the first device is download completed, the first device upgrade record in which the first device identification field, the first old version field and the first new version field in the first device upgrade list match the corresponding third device identification, the first device old version and the first device new version and the first upgrade progress field is start download and the first upgrade end time field is empty is taken as the corresponding current record; and the first upgrade progress field of the current record is updated to the corresponding first device upgrade progress;

[0110] Step D4, if the upgrade progress of the first device is completed, the first device upgrade record in which the first device identification field, the first old version field and the first new version field in the first device upgrade list match the corresponding third device identification, the first device old version and the first device new version and the first upgrade progress field is download complete and the first upgrade end time field is empty is taken as the corresponding current record; and the first upgrade progress field of the current record is updated to the corresponding first device upgrade progress; and the first upgrade end time field of the current record is set to the current server time.

[0111] The firmware upgrade server 3 is also used to regularly collect statistics and display the device upgrade information of the day according to the first device upgrade list at a preset refresh frequency.

[0112] Here, the refresh frequency is a preset time frequency.

[0113] In another specific implementation of the embodiment of the present invention, the firmware upgrade server 3 is specifically configured to count and display the device upgrade information of the day according to the first device upgrade list at a preset refresh frequency:

[0114] Step E1, regularly taking the current server time as the corresponding refresh time according to the refresh frequency; and extracting the year, month and day information of the current refresh time as the corresponding current day information;

[0115] Step E2, extracting the first device upgrade records whose year, month, and day information of the first upgrade start time field in the first device upgrade list matches the current day information to form a corresponding current day upgrade record list;

[0116] Step E3, clustering the first device upgrade records in the current day upgrade record list based on the first new version field, clustering the first device upgrade records with the same first new version field into a column to form a corresponding first-category record subset; and counting the total number of first device upgrade records in each first-category record subset to obtain the corresponding total number of first-category records; and using the first new version field and the total number of first-category records corresponding to each first-category record subset as the corresponding first upgrade version number and the first upgrade device number to form a corresponding first-category upgrade information; and forming a corresponding current day upgrade list with all the obtained first-category upgrade information; and summing up all the obtained total numbers of first-category records and using the calculation result as the corresponding total number of upgraded devices on the current day;

[0117] Step E4: Dynamically display the upgrade list of the day and the total number of devices upgraded on the day.

[0118] (IV) Mobile routing device 4:

[0119] The mobile routing device 4 of the embodiment of the present invention is a Mi Fi device mentioned above.

[0120] Each mobile routing device 4 is used to:

[0121] Step F1, obtaining a corresponding Internet IP address from the mobile communication network side logged in at the time as the corresponding current address; and updating the device address information stored locally on the device based on the current address;

[0122] Step F2, after the update is successful, extract the device address information, device identification information and device version information stored locally on the device as the corresponding second application address, second device identification and first device version to form a corresponding first upgrade query application and send it to the firmware upgrade server 3; and receive the first query application receipt sent back by the firmware upgrade server 3;

[0123] Here, the first query application receipt is either a prompt message of no upgrade version, or consists of a set of new version number, old version number, new version download address, new version summary and new version token;

[0124] Step F3: When the first query application receipt does not indicate that there is no upgradeable version, the progress application indicating the download start status is packaged based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server 3;

[0125] Here, in another specific implementation of the embodiment of the present invention, the mobile routing device 4 is specifically used to extract the corresponding new version number, old version number and new version download address from the first query application receipt when encapsulating the progress application indicating the start download state based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and sending it to the firmware upgrade server 3; and use the new version download address as a corresponding third application address, the device identification information as a corresponding third device identification, the old version number as a corresponding first device old version, and the new version number as a corresponding first device new version, and set a corresponding first device upgrade progress to start download; and use the third application address, the third device identification, the first device old version, the first device new version and the first device upgrade progress obtained this time to form a corresponding first upgrade progress application and send it to the firmware upgrade server 3;

[0126] Step F4, based on the first query application receipt and the device identification information, the firmware download application is packaged to obtain the corresponding first firmware download application and sent to the firmware download server 2; the first download application receipt sent back by the firmware download server 2 is received, and the corresponding second firmware file is extracted from the first download application receipt; and the second firmware file is firmware verified according to the first query application receipt to obtain the corresponding second verification result;

[0127] The second verification result includes verification success and verification failure;

[0128] Here, in another specific implementation of the embodiment of the present invention, the mobile routing device 4 is specifically used to extract the corresponding new version download address and the new version token from the first query application receipt when the corresponding first firmware download application is packaged based on the first query application receipt and the device identification information and sent to the firmware download server 2; and the new version download address is used as the corresponding first application address, the device identification information is used as the corresponding first device identification, and the new version token is used as the corresponding first device token; and the first application address, the first device identification and the first device token obtained this time form a corresponding first firmware download application and send it to the firmware download server 2;

[0129] Here, in another specific implementation of the embodiment of the present invention, the mobile routing device 4 is specifically used to extract the corresponding new version digest from the first query application receipt as the corresponding first digest when performing firmware verification on the second firmware file according to the first query application receipt to obtain the corresponding second verification result; and performing digital digest calculation on the second firmware file based on the MD5 digital digest algorithm to obtain the second digest; and identifying whether the first and second digests match; if they match, setting the corresponding second verification result to verification success; if they do not match, setting the corresponding second verification result to verification failure;

[0130] Step F5, when the second verification result is successful, based on the first query application receipt and the device identification information, the progress application indicating the download completion status is packaged to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server 3;

[0131] Here, in another specific implementation of the embodiment of the present invention, the mobile routing device 4 is specifically used to extract the corresponding new version number, old version number and new version download address from the first query application receipt when encapsulating the progress application indicating the download completion status based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and sending it to the firmware upgrade server 3; and use the new version download address as a corresponding third application address, the device identification information as a corresponding third device identification, the old version number as a corresponding first device old version, and the new version number as a corresponding first device new version, and set a corresponding first device upgrade progress as download completion; and use the third application address, the third device identification, the first device old version, the first device new version and the first device upgrade progress obtained this time to form a corresponding first upgrade progress application and send it to the firmware upgrade server 3;

[0132] Step F6, performing firmware upgrade installation based on the second firmware file;

[0133] Step F7, when the firmware upgrade installation is completed, the progress application indicating the upgrade completion status is packaged based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server 3.

[0134] Here, in another specific implementation of the embodiment of the present invention, the mobile routing device 4 is specifically used to extract the corresponding new version number, old version number and new version download address from the first query application receipt when encapsulating the progress application indicating the upgrade completion status based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and sending it to the firmware upgrade server 3; and use the new version download address as a corresponding third application address, the device identification information as a corresponding third device identification, the old version number as a corresponding first device old version, and the new version number as a corresponding first device new version, and set a corresponding first device upgrade progress to upgrade completion; and use the third application address, the third device identification, the first device old version, the first device new version and the first device upgrade progress obtained this time to form a corresponding first upgrade progress application and send it to the firmware upgrade server 3.

[0135] In summary, an embodiment of the present invention provides a firmware upgrade system for a mobile routing device. It can be seen from the above content that the system of the embodiment of the present invention includes: a firmware management server, a firmware download server, a firmware upgrade server and multiple mobile routing devices; wherein the firmware management server is used to publish the new version firmware package to the firmware download server and synchronize the firmware version of the management server; the firmware download server is used to store firmware files and allocate a download interface and download token for each firmware file, and is also used to first use blacklist verification + legal device verification to shield illegal requests when receiving a firmware download application sent by a mobile routing device, then extract the firmware based on token comparison, then perform a summary check on the extracted firmware file, and then push the firmware file to the mobile routing device after the check passes; the firmware upgrade server is used to feedback the new / old version corresponding to the current device and the new version download address / summary / token to the mobile routing device when receiving an upgrade query application from the mobile routing device, and is also used to check the device upgrade list on the server side based on the device upgrade progress information in the current application when receiving an upgrade progress application sent by the mobile routing device. The table is updated, and it is also used to continuously count and display the device upgrade information of the day based on the device upgrade list; each mobile routing device is used to obtain a corresponding Internet IP address from the mobile communication network side of the current login each time the network is successfully logged in to update the local device address information, and the corresponding upgrade query application composed of the device address / identification / version information stored locally on the device is sent to the firmware upgrade server, and when the query application receipt sent back by the firmware upgrade server is not an abnormal prompt information, an upgrade progress application for indicating the start download status is sent to the firmware upgrade server, and a firmware download application is sent to the firmware download server, and after receiving the firmware file sent by the firmware download server, it is verified, and after the verification is successful, an upgrade progress application for indicating the download completion status is sent to the firmware upgrade server, and the firmware upgrade is installed based on the firmware file downloaded this time, and when the firmware upgrade installation is completed, an upgrade progress application for indicating the upgrade completion status is sent to the firmware upgrade server. The embodiment of the present invention performs a firmware version query each time the mobile routing device logs on to the network, and immediately starts the download upgrade process after a new version of the firmware is found, and customizes the corresponding version inheritance relationship for each new version by setting the parent version parameter. The embodiment of the present invention not only improves the timeliness of the device firmware upgrade, but also can match different upgrade versions for different firmware versions.

[0136] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0137] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0138] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A firmware upgrade system for a mobile routing device, characterized in that: The system includes: a firmware management server, a firmware download server, a firmware upgrade server and a plurality of mobile routing devices; The firmware management server is connected to the firmware download server and the firmware upgrade server respectively by accessing the local area network or the wide area network; each of the mobile routing devices is connected to the firmware download server and the firmware upgrade server respectively by accessing the wide area network by logging into the mobile communication network; The firmware management server is used to receive a new version firmware package input by a manager as a corresponding first version firmware package; extract the corresponding first new version number, first parent version number set, first firmware file and first digital summary from the first version firmware package; and send a first firmware release instruction carrying the first new version number, the first firmware file and the first digital summary to the firmware download server; and receive the first instruction feedback data sent back by the firmware download server; and extract the corresponding first version download address and first download token from the first instruction feedback data; and update the first version information list preset locally on the management server according to the first new version number, the first parent version number set, the first digital summary, the first version download address, and the first version token to obtain the corresponding first update record; and send the first data synchronization instruction carrying the first update record to the firmware upgrade server; The firmware download server is used to extract the corresponding first new version number, the first firmware file and the first digital summary from the first firmware release instruction when receiving the first firmware release instruction sent by the firmware management server; and store the first firmware file to obtain the corresponding first storage address; and allocate a download service interface address to the first storage address as the corresponding first version download address, and continuously listen for download applications on the first version download address allocated at that time; and perform a token generation process based on a preset token generation mechanism to obtain the corresponding first download token; and update the first download information list preset locally on the download server based on the first new version number, the first digital summary, the first version download address, the first download token and the first storage address; and send the first instruction feedback data carrying the first version download address and the first download token back to the firmware management server; The firmware download server is further configured to use the current first version download address as the corresponding current download address each time a first firmware download application sent by the mobile routing device is intercepted at each first version download address, and extract the corresponding first application address, first device identifier and first device token from the first firmware download application intercepted by the current download address; and identify whether the first application address belongs to the blacklist according to a first blacklist address list preset locally on the download server to obtain a corresponding first identification result; and when the first identification result is that it does not belong to the blacklist, identify whether the first device identifier is a legitimate device according to the first device list preset locally on the download server. Identify and obtain a corresponding second identification result; and when the second identification result is a legal device, extract the firmware file and the digital summary according to the first device token, the current download address and the first download information list to obtain the corresponding second firmware file and the second digital summary; and verify the second firmware file according to the second digital summary to obtain the corresponding first verification result; and when the first verification result is a successful verification, send back a first download application receipt carrying the second firmware file to the first application address; the first identification result includes belonging to the blacklist and not belonging to the blacklist; the second identification result includes a legal device and an illegal device; the first verification result includes a successful verification and a failed verification; The firmware upgrade server is used to extract the corresponding first update record from the first data synchronization instruction when receiving the first data synchronization instruction sent by the firmware management server; and update the second version information list preset locally on the upgrade server according to the first update record; The firmware upgrade server is further configured to, upon receiving a first upgrade query application sent by any of the mobile routing devices, extract the corresponding second application address, the second device identifier and the first device version from the first upgrade query application; and perform an upgrade version query according to the first device version and the second version information list to obtain a corresponding upgrade version information record; and identify whether the upgrade version information record is empty; if so, set the corresponding first query application receipt as a preset prompt information of no upgrade version; if not, use the upgrade version information record as the corresponding first query application receipt; and send the first query application receipt back to the second application address; The firmware upgrade server is further configured to extract the corresponding third application address, third device identifier, first device old version, first device new version and first device upgrade progress from the first upgrade progress application upon receiving the first upgrade progress application sent by any of the mobile routing devices; and update the first device upgrade list preset locally on the upgrade server based on the third device identifier, the first device old version, the first device new version and the first device upgrade progress; the first device upgrade progress includes download start, download completion and upgrade completion; The firmware upgrade server is further used to regularly collect statistics and display the device upgrade information of the day according to the first device upgrade list at a preset refresh frequency; Each of the mobile routing devices is used to obtain a corresponding Internet IP address as the corresponding current address from the mobile communication network side logged in at that time each time the mobile communication network is successfully logged in through the built-in identity recognition module; and based on the current address, the device address information stored locally in the device is updated; and after the update is successful, the device address information, device identification information and device version information stored locally in the device are extracted as the corresponding second application address, the second device identification and the first device version to form the corresponding first upgrade query application and send it to the firmware upgrade server; and receive the first query application receipt sent back by the firmware upgrade server; and when the first query application receipt is not the prompt information of the no upgrade version, based on the first query application receipt and the device identification information, the progress application indicating the start download status is encapsulated to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server; and based on the first query application receipt and the The device identification information is used to encapsulate the firmware download application to obtain the corresponding first firmware download application and send it to the firmware download server; and the first download application receipt sent back by the firmware download server is received, and the corresponding second firmware file is extracted from the first download application receipt; and the second firmware file is subjected to firmware verification according to the first query application receipt to obtain the corresponding second verification result; and when the second verification result is verification success, the progress application indicating the download completion status is encapsulated based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server; and the firmware upgrade is installed based on the second firmware file; and when the firmware upgrade installation is completed, the progress application indicating the upgrade completion status is encapsulated based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server; the second verification result includes verification success and verification failure.

2. The firmware upgrade system for a mobile routing device according to claim 1, characterized in that: The first version firmware package includes the first new version number, the first parent version number set, the first firmware file and the first digital summary; the first new version number is the unique version number of the current firmware; the first parent version number set includes one or more first parent version numbers, and the first new version number has a version inheritance relationship with each of the first parent version numbers; the first firmware file is the installation file of the current firmware; the first digital summary is the digital summary information obtained by performing digital summary calculation on the first firmware file based on the MD5 digital summary algorithm; The first version information list includes multiple first version information records; the first version information record includes a first record identification field, a first version field, a first parent version field, a first download address field, a first summary field and a first token field; when the first first version information record is added to the first version information list, the corresponding first record identification field is automatically set to 1, and the first record identification field of each first version information record added after the first first version information record is automatically set to the sum of the first record identification field of the previous first version information record plus 1; The first download information list includes a plurality of first download information records; the first download information record includes a second version field, a second summary field, a second download address field, a second token field and a first storage address field; When the first blacklist address list is not empty, it consists of one or more first blacklist addresses; The first device list includes a plurality of first legal device identifiers; the first legal device identifiers correspond one to one with the mobile routing devices; The second version information list includes multiple second version information records; the second version information record includes a second record identification field, a third version field, a second parent version field, a third download address field, a third summary field and a third token field; when the first second version information record is added to the second version information list, the corresponding second record identification field is automatically set to 1, and the second record identification field of each second version information record added after the first second version information record is automatically set to the sum of the second record identification field of the previous second version information record plus 1; The first device upgrade list includes multiple first device upgrade records; the first device upgrade record includes a first device identification field, a first old version field, a first new version field, a first upgrade progress field, a first upgrade start time field and a first upgrade end time field.

3. The firmware upgrade system for a mobile routing device according to claim 2, characterized in that: The firmware management server is specifically configured to update the first version information list preset locally on the management server according to the first new version number, the first parent version number set, the first digital summary, the first version download address, and the first version token to obtain a corresponding first update record. taking the first version information record in the first version information list in which the first version field matches the first new version number as the corresponding current matching record; and identifying whether the current matching record is empty; If the current matching record is empty, then add a first version information record in the first version information list as the corresponding current added record; and set the first version field, the first parent version field, the first download address field, the first summary field and the first token field of the current added record to the corresponding first new version number, the first parent version number set, the first version download address, the first digital summary and the first version token; If the current matching record is not empty, then the first version field, the first parent version field, the first download address field, the first summary field and the first token field of the current matching record are updated to the corresponding first new version number, the first parent version number set, the first version download address, the first digital summary and the first version token; The first version field, the first parent version field, the first download address field, the first summary field and the first token field of the current matching record that have been set or updated are extracted to form the corresponding first update record.

4. The firmware upgrade system for a mobile routing device according to claim 2, characterized in that: The firmware download server is specifically used to, when updating the first download information list locally preset on the download server based on the first new version number, the first digital summary, the first version download address, the first download token and the first storage address, add a new first download information record in the first download information list as the corresponding current newly added record; and set the second version field, the second summary field, the second download address field, the second token field and the first storage address field of the current newly added record to the corresponding first new version number, the first digital summary, the first version download address, the first download token and the first storage address.

5. The firmware upgrade system for a mobile routing device according to claim 2, characterized in that: The firmware download server is specifically used to confirm whether there is a first blacklist address matching the first application address in the first blacklist address list when obtaining a corresponding first identification result by identifying whether the first application address belongs to the blacklist according to the first blacklist address list preset locally on the download server. If it is confirmed to exist, the corresponding first identification result is set to belong to the blacklist; if it is confirmed not to exist, the corresponding first identification result is set to not belong to the blacklist.

6. The firmware upgrade system for a mobile routing device according to claim 2, characterized in that: The firmware download server is specifically used to confirm whether there is the first legal device identifier matching the first device identifier in the first device list when obtaining a corresponding second identification result by identifying whether the first device identifier is a legal device according to the first device list preset locally on the download server; if it is confirmed to exist, setting the corresponding second identification result as a legal device; if it is confirmed not to exist, setting the corresponding second identification result as an illegal device.

7. The firmware upgrade system for a mobile routing device according to claim 2, characterized in that: The firmware download server is specifically used for, when extracting the firmware file and the digital summary according to the first device token, the current download address and the first download information list to obtain the corresponding second firmware file and the second digital summary, taking the first download information record in the first download information list whose second token field matches the first device token and whose second download address field matches the current download address as the corresponding current record; and extracting the second summary field and the first storage address field of the current record as the corresponding current digital summary and the current storage address; and extracting the first firmware file stored at the current storage address as the corresponding current firmware file; The current firmware file and the current digital digest are used as the corresponding second firmware file and the second digital digest.

8. The firmware upgrade system for a mobile routing device according to claim 2, characterized in that: The firmware download server is specifically used to, when the second firmware file is verified according to the second digital summary to obtain a corresponding first verification result, perform digital summary calculation on the second firmware file based on the MD5 digital summary algorithm to obtain a current digital summary; and identify whether the current digital summary matches the second digital summary; if they match, set the corresponding first verification result to verification success; if they do not match, set the corresponding first verification result to verification failure.

9. The firmware upgrade system for a mobile routing device according to claim 3, characterized in that: The firmware upgrade server is specifically configured to, when updating the second version information list preset locally on the upgrade server according to the first update record, Extracting the first version field, the first parent version field, the first download address field, the first summary field, and the first token field in the first update record as the corresponding current version number, current parent version number set, current download address, current digital summary, and current token; and taking the second version information record whose third version field in the second version information list matches the current version number as the corresponding current matching record; and identifying whether the current matching record is empty; If the current matching record is empty, then add a second version information record in the second version information list as the corresponding current added record; and set the third version field, the second parent version field, the third download address field, the third summary field and the third token field of the current added record to the corresponding current version number, the current parent version number set, the current download address, the current digital summary and the current token; If the current matching record is not empty, the third version field, the second parent version field, the third download address field, the third summary field and the third token field of the current matching record are updated to the corresponding current version number, the current parent version number set, the current download address, the current digital summary and the current token.

10. The firmware upgrade system for a mobile routing device according to claim 2, characterized in that: The firmware upgrade server is specifically configured to, when performing an upgrade version query according to the first device version and the second version information list to obtain a corresponding upgrade version information record, Recording the second version information record that matches the first device version in the third version field in the second version information list as a corresponding first matching record; and identifying whether the first matching record is empty; If the first matching record is empty, then the corresponding upgrade version information record is set to be empty; If the first matching record is not empty, the second version information record in the second parent version field of the second version information list that contains the parent version number matching the first device version is recorded as the corresponding second matching record; and whether the number of the second matching records is unique is identified. If it is unique, the unique second matching record is used as the corresponding current matching record; if it is not unique, the second matching record with the largest second record identification field is used as the corresponding current matching record; and the third version field, the third download address field, the third summary field and the third token field of the current matching record are extracted as the corresponding new version number, new version download address, new version summary and new version token; And use the first device version as the corresponding old version number; and the corresponding upgraded version information record is composed of the obtained new version number, the old version number, the new version download address, the new version summary and the new version token.

11. The firmware upgrade system for a mobile routing device according to claim 2, characterized in that: The firmware upgrade server is specifically configured to update the first device upgrade list locally preset on the upgrade server based on the third device identifier, the old version of the first device, the new version of the first device and the upgrade progress of the first device, Identifying the upgrade progress of the first device; If the upgrade progress of the first device is to start downloading, then a new first device upgrade record is added to the first device upgrade list as the corresponding current record; and the first device identification field, the first old version field, the first new version field and the first upgrade progress field of the current record are set to the corresponding third device identification, the first device old version, the first device new version and the first device upgrade progress; and the first upgrade start time field of the current record is set to the current server time; and setting the first upgrade end time field of the current record to empty; If the upgrade progress of the first device is download completion, the first device identification field, the first old version field and the first new version field in the first device upgrade list are matched with the corresponding third device identification, the first device old version and the first device new version, and the first upgrade progress field is to start downloading and the first upgrade end time field is empty, and the first device upgrade record is used as the corresponding current record; and the first upgrade progress field of the current record is updated to the corresponding first device upgrade progress; If the upgrade progress of the first device is completed, the first device identification field, the first old version field and the first new version field in the first device upgrade list are matched with the corresponding third device identification, the first device old version and the first device new version, and the first device upgrade record whose first upgrade progress field is download complete and the first upgrade end time field is empty is taken as the corresponding current record; and the first upgrade progress field of the current record is updated to the corresponding first device upgrade progress; and the first upgrade end time field of the current record is set to the current server time.

12. The firmware upgrade system for a mobile routing device according to claim 2, characterized in that: The firmware upgrade server is specifically configured to collect and display the device upgrade information of the day according to the first device upgrade list at a preset refresh frequency. Regularly using the current server time as the corresponding refresh time according to the refresh frequency; and extracting the year, month and day information of the current refresh time as the corresponding current day information; and extracting all first device upgrade records in the first device upgrade list whose year, month, and day information of the first upgrade start time field matches the current day information to form a corresponding current day upgrade record list; and clustering the first device upgrade records in the current day upgrade record list based on the first new version field, clustering the first device upgrade records with the same first new version field into a column to form a corresponding first category record subset; and counting the total number of the first device upgrade records of each of the first record subsets to obtain the corresponding total number of the first record; and using the first new version field corresponding to each of the first record subsets and the total number of the first record as the corresponding first upgrade version number and the first upgrade device number to form a corresponding first upgrade information; And a corresponding daily upgrade list is formed by all the first-category upgrade information obtained; And calculate the sum of all the obtained total numbers of the first category records and use the calculation result as the total number of devices upgraded on the corresponding day; The upgrade list for the day and the total number of devices upgraded on the day are dynamically displayed.

13. The firmware upgrade system for a mobile routing device according to claim 10, characterized in that: The mobile routing device is specifically configured to extract the corresponding new version number, the old version number and the new version download address from the first query application receipt when the first query application receipt and the device identification information are encapsulated to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server; and use the new version download address as a corresponding third application address, the device identification information as a corresponding third device identification, the old version number as a corresponding old version of the first device, and the new version number as a corresponding new version of the first device, and set a corresponding first device upgrade progress as start download; and use the third application address, the third device identification, the old version of the first device, the new version of the first device and the first device upgrade progress obtained this time to form a corresponding first upgrade progress application and send it to the firmware upgrade server; The mobile routing device is specifically configured to extract the corresponding new version number, the old version number and the new version download address from the first query application receipt when the progress application indicating the download completion status is encapsulated based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server; and use the new version download address as a corresponding third application address, the device identification information as a corresponding third device identification, the old version number as a corresponding old version of the first device, and the new version number as a corresponding new version of the first device, and set a corresponding first device upgrade progress as download completion; The third application address, the third device identifier, the old version of the first device, the new version of the first device and the upgrade progress of the first device obtained this time are used to form a corresponding first upgrade progress application and send it to the firmware upgrade server; The mobile routing device is specifically configured to extract the corresponding new version number, the old version number and the new version download address from the first query application receipt when the progress application indicating the upgrade completion status is encapsulated based on the first query application receipt and the device identification information to obtain a corresponding first upgrade progress application and send it to the firmware upgrade server; and use the new version download address as a corresponding third application address, the device identification information as a corresponding third device identification, the old version number as a corresponding old version of the first device, and the new version number as a corresponding new version of the first device, and set a corresponding first device upgrade progress as upgrade completion; The third application address, the third device identifier, the old version of the first device, the new version of the first device and the upgrade progress of the first device obtained this time form a corresponding first upgrade progress application and send it to the firmware upgrade server.

14. The firmware upgrade system for a mobile routing device according to claim 10, characterized in that: The mobile routing device is specifically configured to extract the corresponding new version download address and the new version token from the first query application receipt when the first firmware download application is packaged based on the first query application receipt and the device identification information to obtain the corresponding first firmware download application and send it to the firmware download server; and use the new version download address as the corresponding first application address, the device identification information as the corresponding first device identification, and the new version token as the corresponding first device token; The first application address, the first device identifier and the first device token obtained this time form a corresponding first firmware download application and send it to the firmware download server.

15. The firmware upgrade system for a mobile routing device according to claim 10, characterized in that: The mobile routing device is specifically configured to extract the corresponding new version digest from the first query application receipt as the corresponding first digest when the firmware verification is performed on the second firmware file according to the first query application receipt to obtain a corresponding second verification result; and performing digital digest calculation on the second firmware file based on the MD5 digital digest algorithm to obtain a second digest; and identifying whether the first and second digests match; If they match, the corresponding second verification result is set to verification success; if they do not match, the corresponding second verification result is set to verification failure.