1. Knowledge Base
  2. Test Solutions
  3. GRL-USB-PD-C2 / C2-EPR Automation Test Browser Application

How to Get Battery Status Response

Upon receipt of the Battery status message from the DUT, the GRL-USB-PD-C2 / C2-EPR tester hardware will check the mentioned fields are set by DUT as per specifications below. 

For example, if the DUT sends the Battery status message and fields are set as per below image, then Bit [8-15] is a Battery Info field which is a 8 BIT.  

When you decode 5 in the case of Binary [8 BIT], you will get as below:

 According to the CTS, the GRL-USB-PD-C2 / C2-EPR tester will check as follows:

PASS Case Scenario:

As seen in the example below, the decoded image BIT 0 of the Battery info field is set to 1 and BIT 1 is set to 0. Hence it is considered as PASS according to the CTS.

FAIL Case Scenario:

As seen in the example below, the decoded image BIT 0 of the Battery info field is set to 1 and BIT 1 is also set to 1. This does not follow the CTS and thus it is considered as FAIL.