Network Control

From Sensoray Technical Wiki
Revision as of 18:09, 3 January 2018 by PE (Talk | contribs)

Jump to: navigation, search

This page is for controlling devices such as the models 2453, 2463, 3011, and 4011 through the network interface. The network interface is Ethernet for models except the 4011, which has an optional WiFi USB interface.

The parameters or stream state on each board is programmable using HTTP (TCP port 80.) Setting a configuration parameter uses the POST method and getting the current value uses GET method. Each parameter has a level of access control; if user privileges are enabled on the device, Digest Authentication should be used to provide the username and password.

A list of the current parameter settings can be retrieved from the device at "http://<ip-address>/config.txt".

Most programming languages have a HTTP functions built-in or available in a library. For command-line testing, "wget" or "curl" may be used. Here are some examples:

 wget -q -O- http://192.168.24.64/Video[0].Width
 wget -q -O- http://192.168.24.64/Video[0].Height
 wget -q -O- --post-data="Video[0].Width=1920&Video[0].Height=1080" http://192.168.24.64/controls
 wget -q -O- --post-data="UDP[0].State=Start" http://192.168.24.64/controls
 wget -q -O- --post-data="UDP[0].State=Stop" http://192.168.24.64/controls
 wget -q -O- --user=admin --password=password --post-data="Clock=2015-05-26 9:53:56" http://192.168.24.64/controls

We do not yet have a document describing all parameter values, but until then you may look at the HTML code (view source) to determine the range of allowed values (min and max attributes on input tags).

Capturing Snapshots (Model 3011)

To capture a snapshot:

wget -O snapshot.jpg http://10.0.24.64/snapshot

To download the last snapshot (without taking a new snapshot)

wget -O snapshot.jpg http://10.0.24.64/snapshot.jpg

To set the snapshot resolution

wget -O- --post-data="Snapshot.Resolution=4096x3096" http://10.0.24.64/controls

The resolution options are: 4096x3104 4096x3096 3264x2448 2592x1944 1920x1080 1280x960 1280x720 640x480

To set the snapshot quality (range is 10-90)

wget -O- --post-data="Snapshot.JPEGQuality=90" http://10.0.24.64/controls
Personal tools
Namespaces

Variants
Actions
Toolbox