FocusBracket icon indicating copy to clipboard operation
FocusBracket copied to clipboard

Focusing isn't detected on RX100 MK4 after startOneShotFocusDrive

Open androdev88 opened this issue 8 years ago • 9 comments

FocusDriveListener is only triggered when changing focus by moving ring but isn't fired when startOneShotFocusDrive is used it might be because RX100IV has integrated lenses and ring isn't mechanically bound with lenses. As a result, it gets stuck on "Focusing...".

It seems that Bracket Pro uses: shiftFocusPosition

private void handleShutterCallbackFocus(int var1) {
        ++this.mShutterCount;
        int var2 = BackUpUtil.getInstance().getPreferenceInt(BracketMasterBackUpKey.TAG_CURRENT_FOCUS_RANGE, 2);
        BMEEState.isBMCautionStateBooted = true;
        if(var2 == 2) {
            this.mPictureRangeSteps = 4;
        } else if(var2 == 1) {
            this.mPictureRangeSteps = 2;
        } else if(var2 == 0) {
            this.mPictureRangeSteps = 1;
        }

        var2 = this.mPictureRangeSteps;
        int var3 = this.mPictureRangeSteps;
        switch(this.mShutterCount) {
        case 1:
            this.mCameraEx.shiftFocusPosition(this.mPictureRangeSteps);
            this.mCameraEx.cancelTakePicture();
            this.mCameraEx.burstableTakePicture();
            return;
        case 2:
            this.mCameraEx.shiftFocusPosition(-(var2 + var3));
            this.mCameraEx.cancelTakePicture();
            this.mCameraEx.burstableTakePicture();
            return;
        case 3:
            this.lockWhiteBalanceSetting(false);
            this.lockExposureSetting(false);
            this.enableNextCapture(var1);
            this.mShutterCount = 0;
            return;
        default:
        }
    }```

androdev88 avatar Jul 03 '16 03:07 androdev88

I can't get shiftFocusPosition to do anything except freeze the app.

obs1dium avatar Jul 05 '16 19:07 obs1dium

Same Issue with RX10 III it seems. Stuck at focusing (although the focu changes onces ans then doesn't change anymore)

glitchtracker avatar May 22 '17 21:05 glitchtracker

However it's certainly possible because Sony's very lame Bracket Pro, can drive the focus to 3 different values

glitchtracker avatar May 22 '17 22:05 glitchtracker

Where does that code fragment of Bracket Pro come from? Is the complete source code available, by any chance?

pdykmans avatar Oct 17 '17 15:10 pdykmans

You can purchase the Sony app and then run it through a decompiler of your choice.

obs1dium avatar Oct 18 '17 09:10 obs1dium

same here ... RX100 MK4 hangs after "focusing"

ar8001 avatar Oct 22 '17 14:10 ar8001

I just installed the app and have the same issue. were you able to make it work on RX100M4?

stdestro avatar Jul 24 '19 05:07 stdestro

I also have a RX10M3 and for me it behaves like that: It lets me choose near and far focus, then it does the countdown and afterwards moves the focus as close to the camera as possible (I think, it's very blurry). I found that when I rotate the focus ring I can adjust the focus but only for a short time, the camera "works against" my attempts at focusing. However, if I move the ring fast enough I can get the app to take pictures. Not good for taking an actual focus stack but perhaps that info is useful for debugging?

Here's my log file, please let me know if I can do any tests to help debug this.

LOG.TXT

Thank you for writing this program, it works nicely on my A7R2 with a Zeiss 55/1.8 lens.

abrock avatar Aug 30 '19 17:08 abrock

RX100M5 - Freezes on Focussing and then times camera Turns off.

DonalOL avatar Dec 08 '20 08:12 DonalOL