3. API to Search VN-V686

VN-V686 in LAN can be searched by broadcast packet that includes this API.

Search VN-V686 in LAN

Protocol Send udp packet with following text in UDP payload to destination port number 80. Source port number can be any value.

system.id<CRLF>

Response VN-V686 that received this packet sends udp packet to the source port number of the search packet. UDP payload of response packet has model name, IP address, and subnet mask. VN-V686 waits 0-0.7 second before sending response to avoid too many responses are sent in short period from many VN-V686s.

Response Example

system.id=VN-V686U(192.168.0.2/24)&200 OK<CRLF>

4. Getting Alarm from VN-V686

4.1. Procedure

1)The client establishes a TCP connection to port number 32040.

2)When motion is detected from the video image of VN-V686, or when there are changes to the alarm input (make or break), VN-V686 will send out alarm information in the following format. The first 2 lines indicate the current alarm input status (make or break). The following 1 line indicates whether motion has been detected.

peripheral.input_pin.pin(1).status=break<CRLF> peripheral.input_pin.pin(2).status=break<CRLF> video.input(1).detection(motion).status=on<CRLF>

3) The client can disconnect TCP32040 to end the alarm acquisition.

4.2.Restrictions

Maximum number of clients

The maximum number of clients that may acquire alarm is 10. When a 11th client establishes TCP connection to port number 32040, VN-V686 disconnects the TCP connection.

Additionally, VN-V686 will also check whether the TCP connection is maintained at regular intervals. VN-V686 will disconnect the TCP connection if syn exchange is not performed in 10 minutes.

Note: API for getting alarm is not restricted by the access restriction function.

14

Page 14
Image 14
JVC VN-V686U manual Search VN-V686 in LAN, Procedure