A way to upgrade device firmware via i2c

A device and firmware technology, applied in the field of upgrading device firmware through I2C, can solve the problems of many main CPU resources, many buses and control lines, and high design cost, and achieve the effect of simplifying the design process, simple connection method and saving design cost.

CN105354070BInactive Publication Date: 2019-02-22成都瑞视恒基通信技术有限公司
3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2019-02-22
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention relates to the technical field of embedded equipment and discloses a method for upgrading equipment firmware through I2C. The method comprises the following steps: 1, connecting N slave devices to master control equipment by virtue of an I2C bus; 2, waiting for the master control equipment to upgrade when equipment loading fails; 3, downloading the firmware of the slave devices according to the information of the slave devices and transmitting an upgrade instruction to the slave devices after the master control equipment acquires an instruction needing to upgrade the slave devices, and switching the state into an upgrade mode after the upgrade instruction is received by the slave devices; 4, transmitting the firmware information to the slave devices by the master control equipment, and writing a system upgrade program into a designated location after the slave devices receive the firmware information; and 5, transmitting a restart instruction by virtue of the master control equipment, restarting the slave devices, and selecting the system function program needing to be loaded by virtue of a bootstrap program. Automatic online upgrade of the slave devices is realized by virtue of the master control equipment and the I2C bus.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of embedded device design, and discloses a method for upgrading device firmware through I2C. Background technique

[0002] IIC, also known as I2C, is Inter-Integrated Circuit, an integrated bus circuit. This bus type was designed by Philips Semiconductors in the early 1980s. The bus consists of two lines: data line (SDA) and clock line (SCL). Multiple IIC slave devices can be connected to one IIC bus, and these slave devices are distinguished by different slave addresses.

[0003] In system design, there is a structure of a single master device and multiple slave devices or modules (hereinafter collectively referred to as slave devices). Among them, the main control device has rich functions and supports multiple management methods; while the function of the slave device is relatively single, and its functions can be realized by using a relatively low-cost ordinary single-chip microcomputer, and these singl...

Examples

Embodiment Construction

[0024] In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0025] The invention discloses a method for upgrading device firmware through I2C, which specifically includes the following steps: Step 1. Connect N slave devices to a master control device through an I2C bus, and the system of each slave device includes a boot program area , system function program area and system upgrade program area; step 2, when starting from the device, the boot program selects the system function program to be loaded, when the loading is successful, the system function program starts; when the loading fails, wait for the master device to upgrade ; Step 3: After the master...