Nios Platform Schedule Bundling Format

Version 1

The format is a very simple archive with a header, followed by each scheduler packet in sequence. This format is only meant for transmitting bundles of schedules, and not for storage, so no index is used to provide for random-access.

This format should be stored in files with a ".stb" extension.

Note: all multi-byte integers are in big-endian format unless otherwise specified. All fields without a value specified may be any value.

Header

Schedule Bundling Header
Size Data Type Value Description
26 ASCII text "SolarTech Schedule Archive" File Type Identifier
1 unsigned byte 0 Bundling format version (used to indicate when incompatible changes happen)
4 unsigned int The number of scheduler packets in this archive.
variable data The data payload. (The indicated number of scheduler packets as described in the scheduler protocol, concatenated together.)
2 unsigned short A 16 bit CRC-CCITT of the bundle (i.e. everything but this)