CN111625255A - Batch offline downloader based on ymodem protocol and upgrading method - Google Patents

Batch offline downloader based on ymodem protocol and upgrading method Download PDF

Info

Publication number
CN111625255A
CN111625255A CN202010390026.7A CN202010390026A CN111625255A CN 111625255 A CN111625255 A CN 111625255A CN 202010390026 A CN202010390026 A CN 202010390026A CN 111625255 A CN111625255 A CN 111625255A
Authority
CN
China
Prior art keywords
upgrading
module
processing unit
central processing
hlpc
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
Application number
CN202010390026.7A
Other languages
Chinese (zh)
Inventor
高声林
周强
邓涛
蒋敬东
高鸿松
方辉
郑若洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Topsky Information Technology Co ltd
Original Assignee
Beijing Topsky Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Topsky Information Technology Co ltd filed Critical Beijing Topsky Information Technology Co ltd
Priority to CN202010390026.7A priority Critical patent/CN111625255A/en
Publication of CN111625255A publication Critical patent/CN111625255A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

The invention discloses a batch offline downloader based on a ymodem protocol and an upgrading method, wherein the batch offline downloader comprises a key module, a central processing unit, a liquid crystal display, an LED indication module, a USB interface, a memory and a plurality of upgrading channels; the output ends of the key module and the USB interface are connected with a central processing unit, the output end of the central processing unit is respectively connected with the liquid crystal display and the LED indication module, and the central processing unit is also respectively connected with the memory and each upgrading channel; each upgrading channel is connected with an external HLPC communication module to be upgraded. The invention utilizes the USB interface to connect with the external computer equipment, copies the program to be updated from the computer equipment and then stores the program into the memory, can be carried out off-line in the upgrading process, transmits the program through the ymodem protocol, supports the simultaneous upgrading of a plurality of modules and displays the upgrading result and the version information. Compared with the traditional online upgrading mode, the invention belongs to the field of application programming, the module is instantly upgraded in a plug-and-play manner, the complex operations such as shell disassembly and jumper wire are not needed, the equipment required by upgrading is simplified, the upgrading time is saved, and the upgrading efficiency is improved.

Description

Batch offline downloader based on ymodem protocol and upgrading method
Technical Field
The invention relates to upgrading of an HPLC communication module, in particular to a batch offline downloader based on a ymodem protocol and an upgrading method.
Background
For an industrial product (such as an HPLC communication module) in which a program is stored in an SPI FLASH, the general method is to burn the program into the FLASH through an spiflah programmer and then perform the chip mounting. After the finished product is made, if program upgrading is to be carried out, the program needs to be connected with a computer through a serial port, and the computer upgrades the product through a specific application layer protocol or a Ymodem protocol.
However, the upgrade can be carried out only by single upgrade through computer connection, and meanwhile, the upgrade needs to be carried out on the software of the upper computer, so that the batch upgrade of production is not facilitated, the efficiency is low, the upgrade time is long, and the error rate is high.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a batch offline downloader based on a ymodem protocol and an upgrading method, which can support simultaneous upgrading of a plurality of HPLC communication modules, save upgrading time and improve upgrading efficiency.
The purpose of the invention is realized by the following technical scheme: a batch offline downloader based on a ymodem protocol comprises a key module, a central processing unit, a liquid crystal display, an LED indication module, a USB interface, a memory and a plurality of upgrading channels;
the output ends of the key module and the USB interface are connected with a central processing unit, the output end of the central processing unit is respectively connected with the liquid crystal display and the LED indication module, and the central processing unit is also respectively connected with the memory and each upgrading channel; each upgrading channel is connected with an external HLPC communication module to be upgraded;
the key module is used for a user to select an upgrading channel needing upgrading work;
the central processing unit is connected with external computer equipment by using a USB interface and is used for copying a program to be updated from the computer equipment and then storing the program into the memory; after receiving the information of the upgrade channel selected by the key module, turning on a power switch corresponding to the upgrade channel, reading the software version of the HLPC communication module connected with the upgrade channel, controlling the LPC communication module to carry out a command mode, starting a command of the ymodem, enabling the HLPC communication module to enter an upgrade state, transmitting a program stored in a memory to the HLPC communication module for upgrading, and displaying an upgrade result by using a liquid crystal display and an LED indication module after the upgrade is successful.
A upgrading method of a batch offline downloader based on a ymodem protocol comprises the following steps:
s1, a central processing unit is connected with external computer equipment by using a USB interface, and a program to be updated is copied from the computer equipment and then stored in a memory;
s2, a user selects an upgrading channel needing upgrading work through a key module, a central processing unit turns on a power switch of the selected upgrading channel, and a software version of an HLPC communication module connected with the upgrading channel is read;
s3, the central processing unit sends an instruction to the corresponding HLPC communication module through the selected upgrading channel, so that the corresponding HLPC communication module enters a command mode;
s4, after the HLPC communication module connected with the upgrading channel enters a command mode, the central processing unit sends a command for starting the ymodem through the upgrading channel, so that the HLPC communication module enters an upgrading state;
s5, the central processing unit transmits the program in the memory to the HLPC communication module entering the upgrading state through the corresponding upgrading channel through the ymodem protocol;
s6, after waiting for the upgrading program of the HLPC communication module, the central processing unit reads the software version through a command, compares the software version with the version before downloading, and after the comparison is successful, displays the upgrading result and the current software version through the liquid crystal and controls the corresponding LED indicator lamp to be turned on at the same time.
The invention has the beneficial effects that: the invention uses the USB interface to connect the external computer equipment, copies the program to be updated in the computer equipment and stores the copied program in the memory, can be carried out off-line (without connecting a computer) in the upgrading process, supports the simultaneous upgrading of a plurality of modules, and displays the upgrading result and the version information.
Drawings
FIG. 1 is a functional block diagram of a downloader of the present invention;
FIG. 2 is a functional block diagram of an upgrade channel;
FIG. 3 is a flow chart of the method of the present invention.
Detailed Description
The technical solutions of the present invention are further described in detail below with reference to the accompanying drawings, but the scope of the present invention is not limited to the following.
As shown in fig. 1, a mass offline downloader based on ymodem protocol comprises a key module, a central processing unit, a liquid crystal display, an LED indication module, a USB interface, a memory and a plurality of upgrade channels;
the output ends of the key module and the USB interface are connected with a central processing unit, the output end of the central processing unit is respectively connected with the liquid crystal display and the LED indication module, and the central processing unit is also respectively connected with the memory and each upgrading channel; each upgrading channel is connected with an external HLPC communication module to be upgraded;
the key module is used for a user to select an upgrading channel needing upgrading work;
the central processing unit is connected with external computer equipment by using a USB interface and is used for copying a program to be updated from the computer equipment and then storing the program into the memory; after receiving the information of the upgrade channel selected by the key module, turning on a power switch corresponding to the upgrade channel, reading the software version of the HLPC communication module connected with the upgrade channel, controlling the LPC communication module to carry out a command mode, starting a command of the ymodem, enabling the HLPC communication module to enter an upgrade state, transmitting a program stored in a memory to the HLPC communication module for upgrading, and displaying an upgrade result by using a liquid crystal display and an LED indication module after the upgrade is successful.
In an embodiment of the application, the computer device comprises one of a PC computer, a notebook computer and an ipad; the downloader still includes power module, power module is connected with button module, central processing unit, LCD, LED indication module, USB interface, memory and each upgrading passageway respectively.
As shown in fig. 2, in the embodiment of the present application, each of the upgrade channels includes a power switch, a communication serial port and a power supply interface, one end of the communication serial port is connected to the central processing unit, the other end of the communication serial port is connected to the HLPC communication module, a power supply input end of the power switch is connected to the power supply module, a power supply output end of the power switch is connected to the communication serial port and the power supply interface, and a control input end of the power switch is connected to the central processing unit; the power supply interface is also connected with the power supply input end of the HLPC communication module.
In an embodiment of the present application, the key module includes a plurality of upgrade buttons, each of the upgrade buttons corresponds to a different upgrade channel; the LED indicating module comprises a plurality of LED indicating lamps, and each LED indicating lamp corresponds to a different upgrading channel.
As shown in fig. 3, a method for upgrading a batched offline downloader based on a ymodem protocol includes the following steps:
s1, a central processing unit is connected with external computer equipment by using a USB interface, and a program to be updated is copied from the computer equipment and then stored in a memory;
s2, a user selects an upgrading channel needing upgrading work through a key module, a central processing unit turns on a power switch of the selected upgrading channel, and a software version of an HLPC communication module connected with the upgrading channel is read;
s3, the central processing unit sends an instruction (sending ctr + c characters) to the corresponding HLPC communication module through the selected upgrading channel, so that the corresponding HLPC communication module enters a command mode;
s4, after the HLPC communication module connected with the upgrading channel enters a command mode, the central processing unit sends a command for starting the ymodem through the upgrading channel, so that the HLPC communication module enters an upgrading state;
s5, the central processing unit transmits the program in the memory to the HLPC communication module entering the upgrading state through the corresponding upgrading channel through the ymodem protocol;
s6, after waiting for the upgrading program of the HLPC communication module, the central processing unit reads the software version through a command, compares the software version with the version before downloading, and after the comparison is successful, displays the upgrading result and the current software version through the liquid crystal and controls the corresponding LED indicator lamp to be turned on at the same time.
The invention utilizes the USB interface to connect with the external computer equipment, copies the program to be updated in the computer equipment and then stores the copied program in the memory, can be carried out off-line (without connecting with a computer) in the upgrading process, supports the simultaneous upgrading of a plurality of modules, displays the upgrading result and the version information, saves the upgrading time and improves the upgrading efficiency.
The foregoing is a preferred embodiment of the present invention, it is to be understood that the invention is not limited to the form disclosed herein, but is not to be construed as excluding other embodiments, and is capable of other combinations, modifications, and environments and is capable of changes within the scope of the inventive concept as expressed herein, commensurate with the above teachings, or the skill or knowledge of the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (7)

1. A batch offline downloader based on a ymodem protocol is characterized in that: the system comprises a key module, a central processing unit, a liquid crystal display, an LED indication module, a USB interface, a memory and a plurality of upgrading channels;
the output ends of the key module and the USB interface are connected with a central processing unit, the output end of the central processing unit is respectively connected with the liquid crystal display and the LED indication module, and the central processing unit is also respectively connected with the memory and each upgrading channel; each upgrading channel is connected with an external HLPC communication module to be upgraded;
the key module is used for a user to select an upgrading channel needing upgrading work;
the central processing unit is connected with external computer equipment by using a USB interface and is used for copying a program to be updated from the computer equipment and then storing the program into the memory; after receiving the information of the upgrade channel selected by the key module, turning on a power switch corresponding to the upgrade channel, reading the software version of the HLPC communication module connected with the upgrade channel, controlling the LPC communication module to carry out a command mode, starting a command of the ymodem, enabling the HLPC communication module to enter an upgrade state, transmitting a program stored in a memory to the HLPC communication module for upgrading, and displaying an upgrade result by using a liquid crystal display and an LED indication module after the upgrade is successful.
2. The ymodem protocol based batched offline downloader of claim 1, wherein: the computer device comprises one of a PC computer, a notebook computer and an ipad.
3. The ymodem protocol based batched offline downloader of claim 1, wherein: the downloader still includes power module, power module is connected with button module, central processing unit, LCD, LED indication module, USB interface, memory and each upgrading passageway respectively.
4. The ymodem protocol based batched offline downloader of claim 3, wherein: each upgrading channel comprises a power switch, a communication serial port and a power supply interface, one end of the communication serial port is connected with the central processing unit, the other end of the communication serial port is connected with the HLPC communication module, the power supply input end of the power switch is connected with the power supply module, the power supply output end of the power switch is respectively connected with the communication serial port and the power supply interface, and the control input end of the power switch is connected with the central processing unit; the power supply interface is also connected with the power supply input end of the HLPC communication module.
5. The ymodem protocol based batched offline downloader of claim 1, wherein: the key module comprises a plurality of upgrading buttons, and each upgrading button corresponds to a different upgrading channel.
6. The ymodem protocol based batched offline downloader of claim 1, wherein: the LED indicating module comprises a plurality of LED indicating lamps, and each LED indicating lamp corresponds to a different upgrading channel.
7. The upgrading method of the ymodem protocol-based batch offline downloader, according to claims 1 to 6, is characterized in that: the method comprises the following steps:
s1, a central processing unit is connected with external computer equipment by using a USB interface, and a program to be updated is copied from the computer equipment and then stored in a memory;
s2, a user selects an upgrading channel needing upgrading work through a key module, a central processing unit turns on a power switch of the selected upgrading channel, and a software version of an HLPC communication module connected with the upgrading channel is read;
s3, the central processing unit sends an instruction to the corresponding HLPC communication module through the selected upgrading channel, so that the corresponding HLPC communication module enters a command mode;
s4, after the HLPC communication module connected with the upgrading channel enters a command mode, the central processing unit sends a command for starting the ymodem through the upgrading channel, so that the HLPC communication module enters an upgrading state;
s5, the central processing unit transmits the program in the memory to the HLPC communication module entering the upgrading state through the corresponding upgrading channel through the ymodem protocol;
s6, after waiting for the upgrading program of the HLPC communication module, the central processing unit reads the software version through a command, compares the software version with the version before downloading, and after the comparison is successful, displays the upgrading result and the current software version through the liquid crystal and controls the corresponding LED indicator lamp to be turned on at the same time.
CN202010390026.7A 2020-05-11 2020-05-11 Batch offline downloader based on ymodem protocol and upgrading method Pending CN111625255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010390026.7A CN111625255A (en) 2020-05-11 2020-05-11 Batch offline downloader based on ymodem protocol and upgrading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010390026.7A CN111625255A (en) 2020-05-11 2020-05-11 Batch offline downloader based on ymodem protocol and upgrading method

Publications (1)

Publication Number Publication Date
CN111625255A true CN111625255A (en) 2020-09-04

Family

ID=72272899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010390026.7A Pending CN111625255A (en) 2020-05-11 2020-05-11 Batch offline downloader based on ymodem protocol and upgrading method

Country Status (1)

Country Link
CN (1) CN111625255A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729293A (en) * 2009-12-23 2010-06-09 中兴通讯股份有限公司 Method and system for updating versions in batch based on DHCP network
CN202221567U (en) * 2011-08-18 2012-05-16 广州市浩洋电子有限公司 Software upgrading device for stage lamp
CN104821896A (en) * 2015-04-27 2015-08-05 成都腾悦科技有限公司 Multi-device simultaneous upgrade system and method
WO2018076969A1 (en) * 2016-10-24 2018-05-03 深圳创维数字技术有限公司 Software upgrade method, computing device, and channel control device
CN108103683A (en) * 2017-12-14 2018-06-01 浙江众邦机电科技有限公司 Sewing-machine equipment and its software program update device
CN108469961A (en) * 2018-03-07 2018-08-31 江苏北弓智能科技有限公司 One kind is based on micromation embedded platform remote update system and method
CN111104143A (en) * 2019-12-26 2020-05-05 北谷电子有限公司上海分公司 Firmware upgrading method and upgrading device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729293A (en) * 2009-12-23 2010-06-09 中兴通讯股份有限公司 Method and system for updating versions in batch based on DHCP network
CN202221567U (en) * 2011-08-18 2012-05-16 广州市浩洋电子有限公司 Software upgrading device for stage lamp
CN104821896A (en) * 2015-04-27 2015-08-05 成都腾悦科技有限公司 Multi-device simultaneous upgrade system and method
WO2018076969A1 (en) * 2016-10-24 2018-05-03 深圳创维数字技术有限公司 Software upgrade method, computing device, and channel control device
CN108103683A (en) * 2017-12-14 2018-06-01 浙江众邦机电科技有限公司 Sewing-machine equipment and its software program update device
CN108469961A (en) * 2018-03-07 2018-08-31 江苏北弓智能科技有限公司 One kind is based on micromation embedded platform remote update system and method
CN111104143A (en) * 2019-12-26 2020-05-05 北谷电子有限公司上海分公司 Firmware upgrading method and upgrading device

Similar Documents

Publication Publication Date Title
CN105573743B (en) Chip burning system and method and electronic equipment
CN111399922B (en) Dual-system display device and system
CN111267111A (en) Robot control method, device and system
CN204644604U (en) A kind of sewing device update device
CN202221567U (en) Software upgrading device for stage lamp
CN111625255A (en) Batch offline downloader based on ymodem protocol and upgrading method
CN110888656B (en) Multifunctional programming device and programming method
CN102654838A (en) Software upgrading device and method for stage lamp
CN101944072A (en) Method and equipment for configuring starting mode of terminal equipment
CN101996584B (en) Method and structure for setting multi-core chip address and display system for application
EP3767411A1 (en) Control system, development assistance device, and development assistance program
CN110262349A (en) A kind of the remote online programmed method and system of C8051F series monolithic
TWI290287B (en) Display device using common display data channel
CN109725621B (en) Secondary bus program online programming method based on 1553B bus and CAN bus
JPS60201461A (en) System configuration recognizing system
CN115080091A (en) Method and system for upgrading MCU firmware on line by satellite communication equipment
JP2006277733A (en) Programmable controller system
CN217034732U (en) Multichannel off-line programmer
JP2008077265A (en) Program update method for programmable controller
CN221040009U (en) Setting device
CN113467793A (en) Burning device and burning method
CN217061428U (en) Chip burning device
CN111949108B (en) Power management device, method and equipment
KR100287533B1 (en) Method for changing speed of communication between plc and computer
CN215494993U (en) DTU capable of automatically entering emergency download mode

Legal Events

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