GET POWER STATE

Role

Read the device's current power state.

Access condition

Free.

Command

Field Value
CLA 58 (CONTROL)
INS 20 (GET_DATA)
Data BB (GET POWER STATE)

Response

If STA=00 (success):

Field Content
Data Power state (2 or 3 bytes)

Response data

Bytes Bit Content
0 Capabilities
7 0 : No battery
1 : The device has a battery; 3rd byte is present and GET BATTERY STATE is available
3-6 RFU
2 0 : No POE
1 : The device may be powered by the network (POE)
1 0 : No USB
1 : The device may be powered by USB
0 0 : No external power
1 : The device may be powered by an external power source
1 Current status
7 0 : The device is not running on its battery
1 : The device is running on battery (no other power source is present)
3-6 RFU
2 0 : POE absent
1 : Network power (POE) is present
1 0 : USB power (VBUS) absent
1 : USB power (VBUS) is present
0 0 : External power absent
1 : External power is present
2 Battery and charger status (present only if the device has a battery)
6-7 RFU
4-5 00 : the status of the battery can't be determined for sure (try again later)
01 : the battery is discharging
10 : the battery is charging
11 : the battery is full
2-3 RFU
1-0 00 : the category of the USB power source can't be determined for sure
01 : the USB power source is a host computer (the device is enumerated)
10 : the USB power source is a charger
11 : the USB power source is a fast-charge capable charger