436-0100-01-10, Rev. 200 Duo User Guide
Information on this page is subject to change without notice
Identification
code
1 Byte
Instruction number
2 Bytes
Instruction length
2 Bytes
Instruction body
32 Bytes
Instruction body format:
Struct {
uint8_t u8Type; // file type, 0- video, 1- picture, 3- other
Uint8_t u8HaveThumb; // This file supports thumbnails
Uint16_t u16ThumbSize; // thumbnail size
Uint16_t u16Width; // video or picture resolution, image width
Uint16_t u16Height; // video or picture resolution, image height
Uint32_t u32Size; // file size
Sting strTime [20]; // file creation time
};
CRC Description :
In CSP-TCP applications, the CRC is ignored
5.3 file download
Request instruction
Instruction Application: TCP
Data flow: G / A --- CS
Identification
code
1 Byte
Instruction number
2 Bytes
Instruction length
2 Bytes
Instruction body
80 Bytes
Instruction body format:
Struct {
Uint8_t u8Type; // file type, 0 - original file 1 - thumbnail
Byte Reserve [3]; // Reserved
Uint32_t u32SesID; // file download session ID
Uint32_t u32Offset; // file offset, in bytes