WelcomeSwitch
(Difference between revisions)
m (Created page with 'Wiring Mechanical Software Proof-of-concept batch file: <pre>:top del getdi.cgi wget --user=admin --password=i3 http://i3detroit.dyndns.org:5000/cgi-bin/getdi.cgi find "DI...') |
|||
| Line 1: | Line 1: | ||
Wiring | Wiring | ||
| + | On the camera: | ||
| + | <pre> | ||
| + | 1 wht/org ethernet | ||
| + | 2 org/wht ethernet | ||
| + | 3 wht/grn ethernet | ||
| + | 4 blu/wht GND | ||
| + | 5 wht/blu Digital Input + | ||
| + | 6 grn/wht ethernet | ||
| + | 7 wht/brn Relay Output | ||
| + | 8 brn/wht +12V | ||
| + | </pre> | ||
| − | + | In the box: | |
| − | + | Ethernet pins pass through to Ethernet input | |
| − | + | GND from power input goes to GND from camera, also to LED cathode and SSR negative. | |
| − | + | +12 from power input goes to +12 from camera, also to switch contact. | |
| + | Relay Output from camera goes to LED anode and SSR positive. | ||
| + | Digtal Input + from camera goes to switch contact. | ||
Software | Software | ||
| Line 22: | Line 35: | ||
goto top | goto top | ||
</pre> | </pre> | ||
| + | |||
| + | Camera documentation: [ftp://ftp.dlink.com/Multimedia/URL%20Commands/URL%20command%20for%20DCS-5300_G_,%20DCS-2100_G_%2B,%20DCS-2000,%20DVS-301_2007_06_01.pdf] | ||
Revision as of 21:41, 29 November 2009
Wiring
On the camera:
1 wht/org ethernet 2 org/wht ethernet 3 wht/grn ethernet 4 blu/wht GND 5 wht/blu Digital Input + 6 grn/wht ethernet 7 wht/brn Relay Output 8 brn/wht +12V
In the box: Ethernet pins pass through to Ethernet input GND from power input goes to GND from camera, also to LED cathode and SSR negative. +12 from power input goes to +12 from camera, also to switch contact. Relay Output from camera goes to LED anode and SSR positive. Digtal Input + from camera goes to switch contact.
Software
Proof-of-concept batch file:
:top del getdi.cgi wget --user=admin --password=i3 http://i3detroit.dyndns.org:5000/cgi-bin/getdi.cgi find "DI=H" <getdi.cgi echo %errorlevel% if %errorlevel% EQU 0 wget --user=admin --password=i3 http://i3detroit.dyndns.org:5000/cgi-bin/setdo.cgi?do=l --output-document=NUL find "DI=L" <getdi.cgi echo %errorlevel% if %errorlevel% EQU 0 wget --user=admin --password=i3 http://i3detroit.dyndns.org:5000/cgi-bin/setdo.cgi?do=h --output-document=NUL sleep 1 goto top
Camera documentation: [1]