Class FirmwareUpdater


  • public class FirmwareUpdater
    extends java.lang.Object
    Firmware upgrade tool for T100 and K100.
    Version:
    1.0
    Author:
    Wmy
    • Constructor Detail

      • FirmwareUpdater

        public FirmwareUpdater()
    • Method Detail

      • getUpdateState

        public FirmwareUpdateState getUpdateState()
        Get the current update status.
        Returns:
        updating status
      • 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 server
        fileName - 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 server
        fileName - File name of the firmware