Skip to main content

IOTAUpgradeManager

interface IOTAUpgradeManager

Description: OTA upgrade management class. Obtain the OTA manager through OTAUpgradeManger.getInstance(); OTA online upgrade is applicable for conducting within the Autel Enterprise APP built in the remote controller.


method addUpgradeVersionListener

fun addUpgradeVersionListener(l: OTAUpgradeManger.UpgradeVersionListener)

Description: Register upgrade information monitor

Input parameters: l: upgrade information monitor

Output parameters: None。

Related parameters: OTAUpgradeManger.UpgradeVersionListener。

method removeUpgradeVersionListener

fun removeUpgradeVersionListener(l: OTAUpgradeManger.UpgradeVersionListener)

Description: Unregister upgrade information monitor

Input parameters: l: upgrade information monitor

Output parameters: None。

Related parameters: OTAUpgradeManger.UpgradeVersionListener。

method switchUpgradeMode

fun switchUpgradeMode(enter: Boolean)

Description: Turn on or off the aircraft upgrade mode; for aircraft upgrade, increase the bandwidth for uploading the OTA file, and switch whether it is successful through the callback of UpgradeVersionListener

Input parameters: enter: open or close

Output parameters: None。

Related parameters: None。

method registerRemoterAutoUpgradeListener

fun registerRemoterAutoUpgradeListener(listener: RemoterAutoUpgradeWrapper.RemoterAutoUpgradeListener)

Description: Monitor the self-upgrade status of the remote controller, mainly by inserting the SDCard to upgrade the offline package

Input parameters: listener: state monitor interface RemoterAutoUpgradeWrapper.RemoterAutoUpgradeListener

Output parameters: None。

Related parameters: RemoterAutoUpgradeWrapper.RemoterAutoUpgradeListener。

method unRegisterRemoterAutoUpgradeListener

fun unRegisterRemoterAutoUpgradeListener()

Description: Cancel the monitoring of the self-upgrade of the remote controller

Input parameters: None。

Output parameters: None。

Related parameters: None。

method registerDeviceRecoveryListener

fun registerDeviceRecoveryListener(listener: DeviceRecoveryWrapper.DeviceRecoveryListener)

Description: Monitoring of the consistency verification of the software versions of each module of the aircraft

Input parameters:

listener: Monitoring : DeviceRecoveryWrapper.DeviceRecoveryListener

Output parameters: None。

Related parameters: None。

method unRegisterDeviceRecoveryListener

fun unRegisterDeviceRecoveryListener()

Description: Cancel monitoring of the consistency verification of the software versions of each module of the aircraft

Input parameters: None。

Output parameters: None。

Related parameters: None。

method startDroneComponentRecover

un startDroneComponentRecover(deviceId:Int)

Description: Start the module software version recovery and monitor the recovery status through DeviceRecoveryListener

Input parameters:

deviceId:Aircraft deviceId

Output parameters: None。

Related parameters: None。