Skip to content

RTCC的傳收CAN封包內容異常 #4

@liohord

Description

@liohord

CAN傳送出來的RTCC時間資料位移

例如當前時間為:2021年04月02號星期5;17點43分36秒,傳送出來的封包資料應該為:
ID:0x666;Extended ID;Data display--> Decimal

Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
Year Month Date Weekday Hour Minute Second xx
21 04 02 05 17 43 36 xx

但不管是傳或收都必須改成這樣,才能正確解讀資料內容
ID:0x666;Extended ID;Data display --> Decimal

Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
04 02 05 17 43 36 xx xx

全部往左了一個Byte

比較
ID:0x666;Extended ID;Data display--> Decimal

Byte0 Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7
格式 Year Month Date Weekday Hour Minute Second xx
正確 21 04 02 05 17 43 36 xx
錯誤 04 02 05 17 43 36 xx xx

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions