CanServo/Protocol/MultiPacketsforLongMessage

From HITEC_HELP
Revision as of 03:04, 3 July 2024 by Choiyh (talk | contribs) (Created page with "== Multi packets for Long Message == * Note: ** ID2, CRC16 : byte order : low byte first, little endian * Reference: ** Code/CRC16 === CAN 2.0 === * The first step is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Multi packets for Long Message

  • Note:
    • ID2, CRC16 : byte order : low byte first, little endian

CAN 2.0

  • The first step is to calculate the CRC16 of the message and add it to the end to create the content to be sent.
  • Send (maximum) 7 bytes extracted from the content to be sent and a Check Byte.
  • Multi Packet's Data Format
    • < Data : max 7 byte, cut from 'Message + CRC16' >, <Check Byte>
    • Check Byte
      • bit 7 = 1, if first packet
      • bit 6 = 1, if last packet
      • bit 5 = Toggle, first packet = 1, toggle bit on each packet
      • bit 4:0 = Seq, 0 ~ 31, inc 1 on each message

FD-CAN

  • Under construction !