Select your printer model

Parameters are refined by the selected printer.

verifyUpdate


Compares the firmware of the connected printer with the firmware image specified by updateFirmware.

Execute this API after executing updateFirmware, and confirm that the printer firmware has been overwritten by the firmware image specified in updateFirmware.

The processing result of this API is notified to the listener method specified in the listener parameter.

Syntax

 
public void verifyUpdate(FirmwareInfo targetFirmwareInfo, FirmwareUpdateListener listener) throws Epos2Exception

Parameter

targetFirmwareInfo

Specifies the firmware image version that you want to apply to the printer from the list acquired by downloadFirmwareList.

Specifies the same firmware image as the one specified by the targetFirmwareInfo parameter of updateFirmware.

listener

Registers the listener method that returns the processing result of this API.

 
- (void) onUpdateVerify:(int)code;
  • code
    The processing result is stored.
  • Error status

    Description

    CODE_SUCCESS

    Processed successfully.

    CODE_ERR_DIFFERENT_MODEL

    The compatible model of the firmware image specified in targetFirmwareInfo differs from the model name of the connected printer.

    CODE_ERR_DIFFERENT_VERSION

    The version of the firmware image specified in targetFirmwareInfo differs from the firmware version of the connected printer.

    CODE_ERR_PARAM

    An invalid parameter was passed.

    CODE_ERR_MEMORY

    Memory necessary for processing could not be allocated.

    CODE_ERR_TIMEOUT

    Processing did not complete within the specified time period.

    CODE_ERR_DATA_CORRUPTED

    The firmware image is corrupt.

    CODE_ERR_PROCESSING

    Could not run the process.

    CODE_ERR_ILLEGAL

    This API was called while no communication had been started.

    CODE_ERR_FAILURE

    An unknown error occurred.

Exception

When the process fails, Epos2Exception with one of the following error value occurs.

Error status

Description

ERR_PARAM

An invalid parameter was passed.
This API was called before updateFirmware was executed.

ERR_FAILURE

An unknown error occurred.

Supplementary explanation

  • This API can be used in an environment where it can connect to both the Internet and a printer.
  • This API cannot be used simultaneously with other APIs.
    After executing this API, do not execute any other API until the callback is returned.
  • Do not turn off the power supply to the printer while executing this API.
  • This API can be used in the system configuration of the TM printer model and customer display model.
    With the system configuration of the TM Printer + DM-D + barcode scanner model, this API can be used when connecting via Bluetooth or USB.
  • This API cannot be used with SSL/TLS communication.
  • Connect to only Printer class when executing this API.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

Epson ePOS SDK includes patented or patent pending functions. The contents must not be disclosed to third parties.


Epson ePOS SDK for Android

Jump to the top