UDS protocol - 周期报文 periodical message 多字节通信 multi-byte message

Unacknowledged Segmented Data Transfer (USDT)
Unacknowledged Un-segmented Data Transfer (UUDT)
divided into multiple, separate PDUs - different frames or data packets .
文解析
首帧 First Frame Client – Server
10 64 xx xx xx xx xx xx
前两 个字节:协议控制信息 Protocol control information
The MSB 4-bit is 1 :定义为首帧
T he LSB 4-bit plus next 1-byte is having a total 12-bit :定义 CANTP 数据长度, 0x60h=100b bytes 字节
Next 6-bytes are xx 何数据 CAN 需要发送
流控帧  flow control frame Server to Client
30 0A 14 xx xx xx xx xx
 4-MSB of the first byte is 3 : 流控帧
the next 4-LSB is flow status having 0 : 清空发送, server 端通知 client server 端是空闲的, client 端可以开始发送 UDS 帧格式的周期报文
The second byte is 0A is the block size client 端可以发送 连续帧 consecutive frames 的周期
The third byte is 0x14 小的间隔时间,俩个连续帧之间间隔时间,震度 server 端准备接收下一个连续帧
连续帧 consecutive frames  Clients Server
20 xx xx xx xx xx xx xx
21 xx xx xx xx xx xx xx
22 xx xx xx xx xx xx xx
23 xx xx xx xx xx xx xx
24 xx xx xx xx xx xx xx
25 xx xx xx xx xx xx xx
26 xx xx xx xx xx xx xx
27 xx xx xx xx xx xx xx
28 xx xx xx xx xx xx xx
29 xx xx xx xx xx xx xx
the first 4-MSB :连续帧的类型,
 the second 4-LSB :连续帧的顺序号,
于有 100bytes 需要发送, 10 个周期报文发送后等下一个流控帧,接下来连续帧
the client 6-bytes of data and in the next 10 consecutive frames having 7-bytes = 76 bytes.
剩下的 24byte (100-76) bytes 在下一阶段发送,所有传说的数据字节以 segment 形式传输的,称为 periodic messages
10 个周期报文发送后等下一个流控帧,接下来下一个流控帧 Flow Control Frame: Server to Client
30 00 14 xx xx xx xx xx
client 接收流控帧后确认其他数据已经被 server 端接收, in second byte it is 00 :客户端可以无限制发送流控,接下来持续发送连续帧
Consecutive Frame: Client to Server
20 xx xx xx xx xx xx xx
21 xx xx xx xx xx xx xx
22 xx xx xx xx xx xx xx
23 xx xx xx 00 00 00 00
最后的 24 bytes, the client 停发周期报文 periodic messages . C lient-server 通信结束 .
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值