如何設定 TC397 CAN module 產生 Wake Up Frame 或 Wake Up Pattern?

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
avatar
Level 3
Level 3
First like received 10 replies posted 25 sign-ins

Dear all,

如何設定 TC397 CAN module 產生 Wake Up Frame 或 Wake Up Pattern?

有程式範例或如何填 CAN module 的暫存器? Thanks.

0 点赞
1 解答
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

上述的WUF是针对传统方式,新的方式下任意帧可以唤醒,除非您指定帧的ID。

传统方式附图

dw_0-1655377677438.png

 

新的方式请参考下列文档:

https://www.can-cia.org/fileadmin/resources/documents/slides/icc_2017_slides_hell.pdf

The WUF above is for the legacy method, with the new method any frame can be WUF unless you specify the ID of the frame.

Traditional method with diagram
dw_0-1655377677438.png




For the new approach please refer to the following documents.

https://www.can-cia.org/fileadmin/resources/documents/slides/icc_2017_slides_hell.pdf

在原帖中查看解决方案

0 点赞
4 回复数
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

有指定帧、任意帧唤醒有两种方式。
比如TJA1145支持指定帧唤醒,当总线上有唤醒帧时,INH会变成高电平使能外部的电源芯片
比如,报文过滤器与唤醒帧寄存器匹配时,INH会输出12V。另外,定义网络管理帧由厂商自定义,
比如通过11位的指定域和ID MASK共同来配合确定唤醒帧。
若指定的位域是0x1A0,ID MASK是000 0000 0100b,那么唤醒帧就是0X1A4和0X1A0

所以要发送的唤醒帧要视被唤醒的器件而定。

0 点赞
avatar
Level 3
Level 3
First like received 10 replies posted 25 sign-ins

要如何設定 TC397 產生喚醒偵(Wake up Frame)?

0 点赞
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

1  对于(500k)波特率,有3个位处于显性,并超过6微秒即可

2   可能需要根据接收器件的要求来填充PAYLOAD

3  如何发送帧可以参考MCMCAN 的DEMO CODE

若波特率为500 kBit/s:

对于经典格式 classical base format frames (CBFF):

  • 需要3个显性位来满足唤醒条件6微秒 (1 bit == 2 μs -> 3 bit == 6 μs):
    • RTR, IDE, and r0 (ISO 11898-1:2003)
    • RTR, IDE and FDF (ISO 11898-1:2016)
0 点赞
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

上述的WUF是针对传统方式,新的方式下任意帧可以唤醒,除非您指定帧的ID。

传统方式附图

dw_0-1655377677438.png

 

新的方式请参考下列文档:

https://www.can-cia.org/fileadmin/resources/documents/slides/icc_2017_slides_hell.pdf

The WUF above is for the legacy method, with the new method any frame can be WUF unless you specify the ID of the frame.

Traditional method with diagram
dw_0-1655377677438.png




For the new approach please refer to the following documents.

https://www.can-cia.org/fileadmin/resources/documents/slides/icc_2017_slides_hell.pdf

0 点赞