New Member Join Date: Jun 2015 Location: Prague | Originally posted by czielke Hello Petr,
I could confirm your Urls to access the Camera functions. (Except there is no difference between af=off and af=auto?)
But there must be some more urls. I would like to write a little C#.net program to access the camera from Windows, but I need the missing urls.
Here are the funftions I like to implement in my program:
* Setting the parameters
* download the pictures (I think i it is http://192.168.0.1/photos/<folder>/<picturefilename>)
* loading thumbnails of the pictures for a quick list with previews)
* setting the focus-point (Like touching on the livepreview)
Unfortunally it was not possible for me to setup a cenario to capture network traffic with wireshark. I tryed with an emulator (Andyroid) but it didn't work.
Could you check for the missing urls, or send me the capture file?
Thanks Hello czielke,
even testing with Sandro proxy capturing all traffic is problematic because some functions doesn't work through proxy. So I mainly get only URL from proxy log and than test it by sending different parameters to it using cURL. After todays tests I can confirm that URL for downloading images is http://192.168.0.1/v1/photos/<folder>/<picturefilename> ( http://192.168.0.1/v1/photos/103_2006/IMGP0698.JPG) similar to your suggestion.
Configuration of shooting setting is done using PUT request on http://192.168.0.1/v1/params/camera . After sending successful request, it returns JSON with actual settings and lists of options for some of settings. Output is here: Code: {"errCode": 200, "errMsg": "OK", "avList": [], "tvList": [ "30.1", "25.1", "20.1", "15.1", "13.1", "10.1", "8.1", "6.1", "5.1", "4.1", "3.1", "25.10", "2.1", "16.10", "13.10", "1.1", "8.10", "6.10", "5.10", "4.10", "3.10", "1.4", "1.5", "1.6", "1.8", "1.10", "1.13", "1.15", "1.20", "1.25", "1.30", "1.40", "1.50", "1.60", "1.80", "1.100", "1.125", "1.160", "1.200", "1.250", "1.320", "1.400", "1.500", "1.640", "1.800", "1.1000", "1.1250", "1.1600", "1.2000", "1.2500", "1.3200", "1.4000", "1.5000", "1.6000"], "svList": ["auto", "100", "125", "160", "200", "250", "320", "400", "500", "640", "800", "1000", "1250", "1600", "2000", "2500", "3200", "4000", "5000", "6400", "8000", "10000", "12800", "16000", "20000", "25600", "32000", "40000", "51200"], "xvList": [ "+5.0", "+4.7", "+4.3", "+4.0", "+3.7", "+3.3", "+3.0", "+2.7", "+2.3", "+2.0", "+1.7", "+1.3", "+1.0", "+0.7", "+0.3", "0.0", "-0.3", "-0.7", "-1.0", "-1.3", "-1.7", "-2.0", "-2.3", "-2.7", "-3.0", "-3.3", "-3.7", "-4.0", "-4.3", "-4.7", "-5.0"], "exposureModeOption": "", "state": "idle", "av": "22", "tv": "30.1", "sv": "2000", "xv": "0.0", "WBMode": "auto", "shootMode": "continuousH", "exposureMode": "TV", "stillSize": "L3", "movieSize": "FHD30p", "effect": "cim_bright", "filter": "off"} Request parameter names are same as in the previous output (av,tv,sv,...). Possible values for av parameter are in avList of the output, for tv in tvList and so on.
Best Regards
Petr
|