PINE64
PinePhone Keyboard Doesn't charge? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Accessories (https://forum.pine64.org/forumdisplay.php?fid=123)
+--- Thread: PinePhone Keyboard Doesn't charge? (/showthread.php?tid=15881)

Pages: 1 2 3


RE: PinePhone Keyboard Doesn't charge? - grump_fiddle_reinstall - 01-31-2022

(01-30-2022, 03:23 PM)VaZso Wrote: This is because phone needs aproximately all of the supplied 500 mA of current to work, so practically it can not really charge the battery if that is the limit while phone needs less energy when it is suspended and it allows battery to charge.

OK so if I understand correctly, the phone battery discharges as the connection between it and the keyboard battery is limited to 500 mA. So even though there is enough juice in the keyboard battery and the keyboard battery is connected to a mains charger the phone battery discharges.

This can easily be tested by running the battery down to a certain level, then sleeping the phone. If there is still sufficient charge in the keyboard battery then while the phone is suspended then the phone battery will be charged by the keyboard battery.

OK I let the PinePhone suspend itself at around 87%. An hour or so later I woke it up an the charge was 92%. The keyboard was not connected to a charger so the only thing that could have charged the phone battery is the keyboard battery. So I guess time to experiment with changing the charging current value.


RE: PinePhone Keyboard Doesn't charge? - VaZso - 01-31-2022

(01-31-2022, 10:09 AM)grump_fiddle_reinstall Wrote: OK so if I understand correctly, the phone battery discharges as the connection between it and the keyboard battery is limited to 500 mA. So even though there is enough juice in the keyboard battery and the keyboard battery is connected to a mains charger the phone battery discharges.

It is not really the connection what limits the current (it is mostly depends on the width of PCB traces) but the USB specification itself.
For an USB 2.0 port, basically a device can draw up to 500 mA of current and not more (otherwise it may cause problems like blowing a fuse or overdrive PSU).

So this is where charging protocols may come up or at least charger should tell the phone somehow if it can provide higher current.

However, keyboard only has five connectors - SDA/SCL/VCC/GND/INT, so basically it can not communicate directly with charging controller.
So that is what can be overridden by the method above, but not for any power sources which can not provide this amount of current.

That means a real solution would be an automatism... I don't know what is the internal schematics of keyboard, so what information of its microcontroller has.
Ideally, it may has some information which may be communicated towards OS.
...or at least OS knows keyboard is attached and if it is, it may set higher current rate when current limit is set to 500 mA.

However, it is also an interesting question what happens if phone's own USB connector is powered but it depends on the circuit(s)... it may has to be handled somehow even if this scenario is not supported... (I hope internal PSU may not overrun this case).