I don't know if there's a programmatic way to disable charging on the Android. What you *can* do, however, is detect the power fault condition and put the phone to sleep. It should take very little current at this mode, assuming the battery was previously fully charged.
On Fri, Feb 7, 2014 at 7:49 AM, fabrio pellegrinetti <[email protected]>wrote: > > hello to all. > during the development of my home automation project, I came across the > problem of the power supply of Android and ioio which must be separated. > my board provide power supply of 14V 2A with a transformer 220V to 14V > and one backup battery of 1200mAh and 12V recharged from the transformer. > When the the power line is off, the battery must supply power at the ioio, > but he mustn't to the android. > For now I use Y split cable power supply double USB A and one usb micro. > > Micro usb connected to the android, first usb to ioio and second usb to > another standard android power supply. the poteziometer Vbus is set to > minimum in accord to the usb debug survey. > Problem is when the system goes on battery the an amount of mA goes to > the standard android power supply and this reduce backup battery charge > What I would like is to be able to check the current Vbus, from java code > from a ioio embedded digital potenziometer. > > so when detect power failure, I can dinamically reduce Vbus current. > > thanks > best regards > > fabrio > > -- > You received this message because you are subscribed to the Google Groups > "ioio-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/ioio-users. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "ioio-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/ioio-users. For more options, visit https://groups.google.com/groups/opt_out.
