A firmware upgrade method, device, network side equipment, terminal and communication equipment
By determining the service node and audit node in the network side device, calculating differentiated firmware and sending it to the terminal for firmware upgrade, the problem of long firmware upgrade time is solved, and a faster and more reliable firmware upgrade process is achieved.
Patent Information
- Application Number
- CN202211657102.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-22
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-12-22
AI Technical Summary
In the prior art, firmware upgrades take a long time. As the number of firmware updates increases, the size of the firmware to be upgraded increases, resulting in an extended upgrade time for smart terminals.
By determining the service node and audit node in the network side device, receiving the firmware information of the terminal to be upgraded, and obtaining the latest firmware blocks from the blockchain, calculating differentiated firmware, and sending only differentiated firmware for upgrade, avoiding the complete firmware download.
Reduce the firmware size that needs to be downloaded, improve the firmware upgrade speed, reduce the probability of upgrade failure, and improve the success rate of firmware upgrade.
Smart Images

Figure CN116909593B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a firmware upgrade method, device, network side equipment, terminal and communication equipment. Background Art
[0002] With the development of Internet of Things technology, smart terminals are widely used in various fields of life. Smart terminals may need to be optimized and fixed when in use, and firmware upgrades are required at this time. However, in related technologies, as the number of firmware updates increases, the firmware to be upgraded becomes larger and larger, resulting in smart terminals taking a long time to upgrade their firmware.
[0003] It can be seen that there is a problem in the related art that firmware upgrade takes a long time. Summary of the invention
[0004] The embodiments of the present invention provide a firmware upgrade method, device, network side equipment, terminal and communication equipment to solve the problem that firmware upgrade consumes a long time in the related art.
[0005] To solve the above problems, the present invention is achieved as follows:
[0006] In a first aspect, an embodiment of the present invention provides a firmware upgrade method, which is applied to a network side device, comprising:
[0007] Sending a firmware update notification to the terminal to be upgraded, wherein the firmware update notification is used to prompt the terminal to be upgraded to perform a firmware upgrade;
[0008] Determine a service node and an audit node, where the service node and the audit node are nodes among N nodes of the network side device, where N is a positive integer greater than 1;
[0009] Receiving, through the service node, first firmware information sent by the terminal to be upgraded, where the first firmware information includes a current firmware version number and a device model of the terminal to be upgraded, and the first firmware information is information sent by the terminal to be upgraded to the first network-side device after receiving the firmware update notification;
[0010] Obtaining a second firmware through the service node and the audit node respectively, where the second firmware is the latest firmware in a preset blockchain, and the blockchain is used to store the second firmware;
[0011] Determining, by the service node, differentiated firmware according to the second firmware and the first firmware corresponding to the first firmware information, where the differentiated firmware is firmware having differences between the first firmware and the second firmware;
[0012] Determining whether the differentiated firmware meets an upgrade condition according to the second firmware through the audit node and the service node;
[0013] In the case that the differentiated firmware meets the upgrade condition, the differentiated firmware is sent to the terminal to be upgraded through the service node, and the differentiated firmware is used to enable the terminal to be upgraded to perform firmware upgrade according to the differentiated firmware.
[0014] In a second aspect, an embodiment of the present invention provides a firmware upgrade method, applied to a terminal, comprising:
[0015] Upon receiving a firmware update notification sent by a network-side device, sending first firmware information to the network-side device, the first firmware information including a current firmware version number and a device model of the terminal, the first firmware information being used to confirm whether the terminal meets a firmware upgrade condition;
[0016] When the terminal meets the firmware upgrade condition, receiving differentiated firmware sent by the network side device, the differentiated firmware is determined by the network side device according to the latest second firmware stored in the blockchain and the firmware corresponding to the first firmware information, and there is a difference between the second firmware and the first firmware;
[0017] The firmware is upgraded according to the differentiated firmware.
[0018] In a third aspect, an embodiment of the present invention further provides a network side device, including:
[0019] A first sending module, used to send a firmware update notification to the terminal to be upgraded, wherein the firmware update notification is used to prompt the terminal to be upgraded to perform a firmware upgrade;
[0020] A first determination module is used to determine a service node and an audit node, where the service node and the audit node are nodes among N nodes of the network side device, where N is a positive integer greater than 1;
[0021] A first receiving module, configured to receive, through the service node, first firmware information sent by the terminal to be upgraded, wherein the first firmware information includes a current firmware version number and a device model of the terminal to be upgraded, and the first firmware information is information sent by the terminal to be upgraded to the first network side device after receiving the firmware update notification;
[0022] An acquisition module, used to acquire the second firmware through the service node and the audit node respectively, where the second firmware is the latest firmware in a preset blockchain, and the blockchain is used to store the second firmware;
[0023] A second determining module, configured to determine, through the service node, differentiated firmware according to the second firmware and the first firmware corresponding to the first firmware information, where the differentiated firmware is firmware having differences between the first firmware and the second firmware;
[0024] A third determination module, configured to determine whether the differentiated firmware meets an upgrade condition according to the second firmware through the audit node and the service node;
[0025] The second sending module is used to send the differentiated firmware to the terminal to be upgraded through the service node when the differentiated firmware meets the upgrade condition, and the differentiated firmware is used to enable the terminal to be upgraded to perform firmware upgrade according to the differentiated firmware.
[0026] In a fourth aspect, an embodiment of the present invention further provides a terminal, including:
[0027] A first sending module, configured to send first firmware information to the network side device upon receiving a firmware update notification sent by the network side device, wherein the first firmware information includes a current firmware version number and a device model of the terminal, and the first firmware information is used to confirm whether the terminal meets a firmware upgrade condition;
[0028] A first receiving module, configured to receive differentiated firmware sent by the network side device when the terminal meets the firmware upgrade condition, wherein the differentiated firmware is determined by the network side device according to the latest second firmware stored in the blockchain and the firmware corresponding to the first firmware information, and there is a difference between the second firmware and the first firmware;
[0029] A processing module is used to perform firmware upgrade according to the differentiated firmware.
[0030] In a fifth aspect, an embodiment of the present invention further provides a network side device, including:
[0031] The transceiver is used to send a firmware update notification to the terminal to be upgraded, wherein the firmware update notification is used to prompt the terminal to be upgraded to perform a firmware upgrade;
[0032] The processor is used to determine a service node and an audit node, where the service node and the audit node are nodes among N nodes of the network side device, where N is a positive integer greater than 1;
[0033] The transceiver is further configured to receive, through the service node, first firmware information sent by the terminal to be upgraded, wherein the first firmware information includes a current firmware version number and a device model of the terminal to be upgraded, and the first firmware information is information sent by the terminal to be upgraded to the first network side device after receiving the firmware update notification;
[0034] The transceiver is further used to obtain the second firmware through the service node and the audit node respectively, where the second firmware is the latest firmware in a preset blockchain, and the blockchain is used to store the second firmware;
[0035] The processor is further configured to determine, through the service node, differentiated firmware according to the second firmware and the first firmware corresponding to the first firmware information, where the differentiated firmware is firmware in which there is a difference between the first firmware and the second firmware;
[0036] The processor is further configured to determine whether the differentiated firmware meets an upgrade condition according to the second firmware through the audit node and the service node;
[0037] The transceiver is further configured to send the differentiated firmware to the terminal to be upgraded through the service node when the differentiated firmware meets an upgrade condition, and the differentiated firmware is configured to enable the terminal to be upgraded to perform a firmware upgrade according to the differentiated firmware.
[0038] In a sixth aspect, an embodiment of the present invention further provides a terminal, including:
[0039] The transceiver is used to send first firmware information to the network side device when receiving a firmware update notification sent by the network side device, wherein the first firmware information includes the current firmware version number and device model of the terminal, and the first firmware information is used to confirm whether the terminal meets the firmware upgrade condition;
[0040] The transceiver is further configured to receive differentiated firmware sent by the network side device when the terminal meets the firmware upgrade condition, wherein the differentiated firmware is determined by the network side device according to the latest second firmware stored in the blockchain and the firmware corresponding to the first firmware information, and there is a difference between the second firmware and the first firmware;
[0041] The processor is used to perform firmware upgrade according to the differentiated firmware.
[0042] In the seventh aspect, an embodiment of the present invention also provides a communication device, comprising: a transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; the processor is used to read the program in the memory to implement the steps of the firmware upgrade method described in the first aspect above, or to implement the steps of the firmware upgrade method described in the second aspect above.
[0043] In an eighth aspect, an embodiment of the present invention further provides a readable storage medium for storing a program, wherein when the program is executed by a processor, the program implements the steps in the firmware upgrade method described in the first aspect above, or implements the steps in the firmware upgrade method described in the second aspect above.
[0044] In an embodiment of the present invention, by determining a service node and an audit node, the first firmware information sent by the terminal to be upgraded is received through the service node; the second firmware is obtained through the service node and the audit node respectively; the differentiated firmware is determined through the service node according to the second firmware and the first firmware corresponding to the first firmware information; the differentiated firmware is determined through the audit node and the service node according to the second firmware whether it meets the upgrade conditions; if the differentiated firmware meets the upgrade conditions, the differentiated firmware is sent to the terminal to be upgraded through the service node, and the differentiated firmware is used to enable the terminal to be upgraded to perform firmware upgrade according to the differentiated firmware. The second firmware is obtained through the service node, and the differentiated firmware is determined according to the second firmware and the first firmware, so that the terminal can be upgraded according to the differentiated firmware without receiving the complete second firmware, which can reduce the size of the firmware to be downloaded, thereby improving the firmware upgrade speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0046] Figure 1 is a flowchart of a firmware upgrade method applied to a network side device provided by an embodiment of the present invention;
[0047] Figure 2 is a flow chart of determining a service node and an audit node provided by an embodiment of the present invention;
[0048] Figure 3 is a flowchart of a firmware upgrade method applied to a terminal provided by an embodiment of the present invention;
[0049] Figure 4 is a structural diagram of a network side device provided by an embodiment of the present invention;
[0050] Figure 5 is a structural diagram of a network side device provided by an embodiment of the present invention;
[0051] Figure 6 is a structural diagram of a terminal provided by an embodiment of the present invention;
[0052] Figure 7 It is a structural diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of 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.
[0054] See also Figure 1 , Figure 1 is a flowchart of a firmware upgrade method provided by an embodiment of the present invention, which is applied to a network side device, such as Figure 1 As shown, the following steps are included:
[0055] Step 101: Send a firmware update notification to a terminal to be upgraded, wherein the firmware update notification is used to prompt the terminal to be upgraded to perform a firmware upgrade.
[0056] The above firmware update notification is a pre-configured notification used to prompt the terminal to upgrade its firmware. After receiving the firmware update notification, the terminal to be upgraded determines whether it needs to be updated based on the firmware of the terminal to be upgraded. For example, the firmware upgrade notification includes the upgraded firmware version, and the terminal to be upgraded determines whether the terminal to be upgraded needs to upgrade its firmware based on the local firmware version and the firmware version included in the firmware upgrade notification.
[0057] The network side equipment may be a base station, an access and mobility management function (AMF), a relay, an access point or other network elements.
[0058] Step 102: Determine a service node and an audit node, where the service node and the audit node are nodes among N nodes of the network side device, where N is a positive integer greater than 1.
[0059] The above-mentioned service node and audit node are two nodes in the network side device, wherein the service node is used to send the firmware to be upgraded to the terminal to be upgraded, and the audit node is used to determine whether the terminal to be upgraded meets the upgrade conditions during the firmware upgrade process, whether the firmware sent by the service node is the terminal required by the terminal to be upgraded, and whether the terminal to be upgraded has completed the firmware upgrade.
[0060] It should be understood that the service node is a node, and the terminal to be upgraded downloads the firmware through the service node for upgrading, which ensures the stability of the download.
[0061] It should be understood that the audit node can be one node or multiple nodes. The audit is performed through one or more audit nodes. The more audit nodes there are, the lower the probability of errors occurring during the firmware upgrade process. Auditing through multiple audit nodes improves the success rate of the firmware upgrade.
[0062] Step 103: Receive first firmware information sent by the terminal to be upgraded through the service node, where the first firmware information includes the current firmware version number and device model of the terminal to be upgraded, and the first firmware information is information sent by the terminal to be upgraded to the first network side device after receiving the firmware update notification.
[0063] The first firmware information is information about the current firmware of the terminal to be upgraded, and the first firmware information includes the current firmware version number and device model of the terminal to be upgraded. The information about the current firmware version number and device model of the terminal to be upgraded and the version number and the adapted device model of the firmware of the network side device is used to determine whether the terminal to be upgraded needs to perform a firmware upgrade. For example, if the firmware version number of the network side device is a new version number relative to the first firmware, and the firmware of the network side device is adapted to the device model of the terminal to be upgraded, the terminal to be upgraded can be upgraded according to the firmware of the network side device.
[0064] Step 104: Obtain a second firmware through the service node and the audit node respectively, where the second firmware is the latest firmware in a preset blockchain, and the blockchain is used to store the second firmware.
[0065] The second firmware is the latest firmware stored in the blockchain. The second firmware is obtained through the service node, and then communicated with the terminal to be upgraded to perform firmware upgrade, so that the terminal to be upgraded can obtain the firmware for upgrading from a service node.
[0066] The blockchain stores the second firmware, and the second firmware is obtained from the blockchain through the service node, thereby avoiding the situation where the second firmware is stored in the service node and the service node is hijacked, resulting in a firmware upgrade failure.
[0067] Step 105: Determine, by the service node, differentiated firmware according to the second firmware and the first firmware corresponding to the first firmware information, where the differentiated firmware is firmware with differences between the first firmware and the second firmware.
[0068] The above-mentioned differentiated firmware is a terminal used for firmware upgrade of the terminal to be upgraded. The firmware with differences is determined through the second firmware and the first firmware, and the part of the firmware is sent to the terminal to be upgraded for firmware upgrade. There is no need to send the complete second firmware to the terminal to be upgraded, so that the terminal to be upgraded only needs to download a smaller differentiated firmware to complete the firmware upgrade.
[0069] For example, the first firmware includes A, B, and C, and the second firmware includes A, D, and E. The firmwares that are different from the second firmware and the first firmware are D and E. At this time, D and E are set as differentiated firmware so that the terminal to be upgraded can complete the firmware upgrade according to the differentiated firmware.
[0070] Step 106: Determine whether the differentiated firmware meets an upgrade condition based on the second firmware through the audit node and the service node.
[0071] It should be understood that if the second firmware is determined only through the service node, and an error occurs in the calculation process of the service node, resulting in a differentiated firmware error, the terminal to be upgraded cannot complete the firmware upgrade. In this embodiment, the audit node and the service node are used to determine whether the differentiated firmware meets the upgrade conditions according to the second firmware. When both the audit node and the service node determine that the differentiated firmware meets the upgrade conditions, the firmware upgrade is performed, which can reduce the occurrence of firmware upgrade failures and improve the success rate of the firmware upgrade.
[0072] Step 107: When the differentiated firmware meets the upgrade condition, the differentiated firmware is sent to the terminal to be upgraded through the service node, and the differentiated firmware is used to enable the terminal to be upgraded to perform firmware upgrade according to the differentiated firmware.
[0073] In an embodiment of the present invention, by determining a service node and an audit node, the first firmware information sent by the terminal to be upgraded is received through the service node; the second firmware is obtained through the service node and the audit node respectively; the differentiated firmware is determined through the service node according to the second firmware and the first firmware corresponding to the first firmware information; the differentiated firmware is determined through the audit node and the service node according to the second firmware whether it meets the upgrade conditions; if the differentiated firmware meets the upgrade conditions, the differentiated firmware is sent to the terminal to be upgraded through the service node, and the differentiated firmware is used to enable the terminal to be upgraded to perform firmware upgrade according to the differentiated firmware. The second firmware is obtained through the service node, and the differentiated firmware is determined according to the second firmware and the first firmware, so that the terminal can be upgraded according to the differentiated firmware without receiving the complete second firmware, which can reduce the size of the firmware to be downloaded, thereby improving the firmware upgrade speed.
[0074] In one embodiment, determining whether the differentiated firmware meets the upgrade condition according to the second firmware by the audit node and the service node includes:
[0075] Determining, by the service node, first feature description information according to the second firmware and the first firmware, where the first feature description information is used to characterize content information of the differentiated firmware;
[0076] Determining second feature description information according to the second firmware and the first firmware through the audit node, where the second feature description information is used to characterize content information of the differentiated firmware;
[0077] In a case where the first feature description information matches the second feature description information, determining that the differentiated firmware meets an upgrade condition;
[0078] When the first feature description information and the second feature description information do not match, it is determined that the differentiated firmware does not meet the upgrade condition.
[0079] The first feature description information is determined by the service node and is used to characterize the differentiated firmware content. The second feature description information is determined by the service node and is used to characterize the differentiated firmware content. That is, the two nodes of the network side device respectively calculate and determine whether the differentiated firmware is the differentiated firmware of the second firmware and the first firmware, thereby improving the accuracy of the differentiated firmware content and reducing the occurrence of firmware upgrades caused by errors in the differentiated firmware content.
[0080] Furthermore, the audit node may be multiple nodes. In this case, multiple nodes of the network side device respectively calculate and determine whether the differentiated firmware is the differentiated firmware of the second firmware and the first firmware, which further improves the accuracy of the differentiated firmware content.
[0081] In an embodiment of the present invention, the first feature description information is determined by a service node based on the second firmware and the first firmware, the second feature description information is determined by an audit node based on the second firmware and the first firmware, and whether the first feature description information and the second feature description information match is determined. If the first feature description information and the second feature description information match, it is determined that the differentiated firmware meets the upgrade condition; if the first feature description information and the second feature description information do not match, it is determined that the differentiated firmware does not meet the upgrade condition, thereby improving the accuracy of the differentiated firmware content and reducing the occurrence of firmware upgrades caused by errors in the differentiated firmware content.
[0082] In one embodiment, after sending the differentiated firmware to the terminal to be upgraded through the service node, the method further includes:
[0083] Sending the first feature description information to the terminal to be upgraded;
[0084] receiving third feature description information, where the third feature description information is information sent by the terminal to be upgraded after receiving the first feature description information, and the third feature description information is used to characterize content information of the differentiated firmware received by the terminal to be upgraded;
[0085] In a case where the third feature description information matches the second feature description information, sending first feedback information to the terminal to be upgraded, where the first feedback information is used to instruct the terminal to be upgraded based on the differentiated firmware upgrade;
[0086] In a case where the third feature description information does not match the second feature description information, second feedback information is sent to the terminal to be upgraded, where the second feedback information is used to instruct the terminal to be upgraded not to upgrade.
[0087] The third feature description information is sent by the terminal, and the feature description information received by the terminal is used to confirm whether the terminal has received feature description information sent by other illegal nodes. It should be understood that the terminal may receive feature description information sent by other illegal nodes and then perform firmware upgrade. At this time, the terminal is not compatible with the differentiated firmware, and there is a situation where the firmware upgrade fails. By receiving the third feature description information, it is determined whether the terminal meets the upgrade conditions based on the third feature description information and the second feature description information.
[0088] Wherein, when the third feature description information matches the second feature description information, first feedback information for indicating that the terminal to be upgraded is upgraded based on differentiated firmware is sent to the terminal to be upgraded;
[0089] When the third feature description information does not match the second feature description information, second feedback information for instructing the terminal to be upgraded not to upgrade is sent to the terminal to be upgraded.
[0090] In an embodiment of the present invention, by receiving third feature description information sent by the terminal to be upgraded, determining whether the terminal meets the upgrade conditions based on the third feature description information and the second feature description information, and when the third feature description information matches the second feature description information, sending first feedback information to the terminal to be upgraded for indicating that the terminal to be upgraded is based on differentiated firmware upgrade; when the third feature description information does not match the second feature description information, sending second feedback information to the terminal to be upgraded for indicating that the terminal to be upgraded is not to be upgraded, thereby determining whether the differentiated firmware received by the terminal to be upgraded meets the upgrade conditions, thereby reducing the probability of upgrade failure caused by the differentiated firmware not meeting the firmware upgrade conditions during direct upgrade.
[0091] In one embodiment, Figure 2 As shown, the determining of the service node and the audit node includes:
[0092] Sequentially numbering the N nodes in the network side device to obtain a number for each of the N nodes;
[0093] Obtain a first random number and a second random number of each node, where the first random number is an integer from 0 to 2N, and the second random number is an integer from 0 to 2N;
[0094] Taking the sum of the first random numbers of each node modulo N to obtain a first target value; taking the sum of the second random numbers of each node modulo N to obtain a second target value;
[0095] The node whose corresponding number is the same as the first target value is set as the service node, and the node whose corresponding number is the same as the second target value is set as the review node.
[0096] It should be understood that fixedly selecting a certain node as a service node or audit node will cause the firmware upgrade to fail when the service node or audit node is abnormal, resulting in lower security of the network side device. However, security can be effectively improved by randomly determining the service node and audit node.
[0097] The first random number and the second random number are random numbers randomly obtained by each node, and the range of the random number is a positive integer from 0 to 2N. The sum of the first random number or the second random number corresponding to each node is a value ranging from 0 to 2N. 2 , and then take the modulus of N to obtain the first target value or the second target value in the range of 0 to N-1, so that the first target value or the second target value can correspond to the number of each node, thereby determining the service node and the audit node.
[0098] Exemplarily, the network side device includes 5 nodes numbered 0, 1, 2, 3, and 4 in sequence, and the sum of the first random numbers corresponding to each node is 10, and the sum of the second random numbers corresponding to each node is 17. The sum of the first random numbers is modulo the number of nodes, and the first target value is 2; the sum of the second random numbers is modulo the number of nodes, and the second target value is 3. The node numbered 2 is set as a service node, and the node numbered 3 is set as an audit node.
[0099] Furthermore, if multiple audit nodes need to be determined, a random number from 0 to 2N is generated by each node, and the sum of the random numbers is modulo N to obtain a third target value, and then the node corresponding to the third target value is set as the audit node.
[0100] In an embodiment of the present invention, the number of each node in the N nodes is obtained by sequentially numbering N nodes in a network side device; a first random number and a second random number of each node are obtained, wherein the first random number is an integer from 0 to 2N, and the second random number is an integer from 0 to 2N; the sum of the first random number of each node is modulo N to obtain a first target value; the sum of the second random number of each node is modulo N to obtain a second target value; a node whose corresponding number is the same as the first target value is set as a service node, and a node whose corresponding number is the same as the second target value is set as an audit node, thereby randomly determining two different nodes from the N nodes of the network side device as a service node and an audit node, respectively, avoiding fixed selection of a certain node as a service node or an audit node, and improving security.
[0101] In one embodiment, the method further comprises:
[0102] receiving a third firmware and firmware characteristic information corresponding to the third firmware, wherein the third firmware is used to characterize the latest uploaded firmware, and the firmware characteristic information is used to characterize content information of the third firmware;
[0103] In the case where the third firmware is new firmware relative to the second firmware, the third firmware and the firmware feature information are saved in the blockchain through the service node.
[0104] It should be understood that before the firmware of the network side device needs to be upgraded to the terminal, the firmware content stored in the network side device needs to be updated. In the case of receiving the latest uploaded firmware, it is necessary to determine the content of the firmware, whether the firmware is the latest firmware, and the device model that the firmware is adapted to.
[0105] The above firmware characteristic information is used to characterize the content information of the third firmware, including the content of the third firmware, the version number of the third firmware and the version adapted by the third firmware. When the network side device receives the third firmware, it checks whether the version number of the third firmware is the latest version number. Wherein, when the third firmware is a new firmware relative to the second firmware, the third firmware and the firmware characteristic information are saved to the blockchain through the service node.
[0106] The above blockchain includes multiple blocks, each of which is used to record a firmware and firmware feature information, such as the latest version number of the firmware, the device model to which the firmware belongs, etc. It can also record the status of whether the terminal is upgraded, the service node number, etc. It should be understood that by saving the firmware and firmware feature information through the blockchain, the risk of information loss is reduced and the firmware security of the network-side device is improved.
[0107] In the embodiment of the present invention, by receiving the third firmware and the firmware feature information corresponding to the third firmware, when the third firmware is new firmware relative to the second firmware, the third firmware and the firmware feature information are saved to the blockchain through the service node, so that the network side device updates the firmware for terminal upgrade. Among them, using the blockchain to record the firmware and firmware feature information reduces the risk of information loss and improves the firmware security of the network side device.
[0108] See also Figure 3 , Figure 3 is a flowchart of a firmware upgrade method provided by an embodiment of the present invention, which is applied to a terminal, such as Figure 3 As shown, the following steps are included:
[0109] Step 301: upon receiving a firmware update notification sent by a network side device, send first firmware information to the network side device, wherein the first firmware information includes the current firmware version number and device model of the terminal, and the first firmware information is used to confirm whether the terminal meets the firmware upgrade conditions.
[0110] Step 302: When the terminal meets the firmware upgrade conditions, receive the differentiated firmware sent by the network side device, where the differentiated firmware is determined by the network side device based on the latest second firmware stored in the blockchain and the firmware corresponding to the first firmware information, and there is a difference between the second firmware and the first firmware.
[0111] Step 303: Perform firmware upgrade according to the differentiated firmware.
[0112] In an embodiment of the present invention, when the terminal receives a firmware update notification sent by a network side device, the terminal sends the first firmware information to the network side device, and when the terminal meets the firmware upgrade conditions, receives the differentiated firmware sent by the network side device, wherein the differentiated firmware is determined by the network side device based on the latest second firmware and the firmware corresponding to the first firmware information stored in the blockchain, and there is a difference between the second firmware and the first firmware, thereby reducing the firmware size required for the firmware upgrade, thereby improving the rate of firmware upgrade.
[0113] In one embodiment, after receiving the differentiated firmware sent by the network side device, the method further includes:
[0114] Receiving first feature description information sent by the network side device, where the first feature description information is used to characterize content information of the differentiated firmware;
[0115] Sending third feature description information to the network side device, where the third feature description information is used to characterize the content of the first feature description information received by the terminal;
[0116] The performing firmware upgrade according to the differentiated firmware includes:
[0117] In the case of receiving the first feedback information, performing a firmware upgrade according to the differentiated firmware, the first feedback information being used to represent information sent by the network side device to the terminal to instruct the terminal to upgrade when the second feature description information determined by the audit node of the network side device according to the second firmware and the first firmware is the same as the third feature description information;
[0118] When the second feedback information is received, the firmware upgrade is not performed. The second feedback information is used to represent that when the second feature description information determined by the audit node of the network side device is different from the third feature description information, the network side device sends information to the terminal instructing the terminal not to upgrade.
[0119] See also Figure 4 , Figure 4 is a structural diagram of a network side device provided by an embodiment of the present invention, such as Figure 4 As shown, the network side device 400 includes:
[0120] The first sending module 401 is used to send a firmware update notification to the terminal to be upgraded, wherein the firmware update notification is used to prompt the terminal to be upgraded to perform a firmware upgrade;
[0121] A first determination module 402 is used to determine a service node and an audit node, where the service node and the audit node are nodes among N nodes of the network side device, where N is a positive integer greater than 1;
[0122] A first receiving module 403 is configured to receive, through the service node, first firmware information sent by the terminal to be upgraded, where the first firmware information includes a current firmware version number and a device model of the terminal to be upgraded, and the first firmware information is information sent by the terminal to be upgraded to the first network side device after receiving the firmware update notification;
[0123] An acquisition module 404 is used to acquire a second firmware through the service node and the audit node respectively, where the second firmware is the latest firmware in a preset blockchain, and the blockchain is used to store the second firmware;
[0124] A second determining module 405 is configured to determine, through the service node, differentiated firmware according to the second firmware and the first firmware corresponding to the first firmware information, where the differentiated firmware is firmware with differences between the first firmware and the second firmware;
[0125] A third determination module 406, configured to determine whether the differentiated firmware meets an upgrade condition according to the second firmware through the audit node and the service node;
[0126] The second sending module 407 is used to send the differentiated firmware to the terminal to be upgraded through the service node when the differentiated firmware meets the upgrade condition, and the differentiated firmware is used to enable the terminal to be upgraded to perform firmware upgrade according to the differentiated firmware.
[0127] Optionally, the third determining module 406 includes:
[0128] A first determining unit, configured to determine, through the service node, first feature description information according to the second firmware and the first firmware, where the first feature description information is used to characterize content information of the differentiated firmware;
[0129] a second determining unit, configured to determine second feature description information according to the second firmware and the first firmware through the audit node, wherein the second feature description information is used to characterize content information of the differentiated firmware;
[0130] a third determining unit, configured to determine that the differentiated firmware meets an upgrade condition when the first feature description information matches the second feature description information;
[0131] The fourth determining unit is configured to determine that the differentiated firmware does not meet an upgrade condition when the first feature description information and the second feature description information do not match.
[0132] Optionally, after the second sending module 407, the network side device 400 further includes:
[0133] A third sending module, configured to send the first feature description information to the terminal to be upgraded;
[0134] A second receiving module is used to receive third feature description information, where the third feature description information is information sent by the terminal to be upgraded after receiving the first feature description information, and the third feature description information is used to characterize content information of the differentiated firmware received by the terminal to be upgraded;
[0135] a fourth sending module, configured to send first feedback information to the terminal to be upgraded if the third feature description information matches the second feature description information, wherein the first feedback information is used to instruct the terminal to be upgraded based on the differentiated firmware upgrade;
[0136] The fifth sending module is used to send second feedback information to the terminal to be upgraded when the third feature description information does not match the second feature description information, wherein the second feedback information is used to instruct the terminal to be upgraded not to upgrade.
[0137] Optionally, the first determining module 402 includes:
[0138] A fifth determining unit, configured to sequentially number the N nodes in the network side device to obtain a number for each of the N nodes;
[0139] a sixth determining unit, configured to obtain a first random number and a second random number of each node, wherein the first random number is an integer from 0 to 2N, and the second random number is an integer from 0 to 2N;
[0140] A seventh determination unit is used to obtain a first target value by taking the sum of the first random numbers of each node modulo N; and obtain a second target value by taking the sum of the second random numbers of each node modulo N;
[0141] An eighth determination unit is used to set a node whose corresponding number is the same as the first target value as the service node, and set a node whose corresponding number is the same as the second target value as the review node.
[0142] Optionally, the network side device 400 further includes:
[0143] A third receiving module, used to receive a third firmware and firmware characteristic information corresponding to the third firmware, wherein the third firmware is used to represent the latest uploaded firmware, and the firmware characteristic information is used to represent content information of the third firmware;
[0144] A saving module is used to save the third firmware and the firmware feature information to the blockchain through the service node when the third firmware is new firmware relative to the second firmware.
[0145] The network side device provided in the embodiment of the present invention is capable of implementing each process of each embodiment of the above-mentioned firmware upgrade method applied to the network side device. The technical features correspond one to one and can achieve the same technical effect. To avoid repetition, they will not be described here.
[0146] It should be noted that the network side device in the embodiment of the present invention may be a device, or a component, an integrated circuit, or a chip in an electronic device.
[0147] For details, see Figure 5 The embodiment of the present invention also provides a schematic diagram of the structure of a network side device, including a bus 501, a transceiver 502, an antenna 503, a bus interface 504, a processor 505 and a memory 506.
[0148] The transceiver 502 is used to send a firmware update notification to the terminal to be upgraded, and the firmware update notification is used to prompt the terminal to be upgraded to perform a firmware upgrade;
[0149] The processor 505 is used to determine a service node and an audit node, where the service node and the audit node are nodes among N nodes of the network side device, where N is a positive integer greater than 1;
[0150] The transceiver 502 is further configured to receive, through the service node, first firmware information sent by the terminal to be upgraded, wherein the first firmware information includes a current firmware version number and a device model of the terminal to be upgraded, and the first firmware information is information sent by the terminal to be upgraded to the first network side device after receiving the firmware update notification;
[0151] The transceiver 502 is further used to obtain the second firmware through the service node and the audit node respectively, where the second firmware is the latest firmware in the preset blockchain, and the blockchain is used to store the second firmware;
[0152] The processor 505 is further configured to determine, through the service node, differentiated firmware according to the second firmware and the first firmware corresponding to the first firmware information, where the differentiated firmware is firmware in which there is a difference between the first firmware and the second firmware;
[0153] The processor 505 is further configured to determine whether the differentiated firmware meets an upgrade condition according to the second firmware through the audit node and the service node;
[0154] The transceiver 502 is further configured to send the differentiated firmware to the terminal to be upgraded through the service node when the differentiated firmware meets the upgrade condition, and the differentiated firmware is used to enable the terminal to be upgraded to perform firmware upgrade according to the differentiated firmware.
[0155] Optionally, the processor 505 is further configured to determine, through the service node, first feature description information according to the second firmware and the first firmware, where the first feature description information is used to characterize content information of the differentiated firmware;
[0156] The processor 505 is further configured to determine second feature description information according to the second firmware and the first firmware through the audit node, where the second feature description information is used to characterize content information of the differentiated firmware;
[0157] The processor 505 is further configured to determine that the differentiated firmware meets an upgrade condition when the first feature description information matches the second feature description information;
[0158] The processor 505 is further configured to determine that the differentiated firmware does not meet an upgrade condition when the first feature description information and the second feature description information do not match.
[0159] Optionally, the transceiver 502 is further configured to send the first feature description information to the terminal to be upgraded;
[0160] The transceiver 502 is further configured to receive third feature description information, where the third feature description information is information sent by the terminal to be upgraded after receiving the first feature description information, and the third feature description information is used to characterize content information of the differentiated firmware received by the terminal to be upgraded;
[0161] The transceiver 502 is further configured to send first feedback information to the terminal to be upgraded when the third feature description information matches the second feature description information, wherein the first feedback information is used to instruct the terminal to be upgraded to upgrade based on the differentiated firmware;
[0162] The transceiver 502 is further configured to send second feedback information to the terminal to be upgraded when the third feature description information does not match the second feature description information, wherein the second feedback information is used to instruct the terminal to be upgraded not to upgrade.
[0163] Optionally, the processor 505 is further configured to sequentially number the N nodes in the network side device to obtain a number of each of the N nodes;
[0164] The transceiver 502 is further configured to obtain a first random number and a second random number of each node, wherein the first random number is an integer from 0 to 2N, and the second random number is an integer from 0 to 2N;
[0165] The transceiver 502 is further configured to obtain a first target value by taking the sum of the first random numbers of each node modulo N; and obtain a second target value by taking the sum of the second random numbers of each node modulo N.
[0166] The transceiver 502 is further configured to set a node whose corresponding number is the same as the first target value as the service node, and set a node whose corresponding number is the same as the second target value as the review node.
[0167] Optionally, the transceiver 502 is further used to receive a third firmware and firmware characteristic information corresponding to the third firmware, the third firmware is used to characterize the latest uploaded firmware, and the firmware characteristic information is used to characterize content information of the third firmware;
[0168] The processor 505 is further configured to, when the third firmware is new firmware relative to the second firmware, save the third firmware and the firmware feature information into the blockchain through the service node.
[0169] exist Figure 5 In the embodiment, the bus architecture (represented by bus 501) is shown, and bus 501 may include any number of interconnected buses and bridges, and bus 501 links various circuits including one or more processors represented by processor 505 and memory represented by memory 506. Bus 501 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 504 provides an interface between bus 501 and transceiver 502. Transceiver 502 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 505 is transmitted on a wireless medium via antenna 503, and further, antenna 503 also receives data and transmits the data to processor 505.
[0170] The processor 505 is responsible for managing the bus 501 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 506 can be used to store data used by the processor 505 when performing operations.
[0171] Optionally, the processor 505 may be a CPU, an ASIC, an FPGA or a CPLD.
[0172] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned firmware upgrade method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0173] See also Figure 6 , Figure 6 is a structural diagram of a terminal provided by an embodiment of the present invention, such as Figure 6 As shown, the terminal 600 includes:
[0174] A first sending module 601 is used to send first firmware information to the network side device when receiving a firmware update notification sent by the network side device, where the first firmware information includes the current firmware version number and device model of the terminal, and the first firmware information is used to confirm whether the terminal meets the firmware upgrade condition;
[0175] A first receiving module 602 is configured to receive differentiated firmware sent by the network side device when the terminal meets the firmware upgrade condition, where the differentiated firmware is determined by the network side device according to the latest second firmware stored in the blockchain and the firmware corresponding to the first firmware information, and there is a difference between the second firmware and the first firmware;
[0176] The processing module 603 is used to perform firmware upgrade according to the differentiated firmware.
[0177] Optionally, after the receiving module, the terminal 600 includes:
[0178] A second receiving module, configured to receive first feature description information sent by the network side device, wherein the first feature description information is used to characterize content information of the differentiated firmware;
[0179] A second sending module, used to send third feature description information to the network side device, where the third feature description information is used to characterize the content of the first feature description information received by the terminal;
[0180] The processing module 603 includes:
[0181] a first processing unit, configured to perform a firmware upgrade according to the differentiated firmware upon receiving first feedback information, wherein the first feedback information is used to represent information sent by the network side device to the terminal to instruct the terminal to upgrade when the second feature description information determined by the audit node of the network side device according to the second firmware and the first firmware is the same as the third feature description information;
[0182] The second processing unit is used to not perform firmware upgrade when receiving second feedback information, where the second feedback information is used to represent that when the second feature description information determined by the audit node of the network side device is different from the third feature description information, the network side device sends information to the terminal instructing the terminal not to upgrade.
[0183] The terminal provided in the embodiment of the present invention is capable of implementing each process of each embodiment of the above-mentioned firmware upgrade method applied to the terminal, and the technical features correspond one to one and can achieve the same technical effect. To avoid repetition, they will not be described here.
[0184] It should be noted that the terminal in the embodiment of the present invention may be a device, or a component, an integrated circuit, or a chip in an electronic device.
[0185] For details, see Figure 7 The embodiment of the present invention further provides a schematic diagram of the structure of a network side device, including a bus 701, a transceiver 702, an antenna 703, a bus interface 704, a processor 705 and a memory 706.
[0186] The transceiver 702 is used to send first firmware information to the network side device when receiving a firmware update notification sent by the network side device, wherein the first firmware information includes the current firmware version number and device model of the terminal, and the first firmware information is used to confirm whether the terminal meets the firmware upgrade condition;
[0187] The transceiver 702 is further configured to receive differentiated firmware sent by the network side device when the terminal meets the firmware upgrade condition, where the differentiated firmware is determined by the network side device according to the latest second firmware stored in the blockchain and the firmware corresponding to the first firmware information, and there is a difference between the second firmware and the first firmware;
[0188] The processor 705 is configured to perform firmware upgrade according to the differentiated firmware.
[0189] Optionally, the transceiver 702 is further used to receive first feature description information sent by the network side device, where the first feature description information is used to characterize content information of the differentiated firmware;
[0190] The transceiver 702 is further configured to send third feature description information to the network side device, where the third feature description information is used to characterize the content of the first feature description information received by the terminal;
[0191] The processor 705 is further configured to, upon receiving first feedback information, perform a firmware upgrade according to the differentiated firmware, the first feedback information being used to represent information sent by the network side device to the terminal instructing the terminal to upgrade when the second feature description information determined by the audit node of the network side device according to the second firmware and the first firmware is the same as the third feature description information;
[0192] The processor 705 is also used to not perform firmware upgrade when receiving second feedback information, where the second feedback information is used to represent that when the second feature description information determined by the audit node of the network side device is different from the third feature description information, the network side device sends information to the terminal indicating that the terminal should not upgrade.
[0193] exist Figure 7 In the embodiment, the bus architecture (represented by bus 701) may include any number of interconnected buses and bridges, and bus 701 links various circuits including one or more processors represented by processor 705 and memory represented by memory 706. Bus 701 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 704 provides an interface between bus 701 and transceiver 702. Transceiver 702 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 705 is transmitted on a wireless medium via antenna 703, and further, antenna 703 also receives data and transmits the data to processor 705.
[0194] The processor 705 is responsible for managing the bus 701 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 706 can be used to store data used by the processor 705 when performing operations.
[0195] Optionally, the processor 705 may be a CPU, an ASIC, an FPGA or a CPLD.
[0196] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned path determination method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0197] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0198] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a second terminal device, etc.) to execute the methods of each embodiment of the present application.
[0199] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A firmware upgrade method, applied to a network side device, characterized in that: include: Sending a firmware update notification to the terminal to be upgraded, wherein the firmware update notification is used to prompt the terminal to be upgraded to perform a firmware upgrade; Determine a service node and an audit node, where the service node and the audit node are nodes among N nodes of the network side device, where N is a positive integer greater than 1; Receiving, through the service node, first firmware information sent by the terminal to be upgraded, where the first firmware information includes a current firmware version number and a device model of the terminal to be upgraded, and the first firmware information is information sent by the terminal to be upgraded to the first network side device after receiving the firmware update notification; Obtaining a second firmware through the service node and the audit node respectively, where the second firmware is the latest firmware in a preset blockchain, and the blockchain is used to store the second firmware; Determining, by the service node, differentiated firmware according to the second firmware and the first firmware corresponding to the first firmware information, where the differentiated firmware is firmware having differences between the first firmware and the second firmware; Determining whether the differentiated firmware meets an upgrade condition according to the second firmware through the audit node and the service node; In the case where the differentiated firmware meets the upgrade condition, the differentiated firmware is sent to the terminal to be upgraded through the service node, and the differentiated firmware is used to enable the terminal to be upgraded to perform firmware upgrade according to the differentiated firmware; The determining, by the audit node and the service node, whether the differentiated firmware meets the upgrade condition according to the second firmware includes: Determining, by the service node, first feature description information according to the second firmware and the first firmware, where the first feature description information is used to characterize content information of the differentiated firmware; Determining second feature description information according to the second firmware and the first firmware through the audit node, where the second feature description information is used to characterize content information of the differentiated firmware; In a case where the first feature description information matches the second feature description information, determining that the differentiated firmware meets an upgrade condition; When the first feature description information and the second feature description information do not match, it is determined that the differentiated firmware does not meet the upgrade condition.
2. The method according to claim 1, characterized in that After sending the differentiated firmware to the terminal to be upgraded through the service node, the method further includes: Sending the first feature description information to the terminal to be upgraded; receiving third feature description information, where the third feature description information is information sent by the terminal to be upgraded after receiving the first feature description information, and the third feature description information is used to characterize content information of the differentiated firmware received by the terminal to be upgraded; In a case where the third feature description information matches the second feature description information, sending first feedback information to the terminal to be upgraded, where the first feedback information is used to instruct the terminal to be upgraded based on the differentiated firmware upgrade; In a case where the third feature description information does not match the second feature description information, second feedback information is sent to the terminal to be upgraded, where the second feedback information is used to instruct the terminal to be upgraded not to upgrade.
3. The method according to claim 1, characterized in that The determining of the service node and the audit node includes: Sequentially numbering the N nodes in the network side device to obtain a number for each of the N nodes; Obtain a first random number and a second random number of each node, where the first random number is an integer from 0 to 2N, and the second random number is an integer from 0 to 2N; Taking the sum of the first random numbers of each node modulo N to obtain a first target value; taking the sum of the second random numbers of each node modulo N to obtain a second target value; The node whose corresponding number is the same as the first target value is set as the service node, and the node whose corresponding number is the same as the second target value is set as the review node.
4. The method according to claim 1, characterized in that: The method further comprises: receiving a third firmware and firmware characteristic information corresponding to the third firmware, wherein the third firmware is used to characterize the latest uploaded firmware, and the firmware characteristic information is used to characterize content information of the third firmware; In the case where the third firmware is new firmware relative to the second firmware, the third firmware and the firmware feature information are saved in the blockchain through the service node.
5. A firmware upgrade method, applied to a terminal, characterized in that: Upon receiving a firmware update notification sent by a network-side device, sending first firmware information to the network-side device, the first firmware information including a current firmware version number and a device model of the terminal, the first firmware information being used to confirm whether the terminal meets a firmware upgrade condition; When the terminal meets the firmware upgrade condition, receiving differentiated firmware sent by the network side device, the differentiated firmware is determined by the network side device according to the latest second firmware stored in the blockchain and the firmware corresponding to the first firmware information, and there is a difference between the second firmware and the first firmware; Performing firmware upgrade according to the differentiated firmware; After receiving the differentiated firmware sent by the network side device, the method further includes: Receiving first feature description information sent by the network-side device, where the first feature description information is used to characterize content information of the differentiated firmware; Sending third feature description information to the network side device, where the third feature description information is used to characterize the content of the first feature description information received by the terminal; The performing firmware upgrade according to the differentiated firmware includes: In the case of receiving the first feedback information, performing a firmware upgrade according to the differentiated firmware, the first feedback information being used to represent information sent by the network side device to the terminal to instruct the terminal to upgrade when the second feature description information determined by the audit node of the network side device according to the second firmware and the first firmware is the same as the third feature description information; When the second feedback information is received, the firmware upgrade is not performed. The second feedback information is used to represent that when the second feature description information determined by the audit node of the network side device is different from the third feature description information, the network side device sends information to the terminal instructing the terminal not to upgrade.
6. A network side device, characterized in that: include: A first sending module, used to send a firmware update notification to the terminal to be upgraded, wherein the firmware update notification is used to prompt the terminal to be upgraded to perform a firmware upgrade; A first determination module is used to determine a service node and an audit node, where the service node and the audit node are nodes among N nodes of the network side device, where N is a positive integer greater than 1; A first receiving module, configured to receive, through the service node, first firmware information sent by the terminal to be upgraded, wherein the first firmware information includes a current firmware version number and a device model of the terminal to be upgraded, and the first firmware information is information sent by the terminal to be upgraded to the first network side device after receiving the firmware update notification; An acquisition module, used to acquire the second firmware through the service node and the audit node respectively, where the second firmware is the latest firmware in a preset blockchain, and the blockchain is used to store the second firmware; A second determining module, configured to determine, through the service node, differentiated firmware according to the second firmware and the first firmware corresponding to the first firmware information, where the differentiated firmware is firmware having differences between the first firmware and the second firmware; A third determination module, configured to determine whether the differentiated firmware meets an upgrade condition according to the second firmware through the audit node and the service node; A second sending module, configured to send the differentiated firmware to the terminal to be upgraded through the service node when the differentiated firmware meets the upgrade condition, wherein the differentiated firmware is used to enable the terminal to be upgraded to perform firmware upgrade according to the differentiated firmware; The third determination module comprises: A first determining unit, configured to determine, through the service node, first feature description information according to the second firmware and the first firmware, where the first feature description information is used to characterize content information of the differentiated firmware; a second determining unit, configured to determine second feature description information according to the second firmware and the first firmware through the audit node, wherein the second feature description information is used to characterize content information of the differentiated firmware; a third determining unit, configured to determine that the differentiated firmware meets an upgrade condition when the first feature description information matches the second feature description information; The fourth determining unit is configured to determine that the differentiated firmware does not meet an upgrade condition when the first feature description information and the second feature description information do not match.
7. A terminal, characterized in that: include: A first sending module, configured to send first firmware information to the network side device upon receiving a firmware update notification sent by the network side device, wherein the first firmware information includes a current firmware version number and a device model of the terminal, and the first firmware information is used to confirm whether the terminal meets a firmware upgrade condition; A first receiving module, configured to receive differentiated firmware sent by the network side device when the terminal meets the firmware upgrade condition, wherein the differentiated firmware is determined by the network side device according to the latest second firmware stored in the blockchain and the firmware corresponding to the first firmware information, and there is a difference between the second firmware and the first firmware; A processing module, used for performing firmware upgrade according to the differentiated firmware; After the receiving module, the terminal includes: A second receiving module, configured to receive first feature description information sent by the network side device, wherein the first feature description information is used to characterize content information of the differentiated firmware; A second sending module, used to send third feature description information to the network side device, where the third feature description information is used to characterize the content of the first feature description information received by the terminal; The processing module comprises: a first processing unit, configured to perform a firmware upgrade according to the differentiated firmware upon receiving first feedback information, wherein the first feedback information is used to represent information sent by the network side device to the terminal to instruct the terminal to upgrade when the second feature description information determined by the audit node of the network side device according to the second firmware and the first firmware is the same as the third feature description information; The second processing unit is used to not perform firmware upgrade when receiving second feedback information, where the second feedback information is used to represent that when the second feature description information determined by the audit node of the network side device is different from the third feature description information, the network side device sends information to the terminal instructing the terminal not to upgrade.
8. A network side device, characterized in that: Including transceiver and processor, The transceiver is used to send a firmware update notification to the terminal to be upgraded, wherein the firmware update notification is used to prompt the terminal to be upgraded to perform a firmware upgrade; The processor is used to determine a service node and an audit node, where the service node and the audit node are nodes among N nodes of the network side device, where N is a positive integer greater than 1; The transceiver is further configured to receive, through the service node, first firmware information sent by the terminal to be upgraded, wherein the first firmware information includes a current firmware version number and a device model of the terminal to be upgraded, and the first firmware information is information sent by the terminal to be upgraded to the first network side device after receiving the firmware update notification; The transceiver is further used to obtain the second firmware through the service node and the audit node respectively, where the second firmware is the latest firmware in a preset blockchain, and the blockchain is used to store the second firmware; The processor is further configured to determine, through the service node, differentiated firmware according to the second firmware and the first firmware corresponding to the first firmware information, where the differentiated firmware is firmware in which there is a difference between the first firmware and the second firmware; The processor is further configured to determine whether the differentiated firmware meets an upgrade condition according to the second firmware through the audit node and the service node; The transceiver is further configured to send the differentiated firmware to the terminal to be upgraded through the service node when the differentiated firmware meets the upgrade condition, and the differentiated firmware is used to enable the terminal to be upgraded to perform firmware upgrade according to the differentiated firmware; The processor is further configured to determine, through the service node, first feature description information according to the second firmware and the first firmware, where the first feature description information is used to characterize content information of the differentiated firmware; The processor is further configured to determine second feature description information according to the second firmware and the first firmware through the audit node, where the second feature description information is used to characterize content information of the differentiated firmware; The processor is further configured to determine that the differentiated firmware meets an upgrade condition when the first feature description information matches the second feature description information; The processor is further configured to determine that the differentiated firmware does not meet an upgrade condition when the first feature description information and the second feature description information do not match.
9. A terminal, characterized in that: Including transceiver and processor, The transceiver is used to send first firmware information to the network side device when receiving a firmware update notification sent by the network side device, wherein the first firmware information includes the current firmware version number and device model of the terminal, and the first firmware information is used to confirm whether the terminal meets the firmware upgrade condition; The transceiver is further configured to receive differentiated firmware sent by the network side device when the terminal meets the firmware upgrade condition, wherein the differentiated firmware is determined by the network side device according to the latest second firmware stored in the blockchain and the firmware corresponding to the first firmware information, and there is a difference between the second firmware and the first firmware; The processor is used to perform firmware upgrade according to the differentiated firmware; The transceiver is further used to receive first feature description information sent by the network side device, where the first feature description information is used to characterize content information of the differentiated firmware; The transceiver is further used to send third feature description information to the network side device, where the third feature description information is used to characterize the content of the first feature description information received by the terminal; The processor is further configured to, upon receiving first feedback information, perform a firmware upgrade according to the differentiated firmware, wherein the first feedback information is used to represent information sent by the network side device to the terminal to instruct the terminal to upgrade when the second feature description information determined by the audit node of the network side device according to the second firmware and the first firmware is the same as the third feature description information; The processor is also used to not perform firmware upgrade when receiving second feedback information, where the second feedback information is used to represent that when the second feature description information determined by the audit node of the network side device is different from the third feature description information, the network side device sends information to the terminal instructing the terminal not to upgrade.
10. A communication device, characterized in that: include: A transceiver, a memory, a processor, and a program stored in the memory and executable on the processor; wherein the processor is used to read the program in the memory to implement the steps in the firmware upgrade method as described in any one of claims 1 to 4, or to implement the steps in the firmware upgrade method as described in claim 5.
11. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the program implements the steps of the firmware upgrade method according to any one of claims 1 to 4, or implements the steps of the firmware upgrade method according to claim 5.
