WO2002084484A2 - Method of remotely upgrading firmware in field-deployed devices - Google Patents

Method of remotely upgrading firmware in field-deployed devices Download PDF

Info

Publication number
WO2002084484A2
WO2002084484A2 PCT/CA2002/000556 CA0200556W WO02084484A2 WO 2002084484 A2 WO2002084484 A2 WO 2002084484A2 CA 0200556 W CA0200556 W CA 0200556W WO 02084484 A2 WO02084484 A2 WO 02084484A2
Authority
WO
WIPO (PCT)
Prior art keywords
application program
upgrade
new
server
firmware
Prior art date
Application number
PCT/CA2002/000556
Other languages
French (fr)
Other versions
WO2002084484A3 (en
Inventor
Marie-Eve Lajoie
François ST-ARNAUD
Steve Baril
Jacques Boivin
Original Assignee
Domosys Corporation
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 Domosys Corporation filed Critical Domosys Corporation
Publication of WO2002084484A2 publication Critical patent/WO2002084484A2/en
Publication of WO2002084484A3 publication Critical patent/WO2002084484A3/en

Links

Classifications

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

Definitions

  • firmwares contain data and programs to perform a variety of tasks, including controlling a plurality of output devices in response to a plurality of input devices.
  • the firmware data and programs hereafter generically referred to as “firmware”
  • NVM nonvolatile memory
  • firmware provider sends the user (or field service personnel) a new NVM containing the upgraded firmware.
  • the old NVM which stores the previous firmware is physically removed (unplugged) from the processor module and replaced with the new NVM containing the upgraded firmware.
  • a typical NVM used in such a scenario is one-time programmable read-only memory (ROM).
  • a first drawback to this method is that it is causes an undesirable transportation delay.
  • the transportation delay is caused by the fact that the new ROM is a physical unit, which must be transported from the firmware provider up to the field-deployed device. These delays are often extremely expensive and inconvenient for users, especially if devices are taken out of operation pending the arrival of the firmware upgrade.
  • a second drawback to the above-mentioned method is that it is hardware intensive. Typically, the device must be physically removed from its casing and the ROM must be replaced manually. Although this approach may initially appear simple, replacing the ROM may not be the best solution in many circumstances. For instance, sockets are expensive and are often the source of reliability problems. Conversely, the removal of through-hole ROM chips that have been soldered into a board can be time consuming and difficult. If surface mount packaging is used, then specialized equipment is needed to replace the parts. Yet, even with an experienced person doing the de-soldering, there are always the risks that the whole board be ruined accidentally. Furthermore, if foundry ROM programmed-at-the-mask level is used, then there is the additional issue of the lead-time required to obtain the newer version of the parts.
  • a third drawback of the conventional method is that it requires additional hardware, namely the NVM itself.
  • the firmware provider must typically incur the additional cost of providing, programming and shipping the new NVM for the purpose of performing the upgrade. Additionally, if the firmware provider does not have any NVM available when the user requests an upgrade, then the user must wait an additional period of time before the upgrade can be performed.
  • Another method is to replace the ROM type NVM with an electrically erasable and re-programmable, more particularly an alterable non-volatile random access memory, for instance EEPROM (electrically erasable programmable read-only memory) or Flash memory, and store the firmware therein.
  • EEPROM electrically erasable programmable read-only memory
  • Flash memory Flash memory
  • Conventional methods used hitherto using such memories typically include a separate interface to the field device, such as a serial port or similar access arrangement, for downloading information.
  • U.S Patent No. 5,566,335 to Nash et al. teaches such a method.
  • the EEPROM memory is generally divided in 16 kB blocks that can each hold a new version of the firmware, in effect multiplying the memory requirements for an upgradable device.
  • U.S. Patent No. 5,878,256 to Bealkowski et al. teaches a similar method for upgrading the BIOS firmware on personal computers.
  • Another possible method is to reprogram memories remotely via a network link, thereby eliminating transport delays and most, if not all, hardware manipulations.
  • U.S. Patent No. 6,055,632 to Deegan et al. teaches how to reprogram NVM via an Ethernet connection linking a personal computer to a communication daughter board interfaced to the device's motherboard. The firmware upgrade is downloaded to the daughter board's dual port random access memory (RAM). The daughter board then reprograms the Flash NVM from its dual port RAM.
  • U.S. Patent No. 6,055,633 to Schrier et al. teaches how to reprogram memories in field devices over a power communications link, by further controlling the amount of current the device under upgrade draws in the process.
  • the present invention is aimed at overcoming the above-mentioned drawbacks by providing a client-server architecture which basically consists of an upgrade server and one or more field-deployed devices.
  • the upgrade server acts as a specialized control network node whose task is to remotely reprogram (upgrade) not only the application program of the firmware, but also other parts of the firmware as well.
  • the firmware includes a small upgrade program which performs programming tasks on the device according to commands received by the server.
  • the method carried out by the upgrade program allows to upgrade the application program and the base layers. It may also be used to upgrade individual sections of the base layers, such as the upgrade program itself, the communication protocol stack and a set of mutable interrupt vector table, without the need of additional memory.
  • the upgrade program preferably has a bootstrap function which is responsible for verifying the integrity of the firmware upon reset of a device before transferring control to or back to the application program. Upgrades can be either server-initiated (the firmware provider pushes the new version out to the field) or device-initiated (the device pulls the latest firmware version from the server).
  • a method of remotely upgrading an application program of a firmware in a field- deployed device connected to an upgrade server via a network the device having a non-volatile memory including an application program memory area and an upgrade program memory area in which are respectively located the application program and an upgrade program, the method comprising:
  • a non-volatile memory including a application program memory area and base layers memory areas in which ar respectively located the application program and the base layers, the bas layers including an upgrade program
  • a non-volatile memory including an applicatio program memory area and base layers memory areas in which are respectivel located the application program and the base layers, the base layers includin an upgrade program
  • the method comprising: transferring control of the device to the upgrade program; copying from the server new base layers into the application program memory area, the new base layers including a new upgrade program; copying the new base layers from the application program memory area to the base layers memory areas; transferring control of the device to the new upgrade program in the base layers memory areas; copying from the server a new application program in the application program memory area; and transferring control of the device to the new application program.
  • a system for remotely upgrading an application program of a firmware in a field-deployed device the device having a non-volatile memory including an application program memory area in which is located the application program, the system comprising:
  • means for providing a connection to a server via a network means for taking over control of the device and initiating an upgrade process; means for copying from the server a new application program in the application program memory area of the device; and means for transferring control of the device to the new application program.
  • a system for remotely upgrading a firmware in a field-deployed device the firmware including an application program and base layers, the system comprising:
  • non-volatile memory provided in the device, the non-volatile memory including an application program memory area and base layers memory areas in which are respectively located an application program and the base layers, the base layers including an upgrade program; means for providing a connection to a server via a network; means for transferring control of the device to the upgrade program; means for copying from the server new base layers in the application program memory area; means for copying the base layers from the application program memory area to the base layers memory areas; means for transferring control of the device to the new upgrade program in the base layers memory areas; means for copying from the server a new application program in the application program memory area; and means for transferring control of the device to the new application program.
  • FIG. 1 is a block diagram generally illustrating an example of a network configuration.
  • FIG. 2 is a block diagram depicting the elements of a single upgradable device in accordance with a possible and preferred embodiment.
  • FIG. 3 depicts the modular usage of the NVM in accordance with a preferred embodiment.
  • FIG. 4 depicts the double-vectored interrupt vector tables (IVTs) in accordance with a preferred embodiment.
  • FIG. 5 is a flowchart showing the operation of the firmware integrity checker (FIC) in accordance with a preferred embodiment.
  • FIG. 6 is a flowchart showing the operation of the upgrade process from a device's viewpoint in accordance with a preferred embodiment.
  • FIG. 7 is a sequence diagram illustrating the REQUEST and CONFIRM lock step mechanism used in the upgrade protocol in accordance with a preferred embodiment.
  • FIG. 1 shows a block diagram of the network 100.
  • the network 100 forms, for example, a Local Area Network (LAN) or a wide Area Network (WAN).
  • the network 100 allows to interconnect an upgrade server 110 with one or more field-deployed devices 120.
  • the approach utilized in the illustrated embodiment leverages the communications link that is intrinsic to devices 120.
  • One possible embodiment is to use a power line control network. For instance, the Domosys Corporation PowerBusTM technology may be used as the protocol on the power line LAN.
  • field-deployed device refers to a device for which the firmware is to be upgraded, regardless of its location. The device does not necessarily need to be at a remote location. Furthermore, the term “upgrade” or “upgraded” is to be taken in a broad sense and covers the cases where a part of the firmware is only replaced by an identical version, for instance because the previous copy was corrupted.
  • the upgrade server is referred to as the "server” hereafter.
  • the server 110 may be in the form of a personal computer (PC), a handheld device, a gateway, a modem or any other device with a corresponding server application.
  • the server 110 and the device 120 integrate a transceiver.
  • the server 110 and the firmware provider 170 are preferably connected together (permanently or on-demand), for example via a WAN or Internet link (140, 150, 160). It is also possible that the firmware provider 170 and the server 110 be a single node.
  • the corresponding file with the upgraded firmware is transferred from the firmware provider 170 to the server 110.
  • the server 110 may also pull new firmware versions from the firmware provider 170, for instance by periodic polling.
  • the firmware is generally an object file in HEX format, which may be compressed for transmission between the firmware provider 170 and the server 110 of a particular LAN using algorithms such as ZIPTM or the like.
  • the server 110 initiates the upgrade process (server-initiated upgrade) upon availability of a new firmware. First, it sends out an escape message to a device 120 that requires upgrading. Upon reception of the escape message, the device 120 breaks out of its normal operation mode and transfer the control to the upgrade program 320. From this point on, the server 110 and upgrade program 320 preferably communicate following a lock step upgrade protocol. This protocol consists of the server 110 sending out messages and waiting for an acknowledgment from the device 120 before sending out the next message. This protocol ensures a highly accurate programming of the NVM 210 of the device 120. The messages defined by the upgrade protocol consist of programming commands. These commands allow for remotely erasing, reading and writing to the device 120 being upgraded.
  • a device 120 may initiate the upgrade process if it determines that it holds a corrupted firmware (device-initiated upgrade). Such upgrade is usually done with a complete reprogramming of the firmware therein.
  • FIG. 2 shows a block diagram of a single device 120, which device is referred to as the client in the upgrade protocol. It preferably comprises a microcontroller 270, boot ROM 200, RAM 280, NVM 210 and the network physical layer coupling module 260.
  • the microcontroller 270 is, for instance, a Domosys U- ChipTM which is built around an Intel 8052-based core and integrates all elements depicted in FIG. 2, with the exception of some external analog components of the physical layer coupling the power line.
  • the NVM 210 is preferably a 64 kB on-chip flash block with a 512-byte page size (128 pages). It holds re-programmable code and persistent data.
  • the boot ROM 200 contains a library of functions for erasing, writing and reading to the NVM.
  • the NVM 210 also includes a mutable interrupt vector table (2nd IVT) memory area 250, a communication protocol stack memory area 240, the upgrade program memory area 230, an application program memory area 220 and a firmware header memory area 215.
  • the NVM 210 also includes other memory areas (not shown).
  • the upgrade program memory area 230, the communication protocol stack memory area 240 and the mutable interrupt vector table (2nd IVT) memory area 250 form the base layers.
  • the boot ROM functions are available to the code running in the NVM 210. Furthermore, they are preferably made accessible via an external link, for instance an RS-232 serial interface and a fast parallel interface for in-factory programming and on-site reprogramming if required. However, the NVM 210 is preferably initially programmed in factory.
  • FIG. 3 illustrates an example of the 64 kB NVM modular usage.
  • the firmware integrity checker (FIC) 350 (with the jump to FIC code 370 at address 0, the reset vector) and immutable interrupt vector table (IVT) 360 are both stored within page 0.
  • the mutable IVT 340, communication protocol stack 330 and upgrade program 320 form a module called the base layers, which starts at page 1 (address 0200h).
  • the base layers may take up to an additional 63 512-byte pages, leaving 64 pages (32 kB), half the total memory space of the NVM 210, for the application program 310 and current firmware header 300.
  • the application program 310 is typically the control program of the corresponding device 120.
  • the current firmware header 300 holds persistent data on the current application program 310 and on the state of the upgrade program 320.
  • TABLE 1 describes some of the possible variables: TABLE 1
  • MINOR REVISION 1 byte The application program's third version number
  • FIG.4 illustrates an example of the double-vectored interrupt vector tables (IVTs).
  • ISRs interrupt service routines
  • page 0 containing the FIC 400 and 1st IVT 410 is immutable (i.e.: may not be upgraded).
  • the reason for the two IVTs is that the microcontroller always expects to find the IVT 410 in page 0.
  • page 0 may not be remotely upgraded. Having a double-vectored IVT thus allows the addresses of the ISRs to change between upgrades without modifying page 0.
  • the server 110 can remotely reprogram most of the firmware. If the server 110 fails to receive a positive acknowledgment from the device 120, the server 110 preferably retries until all commands have succeeded. Once the server 110 has completed its programming task, the devices 120 are forced to reset. Since the upgrade program 320 also acts as a bootstrap, it takes control and allows the device 120 to run a cyclic redundancy check (CRC) on each packet received to verify its integrity. Each packet sent by the server 40 thus include a checksum number. A CRC check on the overall or parts of the new firmware is also preferably carried out. The server 110 provides the checksum number, as is well known in the art.
  • CRC cyclic redundancy check
  • the device 120 sends a message to the server 110, which may then retry the upgrade process.
  • the device 120 is unable to communicate on the network and requires on-site maintenance for upgrading via alternate means.
  • Upgrade of the upgrade program 320 involves having the upgrade program 320 copy itself to or from the application program area 220 of the NVM 210 and transfer the control to this copy.
  • the communication protocol stack 330 may also be upgraded using a similar method. Control is then returned to the newly upgraded copy.
  • the application program 310 which was overwritten in the process, is reprogrammed.
  • the application upgrade where only the application program 310 is upgraded. This type of upgrade typically corresponds to the server-initiated upgrade.
  • the second type is the self- upgrade, in which the base layers, comprising the upgrade program 320, the communication protocol stack 330 and the mutable IVT 340, are preferably upgraded.
  • the application program 310 In the case of self-upgrade, the application program 310 must also be upgraded (or at least reprogrammed with the previous version), since the application program area 220 is overwritten because it is used as a temporary buffer.
  • the application program 310 is responsible for switching to upgrade mode by transferring control to the upgrade program 320 on reception of the appropriate message from the server 110, or in reaction to a local switch to upgrade mode. Once the upgrade program 320 takes control, it communicates with the server 110 and uses the boot ROM 200 functions to execute from the server 110.
  • the upgrade of the application program 310 is simply achieved by copying the new application program 310 from the server 110 to the application program memory area 220.
  • the firmware header 300 is updated, preferably right before the upgrade of the application program 310 begins.
  • the new firmware header 300 is useful because it indicates the last page, thus the length of the application program. Nevertheless, some embodiments may be provided with application programs having a fixed length, thus not requiring an end page or length indicator.
  • the base layers of the firmware can be upgraded in addition to the application program 310.
  • the base layers are usually completely upgraded, it is possible to upgrade only one or two of them.
  • the upgrade process preferably starts by the transferring control of the device 120 to the upgrade program 320. Instructions are then given to copy the new upgrade program 320 from the server 110 to the application program memory area 220. Once this is completed, the new upgrade program is copied to the upgrade program memory area 230 and control of the device 120 is subsequently transferred to the new upgrade program 320 therein. A new application program is finally copied from the server 110 in the application program memory area 220 since the former application program was overwritten.
  • the upgrade of the communication stack 240 could be achieved in a similar fashion.
  • the upgrade of the mutable interrupt table (2nd IVT) 340 could also be achieved in a similar fashion.
  • the immutable interrupt vector table (1st IVT) 360 needs to be temporarily referenced to addresses in the application program area 220 were the mutable interrupt vector table (2nd IVT) 340 is copied. Later, once the copying of the new mutable interrupt table (2nd IVT) from the server 110 is completed, the immutable interrupt vector table (1st IVT) 360 is re-referenced to addresses in the mutable interrupt vector table (2nd IVT) memory area 250.
  • FIG. 5 shows a flowchart of the machine behavior of the firmware integrity checker (FIC) state.
  • the FIC 350 is the first code to run when control is transferred from the boot ROM 206 to the NVM 210 after a reset or power up. As its name suggests, the FIC 350 is used to verify the validity of the firmware, but it is also responsible for transferring the data from the application layer to the base layers, in case of a self-upgrade, via the transfer routine (the application program area 220 in the NVM 210 is overwritten since it is used as a temporary buffer during a self-upgrade).
  • the state of the upgrade process is preferably stored in a persistent data area in NVM 210, namely the current firmware header 300.
  • the variable is CLIENT STATE from TABLE 1.
  • the behavior of the FIC 350 preferably depends on the value of this state variable. TABLE 2 lists the possible states: TABLE 2
  • IDLE The application program is running. There is no upgrade in process.
  • the device is currently processing self-upgrade.
  • TRANSFER PROCESS The device is currently transferring a newly received upgrade from the application program area to the base layer area.
  • the FIC state is IDLE, no upgrade process is running.
  • the control can be transferred to the application program 310 if the firmware passes the CRC-16 (calculated with the polynomial x 16 + x 15 + x 2 + 1 ) check of the base layers and of the application program 310. If the firmware passes the CRC-16 integrity check, the FIC 350 transfers control to the application program 310. If the application CRC test fails, the FIC 350 switches control to the upgrade program 320. If the base layers CRC test fails, it is an indication that the communications protocol stack 330 may be corrupted, rendering remote upgrading impossible. In this case, on-site maintenance is required.
  • FIG. 6 shows the operation of the upgrade process in the form of a flowchart. Commands (referred to as primitives) are sent from the server 110 to the device 120 being upgraded. These primitives are sent over the network 100. The upgrade process sits at the application layer of the communication stack, i.e. received primitives move up the stack up to the application layer. This allows for leverage of lower level features of the network 100 such as encryption and segmentation.
  • a set of request primitives is available to the server 110, as shown in TABLE 3:
  • REQUEST FORCE RESET This primitive is used by the server to remotely force a device to reset in case of a major problem.
  • REQUEST HEADER UPGRADE This primitive is used to upgrade a device Current Firmware Header. Its parameters are the variables from TABLE 1 except LAST PAGE.
  • REQUEST WRITE PAGE This primitive is used to program a 512-byte NVM page. This primitive has a page number parameter and up to 512 bytes of data. Confirmation of remote execution is assured by the reception of a CONFIRM_RESULT primitive.
  • REQUEST BASIC READ This primitive is used to read up to 512 bytes from the NVM. It takes two parameters: the address at which to start reading and the number of bytes to read. The read data is returned
  • the application program 310 Upon reception of an upgrade primitive, the application program 310 that supports the remote upgrade feature must transfer control to the upgrade program 320, which will handle the request. Upon completion of the requested operation, the upgrade program 320 informs the server 110 by sending the appropriation confirm primitive, as shown in TABLE 4:
  • CONFIRM RESULT This primitive is sent to confirm the reception of a REQUEST_PAGE_WRITE or a
  • REQUEST_HEADER_ UPGRADE primitive It takes a result code parameter that indicates success or describes failure.
  • CONFIRM READ DATA This primitive is sent in response to a REQUEST_BASIC_ READ primitive. Its parameter is the data read from NVM, up to 512 bytes.
  • FIG. 7 illustrates an example of the lock step upgrade protocol. It illustrates a CONFIRM primitive (see TABLE 4) must acknowledge a REQUEST primitive (see TABLE 3) before the next REQUEST primitive can be sent. Therefore, the server 110 has to keep only one request on hand for retransmission.
  • the lock step acknowledgment guarantees that all older packets have been received. Notice that the server 110 is considered the sender and the client 120 is considered the receiver. The first sends data and receives acknowledgments; the other receives data and sends acknowledgments.
  • This protocol is very restrictive, in order to simplify implementation. For example, the lock step acknowledgement provides flow control and eliminates the need to reorder incoming data requests or keep a request list.
  • the server 110 may upgrade one device 120 at a time or a plurality of devices 120 simultaneously. If, for some reasons, the communication is lost with one or more devices 120, for instance the server 110 does not receive a CONFIRM primitive for a REQUEST primitive, the server 110 will timeout and may retransmit its last request. It may simultaneously continue to proceed with the upgrade of the other devices 120, in the case of a plurality of devices 120 being upgraded simultaneously, and later resume the upgrade with the one or ones that failed.
  • the LAST PAGE variable in the current firmware header 300 (see TABLE 1 ) is preferably used to determine the last page for which a successful upgrade was achieved before failure, thus avoiding to restart from the beginning.
  • the LAST PAGE parameter is preferably implemented as bytes provided in a number related to the number of pages. All these bytes are initially set with a non-zero value and are cleared one by one as the upgrade progresses. The upgrade program knows that the last page is reached once all bytes are cleared. Other embodiments are also possible as well.
  • the server 110 will preferably receive an INDICATION_UPGRADE_REQUEST (see TABLE 5) primitive with a nonzero LAST PAGE. In that case, the server 110 will restart transmission where it failed. If the server 110 cannot restart the upgrade from the point of interruption, then it restarts transmission from the beginning. One can also choose to restart the upgrade process from the beginning in all cases where there was a failure.
  • This primitive is sent by the upgrade program to initiate the upgrade protocol. In case of device- initiated upgrades, this primitive is preferably sent asynchronously, without any upgrade program interaction. For server-initiated upgrades, this primitive is sent in response to a server's request for activation of the upgrade program.
  • This primitive uses a page number parameter. A null parameter indicates the start of an upgrade. If an upgrade is interrupted, this parameter will be set to the last successful page write.
  • this primitive uses as parameter the variables of TABLE 1 except LAST PAGE. Finally, it preferably holds additional identification data, such as the device's serial number, product type and base layers version number.
  • the upgrade protocol was designed to take the burden off the programmable devices, where resources are scarce, and delegate it mostly to the server 110.
  • the server 110 manages the whole upgrade process, but the application program 310 is responsible for switching control to the upgrade program 320 upon reception of the request primitives. Once the device 120 is in upgrade mode, any traffic other than upgrade primitives are ignored. Any transfer actually begins with the first INDICATION_UPGRADE_REQUEST primitive sent by the device 120 to the server 110. Preferably, it is up to the server 110 to decide what kind of upgrade it will process.
  • the present invention allows to perform firmware upgrades without any transportation delays and without any additional hardware or on-site human intervention. It also allows to upgrade substantial parts of the firmware without the need of additional memory.

Abstract

The method is used for downloading firmware upgrades to a non-volatile memory (210) of a targeted remote programmable embedded field-deployed device (120) over a communication network (100). The device (120) is connected to the network (100) and requires no human intervention at the remote site. The firmware includes a small upgrade program (320) which performs programming tasks on the device (120) according to commands received by a server (110). The method carried out by the upgrade program (320) allows to upgrade the application program (310), the communication protocol stack (330), a set of mutable interrupt vector table (340) or itself without the need of additional memory. It also has a bootstrap function which is responsible for verifying the integrity of the firmware upon reset of the device (120) before transferring control to the new application program (310). Upgrades can be either server-initiated (the firmware provider pushes the new version out to the field) or device-initiated (the device pulls the latest firmware version from the server).

Description

METHOD OF REMOTELY UPGRADING FIRMWARE IN FIELD-DEPLOYED DEVICES
In the past, it has been exceedingly difficult to reprogram firmwares associated with field-deployed devices. These firmwares contain data and programs to perform a variety of tasks, including controlling a plurality of output devices in response to a plurality of input devices. The firmware data and programs, hereafter generically referred to as "firmware", are typically stored in a nonvolatile memory (NVM) contained in each device. Periodically, it is necessary or desirable to upgrade the firmware of each device in order to fix bugs or to improve the performance thereof.
Several methods were devised in the past to upgrade firmware. One conventional method is that the firmware provider sends the user (or field service personnel) a new NVM containing the upgraded firmware. To perform the firmware upgrade, the old NVM which stores the previous firmware is physically removed (unplugged) from the processor module and replaced with the new NVM containing the upgraded firmware. A typical NVM used in such a scenario is one-time programmable read-only memory (ROM).
A first drawback to this method is that it is causes an undesirable transportation delay. The transportation delay is caused by the fact that the new ROM is a physical unit, which must be transported from the firmware provider up to the field-deployed device. These delays are often extremely expensive and inconvenient for users, especially if devices are taken out of operation pending the arrival of the firmware upgrade.
A second drawback to the above-mentioned method is that it is hardware intensive. Typically, the device must be physically removed from its casing and the ROM must be replaced manually. Although this approach may initially appear simple, replacing the ROM may not be the best solution in many circumstances. For instance, sockets are expensive and are often the source of reliability problems. Conversely, the removal of through-hole ROM chips that have been soldered into a board can be time consuming and difficult. If surface mount packaging is used, then specialized equipment is needed to replace the parts. Yet, even with an experienced person doing the de-soldering, there are always the risks that the whole board be ruined accidentally. Furthermore, if foundry ROM programmed-at-the-mask level is used, then there is the additional issue of the lead-time required to obtain the newer version of the parts.
A third drawback of the conventional method is that it requires additional hardware, namely the NVM itself. The firmware provider must typically incur the additional cost of providing, programming and shipping the new NVM for the purpose of performing the upgrade. Additionally, if the firmware provider does not have any NVM available when the user requests an upgrade, then the user must wait an additional period of time before the upgrade can be performed.
Another method is to replace the ROM type NVM with an electrically erasable and re-programmable, more particularly an alterable non-volatile random access memory, for instance EEPROM (electrically erasable programmable read-only memory) or Flash memory, and store the firmware therein. Conventional methods used hitherto using such memories typically include a separate interface to the field device, such as a serial port or similar access arrangement, for downloading information. For instance, U.S Patent No. 5,566,335 to Nash et al. teaches such a method. The EEPROM memory is generally divided in 16 kB blocks that can each hold a new version of the firmware, in effect multiplying the memory requirements for an upgradable device. U.S. Patent No. 5,878,256 to Bealkowski et al. teaches a similar method for upgrading the BIOS firmware on personal computers.
These methods are frequently not suitable, as they generally require an operator to go near the field-deployed device in order to connect a downloading device, such as a personal computer or another programming apparatus. The operation must be repeated for each device to be upgraded. This task is thus very tedious and time consuming. It is consequently a very expensive way of achieving the necessary reprogramming of field-deployed devices. A further drawback is that on-site re-programming is often not possible because of the location of many field-deployed devices. Furthermore, the devices may be enclosed in outdoor housings which would need to be opened to access the download connection. Such openings of the housings are undesirable as adverse weather conditions can wreak havoc with the delicate electronics utilized therein.
Another possible method is to reprogram memories remotely via a network link, thereby eliminating transport delays and most, if not all, hardware manipulations. For instance, U.S. Patent No. 6,055,632 to Deegan et al. teaches how to reprogram NVM via an Ethernet connection linking a personal computer to a communication daughter board interfaced to the device's motherboard. The firmware upgrade is downloaded to the daughter board's dual port random access memory (RAM). The daughter board then reprograms the Flash NVM from its dual port RAM. U.S. Patent No. 6,055,633 to Schrier et al. teaches how to reprogram memories in field devices over a power communications link, by further controlling the amount of current the device under upgrade draws in the process. This method requires doubling the memory requirements because the new firmware is stored in a temporary memory area reserved for new applications. The upper memory is utilized to accept new firmware during download operations. The lower memory contains the normal, or currently running firmware. U.S. Patent No. 5,937,198 to Nelson et al. teaches a method of remote Flash memory reprogramming that uses techniques of temporary RAM buffering and program execution as it replaces the old firmware with the upgrade. U.S. Patent No. 5,623,604 to Russell et al. and U.S. Patent No. 5,467,286 to Pyle et al. teach how to remotely alter firmware using similar means, by which the upgrade is first stored to RAM before being loaded in the NVM. Although the above-cited patents teach various methods of upgrading firmware via a network link, they involve doubling memory requirements to hold the old and new versions of the firmware at a given time during the process, thus adding costs to the devices.
The present invention is aimed at overcoming the above-mentioned drawbacks by providing a client-server architecture which basically consists of an upgrade server and one or more field-deployed devices. The upgrade server acts as a specialized control network node whose task is to remotely reprogram (upgrade) not only the application program of the firmware, but also other parts of the firmware as well. To achieve this goal, the firmware includes a small upgrade program which performs programming tasks on the device according to commands received by the server. The method carried out by the upgrade program allows to upgrade the application program and the base layers. It may also be used to upgrade individual sections of the base layers, such as the upgrade program itself, the communication protocol stack and a set of mutable interrupt vector table, without the need of additional memory. The upgrade program preferably has a bootstrap function which is responsible for verifying the integrity of the firmware upon reset of a device before transferring control to or back to the application program. Upgrades can be either server-initiated (the firmware provider pushes the new version out to the field) or device-initiated (the device pulls the latest firmware version from the server).
Accordingly, in accordance with the present invention, there is provided a method of remotely upgrading an application program of a firmware in a field- deployed device connected to an upgrade server via a network, the device having a non-volatile memory including an application program memory area and an upgrade program memory area in which are respectively located the application program and an upgrade program, the method comprising:
transferring control of the device to the upgrade program in the upgrade program memory area; copying from the server a new application program in the application prograi memory area; and transferring control of the device to the new application program.
In accordance with another aspect of the present invention, there is provide method of remotely upgrading an application program and at least one of th base layers of a firmware in a field-deployed device connected to an upgrad server via a network, the device having a non-volatile memory including a application program memory area and base layers memory areas in which ar respectively located the application program and the base layers, the bas layers including an upgrade program, the method comprising:
transferring control of the device to the upgrade program; copying from the server at least one new base layer in the application prograi memory area; copying the new base layer from the application program memory area to th corresponding base layers memory area; when the at least one new base layer includes the upgrade program, transferrin control of the device to the new upgrade program in the base layer memory areas; copying from the server a new application program in the application prograi memory area; and transferring control of the device to the new application program.
In accordance with a further aspect of the present invention, there is provided method of remotely upgrading an application program and the base layers of firmware in a field-deployed device connected to an upgrade server via network, the device having a non-volatile memory including an applicatio program memory area and base layers memory areas in which are respectivel located the application program and the base layers, the base layers includin an upgrade program, the method comprising: transferring control of the device to the upgrade program; copying from the server new base layers into the application program memory area, the new base layers including a new upgrade program; copying the new base layers from the application program memory area to the base layers memory areas; transferring control of the device to the new upgrade program in the base layers memory areas; copying from the server a new application program in the application program memory area; and transferring control of the device to the new application program.
In accordance to another embodiment, there is provided a system for remotely upgrading an application program of a firmware in a field-deployed device, the device having a non-volatile memory including an application program memory area in which is located the application program, the system comprising:
means for providing a connection to a server via a network; means for taking over control of the device and initiating an upgrade process; means for copying from the server a new application program in the application program memory area of the device; and means for transferring control of the device to the new application program.
In accordance to another embodiment, there is provided a system for remotely upgrading a firmware in a field-deployed device, the firmware including an application program and base layers, the system comprising:
a non-volatile memory provided in the device, the non-volatile memory including an application program memory area and base layers memory areas in which are respectively located an application program and the base layers, the base layers including an upgrade program; means for providing a connection to a server via a network; means for transferring control of the device to the upgrade program; means for copying from the server new base layers in the application program memory area; means for copying the base layers from the application program memory area to the base layers memory areas; means for transferring control of the device to the new upgrade program in the base layers memory areas; means for copying from the server a new application program in the application program memory area; and means for transferring control of the device to the new application program.
The foregoing objects, features and advantages will be more readily apparent from the following detailed description of possible and preferred embodiments thereof, which proceed with reference to the accompanying figures.
FIG. 1 is a block diagram generally illustrating an example of a network configuration.
FIG. 2 is a block diagram depicting the elements of a single upgradable device in accordance with a possible and preferred embodiment.
FIG. 3 depicts the modular usage of the NVM in accordance with a preferred embodiment.
FIG. 4 depicts the double-vectored interrupt vector tables (IVTs) in accordance with a preferred embodiment.
FIG. 5 is a flowchart showing the operation of the firmware integrity checker (FIC) in accordance with a preferred embodiment.
FIG. 6 is a flowchart showing the operation of the upgrade process from a device's viewpoint in accordance with a preferred embodiment. FIG. 7 is a sequence diagram illustrating the REQUEST and CONFIRM lock step mechanism used in the upgrade protocol in accordance with a preferred embodiment.
FIG. 1 shows a block diagram of the network 100. The network 100 forms, for example, a Local Area Network (LAN) or a wide Area Network (WAN). The network 100 allows to interconnect an upgrade server 110 with one or more field-deployed devices 120. The approach utilized in the illustrated embodiment leverages the communications link that is intrinsic to devices 120. One possible embodiment is to use a power line control network. For instance, the Domosys Corporation PowerBus™ technology may be used as the protocol on the power line LAN.
It should be noted that the expression "field-deployed device" refers to a device for which the firmware is to be upgraded, regardless of its location. The device does not necessarily need to be at a remote location. Furthermore, the term "upgrade" or "upgraded" is to be taken in a broad sense and covers the cases where a part of the firmware is only replaced by an identical version, for instance because the previous copy was corrupted. The upgrade server is referred to as the "server" hereafter.
The server 110 may be in the form of a personal computer (PC), a handheld device, a gateway, a modem or any other device with a corresponding server application. The server 110 and the device 120 integrate a transceiver. The server 110 and the firmware provider 170 are preferably connected together (permanently or on-demand), for example via a WAN or Internet link (140, 150, 160). It is also possible that the firmware provider 170 and the server 110 be a single node.
Typically, upon availability of new firmware, the corresponding file with the upgraded firmware is transferred from the firmware provider 170 to the server 110. The server 110 may also pull new firmware versions from the firmware provider 170, for instance by periodic polling. The firmware is generally an object file in HEX format, which may be compressed for transmission between the firmware provider 170 and the server 110 of a particular LAN using algorithms such as ZIP™ or the like.
The server 110 initiates the upgrade process (server-initiated upgrade) upon availability of a new firmware. First, it sends out an escape message to a device 120 that requires upgrading. Upon reception of the escape message, the device 120 breaks out of its normal operation mode and transfer the control to the upgrade program 320. From this point on, the server 110 and upgrade program 320 preferably communicate following a lock step upgrade protocol. This protocol consists of the server 110 sending out messages and waiting for an acknowledgment from the device 120 before sending out the next message. This protocol ensures a highly accurate programming of the NVM 210 of the device 120. The messages defined by the upgrade protocol consist of programming commands. These commands allow for remotely erasing, reading and writing to the device 120 being upgraded.
Alternatively, a device 120 may initiate the upgrade process if it determines that it holds a corrupted firmware (device-initiated upgrade). Such upgrade is usually done with a complete reprogramming of the firmware therein.
FIG. 2 shows a block diagram of a single device 120, which device is referred to as the client in the upgrade protocol. It preferably comprises a microcontroller 270, boot ROM 200, RAM 280, NVM 210 and the network physical layer coupling module 260. The microcontroller 270 is, for instance, a Domosys U- Chip™ which is built around an Intel 8052-based core and integrates all elements depicted in FIG. 2, with the exception of some external analog components of the physical layer coupling the power line. The NVM 210 is preferably a 64 kB on-chip flash block with a 512-byte page size (128 pages). It holds re-programmable code and persistent data. The boot ROM 200 contains a library of functions for erasing, writing and reading to the NVM. The NVM 210 also includes a mutable interrupt vector table (2nd IVT) memory area 250, a communication protocol stack memory area 240, the upgrade program memory area 230, an application program memory area 220 and a firmware header memory area 215. The NVM 210 also includes other memory areas (not shown). The upgrade program memory area 230, the communication protocol stack memory area 240 and the mutable interrupt vector table (2nd IVT) memory area 250 form the base layers.
The boot ROM functions are available to the code running in the NVM 210. Furthermore, they are preferably made accessible via an external link, for instance an RS-232 serial interface and a fast parallel interface for in-factory programming and on-site reprogramming if required. However, the NVM 210 is preferably initially programmed in factory.
FIG. 3 illustrates an example of the 64 kB NVM modular usage. The firmware integrity checker (FIC) 350 (with the jump to FIC code 370 at address 0, the reset vector) and immutable interrupt vector table (IVT) 360 are both stored within page 0. The mutable IVT 340, communication protocol stack 330 and upgrade program 320 form a module called the base layers, which starts at page 1 (address 0200h). The base layers may take up to an additional 63 512-byte pages, leaving 64 pages (32 kB), half the total memory space of the NVM 210, for the application program 310 and current firmware header 300. The application program 310 is typically the control program of the corresponding device 120.
The current firmware header 300 holds persistent data on the current application program 310 and on the state of the upgrade program 320. TABLE 1 describes some of the possible variables: TABLE 1
Variable Size Description
VERSION NUMBER 1 byte The application program's main version number MAJOR REVISION 1 byte The application program's second version number
MINOR REVISION 1 byte The application program's third version number
APPLICATION END 1 byte The last NVM page number of the application PAGE program
CLIENT END PAGE 1 byte The last NVM page number of the upgrade program
CLIENT STATE 1 byte The state of the upgrade program
LAST PAGE 128 bytes Used for recovery in case of interruption of an upgrade. Each byte of this variable represents a 512-byte NVM page.
FIG.4 illustrates an example of the double-vectored interrupt vector tables (IVTs). Instead of pointing directly to interrupt service routines (ISRs) 430, the vectors 410 in page 0, where the FIC 400 is also located, point to other vectors 420 in page 1 that, in turn, point to ISRs 430. In the preferred embodiment, page 0, containing the FIC 400 and 1st IVT 410 is immutable (i.e.: may not be upgraded). The reason for the two IVTs is that the microcontroller always expects to find the IVT 410 in page 0. However, in the present scheme, page 0 may not be remotely upgraded. Having a double-vectored IVT thus allows the addresses of the ISRs to change between upgrades without modifying page 0.
By a series of write commands, which are acknowledged by the upgrade program 320 of the device 120 being upgraded, the server 110 can remotely reprogram most of the firmware. If the server 110 fails to receive a positive acknowledgment from the device 120, the server 110 preferably retries until all commands have succeeded. Once the server 110 has completed its programming task, the devices 120 are forced to reset. Since the upgrade program 320 also acts as a bootstrap, it takes control and allows the device 120 to run a cyclic redundancy check (CRC) on each packet received to verify its integrity. Each packet sent by the server 40 thus include a checksum number. A CRC check on the overall or parts of the new firmware is also preferably carried out. The server 110 provides the checksum number, as is well known in the art. If this verification process succeeds, control is ultimately transferred to the upgraded application program for normal operation. If the verification process fails for the application program, the device 120 sends a message to the server 110, which may then retry the upgrade process. In the case of a verification failure for the communication protocol stack 330, the device 120 is unable to communicate on the network and requires on-site maintenance for upgrading via alternate means.
Upgrade of the upgrade program 320 involves having the upgrade program 320 copy itself to or from the application program area 220 of the NVM 210 and transfer the control to this copy. The communication protocol stack 330 may also be upgraded using a similar method. Control is then returned to the newly upgraded copy. Finally, the application program 310, which was overwritten in the process, is reprogrammed. A unique advantage of the methodology of the present invention over existing field-upgradable device is that it does not require the developer to plan for two times the actual firmware memory requirements. Cost-sensitive consumer products cannot afford this extra memory cost, and so the focus to ensure success during the upgrade process, without using a significant amount of extra memory.
Two types of upgrade are possible. One is the application upgrade, where only the application program 310 is upgraded. This type of upgrade typically corresponds to the server-initiated upgrade. The second type is the self- upgrade, in which the base layers, comprising the upgrade program 320, the communication protocol stack 330 and the mutable IVT 340, are preferably upgraded. In the case of self-upgrade, the application program 310 must also be upgraded (or at least reprogrammed with the previous version), since the application program area 220 is overwritten because it is used as a temporary buffer. In both cases, the application program 310 is responsible for switching to upgrade mode by transferring control to the upgrade program 320 on reception of the appropriate message from the server 110, or in reaction to a local switch to upgrade mode. Once the upgrade program 320 takes control, it communicates with the server 110 and uses the boot ROM 200 functions to execute from the server 110.
The upgrade of the application program 310 is simply achieved by copying the new application program 310 from the server 110 to the application program memory area 220. The firmware header 300 is updated, preferably right before the upgrade of the application program 310 begins. The new firmware header 300 is useful because it indicates the last page, thus the length of the application program. Nevertheless, some embodiments may be provided with application programs having a fixed length, thus not requiring an end page or length indicator.
As aforesaid, the base layers of the firmware can be upgraded in addition to the application program 310. Although the base layers are usually completely upgraded, it is possible to upgrade only one or two of them. In the case of an upgrade of the upgrade program itself, the upgrade process preferably starts by the transferring control of the device 120 to the upgrade program 320. Instructions are then given to copy the new upgrade program 320 from the server 110 to the application program memory area 220. Once this is completed, the new upgrade program is copied to the upgrade program memory area 230 and control of the device 120 is subsequently transferred to the new upgrade program 320 therein. A new application program is finally copied from the server 110 in the application program memory area 220 since the former application program was overwritten. The upgrade of the communication stack 240 could be achieved in a similar fashion.
The upgrade of the mutable interrupt table (2nd IVT) 340 could also be achieved in a similar fashion. However, in this case, the immutable interrupt vector table (1st IVT) 360 needs to be temporarily referenced to addresses in the application program area 220 were the mutable interrupt vector table (2nd IVT) 340 is copied. Later, once the copying of the new mutable interrupt table (2nd IVT) from the server 110 is completed, the immutable interrupt vector table (1st IVT) 360 is re-referenced to addresses in the mutable interrupt vector table (2nd IVT) memory area 250.
FIG. 5 shows a flowchart of the machine behavior of the firmware integrity checker (FIC) state. The FIC 350 is the first code to run when control is transferred from the boot ROM 206 to the NVM 210 after a reset or power up. As its name suggests, the FIC 350 is used to verify the validity of the firmware, but it is also responsible for transferring the data from the application layer to the base layers, in case of a self-upgrade, via the transfer routine (the application program area 220 in the NVM 210 is overwritten since it is used as a temporary buffer during a self-upgrade). In order to continue its operations between power cycles and ensure NVM integrity during upgrade, the state of the upgrade process is preferably stored in a persistent data area in NVM 210, namely the current firmware header 300. The variable is CLIENT STATE from TABLE 1. The behavior of the FIC 350 preferably depends on the value of this state variable. TABLE 2 lists the possible states: TABLE 2
State Description
IDLE The application program is running. There is no upgrade in process.
UPGRADE START The upgrade process has started.
SELF UPGRADE The device is currently processing self-upgrade.
TRANSFER PROCESS The device is currently transferring a newly received upgrade from the application program area to the base layer area.
APPLICATION JPGRADE The device is currently processing an application upgrade
If the FIC state is IDLE, no upgrade process is running. The control can be transferred to the application program 310 if the firmware passes the CRC-16 (calculated with the polynomial x16 + x15 + x2 + 1 ) check of the base layers and of the application program 310. If the firmware passes the CRC-16 integrity check, the FIC 350 transfers control to the application program 310. If the application CRC test fails, the FIC 350 switches control to the upgrade program 320. If the base layers CRC test fails, it is an indication that the communications protocol stack 330 may be corrupted, rendering remote upgrading impossible. In this case, on-site maintenance is required.
Normally, the transfer of data from the application program area 220 to the base layers memory areas is done by a transfer routine once the last page was written. Interrupts are disabled during the transfer process. Prior to the transfer, the state is set to TRANSFER_PROCESS. If, for any reason, the device 120 resets or otherwise stops before the transfer is completed, the transfer will be reinitiated after the reset or the power up, as shown in FIG. 5. At the end of the transfer routine, the device 120 resets by jumping at address 0. FIG. 6 shows the operation of the upgrade process in the form of a flowchart. Commands (referred to as primitives) are sent from the server 110 to the device 120 being upgraded. These primitives are sent over the network 100. The upgrade process sits at the application layer of the communication stack, i.e. received primitives move up the stack up to the application layer. This allows for leverage of lower level features of the network 100 such as encryption and segmentation. A set of request primitives is available to the server 110, as shown in TABLE 3:
TABLE 3
Request Primitive Description
REQUEST FORCE RESET This primitive is used by the server to remotely force a device to reset in case of a major problem.
REQUEST HEADER UPGRADE This primitive is used to upgrade a device Current Firmware Header. Its parameters are the variables from TABLE 1 except LAST PAGE.
REQUEST WRITE PAGE This primitive is used to program a 512-byte NVM page. This primitive has a page number parameter and up to 512 bytes of data. Confirmation of remote execution is assured by the reception of a CONFIRM_RESULT primitive.
REQUEST BASIC READ This primitive is used to read up to 512 bytes from the NVM. It takes two parameters: the address at which to start reading and the number of bytes to read. The read data is returned
CONFIRM_READ_DATA primitive.
Upon reception of an upgrade primitive, the application program 310 that supports the remote upgrade feature must transfer control to the upgrade program 320, which will handle the request. Upon completion of the requested operation, the upgrade program 320 informs the server 110 by sending the appropriation confirm primitive, as shown in TABLE 4:
TABLE 4
Confirm Primitive Description
CONFIRM RESULT This primitive is sent to confirm the reception of a REQUEST_PAGE_WRITE or a
REQUEST_HEADER_ UPGRADE primitive. . It takes a result code parameter that indicates success or describes failure.
CONFIRM READ DATA This primitive is sent in response to a REQUEST_BASIC_ READ primitive. Its parameter is the data read from NVM, up to 512 bytes.
FIG. 7 illustrates an example of the lock step upgrade protocol. It illustrates a CONFIRM primitive (see TABLE 4) must acknowledge a REQUEST primitive (see TABLE 3) before the next REQUEST primitive can be sent. Therefore, the server 110 has to keep only one request on hand for retransmission. The lock step acknowledgment guarantees that all older packets have been received. Notice that the server 110 is considered the sender and the client 120 is considered the receiver. The first sends data and receives acknowledgments; the other receives data and sends acknowledgments. This protocol is very restrictive, in order to simplify implementation. For example, the lock step acknowledgement provides flow control and eliminates the need to reorder incoming data requests or keep a request list.
In use, the server 110 may upgrade one device 120 at a time or a plurality of devices 120 simultaneously. If, for some reasons, the communication is lost with one or more devices 120, for instance the server 110 does not receive a CONFIRM primitive for a REQUEST primitive, the server 110 will timeout and may retransmit its last request. It may simultaneously continue to proceed with the upgrade of the other devices 120, in the case of a plurality of devices 120 being upgraded simultaneously, and later resume the upgrade with the one or ones that failed. The LAST PAGE variable in the current firmware header 300 (see TABLE 1 ) is preferably used to determine the last page for which a successful upgrade was achieved before failure, thus avoiding to restart from the beginning. The LAST PAGE parameter is preferably implemented as bytes provided in a number related to the number of pages. All these bytes are initially set with a non-zero value and are cleared one by one as the upgrade progresses. The upgrade program knows that the last page is reached once all bytes are cleared. Other embodiments are also possible as well.
Yet, if the client resets during an upgrade, the server 110 will preferably receive an INDICATION_UPGRADE_REQUEST (see TABLE 5) primitive with a nonzero LAST PAGE. In that case, the server 110 will restart transmission where it failed. If the server 110 cannot restart the upgrade from the point of interruption, then it restarts transmission from the beginning. One can also choose to restart the upgrade process from the beginning in all cases where there was a failure.
TABLE 5
Indication Primitive
INDICATION UPGRADE REQUEST This primitive is sent by the upgrade program to initiate the upgrade protocol. In case of device- initiated upgrades, this primitive is preferably sent asynchronously, without any upgrade program interaction. For server-initiated upgrades, this primitive is sent in response to a server's request for activation of the upgrade program. This primitive uses a page number parameter. A null parameter indicates the start of an upgrade. If an upgrade is interrupted, this parameter will be set to the last successful page write. In addition, this primitive uses as parameter the variables of TABLE 1 except LAST PAGE. Finally, it preferably holds additional identification data, such as the device's serial number, product type and base layers version number.
The upgrade protocol was designed to take the burden off the programmable devices, where resources are scarce, and delegate it mostly to the server 110. The server 110 manages the whole upgrade process, but the application program 310 is responsible for switching control to the upgrade program 320 upon reception of the request primitives. Once the device 120 is in upgrade mode, any traffic other than upgrade primitives are ignored. Any transfer actually begins with the first INDICATION_UPGRADE_REQUEST primitive sent by the device 120 to the server 110. Preferably, it is up to the server 110 to decide what kind of upgrade it will process.
As can be appreciated, the present invention allows to perform firmware upgrades without any transportation delays and without any additional hardware or on-site human intervention. It also allows to upgrade substantial parts of the firmware without the need of additional memory.
The invention is not limited to the described embodiment and encompasses any alternative embodiments within the limits defined by the claims. For example, although the present invention was initially designed to be used with a control network, it can also be used with other networks, for instance data networks.

Claims

CLAIMS.
1. A method of remotely upgrading an application program (310) of a firmware in a field-deployed device (120) connected to an upgrade server (110) via a network (100), the device (120) having a non-volatile memory (210) including an application program memory area (220) and an upgrade program memory area (230) in which are respectively located the application program (310) and an upgrade program (320), the method comprising:
transferring control of the device (120) to the upgrade program (320) in the upgrade program memory area (230); copying from the server (110) a new application program (310) in the application program memory area (220); and transferring control of the device (120) to the new application program (310).
2. A method according to claim 1 , further comprising:
verifying the new application program (310) in the application program memory area (220) before transferring control of the device (120) thereto.
3. A method according to claim 2, wherein verifying the new application program (310) includes performing a cyclic redundancy check (CRC) thereof.
4. A method according to claim 1 , wherein the new application program (310) is copied from the server (110) following a lock step process, the lock step process comprising:
sending a confirmation message from the device (120) to the server (110) once a data packet is successfully received.
5. A method according to claim 1 , further comprising: initiating an upgrade process by sending an escape message from the server (110) to the device (120), the control of the device (120) being transferred to the upgrade program (320) as a result of the escape message.
6. A method according to claim 1 , wherein the firmware further comprises a firmware header (300) stored in a firmware header memory area (215) included in the non-volatile memory (210) of the device (120), the act of copying the new application program (310) from the server (110) comprising:
updating the firmware header (300) in the firmware header memory area (215) prior to receiving data for the new application program (310) to be stored in the application program memory area (220).
7. A method according to claim 6, wherein the firmware header (300) comprises data indicative of the length of the new application program (310).
8. A method according to claim 1 , further comprising:
forcing the device (120) to reset before transferring control of the device (120) to the new application program (310).
9. A method of remotely upgrading an application program (310) and at least one of the base layers (320, 330, 340) of a firmware in a field-deployed device (120) connected to an upgrade server (110) via a network (100), the device (120) having a non-volatile memory (210) including an application program memory area (220) and base layers memory areas (230, 240, 250) in which are respectively located the application program (310) and the base layers (320, 330, 340), the base layers (320, 330, 340) including an upgrade program (320), the method comprising:
transferring control of the device (120) to the upgrade program (320); copying from the server (110) at least one new base layer (320, 330, 340) in the application program memory area (220); copying the new base layer (320, 330, 340) from the application program memory area (220) to the corresponding base layers memory area (230,
240, 250); when the at least one new base layer includes the upgrade program (320), transferring control of the device (120) to the new upgrade program (320) in the base layers memory areas (230, 240, 250); copying from the server (110) a new application program (310) in the application program memory area (220); and transferring control of the device (120) to the new application program (310).
10. A method according to claim 9, further comprising:
verifying the new base layer (320, 330, 340) after being copied in the corresponding base layers memory area (230, 240, 250).
11. A method according to claim 10, wherein verifying the new base layer (320, 330, 340) includes performing a cyclic redundancy check (CRC) thereof.
12. A method according to claim 9, further comprising:
verifying the new application program (310) in the application program memory area (220) before transferring control of the device (120) thereto.
13. A method according to claim 12, wherein verifying the new application program (310) includes performing a cyclic redundancy check (CRC) thereof.
14. A method according to claim 9, wherein the new base layer (320, 330, 340) and the new application program (310) are copied from the server (110) following a lock step process, the lock step process comprising: sending a confirmation message from the device (120) to the server (110) once a data packet is successfully received.
15. A method according to claim 9, further comprising the act of initiating an upgrade process by sending an escape message from the server (110) to the device (120), the control of the device (120) being initially transferred to the upgrade program (320) as a result of the escape message.
16. A method according to claim 9, wherein the firmware further comprises a firmware header (300) stored in a firmware header memory area (215) included in the non-volatile memory (210) of the device (120), the act of copying from the server (110) at least one new base layer (320, 330, 340) comprising:
updating the firmware header (300) in the firmware header memory area (215) prior to receiving data for the new base layer (320, 330, 340).
17. A method according to claim 16, wherein the firmware header (300) comprises data indicative of the length of the base layer (320, 330, 340) and data indicative of the length of the application program (310).
18. A method according to claim 16, wherein the firmware header (300) comprises data indicative of the last page of each base layer of the base layers (320, 330, 340) and data indicative of the last page of the application program (310).
19. A method according to claim 9, further comprising:
forcing the device (120) to reset before transferring control of the device (120) to the new application program (310).
20. A method according to claim 9, further comprising the act of initiating, a self-upgrade process by sending a self-upgrade request message from the device (120) to the server (110), the new base layer (320, 330, 340) being copied from the server (110) to the device (120) as a result of the self-upgrade request message.
21. A method according to claim 9, wherein the new base layer (320, 330, 340) includes a new mutable interrupt vector table (340), the method further comprising:
re-referencing an immutable interrupt vector table (360) in the firmware to the new mutable interrupt vector table (340) once copied in the corresponding base layer memory area (250).
22. A method of remotely upgrading an application program (310) and the base layers (320, 330, 340) of a firmware in a field-deployed device (120) connected to an upgrade server (110) via a network (100), the device (120) having a non-volatile memory (210) including an application program memory area (220) and base layers memory areas (230, 240, 250) in which are respectively located the application program (310) and the base layers (320, 330, 340), the base layers (320, 330, 340) including an upgrade program (320), the method comprising:
transferring control of the device (120) to the upgrade program (320); copying from the server (110) new base layers (320, 330, 340) into the application program memory area (220), the new base layers (320, 330,
340) including a new upgrade program (320); copying the new base layers (320, 330, 340) from the application program memory area (220) to the base layers memory areas (230, 240, 250); transferring control of the device (120) to the new upgrade program (320) in the base layers memory areas (230, 240, 250); copying from the server (110) a new application program (310) in the application program memory area (220); and transferring control of the device (120) to the new application program (310).
23. A method according to claim 22, further comprising:
verifying the new base layers (320, 330, 340) in the base layers memory areas (230, 240, 250) before transferring control of the device (120) to the new upgrade program (320) therein.
24. A method according to claim 23, wherein verifying the new base layers (320, 330, 340) includes performing a cyclic redundancy check (CRC) thereof.
25. A method according to claim 24, wherein the new base layers (320, 330, 340) and the new application program (310) are copied from the server (110) following a lock step process, the lock step process comprising:
sending a confirmation message from the device (120) to the server (110) once a data packet is successfully received.
26. A method according to claim 22, further comprising the act of initiating an upgrade process by sending an escape message from the server (110) to the device (120), the control of the device (120) being initially transferred to the upgrade program (320) as a result of the escape message.
27. A method according to claim 22, wherein the firmware further comprises a firmware header (300) stored in the non-volatile memory area (215) included in the non-volatile memory (210) of the device (120), the method further comprising: updating data in the firmware header (300) in the firmware header memory area (215) prior to receiving data for the new base layers (320, 330, 340).
28. A method according to claim 22, further comprising:
forcing the device (120) to reset before transferring control of the device (120) to the new application program (310).
29. A method according to claim 22, further comprising the act of initiating a self-upgrade process by sending a self-upgrade request message from the device (120) to the server (110), the new base layers (320, 330, 340) being copied from the server (110) to the device (120) as a result of the self-upgrade request message.
30. A method according to claim 22, wherein the new base layers (320, 330, 340) include a new mutable interrupt vector table (340), the method further comprising:
re-referencing an immutable interrupt vector table (360) in the firmware to the new mutable interrupt vector table (340) once copied in the corresponding base layer memory area (250).
31. A system for remotely upgrading an application program (310) of a firmware in a field-deployed device (120), the device (120) having a non-volatile memory (210) including an application program memory area (220) in which is located the application program (310), the system comprising:
means for providing a connection to a server (110) via a network (100); means for taking over control of the device (120) and initiating an upgrade process; means for copying from the server (110) a new application program (310) in the application program memory area (220) of the device (120); and means for transferring control of the device (120) to the new application program (310).
32. A system for remotely upgrading a firmware in a field-deployed device (120), the firmware including an application program (310) and base layers (320, 330, 340), the system comprising:
a non-volatile memory (210) provided in the device (120), the non-volatile memory (210) including an application program memory area (220) and base layers memory areas (230, 240, 250) in which are respectively located an application program (310) and the base layers (320, 330, 340), the base layers (320, 330, 340) including an upgrade program (320); means for providing a connection to a server (110) via a network (100); means for transferring control of the device (120) to the upgrade program (320); means for copying from the server (110) new base layers (320, 330, 340) in the application program memory area (220); means for copying the base layers (320, 330, 340) from the application program memory area (220) to the base layers memory areas (230, 240, 250); means for transferring control of the device (120) to the new upgrade program (320) in the base layers memory areas (230, 240, 250); means for copying from the server (110) a new application program (310) in the application program memory area (220); and means for transferring control of the device (120) to the new application program (310).
PCT/CA2002/000556 2001-04-18 2002-04-18 Method of remotely upgrading firmware in field-deployed devices WO2002084484A2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US28420901P 2001-04-18 2001-04-18
US60/284,209 2001-04-18

Publications (2)

Publication Number Publication Date
WO2002084484A2 true WO2002084484A2 (en) 2002-10-24
WO2002084484A3 WO2002084484A3 (en) 2004-06-10

Family

ID=23089302

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CA2002/000556 WO2002084484A2 (en) 2001-04-18 2002-04-18 Method of remotely upgrading firmware in field-deployed devices

Country Status (2)

Country Link
US (1) US7093244B2 (en)
WO (1) WO2002084484A2 (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2863733A1 (en) * 2003-12-11 2005-06-17 Siemens Ag Operating system software updating process for e.g. machine, involves transmitting new operating system to automation device connected to computer device, through network
GB2411494A (en) * 2004-02-27 2005-08-31 Toshiba Res Europ Ltd Modifying protocol stacks
DE102005021917A1 (en) * 2005-05-12 2006-11-16 Conti Temic Microelectronic Gmbh Electronically controlled component, has memory with interface for data communication of unit/memory unit with control device connected with memory by interface, where memory is connected with controlled unit for training data values
WO2007104899A1 (en) * 2006-03-16 2007-09-20 Thomson Licensing Method for robust software updating
EP2156349A1 (en) * 2007-05-30 2010-02-24 Bayer Healthcare, LLC Architecture for health monitoring systems
US8019794B2 (en) 2007-04-02 2011-09-13 Sharp Laboratories Of America, Inc. Firmware repository for MFP devices
CN102591690A (en) * 2011-12-27 2012-07-18 南京理学工程数据技术有限公司 Embedded system remote upgrade method
US8495601B2 (en) 2010-06-09 2013-07-23 Lear Corporation Shared memory architecture
US8539472B2 (en) 2010-06-09 2013-09-17 Lear Corporation Method and system of updating shared memory
CN103530146A (en) * 2013-09-16 2014-01-22 成都交大光芒科技股份有限公司 Low-power-consumption embedded device remote wireless updating method
US9112891B2 (en) 2007-02-02 2015-08-18 Sharp Laboratories Of America, Inc. Remote firmware management for electronic devices
CN105511927A (en) * 2015-12-21 2016-04-20 上海华测导航技术股份有限公司 Method for upgrading radio firmware
CN108874432A (en) * 2018-08-17 2018-11-23 深圳市优驰科技有限公司 Radio firmware upgrade-system
CN110262820A (en) * 2019-06-13 2019-09-20 陕西瑞迅电子信息技术有限公司 Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
CN110532014A (en) * 2019-08-20 2019-12-03 海信(广东)空调有限公司 Programme upgrade method, device, terminal device and computer readable storage medium
CN111722856A (en) * 2019-03-19 2020-09-29 上海汽车集团股份有限公司 Method and device for upgrading firmware in vehicle-mounted microcontroller
CN112181454A (en) * 2020-09-21 2021-01-05 西安微电子技术研究所 Remote upgrading system and method for unattended equipment
CN112491600A (en) * 2018-03-07 2021-03-12 华为技术有限公司 Method and device for upgrading network card firmware, network card and equipment
CN114189440A (en) * 2021-11-01 2022-03-15 深圳拓邦股份有限公司 Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium
WO2022241918A1 (en) * 2021-05-19 2022-11-24 武汉天喻信息产业股份有限公司 Remote upgrading method and apparatus for internet of things device

Families Citing this family (115)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7409685B2 (en) 2002-04-12 2008-08-05 Hewlett-Packard Development Company, L.P. Initialization and update of software and/or firmware in electronic devices
US8479189B2 (en) * 2000-11-17 2013-07-02 Hewlett-Packard Development Company, L.P. Pattern detection preprocessor in an electronic device update generation system
US20030182414A1 (en) 2003-05-13 2003-09-25 O'neill Patrick J. System and method for updating and distributing information
US7350207B2 (en) * 2001-05-25 2008-03-25 Tellabs Operations, Inc. Rule-based system and method for downloading computer software over a network
JP2003025688A (en) * 2001-07-12 2003-01-29 Fujitsu Ltd Method for installing firmware of printer, printer and printer system
US20030084337A1 (en) * 2001-10-03 2003-05-01 Simionescu Dan C. Remotely controlled failsafe boot mechanism and manager for a network device
US7392518B1 (en) * 2002-02-21 2008-06-24 3Com Corporation Robust remote flash ROM upgrade system and method
US20030217357A1 (en) * 2002-05-14 2003-11-20 Parry Travis J. Monitoring firmware
JP4527348B2 (en) * 2002-05-29 2010-08-18 富士通コンポーネント株式会社 Interface device, method of updating firmware in interface device, and program thereof
US7243347B2 (en) * 2002-06-21 2007-07-10 International Business Machines Corporation Method and system for maintaining firmware versions in a data processing system
US20040010786A1 (en) * 2002-07-11 2004-01-15 Microsoft Corporation System and method for automatically upgrading a software application
DE10234304A1 (en) * 2002-07-26 2004-02-19 Endress + Hauser Gmbh + Co. Kg Process for updating device descriptions for field devices in process automation technology
US7367027B1 (en) * 2002-08-22 2008-04-29 Hewlett-Packard Development Company, L.P. System for generating efficient and compact update packages
JP2004139442A (en) * 2002-10-18 2004-05-13 Toyota Motor Corp Information terminal device, its operation control method, specified information storage program, storage medium storing the same, certain information changing program, terminal operation program, storage medium storing the same, and center
AU2003287532A1 (en) * 2002-11-05 2004-06-07 Bitfone Corporation Firmware update system for facilitating firmware update in mobile handset related applications
US7246266B2 (en) * 2002-11-21 2007-07-17 Chris Sneed Method and apparatus for firmware restoration in modems
US7293169B1 (en) * 2003-02-26 2007-11-06 American Megatrends, Inc. Methods and systems for remotely updating the firmware of multiple computers over a distributed network
US7673301B1 (en) 2003-02-26 2010-03-02 American Megatrends, Inc. Methods and systems for updating and recovering firmware within a computing device over a distributed network
US20040230965A1 (en) * 2003-02-28 2004-11-18 Harri Okkonen Mobile handset network that facilitates interaction between a generic intelligent responsive agent and a service broker server
US7975147B1 (en) 2003-03-31 2011-07-05 Hewlett-Packard Development Company, L.P. Electronic device network supporting enciphering and deciphering and update generation in electronic devices
US20050010811A1 (en) * 2003-06-16 2005-01-13 Zimmer Vincent J. Method and system to support network port authentication from out-of-band firmware
US7343443B1 (en) 2003-07-08 2008-03-11 Hewlett-Packard Development Company, L.P. Updated package generation based on analysis of bank dependency
DE10331874A1 (en) * 2003-07-14 2005-03-03 Robert Bosch Gmbh Remote programming of a program-controlled device
JP2005050073A (en) * 2003-07-28 2005-02-24 Matsushita Electric Ind Co Ltd Data restoration method, and data recorder
EP1652075B1 (en) * 2003-07-29 2018-10-31 Qualcomm Incorporated Mobile handset with update agent implemented in hardware
US7886093B1 (en) 2003-07-31 2011-02-08 Hewlett-Packard Development Company, L.P. Electronic device network supporting compression and decompression in electronic devices
US8555273B1 (en) 2003-09-17 2013-10-08 Palm. Inc. Network for updating electronic devices
US7392420B2 (en) * 2003-09-29 2008-06-24 International Business Machines Corporation Automated error recovery of a licensed internal code update on a storage controller
JP4411953B2 (en) * 2003-12-09 2010-02-10 横河電機株式会社 Memory update system for field devices
US20050190393A1 (en) * 2004-02-27 2005-09-01 Agilent Technologies, Inc. Programmable controller system and method for supporting various operational modes in peripheral devices
US20050213590A1 (en) * 2004-03-23 2005-09-29 Nokia Corporation Universal telecommunication node with software-defined exchangeable protocol architecture
US7546596B2 (en) * 2004-03-29 2009-06-09 International Business Machines Corporation Non-disruptive method, system and program product for overlaying a first software module with a second software module
US7904895B1 (en) * 2004-04-21 2011-03-08 Hewlett-Packard Develpment Company, L.P. Firmware update in electronic devices employing update agent in a flash memory card
US20050251798A1 (en) * 2004-05-05 2005-11-10 News, Iq, Inc. System and method for inventory control and management
US7543118B1 (en) 2004-05-07 2009-06-02 Hewlett-Packard Development Company, L.P. Multiple variance platform for the management of mobile devices
US7676804B2 (en) * 2004-05-20 2010-03-09 Caterpillar Inc. Systems and method for remotely modifying software on a work machine
WO2005116827A1 (en) * 2004-05-31 2005-12-08 Stmicroelectronics Pvt. Ltd. A method for remotely upgrading the firmware of a target device using wireless technology
DE102004029889A1 (en) * 2004-06-17 2006-01-05 Siemens Ag First terminal for data communication with at least one second terminal using device drivers stored and executable in a non-volatile program memory of the first terminal
US7269829B2 (en) * 2004-07-30 2007-09-11 Signature Control Systems, Inc. Method and system for remote update of microprocessor code for irrigation controllers
US8526940B1 (en) 2004-08-17 2013-09-03 Palm, Inc. Centralized rules repository for smart phone customer care
US20060069825A1 (en) * 2004-09-24 2006-03-30 Hodder Leonard B Method and system of transferring firmware from a host device to a printing device
JP4720140B2 (en) * 2004-10-01 2011-07-13 船井電機株式会社 Information processing device
KR20060054840A (en) * 2004-11-16 2006-05-23 엘지전자 주식회사 System and method for upgrade software of an air conditioner
JP4622474B2 (en) * 2004-11-17 2011-02-02 横河電機株式会社 Field device and system using the same
DE102004055814A1 (en) * 2004-11-18 2006-05-24 Endress + Hauser Process Solutions Ag Method for commissioning a field device of process automation technology
TWI303382B (en) * 2004-11-26 2008-11-21 Hon Hai Prec Ind Co Ltd System and method for updating bios
US9201641B2 (en) * 2004-12-24 2015-12-01 Telecom Italia S.P.A. Method and system for upgrading the software of a telecommunication terminal, in particular of a video telephone, and related computer program product
JP4929726B2 (en) * 2005-03-07 2012-05-09 富士ゼロックス株式会社 Image processing system
US8078740B2 (en) 2005-06-03 2011-12-13 Microsoft Corporation Running internet applications with low rights
TWI264896B (en) * 2005-06-29 2006-10-21 Inventec Corp System and method for remotely switching backup system program modules of a computer platform
US20070061813A1 (en) * 2005-08-30 2007-03-15 Mcdata Corporation Distributed embedded software for a switch
US20070067512A1 (en) * 2005-09-19 2007-03-22 Smar Research Corporation Method, system and software arrangement for processing a device support file for a field device
KR100657928B1 (en) * 2005-12-06 2006-12-15 엘지전자 주식회사 System and method of supportting portable handler
US7600055B2 (en) * 2006-01-03 2009-10-06 International Business Machines Corporation Apparatus, system, and method for firmware update of redundant controllers
US20070207800A1 (en) * 2006-02-17 2007-09-06 Daley Robert C Diagnostics And Monitoring Services In A Mobile Network For A Mobile Device
US7802245B2 (en) * 2006-04-27 2010-09-21 Agere Systems Inc. Methods and apparatus for performing in-service upgrade of software in network processor
EP2025095A2 (en) 2006-06-08 2009-02-18 Hewlett-Packard Development Company, L.P. Device management in a network
US8185737B2 (en) 2006-06-23 2012-05-22 Microsoft Corporation Communication across domains
WO2008014454A2 (en) 2006-07-27 2008-01-31 Hewlett-Packard Development Company, L.P. User experience and dependency management in a mobile device
US7770165B2 (en) * 2006-08-25 2010-08-03 Microsoft Corporation Providing firmware updates to portable media devices
US8024724B2 (en) 2006-08-31 2011-09-20 Itron, Inc. Firmware download
US8112508B1 (en) * 2006-09-08 2012-02-07 Dell Products L.P. Delivering data from device management services to devices using bulletin system
DE102006054124B4 (en) * 2006-11-15 2009-05-28 Phoenix Contact Gmbh & Co. Kg Method and system for secure data transmission
US7664887B2 (en) * 2006-11-15 2010-02-16 Ricoh Company, Ltd. Device architecture to support multiple protocols
DE102006057133B4 (en) * 2006-12-01 2008-08-07 Phoenix Contact Gmbh & Co. Kg Method for operating an Ethernet-capable fieldbus device
DE102007021099A1 (en) 2007-05-03 2008-11-13 Endress + Hauser (Deutschland) Ag + Co. Kg Method for commissioning and / or reconfiguring a programmable field meter
KR101510808B1 (en) * 2007-05-21 2015-04-10 톰슨 라이센싱 Robust firmware upgrade in a network terminal
DE102007026602A1 (en) * 2007-06-08 2008-12-11 Abb Ag Device and method for checking the current software installation of field devices of a distributed system, in particular an automation system
US10019570B2 (en) 2007-06-14 2018-07-10 Microsoft Technology Licensing, Llc Protection and communication abstractions for web browsers
US8612538B2 (en) * 2007-08-21 2013-12-17 Honeywell International Inc. System and method for upgrading telemonitor unit firmware
US20090076628A1 (en) * 2007-09-18 2009-03-19 David Mark Smith Methods and apparatus to upgrade and provide control redundancy in process plants
EP2051150B1 (en) * 2007-10-16 2011-03-16 Siemens Aktiengesellschaft Method for automatic modification of a program
US20090183227A1 (en) * 2008-01-11 2009-07-16 Microsoft Corporation Secure Runtime Execution of Web Script Content on a Client
US8078861B1 (en) * 2008-02-13 2011-12-13 Omnimgtrix, LLC Remote processor reprogramming
US8219595B2 (en) * 2008-02-14 2012-07-10 Hewlett-Packard Development Company, L.P. System and method for efficient remote data access for server management
US20090222497A1 (en) * 2008-02-29 2009-09-03 Schlumberger Technology Corp. Method, system and apparatus for remote software upgrade of an embedded device
DE102008012104A1 (en) * 2008-03-01 2009-09-03 Abb Ag Device description file, system and method for setting up control and / or regulating devices
KR20090111558A (en) * 2008-04-22 2009-10-27 삼성전자주식회사 Broadcasting apparatus and firmware upgrade method thereof
DE102008027935A1 (en) * 2008-06-12 2009-12-17 Codewrights Gmbh Device for integrating device objects into a higher-level control unit
US8776019B2 (en) * 2008-12-05 2014-07-08 Invensys Systems, Inc. Configurator with embedded firmware for offline instrument user settings implementation
US20100191867A1 (en) * 2009-01-29 2010-07-29 Dell Products L.P. Systems and Methods for Performing Field Updates of Firmware
US9104521B2 (en) * 2009-03-16 2015-08-11 Tyco Electronics Subsea Communications Llc System and method for remote device application upgrades
CN101854442B (en) * 2009-04-01 2013-06-05 鸿富锦精密工业(深圳)有限公司 Network device and firmware updating method thereof
US8578059B2 (en) * 2010-02-01 2013-11-05 Invensys Systems, Inc. Deploying a configuration for multiple field devices
US8806470B2 (en) * 2010-09-29 2014-08-12 Mitsubishi Electric Corporation System, method, and apparatus for software maintenance of sensor and control systems
US8745278B2 (en) * 2010-10-13 2014-06-03 Rosemount Inc. Field device with self description
US9058238B2 (en) * 2010-10-13 2015-06-16 Sony Corporation Electronic device with customizable embedded software and methods therefor
KR101251250B1 (en) * 2011-07-01 2013-04-08 알서포트 주식회사 System for performing remote control using remote device driver and method for performing the same
TW201327389A (en) * 2011-12-22 2013-07-01 Hon Hai Prec Ind Co Ltd System with firmware updated function, electronic device, and method therefor
TWI478602B (en) * 2012-02-24 2015-03-21 Golden Smart Home Technology Corp The use of smart phones to provide embedded devices remote service approach
CN104216725B (en) * 2013-06-04 2019-04-19 Sap欧洲公司 Repository layer Developing Tactics for software solution trustship
EP2955629B1 (en) * 2014-06-11 2021-10-27 Home Control Singapore Pte. Ltd. System for installing new firmware on a small-memory device
CN104156229A (en) * 2014-07-04 2014-11-19 英业达科技有限公司 Computer system
US9800619B2 (en) 2014-10-15 2017-10-24 Ayla Networks, Inc. Registration framework for connected consumer devices
US9813505B2 (en) 2014-10-15 2017-11-07 Ayla Networks, Inc. Devices in a flexible registration framework
US9648055B2 (en) * 2014-10-15 2017-05-09 Ayla Networks, Inc. Applications in a flexible registration framework
DE102014116321A1 (en) * 2014-11-10 2016-05-12 Harting Electric Gmbh & Co. Kg Update a firmware
EP3024175B1 (en) * 2014-11-19 2019-07-31 Tanaza S.p.A. Method and system for remote management of network devices
CN105718274A (en) * 2014-11-30 2016-06-29 中国科学院沈阳自动化研究所 Online software updating method of intelligent nodes in AUV
DE102015213138A1 (en) * 2015-07-14 2017-01-19 Siemens Schweiz Ag Procedure for performing an operating system update
ITUB20152302A1 (en) * 2015-07-20 2017-01-20 Campagnolo Srl Electronic bicycle system
CN106569847B (en) * 2016-10-14 2020-03-31 数源科技股份有限公司 Method for vehicle-mounted system to realize IAP remote upgrade based on mobile network
CN108089886A (en) * 2016-11-19 2018-05-29 北京同方微电子有限公司 A kind of intelligent card chip downloads the implementation method of program
CN106873553B (en) * 2017-02-09 2020-01-21 北京东土科技股份有限公司 Industrial internet operating system-based field device control management method and device
US10728523B1 (en) 2017-02-13 2020-07-28 Valmont Industries, Inc. System and method for use of 3D visual sensors on mechanized irrigation machinery
US10938855B1 (en) * 2017-06-23 2021-03-02 Digi International Inc. Systems and methods for automatically and securely provisioning remote computer network infrastructure
US10776133B2 (en) * 2018-01-25 2020-09-15 Salesforce.Com, Inc. Preemptive loading of code dependencies for improved performance
CN109522033B (en) * 2018-09-21 2020-08-11 浙江大学 ECU program and data upgrading method based on device operation self-programming and double-interrupt vector table
CN110244971A (en) * 2019-05-28 2019-09-17 湖北三江航天险峰电子信息有限公司 A kind of On-line Product upgrade-system and method based on multiple load
CN110764801B (en) * 2019-09-29 2024-02-27 国网湖南省电力有限公司 Remote upgrading method and device for high-speed power line carrier
CN111258616B (en) * 2020-01-09 2023-09-08 深圳市东深电子股份有限公司 Hydraulic RTU acquisition function upgrading method based on LORA communication
CN111258601B (en) * 2020-01-09 2023-09-08 深圳市东深电子股份有限公司 Hydraulic RTU remote upgrading method based on lossless data compression algorithm
CN111651174A (en) * 2020-04-23 2020-09-11 威胜信息技术股份有限公司 Method and system for remotely upgrading MCU (microprogrammed control Unit) program
CN111913699B (en) * 2020-08-14 2023-04-28 电子科技大学中山学院 Electric tuning antenna controller software design method for realizing compatibility of AISG-V3 and AISG-V2 protocols
CN113127035A (en) * 2021-04-15 2021-07-16 沃太能源股份有限公司 Traceable upgrading method based on single chip microcomputer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5325532A (en) * 1992-09-25 1994-06-28 Compaq Computer Corporation Automatic development of operating system boot image
US5452339A (en) * 1994-02-09 1995-09-19 Harris Corporation Local/remote modification of electronically alterable operating system firmware resident in redundant flash memory of remote unit for testing/conditioning subscriber line circuits
US5701492A (en) * 1996-03-29 1997-12-23 Canon Kabushiki Kaisha Fail-safe flashing of EPROM
US5812857A (en) * 1996-08-28 1998-09-22 Extended Systems, Inc. Field configurable embedded computer system

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5155847A (en) 1988-08-03 1992-10-13 Minicom Data Corporation Method and apparatus for updating software at remote locations
US5878256A (en) 1991-10-16 1999-03-02 International Business Machine Corp. Method and apparatus for providing updated firmware in a data processing system
US5647056A (en) 1992-11-18 1997-07-08 Canon Information Systems, Inc. Method and apparatus for managing access to a networked peripheral
US5815722A (en) * 1992-11-18 1998-09-29 Canon Information Systems, Inc. In an interactive network board, a method and apparatus for remotely downloading and executing files in a memory
US5623604A (en) * 1992-11-18 1997-04-22 Canon Information Systems, Inc. Method and apparatus for remotely altering programmable firmware stored in an interactive network board coupled to a network peripheral
US5544320A (en) 1993-01-08 1996-08-06 Konrad; Allan M. Remote information service access system based on a client-server-service model
US5566335A (en) 1993-03-16 1996-10-15 Hewlett-Packard Company Method and apparatus for firmware upgrades in embedded systems
US5467286A (en) 1993-11-03 1995-11-14 Square D Company Metering unit with downloadable firmware
US6112235A (en) 1995-06-07 2000-08-29 Spofford; Jason J. Method and apparatus for remotely managing a network hardware device having an embedded server with a client computer across a network
US5737535A (en) 1995-06-07 1998-04-07 Emc Corporation Flow control circuit for networked communications system including arrangement for reducing overhead at the beginning of a communications session by enabling message transmission before receiving flow control information
CN1178129C (en) * 1996-04-11 2004-12-01 株式会社日立制作所 Disk drive and computer
US6067582A (en) 1996-08-13 2000-05-23 Angel Secure Networks, Inc. System for installing information related to a software application to a remote computer over a network
JP3409983B2 (en) * 1996-11-29 2003-05-26 富士通株式会社 Communications system
US6115549A (en) 1997-02-12 2000-09-05 Novell, Inc. Directory-services-based software distribution apparatus and method
US6075943A (en) 1997-08-13 2000-06-13 International Business Machines Corporation System and method for client server software installation
US6055632A (en) 1997-09-25 2000-04-25 Allen-Bradley Company, Llc Method and apparatus for transferring firmware to a non-volatile memory of a programmable controller system
US6055633A (en) 1997-10-28 2000-04-25 Honeywell Inc. Method of reprogramming memories in field devices over a multidrop network
US6678741B1 (en) * 1999-04-09 2004-01-13 Sun Microsystems, Inc. Method and apparatus for synchronizing firmware
US6832373B2 (en) * 2000-11-17 2004-12-14 Bitfone Corporation System and method for updating and distributing information
US6944854B2 (en) * 2000-11-30 2005-09-13 International Business Machines Corporation Method and apparatus for updating new versions of firmware in the background

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5325532A (en) * 1992-09-25 1994-06-28 Compaq Computer Corporation Automatic development of operating system boot image
US5452339A (en) * 1994-02-09 1995-09-19 Harris Corporation Local/remote modification of electronically alterable operating system firmware resident in redundant flash memory of remote unit for testing/conditioning subscriber line circuits
US5701492A (en) * 1996-03-29 1997-12-23 Canon Kabushiki Kaisha Fail-safe flashing of EPROM
US5812857A (en) * 1996-08-28 1998-09-22 Extended Systems, Inc. Field configurable embedded computer system

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2863733A1 (en) * 2003-12-11 2005-06-17 Siemens Ag Operating system software updating process for e.g. machine, involves transmitting new operating system to automation device connected to computer device, through network
GB2411494A (en) * 2004-02-27 2005-08-31 Toshiba Res Europ Ltd Modifying protocol stacks
GB2411494B (en) * 2004-02-27 2006-04-12 Toshiba Res Europ Ltd Protocol stack with modification facility
DE102005021917A1 (en) * 2005-05-12 2006-11-16 Conti Temic Microelectronic Gmbh Electronically controlled component, has memory with interface for data communication of unit/memory unit with control device connected with memory by interface, where memory is connected with controlled unit for training data values
WO2007104899A1 (en) * 2006-03-16 2007-09-20 Thomson Licensing Method for robust software updating
US9112891B2 (en) 2007-02-02 2015-08-18 Sharp Laboratories Of America, Inc. Remote firmware management for electronic devices
US8019794B2 (en) 2007-04-02 2011-09-13 Sharp Laboratories Of America, Inc. Firmware repository for MFP devices
EP2557516B1 (en) * 2007-05-30 2019-02-20 Ascensia Diabetes Care Holdings AG Architecture for health monitoring systems
EP2156349A1 (en) * 2007-05-30 2010-02-24 Bayer Healthcare, LLC Architecture for health monitoring systems
US8495601B2 (en) 2010-06-09 2013-07-23 Lear Corporation Shared memory architecture
US8539472B2 (en) 2010-06-09 2013-09-17 Lear Corporation Method and system of updating shared memory
US9195576B2 (en) 2010-06-09 2015-11-24 Lear Corporation Shared memory architecture
CN102591690A (en) * 2011-12-27 2012-07-18 南京理学工程数据技术有限公司 Embedded system remote upgrade method
CN103530146B (en) * 2013-09-16 2016-09-07 成都交大光芒科技股份有限公司 Low-power-consumption embedded equipment remote radio upgrade method
CN103530146A (en) * 2013-09-16 2014-01-22 成都交大光芒科技股份有限公司 Low-power-consumption embedded device remote wireless updating method
CN105511927A (en) * 2015-12-21 2016-04-20 上海华测导航技术股份有限公司 Method for upgrading radio firmware
CN112491600A (en) * 2018-03-07 2021-03-12 华为技术有限公司 Method and device for upgrading network card firmware, network card and equipment
CN108874432A (en) * 2018-08-17 2018-11-23 深圳市优驰科技有限公司 Radio firmware upgrade-system
CN108874432B (en) * 2018-08-17 2022-07-12 深圳市优驰科技有限公司 Wireless firmware upgrade system
CN111722856B (en) * 2019-03-19 2024-04-09 上海汽车集团股份有限公司 Method and device for upgrading firmware in vehicle-mounted microcontroller
CN111722856A (en) * 2019-03-19 2020-09-29 上海汽车集团股份有限公司 Method and device for upgrading firmware in vehicle-mounted microcontroller
CN110262820A (en) * 2019-06-13 2019-09-20 陕西瑞迅电子信息技术有限公司 Method, apparatus, system and storage medium based on MQTT protocol realization OTA upgrading
CN110532014B (en) * 2019-08-20 2023-06-30 海信(广东)空调有限公司 Program upgrading method, device, terminal equipment and computer readable storage medium
CN110532014A (en) * 2019-08-20 2019-12-03 海信(广东)空调有限公司 Programme upgrade method, device, terminal device and computer readable storage medium
CN112181454A (en) * 2020-09-21 2021-01-05 西安微电子技术研究所 Remote upgrading system and method for unattended equipment
CN112181454B (en) * 2020-09-21 2023-04-07 西安微电子技术研究所 Remote upgrading system and method for unattended equipment
WO2022241918A1 (en) * 2021-05-19 2022-11-24 武汉天喻信息产业股份有限公司 Remote upgrading method and apparatus for internet of things device
CN114189440A (en) * 2021-11-01 2022-03-15 深圳拓邦股份有限公司 Remote upgrading method and device for multiple control boards of Internet of things equipment and storage medium

Also Published As

Publication number Publication date
US7093244B2 (en) 2006-08-15
WO2002084484A3 (en) 2004-06-10
US20040015952A1 (en) 2004-01-22

Similar Documents

Publication Publication Date Title
US7093244B2 (en) Method of remotely upgrading firmware in field-deployed devices
US5925140A (en) Apparatus and method for error free loading of a programmable non-volatile memory over a datalink
US7237145B2 (en) Fault-tolerant architecture for in-circuit programming
US6275931B1 (en) Method and apparatus for upgrading firmware boot and main codes in a programmable memory
US6640334B1 (en) Method and apparatus of remotely updating firmware of a communication device
US6615404B1 (en) Method and apparatus for downloading software into an embedded-system
US6622246B1 (en) Method and apparatus for booting and upgrading firmware
CN101815988A (en) Firmware image update and management
JP2002516005A (en) In-circuit programming structure with ROM and flash memory
US20050149923A1 (en) System update protocol
CN109189445A (en) A kind of method of internet of things equipment program upgrading
CN112947977A (en) Software online upgrading method and system
JP3864337B2 (en) How to upgrade
EP1744244A2 (en) Fault-tolerant architecture for in-circuit programming
US6842820B2 (en) Processor with embedded in-circuit programming structures
US20020178242A1 (en) System, method, server, computer and computer program for activating a computer
US6301709B1 (en) Circuit pack system with semi-or fully-automatic upgrade capability
US20040127202A1 (en) Method for remotely updating software for radio port
CN111736882B (en) Remote upgrading method of DSP program
Cisco Working With System Software Images
WO2001004749A1 (en) Method and apparatus for upgrading firmware in an embedded system
JP2003309485A (en) Device and method for updating software
EP1008041B1 (en) Processor with embedded in-circuit programming structures
JP2000040003A (en) Firmware updation system
JP2000324195A (en) System and method for updating network interface

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A2

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ OM PH PL PT RO RU SD SE SG SI SK SL TJ TM TN TR TT TZ UA UG UZ VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

122 Ep: pct application non-entry in european phase
NENP Non-entry into the national phase

Ref country code: JP

WWW Wipo information: withdrawn in national office

Country of ref document: JP