Magic Mouse and Trackpad battery voltage
Magic Mouse and Trackpad battery voltage
- Subject: Magic Mouse and Trackpad battery voltage
- From: Jack Starmer <email@hidden>
- Date: Tue, 26 Oct 2010 07:36:38 -0500
- Importance: Normal
Hello!
I am the developer of a dashboard widget that displays the battery status for the Magic Mouse, Magic Trackpad, and wireless keyboard (MightyMonitor). I grab the data from ioreg, but this is problematic for several reasons:
1) ioreg isn't always current (especially when a new device is connected). 2) the "BatteryPercent" as calculated by the driver (I assume it is the driver) is inaccurate depending on several factors. Here is a table of NiMH batteries, measured voltage (by me), and the ioreg indicated BatteryPercent:
Voltage |
Mouse |
Trackpad |
2.424 |
30% |
7% |
2.474 |
34% |
9% |
2.512 |
41% |
15% |
2.518 |
43% |
25% |
2.572 |
49% |
51% |
2.782 |
73% |
100% |
2.848 |
81% |
100% |
2.896 |
87% |
100% |
If the table doesn't render correctly on the email list, the point is there are dramatically different discharge curves indicated by the trackpad and the mouse. The mouse is more accurate, but is off at the high and low end. The trackpad indicates 100% charge until the battery is nearly 30% drained, and then drops like a rock. I would like to display more accurate calculated approximations of battery remaining and have been working on an obj-c "widgetplugin" to grab battery status (hopefully battery voltage) from the magic mouse, trackpad, and wireless keyboard. I have been unable to find documentation on how to grab such a value or where it is stored. I assume it is possible to get the voltage, because the apple drivers are able to display an approximation of battery %. Is there a way I can grab battery voltage, or some other parameter I can use in creating estimates of battery %?
Thanks for any help you can provide!
Jack
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden