Class FirmwareUpdater
- java.lang.Object
-
- com.heisha.heisha_sdk.Component.EdgeComputing.FirmwareUpdater
-
public class FirmwareUpdater extends java.lang.Object
Firmware upgrade tool for T100 and K100.- Version:
- 1.0
- Author:
- Wmy
-
-
Constructor Summary
Constructors Constructor Description FirmwareUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFirmwareFileSize()
Get the firmware size of the current update.int
getReceivedSize()
Get the firmware size currently receivedFirmwareUpdateState
getUpdateState()
Get the current update status.void
setFirmwareFileSize(int firmwareFileSize)
void
setReceivedSize(int receivedSize)
void
setUpdateState(FirmwareUpdateState updateState)
void
upgradeForCAN(java.lang.String filePath, java.lang.String fileName)
Update the firmware of CAN interface module.void
upgradeForT100(java.lang.String filePath, java.lang.String fileName)
Update the firmware of the T100 module.
-
-
-
Method Detail
-
getUpdateState
public FirmwareUpdateState getUpdateState()
Get the current update status.- Returns:
- updating status
-
setUpdateState
public void setUpdateState(FirmwareUpdateState updateState)
-
getFirmwareFileSize
public int getFirmwareFileSize()
Get the firmware size of the current update.- Returns:
- in bytes.
-
setFirmwareFileSize
public void setFirmwareFileSize(int firmwareFileSize)
-
getReceivedSize
public int getReceivedSize()
Get the firmware size currently received- Returns:
- in bytes
-
setReceivedSize
public void setReceivedSize(int receivedSize)
-
upgradeForT100
public void upgradeForT100(java.lang.String filePath, java.lang.String fileName)
Update the firmware of the T100 module.- Parameters:
filePath
- Path to the firmware file on the serverfileName
- File name of the firmware
-
upgradeForCAN
public void upgradeForCAN(java.lang.String filePath, java.lang.String fileName)
Update the firmware of CAN interface module.- Parameters:
filePath
- Path to the firmware file on the serverfileName
- File name of the firmware
-
-