UDS诊断服务19服务 19 04 何19 06子服务



首先,19服务的完整名称是 “读取DTC信息” 。它的核心功能就是让诊断仪向ECU(电子控制单元)查询与故障码相关的各种信息,而不仅仅是故障码列表本身。

不同的子服务则指定了要读取哪一类具体信息。


19 04 - 读取DTC快照记录

1. 读取内容:
DTC快照记录指的是在故障码首次触发(即“捕获”)的那个时刻,ECU快速保存下来的一组关键运行数据

可以把它想象成汽车故障发生时的“黑匣子”数据记录。它捕捉的是故障发生瞬间的“照片”,用于帮助工程师复现和诊断问题发生时的车辆状态。

2. 数据内容通常包括:

  • 时间戳:DTC被捕获时的相对时间或绝对时间。
  • 里程:车辆当时的里程数。
  • 相关信号值:例如:
    • 发动机转速
    • 车速
    • 冷却液温度
    • 负荷值
    • 电压
    • 以及其他与特定DTC相关的关键参数。

3. 使用场景:
技术人

### UDS Diagnostic Protocol Service ID 19 Subfunctions Service ID 19, also known as `DiagnosticsSessionControl`, is a fundamental part of the Unified Diagnostic Services (UDS) protocol. This service allows clients to request changes in the diagnostic session mode from an ECU[^1]. Each subfunction within this service corresponds to specific types of sessions that can be entered by the ECU. The following table outlines some common subfunctions associated with Service ID 19: | Sub-function Code | Description | |-------------------|-------------| | 0x01 | Default Session | | 0x02 | Programming Session | | 0x03 | Extended Data Session | | 0x04 | Safety System Diagnostic Session | When a client sends a message containing these codes, it requests the ECU to switch into one of the specified modes. For instance, sending code `0x01` would instruct the ECU to enter its default operational state where only basic diagnostics are available. Conversely, entering more specialized states like programming or extended data sessions enables access to additional features necessary during development or maintenance activities. In terms of implementation, here’s how such a command might look when encoded according to ISO standards: ```c uint8_t sessionId = 0x13; // Example value representing any valid subfunction. // Constructing PDU for DiagnosticsSessionControl Request... pdu[0] = 0x10 + ((sessionId & 0xF0) >> 4); // SID byte including padding bits set appropriately. pdu[1] = (sessionId << 4) | 0x0F; // Remaining nibble filled up along with reserved bit pattern '1111'. ``` This example demonstrates constructing a CAN frame payload specifically targeting Service ID 19 while adhering closely to standard specifications outlined under relevant automotive communication protocols[^2].
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

天赐好车

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值