User Tools

Site Tools


articles:pentax_k-1_wifi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
articles:pentax_k-1_wifi [2016/11/17 22:51] – props moritzarticles:pentax_k-1_wifi [2016/11/17 23:16] (current) – [Extracting the APK] moritz
Line 16: Line 16:
   adb pull /data/app/com.ricohimaging.imagesync-2/base.apk .   adb pull /data/app/com.ricohimaging.imagesync-2/base.apk .
  
 +See the second half of [[http://android.stackexchange.com/a/75436/34272]] for good instructions.
 ==== ARC Welder ==== ==== ARC Welder ====
  
Line 103: Line 104:
 </code> </code>
  
 +==== /v1/changes ====
  
 +  GET /v1/changes HTTP/1.1
  
 +This command is used to upgrade the connection to websocket.
 +
 +==== /v1/photos ====
 +
 +  GET /v1/photos?storage=sd1 HTTP/1.1
 +List the photos on SD1.
 +<code javascript>
 +{"errCode": 200,
 + "errMsg": "OK",
 + "dirs": [
 + {
 + "name": "100_1112",
 + "files": [ "IMGP1774.JPG", "IMGP1774.PEF"]
 + },
 + {
 + "name": "101_1113",
 + "files": [ "IMGP1775.JPG", "IMGP1775.PEF"]
 + },
 + {
 + "name": "102_1117",
 + "files": [ "IMGP1856.JPG"]
 + }
 + ]
 +}
 +</code>
 +
 +==== /v1/photos/... ====
 +
 +  GET /v1/photos/102_1117/IMGP1856.JPG?size=thumb&storage=sd1 HTTP/1.1
 +Reads a specific thumbnail image from the SD card. The camera replies with a HTTP 200 OK and sends a jpeg encoded image.
 +
 +  GET /v1/photos/102_1117/IMGP1857.JPG?size=view&storage=sd1 HTTP/1.1
 +Reads a larger resolution image from the SD card.
 +
 +  GET /v1/photos/102_1117/IMGP1857.JPG/info?storage=sd1 HTTP/1.1
 +Get meta information on an image.
 +<code javascript>
 +{"errCode": 200,
 + "errMsg": "OK",
 + "captured": true,
 + "dir": "102_1117",
 + "file": "IMGP1857.JPG",
 + "av": "4.0",
 + "sv": "200",
 + "xv": "0",
 + "tv": "1.8",
 + "orientation": 1,
 + "cameraModel": "PENTAX K-1",
 + "latlng": "47.000000,8.000000",
 + "datetime": "2016-11-17T23:00:00"}
 +</code>
 +
 +==== /v1/liveview ====
 +
 +  GET /v1/liveview HTTP/1.1
 +Seems to initiate live viewing. It didn't really work in the app.
 +
 +==== /v1//lens/focus ====
 +
 +  POST /v1/lens/focus HTTP/1.1
 +Parameters are ''pos=52,52''. I think they refer to where the focus point is set. The camera sends the following reply:
 +<code javascript>
 +{"errCode": 200,
 + "errMsg": "OK",
 + "focused": true,
 + "focusCenters": [],
 + "focusEffectiveArea": [70,64]}
 +</code>
 +
 +==== /v1/camera/shoot ====
 +
 +  POST /v1/camera/shoot HTTP/1.1
 +Parameters are ''af=off''. It shoots a picture.
 +<code javascript>
 +{"errCode": 200,
 + "errMsg": "OK",
 + "focused": true,
 + "focusCenters": [],
 + "focusEffectiveArea": [70,64],
 + "captured": false}
 +</code>
 +
 +==== /v1/params/camera ====
 +
 +  PUT /v1/params/camera HTTP/1.1
 +Sets various camera paramters. Here are some examples:
 +  sv=auto
 +  xv=0.0
 +
 +Without form encoded data, it replies:
 +<code javascript>
 +{"errCode": 200,
 + "errMsg": "OK",
 + "avList": [ "4.0", "4.5", "5.0", "5.6", "6.3", "7.1", "8.0", "9.0", "10", "11", "13", "14", "16", "18", "20", "22", "25", "29"],
 + "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.6400", "1.8000"],
 + "svList": ["auto", "100", "200", "400", "800", "1600", "3200", "6400", "12800", "25600", "51200", "102400", "204800"],
 + "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": "4.0",
 + "tv": "1.40",
 + "sv": "800",
 + "xv": "0.0",
 + "WBMode": "auto",
 + "shootMode": "single",
 + "exposureMode": "U1",
 + "stillSize": "L3",
 + "movieSize": "FHD30p",
 + "effect": "cim_natural",
 + "filter": "off",
 + "timerExposure": false}
 +</code>
 +
 +==== /v1/photos/latest/... ====
 +
 +  GET /v1/photos/latest/info?storage=sd1 HTTP/1.1
 +Gets information about the latest picture. Camera replies
 +<code javascript>
 +{"errCode": 200,
 + "errMsg": "OK",
 + "captured": true,
 + "dir": "102_1117",
 + "file": "IMGP1857.JPG",
 + "av": "4.0",
 + "sv": "200",
 + "xv": "0",
 + "tv": "1.8",
 + "orientation": 1,
 + "cameraModel": "PENTAX K-1",
 + "latlng": "47.000000,8.000000",
 + "datetime": "2016-11-17T23:20:17"}
 +</code>
articles/pentax_k-1_wifi.1479419508.txt.gz · Last modified: 2016/11/17 22:51 by moritz

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki