A kind of modular UDS diagnostic service configuration method
Technical field
The present invention relates to the detection fields of automobile, and in particular to plants modular UDS diagnostic service configuration method.
Background technique
With the fast development of information technology and network technology, automobile has not been simple group of machine components one by one
Zoarium, electronic degree are higher and higher.And on automobile various functional modules such as Bluetooth audio device, new line HUD display it is a large amount of
Occur, so that electronic control unit (ECU) occupies larger status.And for more convenient electronic control to each energy module
Unit carries out fault diagnosis, and modern cars are both increased using UDS agreement as the diagnostic system of standard, and real by UDS agreement
The information exchange of host computer and each functional module is now diagnosed, to realize the diagnosis to each functional module of automobile.
Currently, existing diagnosis host computer, is interacted by the process of customization with each functional module to complete such as: software brush
Newly, the function courses such as version information is read, error code reads and removes.But these processes are prescribed in software, and function is more
It is single, and independence is very strong, when there are new demand, needs to rewrite new upper computer software to complete.Make
Biggish repeatability and stationarity must have been designed, has not had the adaptability to new demand, to be unfavorable for guardian to diagnosis
The improvement of demand.
Therefore, it is a kind of for diagnose host computer can according to diagnostic requirements to diagnostic service configuration software carry out intelligent selection
Become very necessary with the UDS diagnostic service configuration method of modular combination.
Summary of the invention
For effective solution above-mentioned technical problem, the present invention provides a kind of modular UDS diagnostic service configuration sides
Method can carry out modular combination according to diagnostic software of the UDS diagnostic requirements to the EUD for each functional module of automobile.
The present invention is the following steps are included: S1, acquisition UDS diagnostic requirements;Function corresponding to S2, positioning UDS diagnostic requirements
The ECU of module;S3, acquisition diagnosis host computer have loaded software, and have judged whether it meets UDS diagnostic requirements;S4, diagnosis is determined
When host computer has loaded software and is unable to satisfy UDS diagnostic requirements, the main of load diagnosis host computer selects UDS service list, and from master
It selects screening in UDS service list that can meet the first diagnostic software of UDS diagnostic requirements, is examined if satisfaction can be filtered out and meet UDS
First diagnostic software of disconnected demand, then write with a brush dipped in Chinese ink the first diagnostic software into the ECU of corresponding functional module;S5, it is led when determining
When selecting the first diagnostic software for not having that UDS diagnostic requirements can be met in UDS service list, alternative UDS service list is loaded, and from
Middle acquisition can meet the second opinion software of UDS diagnostic requirements, and the alternative UDS service list includes software category configuration selection
Frame and software parameter conditioning box;S6, second opinion software is write with a brush dipped in Chinese ink into the ECU of corresponding functional module, and detects second and examines
Whether disconnected software can operate success in corresponding ECU;S7, it determines that second opinion software can succeed and is operated in corresponding ECU
Afterwards, second opinion software is stored into diagnosis host computer, and is the first new diagnostic software by second opinion software set, and
Main in host computer selects UDS service list to generate corresponding option.
Further, the step S3 specifically: diagnosis host computer is being added by the ECU that CAN communication obtains functional module
The software category of the software of load, and then the diagnostic software loaded to corresponding ECU carries out simple functional selection, and by function
Energy property analysis result is contrasted with UDS diagnostic requirements, determines whether to meet UDS diagnostic requirements.
Further, before executing step S1, each functional module of vehicle is powered, and each functional module
ECU passes through CAN bus and is connected with diagnosis host computer.
Further, the main object for selecting UDS service list to be acted on according to each first diagnostic software of the diagnosis host computer, will
List content has been divided into multiple columns, and the ECU of each functional module is corresponding with respective column.
Further, when the diagnosis host computer is write with a brush dipped in Chinese ink to the ECU of corresponding functional module progress software, corresponding ECU meeting
Safety verification is carried out to diagnosis host computer;When only safety verification passes through, diagnosis host computer, which just has permission, carries out corresponding ECU
Software is write with a brush dipped in Chinese ink.
Further, the safety verification mainly includes, diagnosis host computer is write with a brush dipped in Chinese ink accordingly to the transmission of corresponding functional module
The ECU of key, corresponding functional module can identify key, and then compare with included identification key;It is close when identifying
Key and when writing with a brush dipped in Chinese ink key agreement, determines safety verification success.
Further, " whether detection second opinion software can operate success in corresponding ECU " is specific in the step S6
Are as follows: the corresponding functional module of diagnosis PC control is started to work, and is arrived the adjusting of its working condition by the ECU of functional module
Preset state;The message information of functional module is obtained by corresponding ECU;Message information is interpreted, when message information and in advance
If information is identical, determine that second opinion software operates successfully on the ECU of corresponding functional module.
Further, the message information includes conventional message information and diagnosis message information, and the routine message information can
Show the working status parameter of corresponding functional module, the diagnosis message information can show the diagnosis knot of corresponding functional module
Fruit;The presupposed information includes the default operating condition information and default diagnostic data information of functional module, when the conventional report
When literary information, diagnosis message information are identical as default operating condition information, default diagnostic data information respectively, it may be determined that second examines
Disconnected software operates successfully on the ECU of corresponding functional module.
Further, " alternative UDS service list is loaded, and therefrom acquisition can meet UDS diagnostic requirements in the step S5
Second opinion software " specifically: select the soft of corresponding objective function module from the configuration choice box of alternative UDS service list
Part configuration categories, and then parameter is added to selected software configuration by software parameter conditioning box, to obtain that UDS diagnosis can be met
The second opinion software of demand.
The present invention utilizes modular mentality of designing, and every UDS diagnostic service is sealed according to the requirement of ISO14229
Dress, and opening can be to the user interface that parameter is configured, so that user can select UDS service list or alternative UDS to take by main
Business list obtains the software for meeting diagnostic requirements, so as to avoid rewriting caused by manpower waste, while but also not
Understand that the personnel of programming can also get required diagnostic software according to diagnostic requirements;Present invention condition only complete in safety verification
Under, corresponding diagnostic software could be write with a brush dipped in Chinese ink into the ECU of corresponding functional module, to ensure that the safety of this method;
The present invention can store the second opinion software used every time into diagnosis host computer, and select UDS service column in the main of host computer
Table generates corresponding option, to can save the plenty of time occurring same diagnostic requirements next time.
Detailed description of the invention
Fig. 1 is a kind of information exchange figure of modular UDS diagnostic service configuration method of the invention;
Fig. 2 is a kind of flow chart of modular UDS diagnostic service configuration method of the invention;
Fig. 3 is a kind of structural schematic diagram of the UDS service list of modular UDS diagnostic service configuration method of the invention.
Specific embodiment
In order to illustrate the embodiments of the present invention more clearly and/or technical solution in the prior art, attached drawing will be compareed below
Illustrate a specific embodiment of the invention.It should be evident that drawings in the following description are only some embodiments of the invention,
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings
Other attached drawings, and obtain other embodiments.
Diagnosis upper computer selecting used in the present invention be external PC on the basis of UDS agreement i.e. ISO14229 or
Vehicle-mounted computer.
As shown in the figures 1 and 2, a kind of modular UDS diagnostic service configuration method provided by the invention is mainly used in pair
The diagnostic software of each functional module of automobile diagnose quickly generates, can be according to UDS diagnostic requirements to for each function of automobile
The diagnostic software of the EUD of energy module carries out modular combination.
The modular UDS diagnostic service configuration method of one of the embodiment of the present invention specifically includes step S1 to S7:
S1, UDS diagnostic requirements are obtained.
In order to guarantee a kind of modular UDS diagnostic service configuration method energy normal operation of the invention, step is being executed
Before S1, each functional module of vehicle is powered, and the ECU of each functional module passes through CAN bus and diagnosis is upper
Machine is connected.
The ECU of functional module corresponding to S2, positioning UDS diagnostic requirements;It is determined according to the direction to be diagnosed and needs to examine
What disconnected functional module is, such as need to diagnose automobile temperature adjust whether it is normal when, testing staff just needs to automobile
Power supply module is diagnosed with on-board air conditioner.And each functional module of modern cars has respective ECU, and pass through ECU
Obtain in time each module information be conducive to diagnose host computer it is diagnosed.
S3, acquisition diagnosis host computer have loaded software, and have judged whether it meets UDS diagnostic requirements.
Diagnostic software due to diagnosing the ECU on host computer to objective function module sometimes can satisfy current examine
Disconnected demand, so can be kept away directly using the diagnostic software loaded under conditions of determination can satisfy diagnostic requirements
Manpower is exempted from the waste of material resources.
In the present invention, step S3 is specifically included: diagnosis host computer is obtaining the ECU of functional module by CAN communication
The software category of the software of load, and then simple functional selection is carried out to the diagnostic software that corresponding ECU is being loaded, and will
Functional selection result is contrasted with UDS diagnostic requirements, determines whether to meet UDS diagnostic requirements.
S4, when determining that diagnosis host computer has loaded software and is unable to satisfy UDS diagnostic requirements, the main choosing of load diagnosis host computer
UDS service list, and select screening in UDS service list that can meet the first diagnostic software of UDS diagnostic requirements from main, if can sieve
The first diagnostic software for meeting UDS diagnostic requirements is selected, then is write with a brush dipped in Chinese ink the first diagnostic software to corresponding functional module
In ECU.
In the present invention, when diagnosis host computer is write with a brush dipped in Chinese ink to the ECU of corresponding functional module progress software, corresponding ECU meeting
Safety verification is carried out to diagnosis host computer;When only safety verification passes through, diagnosis host computer, which just has permission, carries out corresponding ECU
Software is write with a brush dipped in Chinese ink.Wherein, safety verification mainly includes, diagnosis host computer sends to corresponding functional module and writes with a brush dipped in Chinese ink key accordingly,
The ECU of corresponding functional module can identify key, and then compare with included identification key;When identification key and brush
When writing key agreement, safety verification success is determined.
As shown in figure 3, the UDS service list shown in diagnosis host computer of the invention include it is main select UDS service list with
List content has all been divided into multiple columns in all lists by alternative UDS service list, and the ECU of each functional module is corresponding with
Respective column carries out replacement, selection, refreshing and the configuration of diagnostic software in time in this way convenient for staff.Wherein main choosing
First diagnostic software has also been carried out corresponding classification according to N number of functional module by UDS service list, and each functional module has respectively
Optional first diagnostic software.Alternative UDS service list then includes software configuration type choice box, and user can select according to demand
Software configuration frame needed for selecting out, and then maturation can be added to the software configuration frame selected by software parameter conditioning box, from
And obtain required diagnostic software.
S5, when determine it is main select in UDS service list there is no that the first diagnostic software of UDS diagnostic requirements can be met when, load
Alternative UDS service list, and therefrom obtain the second opinion software that can meet UDS diagnostic requirements, the alternative UDS service list
Including software category configuration choice box and software parameter conditioning box;Wherein " alternative UDS service list is loaded, and therefrom obtaining can
Meet the second opinion software of UDS diagnostic requirements " specifically: it selects to correspond to from the configuration choice box of alternative UDS service list
The software configuration type of objective function module, and then parameter is added to selected software configuration by software parameter conditioning box, thus
Obtain the second opinion software that can meet UDS diagnostic requirements.
S6, second opinion software is write with a brush dipped in Chinese ink into the ECU of corresponding functional module, and detects second opinion software in correspondence
ECU in whether can operate success.Due to not occurring using in diagnosis host computer before the second software, so needing
Detect whether can the successful operation in corresponding ECU, thus guarantee diagnose host computer can be with the ECU phase of corresponding function module
Cooperation is to realize diagnostic function.
Wherein " whether detection second opinion software can operate success in corresponding ECU " specifically: diagnosis host computer control
It makes corresponding functional module to start to work, and is adjusted its working condition to preset state by the ECU of functional module;By right
ECU is answered to obtain the message information of functional module;Message information is interpreted, when message information is identical as presupposed information, really
Determine second opinion software to operate successfully on the ECU of corresponding functional module.The message information includes conventional in the present invention
Message information and diagnosis message information, the routine message information can show the working status parameter of corresponding functional module, institute
The diagnostic result of corresponding functional module can be shown by stating diagnosis message information;The presupposed information includes the default work of functional module
Make status information and default diagnostic data information, when the conventional message information, diagnosis message information respectively with default work shape
When state information, default diagnostic data information are identical, it may be determined that second opinion software operates as on the ECU of corresponding functional module
Function.
S7, determine second opinion software can succeed in corresponding ECU operate after, second opinion software is stored to diagnosis
In host computer, and it is the first new diagnostic software by second opinion software set, and selects UDS service list raw in the main of host computer
At corresponding option, to can be saved the plenty of time occurring same diagnostic requirements next time.
The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be said that
Specific implementation of the invention is only limited to these instructions.For those of ordinary skill in the art to which the present invention belongs, exist
Under the premise of not departing from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to of the invention
Protection scope.