[go: up one dir, main page]

CN112612497A - Firmware upgrading method based on gateway and firmware upgrading method of equipment - Google Patents

Firmware upgrading method based on gateway and firmware upgrading method of equipment Download PDF

Info

Publication number
CN112612497A
CN112612497A CN202011606085.XA CN202011606085A CN112612497A CN 112612497 A CN112612497 A CN 112612497A CN 202011606085 A CN202011606085 A CN 202011606085A CN 112612497 A CN112612497 A CN 112612497A
Authority
CN
China
Prior art keywords
firmware
upgraded
upgrade
devices
gateway
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011606085.XA
Other languages
Chinese (zh)
Other versions
CN112612497B (en
Inventor
黄志成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Opple Lighting Co Ltd
Suzhou Op Lighting Co Ltd
Original Assignee
Opple Lighting Co Ltd
Suzhou Op Lighting Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Opple Lighting Co Ltd, Suzhou Op Lighting Co Ltd filed Critical Opple Lighting Co Ltd
Priority to CN202011606085.XA priority Critical patent/CN112612497B/en
Publication of CN112612497A publication Critical patent/CN112612497A/en
Application granted granted Critical
Publication of CN112612497B publication Critical patent/CN112612497B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

本发明提供一种基于网关的固件升级方法以及设备的固件升级方法,物联网网关下载最新固件,设备获取物联网网关下发的最新固件或固件片段分写入至设备中,并且保存有更新固件或固件片段的设备对其它设备提供升级服务接口,可响应其他设备的更新固件请求,这样可以减少升级过程对中央网关的依赖,提高局域网下所有设备升级效率。由于设备采用的RAM普遍很小,物联网网关根据待升级设备RAM空闲情况将新固件做分片策略处理,并按分片序号以及固件片段分发至设备的RAM中,设备的RAM作为继服务器可向其它同类型设备提供的固件片段,物联网网关向所有设备发送所需的序号片段,中继服务器响应该请求,将所需的固件片段发送给待升级设备。

Figure 202011606085

The present invention provides a gateway-based firmware upgrade method and a device firmware upgrade method. The IoT gateway downloads the latest firmware, the device obtains the latest firmware or firmware fragments issued by the IoT gateway and writes it into the device, and the updated firmware is stored in the device. Devices with firmware fragments or firmware fragments provide upgrade service interfaces for other devices, and can respond to other devices' firmware update requests, which can reduce the dependence on the central gateway during the upgrade process and improve the upgrade efficiency of all devices in the local area network. Since the RAM used by the device is generally small, the IoT gateway processes the new firmware according to the idle state of the RAM of the device to be upgraded, and distributes the new firmware to the RAM of the device according to the shard serial number and firmware fragment. For firmware fragments provided by other devices of the same type, the IoT gateway sends the required serial number fragments to all devices, and the relay server responds to the request and sends the required firmware fragments to the device to be upgraded.

Figure 202011606085

Description

Firmware upgrading method based on gateway and firmware upgrading method of equipment
Technical Field
The application relates to the field of smart home, in particular to the technical field of mobile equipment, and specifically relates to a firmware upgrading method based on a gateway and a firmware upgrading method of equipment.
Background
An intelligent home control system (SCS for short) is a system platform which takes an intelligent home system as a platform, home appliances and household appliances as main control objects, utilizes an integrated wiring technology, a network communication technology and an automatic control technology to carry out high-efficiency integration, constructs high-efficiency control and management systems of residential facilities and home schedule affairs, improves home intelligence, safety, convenience and comfort, and realizes environmental protection control. The intelligent home system comprises a central control gateway, a lighting lamp, an air conditioner, a curtain motor, an air purifier and the like, the intelligent devices are designed by adopting an embedded system, the functions of networking communication, action execution and the like are realized, the intelligent devices are usually designed into software function upgradable iteration to meet the increasing user requirements, and the intelligent home system is also a great advantage of an internet of things system. Software is scalable, requiring that smart home systems must support providing firmware services for each device.
At present, firmware upgrading modes of mainstream systems are realized by detecting upgradable equipment through a mobile phone APP (application program), downloading firmware to a gateway through operation, and initiating an upgrading process from the equipment to the gateway to obtain the firmware for upgrading. Because the performance of the internet of things gateway is limited and the gateway needs to respond to requests of other tasks, generally, the gateway can only respond to the upgrading request of one device at the same time, all devices need to be queued to complete upgrading, even if different types of device firmware cannot be upgraded at the same time, the whole upgrading process is low in efficiency and long in time.
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.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for upgrading firmware based on a gateway according to an embodiment of the present application.
Fig. 2 is a schematic view of a connection mode between the internet of things gateway and the device according to an embodiment of the present application.
Fig. 3 is a schematic diagram of firmware transmission according to an embodiment of the present application.
Fig. 4 is a flowchart of a method for upgrading firmware of a device according to another embodiment of the present application.
Fig. 5 is a specific flowchart of the step of acquiring the latest firmware by the direct upgrade device according to another embodiment of the present application.
Fig. 6 is a specific flowchart of the step of exchanging firmware segments among the plurality of indirect upgrade apparatuses to complete the upgrade according to another embodiment of the present application.
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.

Claims (19)

1.一种基于网关的固件升级方法,应用于物联网网关,其特征在于,所述方法包括如下步骤:1. a gateway-based firmware upgrade method, applied to the Internet of Things gateway, is characterized in that, the method comprises the steps: 通过第一通讯协议无线连接至云服务器端,建立数据链接通道;Wirelessly connect to the cloud server through the first communication protocol to establish a data link channel; 通过第二通讯协议无线连接至多个待升级设备的网关,建立局域网;Wirelessly connect to the gateways of multiple devices to be upgraded through the second communication protocol to establish a local area network; 获取由云服务器端所发送的固件升级请求指令;Obtain the firmware upgrade request instruction sent by the cloud server; 从所述云服务器端下载所述待升级设备相应的最新固件;Download the latest firmware corresponding to the device to be upgraded from the cloud server; 将所述最新固件存放到部分所述待升级设备中,获得所述最新固件的待升级设备为未获得所述最新固件的待升级设备提供升级服务;The latest firmware is stored in some of the devices to be upgraded, and the devices to be upgraded that have obtained the latest firmware provide upgrade services for the devices to be upgraded that have not obtained the latest firmware; 发送升级指令至所述待升级设备中,所述待升级设备开始升级;以及sending an upgrade instruction to the device to be upgraded, and the device to be upgraded starts to upgrade; and 接收所述待升级设备的升级请求。An upgrade request of the device to be upgraded is received. 2.如权利要求1所述的基于网关的固件升级方法,其特征在于,2. gateway-based firmware upgrade method as claimed in claim 1, is characterized in that, 在将所述最新固件存放到部分所述待升级设备中的步骤之前,还包括如下步骤:Before the step of storing the latest firmware in some of the devices to be upgraded, the following steps are also included: 发送一设备信息查询请求至所述待升级设备;sending a device information query request to the device to be upgraded; 获取所述待升级设备所发送的设备信息。Obtain the device information sent by the device to be upgraded. 3.如权利要求2所述的基于网关的固件升级方法,其特征在于,3. gateway-based firmware upgrade method as claimed in claim 2, is characterized in that, 所述设备信息包括空闲RAM容量;The device information includes free RAM capacity; 在将所述最新固件存放到部分所述待升级设备的步骤中,具体包括如下步骤:In the step of storing the latest firmware in some of the devices to be upgraded, the steps specifically include the following steps: 分别比较每一待升级设备的空闲RAM容量与一预设值的大小,若其中一待升级设备的空闲RAM容量大于所述预设值,则判定所有待升级设备为直接升级设备;Comparing the size of the free RAM capacity of each device to be upgraded and a preset value respectively, if the free RAM capacity of one of the devices to be upgraded is greater than the preset value, it is determined that all the devices to be upgraded are directly upgraded devices; 将所述最新固件存放到空闲RAM容量大于所述预设值的待升级设备中,并发送不分片标记至每一待升级设备中。The latest firmware is stored in a device to be upgraded whose free RAM capacity is greater than the preset value, and a non-fragmentation flag is sent to each device to be upgraded. 4.如权利要求3所述的基于网关的固件升级方法,其特征在于,4. gateway-based firmware upgrade method as claimed in claim 3, is characterized in that, 在所述分别比较每一待升级设备的空闲RAM容量与一预设值的大小的步骤中,若所有待升级设备的空闲RAM容量皆小于所述预设值,则判定所有待升级设备为间接升级设备,则进行分片步骤;In the step of respectively comparing the free RAM capacity of each device to be upgraded with a predetermined value, if the free RAM capacity of all the devices to be upgraded is less than the predetermined value, it is determined that all devices to be upgraded are indirect To upgrade the device, perform the sharding step; 发送分片标记至每一间接升级设备;Send shard markers to each indirect upgrade device; 计算所述间接升级设备的数量;calculating the number of said indirect upgrade devices; 将所述最新固件拆分为两个以上的固件片段,对每一固件片段进行标号,其中,标号的范围1~k,k为所述固件片段数量,k小于或等于所述间接升级设备的数量;The latest firmware is divided into two or more firmware segments, and each firmware segment is labeled, where the label ranges from 1 to k, where k is the number of the firmware segments, and k is less than or equal to the size of the indirect upgrade device. quantity; 发送全部固件片段及其标号至两个以上间接升级设备,确保每一固件片段被发送至至少一间接升级设备。Sending all firmware fragments and their labels to more than two indirect upgrade devices ensures that each firmware fragment is sent to at least one indirect upgrade device. 5.如权利要求3所述的基于网关的固件升级方法,其特征在于,5. gateway-based firmware upgrade method as claimed in claim 3, is characterized in that, 所述预设值为所述最新固件所占用的内存空间的两倍。The preset value is twice the memory space occupied by the latest firmware. 6.如权利要求4所述的基于网关的固件升级方法,其特征在于,6. gateway-based firmware upgrade method as claimed in claim 4, is characterized in that, 在所述接收所述待升级设备的升级请求的步骤中;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 following steps are further included: 判断该间接升级设备的是否具有固件片段,若是,则广播该间接升级设备所需的其它固件片段的标号;若否,判定该间接升级设备处于升级初始状态,发送固件标号为1的固件片段至该间接升级设备,并广播该间接升级设备所需的其它固件片段的标号。Determine whether the indirect upgrade device has firmware fragments, and if so, broadcast the labels of other firmware fragments required by the indirect upgrade device; The indirect upgrade device broadcasts the labels of other firmware fragments required by the indirect upgrade device. 7.如权利要求2所述的基于网关的固件升级方法,其特征在于,7. gateway-based firmware upgrade method as claimed in claim 2, is characterized in that, 所述设备信息还包括:设备类型;The device information further includes: device type; 在所述获取所述待升级设备的设备信息步骤之后还包括如下步骤:对所述多个待升级设备根据设备类型进行分组,同组设备的设备类型相同。所述将所述最新固件存放到所述待升级设备中的步骤在所述同组设备内执行。After the step of acquiring the device information of the device to be upgraded, the step further includes the following step: grouping the plurality of devices to be upgraded according to the device type, and the device types of the devices in the same group are the same. The step of storing the latest firmware in the device to be upgraded is performed in the same group of devices. 8.如权利要求2所述的基于网关的固件升级方法,其特征在于,8. gateway-based firmware upgrade method as claimed in claim 2, is characterized in that, 所述设备信息还包括:所述待升级设备的固件版本号;The device information further includes: the firmware version number of the device to be upgraded; 在所述获取所述待升级设备的设备信息步骤之后还包括如下步骤:After the step of acquiring the device information of the device to be upgraded, the following steps are further included: 向所述云服务器端查询所述待升级设备的最新固件;以及Query the latest firmware of the device to be upgraded from the cloud server; and 分别对比所有待升级的设备的固件版本号与所述云服务器中对应的设备最新固件版本号,若待升级设备的固件版本号低于所述最新固件版本号,则执行所述下载所述待升级设备相应的最新固件的步骤。Compare the firmware version numbers of all devices to be upgraded with the latest firmware version numbers of the corresponding devices in the cloud server. If the firmware version numbers of the devices to be upgraded are lower than the latest firmware version numbers, execute the downloading of the device to be updated. Steps to upgrade the device to the latest firmware accordingly. 9.如权利要求1所述的基于网关的固件升级方法,其特征在于,9. gateway-based firmware upgrade method as claimed in claim 1, is characterized in that, 在所述发送升级指令至所述待升级设备中的步骤之后,还包括如下步骤:After the step of sending an upgrade instruction to the device to be upgraded, it further includes the following steps: 接收一待升级设备的升级成功信息并发送重启指令至待所述升级设备。Receive upgrade success information of a device to be upgraded and send a restart instruction to the device to be upgraded. 10.如权利要求1所述的基于网关的固件升级方法,其特征在于,10. The gateway-based firmware upgrade method according to claim 1, wherein, 所述云服务器、物联网网关以及所述待升级的设备的连接方式为PLC级联。The connection mode of the cloud server, the IoT gateway and the device to be upgraded is PLC cascade. 11.一种设备的固件升级方法,其特征在于,所述方法包括如下步骤:11. A method for upgrading firmware of a device, wherein the method comprises the steps: 通过第二通讯协议无线连接至物联网网关,多个待升级设备建立局域网;Wirelessly connected to the IoT gateway through the second communication protocol, a plurality of devices to be upgraded establish a local area network; 获取所述物联网网关所发送的最新固件;Obtain the latest firmware sent by the IoT gateway; 获取所述物联网网关所述发送升级指令;Obtain the sending upgrade instruction of the IoT gateway; 开始固件升级;Start firmware upgrade; 发送升级请求至所述物联网网关;以及sending an upgrade request to the IoT gateway; and 生成一升级成功信息并发送至所述物联网网关。An upgrade success message is generated and sent to the IoT gateway. 12.如权利要求11所述的设备的固件升级方法,其特征在于,12. The device firmware upgrade method according to claim 11, wherein, 在所述获取所述物联网网关所述发送的最新固件步骤之前,还包括:Before the step of acquiring the latest firmware sent by the IoT gateway, the method further includes: 接收所述物联网网关所发送的设备信息查询请求;receiving a device information query request sent by the IoT gateway; 发送设备信息至所述物联网网关,所述设备信息包括空闲RAM容量;所述物联网网关根据设备信息分别判断每一待升级设备的空闲RAM容量是否大于一预设值;若其中一待升级设备的空闲RAM容量大于所述预设值,判定所有待升级设备为直接升级设备;若所有待升级设备的空闲RAM容量皆小于于所述预设值,判定所有待升级设备为间接升级设备;Send device information to the IoT gateway, where the device information includes free RAM capacity; the IoT gateway determines whether the free RAM capacity of each device to be upgraded is greater than a preset value according to the device information; if one of the devices to be upgraded If the idle RAM capacity of the device is greater than the preset value, it is determined that all the devices to be upgraded are directly upgraded devices; if the idle RAM capacity of all the devices to be upgraded is less than the preset value, it is determined that all the devices to be upgraded are indirectly upgraded devices; 获取从所述物联网网关所发送的分片标记或不分片标记,若所有待升级设备为直接升级设备,则获取不分片标记;若所有待升级设备为间接升级设备,则获取分片标记。Obtain the fragmentation mark or the non-fragmentation mark sent from the IoT gateway, if all the devices to be upgraded are direct upgrade devices, obtain the non-fragmentation mark; if all the devices to be upgraded are indirect upgrade devices, obtain the fragmentation mark. 13.如权利要求12所述的设备的固件升级方法,其特征在于,13. The device firmware upgrade method according to claim 12, wherein, 若所有待升级设备获取不分片标记,则在所述获取所述物联网网关所发送的最新固件的步骤中,具体包括如下步骤:If all the devices to be upgraded acquire the non-fragmentation flag, the step of acquiring the latest firmware sent by the IoT gateway specifically includes the following steps: 空闲RAM容量大于所述预设值的待升级设备获取所述最新固件。The device to be upgraded whose free RAM capacity is greater than the preset value acquires the latest firmware. 14.如权利要求12所述的设备的固件升级方法,其特征在于,14. The device firmware upgrade method according to claim 12, wherein, 若所有待升级设备获取分片标记,则在所述获取所述物联网网关所发送的最新固件的步骤中,具体包括如下步骤:If all the devices to be upgraded obtain fragmentation marks, the step of obtaining the latest firmware sent by the IoT gateway specifically includes the following steps: 获取最新固件或任意一固件片段;确保两个以上间接升级设备所接收的固件片段能够拼合成一完整的新固件。Obtain the latest firmware or any firmware fragment; ensure that the firmware fragments received by more than two indirect upgrade devices can be combined into a complete new firmware. 15.如权利要求13所述的设备的固件升级方法,其特征在于,15. The device firmware upgrade method according to claim 13, wherein, 所述开始固件升级的步骤中,具体包括如下步骤:The steps of starting the firmware upgrade specifically include the following steps: 第一直接升级设备获取最新固件并升级;所述第一直接升级设备的空闲RAM容量大于所述预设值;The first direct upgrade device obtains the latest firmware and upgrades it; the free RAM capacity of the first direct upgrade device is greater than the preset value; 第二直接升级设备发送升级请求;所述第二直接升级设备与所述第一直接升级设备的设备类型相同,所述第二直接升级设备的空闲RAM容量小于所述预设值;以及A second direct upgrade device sends an upgrade request; the second direct upgrade device has the same device type as the first direct upgrade device, and the free RAM capacity of the second direct upgrade device is smaller than the preset value; and 第二直接升级设备接收所述第一直接升级设备或所述物联网网关发送的最新固件。The second direct upgrade device receives the latest firmware sent by the first direct upgrade device or the IoT gateway. 16.如权利要求14所述的设备的固件升级方法,其特征在于,16. The firmware upgrade method of the device according to claim 14, wherein, 所述开始固件升级的步骤中,具体包括如下步骤:The steps of starting the firmware upgrade specifically include the following steps: 一间接升级设备发送自身的固件片段标号以及所需要的固件片段标号至所述物联网网关;以及An indirect upgrade device sends its own firmware segment ID and the required firmware segment ID to the IoT gateway; and 所述一间接升级设备依次获取所需要的其它的固件片段。The one indirect upgrade device sequentially acquires other required firmware segments. 17.如权利要求12所述的设备的固件升级方法,其特征在于,17. The device firmware upgrade method according to claim 12, wherein, 所述设备信息还包括设备类型以及固件版本号。The device information also includes device type and firmware version number. 18.如权利要求11所述的设备的固件升级方法,其特征在于,18. The device firmware upgrade method according to claim 11, wherein, 在所述发送升级请求至所述物联网网关的步骤之前,包括:Before the step of sending an upgrade request to the IoT gateway, it includes: 判断当前的固件版本号是否低于所述最新固件,若是则执行所述发送升级请求至所述物联网网关的步骤。Determine whether the current firmware version number is lower than the latest firmware, and if so, execute the step of sending an upgrade request to the IoT gateway. 19.如权利要求11所述的设备的固件升级方法,其特征在于,19. The device firmware upgrade method according to claim 11, wherein, 在所述生成一升级成功信息并发送至所述物联网网关的步骤之后,还包括如下步骤:After the step of generating an upgrade success message and sending it to the IoT gateway, it further includes the following steps: 接收由所述物联网网关发送的一重启指令,重启成功后发送一重启成功信息至所述物联网网关。A restart instruction sent by the IoT gateway is received, and a restart success message is sent to the IoT gateway after the restart is successful.
CN202011606085.XA 2020-12-30 2020-12-30 Firmware upgrading method and equipment based on gateway Active CN112612497B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011606085.XA CN112612497B (en) 2020-12-30 2020-12-30 Firmware upgrading method and equipment based on gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011606085.XA CN112612497B (en) 2020-12-30 2020-12-30 Firmware upgrading method and equipment based on gateway

Publications (2)

Publication Number Publication Date
CN112612497A true CN112612497A (en) 2021-04-06
CN112612497B CN112612497B (en) 2024-08-06

Family

ID=75249236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011606085.XA Active CN112612497B (en) 2020-12-30 2020-12-30 Firmware upgrading method and equipment based on gateway

Country Status (1)

Country Link
CN (1) CN112612497B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113238884A (en) * 2021-05-06 2021-08-10 国家计算机网络与信息安全管理中心 Firmware file detection method and device, electronic equipment and storage medium
CN113242631A (en) * 2021-04-20 2021-08-10 深圳市海洋王照明工程有限公司 Illumination control method, device, system and storage medium
CN113553083A (en) * 2021-07-30 2021-10-26 佛山市顺德区美的电子科技有限公司 Program upgrading method and device for air conditioning system, air conditioning system and storage medium
CN113641377A (en) * 2021-07-02 2021-11-12 佛山市淇特科技有限公司 Method, device, equipment and storage medium for upgrading firmware of dumb equipment
CN113986289A (en) * 2021-10-28 2022-01-28 浪潮软件科技有限公司 Firmware upgrading method and device for edge computing gateway
CN114465894A (en) * 2021-12-28 2022-05-10 湖北华中光电科技有限公司 Software upgrading method for laser alarm equipment
WO2022179513A1 (en) * 2021-02-23 2022-09-01 苏州欧普照明有限公司 Method for automatically upgrading smart devices, and cloud server
CN115134342A (en) * 2022-06-06 2022-09-30 广州云雷智能科技有限公司 PLC-based equipment remote upgrade method, device, equipment and storage medium
CN116347425A (en) * 2023-02-07 2023-06-27 苏州德姆斯信息技术有限公司 A wireless terminal firmware upgrade method and system
CN119561923A (en) * 2024-12-03 2025-03-04 无锡冠之杰数据信息技术有限公司 A remote upgrade method for an Internet of Things gateway

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092657A (en) * 2013-01-18 2013-05-08 郑州威科姆科技股份有限公司 Embedded device upgrade method based on peer-to-peer (P2P)
US20130311982A1 (en) * 2012-05-15 2013-11-21 Oracle International Corporation Automated upgrade for an operating system using a gateway server
CN106789236A (en) * 2016-12-20 2017-05-31 深圳盈达信息科技有限公司 A kind of method of the FOTA remote onlines upgrading of fusion WiFiP2P
CN109471651A (en) * 2018-12-27 2019-03-15 北京昊恒天科技有限公司 A kind of firmware upgrade method, gateway and firmware upgrade system
WO2019203865A1 (en) * 2018-04-20 2019-10-24 Carrier Corporation Automatic device-to-device firmware upgrade of a wireless network
CN110875850A (en) * 2019-09-27 2020-03-10 深圳市中电数通智慧安全科技股份有限公司 Firmware upgrading method and system, readable storage medium and terminal equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130311982A1 (en) * 2012-05-15 2013-11-21 Oracle International Corporation Automated upgrade for an operating system using a gateway server
CN103092657A (en) * 2013-01-18 2013-05-08 郑州威科姆科技股份有限公司 Embedded device upgrade method based on peer-to-peer (P2P)
CN106789236A (en) * 2016-12-20 2017-05-31 深圳盈达信息科技有限公司 A kind of method of the FOTA remote onlines upgrading of fusion WiFiP2P
WO2019203865A1 (en) * 2018-04-20 2019-10-24 Carrier Corporation Automatic device-to-device firmware upgrade of a wireless network
CN109471651A (en) * 2018-12-27 2019-03-15 北京昊恒天科技有限公司 A kind of firmware upgrade method, gateway and firmware upgrade system
CN110875850A (en) * 2019-09-27 2020-03-10 深圳市中电数通智慧安全科技股份有限公司 Firmware upgrading method and system, readable storage medium and terminal equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蒋存波;焦阳;: "基于STM32处理器的WSN节点固件在线系统升级方法", 计算机应用与软件, no. 05, 15 May 2016 (2016-05-15) *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022179513A1 (en) * 2021-02-23 2022-09-01 苏州欧普照明有限公司 Method for automatically upgrading smart devices, and cloud server
CN113242631A (en) * 2021-04-20 2021-08-10 深圳市海洋王照明工程有限公司 Illumination control method, device, system and storage medium
CN113238884A (en) * 2021-05-06 2021-08-10 国家计算机网络与信息安全管理中心 Firmware file detection method and device, electronic equipment and storage medium
CN113641377A (en) * 2021-07-02 2021-11-12 佛山市淇特科技有限公司 Method, device, equipment and storage medium for upgrading firmware of dumb equipment
CN113553083A (en) * 2021-07-30 2021-10-26 佛山市顺德区美的电子科技有限公司 Program upgrading method and device for air conditioning system, air conditioning system and storage medium
CN113986289A (en) * 2021-10-28 2022-01-28 浪潮软件科技有限公司 Firmware upgrading method and device for edge computing gateway
CN114465894A (en) * 2021-12-28 2022-05-10 湖北华中光电科技有限公司 Software upgrading method for laser alarm equipment
CN114465894B (en) * 2021-12-28 2023-09-12 湖北华中长江光电科技有限公司 Software upgrading method of laser alarm equipment
CN115134342A (en) * 2022-06-06 2022-09-30 广州云雷智能科技有限公司 PLC-based equipment remote upgrade method, device, equipment and storage medium
CN116347425A (en) * 2023-02-07 2023-06-27 苏州德姆斯信息技术有限公司 A wireless terminal firmware upgrade method and system
CN119561923A (en) * 2024-12-03 2025-03-04 无锡冠之杰数据信息技术有限公司 A remote upgrade method for an Internet of Things gateway

Also Published As

Publication number Publication date
CN112612497B (en) 2024-08-06

Similar Documents

Publication Publication Date Title
CN112612497B (en) Firmware upgrading method and equipment based on gateway
EP4250685B1 (en) Network configuration method and apparatus for internet of things device
EP4009165A1 (en) System that provides embedded software to an embedded system
CN112187531B (en) Module upgrading method and system, storage medium and electronic device
CN106301959B (en) Gateway batch upgrading method and system based on WINDOWS and LINUX platform
CN105491159A (en) Firmware upgrade pack transmitting method, firmware upgrade pack acquiring method, firmware upgrade pack transmitting device and firmware upgrade pack acquiring device
CN111638891B (en) Device upgrade method, device, terminal device and storage medium
CN107977215B (en) Vehicle-mounted system upgrading method and device
CN103580921A (en) Automatic network equipment upgrading method and automatic network equipment upgrading system
CN112671572B (en) Method, device, storage medium and electronic device for smart device network distribution
CN107545892B (en) Equipment control method, device and system
CN111913397B (en) Device control method, device, storage medium, and electronic apparatus
WO2021203384A1 (en) Device upgrade method and apparatus, and storage medium
CN112764803A (en) Version upgrading method and device, storage medium and electronic device
CN106648721A (en) Method and device for upgrading software
CN108462984A (en) A kind of method and terminal carrying out access network management
CN101562886A (en) Terminal-background integrated software platform, system and method
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN113993122B (en) NB-IOT terminal, communication method and communication system
CN104602047A (en) Share method of EPG (error pattern generator) data, server, terminal and system
CN110138571A (en) A kind of time control method, timing control system, gateway and readable storage medium storing program for executing
CN114697375B (en) Voice packet switching method and device, storage medium and electronic device
CN110109380A (en) A kind of time control method, timing control system, gateway and readable storage medium storing program for executing
CN113946354A (en) Software upgrading method and device, storage medium and electronic device
CN109803333A (en) It is coupled reorientation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant