VIVOTEK
User's Manual - 433
© 2020 VIVOTEK INC. All Right Reserved
292
clipname
<string>
Name of the audio clip.
clipindex
0, 1
Number of the audio clip.
8.38
Format SD card
Note:
This request requires Administrator privileges.
Method:
GET/POST
Syntax:
(for control API)
http://<
servername
>/cgi-bin/admin/format_sdcard.cgi?operation=set[&<parameter>=<value>]
If the user requests a size larger than all stream settings on the server, this request will fail.
If the user requests include an invalid parameter value, we will use the default value.
PARAMETER VALUE
DESCRIPTION
operation Set
Set formatting parameters and start
formatting
fstype
fat32, ext4
fat32
: High compatibility for PC, but
low stability for Data
ext4 :
Low compatibility for PC, but
high stability for Data.
fullformat 0, 1
1
: Completely clean data (fat32
support only)
blockingmo
de
blocking
blocking
: Send an HTTP response at
the end of the format.
nonblocking
: Send an HTTP response
at the start of the format
index
0~N
which one SD card
Example:
Request of format SD card:
http://myserver/cgi-bin/admin/format_sdcard.cgi?operation=set&fstype=ext4
Response of success:
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: 2\r\n
\r\n
ok
© 2020 VIVOTEK INC. All Right Reserved
293
Response of formatting fail:
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <Error Message Length>\r\n
\r\n
<Error Message>
Syntax:
(for query API)
http://<
servername
>/cgi-bin/admin/ format_sdcard.cgi?operation=get
PARAMETER VALUE
DESCRIPTION
Get
Get formatting progress(0~100) or
result(error message)
*It is unnecessary when using the
blocking mode.
Example:
Request of get formatting progress(0~100):
http://myserver/cgi-bin/admin/format_sdcard.cgi?operation=get
Response of success:
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <Success Message Length>\r\n
\r\n
<Success Message>
List of success message:
0~100 and 100 represents formatting completed
List of error message:
ERROR: You cannot format an SD card repeatedly
ERROR: Format SD failed, but removed all contents success
ERROR: Format SD failed, and failed to remove all contents
ERROR: Please insert SD card
ERROR: Please use ext file system
ERROR: File system type is not supported