CN113064357A - Rapid control prototype development platform and method - Google Patents
Rapid control prototype development platform and method Download PDFInfo
- Publication number
- CN113064357A CN113064357A CN202110340734.4A CN202110340734A CN113064357A CN 113064357 A CN113064357 A CN 113064357A CN 202110340734 A CN202110340734 A CN 202110340734A CN 113064357 A CN113064357 A CN 113064357A
- Authority
- CN
- China
- Prior art keywords
- target machine
- control
- development
- control algorithm
- compiling
- 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
- 238000011161 development Methods 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000004891 communication Methods 0.000 claims abstract description 12
- 238000004806 packaging method and process Methods 0.000 claims description 3
- 238000004088 simulation Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000011217 control strategy Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B17/00—Systems involving the use of models or simulators of said systems
- G05B17/02—Systems involving the use of models or simulators of said systems electric
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a rapid control prototype development platform and a rapid control prototype development method, wherein the platform comprises a development host, a target machine controller and a controlled object, the target machine controller downloads a target machine control algorithm which is compiled by automatically generating codes by the development host and is in two-way communication with the controlled object to realize the control of the target machine control algorithm on the controlled object, and the target machine controller is in communication with the development host through an interface to realize the real-time online parameter adjustment of the control algorithm. According to the invention, the compiling software package is generated by establishing the target machine automatic code of the target machine controller, so that one-click automatic generation and compiling downloading of the code are realized, the programming capability requirement of a developer is reduced, online parameter adjustment is realized, the development period is shortened, and the development cost is saved.
Description
Technical Field
The invention relates to the technical field of automobile electronic control model development, in particular to a rapid control prototype development platform and a rapid control prototype development method.
Background
The current novel automobile electric control development adopts a method based on model design. Research personnel can realize automatic code generation and compilation by only setting the simulink device driver I/O without compiling the device driver I/O, thereby quickly verifying the control. Thus. Rapid control prototype platforms are increasingly used in the automotive electronics research and development field. The application numbers are: 201110146809.1 discloses a rapid prototype control method developed by Dspace, but the Dspace platform is expensive and not suitable for popularization. The application numbers are: 201010180517.5 discloses a semi-physical real-time simulation system and a method for realizing rapid prototyping, which realizes all functions of rapid prototyping, but needs to rely on IDE integrated development environment and program development environment LabVIEW interface card of Code Composer Studio 3.3, which increases the cost of the platform.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a rapid control prototype development platform and a rapid control prototype development method, which realize one-button code automatic generation, compiling and downloading of a control model, introduce an online parameter adjusting software unit to perform online parameter adjustment, save expensive equipment cost and reduce development cost.
In order to achieve the purpose, the invention provides a rapid control prototype development platform which is characterized in that the platform comprises a development host, a target machine controller and a controlled object, wherein the target machine controller downloads a target machine control algorithm compiled by automatically generating codes by the development host and is in two-way communication with the controlled object to realize the control of the target machine control algorithm on the controlled object, and the target machine controller is in communication with the development host through an interface to realize the real-time online parameter adjustment of the control algorithm.
Further, the development host includes:
a control model unit: for storing a control algorithm model;
the target machine automatic code generation compiling software package: the system is used for automatically generating, compiling and downloading codes into a target machine;
and the online parameter adjusting software unit: the method is used for carrying out real-time online parameter adjustment on a control algorithm sent by a target machine controller.
Further, the object machine automation code generation compilation software package comprises:
device driver I/O unit: the interface language compiling module is used for compiling an interface language, modularly packaging and setting parameter adjustment;
automatic code generation download compiling unit: the control algorithm model is compiled into C language codes;
software framework engineering template unit: the automatic code generation, downloading and compiling unit is used for introducing the codes generated by the automatic code generation, downloading and compiling unit into a microcontroller software framework template to generate a control algorithm.
Furthermore, the interface types of the online parameter adjusting software unit comprise a serial data interface, a CAN communication interface and a background debugger interface.
Furthermore, the control algorithm model is a hybrid electric vehicle control model.
Furthermore, the online parameter adjusting software unit is realized by a Freescale online debugging tool.
The invention also provides a rapid control prototype development method, which is based on the system and comprises the following steps:
1) the development host automatically generates codes, compiles a target machine control algorithm and downloads the codes to a target machine controller;
2) the target machine controller is in two-way communication with the controlled object to realize the control of the target machine control algorithm on the controlled object;
3) the target machine controller is communicated with the development host through an interface, and the control state parameters of the controlled object are sent to the development host, so that the real-time online parameter adjustment of the control algorithm is realized.
Preferably, the target machine controller communicates with the development host through the BDM debugger interface through the interface.
The invention has the advantages that: according to the invention, the compiling software package is generated by establishing the target machine automatic code of the target machine controller, so that one-click automatic generation and compiling downloading of the code are realized, the programming capability requirement of a developer is reduced, online parameter adjustment is realized, the development period is shortened, and the development cost is saved.
Drawings
FIG. 1 is a schematic diagram of a control prototype simulation platform according to the present invention.
Fig. 2 is a schematic structural diagram of embodiment 1 of the present invention.
Detailed Description
The invention is described in further detail below with reference to the figures and specific embodiments.
As shown in fig. 1, the rapid control prototype development platform provided by the present invention includes a development host, a target machine controller and a controlled object, wherein the target machine controller downloads a target machine control algorithm compiled by automatically generating codes by the development host and communicates with the controlled object in two ways to realize the control of the control object by the target machine control algorithm, and the target machine controller communicates with the development host through an interface to realize the real-time online parameter adjustment of the control algorithm.
The development host comprises a control model unit, a target machine automation code generation and compilation software package and an online parameter adjusting software unit.
A control model unit: for storing a control algorithm model.
The target machine automatic code generation compiling software package: for automatic generation, compilation and downloading of code into the target machine. The target machine automation code generation and compilation software package comprises: the device comprises an equipment driving I/O unit, an automatic code generation, downloading and compiling unit and a software framework engineering template unit, wherein the equipment driving I/O unit: the interface language compiling module is used for compiling the interface language, modularly packaging and adjusting related setting parameters; automatic code generation download compiling unit: the control algorithm model is compiled into C language codes; software framework engineering template unit: the automatic code generation, downloading and compiling unit is used for introducing the codes generated by the automatic code generation, downloading and compiling unit into a microcontroller software framework template to generate a control algorithm.
And the online parameter adjusting software unit: the method is used for carrying out real-time online parameter adjustment on a control algorithm sent by a target machine controller. The interface types of the online parameter adjusting software unit and the platform host machine comprise a serial data interface, a CAN communication interface and a background debugger interface.
Based on the platform, the invention provides a rapid control prototype development method, which comprises the following steps:
1) compiling an automatic code of a target machine controller to generate a compiling software package, automatically generating a code by a development host, compiling a target machine control algorithm, and downloading the code to the target machine controller to realize one-click automatic code generation, compiling and downloading of a control model;
the device driving I/O unit compiles an interface language, encapsulates a module and adjusts setting parameters; c code compiling generation of the automatic code generation download compiling unit control model; the software framework engineering template unit is provided with a specific microcontroller software framework template and realizes the introduction of the code generated by the automatic code generation unit;
2) the target machine controller is in two-way communication with the controlled object to realize the control of the target machine control algorithm on the controlled object;
3) the target machine controller is communicated with the development host through an interface, and the control state parameters of the controlled object are sent to the development host, so that the real-time online parameter adjustment of the control algorithm is realized.
Example 1
As shown in fig. 2, the present embodiment is a hybrid vehicle control prototype simulation platform, which mainly includes a platform host, a target machine controller (mc9s12DG256 controller), and a hybrid vehicle model, wherein the platform host includes: the automatic code generation and compilation software package of the mc9s12DG256 controller of the target machine comprises an equipment drive I/O unit, an automatic code generation, downloading and compilation unit and a software framework engineering template unit. The online parameter adjusting software unit is realized by Freemaster of a Freescale online debugging tool.
The control model of the hybrid electric vehicle generates and compiles the software package through the automatic code of the mc9s12dg256 controller of the target machine to carry on the automatic generation, compile and download of the code into the mc9s12dg256 controller, the target machine communicates with model two-way of the hybrid electric vehicle, realize the control of the control algorithm of the target machine to the whole model of the vehicle, Freemaster online parameter-adjusting software unit links with target machine through BDM background debugger again, realize the real-time online adjustment to the control algorithm. Therefore, the rapid control prototype function in the development process of modern vehicles is realized, and the control strategy is verified and adjusted on line.
Finally, it should be noted that the above detailed description is only for illustrating the technical solution of the patent and not for limiting, although the patent is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that the technical solution of the patent can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the patent, which should be covered by the claims of the patent.
Claims (8)
1. A rapid control prototype development platform is characterized in that: the platform comprises a development host, a target machine controller and a controlled object, wherein the target machine controller downloads a target machine control algorithm compiled by automatically generating codes by the development host and is in two-way communication with the controlled object to realize the control of the target machine control algorithm on the controlled object, and the target machine controller is in communication with the development host through an interface to realize the real-time online parameter adjustment of the control algorithm.
2. A rapid control prototyping platform as claimed in claim 1 wherein: the development host comprises:
a control model unit: for storing a control algorithm model;
the target machine automatic code generation compiling software package: the system is used for automatically generating, compiling and downloading codes into a target machine;
and the online parameter adjusting software unit: the method is used for carrying out real-time online parameter adjustment on a control algorithm sent by a target machine controller.
3. A rapid control prototyping platform as claimed in claim 2 wherein: the object machine automation code generation compiling software package comprises:
device driver I/O unit: the interface language compiling module is used for compiling an interface language, modularly packaging and setting parameter adjustment;
automatic code generation download compiling unit: the control algorithm model is compiled into C language codes;
software framework engineering template unit: the automatic code generation, downloading and compiling unit is used for introducing the codes generated by the automatic code generation, downloading and compiling unit into a microcontroller software framework template to generate a control algorithm.
4. A rapid control prototyping platform as claimed in claim 2 wherein: the interface types of the online parameter adjusting software unit comprise a serial data interface, a CAN communication interface and a background debugger interface.
5. A rapid control prototyping platform as claimed in claim 2 wherein: the control algorithm model is a whole hybrid electric vehicle control model.
6. A rapid control prototyping platform as claimed in claim 2 wherein: the online parameter adjusting software unit is realized by a Freescale online debugging tool.
7. A rapid control prototype development method is characterized in that: the method is realized based on any one of claims 1-6, and comprises the following steps:
1) the development host automatically generates codes, compiles a target machine control algorithm and downloads the codes to a target machine controller;
2) the target machine controller is in two-way communication with the controlled object to realize the control of the target machine control algorithm on the controlled object;
3) the target machine controller is communicated with the development host through an interface, and the control state parameters of the controlled object are sent to the development host, so that the real-time online parameter adjustment of the control algorithm is realized.
8. The rapid control prototyping method of claim 5 wherein: the target machine controller communicates with the development host through the BDM debugger interface through the interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110340734.4A CN113064357A (en) | 2021-03-30 | 2021-03-30 | Rapid control prototype development platform and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110340734.4A CN113064357A (en) | 2021-03-30 | 2021-03-30 | Rapid control prototype development platform and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113064357A true CN113064357A (en) | 2021-07-02 |
Family
ID=76564765
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110340734.4A Pending CN113064357A (en) | 2021-03-30 | 2021-03-30 | Rapid control prototype development platform and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113064357A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113742232A (en) * | 2021-09-04 | 2021-12-03 | 重庆红江机械有限责任公司 | Model-based TC1797 diesel engine control algorithm development tool |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092082A (en) * | 2013-01-07 | 2013-05-08 | 河南科技大学 | Driver-in-the-loop vehicle performance optimizing simulation testing system |
-
2021
- 2021-03-30 CN CN202110340734.4A patent/CN113064357A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092082A (en) * | 2013-01-07 | 2013-05-08 | 河南科技大学 | Driver-in-the-loop vehicle performance optimizing simulation testing system |
Non-Patent Citations (2)
Title |
---|
冬雷,李玉姣,高志刚: "《大学生创新实验和智能控制比赛:基于飞思卡尔DSP系列》", 30 September 2014 * |
邹渊,胡晓松: "《地面车辆混合驱动系统建模与控制优化》", 31 January 2015 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113742232A (en) * | 2021-09-04 | 2021-12-03 | 重庆红江机械有限责任公司 | Model-based TC1797 diesel engine control algorithm development tool |
CN113742232B (en) * | 2021-09-04 | 2024-02-27 | 重庆红江机械有限责任公司 | Model-based TC1797 diesel engine control algorithm development tool |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103092082B (en) | A kind of driver is in ring vehicle performance optimization Simulation pilot system | |
CN107831757B (en) | dSPACE-based motor controller hardware-in-loop automatic test system and method | |
CN106933212B (en) | reconfigurable industrial robot programming control method in distributed manufacturing environment | |
US8572583B2 (en) | Method and system for testing software for industrial machine | |
CN104898546B (en) | A kind of PLC on-line debugging system and method based on SOC | |
CN113064357A (en) | Rapid control prototype development platform and method | |
CN109189435A (en) | The firmware update of Complex Programmable Logic Devices | |
CN114527674A (en) | Model in-loop simulation test method and system based on vehicle road test data | |
CN112286517A (en) | Automotive electronics MCAL configuration system based on AutoSAR | |
CN107340995A (en) | A kind of traction control applied software development system | |
CN206115263U (en) | Quick verification system of modularization servo control based on bus | |
KR102077918B1 (en) | Trial operation control device of a composite of control devices of a motor vehicle and method for trial operation of control devices | |
CN117733832A (en) | PLCopen standard-based modeling robot control implementation method | |
CN113448571B (en) | MATLAB-based digital signal processor code rapid generation method | |
CN212794965U (en) | Multi-axis robot control device based on model | |
CN112947112B (en) | Unmanned vehicle simulation method based on SysML | |
CN115167348A (en) | Method, device and system for testing vehicle domain controller | |
CN113127043A (en) | Method for upgrading BootLoader on line by using single chip microcomputer APP | |
CN104238378A (en) | Simulation testing method and system of electronic appliance architecture of integral car | |
CN220691387U (en) | EPS controller program offline upgrading, parameter debugging and angle centering tool | |
CN113315399B (en) | Circuit automatic control method and system for automatically generating SPWM (sinusoidal pulse Width modulation) signal based on model design | |
CN117931203A (en) | Method and device for calibrating internal variables of application module and computer readable storage medium | |
CN114357756A (en) | Virtual-to-real industrial robot experimental method based on PLC | |
CN118363833A (en) | Method, device and system for testing processor in ring, electronic equipment and storage medium | |
CN113742232B (en) | Model-based TC1797 diesel engine control algorithm development tool |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210702 |
|
RJ01 | Rejection of invention patent application after publication |