Sony DSLR/Mirrorless Camera Control (Part 2)

Continued from Part 1.

At this time, I’ve been able to map around half of the reported properties to their actual camera setting. I’ve deciphered the meaning of the different values for most of these. However, some values will be missing as my camera doesn’t allow me to use some of the possible values (i.e. Some of the flash settings appear permanently disabled on my camera – either that or they only become options when other settings are set “just so”)

Properties

Standard (PTP) Camera Properties

Sony only support a small number of these (at least on my camera)

Camera PropertyReadable
on a6400
Writable
on a6400

(some N’s
may become
Y’s soon)
Use
Battery Level
Functional Mode
Image Size
Compression SettingYYWhether camera is set to JPEG, RAW, or RAW+JPEG
White BalanceYYAuto, Daylight, Flash, Cloudy, etc
RGB Gain
F NumberYNF-Stop setting
Focal Length
Focal Distance
Focus ModeYNManual, AF-S, AF-C, etc
Exposure Metering ModeYNMetering Mode setting from camera
Flash ModeYNFill, Redeye, Rear-Sync, etc
Exposure Time
Exposure Program ModeYNAUTO, Movie, Panorama, M, P, etc
Exposure Index
Exposure Bias CompensationYN
Date Time
Capture Delay
Still Capture ModeYYSingle Shoot, Continuous, etc
Contrast
Sharpness
Digital Zoom
Effect Mode
Burst Number
Burst Interval
Timelapse Number
Timelapse Interval
Focus Metering Mode
Upload URL
Artist
Copyright Info

Sony Custom Properties

As you can see, there is a large number of properties still to be deciphered.

Camera PropertyReadable
on a6400
Writeable
on a6400
(some N’s
may become
Y’s soon)
Use
Flash CompensationYN
DRO Auto HDRYYOff, Auto
JPEG Image SizeYYS, M, L
Shutter SpeedYN
<unknown property>
Custom White BalanceYY
<unknown property>
Aspect RatioYY1:1, 3:2, 16:9
<unknown property>
Shutter Button StatusYNUp, Half Depressed, Fully Depresses
<unknown property>
Photo Buffer StatusYNReports status of internal processing when a photo is taken
Auto Exposure LockYY
BatteryYNPercentage Charge of battery
Flash Exposure LockYY
<unknown property>
<unknown property>
ApertureYNAperture setting (if lens reports it)
ISOYNCurrent ISO setting
<unknown property>
<unknown property>
<unknown property>
Focus AreaYYWide, Zone, Center, etc
Focus Assist ModeYNOff, On, Zoom
<unknown property>
Focus Assist ZoomYN1x, 5.9x, etc
Focus Assist CoordYNRelates to selection box position on screen
Live ViewYYOn, Off (enabled)
Focus Assist Size/AreaYRelates to selection box size on screen
<unknown property>
<unknown property>
<unknown property>
Auto White Balance LockYY
<unknown property>
<unknown property>
Shutter Half DownYYUsed to set “push button half down/engage auto-focus”
Shutter Full DownYYUsed to take photo
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>
<unknown property>

Setting/Updating Properties

The definition of a property includes data that describes (a) whether the property can be written to, and (b) what values are acceptable.

Enumeration

The property specifies a fixed list of “acceptable values” that it can be set to. A good example of this is the “Compression Setting” value. It can only be one of three values: RAW, JPEG, or RAW+JPEG.

Range

Range properties are trickier – they specify a lower limit, an upper limit, and a step size. The camera tends to use this type for properties that are more fluid in their list of possible values. Example properties that use this type are “ISO”, “F-Stop”, “Aperture”, “Shutter Speed”, etc. The camera doesn’t appear to allow setting of arbitrary values, and instead seems to force a simple next/previous type of setter. This means that operations such as changing to BULB shooting requires the “Shutter Speed” property to be set multiple times with the previous value until the reported shutter speed is “BULB”. Additionally, there appears to be a speed limit that these changes can be applied. (This actually mirrors the behavior of the Imaging Edge Remote software).