Host Protocols Direct Protocol CONTROL class Queries GET DATA POWER STATE
September 27, 2024 at 6:14 AMGET POWER STATE
This instance of the GET DATA instruction reads the device’s current power state.
To access this instruction, invoke GET DATA (INS=20
) with DATA=BB
Response data
Bytes | Bit | Content |
---|---|---|
0 | Capabilities | |
7 | 0 : No battery1 : The device has a battery; 3rd byte is present and GET BATTERY STATE is available |
|
3-6 | RFU | |
2 | 0 : No POE1 : The device may be powered by the network (POE) |
|
1 | 0 : No USB1 : The device may be powered by USB |
|
0 | 0 : No external power1 : The device may be powered by an external power source |
|
1 | Current status | |
7 | 0 : The device is not running on its battery1 : The device is running on battery (no other power source is present) |
|
3-6 | RFU | |
2 | 0 : POE absent1 : Network power (POE) is present |
|
1 | 0 : USB power (VBUS) absent1 : USB power (VBUS) is present |
|
0 | 0 : External power absent1 : 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 discharging10 : the battery is charging11 : the battery is full |
|
2-3 | RFU | |
1-0 | 00 : the category of the USB power source can’t be determined for sure01 : the USB power source is a host computer (the device is enumerated)10 : the USB power source is a charger11 : the USB power source is a fast-charge capable charger |