summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/21/changes
diff options
context:
space:
mode:
authoryuanhuihui <yuanhuihui@xiaomi.com>2016-09-12 10:34:53 +0800
committeryuanhuihui <yuanhuihui@xiaomi.com>2016-09-18 09:33:39 +0800
commit9d8f51cbae05135848bea4b9b4b41793ae126e28 (patch)
tree5469e647ef589e2abad88495652473b59c7c522e /docs/html/sdk/api_diff/21/changes
parentf7c508ae09ad9dce600af23572d3d618c9ff8475 (diff)
fix wrong algorithm in WifiPowerPerPacket()
step1: PowerProfile.POWER_WIFI_ACTIVE represents energy consumption(mAh) per hour devied by 3600, then WIFI_POWER ==> energy consumption(mAh) per second step2: WIFI_BPS represents 1000000 bit per second then (double)WIFI_BPS) / 8 ==> 1000000/8 Byte per second step3: as upload and download, so divided by 2; then (((double)WIFI_BPS) / 8 / 2048)) ==> 1000000/8/2048 KB per second ==> packet per second (where 1 packet = 2 KB) so WIFI_POWER / (((double)WIFI_BPS) / 8 / 2048) represents mAh per Packet where 1 packet = 2 K. when divided by (60*60) again , that make WifiPowerEstimator narrow 3600 times. Change-Id: Ic055a5145b6dfb1129c8969826329a3024c9e2b6 Signed-off-by: yuanhuihui <yuanhuihui@xiaomi.com>
Diffstat (limited to 'docs/html/sdk/api_diff/21/changes')
0 files changed, 0 insertions, 0 deletions