Disclosure of Invention
The embodiment of the application provides a firmware upgrading method and a firmware upgrading method of equipment, wherein latest firmware or firmware fragments issued by an internet of things gateway are written into a RAM of the equipment, and the RAM serving as a relay server can respond to firmware updating requests of other equipment, so that the dependence of an upgrading process on a central gateway can be reduced, and the upgrading efficiency of all equipment under a local area network is improved.
The invention provides a gateway-based firmware upgrading method, which is applied to an Internet of things gateway and comprises the following steps: wirelessly connecting to a cloud server end through a first communication protocol, and establishing a data link channel; wirelessly connecting to gateways of a plurality of devices to be upgraded through a second communication protocol to establish a local area network; acquiring a firmware upgrading request instruction sent by a cloud server side; downloading the latest firmware corresponding to the equipment to be upgraded from the cloud server; storing the latest firmware in part of the equipment to be upgraded, wherein the equipment to be upgraded which obtains the latest firmware provides upgrading service for the equipment to be upgraded which does not obtain the latest firmware; sending an upgrading instruction to the equipment to be upgraded, and starting upgrading of the equipment to be upgraded; and receiving an upgrading request of the equipment to be upgraded.
Further, before the step of storing the latest firmware in part of the device to be upgraded, the method further comprises the following steps: sending an equipment information inquiry request to the equipment to be upgraded; and acquiring the equipment information sent by the equipment to be upgraded.
Further, the device information includes free RAM capacity; in the step of storing the latest firmware in part of the devices to be upgraded, the method specifically comprises the following steps: respectively comparing the size of the free RAM capacity of each device to be upgraded with a preset value, and if the free RAM capacity of one device to be upgraded is larger than the preset value, judging all devices to be upgraded as direct upgrading devices; and storing the latest firmware into the equipment to be upgraded with the spare RAM capacity larger than the preset value, and sending a non-fragment mark to each equipment to be upgraded.
Further, in the step of comparing the size of the free RAM capacity of each device to be upgraded with a preset value, if the free RAM capacity of all the devices to be upgraded is smaller than the preset value, all the devices to be upgraded are judged to be indirect upgrading devices, and a fragmentation step is performed; sending a fragment mark to each indirect upgrading device; calculating the number of the indirect upgrading devices; splitting the latest firmware into more than two firmware fragments, and labeling each firmware fragment, wherein the range of the labels is 1-k, k is the number of the firmware fragments, and k is less than or equal to the number of the indirect upgrading equipment; and sending all the firmware fragments and the labels thereof to more than two indirect upgrading devices, and ensuring that each firmware fragment is sent to at least one indirect upgrading device.
Further, the preset value is twice of the memory space occupied by the latest firmware.
Further, in the step of receiving an upgrade request of the device to be upgraded; if the device to be upgraded is an indirect upgrade device, before the step of sending an upgrade instruction to the device to be upgraded, the method further comprises the following steps: judging whether the indirect upgrading equipment has firmware fragments, if so, broadcasting labels of other firmware fragments required by the indirect upgrading equipment; if not, judging that the indirect upgrading equipment is in an upgrading initial state, sending the firmware segment with the firmware label 1 to the indirect upgrading equipment, and broadcasting the labels of other firmware segments required by the indirect upgrading equipment.
Further, the device information further includes: a device type; the method also comprises the following steps after the step of obtaining the equipment information of the equipment to be upgraded: and grouping the equipment to be upgraded according to the equipment types, wherein the equipment types of the same group of equipment are the same. The step of storing the latest firmware into the device to be upgraded is performed within the same group of devices.
Further, the device information further includes: the firmware version number of the equipment to be upgraded; the method also comprises the following steps after the step of obtaining the equipment information of the equipment to be upgraded: inquiring the latest firmware of the equipment to be upgraded from the cloud server; and respectively comparing the firmware version numbers of all the equipment to be upgraded with the latest firmware version numbers of the corresponding equipment in the cloud server, and if the firmware version number of the equipment to be upgraded is lower than the latest firmware version number, executing the step of downloading the latest firmware corresponding to the equipment to be upgraded.
Further, after the step of sending the upgrade instruction to the device to be upgraded, the method further comprises the following steps: receiving successful upgrading information of a device to be upgraded and sending a restarting instruction to the device to be upgraded.
Further, the cloud server, the internet of things gateway and the equipment to be upgraded are connected in a PLC cascade mode.
The invention provides a firmware upgrading method of equipment, which comprises the following steps: the device is wirelessly connected to the gateway of the Internet of things through a second communication protocol, and a plurality of devices to be upgraded establish a local area network; acquiring the latest firmware sent by the gateway of the Internet of things; acquiring the sending upgrading instruction of the Internet of things gateway; starting firmware upgrade; sending an upgrading request to the gateway of the Internet of things; and generating an upgrade success message and sending the upgrade success message to the Internet of things gateway.
Further, before the step of obtaining the latest firmware sent by the internet of things gateway, the method further includes: receiving an equipment information query request sent by the gateway of the Internet of things; sending equipment information to the gateway of the Internet of things, wherein the equipment information comprises the free RAM capacity; the gateway of the Internet of things judges whether the free RAM capacity of each device to be upgraded is larger than a preset value or not according to the device information; if the free RAM capacity of one device to be upgraded is larger than the preset value, all devices to be upgraded are judged to be direct upgrading devices; if the free RAM capacity of all the equipment to be upgraded is smaller than the preset value, all the equipment to be upgraded is judged to be indirect upgrading equipment; acquiring a fragmentation mark or a non-fragmentation mark sent by the gateway of the Internet of things, and acquiring the non-fragmentation mark if all the devices to be upgraded are direct upgrading devices; and if all the devices to be upgraded are indirect upgrading devices, acquiring fragment marks.
Further, if all the devices to be upgraded acquire the non-fragmentation mark, in the step of acquiring the latest firmware sent by the internet of things gateway, the method specifically includes the following steps: and acquiring the latest firmware by the equipment to be upgraded with the free RAM capacity larger than the preset value.
Further, if all the devices to be upgraded acquire the fragment tag, in the step of acquiring the latest firmware sent by the internet of things gateway, the method specifically includes the following steps: acquiring the latest firmware or any firmware segment; it is ensured that the firmware fragments received by more than two indirect upgrade apparatuses can be merged into a complete new firmware.
Further, the step of starting firmware upgrade specifically includes the following steps: the first direct upgrading equipment acquires and upgrades the latest firmware; the free RAM capacity of the first direct upgrading device is larger than the preset value; the second direct upgrading equipment sends an upgrading request; the second direct upgrading equipment and the first direct upgrading equipment are the same in equipment type, and the free RAM capacity of the second direct upgrading equipment is smaller than the preset value; and the second direct upgrading equipment receives the latest firmware sent by the first direct upgrading equipment or the gateway of the internet of things.
Further, the step of starting firmware upgrade specifically includes the following steps: an indirect upgrading device sends the firmware fragment label of the indirect upgrading device and the required firmware fragment label to the Internet of things gateway; and the indirect upgrading equipment sequentially acquires other required firmware fragments.
Further, the device information further includes a device type and a firmware version number.
Further, before the step of sending an upgrade request to the internet of things gateway, the method includes: and judging whether the current firmware version number is lower than the latest firmware, if so, executing the step of sending the upgrade request to the gateway of the Internet of things.
Further, after the step of generating an upgrade success message and sending the upgrade success message to the internet of things gateway, the method further includes the following steps: and receiving a restart instruction sent by the Internet of things gateway, and sending restart success information to the Internet of things gateway after the restart is successful.
The invention has the beneficial effects that: the invention provides a firmware upgrading method based on a gateway and a firmware upgrading method of equipment, wherein the gateway of the Internet of things downloads the latest firmware to perform fragmentation or not according to the condition of an equipment RAM (random access memory), the equipment acquires the latest firmware or firmware fragments issued by the gateway of the Internet of things and writes the latest firmware or firmware fragments into the RAM of the equipment, the RAM is used as a relay server, the equipment storing the updated firmware or firmware fragments provides an upgrading service interface for other equipment, and the equipment to be upgraded can respond to the firmware updating requests of other equipment, so that the dependence on a central gateway in the upgrading process can be reduced, and the upgrading efficiency of all equipment under a local area network is improved.
Because the RAM adopted by the equipment is generally very small, the equipment is subjected to an idle RAM query function through the Internet of things gateway, the Internet of things gateway carries out fragmentation strategy processing on new firmware according to the idle condition of the RAM of the equipment to be upgraded and distributes the new firmware into the RAM of the equipment according to the fragmentation serial number and the firmware fragment, the RAM of the equipment is used as a firmware fragment which can be provided by a relay server to other equipment of the same type, and when the Internet of things gateway broadcasts the required serial number fragment, the relay server responds to the request and sends the required firmware fragment to the equipment to be upgraded.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The invention provides a firmware upgrading method based on a gateway, which is applied to an Internet of things gateway, wherein the Internet of things gateway is used as gateway equipment, and can realize protocol conversion between a perception network and a communication network and between different types of perception networks. The wide area interconnection and the local area interconnection can be realized. In addition, the internet of things gateway also needs to have an equipment management function, and all sensing nodes of the equipment can be managed through the internet of things gateway equipment, so that relevant information of all nodes can be known, and remote control can be realized.
As shown in fig. 1, the gateway-based firmware upgrading method includes the following steps: S1-S15.
S1) the Internet of things gateway is wirelessly connected to the cloud server through the first communication protocol.
S2) the gateway of the Internet of things is wirelessly connected to the gateways of the plurality of devices to be upgraded through a second communication protocol; as shown in fig. 2, the internet of things gateway and the device are connected in a PLC cascade manner. In fig. 2, the cloud server 11 and the internet of things gateway 12 are connected to each other, and the devices include a first device 13, a second device 14, and a third device 15. The first device 13, the second device 14 and the third device 15 are of different device types. In the PLC cascade, in the first layer, a first device 13 branch directly connected to the internet of things gateway 12 in a wireless manner is described, and in the second layer, two branches branched from the first device 13 are respectively connected to a second device 14 and a third device 15. In the third layer, two branches are branched from the second device 14 to connect the second device 14 and the first device 13, respectively.
S3) the gateway of the Internet of things acquires the firmware upgrading request instruction sent by the cloud server side
S4) the gateway of the Internet of things sends an equipment information inquiry request to the equipment to be upgraded.
S5) the gateway of the Internet of things acquires the equipment information sent by the equipment to be upgraded; the device information includes an idle RAM capacity, a firmware version number of the device to be upgraded, and a device type.
S6) the Internet of things gateway groups the multiple devices to be upgraded according to the device types, and the device types of the devices in the same group are the same. And when the equipment types of the equipment to be upgraded are more than two, the Internet of things gateway groups the plurality of equipment to be upgraded according to the equipment types, and the equipment types of the same group of equipment are the same. Referring also to fig. 3, the description will be made in terms of the grouping of the first device 13 and the second device 14, wherein the group of the first device 13 includes the devices DevA 1-DevA 4. The group of second devices 14 includes devices DevB 1-DevB 6. The following steps S7 to S12 are performed for each group, respectively.
S7) the Internet of things gateway inquires the latest firmware of the equipment to be upgraded from the cloud server; and respectively comparing the firmware version number of all the equipment to be upgraded with the latest firmware version number of the corresponding equipment in the cloud server, and executing the next step if the firmware version number of the equipment to be upgraded is lower than the latest firmware version number. Referring to fig. 3, the devices DevA 1-DevA 4 of the first device 13 are all devices to be upgraded by the determination. The devices DevB 1-DevB 6 of the second device 14 are all devices to be upgraded by the determination.
S8) the gateway of the Internet of things downloads the corresponding latest firmware of the equipment to be upgraded from the cloud server. Referring to fig. 3, the internet of things gateway 12 downloads the latest firmware a of the first device 13 from the cloud server side, the internet of things gateway 12 downloads the latest firmware B of the second device 14 from the cloud server side, and the internet of things gateway 12 downloads the latest firmware C of the third device 15 from the cloud server side.
S9) the gateway of the Internet of things stores the latest firmware in part of the equipment to be upgraded, and the equipment to be upgraded, which obtains the latest firmware, provides upgrading service for the equipment to be upgraded, which does not obtain the latest firmware. Step S9 specifically includes the following steps: s901) respectively comparing the free RAM capacity of each device to be upgraded with a preset value, and if the free RAM capacity of one device to be upgraded is larger than the preset value, judging all devices to be upgraded as direct upgrading devices; s902) storing the latest firmware into the equipment to be upgraded with the free RAM capacity larger than the preset value, and sending a non-fragmentation mark to the equipment to be upgraded. The preset value is twice the memory space occupied by the latest firmware. Referring to fig. 3, the internet of things gateway determines the first device group according to the free RAM capacity, and determines that all the devices to be upgraded DevA1 to DevA4 of the first device 13 are direct upgrade devices, and the first devices DevA1 to DevA4 are direct upgrade devices. In step S901), if the free RAM capacities of all the devices to be upgraded are smaller than the preset value, determining that all the devices to be upgraded are indirect upgrade devices, and performing a fragmentation step; sending a fragment mark to each indirect upgrading device; calculating the number of the indirect upgrading devices; splitting the latest firmware into more than two firmware fragments, and labeling each firmware fragment, wherein the range of the labels is 1-k, k is the number of the firmware fragments, and k is less than or equal to the number of the indirect upgrading equipment; and sending all the firmware fragments and the labels thereof to more than two indirect upgrading devices, and ensuring that each firmware fragment is sent to at least one indirect upgrading device. And the gateway of the Internet of things judges that all the devices DevB 1-DevB 6 of the second device group are indirect upgrading devices according to the capacity of the idle RAM. The number of indirect upgrade devices for the second device 14 is 6. The first devices 13 are all direct upgrade devices. The internet of things gateway splits the firmware B into 2 to 6 pieces, 4 pieces in this embodiment, which are respectively the piece B1 to the piece B4, according to the number of the second devices 14. The second device DevB1 obtains the slice B4, the second devices DevB2 and DevB5 obtain the slice B2, the second device DevB4 obtains the slice B3, and the second devices DevB3 and DevB6 obtain the slice B1. After acquiring the firmware or the firmware fragments, the device writes the firmware or the firmware fragments into a memory (Flash) and then writes the firmware or the firmware fragments into a RAW to serve as a relay server. After the equipment to be upgraded receives the corresponding latest firmware or firmware fragments, the equipment to be upgraded is upgraded in the corresponding group, the local area network shares the own latest firmware or firmware fragments to other equipment to be upgraded, and the other equipment to be upgraded starts upgrading after acquiring the corresponding latest firmware or all the firmware fragments, so that upgrading service is provided for the other equipment.
S10) the gateway of the Internet of things sends an upgrading instruction to the equipment to be upgraded, and the equipment to be upgraded starts upgrading.
S11) the gateway of the Internet of things receives the upgrading request of the equipment to be upgraded; and if the equipment to be upgraded is direct upgrading equipment, executing the step S12) to start upgrading the equipment to be upgraded. If the device to be upgraded is an indirect upgrade device, before the step S12), the method further includes the following steps: judging whether the indirect upgrading equipment has firmware fragments, if so, broadcasting labels of other firmware fragments required by the indirect upgrading equipment, and sending other equipment to be upgraded to the indirect upgrading equipment according to the sequence of the labels of the firmware from small to large; if not, the indirect upgrade device is in an upgrade initial state (generally, the firmware label is 0), sends the firmware segment with the firmware label 1 to the indirect upgrade device, and broadcasts the labels of other firmware segments required by the indirect upgrade device. Referring to fig. 3, for the first devices DevA 1-DevA 4 which are direct upgrade devices, when the first device DevA1 obtains firmware a, if the first devices DevA 2-DevA 4 of other devices in the same group send upgrade requests, the first device DevA1 sends firmware a, i.e. the upgrade can be between devices, which increases the upgrade efficiency. For the second devices DevB 1-DevB 6 that are indirect upgrade devices, after the second devices DevB 1-DevB 6 randomly acquire the slice, if the second device DevB1 transmits other firmware segments required for the upgrade request, the second devices DevB 2-DevB 6 transmit the slice lacking in the second device DevB1 to the second device DevB1, so that the second device DevB1 obtains the complete firmware B, further by way of example, the slice B1 is obtained from the second device DevB3 or the second device DevB6, and the slice B2 is obtained from the second device DevB2 and the second device DevB 5.
S12) the gateway of the Internet of things receives the successful upgrading information of the equipment to be upgraded and sends a restarting instruction to the equipment to be upgraded. And after the equipment which is successfully upgraded receives the restart instruction, restarting the equipment and sending the restart success to the gateway of the Internet of things.
The invention provides a firmware upgrading method based on a gateway, wherein the RAM condition of gateway equipment of the Internet of things judges whether fragmentation is needed or not, the latest firmware or firmware fragments are distributed to the RAM of equipment in a network, the RAM of the equipment is used as a relay server, the equipment which stores the updated firmware or firmware fragments provides upgrading service interfaces for other equipment, and can respond to firmware updating requests of other equipment, so that the dependence of the process to be upgraded on a central gateway can be reduced, and the upgrading efficiency of all equipment under a local area network is improved.
Because the RAM adopted by the equipment is generally very small, the invention carries out the idle RAM query function on the equipment, the gateway of the Internet of things carries out the fragmentation strategy processing on the new firmware according to the idle condition of the RAM of the equipment to be upgraded and distributes the new firmware into the RAM of the equipment according to the fragmentation serial number and the firmware fragments, the RAM of the equipment can be used as a relay server to provide the firmware fragments for other equipment of the same type, and the required firmware fragments or the latest firmware are shared to other equipment to be upgraded through a local area network.
As shown in fig. 4, another embodiment of the present invention provides a firmware upgrading method for a device, which is applied to a plurality of device terminals connected to an internet of things gateway, where the method includes the following steps S601 to S610.
S601) local area network connection is established between the equipment to be upgraded and the Internet of things gateway through a second communication protocol, and the connection mode between the Internet of things gateway and the equipment is PLC cascade connection as shown in figure 2. In fig. 2, the cloud server 11 and the internet of things gateway 12 are connected to each other, and the devices include a first device 13, a second device 14, and a third device 15. The first device 13, the second device 14 and the third device 15 are of different device types. In the PLC cascade, in the first layer, a first device 13 branch directly connected to the internet of things gateway 12 in a wireless manner is described, and in the second layer, two branches branched from the first device 13 are respectively connected to a second device 14 and a third device 15. In the third layer, two branches are branched from the second device 14 to connect the second device 14 and the first device 13, respectively.
S602) the equipment to be upgraded receives the equipment information inquiry request sent by the gateway of the Internet of things.
S603) equipment to be upgraded sends equipment information to the gateway of the Internet of things, wherein the equipment information comprises the capacity of an idle RAM, the equipment type and the firmware version number; and the gateway of the Internet of things firstly groups the equipment to be upgraded according to the equipment types according to the equipment information. Referring also to fig. 3, the description will be made in terms of the grouping of the first device 13 and the second device 14, wherein the group of the first device 13 includes the devices DevA 1-DevA 4. The group of second devices 14 includes devices DevB 1-DevB 6; and the gateway of the Internet of things respectively compares the firmware version number of all the equipment to be upgraded with the latest firmware version number of the corresponding equipment in the cloud server, and if the firmware version number of the equipment to be upgraded is lower than the latest firmware version number, the gateway of the Internet of things executes the step of downloading the latest firmware corresponding to the equipment to be upgraded. The gateway of the Internet of things judges whether the free RAM capacity of each device to be upgraded is larger than twice of the memory space occupied by the latest firmware according to the device information; if the free RAM capacity of one device to be upgraded is larger than the preset value, all devices to be upgraded are judged to be direct upgrading devices; and if the free RAM capacity of all the equipment to be upgraded is smaller than the preset value, judging that all the equipment to be upgraded is indirect upgrading equipment. The gateway of the internet of things judges the devices DevA 1-DevA 4 of the first device group as direct upgrading devices according to the capacity of the idle RAM. And the gateway of the Internet of things judges the devices DevB 1-DevB 6 of the second device group as direct upgrading devices according to the capacity of the idle RAM.
S604) acquiring a fragmentation mark or a non-fragmentation mark sent by the gateway of the Internet of things, and acquiring the non-fragmentation mark if all the devices to be upgraded are direct upgrading devices; and if all the devices to be upgraded are indirect upgrading devices, acquiring fragment marks.
S605) obtaining the latest firmware sent by the gateway of the Internet of things; if all the devices to be upgraded acquire the no-fragmentation marks, step S605 includes: and acquiring the latest firmware by the equipment to be upgraded with the free RAM capacity larger than the preset value. If all the devices to be upgraded acquire the fragment flag, step S605 includes: acquiring the latest firmware or any firmware segment; it is ensured that the firmware fragments received by more than two indirect upgrade apparatuses can be merged into a complete new firmware. Referring to fig. 3, the second device DevB1 obtains the partition B4, the second devices DevB2 and DevB5 obtain the partition B2, the second device DevB4 obtains the partition B3, and the second devices DevB3 and DevB6 obtain the partition B1.
S606) the equipment to be upgraded judges whether the current firmware version number is lower than the latest firmware, if so, the step S607 is executed.
S607) the equipment to be upgraded acquires the Internet of things gateway and sends an upgrading instruction.
S608) the equipment to be upgraded starts firmware upgrade. As shown in fig. 5, if all the devices to be upgraded acquire fragment tags, step S608 specifically includes: s6081) first direct upgrading equipment acquires the latest firmware and upgrades the latest firmware, wherein the free RAM capacity of the first direct upgrading equipment is larger than the preset value; s6082) second direct upgrading equipment sends an upgrading request, wherein the second direct upgrading equipment is the same as the first direct upgrading equipment in equipment type, and the free RAM capacity of the second direct upgrading equipment is smaller than the preset value; s6083) the second direct upgrading device receives the latest firmware sent by the first direct upgrading device. Since the first device group DevA 1-DevA 4 is a direct upgrade device, after the first device DevA1 obtains the firmware a, if the first device DevA 2-DevA 4 of other devices in the same group sends an upgrade request, the first device DevA1 sends the firmware a, i.e. the upgrade can be between devices, which increases the stability of the upgrade. As shown in fig. 6, if all the devices to be upgraded acquire fragment tags, step S608 includes: s6091) one indirect upgrading device sends the firmware fragment label of the indirect upgrading device and the required firmware fragment label to other indirect upgrading devices; s6092) other indirect upgrading equipment responds to the request and sends the required firmware fragments, and the indirect upgrading equipment starts upgrading after acquiring the required other firmware fragments in sequence. Since the devices DevB 1-DevB 6 of the second device group are indirect upgrade devices, the second device DevB1 obtains the slice B4, the second devices DevB2 and DevB5 obtains the slice B2, the second device DevB4 obtains the slice B3, the second devices DevB3 and DevB6 obtains the slice B1, and after randomly obtaining the slices for the second devices DevB 1-DevB 6, which are indirect upgrade devices, the second devices DevB 1-DevB 6, if the second device DevB1 sends a request, the gateway looks at the slice sequence number of the second device DevB1 itself and invokes the slices of the second devices DevB 2-DevB 6 to make the second device B1 obtain a complete firmware B, wherein the slice B1 is obtained from the second device DevB3 or the second device B6, and the slice B2 is obtained from the second device DevB2 and the second device B5.
S609) the equipment to be upgraded sends an upgrading request to the gateway of the Internet of things.
S610) the equipment to be upgraded generates upgrade success information and sends the upgrade success information to the Internet of things gateway.
S611) receiving a restart instruction sent by the Internet of things gateway, and sending a restart success message to the Internet of things gateway after the restart is successful.
Another embodiment of the present invention provides a firmware upgrading method for a device, where a device to be upgraded acquires a latest firmware or firmware fragment issued by an internet of things gateway and writes the latest firmware or firmware fragment into a RAM of the device, the RAM is used as a relay server, and the device storing the updated firmware or firmware fragment provides an upgrade service interface for other devices, and can respond to a firmware update request of other devices, so as to reduce dependence on a central gateway in an upgrading process and improve upgrading efficiency of all devices in a local area network.
Because the RAM adopted by the equipment is generally very small, the equipment is subjected to an idle RAM query function through the Internet of things gateway, the Internet of things gateway carries out fragmentation strategy processing on new firmware according to the idle condition of the RAM of the equipment to be upgraded and distributes the new firmware into the RAM of the equipment according to the fragmentation serial number and the firmware fragment, the RAM of the equipment is used as a firmware fragment which can be provided for other equipment of the same type by a relay server, and when the equipment to be upgraded broadcasts the required serial number fragment, the relay server responds to the request and sends the required firmware fragment to the equipment to be upgraded.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The principle and the implementation of the present application are explained by applying specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.