CN105159278A - Method for modifying parameters of CAN bus-based electric vehicle motor controller - Google Patents
Method for modifying parameters of CAN bus-based electric vehicle motor controller Download PDFInfo
- Publication number
- CN105159278A CN105159278A CN201510517179.2A CN201510517179A CN105159278A CN 105159278 A CN105159278 A CN 105159278A CN 201510517179 A CN201510517179 A CN 201510517179A CN 105159278 A CN105159278 A CN 105159278A
- Authority
- CN
- China
- Prior art keywords
- parameter
- host computer
- electric machine
- storer
- machine controller
- 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
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
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0213—Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/13—Plc programming
- G05B2219/13153—Modification, change of program in real time
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Control Of Electric Motors In General (AREA)
Abstract
The invention discloses a method for modifying the parameters of a CAN bus-based electric vehicle motor controller. The method includes the following steps of: step A, parameter initialization; and step B, parameter online modification. Parameter initialization further includes the following steps that: a peripheral upper computer reads parameters stored in the last two addresses from the memory of the motor controller; and whether the read parameters are correct is verified. Parameter online modification further includes the following steps that: the peripheral upper computer issues a parameter modification instruction to the processor of the motor controller; and the processor reads the parameters stored in the memory and temporally stores the parameters in the random access memory of the motor controller. The method has the advantages of convenient and fast motor controller parameter modification, high modification accuracy and high reliability, and can decrease potential safety hazards in motor controller parameter modification.
Description
Technical field
The present invention relates to the electric machine controller for motor vehicle based on CAN, especially relate to the electric machine controller for motor vehicle parameter modification method based on CAN.
Background technology
Electric automobile becomes the trend of development of automobile with energy-conservation and oligosaprobic advantage, and therefore, the optimization for the electric machine controller for motor vehicle based on CAN seems more and more important.When described electric machine controller performance parameter needs to adjust, take the method for electric machine controller being carried out to software program refreshing to realize at present more.But car load installation is operated in the program updating of electric machine controller bother very much later, and there is adjustment specific aim difference and inefficient problem.
Summary of the invention
The object of the invention is to provide a kind of electric machine controller for motor vehicle parameter modification method based on CAN.
For achieving the above object, the present invention takes following technical proposals:
Electric machine controller for motor vehicle parameter modification method based on CAN of the present invention, comprises parameter initialization and parameter online modification two steps:
A, parameter initialization
From the storer of described electric machine controller, read the parameter of depositing in latter two address by the host computer of peripheral hardware, verification institute reads whether parameter is correct; If incorrect, from program constant table initiation parameter, and parameter from first address successively stored in storer; If correct, utilize the parameter initialization electric machine controller parameter stored in storer;
B, parameter online modification
Issued the instruction of amendment parameter to the processor of described electric machine controller by the host computer of peripheral hardware, described processor reads the parameter that stores in described storer and keeps in the random access memory of electric machine controller;
Described processor is uploaded to described host computer the parameter be temporarily stored in described random access memory by CAN;
Described host computer amendment needs the parameter value of amendment and preserves, and then the parameter value after renewal is issued to described processor by CAN;
Described processor is stored in described random access memory by receiving the parameter value after renewal;
Parameter value after renewal is back to described host computer by CAN by described processor, and this parameter value received and amendment record are compared and verify by host computer;
Described host computer issues write parameters instruction to described storer to described processor;
Parameter value after the renewal be stored in described random access memory is stored in storer by described processor, and the parameter after upgrading to be restarted as initiation parameter and come into force.
The invention has the advantages that the online modification of described electric machine controller parameter convenient, fast, amendment precision is high, good reliability, and reduces the potential safety hazard of amendment electric machine controller parameter existence.
Accompanying drawing explanation
The structured flowchart of the hardware system used when Fig. 1 is parameter modification of the present invention.
Fig. 2 is the process flow diagram of parameter initialization of the present invention.
Fig. 3 is the process flow diagram of parameter online modification of the present invention.
Embodiment
As shown in Figure 1, parameter modification hardware system of the present invention, host computer by peripheral hardware and the electric machine controller for motor vehicle based on CAN 1 form, and described electric machine controller for motor vehicle 1 comprises EEPROM (Electrically Erasable Programmable Read Only Memo) EEPROM(EEPROM:ElectricallyErasableProgrammableRead-OnlyM emory), processor and random access memory ram (RAM:Random-AccessMemory).EEPROM (Electrically Erasable Programmable Read Only Memo) EEPROM is connected with processor by iic bus, and random access memory ram is connected with processor by address, DCB, and processor is connected with the host computer of peripheral hardware with CAN communication module by CAN; EEPROM (Electrically Erasable Programmable Read Only Memo) EEPROM adopts AT24C022KIICEEPROM chip, can store 128 16 bit data, and processor adopts the STM32F103VET6 chip of ST company, and CAN communication module adopts the USB of lucky sunlight electricity company to turn CAN module.
When user needs change driving motor for electric automobile or adjust the parameter of driving motor for electric automobile, can according to driving motor for electric automobile parameter (as: rotor zero-bit, electric machine controller overvoltage protection limit value, electric machine controller under-voltage protection limit value, electric machine controller overheating protection limit value, motor overheating protection limit value, overspeed protection limit value, maximum driving torque, simulation torque, maximum braking torque, limit power percentage, acceleration/brake pedal the upper limit, acceleration/brake pedal lower limit etc.), the online modification work of corresponding motor controller parameter is completed voluntarily by the upper computer software of peripheral hardware, concrete operation step is as follows:
A, parameter initialization
As shown in Figure 2, from the storer of described electric machine controller, read the parameter of depositing in latter two address by the host computer of peripheral hardware, verification institute reads whether parameter is correct; If incorrect, from program constant table initiation parameter, and parameter from first address successively stored in storer; If correct, utilize the parameter initialization electric machine controller parameter stored in storer;
B, parameter online modification
Issued the instruction of amendment parameter to the processor of described electric machine controller by the host computer of peripheral hardware, described processor reads the parameter that stores in described storer and keeps in the random access memory of electric machine controller;
Described processor is uploaded to described host computer the parameter be temporarily stored in described random access memory by CAN;
Described host computer amendment needs the parameter value of amendment and preserves, and then the parameter value after renewal is issued to described processor by CAN;
Described processor is stored in described random access memory by receiving the parameter value after renewal;
Parameter value after renewal is back to described host computer by CAN by described processor, and this parameter value received and amendment record are compared and verify by host computer;
Described host computer issues write parameters instruction to described storer to described processor;
Parameter value after the renewal be stored in described random access memory is stored in storer by described processor, and the parameter after upgrading to be restarted as initiation parameter and come into force.
Claims (1)
1. based on an electric machine controller for motor vehicle parameter modification method for CAN, it is characterized in that: comprise parameter initialization and parameter online modification two steps:
A, parameter initialization
From the storer of described electric machine controller, read the parameter of depositing in latter two address by the host computer of peripheral hardware, verification institute reads whether parameter is correct; If incorrect, from program constant table initiation parameter, and parameter from first address successively stored in storer; If correct, utilize the parameter initialization electric machine controller parameter stored in storer;
B, parameter online modification
Issued the instruction of amendment parameter to the processor of described electric machine controller by the host computer of peripheral hardware, described processor reads the parameter that stores in described storer and keeps in the random access memory of electric machine controller;
Described processor is uploaded to described host computer the parameter be temporarily stored in described random access memory by CAN;
Described host computer amendment needs the parameter value of amendment and preserves, and then the parameter value after renewal is issued to described processor by CAN;
Described processor is stored in described random access memory by receiving the parameter value after renewal;
Parameter value after renewal is back to described host computer by CAN by described processor, and this parameter value received and amendment record are compared and verify by host computer;
Described host computer issues write parameters instruction to described storer to described processor;
Parameter value after the renewal be stored in described random access memory is stored in storer by described processor, and the parameter after upgrading to be restarted as initiation parameter and come into force.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510517179.2A CN105159278A (en) | 2015-08-21 | 2015-08-21 | Method for modifying parameters of CAN bus-based electric vehicle motor controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510517179.2A CN105159278A (en) | 2015-08-21 | 2015-08-21 | Method for modifying parameters of CAN bus-based electric vehicle motor controller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105159278A true CN105159278A (en) | 2015-12-16 |
Family
ID=54800163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510517179.2A Pending CN105159278A (en) | 2015-08-21 | 2015-08-21 | Method for modifying parameters of CAN bus-based electric vehicle motor controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105159278A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109634773A (en) * | 2018-11-05 | 2019-04-16 | 中国航空工业集团公司洛阳电光设备研究所 | A kind of high reliability parameter storage method based on airborne opto-electronic device |
CN111204347A (en) * | 2019-12-30 | 2020-05-29 | 北汽福田汽车股份有限公司 | Control method and device of vehicle configuration information and vehicle |
CN112214365A (en) * | 2020-09-22 | 2021-01-12 | 珠海格力电器股份有限公司 | Data debugging method and device for electric vehicle |
CN113242143A (en) * | 2021-04-25 | 2021-08-10 | 东风汽车集团股份有限公司 | Vehicle remote parameter configuration method, vehicle-mounted remote processor and vehicle networking system |
WO2022267725A1 (en) * | 2021-06-21 | 2022-12-29 | 北京车和家信息技术有限公司 | Debugging method and apparatus for vehicle controller |
CN117214589A (en) * | 2023-11-08 | 2023-12-12 | 天津德科智控股份有限公司 | EPS system time domain response field test method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6242873B1 (en) * | 2000-01-31 | 2001-06-05 | Azure Dynamics Inc. | Method and apparatus for adaptive hybrid vehicle control |
CN101262194A (en) * | 2007-12-05 | 2008-09-10 | 奇瑞汽车股份有限公司 | A motor parameter marking method for mixed dynamic motor |
CN102662397A (en) * | 2012-05-23 | 2012-09-12 | 东方电气集团东风电机有限公司 | Motor controller parameter modification system and method based on controller area network (CAN) bus |
-
2015
- 2015-08-21 CN CN201510517179.2A patent/CN105159278A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6242873B1 (en) * | 2000-01-31 | 2001-06-05 | Azure Dynamics Inc. | Method and apparatus for adaptive hybrid vehicle control |
CN101262194A (en) * | 2007-12-05 | 2008-09-10 | 奇瑞汽车股份有限公司 | A motor parameter marking method for mixed dynamic motor |
CN102662397A (en) * | 2012-05-23 | 2012-09-12 | 东方电气集团东风电机有限公司 | Motor controller parameter modification system and method based on controller area network (CAN) bus |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109634773A (en) * | 2018-11-05 | 2019-04-16 | 中国航空工业集团公司洛阳电光设备研究所 | A kind of high reliability parameter storage method based on airborne opto-electronic device |
CN111204347A (en) * | 2019-12-30 | 2020-05-29 | 北汽福田汽车股份有限公司 | Control method and device of vehicle configuration information and vehicle |
CN111204347B (en) * | 2019-12-30 | 2021-09-17 | 北汽福田汽车股份有限公司 | Control method and device of vehicle configuration information and vehicle |
CN112214365A (en) * | 2020-09-22 | 2021-01-12 | 珠海格力电器股份有限公司 | Data debugging method and device for electric vehicle |
CN113242143A (en) * | 2021-04-25 | 2021-08-10 | 东风汽车集团股份有限公司 | Vehicle remote parameter configuration method, vehicle-mounted remote processor and vehicle networking system |
WO2022267725A1 (en) * | 2021-06-21 | 2022-12-29 | 北京车和家信息技术有限公司 | Debugging method and apparatus for vehicle controller |
CN117214589A (en) * | 2023-11-08 | 2023-12-12 | 天津德科智控股份有限公司 | EPS system time domain response field test method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105159278A (en) | Method for modifying parameters of CAN bus-based electric vehicle motor controller | |
CN102662397B (en) | Motor controller parameter modification system and method based on controller area network (CAN) bus | |
CN111488165B (en) | Method and system for upgrading vehicle ECU through script | |
RU2016151308A (en) | METHOD AND SYSTEM FOR UPDATING A DYNAMIC RAM OPERATING DEVICE (DRAM) AND DEVICE | |
CN104731794A (en) | Cold-hot data fragmenting, mining and storing method | |
CN104156238A (en) | Burning method capable of increasing VR chip FW burning efficiency | |
CN104166450A (en) | Method for distinguishing FW versions of VR chip | |
CN103577231A (en) | Method for judging host operating system through USB embedded device | |
CN104714910B (en) | The method and system of adaptive configuration PCIE bus interface | |
CN102262570A (en) | Method for updating fan control table | |
CN104133743B (en) | A kind of by burning file to the method for EMMC chip and device | |
CN104615890A (en) | Load extraction method and device under limiting working conditions | |
CN103049585A (en) | Load extracting method and device for parts of automobile chassis and automobile body under extreme working conditions | |
US20100153622A1 (en) | Data Access Controller and Data Accessing Method | |
CN100489781C (en) | Method and apparatus for positioning target file | |
CN109347406A (en) | A kind of servo-driver overload magnification method of adjustment and system | |
CN105139890B (en) | A kind of information processing method and solid state hard disk | |
CN116513130A (en) | EMB vehicle type wheel braking force control method, device, equipment and medium | |
CN104461959A (en) | Method and device for distinguishing NOR Flash from NAND Flash | |
CN105159714A (en) | PMIC initialization method and electronic equipment | |
CN102486757A (en) | Memory storage device and memory controller and method for responding host instruction thereof | |
CN105427359A (en) | Animation arrangement | |
CN102034543B (en) | Method for simultaneously programming multiple NANDFLASH chips in single task | |
CN108039984A (en) | A kind of automatic identification method of automobile engine communications protocol | |
CN103853599A (en) | Extension method of node calculating ability |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20151216 |
|
WD01 | Invention patent application deemed withdrawn after publication |