D-Link IP Camera device type (DCS-930L tested)

I assume by Network ID you mean IP address?

The device has a field for Device Network Id; this is where you enter IPAddress:portNumber. But the hub requires that both these be converted to hexadecimal.

would you simply convert the string to hex?
e.g. using a converter
192.168.0.20:80 --> 3139322e3136382e302e32303a3830

I tried several different combinations and still canā€™t get the ST to read my cameraā€™s feed.

@thegibertchan I believe the IP is the one assigned by the ISP, not the local network IP ā€¦
Err. wait. @scottinpollock is the network ID the local network ID ??

@kmugh Itā€™s local.

@thegibertchan You want to convert the individual numbersā€¦ not the entire string. In your case this would be C0A80014:0050

Have no idea what the calculator in your link is doing. Try this one.

1 Like

@scottinpollock I am using a DCS-930L, I did use your link to create and set the device ID to the local hex IP address + port.
However, I am not able to access the camera - do I need to also set anything under the device preferences?
Can you please let us know what the following preferences should be set to:

  1. Camera Path to Image - Please enter the path to the image *
  2. Does Camera require User Auth? - Please choose if the camera requires authentication (only basic is supported)
  3. Camera User - Please enter your cameraā€™s username
  4. Camera Password - Please enter your cameraā€™s password

When linking the camera to the MyDlink account, I had to provide a camera password (no username), but then link it to the MyDlink account (username + separate password). Do any of these usernames/passwords need to be put in any of the device preferences above?

For my code, Generic Camera Device, which Scottinpollockā€™s code is based on the path for a D-Link camera in the device preferences is:

/image/jpeg.cgi

false for requires auth
no need for anything in user or password
POSTGET should be GET

This will access you camera locally, same way if you went to a browser and accessed it via http://ip/image/jpeg.cgi

@pstuart @scottinpollock Many many thanks. I now have it working :).

If it helps anyone, hereā€™s what I had to set for a DCS-930L:

  1. Camera Path to Image - Please enter the path to the image *: /image/jpeg.cgi
  2. Does Camera require User Auth? - Please choose if the camera requires authentication (only basic is supported): true
  3. Camera User - admin
  4. Camera Password - The ā€œDevice passwordā€ for the camera

What happens to the photos that I take - are they stored somewhere? I cannot seem to find the location.
If I go to the activity log, I can see a photo has been taken (and the name, which is partially hidden), but no way to bring those photos up.
Can I access the last few photos, or have them emailed anywhere once they are taken?

Let me guess, on Android? Only the images you take in the device Thing clicking the take action will show. For whatever reason the iOS version allows access to the stored images. I havenā€™t figured out how to email them, it doesnā€™t appear to have any decent method to email at the moment.

Or to paraphrase, its pretty much useless on Android. Creating a driver that works was pretty much just an exercise in learning.

Does this thread/code help?

Thanks for posting! I just got it working with my 930L.

Same here. It works with the photoburst app as well. I have a SmartSense sensor placed on top of my puppy crate that takes pictures of my puppy when Iā€™m in "away"mode and sheā€™s causing a ruckus.

Itā€™s working! https://twitter.com/thegilbertchan/status/488446677682888706/photo/1

Advise, that the photoburst app doesnā€™t take multiple pictures well, so I only have it set to take a single shot.

@Ben Any love for us Android owners ? :frowning: Can the carousel save photos somewhere for us too?

1 Like

I just used this device type with a Foscam FI8904W. All I did was change the path to /snapshot.cgi and it worked like a charm.

Thanks again for creating!

Can you explain more how the ā€œonā€ and ā€œoffā€ works for the camera? I have the 930L so maybe this doesnā€™t apply, but how can that tell it now to record motion? What are you recording to? Thanks

Any chance you could do the off and on for a Hikvision camera?

From what Iā€™ve read and tested, if you input this command to the camera URL:

http://{settings.username}:{settings.password}@{settings.host}:{settings.port}/MotionDetection/1

It returns this XML:

Last post in this thread explains that you use the same command as a ā€œPUTā€ and include the XML but change the enable true to false:

http://www.cam-it.org/index.php?topic=7888.0

Full Hikvision API guide here (specifically section 8.10.1):

Thanks

Hi Scott,

Thanks for this device working w local IP. Actually my old DLink DCS-930 (no L) is just unable to work. When using the device, it goes in a ā€œTakingā€ state, and never transition back or display anything on my Android app. Any guess?

Regards,
Olivier

None, as I donā€™t know whats different between the ā€œLā€ and ā€œnon Lā€ models. Have you tested the url passed to the camera in a browser to see if it returns an image?