VIVOTEK
User's Manual - 389
© 2019 VIVOTEK INC. All Right Reserved
252
PARAMETER
VALUE
DESCRIPTION
Ex. label=1
Ex. Delete records whose key numbers are 1, 4, and 8.
http://<
servername
>/cgi-bin/admin/lsctrl.cgi?cmd=delete&label=1&label=4&label=8
Command:
update
PARAMETER
VALUE
DESCRIPTION
label
<integer primary key> Required.
Identify the designated record.
Ex. label=1
isLocked
<boolean>
Required.
Indicate if the file is locked or not.
Ex. Update records whose key numbers are 1 and 5 to be locked status.
http://<
servername
>/cgi-bin/admin/lsctrl.cgi?cmd=update&isLocked=1&label=1&label=5
Ex. Update records whose key numbers are 2 and 3 to be unlocked status.
http://<
servername
>/cgi-bin/admin/lsctrl.cgi?cmd=update&isLocked=0&label=2&label=3
Command: queryStatus
PARAMETER
VALUE
DESCRIPTION
retType
xml or javascript
Optional.
Ex. retype=javascript
The default return message is in XML format.
Ex. Query local storage status and call for javascript format return message.
http://<
servername
>/cgi-bin/admin/lsctrl.cgi?cmd=queryStatus&retType=javascript
© 2019 VIVOTEK INC. All Right Reserved
253
8.17
Virtual Input
(capability_nvi > 0)
Note:
Change virtual input (manual trigger) status.
Method: GET
Syntax:
http://<servername>/cgi-bin/admin/setvi.cgi?vi0=<value>[&vi1=<value>][&vi2=<value>]
[&return=<return page>]
PARAMETER
VALUE
DESCRIPTION
vi<num>
state[(duration)nstate]
Where "state" is 0, 1. “0”
means inactive or normal
state while “1” means
active or triggered state.
Where "nstate" is next
state after duration.
Ex: vi0=1
Setting virtual input 0 to trigger state
Ex: vi0=0(200)1
Setting virtual input 0 to normal state, waiting 200
milliseconds
, setting it to trigger state.
Note that when the virtual input is waiting for next
state, it cannot accept new requests.
return
<return page>
Redirect to the page <return page> after the
parameter is assigned. The <return page> should
be the relative path according to the root of
camera. If you omit this parameter, it will redirect
to an empty page.
* If the <return page> is invalid path, it will ignore
this parameter.
Return Code
Description
200
The request is successfully executed.
400
The request cannot be assigned, ex. incorrect parameters.
Examples:
setvi.cgi?vi0=0(10000)1(15000)0(20000)1
No multiple duration.
setvi.cgi?vi3=0
VI index is out of range.
setvi.cgi?vi=1
No VI index is specified.
503
The resource is unavailable, ex. Virtual input is waiting for next state.