CB Packet Format

This document describes the CB payload of each CB packet type. All multiple byte fields are big endian.

0x00 - ping request from server

byte(s)fieldtypedescription
no payload

0x01 - ping response from cameraboard

byte(s)fieldtypedescription
0-7timestampunsigned longglobal time
8cpu frequnsigned bytecpu frequency
9inqueue sizeunsigned bytesize of incoming packet queue
10outqueue sizeunsigned bytesize of outgoing packet queue
11-14uptimeunsigned intcameraboard uptime in min
15resolutionunsigned bytecamera resolution mode
16colorunsigned bytecamera color mode
17auto exposureboolstate of camera auto exposure
18exposure valueunsigned bytecamera exposure value
19wireless printf modeboolone byte - each bit represents 1 of 8 pritf groups

0x02 - cameraborad SET from server

byte(s)fieldtypedescription
0parameterunsigned byteparameter number
1-Xvalueunsigned bytevalue

0x03 - wireless printf config from server

byte(s)fieldtypedescription
0groupsbooleach bit is a boolean value that represents the state of each of the 8 printf channels

0x04 - wireless printf from cameraboard

byte(s)fieldtypedescription
0-Xstringcharthe string to be printed

0x05 - wireless file info from cameraboard

byte(s)fieldtypedescription
0typeunsigned bytevalue of 0 is for start of transmission, 1 is for end of transmission
1-4file sizeunsigned intsize of file in bytes
5-Xfile namecharfile name, not NULL terminated

0x06 - wireless file data from cameraboard

byte(s)fieldtypedescription
0-1segment numberunsigned intfile segment number
2-Xdatabytefile data

0x07 - stop time sync - broadcast from basestation

byte(s)fieldtypedescription

0x08 - camera sync - from camera to mote

byte(s)fieldtypedescription
0-3timestampunsigned intglobal time of mote

0x09 - retransmission request from mote

byte(s)fieldtypedescription

0x0B - no incoming packet

byte(s)fieldtypedescription

0x0C - no outgoing packet

byte(s)fieldtypedescription