Alarm setting, Acquiring alarm on/off status from vn-e4, Setting alarm to off for vn-e4 – JVC 4ch Network Encoder VN-E4 User Manual

Page 27: Acquiring jpeg parameters added to ftp from vn-e4, Api for acquiring/changing parameters of vn-e4

Advertising
background image

27

5. API for Acquiring/Changing Parameters of VN-E4 _

5.4. Alarm Setting

The APIs below are related to alarm setting. These are equivalent to the features on the Alarm page of the WEB setting page. Refer to the
instruction manual for details on the Alarm page.

Acquiring Alarm On/Off Status from VN-E4

Format

/api/param?application.event(Number).status

Example

When acquiring the on/off status of Encoding No. 1

/api/param?application.event(1).status

Example of response

application.event(1).status=on&200 OK

Interpretation

Acquire the on/off status of the alarm action for the specified encoding number. Up to 10 alarm actions can be
specified, and therefore the number of event(Number) can also be set between the range of 1 to 10. Note that
alarm numbers are different from the alarm input pin numbers.
Either on or off will be returned.

Setting Alarm to Off for VN-E4

Format

/api/param?application.event(Number).status=off

Example

When setting Alarm No. 1 to off

/api/param?application.event(1).status=off

Example of response

application.event(1).status&200 OK

Interpretation

Set the alarm action of the specified encoding number to off. When this is set to off, the action that is
associated with this event will be deleted. When it is an FTP action, the object (file attribute that is sent via
FTP) will also be deleted. Up to 10 alarm actions can be specified, and therefore the number of event(number)
can also be set between the range of 1 to 10. Note that alarm numbers are different from the alarm input pin
numbers.
This API cannot be used to turn on the alarm action. To turn on the alarm action, specify a specific action using
the API for setting the alarm action.

Acquiring JPEG Parameters Added to FTP from VN-E4

As mentioned in the section on acquiring/setting alarm actions, specify between object01 to object08 for JPEG
to be added to FTP. Each object is a combination of the input CH and frame size as indicated below.

Frame rate, BeforeTrigger and AfterTrigger for FTP are common among all objects. A same value will be
returned during acquisition by any of the objects.

Format

5.4. Alarm Setting

Object

Input CH

Frame Size

object01

1

VGA

object02

1

QVGA

object03

2

VGA

object04

2

QVGA

object05

3

VGA

object06

3

QVGA

object07

4

VGA

object08

4

QVGA

Acquisition of input CH:

/api/param?application.object(Number).source

Acquisition of frame size:

/api/param?application.object(Number).framesize

Acquisition of frame rate:

/api/param?application.object(Number).framerate

Acquisition of BeforeTrigger:

/api/param?application.object(Number).prerec

Acquisition of AfterTrigger:

/api/param?application.object(Number).postrec

Advertising