SlideShare a Scribd company logo
1 of 37
Power consumption
HW-4
TEAM CSIE
陳顥文 P76034305
Requirement
• 針對以下幾種components 在不同state下的耗電量進行實測,
• components: WiFi chipset, Cellular Radio, Bluetooth, GPS, Display,
CPU。
• change states (OFF/ON, idle/full power, low/high brightness, etc.),
• https://source.android.com/devices/tech/power.html#screen-power
• 請利用表格呈現測量結果,並附上每個測試的command及步驟為
何。
• 作業請於下下次上課4/9號前,上傳到moodle。
Device
• Sony Z Ultra C6833 LTE version with official 4.4.4 ROM
• 2.20GHz Qualcomm Snapdragon 800
• Elpida LPDDR2 RAM
• 6.4” 1080*1920
• Daily use applications load and run.
Implement
• Problem1:
• TA gives link which using getLongProperty Methods and
BATTERY_PROPERTY_CURRENT_NOW are not support before API 21
• Solve1:
• Direct to read system file,
• # cat /sys/class/power_supply/battery/current_now
• Value unit is Nano Amp.
• Different Model may have different file path.
http://stackoverflow.com/questions/2439619/getting-the-battery-current-values-for-the-android-phone
Measure App – Global current
• CurrentWidget: Battery Monitor
• https://play.google.com/store/apps/details?id=com.manor.currentwidget
• 3 Second record current_now
• 10 times(a half min)
CPU test
Measure App – CPU test
• CPU-Z
• Make sure every core speed.
• Antutu CPU Master
• Adjust core speed.
• In Air plant Mode.
• Turn off monitor.
CPU – Prevent/Allow suspend test
• Disable suspend.
• # echo temporary > /sys/power/wake_lock
• Enable suspend.
• # echo temporary > /sys/power/wake_unlock
CPU – Prevent/Allow suspend test
-22
-27
-24 -25 -26
-20
-15
-36
-26
-15
-4 -5 -4 -4
-49
-4 -4 -4 -5 -5
-60
-50
-40
-30
-20
-10
0
CPU No/Have suspend test
CPU no suspend CPU suspend
No suspend Avg: -23.6mA
Suspend Avg: -8.8mA
CPU – Available frequency
CPU – Max frequency
• echo userspace >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
• echo 2150400>
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
• echo 2150400 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
• echo 2150400 >
/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
CPU – Max frequency
• Using Antutu CPU Master.
• Fix CPU frequency to 2150.4Mhz.
• Chose Performance mode.
CPU – Max utility
• Using loop.
• while true; do true; done
• Using multiple Terminal to control CPU Usage
core.
CPU – Monitor real frequency
• CPU-Z to make sure CPU utility status &
frequency.
CPU – CPU Core power consumption test
-422 -370 -375
-562
-425 -396 -366 -373 -400 -366
-698
-595 -568 -592 -595 -567 -568
-790
-570 -571
-812 -811 -810 -813 -818 -817 -816 -814 -825 -808
-964
-1129 -1155
-936
-825
-989
-1056
-1150 -1097
-829
-1400
-1200
-1000
-800
-600
-400
-200
0
CPU @ 2.15Ghz with different core test
CPU 2.15G 1CORE CPU 2.15G 2CORE CPU 2.15G 3 CORE CPU 2.15G Full load
1 Core: -405.5mA 2 Core: -611.4mA
3 Core: -814.4mA 4 Core: -1013mA
Monitor
Monitor
• Disable Auto brightness control.
• Test min/max backlit.
• Set backlit at Android build-in setting interface.
• Set CPU Frequency to min(300Mhz), ondemand mode.
• Using Google Calendar App.
• Turn off monitor.
Monitor – Backlit consumption test
-215 -216 -215 -209 -208 -213 -211 -210 -211 -212
-499 -505 -485 -484 -486 -483 -484 -478
-520 -485
-800
-700
-600
-500
-400
-300
-200
-100
0
1 2 3 4 5 6 7 8 9 10
Monitor backlit test
Min backlit Max backlit
Min backlit: -212mA
Max backlit: -490.9mA
WiFi
WiFi
• Inherit monitor test setting.
• Open monitor, min backlit.
WiFi – Scan &
Disconnect
• Using WiFi analyzer to
stay scanning.
• Using Network Signal
Info Pro to see signal
strength.
• Stay at Google
Calendar App.
WiFi – Scan & Disconnect
-248
-622
-439 -466
-520
-249 -248 -290
-247 -247-207 -210 -227
-398
-841
-667
-219 -236 -216 -218
-1000
-800
-600
-400
-200
0
WiFi Scan&Disconnect test
Scan Disconnect
Scan: -357.6mA
Disconnect: -343.9mA
WiFi – Connected & Active
• Using SpeedTest App to test.
• Connect @ 802.11n mode @ 72Mbps.
• Still stay in Google Calendar App due to
render Speedtest App is consumption
more power.
• Test twice, 8.21/6.01 and 28.99/7.62
are similar power consumption.
WiFi – Connected IDLE & Active test
-214 -214 -212 -211
-271
-222 -213 -234 -223 -261
-630
-423 -407
-260
-469
-857
-780
-691
-278 -260
-1000
-800
-600
-400
-200
0
1 2 3 4 5 6 7 8 9 10
WiFi Connected IDLE/Active test
Connected - IDLE Connected - Active
Connected – IDLE: -227.5mA
Connected – Active: -505.5mA
WiFi – Connected Active test
with iPerf test1
• To get high speed and power consumption
test.
• Avg test result: 18.5Mbit/s
• Stay in iPerf Apps. (may consumption more
power due to refresh monitor)
WiFi – Connected Active test with iPerf
-862
-710
-638 -610
-392
-570
-699
-781
-655
-791
-1000
-800
-600
-400
-200
0
Connected - Active with Iperf
Connected – Active with Iperf: -670.8mA
Bluetooth
Bluetooth – BT 2.0 & BT 4.0
• Inherit monitor test setting.
• Connect Creative T3150 BT 2.0 speaker.
• Connect Motorola 360 BT 4.0 SmartWatch.
• Stay in Google Calendar App.
Bluetooth – BT 2.0 & BT 4.0 test
-248
-233
-256
-241
-207 -216 -208
-235 -235
-261
-209 -213 -218 -211
-256
-217
-234
-213 -215 -211
-225 -227 -232
-275
-237 -235
-264
-224
-240 -235
-300
-250
-200
-150
-100
-50
0
1 2 3 4 5 6 7 8 9 10
BT Test
Disconnect Connect to BT 2.0 Connect to BT 4.0
Disconnect: -234mA
Connect to BT 2.0: -219.7mA
Connect to BT 4.0: -239.4mA
Cellular
Cellular
• Inherit monitor test setting.
• ISP: CHT
• Using Speedtest App to Active Cellular.
• Stay in Google Calendar App.
Cellular
• Using Network Signal Pro
to check signal status.
Cellular – HSPA+ & LTE
-217 -215 -216 -255 -234 -241 -212 -214
-293
-210-246 -212
-276 -283 -298 -274 -273
-221
-311
-246
-643
-578
-526
-617
-540 -556 -526 -558
-328
-281
-216 -249
-331
-209 -232 -225 -217 -217
-282
-335
-273
-457
-596
-718
-415
-302
-364
-506
-798
-515
-1000
-800
-600
-400
-200
0
1 2 3 4 5 6 7 8 9 10
Cellular test
Without MobileData HSPA+ HSPA+ Active LTE LTE Active
Without MobileData: -230.7mA
HSPA+: -264mA HSPA+ Active: -515.3mA
LTE: -251.3mA LTE Active: -494.4mA
GPS
• Inherit monitor test setting.
• Using “GPS狀態” App.
• Stay in GPS狀態 App.
• This app active light and Gyro and
Magnetic field sensor together,
consumption value may Inaccurate.
GPS – Locating & Located
-254
-585 -562
-787 -762
-582-550
-403
-239
-887
-547
-490
-787
-654
-545
-490
-1000
-800
-600
-400
-200
0
GPS test
GPS Locating GPS Located
GPS Locating: -588.667mA
GPS Located: -559.2mA
-1200
-1000
-800
-600
-400
-200
0
Total Avg
About this slide
• Author: Nathaniel Chen @ NCKU
• ar801112usase@hotmail.com
• Last update:2015/04/19 1702 v1.4

More Related Content

Similar to Hw 4 power consumption

Outdoor 4G LTE CPE Installation Guide
Outdoor 4G LTE CPE Installation GuideOutdoor 4G LTE CPE Installation Guide
Outdoor 4G LTE CPE Installation GuideTerence Yong
 
Intel speed-select-technology-base-frequency-enhancing-performance
Intel speed-select-technology-base-frequency-enhancing-performanceIntel speed-select-technology-base-frequency-enhancing-performance
Intel speed-select-technology-base-frequency-enhancing-performanceVijaianand Sundaramoorthy
 
Biến tần Rockwell - tài liệu tổng quan biến tần PowerFlex
Biến tần Rockwell - tài liệu tổng quan biến tần PowerFlexBiến tần Rockwell - tài liệu tổng quan biến tần PowerFlex
Biến tần Rockwell - tài liệu tổng quan biến tần PowerFlexLong Trump
 
Smart guard lamp solar energy wifi cctv
Smart guard lamp solar energy wifi cctvSmart guard lamp solar energy wifi cctv
Smart guard lamp solar energy wifi cctvYoungTae (Henry) Huh
 
How to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting PerformanceHow to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting Performancerickschwar
 
Performance Tuning Oracle Weblogic Server 12c
Performance Tuning Oracle Weblogic Server 12cPerformance Tuning Oracle Weblogic Server 12c
Performance Tuning Oracle Weblogic Server 12cAjith Narayanan
 
booting-booster-final-20160420-0700
booting-booster-final-20160420-0700booting-booster-final-20160420-0700
booting-booster-final-20160420-0700Samsung Electronics
 
Bluetooth based home automation system
Bluetooth based home automation systemBluetooth based home automation system
Bluetooth based home automation systemVeer Singh shakya
 
Microsoft Word - johnwaterhousei
Microsoft Word - johnwaterhouseiMicrosoft Word - johnwaterhousei
Microsoft Word - johnwaterhouseiJohn Waterhouse
 
15.) cloud (opex, capex or hybrid)
15.) cloud (opex, capex or hybrid)15.) cloud (opex, capex or hybrid)
15.) cloud (opex, capex or hybrid)Jeff Green
 
Hardware and Software Co-optimization to Make Sure Oracle Fusion Middleware R...
Hardware and Software Co-optimization to Make Sure Oracle Fusion Middleware R...Hardware and Software Co-optimization to Make Sure Oracle Fusion Middleware R...
Hardware and Software Co-optimization to Make Sure Oracle Fusion Middleware R...Intel IT Center
 
Viewpoint_PnP.ppt
Viewpoint_PnP.pptViewpoint_PnP.ppt
Viewpoint_PnP.pptAmit yadav
 
WIZnet Inc Overview
WIZnet Inc OverviewWIZnet Inc Overview
WIZnet Inc OverviewAndrewPark84
 
6 profiling tools
6 profiling tools6 profiling tools
6 profiling toolsvideos
 
Datasheet EnGenius EWS360AP
Datasheet EnGenius EWS360APDatasheet EnGenius EWS360AP
Datasheet EnGenius EWS360APEnGenius Europe
 
Efficient Overclocking Experiment
Efficient Overclocking ExperimentEfficient Overclocking Experiment
Efficient Overclocking ExperimentJosh Mullis
 
Cambium network ptp 800 series 05 00 system release note
Cambium network ptp 800 series 05 00 system release noteCambium network ptp 800 series 05 00 system release note
Cambium network ptp 800 series 05 00 system release noteAdvantec Distribution
 

Similar to Hw 4 power consumption (20)

Outdoor 4G LTE CPE Installation Guide
Outdoor 4G LTE CPE Installation GuideOutdoor 4G LTE CPE Installation Guide
Outdoor 4G LTE CPE Installation Guide
 
Intel speed-select-technology-base-frequency-enhancing-performance
Intel speed-select-technology-base-frequency-enhancing-performanceIntel speed-select-technology-base-frequency-enhancing-performance
Intel speed-select-technology-base-frequency-enhancing-performance
 
Biến tần Rockwell - tài liệu tổng quan biến tần PowerFlex
Biến tần Rockwell - tài liệu tổng quan biến tần PowerFlexBiến tần Rockwell - tài liệu tổng quan biến tần PowerFlex
Biến tần Rockwell - tài liệu tổng quan biến tần PowerFlex
 
Smart guard lamp solar energy wifi cctv
Smart guard lamp solar energy wifi cctvSmart guard lamp solar energy wifi cctv
Smart guard lamp solar energy wifi cctv
 
How to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting PerformanceHow to Lower Android Power Consumption Without Affecting Performance
How to Lower Android Power Consumption Without Affecting Performance
 
Performance Tuning Oracle Weblogic Server 12c
Performance Tuning Oracle Weblogic Server 12cPerformance Tuning Oracle Weblogic Server 12c
Performance Tuning Oracle Weblogic Server 12c
 
booting-booster-final-20160420-0700
booting-booster-final-20160420-0700booting-booster-final-20160420-0700
booting-booster-final-20160420-0700
 
Bluetooth based home automation system
Bluetooth based home automation systemBluetooth based home automation system
Bluetooth based home automation system
 
Microsoft Word - johnwaterhousei
Microsoft Word - johnwaterhouseiMicrosoft Word - johnwaterhousei
Microsoft Word - johnwaterhousei
 
15.) cloud (opex, capex or hybrid)
15.) cloud (opex, capex or hybrid)15.) cloud (opex, capex or hybrid)
15.) cloud (opex, capex or hybrid)
 
MCB_HL_v10.pdf
MCB_HL_v10.pdfMCB_HL_v10.pdf
MCB_HL_v10.pdf
 
Cma5000a gige
Cma5000a   gigeCma5000a   gige
Cma5000a gige
 
Hardware and Software Co-optimization to Make Sure Oracle Fusion Middleware R...
Hardware and Software Co-optimization to Make Sure Oracle Fusion Middleware R...Hardware and Software Co-optimization to Make Sure Oracle Fusion Middleware R...
Hardware and Software Co-optimization to Make Sure Oracle Fusion Middleware R...
 
Viewpoint_PnP.ppt
Viewpoint_PnP.pptViewpoint_PnP.ppt
Viewpoint_PnP.ppt
 
project seminor
project seminorproject seminor
project seminor
 
WIZnet Inc Overview
WIZnet Inc OverviewWIZnet Inc Overview
WIZnet Inc Overview
 
6 profiling tools
6 profiling tools6 profiling tools
6 profiling tools
 
Datasheet EnGenius EWS360AP
Datasheet EnGenius EWS360APDatasheet EnGenius EWS360AP
Datasheet EnGenius EWS360AP
 
Efficient Overclocking Experiment
Efficient Overclocking ExperimentEfficient Overclocking Experiment
Efficient Overclocking Experiment
 
Cambium network ptp 800 series 05 00 system release note
Cambium network ptp 800 series 05 00 system release noteCambium network ptp 800 series 05 00 system release note
Cambium network ptp 800 series 05 00 system release note
 

Recently uploaded

Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceIES VE
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxMarkSteadman7
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data SciencePaolo Missier
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaWSO2
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformWSO2
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfdanishmna97
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 

Recently uploaded (20)

Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Hw 4 power consumption

  • 2. Requirement • 針對以下幾種components 在不同state下的耗電量進行實測, • components: WiFi chipset, Cellular Radio, Bluetooth, GPS, Display, CPU。 • change states (OFF/ON, idle/full power, low/high brightness, etc.), • https://source.android.com/devices/tech/power.html#screen-power • 請利用表格呈現測量結果,並附上每個測試的command及步驟為 何。 • 作業請於下下次上課4/9號前,上傳到moodle。
  • 3. Device • Sony Z Ultra C6833 LTE version with official 4.4.4 ROM • 2.20GHz Qualcomm Snapdragon 800 • Elpida LPDDR2 RAM • 6.4” 1080*1920 • Daily use applications load and run.
  • 4. Implement • Problem1: • TA gives link which using getLongProperty Methods and BATTERY_PROPERTY_CURRENT_NOW are not support before API 21 • Solve1: • Direct to read system file, • # cat /sys/class/power_supply/battery/current_now • Value unit is Nano Amp. • Different Model may have different file path. http://stackoverflow.com/questions/2439619/getting-the-battery-current-values-for-the-android-phone
  • 5. Measure App – Global current • CurrentWidget: Battery Monitor • https://play.google.com/store/apps/details?id=com.manor.currentwidget • 3 Second record current_now • 10 times(a half min)
  • 7. Measure App – CPU test • CPU-Z • Make sure every core speed. • Antutu CPU Master • Adjust core speed. • In Air plant Mode. • Turn off monitor.
  • 8. CPU – Prevent/Allow suspend test • Disable suspend. • # echo temporary > /sys/power/wake_lock • Enable suspend. • # echo temporary > /sys/power/wake_unlock
  • 9. CPU – Prevent/Allow suspend test -22 -27 -24 -25 -26 -20 -15 -36 -26 -15 -4 -5 -4 -4 -49 -4 -4 -4 -5 -5 -60 -50 -40 -30 -20 -10 0 CPU No/Have suspend test CPU no suspend CPU suspend No suspend Avg: -23.6mA Suspend Avg: -8.8mA
  • 10. CPU – Available frequency
  • 11. CPU – Max frequency • echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor • echo 2150400> /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq • echo 2150400 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq • echo 2150400 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
  • 12. CPU – Max frequency • Using Antutu CPU Master. • Fix CPU frequency to 2150.4Mhz. • Chose Performance mode.
  • 13. CPU – Max utility • Using loop. • while true; do true; done • Using multiple Terminal to control CPU Usage core.
  • 14. CPU – Monitor real frequency • CPU-Z to make sure CPU utility status & frequency.
  • 15. CPU – CPU Core power consumption test -422 -370 -375 -562 -425 -396 -366 -373 -400 -366 -698 -595 -568 -592 -595 -567 -568 -790 -570 -571 -812 -811 -810 -813 -818 -817 -816 -814 -825 -808 -964 -1129 -1155 -936 -825 -989 -1056 -1150 -1097 -829 -1400 -1200 -1000 -800 -600 -400 -200 0 CPU @ 2.15Ghz with different core test CPU 2.15G 1CORE CPU 2.15G 2CORE CPU 2.15G 3 CORE CPU 2.15G Full load 1 Core: -405.5mA 2 Core: -611.4mA 3 Core: -814.4mA 4 Core: -1013mA
  • 17. Monitor • Disable Auto brightness control. • Test min/max backlit. • Set backlit at Android build-in setting interface. • Set CPU Frequency to min(300Mhz), ondemand mode. • Using Google Calendar App. • Turn off monitor.
  • 18. Monitor – Backlit consumption test -215 -216 -215 -209 -208 -213 -211 -210 -211 -212 -499 -505 -485 -484 -486 -483 -484 -478 -520 -485 -800 -700 -600 -500 -400 -300 -200 -100 0 1 2 3 4 5 6 7 8 9 10 Monitor backlit test Min backlit Max backlit Min backlit: -212mA Max backlit: -490.9mA
  • 19. WiFi
  • 20. WiFi • Inherit monitor test setting. • Open monitor, min backlit.
  • 21. WiFi – Scan & Disconnect • Using WiFi analyzer to stay scanning. • Using Network Signal Info Pro to see signal strength. • Stay at Google Calendar App.
  • 22. WiFi – Scan & Disconnect -248 -622 -439 -466 -520 -249 -248 -290 -247 -247-207 -210 -227 -398 -841 -667 -219 -236 -216 -218 -1000 -800 -600 -400 -200 0 WiFi Scan&Disconnect test Scan Disconnect Scan: -357.6mA Disconnect: -343.9mA
  • 23. WiFi – Connected & Active • Using SpeedTest App to test. • Connect @ 802.11n mode @ 72Mbps. • Still stay in Google Calendar App due to render Speedtest App is consumption more power. • Test twice, 8.21/6.01 and 28.99/7.62 are similar power consumption.
  • 24. WiFi – Connected IDLE & Active test -214 -214 -212 -211 -271 -222 -213 -234 -223 -261 -630 -423 -407 -260 -469 -857 -780 -691 -278 -260 -1000 -800 -600 -400 -200 0 1 2 3 4 5 6 7 8 9 10 WiFi Connected IDLE/Active test Connected - IDLE Connected - Active Connected – IDLE: -227.5mA Connected – Active: -505.5mA
  • 25. WiFi – Connected Active test with iPerf test1 • To get high speed and power consumption test. • Avg test result: 18.5Mbit/s • Stay in iPerf Apps. (may consumption more power due to refresh monitor)
  • 26. WiFi – Connected Active test with iPerf -862 -710 -638 -610 -392 -570 -699 -781 -655 -791 -1000 -800 -600 -400 -200 0 Connected - Active with Iperf Connected – Active with Iperf: -670.8mA
  • 28. Bluetooth – BT 2.0 & BT 4.0 • Inherit monitor test setting. • Connect Creative T3150 BT 2.0 speaker. • Connect Motorola 360 BT 4.0 SmartWatch. • Stay in Google Calendar App.
  • 29. Bluetooth – BT 2.0 & BT 4.0 test -248 -233 -256 -241 -207 -216 -208 -235 -235 -261 -209 -213 -218 -211 -256 -217 -234 -213 -215 -211 -225 -227 -232 -275 -237 -235 -264 -224 -240 -235 -300 -250 -200 -150 -100 -50 0 1 2 3 4 5 6 7 8 9 10 BT Test Disconnect Connect to BT 2.0 Connect to BT 4.0 Disconnect: -234mA Connect to BT 2.0: -219.7mA Connect to BT 4.0: -239.4mA
  • 31. Cellular • Inherit monitor test setting. • ISP: CHT • Using Speedtest App to Active Cellular. • Stay in Google Calendar App.
  • 32. Cellular • Using Network Signal Pro to check signal status.
  • 33. Cellular – HSPA+ & LTE -217 -215 -216 -255 -234 -241 -212 -214 -293 -210-246 -212 -276 -283 -298 -274 -273 -221 -311 -246 -643 -578 -526 -617 -540 -556 -526 -558 -328 -281 -216 -249 -331 -209 -232 -225 -217 -217 -282 -335 -273 -457 -596 -718 -415 -302 -364 -506 -798 -515 -1000 -800 -600 -400 -200 0 1 2 3 4 5 6 7 8 9 10 Cellular test Without MobileData HSPA+ HSPA+ Active LTE LTE Active Without MobileData: -230.7mA HSPA+: -264mA HSPA+ Active: -515.3mA LTE: -251.3mA LTE Active: -494.4mA
  • 34. GPS • Inherit monitor test setting. • Using “GPS狀態” App. • Stay in GPS狀態 App. • This app active light and Gyro and Magnetic field sensor together, consumption value may Inaccurate.
  • 35. GPS – Locating & Located -254 -585 -562 -787 -762 -582-550 -403 -239 -887 -547 -490 -787 -654 -545 -490 -1000 -800 -600 -400 -200 0 GPS test GPS Locating GPS Located GPS Locating: -588.667mA GPS Located: -559.2mA
  • 37. About this slide • Author: Nathaniel Chen @ NCKU • ar801112usase@hotmail.com • Last update:2015/04/19 1702 v1.4

Editor's Notes

  1. Cpu properly period awake
  2. In disconnect, still have automatic scan happened