Invention content
In view of this, the purpose of the present invention includes providing a kind of vehicle analysis adjustment method, DBC file diagnostic agreements are receivedAfterwards, setting USBCAN types, channel, bit rate, mask off code and error code, initialize analysis software, open CAN busAgreement.Can receive original message data, and export and/or storage original message data, can also to original message data intoRow parsing, export and/or storage analysis message data calculate CAN bus real time load rate according to original message data.This is wholeVehicle, which analyzes adjustment method, to carry out data parsing and state analysis using the vehicle of CAN communication, calculate CAN bus real time loadRate, Integrated Simulation degree is higher, greatly improves the convenience of vehicle debugging.
The purpose of the present invention further includes providing a kind of vehicle analysis debugging system, is based on CAN bus agreement, including receive reportLiterary module, load factor computing module and data storage module.Message module is received for receiving original message data, load factor meterModule is calculated for calculating CAN bus real time load rate, data storage module is for storing original message data.Vehicle analysis is adjustedTest system can carry out data parsing and state analysis using the vehicle of CAN communication, calculate CAN bus real time load rate, softwareIntegrated level is higher, greatly improves the convenience of vehicle debugging.
The purpose of the present invention further includes providing a kind of electric vehicle, including above-mentioned vehicle analyzes debugging system, vehicle pointDebugging system is analysed to be mounted on electric vehicle.The electric vehicle can carry out data parsing and state using the vehicle of CAN communicationAnalysis calculates CAN bus real time load rate, and Integrated Simulation degree is higher, helps to improve the convenience of vehicle debugging.
The present invention improves its technical problem using technical solution below to realize.
A kind of vehicle provided by the invention analyzes adjustment method, includes the following steps:
DBC files or diagnosing protocol are received, USBCAN types and USBCAN channel types are set, USBCAN bits are setUSBCAN mask off codes and error code is arranged in rate.
Analysis software is initialized, CAN bus agreement is opened.
Receive original message data, export and/or storage original message data.
The original message data is parsed, analysis message data is exported and/or store.
According to the original message data, CAN bus real time load rate is calculated.
Further, further include:It is described that analysis software is initialized, after opening CAN bus protocol steps, input controlMessage processed or diagnosis message, CAN bus send the control message or diagnosis message.
Further, further include:After the CAN bus sends the control message or diagnosis message step, ECU journeys are carried outSequence realizes node ECU responses in line writing.
Further, after the calculating CAN bus real time load rate, the graph text information of vehicle-state is shown.
Further, described that analysis software is initialized, after opening CAN bus protocol steps;If opening the CANBus protocol fails, and shows the error code, and the analysis software enters standby.
A kind of vehicle provided by the invention analyzes debugging system, is based on CAN bus agreement, including receives message module, bearsLoad rate computing module and data storage module.The reception message module is for receiving original message data, the load factor meterModule is calculated for calculating CAN bus real time load rate, the data storage module is for storing original message data.
Further, further include input module and send message module, the input module include input control message orMessage is diagnosed, the transmission message module is for sending the control message or diagnosis message.
Further, further include ECU program burn writing modules, the ECU program burn writings module for completing ECU programs onlineNode ECU responses are realized in programming.
Further, further include display module, the display module is used to show the graph text information of vehicle-state.
A kind of electric vehicle provided by the invention, including above-mentioned vehicle analyze debugging system, the vehicle analysis debuggingSystem is mounted on the electric vehicle.
Vehicle analysis adjustment method, vehicle analysis debugging system and electric vehicle provided by the invention have following sideThe advantageous effect in face:
A kind of vehicle provided by the invention analyzes adjustment method, and after receiving DBC file diagnostic agreements, USBCAN classes are arrangedType, channel, bit rate, mask off code and error code, initialize analysis software, open CAN bus agreement.Original can be receivedBeginning message data, and export and/or storage original message data, original message data can also be parsed, export and/orStorage analysis message data calculates CAN bus real time load rate according to original message data.The vehicle analyzes adjustment method energyEnough carry out data parsing and state analysis using the vehicle of CAN communication, calculate CAN bus real time load rate, Integrated Simulation degree compared withHeight greatly improves the convenience of vehicle debugging.
A kind of vehicle provided by the invention analyzes debugging system, is based on CAN bus agreement, including receives message module, bearsLoad rate computing module and data storage module.It receives message module and is used for receiving original message data, load factor computing moduleIn calculating CAN bus real time load rate, data storage module is for storing original message data.The vehicle analyzes debugging system energyEnough carry out data parsing and state analysis using the vehicle of CAN communication, calculate CAN bus real time load rate, Integrated Simulation degree compared withHeight greatly improves the convenience of vehicle debugging.
A kind of electric vehicle provided by the invention, including above-mentioned vehicle analyze debugging system, and vehicle analyzes debugging systemOn electric vehicle.The electric vehicle can carry out data parsing and state analysis using the vehicle of CAN communication, calculateCAN bus real time load rate, Integrated Simulation degree is higher, helps to improve the convenience of vehicle debugging.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present inventionIn attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment isA part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implementedThe component of example can be arranged and be designed with a variety of different configurations.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimedThe scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiments of the present invention, this field is commonThe every other embodiment that technical staff is obtained without creative efforts belongs to the model that the present invention protectsIt encloses.
In the description of the present invention, it is to be understood that, the orientation or positional relationship of the instructions such as term "upper", "lower" is baseIn orientation or positional relationship shown in the drawings, or product of the present invention using when the orientation or positional relationship usually put, orPerson is the orientation or positional relationship that those skilled in the art usually understand, is merely for convenience of description of the present invention and simplification of the description,It does not indicate or imply the indicated equipment or element must have a particular orientation, with specific azimuth configuration and operation, becauseThis is not considered as limiting the invention.
" first ", " second " etc. of the present invention, is only used to distinguish between description, has no special meaning.
In the description of the present invention, it is also necessary to which explanation is unless specifically defined or limited otherwise, term " setting "," installation " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;Can beIt is connected directly, it can also be indirectly connected through an intermediary.It for the ordinary skill in the art, can be with concrete conditionUnderstand the concrete meaning of above-mentioned term in the present invention.
Currently, the automobile mounted network technology in China starts to start to walk, the vehicle-mounted CAN bus network system of our independent researches is equippedThe vehicle of system is seldom, and overall application level far lags behind foreign countries.In order to improve the vehicle technical performance index of domestic automobile, andIt gradually integrates with international automobile industry advanced technology, realizes the networking of domestic automobile electric-control system, must just increase to vehicleCarry the study and application study of the In-Vehicle Networks that CAN bus is representative.
Software and hardware professional equipment now both at home and abroad for automobile mounted CAN bus system observing and controlling analysis is less and price is highExpensive, function is complicated, is unfavorable for study and grasp of most beginners to vehicle-mounted CAN bussing technique, and automobile mounted CAN bus systemUnified test control analysis soft hardware equipment is study, the research essential tool of vehicle-mounted CAN bussing technique.Design build it is at low cost,The good automobile mounted CAN bus system analysis software of versatility has the study of vehicle-mounted CAN bussing technique with application studyStronger practical significance.
Therefore, the present invention proposes a kind of vehicle analysis adjustment method and its system based on CAN bus.
First embodiment
Fig. 1 is the broad flow diagram that the vehicle that the specific embodiment of the invention provides analyzes adjustment method, please refers to Fig. 1.
A kind of vehicle provided in this embodiment analyzes adjustment method, is based on CAN2.0 bus protocols, includes the following steps:
DBC file diagnostic agreements are received, USBCAN types and USBCAN channel types are set, USBCAN bit rates are set,USBCAN mask off codes and error code are set.Alternatively it is also possible to according to the setting of user, the signal ID that is tested, agreement are logicalInterrogate the initialization of rate.
Wherein, DBC files are issued by German Wei Keduo companies, it is used to describe each logic in single CAN networkNodal information can developed monitoring according to this document and analyze the operating status of all logical nodes in CAN network, also may be usedTo be targetedly ECU communications applications software.DBC is a kind of file format, and .dbc files are the texts of an ASCII fromatPart .dbc extension name can be used for defining CAN network.
Analysis software is initialized, CAN bus agreement is opened.
Main flow after CAN is opened successfully in the vehicle analysis adjustment method that Fig. 2 provides for the specific embodiment of the inventionFigure, please refers to Fig. 2.
After opening CAN bus agreement (OPEN CAN) success, original message data can be received, export and/or storage are formerBeginning message data.Original message data can be individually exported, can also individually store original message data, or preserve simultaneouslyAnd export original message data.
Analysis software can also parse original message data, export and/or store analysis message data.It canIndividually export analysis message data, can also individually store analysis message data, or preserves simultaneously and export analysis message numberAccording to.
Secondly, according to original message data, CAN bus real time load rate is calculated, the real-time status of vehicle is analyzed.
Preferably, in the present embodiment, it after calculating CAN bus real time load rate, can also be shown with patterned lineThe graph text information of vehicle-state, real-time parameter of indices etc..
Analysis software is initialized, after opening CAN bus protocol steps, can be reported with input control message or diagnosisText, CAN bus send control message or diagnosis message.
Optionally, after CAN bus sends control message or diagnosis message step, ECU programs is carried out in line writing, realize sectionPoint ECU responses.ECU, that is, electronic system core.
Fig. 3 is that the vehicle that the specific embodiment of the invention provides analyzes the main flow after CAN unlatchings failure in adjustment methodFigure, please refers to Fig. 3.
Analysis software is initialized, after opening CAN bus protocol steps;If opening CAN bus protocol failure, displayError code, and analysis software enters standby.
Second embodiment
Fig. 4 is the composition frame chart that the vehicle that the specific embodiment of the invention provides analyzes debugging system 100, please refers to Fig. 4.
A kind of vehicle provided in this embodiment analyzes debugging system 100, is based on CAN bus agreement, including receive message mouldBlock 120, data storage module 140, input module 160, ECU program burn writings module 150, sends report at load factor computing module 130Literary module 110 and display module 170.Message module 120 is received for receiving original message data, load factor computing module 130For calculating CAN bus real time load rate, data storage module 140 is for storing original message data.
Input module 160 includes input control message or diagnosis message, sends message module 110 for sending control messageOr diagnosis message.ECU program burn writings module 150 realizes node ECU responses for completing ECU program burn writings online.Display module170 graph text information for showing vehicle-state.
A kind of electric vehicle provided in this embodiment, including above-mentioned vehicle analyze debugging system 100, vehicle analysis debuggingSystem 100 is mounted on electric vehicle.
Vehicle analysis adjustment method, vehicle analysis debugging system 100 and electric vehicle provided by the invention, operation principleIt is as follows:
Vehicle analysis debugging system 100 is standby (standby), receives DBC files or diagnosing protocol, settingUSBCAN types, channel, bit rate, mask off code and error code, initialize analysis software, open CAN bus agreement.IfAfter opening the success of CAN bus agreement, original message data, export and/or storage original message data can be received.And it canOriginal message data is parsed, analysis message data is exported and/or store.And complete CAN bus real time load rate meterIt calculates, each real-time parameter of vehicle is showed with patterned form.After to CAN bus input control message or diagnosis message, CANBus has the function of sending message.And ECU programs can be carried out in line writing, realize node ECU responses.
If after opening CAN bus protocol failure, showing error code, and analysis software enters standby.
In conclusion vehicle analysis adjustment method, vehicle analysis debugging system 100 and electric vehicle tool provided by the inventionThere is the advantageous effect of the following aspects:
Vehicle provided by the invention is analyzed adjustment method, vehicle analysis debugging system 100 and electric vehicle, part and is based onCAN2.0 standards, support import DBC files or setting diagnosing protocol, are parsed to original message, can graphical real-time displayWhole vehicle state parameter, export analysis after data, can in line writing CAN bus node ECU, calculate bus real time load rate,Integrated Simulation degree is higher, greatly improves the convenience of vehicle debugging.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this fieldFor art personnel, the present invention can have various changes, combination and variation.All within the spirits and principles of the present invention, made byAny modification, equivalent substitution, improvement and etc. should all be included in the protection scope of the present invention.