CN1562654A - Method for calibrating controller of electric automobile in mixing motive power based on CCP protocol - Google Patents
Method for calibrating controller of electric automobile in mixing motive power based on CCP protocol Download PDFInfo
- Publication number
- CN1562654A CN1562654A CN 200410003472 CN200410003472A CN1562654A CN 1562654 A CN1562654 A CN 1562654A CN 200410003472 CN200410003472 CN 200410003472 CN 200410003472 A CN200410003472 A CN 200410003472A CN 1562654 A CN1562654 A CN 1562654A
- Authority
- CN
- China
- Prior art keywords
- level controller
- parameter
- daq
- ccp
- 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.)
- Granted
Links
Images
Landscapes
- Communication Control (AREA)
Abstract
A calibration method based on CCP protocol for the controller of electric car with mixed power features that between the low-class controller and upper-class host, which are connected via CAN bus, the upper-class host can initialize the low-class controller and calibrate and monitor its parameters according to CCP protocol.
Description
Technical field
Mixed power electric car controller calibration method based on the CCP agreement relates to mixed power electric car, particularly the monitoring technique field of mixed power electric car controller.
Background technology
The process of mixed power electric car controller from the research and development prototype to formation product needed process matching and calibration is to determine its operational factor and controlled variable; In addition, in the process of the test, need testing crew can the real time monitoring controller in the partial parameters situation of change, therefore, need a calibration process finish above work, it is a basis of research and development mixed power electric car controller.
At present, the mixed power electric car controller calibration system of prior art adopts the SCI serial communication, define a series of regular realization of demarcating.This kind method has following defective:
1) poor reliability.The SCI serial communication is subjected to external interference easily, need carry out the software verification in the nominal data process, in case and in the test communication by havoc then be difficult for to recover;
2) communication speed is slow.The common speed of transmission of SCI serial communication is 10400bps, can not satisfy the high demand of big data quantity and real-time;
3) commonality is poor.Calibration tool can only be realized demarcation and the supervision to a controller.
CCP (CAN Calibration Protocol) agreement is a demarcation agreement based on CAN (Control Area Network) bus.It is applied in some traditional vehicle is demarcated with engine controller, but the still incompetent at present calibration method of supporting the mixed power electric car controller of this agreement.
Technology is simply described CCP agreement as a setting.The CCP agreement adopts the master-slave mode communication, has only a main equipment in the system, and it can connect one or more lower computer controllers, and main equipment can be demarcation, monitoring or a diagnostic installation.
Realize functions such as data transmission between main equipment and slave unit by session, the realization of these functions be demarcate, monitor, the basis of work such as diagnosis.All sessions are finished to slave unit transmission order and two steps of the corresponding command response of slave unit loopback by main equipment.The CCP protocol definition Management Information Base tabulation, comprise to slave unit and transmit data and order slave unit to report orders such as data to main equipment that slave unit is made corresponding action according to order when receiving different orders, and loopback is promptly finished a session to the replying of main equipment order.
The reasonable combination of some sessions can realize multiple function.As: main equipment connects with slave unit, main equipment and slave unit disconnect be connected, main equipment uploads data, the initialization of slave unit parameter space, setting/start/stop DAQ (Data Acquisition) the cycle data uploading operation pattern of slave unit etc. to slave unit down-transmitting data, slave unit to main equipment.CCP communication data object:
CCP agreement regulation: the data object that main equipment sends to slave unit is CRO (Command Receive Object), and the reception and registration main equipment is assigned the order to slave unit; The data object that slave unit sends to main equipment is DTO (Data TransmissionObject).Each communication data object (CRO or DTO) all is a CAN Frame, and its data fields is 8 bytes, is used to transmit session command/reply and correlation parameter.
Have following 3 kinds of situations may make slave unit send DTO:
1) slave unit is received CRO, finish order request action after, the command response that sends to main equipment.This moment, this DTO also was called CRM (Command Return Message);
2) slave unit has an accident or other need initiatively to send DTO to main equipment and to report when incident that main equipment is reported.This moment, this DTO was called as Event Message;
3) as if the main equipment requirement, slave unit can will need in certain cycle to be sent to main equipment by the data of real time monitoring automatically, and this moment, this DTO was called as DAQ-DTO Message.
CCP agreement 2.1 editions defines 28 groups of CRO and corresponding C RM altogether.
The DAQ cycle data is uploaded:
Calibration system often needs some data of real time monitoring slave unit, to understand the running condition of system.The CCP agreement has been stipulated DAQ mechanism to realize this function, makes main equipment can require slave unit by the data upload that certain cycle will monitor automatically, uploads and need not that each data is all sent the order request slave unit.
The data that DAQ transmits are organized by a series of tables, and these tables are called as ODTs (Object Descriptor Tables).Each ODT table comprises 7 elements (Element), has described attributes such as the relative address of inner certain 7 parameter of slave unit and data length, and these attributes are ordered by CRO by main equipment and write slave unit.The corresponding DAQ-DTO frame of each ODT table, it is a CAN Frame, after DAQ started, described 7 ECU data shown ODT automatically by slave unit, in the DAQ cycle on request, send to main equipment by corresponding DAQ-DTO frame.
The user can be organized as some ODT a DAQ-List, and the ECU parameter of describing among each DAQ-List has identical DAQ-DTO to send the cycle.
Summary of the invention
In order to overcome under the prior art, the deficiency of the slow and calibration tool commonality difference of mixed power electric car controller calibration tool and controller communication poor reliability, communication speed, the invention provides a kind of mixed power electric car controller calibration method, this calibration method not only can be realized the general utility functions of original calibration method, can also overcome the defective of existing mixed power electric car controller calibration method, improve reliability, convenience and the commonality of staking-out work.The technical solution adopted for the present invention to solve the technical problems is: this calibration system has the upper main frame (main equipment) of CAN bus interface card by one and the following level controller of the one or more CAN of the having bus ports on the mixed power electric car is formed, between them by a total wire joint of CAN.Carry out host computer procedure according to this upper main frame of CCP agreement, can show the parameter of level controller domestic demand supervision down, can issue an order, realize demarcating and monitoring according to the downward level controller of user's requirement for the user; This time level controller is carried out the lower computer calibrating procedure, can receive the order that upper main frame is assigned, and finishes relevant treatment according to order, and return response.
Calibration method of the present invention is characterised in that: it be the following level controller of mixed power electric car and and described down level controller with the upper main frame of CAN bus bonded assembly between, realize the method that initialization setting, parameter calibration and the parameter of level controller under the target is monitored by upper main frame according to the CCP agreement;
Store the CCP command module in the described upper main frame, this module contains the subcommand module that with good grounds CCP agreement is write, and calls for initialization sub-process, parameter calibration sub-process and parameter supervision sub-process;
Store DAQ cycle data upload process machine flow process and CCP order session handler flow process in the described level controller down: CCP order session handler flow process: the CRO command frame that obtains upper main frame, this command frame is unpacked and carries out corresponding operating according to the content of command frame, to the acknowledgement frame of upper main frame loopback CRO order, described CRO is the data object that upper main frame sends to down level controller then;
DAQ cycle data upload process machine flow process: the DAQ cycle data according to upper main frame is uploaded the initialization setting, periodically sends the DAQ-DTO that is made up of monitored parameter to upper main frame.
The calibration method main flow of carrying out on described upper main frame is as follows:
1) connects according to level controller under user command and the target;
2) initialization and the DAQ cycle data that following level controller is carried out parameter space uploaded setting;
3) start the DAQ task, call parameters monitors that sub-process reads down the parameter value of the DAQ-DTO that level controller uploads, and the parameter that receives shown, described DAQ-DTO be down level controller according to the data object that periodically is uploaded to upper main frame that is provided with of upper main frame;
4) when needs carry out parameter calibration to this time level controller, call parameters is demarcated sub-process and is demarcated;
5) when needs are connected with level controller under another, the temporary transient disconnection has connection now, is connected with level controller under another;
Described initialization sub-process: initialization is carried out in space in the following level controller and the parameter that needs to monitor, and level controller is down carried out DAQ be provided with; It contains following steps successively:
1) CONNECT subcommand module and the target controller that calls in the CCP command module connects;
2) call GET_S_STATUS submodule in the CCP command module, read the session status of target controller;
3) call SET_S_STATUS submodule in the CCP command module, it is position, RUN running state position that the target controller session status is set;
4) controlled variable of level controller under the initialization;
5) call SET_S_STATUS submodule in the CCP command module, it is that CAL demarcates mode bit set that the level controller session status is set down;
6) the DAQ cycle data that level controller is set is down uploaded setting;
7) call SET_S_STATUS submodule in the CCP command module, it is the set of DAQ mode bit that the level controller session status is set down;
8) call START_STOP submodule in the CCP command module, start level controller corresponding D AQ handler down;
9) call DISCONNECT submodule in the CCP command module, temporarily disconnect with this time level controller and being connected;
Described parameter calibration sub-process: be used for the parameter of following level controller is made amendment, it contains following steps successively:
1) calls CONNECT submodule in the CCP command module, recover to be connected with the target controller that needs calibrating parameters;
2) call SET_MTA submodule in the CCP command module, the data pointer of target controller is set, need to determine the address of target component in the target controller internal memory of demarcating;
3) call DNLOAD submodule in the CCP command module, pass the value of new parameter to target controller down;
4) call DISCONNECT submodule in the CCP command module, temporarily disconnect with this target controller and being connected;
Described parameter monitors sub-process: be used to receive down the DAQ-DTO frame that level controller is sent, content of parameter is shown; It contains following steps successively:
1) reads down the DAQ-DTO frame that level controller is uploaded;
2) the DAQ-DTO frame is unpacked, analyze it from level controller under which;
3) read the numerical value of contained parameter in the DAQ-DTO frame, and it is presented on the screen;
4) wait for next DAQ-DTO frame.
The parameter that stores level controller under the target in described upper main frame is provided with interface document, it is the title of describing the calibrating parameters of level controller under the described target and monitored parameter, unit, decimal place, ODT number, Element number, first address, byte number and the file in DAQ data upload cycle that described parameter is provided with interface document, when upper main frame to described target under level controller carry out parameter calibration and DAQ and be provided with, and when showing the monitored parameter that level controller down uploads, call described parameter and interface document is set carries out corresponding operating.Described CCP agreement is 2.1 versions.
Experiment showed, that the present invention has reached its intended purposes.
Description of drawings:
Fig. 1 represents embodiment of the invention structure connection diagram;
Fig. 2 represents the next controller software structural representation of the embodiment of the invention;
Fig. 3 represents the upper host software structural representation of the embodiment of the invention;
Fig. 4 represents the embodiment of the invention " parameter is provided with interface document " form scheme drawing;
Fig. 5 represents under the embodiment of the invention in the level controller, CCP order session handler diagram of circuit;
Fig. 6 represents under the embodiment of the invention in the level controller, DAQ cycle data upload process machine diagram of circuit;
Fig. 7 represents in the upper main frame of the embodiment of the invention, CCP command module diagram of circuit;
Fig. 8 represents in the upper main frame of the embodiment of the invention, following level controller initialization sub-process figure;
Fig. 9 represents in the upper main frame of the embodiment of the invention, parameter calibration sub-process figure;
Figure 10 represents in the upper main frame of the embodiment of the invention that parameter monitors sub-process figure;
Figure 11 represents in the upper main frame of the embodiment of the invention, the main flow program flow diagram.
The specific embodiment:
Accompanying drawings the specific embodiment of the present invention.
As shown in Figure 1, the system that the embodiment of the invention adopted is made up of a upper PC and a power assembly of mixed power electric vehicle controller.Upper main frame is made up of a PC and a upper host software that has the CAN bus interface card, and example PC of the present invention adopts IBM A22m notebook, the LAPCAN-II card that its CAN bus interface card is a KVASER company.Following level controller is made up of micro controller system, CAN bus driver and a next controller software that contains the CAN port, example of the present invention adopts microprocessor MPC555, its CAN module output CNTX is connected the CAN bus driver with input CNRX port, and bus driver adopts chip 82C250.One twisted pair wire (CAN_L, CAN_H) constitutes bus, and the CAN bus interface card of PC is articulated on the bus by bus branch twisted wire with the CAN actuator of following level controller, if increase other level controllers down, also is articulated on the bus by same method.
As shown in Figure 2, the next controller software constructional drawing of the embodiment of the invention.The next controller software is made up of CAN bus interface driver, CCP handler and DAQ handler.The CAN bus interface driver is finished the operation relevant with the CAN register to micro controller system, realize the transmission and the reception of CAN information frame, and provide two function interfaces for CCP handler and DAQ handler: calling PutMsg () can send to the CAN information frame on the bus; Call GetMsg () and can receive the CAN information frame from bus.Controlled variable and monitoring parameter are the part of micro controller system internal memory, memory controller parameter, CCP handler read/writable controlled variable and monitored parameter; The DAQ handler can be read monitored parameter.It is platform that the next controller software of the embodiment of the invention adopts real time operating system (RTOS) (RTOS) uCOS-II, and the CCP handler is a task in the operating system, needs several DAQ handlers just to arrange several DAQ tasks on this operating system.The CCP handler can call PutMsg () function interface and send the CRM frame, can call GetMsg () function interface and receive the CRO frame; The DAQ handler can call PutMsg () interface function and send the DAQ-DTO frame; The CCP handler can be created DAQ handler task (but using system function OSTaskCreate () realizes in uCOS-II) when receiving the order that require to start DAQ, also can be when receiving the order that requires to stop DAQ deletion DAQ handler task (but using system function OSTaskDel () realizes in uCOS-II).
As shown in Figure 3, the upper host software constructional drawing of the embodiment of the invention.Upper host software by CAN card driver, CCP command module, realize that function sub-process such as demarcation and main flow program form.The LAPCAN-II drive program control LAPCAN-II bus communication card that present embodiment CAN card driver adopts KVASER company to provide, realize the transmission and the reception of CAN information frame, it provides information frame transmission interface function and information frame receiving interface function for the CCP command module.What the present invention adopted is CCP agreement 2.1 versions, wherein the CCP command module contains 28 submodules, each submodule is realized a CCP order, realize the transmission of CRO frame realizing the reception of CRM frame by the receiving interface function that calls the CAN card driver by the transmission interface function that calls the CAN card driver.The function sub-process is by level controller initialization sub-process, parameter calibration sub-process and parameter supervision sub-process are formed down, wherein, following level controller initialization sub-process and parameter calibration sub-process are by calling plurality of sub command module realization in the CCP command module, and parameter supervision sub-process is called the reception CAN information frame interface function of CAN bus interface card driver and realized.Following level controller initialization sub-process realizes the initialization of level controller controlled variable down and finishes DAQ being provided with according to user's requirement.The parameter calibration sub-process realizes as requested to the modification of level controller controlled variable down.Parameter monitors that the sub-process wait receives the DAQ-DTO frame of level controller transmission down, and contained parameter in the frame is shown on the upper host display.
In the present embodiment, described customer requirements is by the form of user by agreement, arrangement according to parameter in the following level controller memory space, fill in " parameter is provided with interface document " and offer upper main frame, wherein describe calibrating parameters and monitored parameter title, unit, decimal place, ODT number, Element number, first address, the byte number of memory space, place and read this document when level controller initialization sub-process is called under the DAQ data upload cycle automatically, and according to this document to level controller controlled variable initialization down and finish DAQ and be provided with.The embodiment of the invention " parameter is provided with interface document " form as shown in Figure 4.[CAL_MAP] is the calibrating parameters of Map diagram form below indicating, and " 4 " expression that indicates next line has the calibrating parameters of 4 forms like this; [CAL_CURVE] is the calibrating parameters of curve form below indicating, and " 6 " expression that indicates next line has the calibrating parameters of 6 forms like this; [CAL_POINT] indicates following calibrating parameters for the some form, and " 10 " expression that indicates next line has the calibrating parameters of 10 forms like this.The from left to right every description of all calibrating parameters is respectively: title, unit, decimal place, first address, byte number.[DAQ] is monitored parameter below indicating, and " 1 " that indicates next line represents that level controller needs a DAQ-List down, promptly sends all DAQ-DTO frames in a DAQ cycle.[DAQ_0] is the monitored parameter of the 1st DAQ-List below indicating, " 0x11 " of delegation represents that the CAN ID of the DAQ-DTO frame of this DAQ-List is 0x11 subsequently, " 20 " expression DAQ cycle of the 2nd row is 20ms subsequently, and " 6 " expression of the 3rd row subsequently has 6 these classification monitored parameters.The from left to right every description of all monitored parameters is respectively: title, unit, decimal place, ODT number, Element number, first address, byte number (two DAQ that are CCP agreement regulation for ODT number and Element number are provided with parameter).
As shown in Figure 5, CCP handler diagram of circuit in the level controller under the embodiment of the invention.The CCP handler is a system task, with the form work of an infinite loop.Task is at first waited for the CRO frame of upper main frame, if do not have then task suspension of CRO frame on the bus, then continues to carry out the step of back if find the CRO frame of upper main frame.If the CRO frame is arranged on the bus, then the CCP handler calls the CAN bus interface driver and accepts CAN information frame interface function GetMsg () and obtain upper host C RO frame.Resolve the CRO command frame subsequently, obtain command code and command parameter that upper main frame sends.According to this command execution corresponding actions.The acknowledgement frame CRM that the back loopback successful execution that is finished finishes is if need then relevant position return response parameter (command code, command response and reply parameter clearly regulation is arranged) in the CRM frame of loopback parameter in the CCP agreement.After loopback went out the CRM frame, the CCP handler was got back to the first step, continued to wait for the CRO frame on the bus.
As shown in Figure 6, level controller DAQ handler diagram of circuit under the embodiment of the invention.The DAQ handler is a system task, with the form work of an infinite loop.Task reads the monitors parameter values that ODT describes at first according to ODT (DAQ is provided with table) from internal memory.Describe according to ODT subsequently and organize the DAQ-ODT frame, monitors parameter values is write affiliated DAQ-DTO frame, and the DAQ-DTO frame is sent to upper main frame.After transmission finished, task was waited for a DAQ cycle, and this DAQ cycle is determined during for level controller initialization down by upper main frame, task suspension in the wait process, and DAQ period, task was scheduled again later, carried out once more from the first step.
As shown in Figure 7, level controller CCP command module diagram of circuit on the embodiment of the invention.CCP command module is responsible for finishing once that upper Host Command CRO frame sends and the next control order is replied the CRM frame and accepted, and finishes the session of a upper main frame and following level controller.The flow process of each CCP order submodule all as shown in Figure 7.Submodule enters the module flow process when being investigated, at first call CAN bus interface card driver and send the CRO frame, contains information such as command code and related command parameter in the frame.After sending out the CRO frame, program is waited for the CRM frame of level controller loopback down, if wait for that 25ms does not still receive down the CRM frame of level controller loopback, then returns the wait timeout mistake, withdraws from submodule.If in 25ms, waited until the CRM frame of time level controller loopback, then resolve the CRM frame, therefrom read subsequently and reply parameter.Return all at last and reply parameter, withdraw from submodule.
As shown in Figure 8, level controller initialization sub-process figure under the embodiment of the invention.This sub-process is finished connection, initialization and the DAQ of level controller are provided with down.At first call the CONNECT submodule of CCP command module, the following level controller that equals " StationAddress " with the address connect (" Station Address " in the CCP agreement, the parameter of CONNECT order).After connecting, call the GET_CCP_VERSION submodule of CCP command module, obtain down level controller CCP version number.Judge whether level controller is consistent with the major version number of upper main frame down,, then call the DISCONNECT submodule and forever disconnect connection and the inconsistent mistake of report version, withdraw from module if inconsistent; If unanimity is then carried out next step.Call the EXCHANGE_ID submodule in the CCP command module, obtain down level controller RA_Mask (Resource Availability Mask) and RP_Mask (Resource Protection Mask).Whether parsing RA_Mask judgement level controller CCP program is down supported to demarcate and DAQ, if do not support demarcation or do not support the DAQ function, then calls the DISCONNECT submodule and forever disconnects connection and reporting errors, withdraws from module.Resolve RP_Mask, judge that whether level controller CCP program is to demarcating or the DAQ function and protecting, if having protection then need carry out release to any one, if unprotect then can directly read/be provided with down the session status of level controller down.4 steps were finished release subsequently, at first called the GET_SEED submodule in the CCP command module, and upper main frame obtains down the key SEED of level controller; Subsequently according to the algorithm of prior agreement with key SEED calculate password KEY, this algorithm can be specified voluntarily by the user, and the CCP agreement is regulation not, but upper main frame should be consistent with following level controller side algorithm, otherwise can't release, the embodiment of the invention adopts the KEY that the method for each byte summation of SEED is asked; Call the UNLOCK submodule in the CCP command module; level controller transmits the KEY value that is used to verify downwards; and require level controller releasing down to the protection of demarcation and DAQ function; if down replying of level controller loopback shows that the release failure then calls the DISCONNECT submodule and forever disconnect and connecting and reporting errors; withdraw from module, if the release success is then carried out next step.More than unblank, releasing process is to provide for the safety of enhancer equipment, can directly skip this several steps to this less demanding level controller down.Call the GET_S_STATUS submodule in the CCP command module, read down the level controller session status.Call the SET_S_STATUS submodule in the CCP command module, the level controller session status is set down, be position, RUN running state position.Read " parameter is provided with interface document " subsequently; Controlled variable according to level controller under " parameter is provided with interface document " initialization; Call the SET_S_STATUS submodule in the CCP command module after initialization is finished, the level controller session status is set down, for CAL demarcates mode bit set.Next step program is provided with down level controller DAQ according to " parameter is provided with interface document ", fills in down the ODT of level controller by calling CCP order submodule; Call the SET_S_STATUS submodule in the CCP command module after setting is finished, the level controller session status is set down, be the set of DAQ mode bit; Call the START_STOP submodule in the CCP command module, start level controller corresponding D AQ handler down according to " parameter is provided with interface document ".Above process is finished the connection of level controller under the target, initialization and DAQ is provided with, and calls the DISCONNECT submodule in the CCP command module after finishing, and temporarily disconnects with this time level controller being connected.(temporary transient disconnect connect makes upper main frame can with other down level controller connect, and do not influence the operation of level controller DAQ function down, upper main frame still can the call parameters monitor module obtains down the monitoring data of level controller.)
As shown in Figure 9, parameter calibration sub-process figure in the upper main frame of the embodiment of the invention, this sub-process is finished the parameter calibration to following level controller.At first call the CONNECT submodule in the CCP command module, make the affiliated level controller down of upper main frame and spotting parameter recover to be connected (the CCP agreement stipulates that disconnection temporarily connects the CRO that level controller is not accepted outside the upper host C ONNET under the back orders).Connect the SET_MTA submodule that calls after being resumed in the CCP command module, the data pointer of level controller is set down, determine the address of spotting parameter in following level controller internal memory.Call the DNLOAD submodule in the CCP command module subsequently, level controller passes the value of this parameter down downwards.The CRM frame that returns according to following level controller judges and passes whether success under the parameter, calls DISCONNECT submodule in the CCP command module if pass failure down, temporarily disconnects with this time level controller being connected, and return parameters demarcation mistake withdraws from module; If pass down and successfully then revise relevant parameters data in the upper host memory, call the DISCONNECT submodule in the CCP command module, temporarily disconnect with this time level controller and being connected, successfully return, withdraw from module.
As shown in figure 10, parameter monitors sub-process figure in the upper main frame of the embodiment of the invention, and this sub-process is responsible for resolving the DAQ-DTO frame, and reality is to the supervision in the following level controller.The CAN information frame interface function of accepting that at first calls CAN bus interface card driver reads DAQ-DTO frame on the bus, if have in the 10ms to receive new DAQ-DTO frame and then continue the calling interface function and read, do not enter all DAQ-DTO frames of receiving after the module if there is new DAQ-DTO frame to be accepted then to resolve in the 10ms.Analyze the DAQ-DTO frame from level controller under which, and read the wherein value of contained monitored parameter, monitored parameter is presented on the screen according to " parameter is provided with interface document ".After finishing, program is correctly returned, and withdraws from sub-process.
The embodiment of the invention upper main frame main flow program such as Figure 11, this program is promptly carried out behind upper host-initiated, calls 3 function sub-processes and finishes demarcation, monitor task.After program begins, wait for the order that customer requirements and following level controller connect, then continue to carry out if the user sends this order.After receiving " StationAddress " of level controller under order that customer requirements connects and the target, call down level controller initialization sub-process, connect, finish initiation parameter and DAQ is set with following level controller.Judge whether that subsequently the user has new order, then call down level controller initialization sub-process once more, connect, finish initiation parameter and DAQ is set with following level controller if customer requirements and another following level controller connect; If customer requirements carries out parameter calibration to the following level controller that certain has connected, then call parameters is demarcated sub-process and is finished parameter calibration; If the user do not have new order, then call parameters monitors sub-process, obtains down on the screen of the currency of level controller monitored parameter and demonstration.Finish above operation back and continue to judge whether the user has new order, circulation is carried out.
CAN bus data transmission is reliable, and speed is fast, is to have improved reliability, the convenience demarcated based on the beneficial effect of the present invention of CAN bus; In addition, only need just the present invention just can be realized the demarcation of other controllers on the mixed power electric car that another beneficial effect of the present invention is to have improved commonality by revising " parameter is provided with interface document ".
Claims (3)
1, based on the mixed power electric car controller calibration method of CCP agreement, it is characterized in that, it be the following level controller of mixed power electric car and and described down level controller with the upper main frame of CAN bus bonded assembly between, realize the method that initialization setting, parameter calibration and the parameter of level controller under the target is monitored by upper main frame according to the CCP agreement; Store the CCP command module in the described upper main frame, this module contains the subcommand module that with good grounds CCP agreement is write, and calls for initialization sub-process, parameter calibration sub-process and parameter supervision sub-process;
Store DAQ cycle data upload process machine flow process and CCP order session handler flow process in the described level controller down: CCP order session handler flow process: the CRO command frame that obtains upper main frame, this command frame is unpacked and carries out corresponding operating according to the content of command frame, to the acknowledgement frame of upper main frame loopback CRO order, described CRO is the data object that upper main frame sends to down level controller then;
DAQ cycle data upload process machine flow process: the DAQ cycle data according to upper main frame is uploaded the initialization setting, periodically sends the DAQ-DTO that is made up of monitored parameter to upper main frame.
The calibration method main flow of carrying out on described upper main frame is as follows:
1) connects according to level controller under user command and the target;
2) initialization and the DAQ cycle data that following level controller is carried out parameter space uploaded setting;
3) start the DAQ task, call parameters monitors that sub-process reads down the parameter value of the DAQ-DTO that level controller uploads, and the parameter that receives shown, described DAQ-DTO be down level controller according to the data object that periodically is uploaded to upper main frame that is provided with of upper main frame;
4) when needs carry out parameter calibration to this time level controller, call parameters is demarcated sub-process and is demarcated;
5) when needs are connected with level controller under another, the temporary transient disconnection has connection now, is connected with level controller under another;
Described initialization sub-process: initialization is carried out in space in the following level controller and the parameter that needs to monitor, and level controller is down carried out DAQ be provided with; It contains following steps successively:
1) CONNECT subcommand module and the target controller that calls in the CCP command module connects;
2) call GET_S_STATUS submodule in the CCP command module, read the session status of target controller;
3) call SET_S_STATUS submodule in the CCP command module, it is position, RUN running state position that the target controller session status is set;
4) controlled variable of level controller under the initialization;
5) call SET_S_STATUS submodule in the CCP command module, it is that CAL demarcates mode bit set that the level controller session status is set down;
6) the DAQ cycle data that level controller is set is down uploaded setting;
7) call SET_S_STATUS submodule in the CCP command module, it is the set of DAQ mode bit that the level controller session status is set down;
8) call START_STOP submodule in the CCP command module, start level controller corresponding D AQ handler down;
9) call DISCONNECT submodule in the CCP command module, temporarily disconnect with this time level controller and being connected;
Described parameter calibration sub-process: be used for the parameter of following level controller is made amendment, it contains following steps successively:
1) calls CONNECT submodule in the CCP command module, recover to be connected with the target controller that needs calibrating parameters;
2) call SET_MTA submodule in the CCP command module, the data pointer of target controller is set, need to determine the address of target component in the target controller internal memory of demarcating;
3) call DNLOAD submodule in the CCP command module, pass the value of new parameter to target controller down;
4) call DISCONNECT submodule in the CCP command module, temporarily disconnect with this target controller and being connected;
Described parameter monitors sub-process: be used to receive down the DAQ-DTO frame that level controller is sent, content of parameter is shown; It contains following steps successively:
1) reads down the DAQ-DTO frame that level controller is uploaded;
2) the DAQ-DTO frame is unpacked, analyze it from level controller under which;
3) read the numerical value of contained parameter in the DAQ-DTO frame, and it is presented on the screen;
4) wait for next DAQ-DTO frame.
2, mixed power electric car controller calibration method based on the CCP agreement as claimed in claim 1, it is characterized in that, the parameter that stores level controller under the target in described upper main frame is provided with interface document, it is to describe the calibrating parameters of level controller under the described target and the title of monitored parameter that described parameter is provided with interface document, unit, decimal place, ODT number, Element number, first address, the file in byte number and DAQ data upload cycle, when upper main frame to described target under level controller carry out parameter calibration and DAQ and be provided with, and when showing the monitored parameter that level controller down uploads, call described parameter and interface document is set carries out corresponding operating.
3, the mixed power electric car controller calibration method based on the CCP agreement as claimed in claim 1 is characterized in that described CCP agreement is 2.1 versions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100034729A CN1279461C (en) | 2004-03-26 | 2004-03-26 | Method for calibrating controller of electric automobile in mixing motive power based on CCP protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100034729A CN1279461C (en) | 2004-03-26 | 2004-03-26 | Method for calibrating controller of electric automobile in mixing motive power based on CCP protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1562654A true CN1562654A (en) | 2005-01-12 |
CN1279461C CN1279461C (en) | 2006-10-11 |
Family
ID=34477612
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100034729A Expired - Fee Related CN1279461C (en) | 2004-03-26 | 2004-03-26 | Method for calibrating controller of electric automobile in mixing motive power based on CCP protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1279461C (en) |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222510B (en) * | 2008-01-25 | 2010-11-03 | 北京工业大学 | Method for implementing CANopen main station |
CN102043680A (en) * | 2010-12-28 | 2011-05-04 | 重庆恩菲斯软件有限公司 | Method and system for refreshing ECU (Electronic Control Unit) embedded software and downloading program |
CN102043717A (en) * | 2010-12-28 | 2011-05-04 | 重庆恩菲斯软件有限公司 | Testing system and testing method of driver module of automobile electronic calibration software |
CN102096411A (en) * | 2010-11-18 | 2011-06-15 | 奇瑞汽车股份有限公司 | Method and upper computer for calibrating parameter of vehicle-mounted controller |
CN1747472B (en) * | 2005-10-17 | 2011-09-07 | 浙江大学 | Universal embedded marker and marking method based on CCP |
CN102185890A (en) * | 2011-03-29 | 2011-09-14 | 奇瑞汽车股份有限公司 | Method for calibrating power-driven suitcase |
CN101332818B (en) * | 2008-07-25 | 2011-11-16 | 重庆邮电大学 | Marking device general for vehicle electronic control unit |
CN102320276A (en) * | 2011-07-05 | 2012-01-18 | 张化锴 | Pure electric automobile entire car controller calibration system and calibration method based on the CAN bus |
CN102323791A (en) * | 2011-04-01 | 2012-01-18 | 清华大学 | Optimized calibration system of entire new energy automobile |
CN101673202B (en) * | 2008-09-09 | 2012-09-12 | 比亚迪股份有限公司 | Program writing method and system, pre-writing device and writing device |
CN102749912A (en) * | 2012-06-25 | 2012-10-24 | 湖北航天技术研究院特种车辆技术中心 | Calibrating method and calibrating system for electric control unit of automatic transmission |
CN102880165A (en) * | 2011-07-13 | 2013-01-16 | 北汽福田汽车股份有限公司 | Automatic calibrating apparatus and method based on CCP (CAN (Controller Area Network) Calibration Protocol) protocol |
CN102923127A (en) * | 2012-10-17 | 2013-02-13 | 重庆长安汽车股份有限公司 | Calibration system of machine controller and hybrid electric vehicle |
CN102955474A (en) * | 2011-08-26 | 2013-03-06 | 中国航空工业集团公司第六三一研究所 | Measurement control method and system of automobile ECU (electronic control unit) |
CN103279118A (en) * | 2012-12-05 | 2013-09-04 | 北京理工大学 | Real-time measuring and marking system of multi-power unit coordination control device of new energy bus |
CN103616867A (en) * | 2013-11-26 | 2014-03-05 | 北京经纬恒润科技有限公司 | Method and device for data processing |
CN105116868A (en) * | 2015-06-29 | 2015-12-02 | 江苏大学 | Small-sized electric control gasoline engine touching-type HMI calibration method based on CAN bus |
CN106292462A (en) * | 2016-10-10 | 2017-01-04 | 无锡伟博汽车科技有限公司 | A kind of ECU driving recording harvester based on CCP agreement and method |
CN111123819A (en) * | 2019-12-04 | 2020-05-08 | 山西诚鹏科技开发有限公司 | PLC operation data recording method based on master-slave station communication mode |
CN111210542A (en) * | 2019-12-30 | 2020-05-29 | 潍柴动力股份有限公司 | Method and device for manufacturing acquisition configuration of vehicle-mounted terminal |
-
2004
- 2004-03-26 CN CNB2004100034729A patent/CN1279461C/en not_active Expired - Fee Related
Cited By (29)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1747472B (en) * | 2005-10-17 | 2011-09-07 | 浙江大学 | Universal embedded marker and marking method based on CCP |
CN101222510B (en) * | 2008-01-25 | 2010-11-03 | 北京工业大学 | Method for implementing CANopen main station |
CN101332818B (en) * | 2008-07-25 | 2011-11-16 | 重庆邮电大学 | Marking device general for vehicle electronic control unit |
CN101673202B (en) * | 2008-09-09 | 2012-09-12 | 比亚迪股份有限公司 | Program writing method and system, pre-writing device and writing device |
CN102096411A (en) * | 2010-11-18 | 2011-06-15 | 奇瑞汽车股份有限公司 | Method and upper computer for calibrating parameter of vehicle-mounted controller |
CN102096411B (en) * | 2010-11-18 | 2014-04-02 | 奇瑞汽车股份有限公司 | Method and upper computer for calibrating parameter of vehicle-mounted controller |
CN102043717A (en) * | 2010-12-28 | 2011-05-04 | 重庆恩菲斯软件有限公司 | Testing system and testing method of driver module of automobile electronic calibration software |
CN102043717B (en) * | 2010-12-28 | 2013-04-10 | 重庆恩菲斯软件有限公司 | Testing system and testing method of driver module of automobile electronic calibration software |
CN102043680B (en) * | 2010-12-28 | 2012-09-26 | 重庆恩菲斯软件有限公司 | Method and system for refreshing ECU (Electronic Control Unit) embedded software and downloading program |
CN102043680A (en) * | 2010-12-28 | 2011-05-04 | 重庆恩菲斯软件有限公司 | Method and system for refreshing ECU (Electronic Control Unit) embedded software and downloading program |
CN102185890A (en) * | 2011-03-29 | 2011-09-14 | 奇瑞汽车股份有限公司 | Method for calibrating power-driven suitcase |
CN102323791A (en) * | 2011-04-01 | 2012-01-18 | 清华大学 | Optimized calibration system of entire new energy automobile |
CN102323791B (en) * | 2011-04-01 | 2014-02-19 | 清华大学 | Optimized calibration system of entire new energy automobile |
CN102320276A (en) * | 2011-07-05 | 2012-01-18 | 张化锴 | Pure electric automobile entire car controller calibration system and calibration method based on the CAN bus |
CN102880165A (en) * | 2011-07-13 | 2013-01-16 | 北汽福田汽车股份有限公司 | Automatic calibrating apparatus and method based on CCP (CAN (Controller Area Network) Calibration Protocol) protocol |
CN102955474A (en) * | 2011-08-26 | 2013-03-06 | 中国航空工业集团公司第六三一研究所 | Measurement control method and system of automobile ECU (electronic control unit) |
CN102749912A (en) * | 2012-06-25 | 2012-10-24 | 湖北航天技术研究院特种车辆技术中心 | Calibrating method and calibrating system for electric control unit of automatic transmission |
CN102749912B (en) * | 2012-06-25 | 2015-07-08 | 湖北航天技术研究院特种车辆技术中心 | Calibrating method and calibrating system for electric control unit of automatic transmission |
CN102923127A (en) * | 2012-10-17 | 2013-02-13 | 重庆长安汽车股份有限公司 | Calibration system of machine controller and hybrid electric vehicle |
CN102923127B (en) * | 2012-10-17 | 2016-05-18 | 重庆长安汽车股份有限公司 | A kind of calibration system of electric machine controller and hybrid vehicle |
CN103279118A (en) * | 2012-12-05 | 2013-09-04 | 北京理工大学 | Real-time measuring and marking system of multi-power unit coordination control device of new energy bus |
CN103279118B (en) * | 2012-12-05 | 2016-04-13 | 北京理工大学 | The real-time mark system of a kind of integral new-energy passenger multiple units cooperative control device |
CN103616867B (en) * | 2013-11-26 | 2016-02-10 | 北京经纬恒润科技有限公司 | A kind of data processing method and device |
CN103616867A (en) * | 2013-11-26 | 2014-03-05 | 北京经纬恒润科技有限公司 | Method and device for data processing |
CN105116868A (en) * | 2015-06-29 | 2015-12-02 | 江苏大学 | Small-sized electric control gasoline engine touching-type HMI calibration method based on CAN bus |
CN106292462A (en) * | 2016-10-10 | 2017-01-04 | 无锡伟博汽车科技有限公司 | A kind of ECU driving recording harvester based on CCP agreement and method |
CN106292462B (en) * | 2016-10-10 | 2018-11-23 | 无锡伟博汽车科技有限公司 | A kind of ECU driving recording acquisition method based on CCP agreement |
CN111123819A (en) * | 2019-12-04 | 2020-05-08 | 山西诚鹏科技开发有限公司 | PLC operation data recording method based on master-slave station communication mode |
CN111210542A (en) * | 2019-12-30 | 2020-05-29 | 潍柴动力股份有限公司 | Method and device for manufacturing acquisition configuration of vehicle-mounted terminal |
Also Published As
Publication number | Publication date |
---|---|
CN1279461C (en) | 2006-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1279461C (en) | Method for calibrating controller of electric automobile in mixing motive power based on CCP protocol | |
CN1747472B (en) | Universal embedded marker and marking method based on CCP | |
CN1142491C (en) | Frame system and method for testing server performance | |
CN1212574C (en) | End node partitioning using local identifiers | |
CN1135491C (en) | Integrated management of semiconductor process data | |
CN1606760A (en) | Method and device for a vehicle-related telematics service | |
CN1858719A (en) | Method for realizing automatic test and its system | |
CN1798141A (en) | Remote Configuration Monitoring System Conforming to OPC Standard | |
CN1606282A (en) | Home appliance network system and method for operating the same | |
CN1787000A (en) | System and method for centralized managing and dispatching of batch work | |
CN1838011A (en) | Intelligent management apparatus and management method for distributed control network based on CAN bus | |
CN101079757A (en) | A testing device and operation method for broadband aviation electronic bus | |
CN114089713A (en) | Communication method based on UDS, ECU and upper computer | |
CN1570863A (en) | System and method for remotely loading or upgrading program | |
CN1263260C (en) | Method for setting product address in home network system | |
CN101267350B (en) | Debugging method and debugging system | |
CN1583478A (en) | Wireless monitoring and fault diagnostic system and method for vehicle | |
CN1968075A (en) | Distributed hot-standby logic device and primary/standby board setting method | |
CN1833207A (en) | System and method for web based monitoring and control of several spatially distributed systems | |
CN1991811A (en) | Master module, function module, electronic device and identification data setting method thereof | |
CN1896976A (en) | On-line scaling system and method | |
CN102063083B (en) | Multi-ECU (Electronic Control Unit) time-shared downloading method | |
CN107239304A (en) | The device and method reconstructed for software function | |
CN1960364A (en) | Apparatus, system, and method for managing response latency | |
CN1627282A (en) | Method and equipment for carrying out synchronous data communication between one or more mobile terminals and computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20061011 |
|
CF01 | Termination of patent right due to non-payment of annual fee |