CN105138379A - Method for on-line upgrading based on Ymodem protocol - Google Patents
Method for on-line upgrading based on Ymodem protocol Download PDFInfo
- Publication number
- CN105138379A CN105138379A CN201510604089.7A CN201510604089A CN105138379A CN 105138379 A CN105138379 A CN 105138379A CN 201510604089 A CN201510604089 A CN 201510604089A CN 105138379 A CN105138379 A CN 105138379A
- Authority
- CN
- China
- Prior art keywords
- chip microcomputer
- online upgrading
- ymodem
- district
- application program
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention relates to a method for on-line upgrading based on an Ymodem protocol and belongs to the field of single-chip microcomputer application. The on-line upgrading based on the Ymodem protocol is an interactive on-line upgrading mode. According to the method for on-line upgrading by utilizing a memory inside a single-chip microcomputer, the use of external resources is reduced, the use efficiency of the single-chip microcomputer is improved, and the on-line upgrading reliability can be guaranteed through the interactive mode and the method for partition of the internal memory.
Description
Technical field
The present invention relates to a kind of online upgrading method based on Ymodem, belong to single chip application field.
Background technology
In single chip application field, be in the Embedded System Design of control treatment device with single-chip microcomputer, sometimes need ceaselessly to revise application program when practical application, or product function is constantly upgraded, program finally can not be decided quickly, although a lot of single-chip microcomputer both provides IAP and ISP function, needing to open product casing at the scene can upgrade application program.Such as, and for some special embedded systems, sensor acquisition system, scene does not allow to carry out program upgrade to sensor operation of devaning.What scene was supplied to that we use only has RS485 bus, realizes carrying out the demand of online upgrading to different equipment more and more stronger by RS485 bus network.At the scene in online upgrading process, need a kind of online upgrading mode reliably.For ISP or the IAP online upgrading scheme that some single-chip microcomputers provide, owing to lacking necessary mutual and verification in online upgrading process, cause makeing mistakes in escalation process at the scene, cause whole system normally to run.
Summary of the invention
In order to overcome above-mentioned defect, the object of patent of the present invention is to provide a kind of single-chip microcomputer reliable online upgrading method.
In order to achieve the above object, patent of the present invention adopts following technical scheme:
A kind of online upgrading method based on Ymodem:
The device of online upgrading comprises control program, and single-chip microcomputer internal storage areas divides, RS485 bus and Ymodem communication; Online upgrading needs control program and RS485 connecting line, and computer is connected with single-chip microcomputer by RS485 bus;
The step of online upgrading is the upgrading of control program transmitting order to lower levels notice single-chip microcomputer, and upgrading data packet is sent to single-chip microcomputer by RS485 bus by software, and after completing, monolithic processor resetting performs new application program;
Single-chip microcomputer internal storage is divided into three parts, is respectively boot A district, application program B district, application program C district; When powering on, single-chip microcomputer performs boot, reads the zone bit of single-chip microcomputer internal storage inside, selects to perform corresponding application program; During online upgrading, online upgrading packet is stored in another storage area;
Agreement between single-chip microcomputer and software uses Ymodem, and Ymodem is a kind of based on interactively communication protocol, effectively can ensure the reliability of online upgrading.
During first time program curing, boot is downloaded to boot A district, application code is downloaded to application program B district.
Beneficial effect of the present invention: the present invention is by the special subregion of internal storage of single-chip microcomputer, can select to perform different application programs, can not when online upgrading, just cover original application program part, use Ymodem, realize that software and single-chip microcomputer are directly interactive sends online upgrading data packet, improve the reliability of online upgrading.
Accompanying drawing explanation
Fig. 1 is program flow diagram of the present invention;
Fig. 2 is the connection diagram of intermodule of the present invention.
Embodiment
Describe the present invention below in conjunction with accompanying drawing 1,2:
The module of online upgrading comprises control program 1, and single-chip microcomputer 3 internal storage areas divides, RS485 bus 2 and Ymodem communication; Online upgrading needs control program and RS485 connecting line, and computer is connected with single-chip microcomputer by RS485 bus;
The step of online upgrading is the upgrading of control program transmitting order to lower levels notice single-chip microcomputer, and upgrading data packet is sent to single-chip microcomputer by RS485 bus by software, and after completing, monolithic processor resetting performs new application program;
Single-chip microcomputer internal storage is divided into three parts, is respectively boot A district, application program B district, application program C district; When powering on, single-chip microcomputer performs boot, reads the zone bit of single-chip microcomputer internal storage inside, selects to perform corresponding application program; During online upgrading, online upgrading packet is stored in another storage area;
Agreement between single-chip microcomputer and software uses Ymodem, and Ymodem is a kind of based on interactively communication protocol, effectively can ensure the reliability of online upgrading.
During first time program curing, boot is downloaded to boot A district, application code is downloaded to application program B district.
Claims (2)
1., based on an online upgrading method for Ymodem, it is characterized in that:
The module of online upgrading comprises control program (1), and single-chip microcomputer (3) internal storage areas divides, RS485 bus (2) and Ymodem communication; Online upgrading needs control program and RS485 connecting line, and computer is connected with single-chip microcomputer by RS485 bus;
The step of online upgrading is the upgrading of control program transmitting order to lower levels notice single-chip microcomputer, and upgrading data packet is sent to single-chip microcomputer by RS485 bus by software, and after completing, monolithic processor resetting performs new application program;
Single-chip microcomputer internal storage is divided into three parts, is respectively boot A district, application program B district, application program C district; When powering on, single-chip microcomputer performs boot, reads the zone bit of single-chip microcomputer internal storage inside, selects to perform corresponding application program; During online upgrading, online upgrading packet is stored in another storage area;
Agreement between single-chip microcomputer and software uses Ymodem, and Ymodem is a kind of based on interactively communication protocol, effectively can ensure the reliability of online upgrading.
2. the online upgrading method based on Ymodem according to claim 1, is characterized in that: during first time program curing, boot is downloaded to boot A district, application code is downloaded to application program B district.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510604089.7A CN105138379A (en) | 2015-09-22 | 2015-09-22 | Method for on-line upgrading based on Ymodem protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510604089.7A CN105138379A (en) | 2015-09-22 | 2015-09-22 | Method for on-line upgrading based on Ymodem protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105138379A true CN105138379A (en) | 2015-12-09 |
Family
ID=54723736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510604089.7A Pending CN105138379A (en) | 2015-09-22 | 2015-09-22 | Method for on-line upgrading based on Ymodem protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105138379A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106874056A (en) * | 2017-03-14 | 2017-06-20 | 成都天奥电子股份有限公司 | TI C2000 DSP serial ports online upgrading methods based on Ymodem |
CN108103683A (en) * | 2017-12-14 | 2018-06-01 | 浙江众邦机电科技有限公司 | Sewing-machine equipment and its software program update device |
CN110968330A (en) * | 2019-11-29 | 2020-04-07 | 上海商米科技集团股份有限公司 | Method for upgrading GD32 controller by using Ymodem protocol based on Android intelligent device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203133828U (en) * | 2013-01-30 | 2013-08-14 | 江苏怡丰通信设备有限公司 | Simple terminal handset |
CN103514018A (en) * | 2013-10-08 | 2014-01-15 | 上海电力学院 | Method for remotely downloading programs based on STM32F4 controller |
CN104375855A (en) * | 2014-09-24 | 2015-02-25 | 深圳市航盛电子股份有限公司 | Device and method for upgrading firmware through storage devices on basis of multiple vehicle-mounted MCUs |
CN104572206A (en) * | 2015-01-14 | 2015-04-29 | 厦门为那通信科技有限公司 | Application program self updating and backup recovery method |
-
2015
- 2015-09-22 CN CN201510604089.7A patent/CN105138379A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN203133828U (en) * | 2013-01-30 | 2013-08-14 | 江苏怡丰通信设备有限公司 | Simple terminal handset |
CN103514018A (en) * | 2013-10-08 | 2014-01-15 | 上海电力学院 | Method for remotely downloading programs based on STM32F4 controller |
CN104375855A (en) * | 2014-09-24 | 2015-02-25 | 深圳市航盛电子股份有限公司 | Device and method for upgrading firmware through storage devices on basis of multiple vehicle-mounted MCUs |
CN104572206A (en) * | 2015-01-14 | 2015-04-29 | 厦门为那通信科技有限公司 | Application program self updating and backup recovery method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106874056A (en) * | 2017-03-14 | 2017-06-20 | 成都天奥电子股份有限公司 | TI C2000 DSP serial ports online upgrading methods based on Ymodem |
CN108103683A (en) * | 2017-12-14 | 2018-06-01 | 浙江众邦机电科技有限公司 | Sewing-machine equipment and its software program update device |
CN108103683B (en) * | 2017-12-14 | 2020-07-28 | 浙江众邦机电科技有限公司 | Sewing machine equipment and software program upgrading device thereof |
CN110968330A (en) * | 2019-11-29 | 2020-04-07 | 上海商米科技集团股份有限公司 | Method for upgrading GD32 controller by using Ymodem protocol based on Android intelligent device |
CN110968330B (en) * | 2019-11-29 | 2024-01-09 | 上海商米科技集团股份有限公司 | Method for upgrading GD32 controller by using Ymodem protocol based on Android intelligent equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104149717B (en) | A kind of long-range noiseless renewal system and method for car load control | |
CN103559066B (en) | Embedded software upgrade method based on CANOPEN agreement | |
CN104102518B (en) | double-CPU system and program upgrading method thereof | |
CN103064382B (en) | Optical proximity correction (OPC) embedded-type remote data collecting system and method based on ARM framework | |
CN105354070A (en) | Method for upgrading equipment firmware through I2C | |
CN105224362A (en) | Host computer carries out the method and system of program upgrade to slave computer | |
CN105786549B (en) | Smart machine and its upgrade method | |
CN104331312A (en) | Firmware updating method and embedded device | |
CN105183675A (en) | USB equipment access method, device and system, terminal and server | |
CN105373407A (en) | DSP and FPGA online upgrading method for embedded system | |
CN110209399A (en) | FPGA service system, data processing method and storage medium | |
CN102840992B (en) | Satellite-borne self-testing method based on satellite network | |
CN104021014B (en) | A kind of firmware upgrade method based on dual-CPU system | |
CN103902305A (en) | Software long-distance loading and solidifying method based on TI DSP | |
CN104283878A (en) | Security type mobile terminal based on cloud services and method of security type mobile terminal based on cloud services for having access to cloud server | |
CN104486419A (en) | Network firmware updating method based on FT platform | |
CN105259806A (en) | Controller upgrade method and system, main controller and slave controller | |
CN105138379A (en) | Method for on-line upgrading based on Ymodem protocol | |
CN105335316A (en) | Motor assembling line serial port server based on cloud computation | |
CN104506943A (en) | Set top box software customized upgrading method | |
CN104699524A (en) | SOC (system on chip) chip verifying system and method for dynamic simulation of static compilation | |
CN104597789A (en) | Charging pile self-checking device, system and method | |
CN105468390A (en) | BOOT online upgrade apparatus and method | |
CN105739464B (en) | Master Communications method in intelligent appliance equipment | |
CN107621943A (en) | A kind of FPGA dynamic batch programming system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151209 |