PW016 Module under Windows

From LEXWiKi

Revision as of 17:16, 17 April 2014 by Sylviachang (Talk | contribs)
Jump to: navigation, search

Contents

Introduction

PW016 Utility is battery monitor software for retrieving & auto-saving the battery information.
It could also protect the battery from overheating by the preset threshold value.

The Sample code source and Spec File you can download from

Source file: PW016_src_w(x86).zip PW016_src_w(x64).zip

Binary file: PW016_bin_w(x86).zip PW016_bin_w(x64).zip

Control IC spec file:bq2084-v143.pdf

Battery Data Flash info:Battery Data Flash Info

New Function of PW016 Utility v1.7

PW016 utility now can work in the background, which is the new function in version 1.7.

When you click the close button of the utility, it will hide into tray icon like below picture.
Image:pw016_icon.png

If you want to know some simple information of battery, you can move the cursor to tray icon, it will show the battery status.
Image:pw016_trayicon1.png

If you want to see the detail of battery, you can double-click the tray icon, PW016 utility will appear.
You can also click right button on tray icon and select "More Battery Info" to evoke PW016 utility.
Image:pw016_menu.jpg

How to use the DEMO Application

Error Code Table

ErrorCode = 2

System can't find necessary files.

ErrorCode = 3

System can't find corresponding path.

ErrorCode = 4

Utility may loss necessary files.

Solution: Check installation directory and files in directory are not moved/ removed.
For example, if using 32 bit version, check "WinIO.sys" and "WinIO.dll" exists or not. If using 64 bit version, check "LexIO64.sys" and "LexIO64.dll" exists or not.

ErrorCode = 5

Access denied.
Solution: If operation system is Windows 7, make sure to run utility as Administrator.

ErrorCode = 1275

The driver version doesn't match operating system.
Solution: If operating system is 32 bit version, checking the utility is also 32 bit version and vice versa.

edit table


常见的出错代码信息、原因和解决方法如下,如有增加的后续再补充: 【ErrorCode = 2】-系统找不到指定的文件。 【ErrorCode = 3】-系统找不到指定的路径。 【ErrorCode = 4】-系统无法打开文件。 检查安装路径是否正确,以及路径下相关文件是否被移动或删除。 X86系统下 WinIo.sys WinIo.dll X64系统下 LexIo64.sys LexIo64.dll 【ErrorCode = 5】-拒绝访问。 windows登陆用户是否具有管理员权限。 启动程序时是否使用以管理员身份运行。 【ErrorCode = 1275】-此驱动程序被阻止加载 检查windows系统和安装文件的版本是否一致,两者应均为x86或x64版本。

Check Battery Info

Image:pw016_demo.png

In order to retrieve the current battery information, please click the “Check Battery Info” and battery information will be refreshed as current status.

  • a.Battery Temperature.
  • b.Battery Current.
  • c.Battery Voltage.
  • d.Battery Status for Charge or Discharge.
  • e.Battery Status for Remaining capacity percent.
  • f.Battery remaining life time.
  • g.Battery Alarm Flag .
  • h.Battery Cycle Count :After battery fully charge and fully discharge one time, the cycle count will add 1.(As the picture you can see, cycle count is 11, that means the battery has fully charged 11 times and fully discharged 11 times)

Note 1:
The battery control IC will protect the battery base on the preset threshold value.
Please download file from above “Battery Data Flash Info” for further preset threshold information.

  • Over Charged:

Threshold = Full Charge Capacity + Maximum Over Chg.
The Over Charged and Terminate Charge warnings from Battery Alarm status will appear “Yes” when the value of full charge capacity + maximum over chg is greater than the set value of threshold and the charge action will be terminated.

  • Over Temperature:

The Over Temperature and Terminate Charge / Terminate Discharge warnings from Battery Alarm status will appear “Yes” when the value of full charge capacity + maximum over chg is greater than the set value of threshold and the charge / discharge action will be terminated.
For Charge Mode: Threshold = Chg Suspend Temp Hi (Ref, Battery Data Flash Info)
For Discharge Mode: Threshold = Over Temp Dsg (Ref, Battery Data Flash Info)

Note 2:
The value of the “Current” from the Battery Info may appear in positive or negative value depending on the Charge / Discharge mode.

Setup Long Time Monitor

Image:Setup-tmp.png

After click the “Battery Long Time Monitor” from the Battery Info (RED 2), user will enter the Long Time Monitor setup dialog box to configure the parameters for the battery event log.

  • A.Temperature Threshold: user can designate the preferred threshold value. The overheating event will be recorded in batterylog.txt once the battery temperature has exceeded the set threshold value.
  • B.“New temperature threshold value” will appear in RED C after clicked the “OK”.
  • D.The Over temperature warning will appear as shown below when the action of “Run User Temperature Threshold” has been activated and exceeded the temperature.

Image:otemp.png

  • E.The Battery Long Time Monitor will set to refresh & record the monitor values after the set interval value (minimum value is 30 sec).
  • F.Checked the button, it will detect battery life percent when starting long time monitor, and if the percent is lower than shutdown percent(Red F) which you set, it will shutdown automatically.
  • H.Activate the Battery Long Time Monitor (RED H) after complete the parameters and the event log will be saved as batterylog.txt under PW016_bin_w folder

Batterylog file as below picture as show
Image:batterylog.png
Image:pw016_refresh.png
(Battery Long Time Monitor has been activated.)

SDK Reference Code Introduction

int GotBatteryCurrent(void)
float GotBatteryTemperature(void)
int GotBatteryVoltage(void)
int GotBatteryLifePercent(void)
WORD GotBatteryLifeTime(void)
bool CPW016_UtilityDlg::Gotalarm(void)

Personal tools