[Trac #1408] LiFePo batteries does not indicate /sys/class/battery/psu-0/technology

Zarro Boogs per Child bugtracker at laptop.org
Sun May 6 23:32:49 EDT 2007


#1408: LiFePo batteries does not indicate /sys/class/battery/psu-0/technology
---------------------------------+------------------------------------------
 Reporter:  jg                   |        Owner:  David.Lin
     Type:  defect               |       Status:  new      
 Priority:  normal               |    Milestone:  BTest-4  
Component:  embedded controller  |   Resolution:           
 Keywords:                       |  
---------------------------------+------------------------------------------
Comment (by David.Lin):

 The batteries types are in the gas gauge address 0x5f.
 Please use command 0x18 to read batteries types.
 Example (read_battery_id.sh):
         ./iorwb 0x6c 0x18               // Read gas gauge
         ./iorwb 0x68 0x5f               // Read address 0x5f
         ./iorwb 0x68                    // return batteries types
 (the scripts do not check the IBF and OBF bits in the 6c status register,
 so their correct operation depends on timing assumptions that are not
 guaranteed)

 Batteries types define as following:
 (1)NiMH (GP)
    The battery type is 0x11.

 (2)LiFePO4 (BYD)
    The battery type is 0x22.

 (3)LiFePO4 (GP )
    The battery type is 0x12.

-- 
Ticket URL: <http://dev.laptop.org/ticket/1408#comment:1>
One Laptop Per Child <http://laptop.org/>



More information about the Bugs mailing list