Both sides previous revisionPrevious revisionNext revision | Previous revision |
articles:pentax_k-1_wifi [2016/11/17 21:58] – [/v1/photos/...] moritz | articles:pentax_k-1_wifi [2016/11/17 22:16] (current) – [Extracting the APK] moritz |
---|
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 ==== |
| |
| |
GET /v1/photos/102_1117/IMGP1856.JPG?size=thumb&storage=sd1 HTTP/1.1 | GET /v1/photos/102_1117/IMGP1856.JPG?size=thumb&storage=sd1 HTTP/1.1 |
Reads a specific image from the SD card. The camera replies with a HTTP 200 OK and sends a jpeg encoded image. | 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 /v1/photos/102_1117/IMGP1857.JPG/info?storage=sd1 HTTP/1.1 |
</code> | </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> |