SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 70
2.6.1 Allocate Video SD – 41hex - A ascii
Commands (host)
2 bytes + Video name + 1byte(NULL)
1.- 0x56 (hex), V (ascii). *Video Command.
2.- 0x41 (hex), A (ascii).
3 up to N (file name).
N+1.- 0x00 (hex) NULL ascii.
Responses (device)
8 bytes + 1 byte ACK/NAK
1.- Video Width high byte.
2.- Video Width low byte.
3.- Video Height high byte.
4.- Video Height low byte.
5.- Video Frames per Second high byte.
6.- Video Frames per Second low byte.
7.- Video Total Frames high byte.
8.- Video Total Frames low byte.
9.- 0x4F (hex), O (ascii) – success ACK or
0x46 (hex), F (ascii) – fail NAK.
Description
This command allocates a Video stored in the
microSD card on the SmartGPU 2 buffer to later
perform play frames and advance/set frame
operations, this command can also be seen as an
“open a file for reading operations”,
This command must always be called prior to
any “Play Video” / “Set Frame Video”
command, as those commands require an
already allocated video to be performed
successfully.
The response of this command is very useful as
once the video is successfully allocated/opened,
user can know the width, height, frames per
second, and total frames of the video for next
video command calls.
The file name must be up to 250 characters.
Only numbers and letters are recommended to
name the file, some special characters are not
allowed and may not work.
Always a NULL character (0x00)hex must follow
the last character of the file name, in order to
indicate to SMART GPU the end of this file name,
the name to receive must not include the .vid
extension.