Forgot Password
Pentax Camera Forums Home
 
Log in or register to remove ads.

Showing results 1 to 3 of 3 Search:
Forum: Pentax K-S1 & K-S2 07-09-2015, 01:15 AM  
K-S2 wifi with laptop?
Posted By petrkouda
Replies: 78
Views: 31,570
Hi!

I had tested the latest code of the app under linux. Test was done on Ubuntu 15.04, code from latest git commit was compiled in MonoDevelop with Release configuration.
Compilation logged only 12 warnings and most features of the app except liveview worked. When liveview was activated it triggered constant activation and deactivation of liveview in camera. When wrong ShootMode was selected and "Take a picture" was clicked app froze for a moment and then crashed.
Following features works without problem:
- get properties from camera,
- set properties to camera,
- take a picture in single shot mode without lifewiew,
- get list of photos from camera,
- get image from camera.

So, for app written in .NET without any tweaking it is quite usable under Linux.

Best regards
Petr Kouda
Forum: Pentax K-S1 & K-S2 06-22-2015, 12:11 PM  
K-S2 wifi with laptop?
Posted By petrkouda
Replies: 78
Views: 31,570
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// (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
Forum: Pentax K-S1 & K-S2 06-02-2015, 11:57 AM  
K-S2 wifi with laptop?
Posted By petrkouda
Replies: 78
Views: 31,570
Today I tried to log communication between my new K-S2 and Image sync app with SandroProxy. After few minutes of testing I discovered following:

K-S2 has web server on port 80. Results from that server are send as JSON.

GET request on http://192.168.0.1/v1/props returns JSON with camera settings.
GET request on http://192.168.0.1/v1/photos returns JSON with list of content of inserted SD-card.
GET request on http://192.168.0.1/v1/liveview turns on camera liveview, returns image from it and start continuous reload. After closing of that page liveview is switched of.
POST request on http://192.168.0.1/v1/camera/shoot with parametr af=off or af=auto triggers a photo capture.

I home that my findings help someone.

Best regards
Petr Kouda
Search took 0.00 seconds | Showing results 1 to 3 of 3

 
Forum Jump


All times are GMT -7. The time now is 04:52 AM. | See also: NikonForums.com, CanonForums.com part of our network of photo forums!
  • Red (Default)
  • Green
  • Gray
  • Dark
  • Dark Yellow
  • Dark Blue
  • Old Red
  • Old Green
  • Old Gray
  • Dial-Up Style
Hello! It's great to see you back on the forum! Have you considered joining the community?
register
Creating a FREE ACCOUNT takes under a minute, removes ads, and lets you post! [Dismiss]
Top