Select your printer model

Parameters are refined by the selected printer.

getPrinterFirmwareInfo


Acquires the firmware information for the connected printer.

The firmware information acquired by this API is notified to the listener method specified in the listener parameter.

Syntax

 
public void getPrinterFirmwareInfo(int timeout, FirmwareUpdateListener listener) throws Epos2Exception

Parameter

timeout

Specifies the timeout period before acquisition of firmware information is complete in milliseconds.

Value

Description

Integer from 15000 to 60000

Timeout period (in milliseconds)

EPOS2_PARAM_DEFAULT

Specifies the default value (30000).

listener

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

 
- (void) onReceiveFirmwareInformation(FirmwareInfo firmwareInfo);
  • firmwareInfo
    The firmware information for the connected printer is stored.

Exception

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

Error status

Description

ERR_PARAM

An invalid parameter was passed.

ERR_MEMORY

Memory necessary for processing could not be allocated.

ERR_TIMEOUT

Processing did not complete within the specified time period.

ERR_FAILURE

An unknown error occurred.

ERR_PROCESSING

Could not run the process.

ERR_ILLEGAL

This API was called while no communication had been started.

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