MC65 Battery Level Programatically

// Expert user has replied.
P Peter McWha 3 years 7 months ago
6 5 0

On an MC65, how does one determine the current battery level in VB.NET? Symbol.MT2000.Utils.BatteryState.Level returns -1.

Please Register or Login to post a reply

5 Replies

P Peter McWha

OK, just ran an extended test and determined that on an MC65, regardless of the battery state of discharge, StateOfHealthEx value is constantly zero.

I ran the battery down and the value is still zero.

So either there is a bug in the MC65, or, StateOfHealthEx is not the answer.

R Ritesh Gupta

Hi,

Look at Symbol.ResourceCoodination namespace and the SmartBatteryStatus class.  There is a property there for StateOfHealthEx.

Also here is latest version of EMDK: https://portal.motorolasolutions.com/Support/US-EN/Resolution?solutionI…

P Peter McWha

RG:

On my system, Symbol.ResourceCoordination.SmartBatteryStatus has only two functions: Equals, and ReferenceEquals.  There are no properties and so no StateOfHealthEx property.

P Peter McWha

Except that, on a fully charged battery, the interface reports a StateOfHealthEx value of zero.  Or is this supposed to be the percentage of charge USED and not REMAINING?

P Peter McWha

RG:

Aaargh, my bad.

One has to declare an instance of the class first, as in:

sbs = New Symbol.ResourceCoordination.SmartBatteryStatus
myuint = sbs.StateOfHealthEx

I've marked your answer "correct".  Thank you for the help.

CONTACT
Can’t find what you’re looking for?