CN109325290A - Microcomputer development method based on the general Can communication intervention tool of car - Google Patents

Microcomputer development method based on the general Can communication intervention tool of car Download PDF

Info

Publication number
CN109325290A
CN109325290A CN201811088513.7A CN201811088513A CN109325290A CN 109325290 A CN109325290 A CN 109325290A CN 201811088513 A CN201811088513 A CN 201811088513A CN 109325290 A CN109325290 A CN 109325290A
Authority
CN
China
Prior art keywords
simulink
code
car
microcomputer development
development method
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
CN201811088513.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.)
Xiamen King Long United Automotive Industry Co Ltd
Original Assignee
Xiamen King Long United Automotive Industry 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 Xiamen King Long United Automotive Industry Co Ltd filed Critical Xiamen King Long United Automotive Industry Co Ltd
Priority to CN201811088513.7A priority Critical patent/CN109325290A/en
Publication of CN109325290A publication Critical patent/CN109325290A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Abstract

Based on the microcomputer development method of the general Can communication intervention tool of car, include the following steps: (1), user under Matlab/Simulink environment, carries out Simulink model modeling using the library model of Can communication intervention tool;(2), Simulink code building environment is configured, the Simulink auto-building model code that user is built;(3), calling presets microcomputer development environment Keil uVision5 after generating code, and the code automatically generated is done to integrated, one compileable engineering duty of formation with pre-designed bottom layer driving code;(4), the engineering duty of automatic compilation step (3), direct programming enter single-chip microcontroller.Different signals need to be only combined under simulink environment by certain logic by the microcomputer development method of the invention, electric-control system commissioning staff, so that it may be directly generated control program, can quickly be solved each unmatched failure problems of components communications protocol of car.

Description

Microcomputer development method based on the general Can communication intervention tool of car
Technical field
The present invention relates to car communication technique fields, more specifically refer to that work is intervened in a kind of general Can communication of car The microcomputer development method of tool.
Background technique
Currently, the communication between bus industry components and its control program, are substantially and rest in supplier's hand.Especially It is imported components, and domestic factor at all can not adjust the logic of software.Once being communicated between components The unmatched situation of logic, this just needs to be coordinated by main engine plants different components manufacturers and changes communications protocol, since producer matches The problem of conjunction, the solution time is often long, deals with relatively complicated.
Although host computer communication factory can also be designed simple control logic by oneself and be asked to intervene the communication of components Topic, but traditional mcu programming is used to propose more harsh requirement to engineer's technical ability of in-situ processing problem.
Summary of the invention
The present invention provides a kind of microcomputer development method of general Can communication intervention tool of car, and main purpose is Overcome in existing car Can bus communication, the place of communication problem on obstacle caused by communications protocol mismatches between different components Manage the disadvantages of cumbersome, the processing time is longer.
The present invention adopts the following technical scheme:
Based on the microcomputer development method of the general Can communication intervention tool of car, include the following steps:
(1), user carries out Simulink mould using the library model of Can communication intervention tool under Matlab/Simulink environment Type modeling;
(2), Simulink code building environment is configured, the Simulink auto-building model code that user is built;
(3), calling presets microcomputer development environment Keil uVision5 after generating code, by the code automatically generated and in advance First designed bottom layer driving code is done integrated, forms a compileable engineering duty;
(4), the engineering duty of automatic compilation step (3), direct programming enter single-chip microcontroller.
Further, which is the controller unit based on STM32F4 family chip.
Further, Simulink model modeling specifically includes in above-mentioned steps (1): configuration control unit and Simulink Input/output relation, design control logic between input domain output, and change control logic into Simulink environment Simulating, verifying work.
Further, the code generated in above-mentioned steps (2) is * .C file and * .H file, during generating code The prefabricated function in hook file is called, the code after generation is integrated into the exploitation environment of STM32.
Further, above-mentioned steps (4) think the engineering of step (3) to be translated as * .bin file, are passing through STM32 tune Examination device programming enters single-chip microcontroller.
Preferably, above-mentioned STM32 debugger is ST-LINK or J-Link.
By the above-mentioned description of this invention it is found that compared to the prior art, the present invention has the advantage that
The microcomputer development method of the invention, electric-control system commissioning staff only need to press different signals under simulink environment Certain logic is combined, so that it may be directly generated control program, can quickly be solved each components communications protocol of car and mismatch Failure problems, substantially reduce failure and solve the time, and electric-control system commissioning staff is without grasping microcomputer development ability, Substantially reduce its skill requirement to live embedded system development.
Specific embodiment
Illustrate a specific embodiment of the invention below.In order to fully understand the present invention, many details are described below, but To those skilled in the art, the present invention can also be realized without these details.For well known component, method and process, It is not described in detail below.
Based on the microcomputer development method of the general Can communication intervention tool of car, include the following steps:
(1), user carries out Simulink mould using the library model of Can communication intervention tool under Matlab/Simulink environment Type modeling.
(2), Simulink code building environment is configured, the Simulink auto-building model generation that user is built Code;
(3), calling presets microcomputer development environment Keil uVision5 after generating code, by the code automatically generated and in advance First designed bottom layer driving code is done integrated, forms a compileable engineering duty;
(4), the engineering duty of automatic compilation step (3), direct programming enter single-chip microcontroller.
The development approach of the single-chip microcontroller is the controller unit based on STM32F4 family chip.
Simulink model modeling specifically includes in above-mentioned steps (1): the input of configuration control unit and Simulink are defeated Relationship out designs control logic between input domain output, and changes the simulating, verifying of control logic into Simulink environment Work.
The code generated in above-mentioned steps (2) is * .C file and * .H file, calls hook during generating code Prefabricated function in file, the code after generation are integrated into the exploitation environment of STM32.
Above-mentioned steps (4) think the engineering of step (3) to be translated as * .bin file, are passing through STM32 debugger such as ST- LINK J-Link programming enters single-chip microcontroller.
The above is only a specific embodiment of the present invention, but the design concept of the present invention is not limited to this, all to utilize this Design makes a non-material change to the present invention, and should all belong to behavior that violates the scope of protection of the present invention.

Claims (6)

1. the microcomputer development method based on the general Can communication intervention tool of car, which comprises the steps of:
(1), user carries out Simulink mould using the library model of Can communication intervention tool under Matlab/Simulink environment Type modeling;
(2), Simulink code building environment is configured, the Simulink auto-building model code that user is built;
(3), calling presets microcomputer development environment Keil uVision5 after generating code, by the code automatically generated and in advance First designed bottom layer driving code is done integrated, forms a compileable engineering duty;
(4), the engineering duty of automatic compilation step (3), direct programming enter single-chip microcontroller.
2. the microcomputer development method as described in claim 1 based on the general Can communication intervention tool of car, feature exist In: the microcomputer development method is the controller unit based on STM32F4 family chip.
3. the microcomputer development method as claimed in claim 2 based on the general Can communication intervention tool of car, feature exist In: Simulink model modeling specifically includes in the step (1): the input and output of configuration control unit and Simulink are closed System designs control logic between input domain output, and changes the simulating, verifying work of control logic into Simulink environment.
4. the microcomputer development method as claimed in claim 2 based on the general Can communication intervention tool of car, feature exist In: the code generated in the step (2) is * .C file and * .H file, is called in hook file during generating code Prefabricated function, the code after generation is integrated into the exploitation environment of STM32.
5. the microcomputer development method as claimed in claim 2 based on the general Can communication intervention tool of car, feature exist The engineering of step (3) is thought to be translated as * .bin file in: the step (4), monolithic is being entered by STM32 debugger programming Machine.
6. the microcomputer development method as claimed in claim 5 based on the general Can communication intervention tool of car, feature exist In: the STM32 debugger is ST-LINK or J-Link.
CN201811088513.7A 2018-09-18 2018-09-18 Microcomputer development method based on the general Can communication intervention tool of car Pending CN109325290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811088513.7A CN109325290A (en) 2018-09-18 2018-09-18 Microcomputer development method based on the general Can communication intervention tool of car

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811088513.7A CN109325290A (en) 2018-09-18 2018-09-18 Microcomputer development method based on the general Can communication intervention tool of car

Publications (1)

Publication Number Publication Date
CN109325290A true CN109325290A (en) 2019-02-12

Family

ID=65266234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811088513.7A Pending CN109325290A (en) 2018-09-18 2018-09-18 Microcomputer development method based on the general Can communication intervention tool of car

Country Status (1)

Country Link
CN (1) CN109325290A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008018A (en) * 2019-12-04 2020-04-14 东风电驱动系统有限公司 CAN signal unpacking processing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060095191A1 (en) * 2004-10-28 2006-05-04 Chiu-Feng Lin Non-mechanical module for estimation of pedalling torque and consumed energy of bicycler
CN106371813A (en) * 2015-07-23 2017-02-01 广州汽车集团股份有限公司 Simulink-based motor controller software generation method for electric vehicle
CN106980499A (en) * 2017-02-16 2017-07-25 陕西法士特齿轮有限责任公司 A kind of integrated approach that upper layer logic and bottom code are realized based on MATLAB/Simulink

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060095191A1 (en) * 2004-10-28 2006-05-04 Chiu-Feng Lin Non-mechanical module for estimation of pedalling torque and consumed energy of bicycler
CN106371813A (en) * 2015-07-23 2017-02-01 广州汽车集团股份有限公司 Simulink-based motor controller software generation method for electric vehicle
CN106980499A (en) * 2017-02-16 2017-07-25 陕西法士特齿轮有限责任公司 A kind of integrated approach that upper layer logic and bottom code are realized based on MATLAB/Simulink

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
易诗: "《信息工程专业机器人创新实验设计》", 31 August 2017, 电子科技大学出版社 *
田韶鹏 等: "基于模型设计的电动车整车控制器开发研究", 《自动化与仪表》 *
许保同 等: "基于Simulink的纯电动汽车VCU控制策略设计方法", 《汽车工程师》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111008018A (en) * 2019-12-04 2020-04-14 东风电驱动系统有限公司 CAN signal unpacking processing method and system

Similar Documents

Publication Publication Date Title
CN102638187B (en) Off-grid master-slave type solar current converter system and control method thereof
CN203705928U (en) Master-slave control system of AC-DC power supply
CN103165207B (en) Be applicable to sequence control method and the system of nuclear power station
CN109325290A (en) Microcomputer development method based on the general Can communication intervention tool of car
CN103631627A (en) Equipment configuration method, configuration-file generation method and configuration system
CN101593128B (en) Intelligent platform management controller (IPMC) in ATCA system based on real-time operating system and construction method thereof
CN202421819U (en) Triple redundancy analog output module for DCS (Distributed Control System)
CN105824275A (en) Method of controlling slave station servo driver synchronization master station
CN107447812A (en) A kind of intelligent networking formula control system of water pump
CN204835555U (en) Generator parallel machine system of artificial intelligence ization
CN101667124A (en) System and method for configuring monitoring device based on object model
CN207937803U (en) A kind of frequency converter slave addresses automatic distribution circuit
CN201550064U (en) Multi-motor synchronous control device
CN103269189B (en) Mine locomotive frequency converter unit, two-shipper automatic switchover running gear and control method
CN105136167B (en) A kind of optical fibre gyro dynamic dividing method
CN102937987A (en) Method for querying inverters by integrated controller in distributed multi-inverter system
CN101350526A (en) Method for coordinating and setting whole net PSS base on single machine infinite system
CN204407010U (en) Off line programming system
CN103801122B (en) Belt type sludge filter press robot control system(RCS)
CN206584197U (en) The automatically controlled debugging apparatus of start-stop that single channel manual priority is intervened in automatic system
KR20110109690A (en) Framework system for developing control program based on iec 61131-3 and method using the same
CN111984109A (en) Central processing unit frequency modulation method, system and medium based on substrate management controller
CN103838603A (en) Method and system for increasing first-time starting-up speed of android TV set
CN204613641U (en) Based on the power cell control system of fpga chip
CN207216709U (en) A kind of drive recorder circuit structure of no reset key

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190212