I wouldn't mess with the warning levels or attempt to detect the battery geometry. The actual warning levels are contained in the ROM and I guess could be altered by Palm or a licensee. I'd imagine its even possible for levels to vary from model to model. What I've done in the past is to detect the first low power warning and allow my application to shut down the serial port and clean up. Then let the Palm handle the warning. If you let your app to continue to drain power after the 1st warning, you could make your customer loose their data. And we don't want that. If you shut down after the first warning, the Palm could last for days if not weeks in the low power mode to retain data. At least this way, you won't have to worry about variations from model to model or ticked off customers should they loose data using your product.
----- Original Message ----- From: "Petra Bergler" <[EMAIL PROTECTED]> Newsgroups: palm-dev-forum To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Monday, January 21, 2002 11:10 AM Subject: SysBatteryInfo > Hi ! > > Does anybody have experiences with the SysBatteryInfo function ? > My application communicates via RS232 to a little machine and collects data > from it. Because of the RS232 communication the battery state might rapidly > fall and the user needs to know how long he can go on. I found the > SysBatteryInfo function but I have a few questions on it: > - does the function recognize the differences between normal batteries and > rechargable batteries ? > - what about old rechargable batteries ? do they still give the right values > to the function ? > - what about palms with internal lithium-ion-batteries ? > - what about the memory effect ? > > => are the returned function values correct - every time ? > > Thanks for any help ! > _____ > PE|RA > > > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
