Admin-Level CGI Commands
Padding Data Format
Padding Data Format
Padding format:
4 Bytes
1 Byte
Total
Command
Length
_1
Cisco Small Business Network Camera Exported CGI Commands
The purpose of the padding data field is to let the PC side software (ActiveX or
Utility) parse the padding data to get the relevant information.
The firmware (camera side) should always pad the data if it supports some
features (even is disabled).
The following padding data starts from the first byte of the padding area (after the
normal streaming frames).
1 - 4
XXX Byte
Bytes
Length
Data
Rules:
The first four bytes of padding define the total padding length, including these four
bytes and the "Padding End" (from 1st byte to the last byte, including length and
end command).
The following padding data is divided into three parts:
•
Padding command (1 byte)
•
Padding length for the specific command (1 - 4 bytes)
•
Padding data for the specific command
The length of the "padding length" depends on the command range.
•
A. 0x00 - 0xBF — The length field is in "1 byte."
•
B. 0xC0 - 0xDF — The length field is in "2 bytes."
•
C. 0xE0 - 0xFF — The length field is in "4 bytes."
The last two bytes are the Padding End (0xBF00) command. It equals
command=END + length=0.
1 Byte
1 - 4
Bytes
Command
Length
_2
XXX Byte
....
Data
3
2 Bytes
Padding
End
42