CN116991142A - Automobile diagnosis service method and system based on modularized UDS protocol - Google Patents
Automobile diagnosis service method and system based on modularized UDS protocol Download PDFInfo
- Publication number
- CN116991142A CN116991142A CN202310929449.5A CN202310929449A CN116991142A CN 116991142 A CN116991142 A CN 116991142A CN 202310929449 A CN202310929449 A CN 202310929449A CN 116991142 A CN116991142 A CN 116991142A
- Authority
- CN
- China
- Prior art keywords
- session
- diagnosis
- message
- frame
- control unit
- 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
- 238000003745 diagnosis Methods 0.000 title claims abstract description 112
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000004044 response Effects 0.000 claims abstract description 37
- 101000595182 Homo sapiens Podocan Proteins 0.000 claims abstract description 14
- 102100036036 Podocan Human genes 0.000 claims abstract description 14
- 230000005540 biological transmission Effects 0.000 claims abstract description 9
- 238000012545 processing Methods 0.000 claims description 17
- 230000008569 process Effects 0.000 claims description 15
- 230000006870 function Effects 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 10
- 238000004891 communication Methods 0.000 claims description 4
- 230000001629 suppression Effects 0.000 claims description 4
- 230000008859 change Effects 0.000 abstract description 5
- 238000011161 development Methods 0.000 abstract description 5
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 230000005764 inhibitory process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
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
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides an automobile diagnosis service method and system based on a modularized UDS protocol, which relate to the technical field of automobile UDS development and comprise an upper computer, a PCAN and an electronic control unit ECU; the electronic control unit ECU comprises a network layer and a session layer; the upper computer sends a diagnosis message to the electronic control unit ECU through the PCAN, the electronic control unit ECU distinguishes the network protocol control information type of the diagnosis message after receiving the diagnosis message sent by the upper computer, judges whether the current network state of the network layer allows receiving the frame diagnosis message, judges whether the addressing mode, the session mode and the security level are equal to the configuration information of the electronic control unit ECU, judges whether the electronic control unit ECU supports the service after allowing the network layer to receive the frame diagnosis message, and carries out single-frame or multi-frame transmission according to the protocol type after confirming the response type required to be sent by the session layer. The present disclosure may enable fast iterations when a need for increasing or decreasing UDS services is detected, reducing the amount of code change.
Description
Technical Field
The disclosure relates to the technical field of automobile UDS development, in particular to an automobile diagnosis service method and system based on a modularized UDS protocol.
Background
The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art.
With the rapid development of the automobile industry, the automobile is not a simple combination of mechanical parts, the functions of the electronic and electric appliances of the automobile are more and more complex, such as functions of the internet of vehicles, intelligent cabins, auxiliary driving and the like, the fault performance of the automobile is more and more complex and diversified, and in order to more conveniently carry out fault diagnosis on the electronic control units of all functional modules, the new energy automobile is provided with a diagnosis system taking the UDS protocol as a standard, and the information interaction between a diagnosis upper computer and all functional modules is realized through the UDS protocol, so that the diagnosis on all functional modules of the automobile is realized.
In the existing method based on modularized UDS diagnosis, the method is a development diagnosis method of a system control layer of an upper computer, but a diagnosis test method aiming at an execution layer of a lower computer is not available, so that rapid iteration cannot be realized when UDS service needs to be increased or reduced, a program and codes need to be edited again, the change amount is large, and the efficiency of the whole system is slow.
Disclosure of Invention
In order to solve the problems, the present disclosure provides an automobile diagnosis service method and system based on a modularized UDS protocol, which can determine the diagnosis test service flow of a lower computer of the UDS protocol, and can rapidly increase or decrease the number of codes when the UDS service is needed.
According to some embodiments, the present disclosure employs the following technical solutions:
the automobile diagnosis service system based on the modularized UDS protocol comprises an upper computer, a PCAN and an electronic control unit ECU; the electronic control unit ECU comprises a network layer and a session layer;
the upper computer sends a diagnosis message to the electronic control unit ECU through the PCAN, the electronic control unit ECU distinguishes the network protocol control information type of the diagnosis message after receiving the diagnosis message sent by the upper computer, judges whether the current network state of the network layer allows receiving the frame diagnosis message, judges whether the addressing mode, the session mode and the security level are equal to the configuration information of the electronic control unit ECU, judges whether the electronic control unit ECU supports the service after allowing the network layer to receive the frame diagnosis message, and carries out single-frame or multi-frame transmission according to the protocol type after confirming the response type required to be sent by the session layer.
Further, the electronic control unit ECU service configuration includes a service identification code, a sub-function support flag bit, a session support state, a function addressing support state, and a security access support state.
Further, the network protocol control information type includes a single frame, a first frame, a continuous frame, and a flow control frame.
Further, the network state includes a current network state, a continuous frame waiting state, a flow control frame waiting state, a frame sequence number checking state, and a transmission frame sequence number.
Further, the response types to be sent include positive response and negative response, and the session layer judges whether the electronic control unit ECU supports the sent diagnostic message service or not; judging whether the addressing mode, the session mode and the security level are equal to the ECU configuration information, and if not, sending a negative response; if so, a positive response is sent.
Further, in the judging addressing mode, the addressing mode is divided into functional addressing and physical addressing, wherein the functional addressing is that the upper computer communicates with all the Electronic Control Units (ECU), and the physical addressing is that the upper computer communicates with a specific Electronic Control Unit (ECU).
Further, after receiving the diagnosis message sent by the upper computer, the ECU starts the overtime timer of the diagnosis session, sets the overtime threshold, and the upper computer needs to send the message of the next frame within the set threshold.
According to some embodiments, the present disclosure employs the following technical solutions:
a method of a modular UDS protocol based automotive diagnostic service system, comprising:
the upper computer sends a diagnosis message to the electronic control unit ECU through the PCAN, and after the electronic control unit ECU receives the diagnosis message sent by the upper computer, the receiving processing process of the network layer comprises the following steps:
after receiving the diagnosis message, starting overtime timing of the diagnosis session, distinguishing the addressing mode of the diagnosis message and identifying the network protocol control information type of the diagnosis message, judging whether the current network state supports receiving the judged diagnosis message information type, if so, clearing the network state, judging whether the message carrying length accords with the network protocol control information type, and if so, receiving the diagnosis message and carrying out the next processing.
According to some embodiments, the present disclosure employs the following technical solutions:
the receiving processing process of the session layer comprises the following steps:
judging whether the network layer receiving state is normal, if so, starting the overtime timing of the diagnosis message session;
inquiring whether the service configuration of an ECU is supported or not, if so, judging whether the service configuration supports the current addressing mode, the session mode, the current security level and whether the suppression flag bit is suppressed or not under positive response; if the judgment is that the message is not inhibited, a positive response diagnosis message is sent, and the overtime timing of the diagnosis session is started.
Compared with the prior art, the beneficial effects of the present disclosure are:
the invention provides an automobile diagnosis service method and system based on a modularized UDS protocol, which can be used for defining the development flow of a lower computer of the UDS protocol, and can be rapidly increased when the lower computer needs to increase the UDS service and can be rapidly iterated when the UDS service needs to be increased or reduced; the amount of code change is reduced.
An upper computer, a PCAN and an electronic control unit ECU (electronic control unit for developing a lower computer) are provided in the system; the electronic control unit ECU comprises a network layer and a session layer; the upper computer sends a diagnosis message to the electronic control unit ECU through the PCAN, the electronic control unit ECU distinguishes the network protocol control information type of the diagnosis message after receiving the diagnosis message sent by the upper computer, judges whether the current network state of the network layer allows receiving the frame diagnosis message, judges whether the addressing mode, the session mode and the security level are equal to the configuration information of the electronic control unit ECU, after allowing to receive, the session layer judges whether the electronic control unit ECU supports the service, and after confirming the response type to be sent by the session layer, the network layer sends single frames or multiple frames according to the protocol type.
The method and the device carry out modularized configuration on the UDS service, and carry out modularized programming on network layer and session layer transmission in the process of receiving and sending the diagnosis message; the method can quickly iterate when the UDS service needs to be added or reduced, and the code change amount is reduced as much as possible; the risk of other unpredictability caused by scattered codes and excessive change is avoided; the UDS protocol is standardized and modular programs are easier to migrate.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure, illustrate and explain the exemplary embodiments of the disclosure and together with the description serve to explain the disclosure, and do not constitute an undue limitation on the disclosure.
FIG. 1 is a flow chart of a network layer reception process according to an embodiment of the present disclosure;
FIG. 2 is a session layer process flow diagram of an embodiment of the present disclosure;
fig. 3 is a flow chart of a network layer sending message processing according to an embodiment of the disclosure.
Detailed Description
The disclosure is further described below with reference to the drawings and examples.
It should be noted that the following detailed description is illustrative and is intended to provide further explanation of the present disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments in accordance with the present disclosure. As used herein, the singular is also intended to include the plural unless the context clearly indicates otherwise, and furthermore, it is to be understood that the terms "comprises" and/or "comprising" when used in this specification are taken to specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof.
Example 1
An embodiment of the present disclosure provides an automobile diagnosis service system based on a modularized UDS protocol, which includes an upper computer, a PCAN and an electronic control unit ECU; the electronic control unit ECU comprises a network layer and a session layer;
the upper computer sends a diagnosis message to the electronic control unit ECU through the PCAN, the electronic control unit ECU distinguishes the network protocol control information type of the diagnosis message after receiving the diagnosis message sent by the upper computer, judges whether the current network state of the network layer allows receiving the frame diagnosis message, judges whether the addressing mode, the session mode and the security level are equal to the configuration information of the electronic control unit ECU, judges whether the electronic control unit ECU supports the service after allowing the network layer to receive the frame diagnosis message, and carries out single-frame or multi-frame transmission according to the protocol type after confirming the response type required to be sent by the session layer.
As one embodiment, the ECU service configuration includes a service identification code, a sub-function support flag bit, a session support state, a function addressing support state, and a security access support state
The network protocol control information types include single frame, first frame, continuous frame, and flow control frame.
The network state includes a current network state, a continuous frame wait state, a stream control frame wait state, a frame sequence number check state, and a transmit frame sequence number.
The type of response to be sent comprises positive response and negative response, and the session layer judges whether the electronic control unit ECU supports the sent diagnostic message service or not; judging whether the addressing mode, the session mode and the security level are equal to the ECU configuration information, and if not, sending a negative response; if so, a positive response is sent.
In the judging addressing mode, the addressing mode is divided into functional addressing and physical addressing, wherein the functional addressing is that the upper computer is communicated with all the Electronic Control Units (ECU), and the physical addressing is that the upper computer is communicated with a specific Electronic Control Unit (ECU).
And after receiving the diagnosis message sent by the upper computer, the ECU starts the overtime timing of the diagnosis session, sets an overtime threshold value and needs to send out a message of the next frame within the set threshold value.
As an embodiment, after receiving the diagnosis message sent by the upper computer, the ECU distinguishes the network protocol control information type of the diagnosis message and judges whether the current network state allows the reception of the frame message; after the network layer allows the receiving, the session layer judgment is performed. The session layer first judges whether the ECU supports the service; judging whether the addressing mode, the session mode, the security level and the like are equal to the ECU configuration information, and if not, sending a negative response; if yes, a positive response is sent. After the session layer confirms that the response needs to be sent, the network layer judges the type of the network protocol control information of the sent message, and single-frame or multi-frame sending is carried out according to the type of the protocol.
Further, the upper computer sends a diagnosis message to the electronic control unit ECU through the PCAN, and after the electronic control unit ECU receives the diagnosis message sent by the upper computer, the receiving processing procedure of the network layer includes:
after receiving the diagnosis message, starting overtime timing of the diagnosis session, distinguishing the addressing mode of the diagnosis message and identifying the network protocol control information type of the diagnosis message, judging whether the current network state supports receiving the judged diagnosis message information type, if so, clearing the network state, judging whether the message carrying length accords with the network protocol control information type, and if so, receiving the diagnosis message and carrying out the next processing.
The receiving processing process of the session layer comprises the following steps: judging whether the network layer receiving state is normal, if so, starting the overtime timing of the diagnosis message session;
inquiring whether the service configuration of an ECU is supported or not, if so, judging whether the service configuration supports the current addressing mode, the session mode, the current security level and whether the suppression flag bit is suppressed or not under positive response; if the judgment is that the message is not inhibited, a positive response diagnosis message is sent, and the overtime timing of the diagnosis session is started.
As shown in fig. 1, the ECU is an electronic control unit, and the network layer receiving process flow is as follows:
step 1: after receiving the diagnosis message, starting overtime timing of the diagnosis session, wherein the overtime time is 5s; the upper computer needs to send out the next frame message within 5 s.
Step 2: distinguishing addressing modes of the diagnosis message, wherein the addressing modes are divided into functional addressing and physical addressing; wherein the function addressing is that the upper computer communicates with all ECUs; physical addressing is communication between the upper computer and a specific ECU
Step 3: the network protocol control information type of the diagnosis message is identified, and the network protocol control information type is divided into a single frame, a first frame, a continuous frame and a flow control frame.
Step 4: judging whether the current network state supports receiving the diagnosis message of the type in the step 3, if so, carrying out the step 5; if not, ignoring the frame diagnosis message.
Step 5: the network state is cleared, and the network state comprises a current network state, a continuous frame waiting state, a flow control frame waiting state, a frame sequence number checking state, a transmission frame sequence number and the like.
Step 6: judging whether the message carrying length accords with the network protocol control information type, if so, performing step 7; if not, go to step 8.
Step 7: and receiving the frame diagnosis message.
Step 8: ignoring the frame diagnosis message and uploading error information.
As shown in fig. 2, the process flow of receiving the diagnostic message by the session layer includes:
step 1), judging whether the network layer receiving state is normal, if so, performing step 2); if not, a diagnostic session timeout timer is started.
Step 2) inquiring whether the service configuration of the request service ECU is supported, if yes, performing the step 3); if not, returning a negative code: the service is not supported and a diagnostic session timeout timer is started.
Step 3) judging whether the service configuration supports the current addressing mode, if so, performing step 4); if not, a diagnostic session timeout timer is started.
Step 4) judging whether the service configuration supports the current session mode, if so, performing step 5); if not, returning a negative code: the active session is not supported and a diagnostic session timeout timer is started. The session modes are classified into a default session, a programming session, and an extended session.
Step 5) judging whether the service configuration supports the current security level, if so, performing step 6); if not, returning a negative code: secure access is denied and a diagnostic session timeout timer is started.
Step 6) judging whether the affirmative response inhibition flag bit is inhibited, if yes, performing step 7); if not, go to step 8).
Step 7) not sending a positive response message, and starting the overtime timing of the diagnosis session.
Step 8) sending a positive response message, and starting the overtime timing of the diagnosis session.
The ECU service configuration includes: service identification code, sub-function support flag bit, session support state, function addressing support state, security access support state, etc.
As shown in fig. 3, the processing flow steps of the network layer sending the diagnostic message include:
step 1, judging whether the type of the network protocol control information of the sent message is multi-frame, if so, carrying out step 3; if not, go to step 2.
And step 2, sending the message according to the single frame data format.
And step 3, sending the message according to the first frame data format.
And 4, updating the network state and starting the timeout timing of the network layer.
And 5, judging whether flow control information is received, if so, performing the step 7, and if not, performing the step 6.
Step 6, judging whether the timing of the network layer is overtime, if so, exiting the transmitting program; if not, go to step 5.
Step 7, judging whether all the messages are sent, if yes, carrying out step 8; if not, go to step 9.
And 8, clearing the network state.
And 9, continuing to send the rest messages according to the flow control information.
Example 2
In one embodiment of the present disclosure, a method for an automotive diagnostic service system based on a modular UDS protocol is provided, comprising:
the upper computer sends a diagnosis message to the electronic control unit ECU through the PCAN, and after the electronic control unit ECU receives the diagnosis message sent by the upper computer, the receiving processing process of the network layer comprises the following steps:
after receiving the diagnosis message, starting overtime timing of the diagnosis session, distinguishing the addressing mode of the diagnosis message and identifying the network protocol control information type of the diagnosis message, judging whether the current network state supports receiving the judged diagnosis message information type, if so, clearing the network state, judging whether the message carrying length accords with the network protocol control information type, and if so, receiving the diagnosis message and carrying out the next processing.
The receiving processing process of the session layer comprises the following steps:
judging whether the network layer receiving state is normal, if so, starting the overtime timing of the diagnosis message session;
inquiring whether the service configuration of an ECU is supported or not, if so, judging whether the service configuration supports the current addressing mode, the session mode, the current security level and whether the suppression flag bit is suppressed or not under positive response; if the judgment is that the message is not inhibited, a positive response diagnosis message is sent, and the overtime timing of the diagnosis session is started.
As shown in fig. 1, the ECU is an electronic control unit, and the network layer receiving process flow is as follows:
step 1: after receiving the diagnosis message, starting overtime timing of the diagnosis session, wherein the overtime time is 5s; the upper computer needs to send out the next frame message within 5 s.
Step 2: distinguishing addressing modes of the diagnosis message, wherein the addressing modes are divided into functional addressing and physical addressing; wherein the function addressing is that the upper computer communicates with all ECUs; physical addressing is communication between the upper computer and a specific ECU
Step 3: the network protocol control information type of the diagnosis message is identified, and the network protocol control information type is divided into a single frame, a first frame, a continuous frame and a flow control frame.
Step 4: judging whether the current network state supports receiving the diagnosis message of the type in the step 3, if so, carrying out the step 5; if not, ignoring the frame diagnosis message.
Step 5: the network state is cleared, and the network state comprises a current network state, a continuous frame waiting state, a flow control frame waiting state, a frame sequence number checking state, a transmission frame sequence number and the like.
Step 6: judging whether the message carrying length accords with the network protocol control information type, if so, performing step 7; if not, go to step 8.
Step 7: and receiving the frame diagnosis message.
Step 8: ignoring the frame diagnosis message and uploading error information.
As shown in fig. 2, the process flow of receiving the diagnostic message by the session layer includes:
step 1), judging whether the network layer receiving state is normal, if so, performing step 2); if not, a diagnostic session timeout timer is started.
Step 2) inquiring whether the service configuration of the request service ECU is supported, if yes, performing the step 3); if not, returning a negative code: the service is not supported and a diagnostic session timeout timer is started.
Step 3) judging whether the service configuration supports the current addressing mode, if so, performing step 4); if not, a diagnostic session timeout timer is started.
Step 4) judging whether the service configuration supports the current session mode, if so, performing step 5); if not, returning a negative code: the active session is not supported and a diagnostic session timeout timer is started. The session modes are classified into a default session, a programming session, and an extended session.
Step 5) judging whether the service configuration supports the current security level, if so, performing step 6); if not, returning a negative code: secure access is denied and a diagnostic session timeout timer is started.
Step 6) judging whether the affirmative response inhibition flag bit is inhibited, if yes, performing step 7); if not, go to step 8).
Step 7) not sending a positive response message, and starting the overtime timing of the diagnosis session.
Step 8) sending a positive response message, and starting the overtime timing of the diagnosis session.
The ECU service configuration includes: service identification code, sub-function support flag bit, session support state, function addressing support state, security access support state, etc.
As shown in fig. 3, the processing flow steps of the network layer sending the diagnostic message include:
step 1, judging whether the type of the network protocol control information of the sent message is multi-frame, if so, carrying out step 3; if not, go to step 2.
And step 2, sending the message according to the single frame data format.
And step 3, sending the message according to the first frame data format.
And 4, updating the network state and starting the timeout timing of the network layer.
And 5, judging whether flow control information is received, if so, performing the step 7, and if not, performing the step 6.
Step 6, judging whether the timing of the network layer is overtime, if so, exiting the transmitting program; if not, go to step 5.
Step 7, judging whether all the messages are sent, if yes, carrying out step 8; if not, go to step 9.
And 8, clearing the network state.
And 9, continuing to send the rest messages according to the flow control information.
Example 3
In one embodiment of the present disclosure, there is provided an electronic device including: a processor, a memory, and a computer program; wherein the processor is connected to the memory, and wherein the computer program is stored in the memory, said processor executing the computer program stored in said memory when the electronic device is running, to cause the electronic device to perform the method.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the specific embodiments of the present disclosure have been described above with reference to the drawings, it should be understood that the present disclosure is not limited to the embodiments, and that various modifications and changes can be made by one skilled in the art without inventive effort on the basis of the technical solutions of the present disclosure while remaining within the scope of the present disclosure.
Claims (10)
1. The automobile diagnosis service system based on the modularized UDS protocol is characterized by comprising an upper computer, a PCAN and an electronic control unit ECU; the electronic control unit ECU comprises a network layer and a session layer;
the upper computer sends a diagnosis message to the electronic control unit ECU through the PCAN, the electronic control unit ECU distinguishes the network protocol control information type of the diagnosis message after receiving the diagnosis message sent by the upper computer, judges whether the current network state of the network layer allows receiving the frame diagnosis message, judges whether the addressing mode, the session mode and the security level are equal to the configuration information of the electronic control unit ECU, judges whether the electronic control unit ECU supports the service after allowing the network layer to receive the frame diagnosis message, and carries out single-frame or multi-frame transmission according to the protocol type after confirming the response type required to be sent by the session layer.
2. The modular UDS protocol based automotive diagnostic service system of claim 1, wherein the ECU service configuration includes a service identification code, a sub-function support flag bit, a session support state, a function addressing support state and a security access support state.
3. The modular UDS protocol based automotive diagnostic service system of claim 1, wherein the network protocol control information types include single frame, first frame, continuous frame and flow control frame.
4. The modular UDS protocol based automotive diagnostic service system of claim 1, wherein the network states include a current network state, a continuous frame waiting state, a flow control frame waiting state, a frame sequence number check state and a transmission frame sequence number.
5. The modular UDS protocol based automotive diagnostic service system of claim 1, wherein the type of response to be transmitted includes a positive response and a negative response, and the session layer judges whether the ECU supports the transmitted diagnostic message service; judging whether the addressing mode, the session mode and the security level are equal to the ECU configuration information, and if not, sending a negative response; if so, a positive response is sent.
6. The modular UDS protocol based automotive diagnostic service system of claim 5, wherein the decision addressing scheme is divided into functional addressing and physical addressing, wherein the functional addressing is the communication between the host computer and all ECU's and the physical addressing is the communication between the host computer and a specific ECU.
7. The modular UDS protocol based automotive diagnostic service system of claim 1, wherein after receiving the diagnostic message sent by the upper computer, the ECU starts the diagnostic session timeout timer, sets a timeout threshold, and the upper computer needs to send a next frame message within the set threshold.
8. A method of a modular UDS protocol based automotive diagnostic service system according to any one of claims 1 to 7, comprising:
the upper computer sends a diagnosis message to the electronic control unit ECU through the PCAN, and after the electronic control unit ECU receives the diagnosis message sent by the upper computer, the receiving processing process of the network layer comprises the following steps:
after receiving the diagnosis message, starting overtime timing of the diagnosis session, distinguishing the addressing mode of the diagnosis message and identifying the network protocol control information type of the diagnosis message, judging whether the current network state supports receiving the judged diagnosis message information type, if so, clearing the network state, judging whether the message carrying length accords with the network protocol control information type, and if so, receiving the diagnosis message and carrying out the next processing.
9. The method of claim 8, wherein the session layer receiving process comprises:
judging whether the network layer receiving state is normal, if so, starting the overtime timing of the diagnosis message session;
inquiring whether the service configuration of an ECU is supported or not, if so, judging whether the service configuration supports the current addressing mode, the session mode, the current security level and whether the suppression flag bit is suppressed or not under positive response; if the judgment is that the message is not inhibited, a positive response diagnosis message is sent, and the overtime timing of the diagnosis session is started.
10. An electronic device, comprising: a processor, a memory, and a computer program; wherein the processor is connected to a memory, in which a computer program is stored which, when the electronic device is running, executes the computer program stored in the memory to cause the electronic device to perform the method of any one of claims 8-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310929449.5A CN116991142A (en) | 2023-07-25 | 2023-07-25 | Automobile diagnosis service method and system based on modularized UDS protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310929449.5A CN116991142A (en) | 2023-07-25 | 2023-07-25 | Automobile diagnosis service method and system based on modularized UDS protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116991142A true CN116991142A (en) | 2023-11-03 |
Family
ID=88524276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310929449.5A Pending CN116991142A (en) | 2023-07-25 | 2023-07-25 | Automobile diagnosis service method and system based on modularized UDS protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116991142A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117250943A (en) * | 2023-11-20 | 2023-12-19 | 常州星宇车灯股份有限公司 | Vehicle UDS service message anomaly detection method and detection system |
-
2023
- 2023-07-25 CN CN202310929449.5A patent/CN116991142A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117250943A (en) * | 2023-11-20 | 2023-12-19 | 常州星宇车灯股份有限公司 | Vehicle UDS service message anomaly detection method and detection system |
CN117250943B (en) * | 2023-11-20 | 2024-02-06 | 常州星宇车灯股份有限公司 | Vehicle UDS service message anomaly detection method and detection system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101442513B (en) | Method for implementing various service treatment function and multi-nuclear processor equipment | |
CN105224362A (en) | Host computer carries out the method and system of program upgrade to slave computer | |
CN116991142A (en) | Automobile diagnosis service method and system based on modularized UDS protocol | |
CN111273931B (en) | Parallel upgrading method and device for vehicle-mounted traveling crane computers | |
CN115242689B (en) | Vehicle-mounted gateway testing method, system and computer readable storage medium | |
CN112181463A (en) | ECU updating method and main node equipment | |
CN112596447B (en) | Method and device for determining length of ECU (electronic control Unit) flash data, electronic equipment and medium | |
CN112311627B (en) | Universal power protocol testing method and system based on protocol description file in XML format | |
CN112769762B (en) | Distributed efficient Internet of things equipment access method | |
CN115657646B (en) | Test method and device of CAN controller | |
CN101175315B (en) | Method and system for updating control mobile station | |
CN110011888B (en) | Modularized CAN network load rate optimization method and device | |
CN101582057A (en) | Method, device and system for controlling communication and transmission of human interface device | |
CN111045711A (en) | MCU software program upgrading method and system based on USBCAN | |
CN116232891A (en) | Whole-vehicle OTA parallel refreshing upgrading method, device, equipment and storage medium | |
CN114338270B (en) | Data communication method, device, electronic equipment and storage medium | |
CN114817671A (en) | Log analysis method and system for air conditioner Internet of things | |
CN111736551B (en) | Centralized control device, electric appliance system and centralized control method thereof | |
CN115167351A (en) | Controller function updating method and system, vehicle and server | |
CN116633955A (en) | Communication method, device, vehicle, medium and equipment | |
CN113946369A (en) | Automatic adding method, device, system, equipment and storage medium of equipment | |
CN111262766B (en) | Method, device and system for transmitting multi-packet application message data | |
CN112969238A (en) | Intelligent building information transmission method and system based on multi-priority data transmission | |
CN111586182A (en) | Data sending method and device | |
CN113056017B (en) | Intelligent building monitoring information collection method and system based on 5G system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |