Application of modular design in vehicle controller programming

Publisher:电子思维Latest update time:2010-08-02 Source: 现代电子技术 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

introduction

In modern production, vehicles occupy an important position. They are important means of transportation for production and transportation, and are related to production safety and production efficiency. The vehicle electrical system is an important component of the vehicle, in which the main controller controls the entire electrical system, and its program writing is the focus of the design. However, different vehicle models lead to different compositions and requirements of the electrical system, and thus different program requirements for the main controller of the electrical system. The codes that have been tested in practice cannot be reused, which makes the design department spend a lot of time and energy to write and debug the main controller program. In view of the above situation, this paper applies modular design to the design of the main controller program of the vehicle electrical system, and utilizes the characteristics of the reusable functional modules to achieve the purpose of improving the design efficiency and program compatibility, and realizing the high-efficiency and high-quality development of the main controller program of the electrical system of the new mine car.

1 Modular design

Modular design is to divide and design a series of functional modules based on the functional analysis of products with different functions or the same functions with different performance and specifications within a certain range. Different products can be formed through the selection and combination of modules to meet the different needs of the market. At the same time, it greatly reduces the difficulty, avoids duplication of work, obtains higher program quality, and improves the speed of program development.

The basic idea of ​​modular programming first appeared in high-level language programming applications, but this idea is also applicable to the development of vehicle controller programs. The module division of the program is generally carried out from top to bottom and step by step. The vehicle controller program can generally be divided into parameter setting part, data acquisition part, data processing part, alarm processing part, control part, and execution output part. The program flow chart is shown in Figure 1.

These parts can be designed, debugged and managed separately. Before on-site debugging, some program errors can be eliminated through simulation. During on-site debugging, by monitoring each functional module, existing problems can be quickly discovered, reducing the debugging intensity and time. When the control requirements change, only appropriate modifications can be made in the corresponding modules, which provides convenient conditions for upgrading the electrical system.

2 Applications

The application of modularization in program design is now explained by taking the program of a certain type of mining vehicle's onboard main controller as an example. The electrical system of this product consists of a controller, relays, contactors, motors, operating consoles, onboard displays, and various sensors. The working process of the control system is that the system self-checks after power-on, first confirming that the system can work normally, and then taking corresponding actions according to the instructions of the operating console. The functional modules of the controller program are shown in Figure 2.

The program is written into a subroutine in a suitable language according to its function and called in the main program. In this way, during the program development process, multiple people can write and test different modules in parallel, reducing the research and development time. At the same time, the functions of the parameter setting, data acquisition and other modules in different models of mine car electrical control systems are basically unchanged, and they can be used with slight changes, avoiding repeated development. The same is true for the use of other modules. In particular, these codes that have been strictly tested on site are used in new mine car electrical control systems to increase the reliability of the system. During the debugging process, the problematic code segment can be quickly located according to the phenomenon of problems on site, reducing the pressure of debugging.

3 Conclusion

It is proposed to apply the idea of ​​modular design to the design of vehicle electrical control system controller programs. The modular design of the program not only reduces the development time of the program and reduces the workload of designers, but also makes the program ideas clearer, maintenance easier, and enhances readability, portability, and reliability. It also creates favorable conditions for the development of the next generation of products. Practice has also proved the feasibility and rationality of applying modular design to the mine car electrical system controller program. With the deepening of modular design in controller program design, it will inevitably bring about the problem of module standardization. This problem has been effectively solved in the control system program design of many multinational automation companies and has achieved a certain market competitiveness. The modular and standardized development of vehicle electrical system controller programs will effectively improve the overall performance of the vehicle electrical system.

Reference address:Application of modular design in vehicle controller programming

Previous article:Design and application of 32-bit microcontroller MPC555 in automotive electronics
Next article:Four major test analyses to improve vehicle ecology, safety and comfort

Recommended ReadingLatest update time:2024-11-16 20:34

Renesas Electronics meets domain control ECU design with virtualization solution
Renesas Electronics' latest electronic control unit (ECU) virtualization platform uses powerful automotive microcontrollers for vehicle motion and domain control applications. From deploying airbags during a crash to enabling keyless ignition systems, vehicles perform many essential functions thanks to small but com
[Automotive Electronics]
Renesas Electronics meets domain control ECU design with virtualization solution
Functions and roles of automotive MCUs Relationship between ECU and MCU
Functions and roles of automotive MCU Automotive MCU (Microcontroller Unit) refers to an embedded microcontroller chip installed inside a car to control and manage various systems and related devices of the car. The functions and effects of automotive MCU are as follows: Control and manage vehicle electron
[Embedded]
The role of CAN bus in automobile ECU
CAN is a widely used communication bus between automotive ECUs. There are some basic problems related to its application, such as It's a bus, why not connect them all together, why do we need so many CAN interfaces? Why do some supporting transceivers require low power consumption and some do n
[Embedded]
The role of CAN bus in automobile ECU
Elektrobit and Argus Cyber ​​Security Announce Industry’s First Automotive Cyber ​​Threat Detection and Prevention Solution
New EB zoneo SwitchCore Shield integrates reliable networking and information security features from Elektrobit and Argus to provide strong protection against cyber threats This new solution not only meets the requirements of UN Regulation 155 and China Automotive Regulations (GB/T), but also provides multiple lay
[Automotive Electronics]
Elektrobit and Argus Cyber ​​Security Announce Industry’s First Automotive Cyber ​​Threat Detection and Prevention Solution
Latest Automotive Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号