CN116860305A - Control device and method for on-site online updating program - Google Patents
Control device and method for on-site online updating program Download PDFInfo
- Publication number
- CN116860305A CN116860305A CN202211211657.3A CN202211211657A CN116860305A CN 116860305 A CN116860305 A CN 116860305A CN 202211211657 A CN202211211657 A CN 202211211657A CN 116860305 A CN116860305 A CN 116860305A
- Authority
- CN
- China
- Prior art keywords
- control system
- program
- update
- site
- data packet
- 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
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000004891 communication Methods 0.000 claims abstract description 24
- 238000013500 data storage Methods 0.000 claims abstract description 9
- 230000008569 process Effects 0.000 claims description 12
- 230000007704 transition Effects 0.000 claims description 6
- 230000009191 jumping Effects 0.000 claims description 3
- 238000012795 verification Methods 0.000 claims description 3
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/656—Updates while running
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a control device and a control method for an on-site on-line update program, which solve the technical problems that the on-site on-line update program cannot be realized in the prior art. The on-site online updating system is installed in the control device, the control device comprises a controller, the controller is respectively connected with a data storage module, a signal input module, a signal output module, a data interface and a communication module, the data interface is used for being connected with an external storage module storing an updating data packet of a target program, and the controller is communicated with the control system through the communication module. The advantages are that: the on-site online updating of the drive and application programs of the control system can be realized.
Description
Technical Field
The invention belongs to the technical field of program updating methods, and particularly relates to a method and a control device for updating programs on site on line.
Background
An application program of the existing aerial work platform control system runs on an embedded control board, and one of the drive and application programs is downloaded through a special JTAG program downloader, an on-board JTAG download interface and a CCS development environment. However, even if the same controller is used in the control system, the application will often be different for a range of aerial platforms. And special equipment is downloaded by a professional, tool equipment is expensive, the environment requirement is high, and inconvenience is brought to system updating.
Another method for updating the driver and application program is to download and update the driver and application program by using computer software of the computer terminal through communication. This method requires not only a professional, but also a computer, and the professional runs directly back and forth in workshops and offices.
With the development of electronic technology and the improvement of user demands, customers use the same embedded hardware equipment but simultaneously require supporting different series of machine equipment, and the upgrade and maintenance of the DSP chip are more and more frequent, so that a technology is needed that is convenient, can not need to open an equipment shell, and can conveniently drive and upgrade the application program of the DSP chip on line on the machine site.
Disclosure of Invention
The present invention has been made in view of the above problems, and an object of the present invention is to provide a method of on-site online program update that can update a program directly on site.
Another object of the present invention is to provide a control device for an on-site online update program capable of directly updating the program on site, in order to solve the above-described problems.
The control device comprises a controller, wherein the controller is respectively connected with a data storage module, a signal input module, a signal output module, a data interface and a communication module, the data interface is used for being connected with an external storage module storing a target program update data packet, and the controller is communicated with the control system through the communication module.
Preferably, the signal input module comprises at least two keys, the signal output module is a nixie tube, the external storage module is a USB flash disk, and the communication module is a can communication module.
Preferably, the control device further comprises a PCB and a shell, wherein the controller, the data storage module, the signal input module, the signal output module, the data interface and the communication module are all arranged on the PCB, and the PCB is arranged in the shell.
A method for controlling a device using the on-site online updating program comprises the following steps:
s1: starting the control system, and if the control system does not receive the configuration signal after starting the first set time, jumping to the step S3; if the control system receives the configuration signal from the starting time to the first set time, the control system enters a configuration mode;
s2: in the configuration mode, if the second set time is reached after the configuration mode is entered, the control system does not receive the update signal, and then jumps to step S3; if the second set time is reached after the configuration mode time is entered, the control system receives an update signal, and then the control system enters a program field online update process;
s3: the control system enters an application mode.
Preferably, in step S2, the control system entering the program field online update process includes the following steps:
p1: the control system and the program site update the system handshake online, if the handshake fails in the third set time, the step S3 is skipped; if the handshake is successful in the third set time, the control system receives and verifies a target program update data packet sent by the program field online update system;
p2: if the control system receives the target program update data packet within the fourth set time and the verification is successful, writing the target program update data packet into the control system; otherwise, the process goes to step S3.
Preferably, in step P1, the control system receives the target program update data packet and checks that the control system repeatedly receives a binary target program update data packet with a fixed length of thirty-two bytes and checks.
Preferably, in step P1, generating the object program update data packet includes the steps of:
a1: compiling the initial program update data packet into ASCII codes to generate a transition program update data packet;
a2: and analyzing the transition program update data packet into a mechanical code to generate a target program update data packet.
Preferably, the initial program update data packet is downloaded from the internet, or the initial program update data packet is written by programming software.
Preferably, the control system uses TMS320F28035 chip, and in step A1, uses CCS6.0 suite to compile and generate hex file; in step A2, call dll dynamic library to analyze the hex file into mechanical code.
Preferably, in step S2, if the second setting time is reached after the configuration mode is entered, if the control system receives the target program switching signal, it switches between different target programs, and if the control system receives the update signal, it enters the program field online update process of the currently selected target program.
Compared with the prior art, the method for on-site online updating the program and the control device have the advantages that:
the external storage module transmits the target program update data packet to the data storage module through the data interface, and the corresponding signal is input to the controller through the signal input module, so that the communication can be carried out with the control system on site through the communication module, further the driving of the control system and the on-site online update of the application program are realized through further operation, and the control device is light, simple in operation, convenient and reliable.
Drawings
Fig. 1 provides a system block diagram of the present invention.
Fig. 2 provides a flow chart of the method of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects solved by the present invention more apparent, the present invention is further described below with reference to the accompanying drawings and specific embodiments, but the present invention is not limited to the described embodiments, but includes all modifications, variations and equivalents falling within the scope of the appended claims.
Example 1
As shown in fig. 1, a control device of an on-site online updating program is provided with an on-site online updating system in the control device, the control device comprises a controller, the controller is respectively connected with a data storage module, a signal input module, a signal output module, a data interface and a communication module, the data interface is used for being connected with an external storage module storing an updating data packet of a target program, and the controller is communicated with the control system through the communication module; the signal input module comprises at least two keys, the signal output module is preferably a nixie tube, the external storage module is preferably a USB flash disk, and the communication module is preferably a can communication module.
The control device further comprises a PCB and a shell, wherein the controller, the data storage module, the signal input module, the signal output module, the data interface and the communication module are all arranged on the PCB, and the PCB is arranged in the shell.
The external storage module transmits the target program update data packet to the data storage module through the data interface, and the corresponding signal is input to the controller through the signal input module, so that the communication can be carried out with the control system on site through the communication module, further the driving of the control system and the on-site online update of the application program are realized through further operation, and the control device is light, simple in operation, convenient and reliable.
Example two
The structure, principle and implementation steps of this embodiment are similar to those of the embodiment, except that:
as shown in fig. 2, a method for updating a program on site online includes the following steps:
s1: starting the control system, and if the control system does not receive the configuration signal after starting the first set time, jumping to the step S3; if the control system receives the configuration signal from the starting time to the first set time, the control system enters a configuration mode;
s2: in the configuration mode, if the second set time is reached after the configuration mode is entered, the control system does not receive the update signal, and then jumps to step S3; if the second set time is reached after the configuration mode time is entered, the control system receives an update signal, and then the control system enters a program field online update process;
s3: the control system enters an application mode.
In step S2, if the second set time is reached after the configuration mode is entered, if the control system receives the target program switching signal, the control system switches between different target programs, and if the control system receives the update signal, the control system enters the program field online update process of the currently selected target program.
In step S2, the control system entering the program field online update process includes the following steps:
p1: the control system and the program site update the system handshake online, if the handshake fails in the third set time, the step S3 is skipped; if the handshake is successful in the third set time, the control system receives and verifies a target program update data packet sent by the program field online update system; in step P1, the control system receives the target program update data packet and verifies that it is preferable that the control system repeatedly receives a binary target program update data packet with a fixed length of thirty-two bytes and verifies;
p2: if the control system receives the target program update data packet within the fourth set time and the verification is successful, writing the target program update data packet into the control system; otherwise, the process goes to step S3.
Using TMS320F28035 chip, the control system generates a target program update packet in step P1, which includes the steps of:
a1: compiling the initial program update data packet into ASCII codes to generate a transition program update data packet; the initial program update data packet is downloaded by the Internet, or is written by programming software; preferably, the CCS6.0 suite is used for compiling to generate a hex file;
a2: analyzing the transition program update data packet into a mechanical code to generate a target program update data packet; preferably, call dll dynamic library to parse hex file into mechanical code.
The download updating module comprises a communication downloading unit and a Flash storage module, wherein the communication downloading unit is used for communicating with the control device to download the update data packet of the target program to the Flash storage module; and also comprises the steps of executing erasing, programming, checking and the like of the Flash. The download updating module is realized through a BootLoader program. The Flash module of Tms320f28035 is used for storing BootLoader programs, and also includes a storage download update module and storage drivers and application programs.
The region division of the Flash module for Tms320f28035 is shown in the following table.
The specific embodiments described herein are offered by way of example only to illustrate the spirit of the invention. Those skilled in the art may make various modifications or additions to the described embodiments or substitutions thereof without departing from the spirit of the invention or exceeding the scope of the invention as defined in the accompanying claims.
Claims (10)
1. The control device of the on-site online updating program is characterized in that an on-site online updating system is installed in the control device, the control device comprises a controller, the controller is respectively connected with a data storage module, a signal input module, a signal output module, a data interface and a communication module, the data interface is used for being connected with an external storage module storing an updating data packet of a target program, and the controller is communicated with the control system through the communication module.
2. The control device for on-site online updating programs according to claim 1, wherein the signal input module comprises at least two keys, the signal output module is a nixie tube, the external storage module is a USB flash disk, and the communication module is a can communication module.
3. The control device for an on-site online update procedure according to claim 1, further comprising a PCB board and a housing, wherein the controller, the data storage module, the signal input module, the signal output module, the data interface and the communication module are all disposed on the PCB board, and the PCB board is disposed in the housing.
4. A method of controlling a device for an on-site online update procedure according to any one of claims 1-3, comprising the steps of:
s1: starting the control system, and if the control system does not receive the configuration signal after starting the first set time, jumping to the step S3; if the control system receives the configuration signal from the starting time to the first set time, the control system enters a configuration mode;
s2: in the configuration mode, if the second set time is reached after the configuration mode is entered, the control system does not receive the update signal, and then jumps to step S3; if the second set time is reached after the configuration mode time is entered, the control system receives an update signal, and then the control system enters a program field online update process;
s3: the control system enters an application mode.
5. The method of on-site online updating a program according to claim 4, wherein in step S2, said control system entering a program on-site online updating process comprises the steps of:
p1: the control system and the program site update the system handshake online, if the handshake fails in the third set time, the step S3 is skipped; if the handshake is successful in the third set time, the control system receives and verifies a target program update data packet sent by the program field online update system;
p2: if the control system receives the target program update data packet within the fourth set time and the verification is successful, writing the target program update data packet into the control system; otherwise, the process goes to step S3.
6. The method of on-site online program update according to claim 5, wherein in step P1, the control system receives the target program update packet and checks that the control system repeatedly receives a binary target program update packet of thirty-two bytes in length and checks.
7. The method of on-site online updating a program according to claim 6, wherein in step P1, generating the target program update package comprises the steps of:
a1: compiling the initial program update data packet into ASCII codes to generate a transition program update data packet;
a2: and analyzing the transition program update data packet into a mechanical code to generate a target program update data packet.
8. The method of on-site online updating a program according to claim 7, wherein the initial program update package is downloaded from the internet or is written by programming software.
9. The method of on-site online updating a program according to claim 7, wherein the control system uses TMS320F28035 chip, and in step A1, uses CCS6.0 suite for compiling to generate a hex file; in step A2, call dll dynamic library to analyze the hex file into mechanical code.
10. The method according to claim 5, wherein in step S2, if the second set time is reached after entering the configuration mode, if the control system receives the target program switching signal, it switches between different target programs, and if the control system receives the update signal, it enters the program field online update process of the currently selected target program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211211657.3A CN116860305A (en) | 2022-09-30 | 2022-09-30 | Control device and method for on-site online updating program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211211657.3A CN116860305A (en) | 2022-09-30 | 2022-09-30 | Control device and method for on-site online updating program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116860305A true CN116860305A (en) | 2023-10-10 |
Family
ID=88227345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211211657.3A Pending CN116860305A (en) | 2022-09-30 | 2022-09-30 | Control device and method for on-site online updating program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116860305A (en) |
-
2022
- 2022-09-30 CN CN202211211657.3A patent/CN116860305A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7174544B2 (en) | JAVA compile-on-demand service system for accelerating processing speed of JAVA program in data processing system and method thereof | |
CN100365590C (en) | Debugging method for applied programm in simulator of embedded system | |
CN102902556B (en) | The multistage boot load method of a kind of embedded equipment | |
CN111104143B (en) | Firmware upgrading method and upgrading device | |
CN108847950B (en) | Electronic device, cloud system software automatic deployment method and storage medium | |
CN101216773A (en) | Embedded Linux system firmware downloading method and device | |
CN110377321A (en) | Method, apparatus, terminal and the storage medium of application program updating | |
US20020169591A1 (en) | Module for developing wireless device applications using an integrated emulator | |
KR910017301A (en) | Control intensive system | |
CN1752946A (en) | Debugging method of embedded system and its system | |
CN111459495A (en) | Unit test code file generation method, electronic device and storage medium | |
JP2009146229A (en) | Programmable controller system | |
WO2007056343A2 (en) | Networked linux machine and windows software development system | |
CN113050508A (en) | Debugging method and device of control panel, storage medium and debugging equipment | |
CN111459812A (en) | Interface test case generation method, electronic device and storage medium | |
CN111459506B (en) | Deep learning platform cluster deployment method and device, medium and electronic equipment | |
KR100322006B1 (en) | Program upgrading apparatus and method for a firmware board | |
US20080216065A1 (en) | Information processing device, patch code application system, electronic instrument, and patch code application method | |
CN116860305A (en) | Control device and method for on-site online updating program | |
CN112631915A (en) | Method, system, device and medium for PCIE device software simulation | |
CN116643761A (en) | Customized mirror image manufacturing and deploying method, device, terminal and medium | |
CN105938337B (en) | Secondary development cloud platform of microcomputer controller and use method | |
CN110377303B (en) | Method and equipment for upgrading program based on spare storage area mode | |
CN112596751B (en) | Compiling method, terminal, server and storage medium of application program installation package | |
CN112506519A (en) | Compiling method of application program, mobile terminal and server |
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 |