当前位置:网站首页>Doip test development practice
Doip test development practice
2022-07-28 23:59:00 【Rainmicro】
DoIP brief introduction
Ethernet was first developed by BMW Into the car , Its application scenario is to brush , Meet similar HMI Map data 、 LCD instrument and other software data update , Interested parties may refer to Thomas Konigseder Of Automotive Ethernet The introduction in the book . Because of its outstanding characteristics , Then get the main OEM And more widely used , Then began international standardization ( The automotive industry has always been “ tricks ”).
DoIP Full name :Diagnostic communication over Internet Protocol. seeing the name of a thing one thinks of its function , Vehicle diagnosis is realized through Ethernet , The corresponding international standard is ISO 13400, It is defined. DoIP agreement ( be based on UDS) The flow of diagnosis data interaction between external test equipment and vehicle is described .
The following figure for DoIP And Ethernet based diagnosis in OSI 7 Layer model and in “7 Outside the floor ” Of “ role ” and “ Location ”.

DoIP Brief description of key points of the agreement
DoIP message
DoIP The position of the message in the Ethernet message is shown in the figure below .

DoIP Messages are divided into three categories :
- Node management class
It mainly includes header processing flow 、 Vehicle information acquisition ( Such as EID、GID、VIN etc. )、 Route activation process ( Including authorization and confirmation functions )、TCP_DATA socket Processing flow .

- Vehicle information
It mainly includes obtaining DoIP Entity status information 、 Vehicle power mode information .

- Diagnostic class
It mainly includes diagnostic message processing flow and UDS Data interaction .

DoIP Conversation flow
DoIP The whole process of conversation can be divided into five steps : Hardwired activation ( Whether the activation mechanism is adopted and the activation method is different OEM There are differences )-> Vehicle discovery process ->TCP_DATA socket Processing flow -> Diagnostic data interaction -> close TCP_DATA socket.

picture source :ISO 13400-2:Road vehicles - Diagnostic communication over Internet Protocol (DoIP)
Differences between edges and internal nodes
About DoIP agreement ,ISO 13400 The specification makes a framework definition , but OEM The details will be customized according to the functional requirements of the whole vehicle , At the same time, it will distinguish between edge nodes and internal Ethernet nodes , Some friends may have questions here ,“ Why should Ethernet nodes distinguish between edge nodes and internal nodes ? Whether the two can support complete DoIP agreement ?” Next, we discuss the edge nodes and internal nodes in DoIP Differences in message configuration .
Question 1 : The internal node needs to support the positive response of diagnostic message (0x8002) Well ?
analysis : When Tester When sending a diagnostic request to an internal node , First, the edge node will move to Tester send out 0x8002 message , If the internal node also supports 0x8002 message , Then, the edge node forwards the message sent by the internal node again 0x8002 Message and diagnostic response message to Tester.
according to DoIP agreement ,Tester Wait after sending the diagnostic message 0x8002 The message starts at the same time P6Client Timer to receive diagnostic response message ( Not for now 0x8003). So if the internal node supports 0x8002 The message does not meet the requirements in terms of system design DoIP agreement , And it will lead to Ethernet system level diagnostic brush test P6Client Parameter timeout .

Question two , I throw a brick : What strategies should different types of nodes adopt for routing activation messages ?
Interested , You can make an appointment about such technical details , Similarly, this topic can be extended to include DoIP Other messages have different configurations and support schemes for edge and internal nodes , Of course, there are the most obvious differences in the support for hardwired activation features .
All change is the same , Ethernet node DoIP The message configuration shall serve the functions of the whole vehicle , This part should be OEM Design engineers need to design from the perspective of application scenarios . opinion , Wise men see wisdom. , In different topologies 、 The design scheme should also be different under different requirements .
DoIP And Ethernet diagnosis test scheme and practice
DoIP And Ethernet diagnostic test implementation can be introduced hierarchically , Of course, in each layer OEM Will be in ISO Custom development based on standard requirements .
in the light of ISO 13400-2 Test of
The test includes DoIP Message format 、DoIP Process and DoIP Time parameters, etc , Its test script and test project passed CANoe(CAPL) Custom implementation .


in the light of ISO 13400-3 Test of
The test contents include activation enabling line and other related tests , The test script also passes CANoe(CAPL) The development of implementation , The test environment needs the help of Vector Of VT card , Such as VT2004 Realize the simulation of hard wire .
in the light of ISO 14229-1/-5 Test of
Can be based on CANoe Option DiVa Can be realized ,DiVa yes Vector The company has a convenient 、 Efficient diagnostic test case generation tool , Use DiVa Realization UDSonCAN Everyone is familiar with the test , So for Ethernet UDS test DiVa Whether it can also cover ? The answer is yes .DiVa Can be based on DoIP agreement (ISO 13400) Generate Ethernet UDS Test Engineering , That is, according to the standard DoIP Process and ECU Conduct diagnostic data interaction .

Introduced here, the little friends may have questions , For non-standard DoIP Whether the Ethernet node of the protocol is also available DiVa Cover its test requirements ? For example, the author once encountered OEM The defined Ethernet node only supports DoIP Specific message in payload type , Or Ethernet nodes only support OEM Self defined diagnostic message, etc .
边栏推荐
- 控件 圆角描边 MaterialShapeDrawable
- 你知道有哪些正规的兼职平台吗?
- DoIP测试开发实践
- 多传感器融合定位(一)——3D激光里程计
- Machine learning problem notes
- 1-8 props的基础使用
- SAP oracle 复制新实例后数据库远程连接报错 ora-01031
- [detailed and super simple] how to use websocket links
- Pycharm new project
- VS2005 accesses the setting method "recommended collection" of vss2005 through sourceoffsite
猜你喜欢

GhostNets on Heterogeneous Devices via Cheap Operations

Solve thread safety problems & singleton mode

器利而工善,以RPA+LCAP赋能企业司库管理数字化升级

智能垃圾桶(七)——SG90舵机的介绍与使用(树莓派pico实现)

Equipped with a new generation of ultra safe cellular batteries, Sihao aipao is available from 139900 yuan

E-commerce data model design

Classification and determination method of Worthington stemxyme

Zabbix 5.0 使用自带Redis模版监控

EN 1935 building hardware. Single axis hinge - CE certification

考过HCIP入职心仪公司,分享华为认证学习经历及心得
随机推荐
Do you know any formal part-time platforms?
双重for循环优化
Leetcode 763. partition labels divide alphabetic intervals (medium)
Leetcode62. 不同路径
Use pytoch to quickly train the network model
Machine learning problem notes
Jincang database kingbasees client programming interface guide ODBC (2. Overview)
有效供应链管理的八大绩效分析指标(上)
数仓:Doris在美团的应用实践
EN 1935 building hardware. Single axis hinge - CE certification
pycharm新建项目
控件 圆角描边 MaterialShapeDrawable
Pycharm new project
Exchange 2013 SSL证书安装文档
pip镜像下载
Leetcode64. 最小路径和
fastdfs工作原理(技术原理)
pycharm配置运行环境
多传感器融合定位(二)——基于地图的定位
商家对积分体系运营的两个误解