• March 28, 2024, 07:26:51 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Pages: 1 [2]

Author Topic: URL command to get a single snapshot on 2210 2230 and 7110  (Read 72868 times)

Joe Public

  • Level 2 Member
  • **
  • Posts: 84
Re: URL command to get a single snapshot on 2210 2230 and 7110
« Reply #15 on: May 19, 2012, 01:51:51 PM »

Dear sirs,
in order to have a photo or direct streaming on web browser with DCS-2230, I've found URL addresses on internet.

So for a photo we have to use:
http://IPCamAddress:port/image/jpeg.cgi

While for direct video streaming we have to use:
http://IPCamAddress:port/video/mjpg.cgi?profileid=n
n is 0,1,2,3,.... (according to video profiles).

Furthermore, as DCS-2230 IP cam is compatible with "NVSCGI APIs" (search this string on a search engine and you will find some useful PDF docs), many features of this IP Cam may be enabled or disabled using any web browsers, for example we can manage the motion detect.

So to get informations about the current settings of motion detect, we have to write the following phrase/string on any browser:
http://IPCamAddress:port/config/motion.cgi
it shows some parameters related to motion detect. Logically the IP cam will ask you admin's user-id and password.

To disable motion detect, we have to write:
http://IPCamAddress:port/config/motion.cgi?enable=no

To enable it again:
http://IPCamAddress:port/config/motion.cgi?enable=yes

To set some parameters such as sensitivity and percentage we have to use following parameters:
http://IPCamAddress:port/config/motion.cgi?sensitivity=[number]
http://IPCamAddress:port/config/motion.cgi?percentage=[number]

To set several parameters, we have to use digit "&" inside string - for example
http://IPCamAddress:port/config/motion.cgi?sensitivity=[number]&percentage=[number]

I suggest you to read the documentation because using "NVSCGI APIs" it is possible to manage the IP cam DCS-2230 everywhere and quickly.

Hope this may help you.
Logged
Italian User

1 x DNS-325 (NAS) - Fw 1.04b05
1 x DCS-942L (IP Cam) - Fw 1.23.3404
1 x DCS-2230 (Full-HD IP Cam) - Fw 1.20.00
1 x DCS-5222L (HD PTZ cam) - Fw 1.12.3404
2 x DHP-501AV (500 mbps Power-Line kit)
1 x DGS-1005D (5-Port Gigabit Switch)
1 x DGS-1008D (8-Port Gigabit Switch)

Geezer22

  • Level 2 Member
  • **
  • Posts: 26
Re: URL command to get a single snapshot on 2210 2230 and 7110
« Reply #16 on: May 19, 2012, 04:10:43 PM »

Joe Public,

This is exactly what I need. Thanks! I noticed that many of the commands listed in the pdf (for example, the command to get an event handler) do not seem to be implemented for the 2230 -- unless I am doing something wrong. However, I can easily turn off an event triggered by motion, for example, by using the command:

IPCamAddress:port/config/motion.cgi?enable=no

Disabling the motion trigger would in effect disable the event. I did not see a comparable command for disabling the built-in PIR sensor, but maybe I need to read the document more carefully. Again, thanks for providing this information.

Logged

Joe Public

  • Level 2 Member
  • **
  • Posts: 84
Re: URL command to get a single snapshot on 2210 2230 and 7110
« Reply #17 on: May 22, 2012, 07:22:46 AM »

Joe Public,

This is exactly what I need. Thanks! I noticed that many of the commands listed in the pdf (for example, the command to get an event handler) do not seem to be implemented for the 2230 -- unless I am doing something wrong. However, I can easily turn off an event triggered by motion, for example, by using the command:

IPCamAddress:port/config/motion.cgi?enable=no

Disabling the motion trigger would in effect disable the event. I did not see a comparable command for disabling the built-in PIR sensor, but maybe I need to read the document more carefully. Again, thanks for providing this information.


Do you mean ICR / IR LIGHT options normally included in web management under "Advanced -> ICR and IR" menu item?

If yes, for ICR you have to use "/config/icr.cgi", while for IR light you have to use "/config/irled.cgi".

Regarding ICR returned values, I've checked:
mode=auto       just means "ICR -> automatic"
mode=on          just means "ICR -> day mode"
mode=off          just means "ICR -> night mode"
mode=schedule  just means "ICR -> Schedule mode"

Regarding IR LIGHT returned values, I've checked:
mode=off           just means "IR Light Control -> Off"
mode=on            just means "IR Light Control -> On"
mode=auto         just means "IR Light Control -> Sync with ICR"
mode=schedule   just means "IR Light Control -> Schedule mode"

To set the schedule mode, you have to use:
/config/xxxxxx.cgi?mode=schedule&starttime=time&endtime=time

For example to set the schedule mode for IR LIGHT from 15:00 to 07:00:
config/irled.cgi?mode=schedule&starttime=15:00&endtime=07:00

Hope may help you.
« Last Edit: May 22, 2012, 07:33:17 AM by Joe Public »
Logged
Italian User

1 x DNS-325 (NAS) - Fw 1.04b05
1 x DCS-942L (IP Cam) - Fw 1.23.3404
1 x DCS-2230 (Full-HD IP Cam) - Fw 1.20.00
1 x DCS-5222L (HD PTZ cam) - Fw 1.12.3404
2 x DHP-501AV (500 mbps Power-Line kit)
1 x DGS-1005D (5-Port Gigabit Switch)
1 x DGS-1008D (8-Port Gigabit Switch)

slickster

  • Level 2 Member
  • **
  • Posts: 39
Re: URL command to get a single snapshot on 2210 2230 and 7110
« Reply #18 on: May 22, 2012, 10:48:19 AM »

Wouldn't these kind of commands require HTTPS commands than http? If not, just where would one use https connection?
Logged

Geezer22

  • Level 2 Member
  • **
  • Posts: 26
Re: URL command to get a single snapshot on 2210 2230 and 7110
« Reply #19 on: May 25, 2012, 09:25:23 AM »

Do you mean ICR / IR LIGHT options normally included in web management under "Advanced -> ICR and IR" menu item?

If yes, for ICR you have to use "/config/icr.cgi", while for IR light you have to use "/config/irled.cgi".

Regarding ICR returned values, I've checked:
mode=auto       just means "ICR -> automatic"
mode=on          just means "ICR -> day mode"
mode=off          just means "ICR -> night mode"
mode=schedule  just means "ICR -> Schedule mode"

Regarding IR LIGHT returned values, I've checked:
mode=off           just means "IR Light Control -> Off"
mode=on            just means "IR Light Control -> On"
mode=auto         just means "IR Light Control -> Sync with ICR"
mode=schedule   just means "IR Light Control -> Schedule mode"

To set the schedule mode, you have to use:
/config/xxxxxx.cgi?mode=schedule&starttime=time&endtime=time

For example to set the schedule mode for IR LIGHT from 15:00 to 07:00:
config/irled.cgi?mode=schedule&starttime=15:00&endtime=07:00

Hope may help you.


Joe Public,

No, this is not for the ICR/IR settings (although your discussion of this is helpful). The DCS-2230 has a built-in Passive Infrared Sensor (PIR), which senses changes in infrared radiation -- body heat -- to be used in triggering an event.

In the NVSCGI document I found, I do not see a command for enabling the PIR sensor. On the camera interface, the control for PIR is simply listed along with the other triggers (motion, digital input, etc.) on the event setup page. The NVSCGI document does have commands to Get and Set event handlers, but those commands do not work (unless I am doing it incorrectly).

The document I am using, by the way, is version 1.0 of Network Video Server CGI Application Programming
Interface (NVSCGI API).
Logged

Joe Public

  • Level 2 Member
  • **
  • Posts: 84
Re: URL command to get a single snapshot on 2210 2230 and 7110
« Reply #20 on: June 12, 2012, 01:02:13 PM »

I've studied part of the source code and I've found an interesting file (named "request.c" in folder "\apps\public\boa-0.94.131\src"), there is an array named "httpUri" that shows so many CGI calls, including all ones included in NVSCGI standard (that D-Link calls "NIPCA" inside the a/m source file). But unfortunately I've not found any CGI call related to event server. But some of you give a look to a/m file or to other source files, may be that someone may help you to find a way to change events via CGI scripts (anyway avoiding to change using the web management's feature).

List of all NIPCA calls is very long, but if you are interested we can open another thread (but only after admins' permission) to let all users have an idea of many CGI/HTML calls (many of them are not documented inside D-Link manuals), for example to view video/image not only there are the classic CGI calls such as "/video/mjpg.cgi", "/video/video.cgi", "/image/jpeg.cgi", but there are also "/video/AVCS.cgi", "/video/AVCS-H264.cgi", "/audio/ACAS.cgi" and "/audio/audio.cgi".

To be correct, I inform anyway the administrators that I've discovered an internal address of IP Cam that displays all settings inside the IP cam, unfortunately including also the password of many settings, clearly shown without any crypted way). This is a big-big-big security hole, and this is an ugly bug inside IP cam (that may exploited by an external attacker to know some personal and private settings). Logically I will not mention the a/m internal address of the IP cam in order to avoid to spread this exploit.
Logged
Italian User

1 x DNS-325 (NAS) - Fw 1.04b05
1 x DCS-942L (IP Cam) - Fw 1.23.3404
1 x DCS-2230 (Full-HD IP Cam) - Fw 1.20.00
1 x DCS-5222L (HD PTZ cam) - Fw 1.12.3404
2 x DHP-501AV (500 mbps Power-Line kit)
1 x DGS-1005D (5-Port Gigabit Switch)
1 x DGS-1008D (8-Port Gigabit Switch)

Geezer22

  • Level 2 Member
  • **
  • Posts: 26
Re: URL command to get a single snapshot on 2210 2230 and 7110
« Reply #21 on: June 12, 2012, 06:00:03 PM »

Good work Joe! I would be very interested in this, and perhaps a new thread would be appropriate. Did you actually try some of these commands?

Edit: Also, I think I found the GPL, but it is about 1600MB, and the site downloads VERY slowly. Was that your experience?

Regarding the configuration file, I know that the full configuration is saved in clear text on your hard drive as sysenv.dat. Are you saying this is accessible from the internet? Wouldn't it at least require your camera admin password to access it?
« Last Edit: June 12, 2012, 10:30:01 PM by Geezer22 »
Logged

Joe Public

  • Level 2 Member
  • **
  • Posts: 84
Re: URL command to get a single snapshot on 2210 2230 and 7110
« Reply #22 on: June 13, 2012, 03:19:50 PM »

Good work Joe! I would be very interested in this, and perhaps a new thread would be appropriate. Did you actually try some of these commands?

Edit: Also, I think I found the GPL, but it is about 1600MB, and the site downloads VERY slowly. Was that your experience?

Regarding the configuration file, I know that the full configuration is saved in clear text on your hard drive as sysenv.dat. Are you saying this is accessible from the internet? Wouldn't it at least require your camera admin password to access it?
If someone has problems to download the source code from Global D-Link site (it is really so slow), you can use the russian ftp site (inside /Multimedia/Sources there is the source code for DCS-2210 cam - this is the file I've downloaded).
I've tried many of these commands, mainly the NIPCA commands. All commands marked with folder "CGI-BIN" are private, and should be not used to change settings.

Anyway I prefer to change the IPCAM settings using the web management's interface as I have a very poor opinion about CGI scripts (they are generally full of security holes) - in case of IP cams they may create many damages on settings (or even on camera itself!!!) if not-properly used.
Logged
Italian User

1 x DNS-325 (NAS) - Fw 1.04b05
1 x DCS-942L (IP Cam) - Fw 1.23.3404
1 x DCS-2230 (Full-HD IP Cam) - Fw 1.20.00
1 x DCS-5222L (HD PTZ cam) - Fw 1.12.3404
2 x DHP-501AV (500 mbps Power-Line kit)
1 x DGS-1005D (5-Port Gigabit Switch)
1 x DGS-1008D (8-Port Gigabit Switch)

Geezer22

  • Level 2 Member
  • **
  • Posts: 26
Re: URL command to get a single snapshot on 2210 2230 and 7110
« Reply #23 on: June 14, 2012, 10:45:51 AM »

I've tried many of these commands, mainly the NIPCA commands. All commands marked with folder "CGI-BIN" are private, and should be not used to change settings.
I also tried many of them and found that some work, some don't. I have not been able to detect a pattern for determining which commands are operative. For the reasons you cite, I only tried commands where I was pretty sure I understood their function. There are also many .htm commands that only return information.

Still, this is all very interesting. Thanks for bringing it to our attention.
Logged
Pages: 1 [2]