Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focusing isn't detected on RX100 MK4 after startOneShotFocusDrive #8

Open
androdev88 opened this issue Jul 3, 2016 · 9 comments
Open

Comments

@androdev88
Copy link
Contributor

androdev88 commented Jul 3, 2016

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:
        }
    }```
@obs1dium
Copy link
Owner

obs1dium commented Jul 5, 2016

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

@glitchtracker
Copy link

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

@glitchtracker
Copy link

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

@pdykmans
Copy link

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

@obs1dium
Copy link
Owner

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

@ar8001
Copy link

ar8001 commented Oct 22, 2017

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

@stdestro
Copy link

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

@abrock
Copy link

abrock commented Aug 30, 2019

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.

@DonalOL
Copy link

DonalOL commented Dec 8, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants