Zigbee Checksum Calculator and Calculation Explained

This page explains how to calculate the checksum of a Zigbee frame and provides a Zigbee checksum calculator. The calculator accepts input in hexadecimal format and provides the checksum output, also in hex.

A Zigbee frame comprises the following fields, appearing in this specific order:

  • Start Delimiter: 1 byte (value = 0x7E)
  • Length of frame: 2 bytes
  • Frame Data: Consists of the frame type (1 byte) and the actual data part.
  • Checksum: 1 byte

Zigbee Checksum Calculator

Inputs

Outputs

Let’s consider an example input for the Zigbee checksum calculator:

INPUTS: 0x17, 0x01, 0x00, 0x13, 0xA2, 0x00, 0x40, 0xAD, 0x14, 0x2E, 0xFF, 0xFE, 0x02, 0x44, 0x42

OUTPUT: 7E (The output is in HEX format)

Method Used in the Zigbee Checksum Calculator

The following step-by-step method is used in this Zigbee checksum calculator:

  • Step 1: Add all the bytes of the Zigbee frame or packet. Important: Exclude the start delimiter (0x7E) and the length of the Zigbee packet (the second and third bytes).

  • Step 2: Extract only the lowest 8 bits from the sum obtained in Step 1.

  • Step 3: Subtract the result obtained in Step 2 from 0xFF.

  • Step 4: The result of the subtraction in Step 3 is the Zigbee checksum.

zigbee checksum example