Fragmentation Example

Most of our examples demonstrate how to send small amounts of data, roughly 100B or so. For larger amounts of data you will need to use Fragmentation which will split up one large chunk of data into small individual messages and then reassemble them on the other side. The driver library makes it easy though, as we will see in this example. Up to 600B can be sent at one time. We will be using the command AF_DATA_REQUEST_EXT to send the larger amounts of data.

Normally, the two byte short address is used in Zigbee messaging. Another feature of AF_DATA_REQUEST_EXT is that it allows addressing via the eight byte long (MAC) address. To use the long addressing feature of the Fragmentation Router example, you must: uint8_t destination[8] = {0x8C, 0xB3, 0x5F, 0x01, 0x00, 0x4B, 0x12, 0x00};
 * 1) define LONG_ADDRESSING - the best place to do this is in the IAR project options
 * 2) Specify the MAC address of the destination, in reverse byte order. For example, to send to device with MAC address 00-12-4B-00-01-5F-B3-8C:

To use this set of examples, first start the Coordinator:

Next, start the router. The router will join the Coordinator and begin sending messages with long data payloads.

Now you can observe the large messages received by the Coordinator.

Note: the MDB1 and MDB2 use a 600B message but since the MSP430G2553 processor on the Launchpad only has 512B of RAM, the size of the payload with a LaunchPad is reduced to 130B.

''Congratulations, you've finished all the Communications Examples! Return to Module Examples Page''