Mobile-SDK-iOS icon indicating copy to clipboard operation
Mobile-SDK-iOS copied to clipboard

DJILens setISO error -1005 for H20 - M300

Open federiconicoli opened this issue 4 years ago • 3 comments

I'm trying to change H20 ISO to automatic but it fails. The exposure mode is program (also I cannot change it, see https://github.com/dji-sdk/Mobile-SDK-iOS/issues/457) so according to the documentation I should be able to change the ISO to automatic. I'm doing:

camera.lenses.first { $0.lensType == .wide }.setISO(.isoAuto) { error in
    if let error = error {
        print("Error setting ISO: \(error.localizedDescription)")
    }
}

It prints: Error setting ISO: The parameters are invalid. Please review and submit the request. (code: -1005)

DJI SDK: 4.14 Matrice 300 RTK: V02.02.0301 Zenmuse H20: V02.02.0100

Any ideas?

Thank you!

federiconicoli avatar Apr 26 '21 21:04 federiconicoli

Agent comment from Luce Luo in Zendesk ticket #47029:

Dear Customer,

Thank you for contacting DJI. Please try to check if the H20 supported the range of the ISORange first.

Thanks,

Luce Luo DJI Developer Support

added by Git-Zen

dji-dev avatar Apr 27 '21 09:04 dji-dev

isoRange returns [2, 3, 4, 5, 6, 7, 8] if a try to set any of those values like .ISO6400 it fails with DJI SDK has come across unknown error code(217). Please update SDK or contact DJI Developer....

federiconicoli avatar Apr 27 '21 14:04 federiconicoli

Agent comment from Luce Luo in Zendesk ticket #47029:

Dear Customer,

Thank you for contacting DJI. I see. In fact, the Wide lens is not supported to set to Manual mode, and the not support to set the iso value, always is auto. And the Zoom lens supports the P and M mode, switch to the M mode to set the iso. Also can see this logic in DJI Pilot App.

Thanks,

Luce Luo DJI Developer Support

°°°

dji-dev avatar Apr 28 '21 07:04 dji-dev