CN103838587A - Control system remote upgrading method and device based on GPRS - Google Patents

Control system remote upgrading method and device based on GPRS Download PDF

Info

Publication number
CN103838587A
CN103838587A CN201210471400.1A CN201210471400A CN103838587A CN 103838587 A CN103838587 A CN 103838587A CN 201210471400 A CN201210471400 A CN 201210471400A CN 103838587 A CN103838587 A CN 103838587A
Authority
CN
China
Prior art keywords
data
microprocessor
control module
control system
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210471400.1A
Other languages
Chinese (zh)
Other versions
CN103838587B (en
Inventor
罗文�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guiyang Aluminum Magnesium Design and Research Institute Co Ltd
Original Assignee
Guiyang Aluminum Magnesium Design and Research Institute 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 Guiyang Aluminum Magnesium Design and Research Institute Co Ltd filed Critical Guiyang Aluminum Magnesium Design and Research Institute Co Ltd
Priority to CN201210471400.1A priority Critical patent/CN103838587B/en
Publication of CN103838587A publication Critical patent/CN103838587A/en
Application granted granted Critical
Publication of CN103838587B publication Critical patent/CN103838587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a control system remote upgrading method and device based on the GPRS. According to the control system remote upgrading method based on the GPRS, an on-line remote upgrading unit is additionally arranged on an existing control system, the control system comprises a control unit and an external memory, the on-line remote upgrading unit comprises a microprocessor and a GPRS module, the control unit controls the microprocessor to start, the microprocessor controls the GPRS module to login a specified network mailbox at regular intervals to receive new system upgrading mails, the control unit writes received upgrading data into the external memory in sequence, the system is restarted after existing programs in the external memory are updated, new program data in the external memory are loaded into a memory of the control unit, and modification or upgrading of hardware programs of the system is completed. According to the control system remote upgrading method and device based on the GPRS, the GPRS technology is applied to the industrial automatic control system, technicists can modify a control program according to problems occurring on site, and remote automatic modification or upgrading of the hardware programs in the control system can be achieved with the electronic mails as carriers through the GPRS wireless network by modifying the control program.

Description

Control system remote upgrade method and device based on GPRS
Technical field
the present invention relates to a kind of control system remote upgrade method and device based on GPRS, belong to online remote upgrade technical field, particularly belong to the online remote upgrade technical field of automatic control system.
Background technology
automatic control system is being brought into play vital effect in modern industry control field, equipment control, electric power protection, and each link that the industry such as flow process control are manufactured has the figure of automatic control system.The programmable chips such as single-chip microcomputer, DSP, ARM, CPLD, PLC are being brought into play vital effect as control core, and the large-scale control systems such as DCS also become the key link in Industry Control already.
the mode that automatic control system in most industrial control field is still moved in unit operation or by cable network, go wrong if be in operation while maybe needing control system to upgrade, still often need technician to on-the-spot, the hardware program of control system is modified or upgraded, cumbersome, also restrict the development of industrial circle automatic control system.
Summary of the invention
the object of the invention is to, a kind of control system remote upgrade method and device based on GPRS is provided.General packet radio service technology (the General Packet Radio Service of comparative maturity will be developed in the communications industry in recent years, be called for short GPRS) be applied to the automatic control system in industrial control field, realize the remote upgrade of automatic control system, to overcome the deficiencies in the prior art.
technical scheme of the present invention:
control system remote upgrade method based on GPRS, the method is in existing control system, to set up online remote upgrade unit; Control system comprises control module and external storage, and online remote upgrade unit comprises microprocessor and GPRS module; Control module control microprocessor starts, the network mailbox that microprocessor control GPRS module timing login is specified receives new system upgrade mail, control module writes storage external the upgrade data receiving successively, after upgrading the existing program in storage external, restart system, new procedures data in storage external are loaded in the internal memory of control module to the amendment of completion system hardware program or upgrading.
in preceding method, described control system adopts DSP control system, and control module wherein adopts dsp chip; Described external storage adopts FLASH external storage; The microprocessor that described microprocessor adopts ARM company to produce.
in preceding method, in described dsp chip, be solidified with bootloader code, when upgrading mail is restarted system, the bootloader code being solidificated in DSP also moves the new procedures code loading in mail in the RAM of system, the amendment of completion system hardware program and upgrading.
in preceding method, between described control system and online remote upgrade unit, between the microprocessor of inside, online remote upgrade unit and GPRS module and all adopt RS232 serial ports connected mode between control module internal microprocessor and external program reservoir, and carry out work according to RS232 serial port communicating protocol.
in preceding method, described ARM microprocessor comprised the data communication units of data communication between microprocessor ARM and DSP, for the content of upgrading mail is converted to DSP program code format conversion unit, network insertion unit that completion system is connected with internet, complete the mail transmission/reception unit that receives upgrading mail and transmission and report mail.
in preceding method, the HardwareUpgring flow process of described ARM microprocessor is: receiving after the beginning flag that DSP control module sends, ARM microprocessor calculates size of data to be sent: if size of data to be sent is 0 byte, send end mark to DSP control module, otherwise send data; Each transmission data m byte, all sends if send data deficiencies m byte; Data send with the data packet form of " data word joint number+body of data+data CRC check code ", DSP control module recalculates CRC check code corresponding to data after receiving data, and contrast with the check code of receiving, unanimously represent that data successfully receive, otherwise require ARM microprocessor to retransmit this packet; DSP control module sends feedback information to ARM microprocessor after receiving total data, represents this ROMPaq data receiver success.
in preceding method, the HardwareUpgring flow process of described DSP control module is: send beginning flag to ARM microprocessor, start to receive the packet that ARM microprocessor transmits; The packet that ARM microprocessor is sent is resolved, the CRC check code of data in computational data bag, then with packet in check code contrast, if consistent, data be saved in to the interim memory sector of Flash external storage, otherwise require ARM microprocessor retransmission data; After data all receive, the routine data of the interim sector of Flash external storage is dumped to Flash external storage boot sector, restart system, utilize Bootloader technology that the new procedures in Flash external storage boot sector is loaded in the internal memory RAM in DSP control module, realize the upgrading of system hardware program.
press the device that preceding method forms, comprise control system, in control system, be provided with control module and the external storage being connected with control module serial ports; Described control system is connected through RS232 serial ports with online remote upgrade unit; Online remote upgrade unit comprises microprocessor and GPRS module.
in aforementioned means, described microprocessor is connected through RS232 serial ports with GPRS module.
in aforementioned means, described microprocessor is ARM microprocessor, and ARM microprocessor comprises data communication units, format conversion unit, network insertion unit and mail transmission/reception unit; Network insertion unit and mail transmission/reception unit are connected with GPRS module is two-way, and mail transmission/reception unit is connected with data communication units is two-way, and data communication units is connected with control module is two-way.
compared with prior art, the present invention will develop general packet radio service technology (the General Packet Radio Service of comparative maturity in recent years in the communications industry, be called for short GPRS) be applied to the automatic control system in industrial control field, the problem change control program that technician can occur according to scene, and by change control program by GPRS wireless network taking Email as carrier, the hardware program in control system is carried out to remote auto amendment or upgrading.Without setting up specially transmission line, expense is low, and connection and transmission speed are fast, can meet software modification and the upgrading needs of the automatic control system in industrial control field, improve the dirigibility of automatic control system, there is good extendability, met preferably the requirement of system low-power consumption simultaneously.
Brief description of the drawings
fig. 1 is method schematic diagram of the present invention;
fig. 2 is method flow diagram of the present invention;
fig. 3 is the workflow diagram of ARM microprocessor in escalation process;
fig. 4 is the workflow diagram of DSP control module in escalation process;
fig. 5 is the structural representation of apparatus of the present invention.
Embodiment
below in conjunction with accompanying drawing, the present invention is described in further detail, but not as any limitation of the invention.
control system remote upgrade method based on GPRS, as depicted in figs. 1 and 2.The method is in existing control system, to set up online remote upgrade unit; Control system comprises control module and external storage, and online remote upgrade unit comprises microprocessor and GPRS module; Control module control microprocessor starts, the network mailbox that microprocessor control GPRS module timing login is specified receives new system upgrade mail, control module writes storage external the upgrade data receiving successively, after upgrading the existing program in storage external, restart system, new procedures data in storage external are loaded in the internal memory of control module to the amendment of completion system hardware program or upgrading.Described control module adopts dsp chip; External storage adopts FLASH external storage; The microprocessor that microprocessor adopts ARM company to produce.In described dsp chip, be solidified with bootloader code, when upgrading mail is restarted system, the bootloader code being solidificated in DSP also moves the new procedures code loading in mail in the RAM of system, the amendment of completion system hardware program and upgrading.Between described control system and online remote upgrade unit, between the microprocessor of inside, online remote upgrade unit and GPRS module and all adopt RS232 serial ports connected mode between control module internal microprocessor and external program reservoir, and carry out work according to RS232 serial port communicating protocol.Described ARM microprocessor as shown in Figure 5, comprised the data communication units of data communication between microprocessor ARM and DSP, for the content of upgrading mail is converted to DSP program code format conversion unit, network insertion unit that completion system is connected with internet, complete the mail transmission/reception unit that receives upgrading mail and transmission and report mail.The HardwareUpgring flow process of described ARM microprocessor is as shown in Figure 3: receiving after the beginning flag that DSP control module sends, ARM microprocessor calculates size of data to be sent: if size of data to be sent is 0 byte, send end mark to DSP control module, otherwise send data; Each transmission data m byte, all sends if send data deficiencies m byte; Data send with the data packet form of " data word joint number+body of data+data CRC check code ", DSP control module recalculates CRC check code corresponding to data after receiving data, and contrast with the check code of receiving, unanimously represent that data successfully receive, otherwise require ARM microprocessor to retransmit this packet; DSP control module sends feedback information to ARM microprocessor after receiving total data, represents this ROMPaq data receiver success.The HardwareUpgring flow process of described DSP control module is as shown in Figure 4: DSP control module sends beginning flag to ARM microprocessor, starts to receive the packet that ARM microprocessor transmits; The packet that ARM microprocessor is sent is resolved, the CRC check code of data in computational data bag, then with packet in check code contrast, if consistent, data be saved in to the interim memory sector (sector7) of Flash external storage, otherwise require ARM microprocessor retransmission data; After data all receive, the routine data of interim Flash external storage sector (sector7) is dumped to Flash external storage boot sector (sector0), restart system, utilize Bootloader technology that the new procedures in Flash external storage boot sector (sector0) is loaded in the internal memory RAM in DSP control module, realize the upgrading of system hardware program.
press the device that preceding method forms, as shown in Figure 5.Comprise control system 1, in control system 1, be provided with control module 2 and the external storage 3 being connected with control module 2 serial ports; Described control system 1 is connected through RS232 serial ports with online remote upgrade unit 4; Online remote upgrade unit 4 comprises microprocessor 5 and GPRS module 6.Microprocessor 5 is connected through RS232 serial ports with GPRS module 6.Microprocessor 5 is ARM microprocessor, and ARM microprocessor comprises data communication units 7, format conversion unit 8, network insertion unit 9, mail transmission/reception unit 10.Network insertion unit 9 and mail transmission/reception unit 10 are connected with GPRS module 6 is two-way, and mail transmission/reception unit 10 is connected with data communication units 7 is two-way, and data communication units 7 is connected with control module 2 is two-way.
to supplementary notes of the present invention
the present invention has increased a set of online remote upgrade unit on the basis of existing control system.Existing control system is to be made up of with the external storage being connected with control module serial line interface control module.The control core of control module using dsp chip as system, has a FLASH external storage, passes through serial communication between the two; Remote upgrade function, taking GPRS module as basis, is realized in online remote upgrade unit under the control of ARM microprocessor, completes the control function of whole system.Online remote upgrade unit, by ARM microprocessor and GPRS module composition, is provided with data communication units, format conversion unit, network insertion unit, mail transmission/reception unit in ARM microprocessor.ARM microprocessor be DSP control module from equipment, ARM microprocessor is connected by RS232 serial ports with GPRS module, system is utilized GPRS module online accesses network mailbox by ARM microprocessor, thereby operates accordingly.DSP control module carries out entirety as main control unit to system to be controlled, and ARM microprocessor is responsible for Telnet network mailbox, and receive-transmit system upgrading mail, coordinates DSP control module to complete remote upgrade function.Online remote upgrade unit is taking ARM microprocessor as core, and under the control of control module, completion system is sent and received e-mail, and realizes the remote online upgrading of system.Online remote upgrade cell operation process is: DSP control module control ARM microprocessor starts, and the data communication units of ARM microprocessor is started working according to the serial communication protocol of DSP control module and ARM microprocessor.ARM microprocessor control GPRS module is carried out the login of network mailbox, obtains system upgrade mail from mailbox, completes reading of mail.DSP control module is saved in external program reservoir after receiving data, if receive system upgrade mail, ARM microprocessor is controlled GPRS module and is read mail and identify the effective content (content in ARM microprocessor parsing mail in mail, extract routine data, send the data to DSP control module by serial ports), routine data after coding is passed to DSP control module, DSP control module successively order writes external program reservoir the data that receive, after upgrading the routine data in reservoir, restart system, program in external storage is loaded in the internal memory RAM of DSP control module based on bootloader technology, the amendment of completion system hardware program and upgrading.

Claims (10)

1. the control system remote upgrade method based on GPRS, is characterized in that: the method is in existing control system, to set up online remote upgrade unit; Control system comprises control module and external storage, and online remote upgrade unit comprises microprocessor and GPRS module; Control module control microprocessor starts, the network mailbox that microprocessor control GPRS module timing login is specified receives new system upgrade mail, control module writes storage external the upgrade data receiving successively, after upgrading the existing program in storage external, restart system, new procedures data in storage external are loaded in the internal memory of control module to the amendment of completion system hardware program or upgrading.
2. method according to claim 1, is characterized in that: described control system adopts DSP control system, and control module wherein adopts dsp chip; Described external storage adopts FLASH external storage; The microprocessor that described microprocessor adopts ARM company to produce.
3. method according to claim 1, it is characterized in that: in described dsp chip, be solidified with bootloader code, when upgrading mail is restarted system, the bootloader code being solidificated in DSP also moves the new procedures code loading in mail in the RAM of system, the amendment of completion system hardware program and upgrading.
4. method according to claim 1, it is characterized in that: between described control system and online remote upgrade unit, between the microprocessor of inside, online remote upgrade unit and GPRS module and all adopt RS232 serial ports connected mode between control module internal microprocessor and external program reservoir, and carry out work according to RS232 serial port communicating protocol.
5. method according to claim 1, is characterized in that: described ARM microprocessor comprised the data communication units of data communication between microprocessor ARM and DSP, for the content of upgrading mail is converted to DSP program code format conversion unit, network insertion unit that completion system is connected with internet, complete the mail transmission/reception unit that receives upgrading mail and transmission and report mail.
6. method according to claim 1, it is characterized in that: the HardwareUpgring flow process of described ARM microprocessor is: receiving after the beginning flag that DSP control module sends, ARM microprocessor calculates size of data to be sent: if size of data to be sent is 0 byte, send end mark to DSP control module, otherwise send data; Each transmission data m byte, all sends if send data deficiencies m byte; Data send with the data packet form of " data word joint number+body of data+data CRC check code ", DSP control module recalculates CRC check code corresponding to data after receiving data, and contrast with the check code of receiving, unanimously represent that data successfully receive, otherwise require ARM microprocessor to retransmit this packet; DSP control module sends feedback information to ARM microprocessor after receiving total data, represents this ROMPaq data receiver success.
7. method according to claim 1, is characterized in that: the HardwareUpgring flow process of described DSP control module is: send beginning flag to ARM microprocessor, start to receive the packet that ARM microprocessor transmits; The packet that ARM microprocessor is sent is resolved, the CRC check code of data in computational data bag, then with packet in check code contrast, if consistent, data be saved in to the interim memory sector (sector7) of Flash external storage, otherwise require ARM microprocessor retransmission data; After data all receive, the routine data of interim Flash external storage sector (sector7) is dumped to Flash external storage boot sector (sector0), restart system, utilize Bootloader technology that the new procedures in Flash external storage boot sector is loaded in the internal memory RAM in DSP control module, realize the upgrading of system hardware program.
8. the device forming according to method described in the arbitrary claim of claim 1-7, comprises control system (1), is provided with control module (2) and the external storage (3) being connected with control module (2) serial ports in control system (1); It is characterized in that: described control system (1) is connected through RS232 serial ports with online remote upgrade unit (4); Online remote upgrade unit (4) comprises microprocessor (5) and GPRS module (6).
9. install according to claim 8, it is characterized in that: described microprocessor (5) is connected through RS232 serial ports with GPRS module (6).
10. install according to claim 8, it is characterized in that: described microprocessor (5) is ARM microprocessor, and ARM microprocessor comprises data communication units (7), format conversion unit (8), network insertion unit (9) and mail transmission/reception unit (10); Network insertion unit (9) and mail transmission/reception unit (10) and two-way connection of GPRS module (6), mail transmission/reception unit (10) and two-way connection of data communication units (7), data communication units (7) and two-way connection of control module (2).
CN201210471400.1A 2012-11-20 2012-11-20 Control system remote upgrade method and device based on GPRS Active CN103838587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210471400.1A CN103838587B (en) 2012-11-20 2012-11-20 Control system remote upgrade method and device based on GPRS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210471400.1A CN103838587B (en) 2012-11-20 2012-11-20 Control system remote upgrade method and device based on GPRS

Publications (2)

Publication Number Publication Date
CN103838587A true CN103838587A (en) 2014-06-04
CN103838587B CN103838587B (en) 2018-03-16

Family

ID=50802123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210471400.1A Active CN103838587B (en) 2012-11-20 2012-11-20 Control system remote upgrade method and device based on GPRS

Country Status (1)

Country Link
CN (1) CN103838587B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302612A (en) * 2015-11-18 2016-02-03 西南技术物理研究所 Method for quick upgrading of software program of single-chip microcomputer in electronic system case
CN106066792A (en) * 2016-05-25 2016-11-02 桂林电子科技大学 A kind of software wireless remote debugging based on WiFi updates system and method
CN109032642A (en) * 2018-07-26 2018-12-18 昆山岩古风智能科技有限公司 A kind of DSP based on WIFI and ARM dual-core controller online upgrade system and its method
CN112328290A (en) * 2020-12-04 2021-02-05 第一拖拉机股份有限公司 Remote updating method and system for agricultural machinery data acquisition terminal program
CN112685059A (en) * 2020-12-24 2021-04-20 上海荣泰健康科技股份有限公司 Online generation method and system of massage chair control data and server

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539885A (en) * 2009-04-23 2009-09-23 大唐微电子技术有限公司 Soft ware autonomous air upgrading method of wireless communication module, device and system thereof
CN102314369A (en) * 2011-10-09 2012-01-11 杭州先锋电子技术股份有限公司 Self-upgrade method for equipment in remote online monitoring system
CN102571844A (en) * 2010-12-19 2012-07-11 西安迅腾科技有限责任公司 Remote program updating device for data acquisition and transmission instrument
CN102622253A (en) * 2012-03-09 2012-08-01 瑞斯康达科技发展股份有限公司 Singlechip and method for upgrading singlechip on line

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539885A (en) * 2009-04-23 2009-09-23 大唐微电子技术有限公司 Soft ware autonomous air upgrading method of wireless communication module, device and system thereof
CN102571844A (en) * 2010-12-19 2012-07-11 西安迅腾科技有限责任公司 Remote program updating device for data acquisition and transmission instrument
CN102314369A (en) * 2011-10-09 2012-01-11 杭州先锋电子技术股份有限公司 Self-upgrade method for equipment in remote online monitoring system
CN102622253A (en) * 2012-03-09 2012-08-01 瑞斯康达科技发展股份有限公司 Singlechip and method for upgrading singlechip on line

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
傅中君: ""嵌入式GPRS无线通信模块的设计与实现"", 《计算机工程与应用》 *
孙秋影等: ""基于GPRS的单片机程序远程升级的实现"", 《仪器仪表与分析监测》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302612A (en) * 2015-11-18 2016-02-03 西南技术物理研究所 Method for quick upgrading of software program of single-chip microcomputer in electronic system case
CN105302612B (en) * 2015-11-18 2018-05-08 西南技术物理研究所 The method of scm software program in quick upgrading electronic system chassis
CN106066792A (en) * 2016-05-25 2016-11-02 桂林电子科技大学 A kind of software wireless remote debugging based on WiFi updates system and method
CN106066792B (en) * 2016-05-25 2019-07-05 桂林电子科技大学 A kind of software wireless remote debugging update system and method based on WiFi
CN109032642A (en) * 2018-07-26 2018-12-18 昆山岩古风智能科技有限公司 A kind of DSP based on WIFI and ARM dual-core controller online upgrade system and its method
CN112328290A (en) * 2020-12-04 2021-02-05 第一拖拉机股份有限公司 Remote updating method and system for agricultural machinery data acquisition terminal program
CN112328290B (en) * 2020-12-04 2023-08-22 第一拖拉机股份有限公司 Remote updating method and system for agricultural machinery data acquisition terminal program
CN112685059A (en) * 2020-12-24 2021-04-20 上海荣泰健康科技股份有限公司 Online generation method and system of massage chair control data and server

Also Published As

Publication number Publication date
CN103838587B (en) 2018-03-16

Similar Documents

Publication Publication Date Title
CN103838587A (en) Control system remote upgrading method and device based on GPRS
CN104184553B (en) Low-power consumption bluetooth data transmission method, device and equipment
CN103942080B (en) Electronic device information transmission method
CN106886438A (en) System remote update method based on FPGA
CN102711095B (en) A kind of method of the node in wireless sensor network being carried out to radio upgrade
CN103902305A (en) Software long-distance loading and solidifying method based on TI DSP
CN106471789A (en) The methods, devices and systems of adapter upgrade
CN106933616A (en) Remote upgrade method based on bandwidth carrier
CN102710758A (en) Method for continuously transferring breakpoint of data stream based on single chip system
CN103973643A (en) Intelligent protocol converter
CN103996276A (en) Remote transmission system and method for data of power plant
CN102571844A (en) Remote program updating device for data acquisition and transmission instrument
CN1988537A (en) Data transmission protocol
CN102541582A (en) Optimization method for firmware updating based on high-pass baseband chip
CN102890661A (en) Host-slave communication protocol
CN105827461A (en) Method for upgrading power line carrier communication module
CN103532595A (en) Power equipment software upgrading method based on power carrier
CN201259404Y (en) Blast initiation device
CN103685552B (en) A kind of method for upgrading software of small memory device
CN113518087A (en) IOT protocol reverse docking method and device
CN104239092A (en) Online updating method for program based on remote wireless channel with packet-reissuing system
CN103701874A (en) Method and system for remote communications of ARM core board and panel
CN112147562B (en) Bluetooth communication frame-based meter calibration method, system and meter calibration device
CN103685424A (en) GPRS file remote transmission method, internet of things terminal and system
CN103019881A (en) Calibration method in program downloading process of single chip microcomputer

Legal Events

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