Select your printer model

Parameters are refined by the selected printer.

getStatus


Acquires the current status information.

Syntax

 
public PrinterStatusInfo getStatus ()

Return value

The current status is returned in the PrinterStatusInfo type.

The following status information is stored in the object as a property.

Stored status information can be acquired using the getter method of each property.

Printer status

Status

Description

connection:

Connection status

Printer.TRUE

Connected

Printer.FALSE

Status is unknown.

online:

Online status

Printer.TRUE

Online

Printer.FALSE

Offline

Printer.UNKNOWN

Status is unknown.

coverOpen:

Cover status

Printer.TRUE

Cover is open.

Printer.FALSE

Cover is closed.

Printer.UNKNOWN

Status is unknown.

paper:

Paper status

Printer.PAPER_OK

Paper remains.

Printer.PAPER_NEAR_END

Paper is running out.

Printer.PAPER_EMPTY

Paper has run out.

Printer.UNKNOWN

Status is unknown.

paperFeed:

Paper feed

Printer.TRUE

Paper feed in progress

Printer.FALSE

Stopped

Printer.UNKNOWN

Status is unknown.

panelSwitch:

Panel switch (Feed button) status

Printer.SWITCH_ON

Pressed

Printer.SWITCH_OFF

Not pressed

Printer.UNKNOWN

Status is unknown.

drawer:

Offline status due to the battery level (Mobile models)

Printer.DRAWER_HIGH

High

Printer.DRAWER_LOW

Low

Printer.UNKNOWN

Status is unknown.

drawer:

Drawer kick connector pin No.3 status (except for the Mobile models)

Printer.DRAWER_HIGH

High

Printer.DRAWER_LOW

Low

Printer.UNKNOWN

Status is unknown.

errorStatus:

Error status

Printer.NO_ERR

Normal

Printer.MECHANICAL_ERR

Mechanical error occurred.

Printer.AUTOCUTTER_ERR

Auto cutter error occurred.

Printer.UNRECOVER_ERR

Unrecoverable error occurred.

Printer.AUTORECOVER_ERR

Automatic recovery error occurred.

Printer.UNKNOWN

Status is unknown.

autoRecoverError:

Automatic recovery error status

Printer.HEAD OVERHEAT

Head overheat error

Printer.MOTOR OVERHEAT

Motor driver IC overheat error

Printer.BATTERY OVERHEAT

Battery overheat error

Printer.WRONG PAPER

Paper error

Printer.COVER_OPEN

Cover is open.

Printer.UNKNOWN

Unknown status

buzzer:

Buzzer sound status

Printer.TRUE

Sounding (Applicable printer only)

Printer.FALSE

Stopped (Applicable printer only)

Printer.UNKNOWN

Status is unknown.

adapter:

AC adapter connection status

Printer.TRUE

Connected

Printer.FALSE

Disconnected

Printer.UNKNOWN

Status is unknown.

batteryLevel:

Remaining battery capacity

Printer.BATTERY_LEVEL_6

Remaining battery capacity 6

Printer.BATTERY_LEVEL_5

Remaining battery capacity 5

Printer.BATTERY_LEVEL_4

Remaining battery capacity 4

Printer.BATTERY_LEVEL_3

Remaining battery capacity 3

Printer.BATTERY_LEVEL_2

Remaining battery capacity 2

Printer.BATTERY_LEVEL_1

Remaining battery capacity 1 (almost run out)

Printer.BATTERY_LEVEL_0

Remaining battery capacity 0 (run out)

Printer.UNKNOWN

Status is unknown.

removalWaiting:

Paper removal wait status

Printer.REMOVAL_WAIT_PAPER

Waiting for removal.

Printer.REMOVAL_WAIT_NONE

Not waiting for removal.

Printer.UNKNOWN

Status is unknown.

paperTakenSensor:

Paper removal sensor status

Printer.REMOVAL_DETECT_PAPER

The paper removal sensor is detecting paper.

Printer.REMOVAL_DETECT_PAPER_NONE

The paper removal sensor is not detecting paper.

Printer.REMOVAL_DETECT_UNKNOWN

A state that is not detectable by the paper removal sensor.

Printer.UNKNOWN

Status is unknown.

unrecoverError:

Unrecoverable error status

Printer.HIGH_VOLTAGE_ERR

High voltage error

Printer.LOW_VOLTAGE_ERR

Low voltage error

Printer.UNKNOWN

Status is unknown.

Supplementary explanation

  • This API is not executed on the main thread. Execute it on the sub-thread.
  • If this API is called while communication is not available, printer states other than "connection" will be set to "Printer.UNKNOWN."
  • The status object is set to the status at the timing of execution of this API and will not be updated.
  • To get the "adapter" or "batteryLevel" status, you need to enable transmission of power on/off and battery status using Epson TM Utility.
  • To get the "paperTakenSensor" status, you need to enable the "Paper Taken Sensor Status" setting using Epson TM Utility.
 

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