如何计算功耗上使用无线网络的Andr​​oid手机? [英] how to calculate power consumption on an Android mobile that uses wifi?

查看:145
本文介绍了如何计算功耗上使用无线网络的Andr​​oid手机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经实现了一个使用无线(点对点)网络,以交换信息的是Android 1.6的移动路由协议。现在我想,以评估它在看的能源消耗点,基本是尝试计算浪费发送一个数据包的能量,做任何人有任何想法如何做到这一点?软件/硬件解决方案,欢迎!感谢名单:)

I have implemented a routing protocol on an Android 1.6 mobile that uses wireless (ad-hoc) network in order to exchange messages. Now I would like to evaluate it under an energy consumption point of view, the base would be to try to calculate the energy wasted to transmit a single packet, do anybody has any idea how to do that? Software/hardware solutions are welcome! Thanx :)

推荐答案

我不相信,任何应用程序会给你任何形式的有意义的结果。你真的需要寻找一个硬件解决方案,并且它可能会需要是自造的。

I don't believe that any application will give you any form of meaningful result. You really need to be looking at a hardware solution, and it will likely need to be home-brew.

的设置了,我已经使用的功率测量手机上包括以下内容:

The set-up I have used for power measurement on mobiles consists of the following:

  • 稳压电源:这应该是能够提供至少为3安培
  • 在抽样电流表。你可能会需要设计自己这一点,使用一个较小的值precision电阻和ADC测量在电阻上的压降(这将给你当前的)
  • 在该ADC可以是一个专用的采集卡 - 这些都是很容易从像RS的来源,根据您的位置。它可能希望有大约1kHz的采样率用于该应用程序。
  • 软件从ADC捕获数据。 NI公司的LabVIEW是最常用于这类应用。最体面的采集卡具有LabView的支持,虽然你可以使用任何你喜欢的。他们几乎都Ç的API以及
  • 甲虚设电池,使该结构连接到电话。要做到这一点最简单的方法通常是对垃圾真正的电池(小心,如​​果它的锂离子电池!)。

当您在设计系统时,请记住,遇到了一个小阻值的电阻上的压降为6或9伏的电源将是非常小的,所以你的ADC必须是pretty的敏感,你得到有意义的结果。

When you are designing the system, remember that the voltage drop across a small value resistor for a 6 or 9 volt supply will be very small, so your ADC needs to be pretty sensitive for you to get meaningful results.

一旦你拥有了这一切,你就可以观察到器件电流随时间。你会发现,这个变化远远超过你可能期望。这款手机将会开启和关闭各种电路的所有的时间。特别是,你会看到相当大的功率峰值正在访问蜂窝网络的时候。

Once you have all of this, you'll be able to observe device current over time. You will find that this varies far more than you may expect. The phone will be turning on and off all sorts of circuitry all of the time. In particular, you will see fairly large power peaks when the cellular network is being accessed.

在进行位的调查,你就可以看到在无线网络上电,并发送突发尤其如此。

After a bit of investigation, you'll be able to see when the WiFi is powered up, and the transmit bursts in particular.

祝你好运。

这篇关于如何计算功耗上使用无线网络的Andr​​oid手机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆