SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 114
2.9.16 Set/Get Time and Date Dir/File –54hex – ‘T’ ascii
*This command is divided in 2 sub-commands, each one is explained next:
Commands (host)
X bytes
Set Dir/File Time and Date:
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x54 (hex), T (ascii). (Dir/File Time & Date)
3.- 0x53 (hex), S (ascii). (Set)
4.- Hours 0-23(dec).
5.- Minutes 0-59(dec).
6.- Seconds 0-59(dec).
7.- Day 1-31(dec).
8.- Month 1-12(dec).
9.- Year upper byte 1980-2107(dec).
10.- Year lower byte
11 up to N (Dir/File name including extension).
N+1.- 0x00 (hex) NULL ascii.
Get Dir/File Time and Date:
1.- 0x46 (hex), F (ascii). *FAT command.
2.- 0x54 (hex), T (ascii). (Dir/File Time & Date)
3.- 0x47 (hex), G (ascii). (Get)
4 up to N (Dir/File name including extension).
N+1.- 0x00 (hex) NULL ascii.
Responses (device)
X bytes
Set Dir/File Time and Date:
1.- 0xXX (hex) - Refer to “File ACK List”.
2.- 0x4F (hex), O (ascii) – success ACK.
0x46 (hex), F (ascii) – fail NAK.
Get Dir/File Time and Date:
1.- Hours 0-23(dec).
2.- Minutes 0-59(dec).
3.- Seconds 0-59(dec).
4.- Day 1-31(dec).
5.- Month 1-12(dec).
6.- Year upper byte 1980-2107(dec).
7.- Year lower byte
8.- 0xXX (hex) - Refer to “File ACK List”.
9.- 0x4F (hex), O (ascii) – success ACK.
0x46 (hex), F (ascii) – fail NAK.
Description
The Set/Get Time Date command simply
Sets or Gets the last modified Time and Date
timestamp of a Directory or File.
Note that the “New Dir/File” and “Write
File” commands update the timestamp of
the created/modified Directory or File.