Xinyuan-LilyGO / LilyGo-T-SIM7080G

52 stars 26 forks source link

Battery not supplying power #88

Open sporkyduck opened 4 days ago

sporkyduck commented 4 days ago

Hi!

One of several SIM70G:s I have has stopped supplying power when the mechanical battery switch is turned on. When switch is off, battery is not detected with pmu.isBatteryConnect(), which is normal. When switch is on, battery is detected with seems to be correct level percent from pmu.getBatteryPercent(), ~100% at 4.16V. This is all while USB is connected. When I detach USB, power turns off.

Pressing PWR has once resultated in a very short startup try (GPS and modem LEDS came on) and but then off.

Is this a hardware or software issue, and how can I check?

Thanks!

lewisxhe commented 4 days ago

You said you have several machines, and one of them has this problem?

lewisxhe commented 4 days ago

Please turn on the switch, then connect the battery and test whether there is voltage here. image

sponsoredlinks commented 20 hours ago

Note we have the same issue with our T-SIM7080G v1.0

Was working the other day but strangely - with a battery in it would not power up until USB-C was inserted - would then run fine

Now it doesn't work with either battery or battery +USB

Voltage at the pin indicated in the picture is 4.050V

Is there anything else we can do to debug?

lewisxhe commented 17 hours ago

If there is voltage here, then the power supply has been connected to the PMU. Will pressing the PWR button not turn on the computer?

sponsoredlinks commented 16 hours ago

No, unfortunately not. We had just loaded the MinimalPowers reporting sketch and then tried the MinimalPowersCurrent.

We then reverted to the MinimalPowersExample. Then it didnt turn on two days later

We have tried pressing and holding each of the buttons

The issue with it being unable to power on with battery only (until you plug usb, but then staying on even after usb detach) is possibly related?

On Mon, 25 Nov 2024 at 18:53, Lewis He @.***> wrote:

If there is voltage here, then the power supply has been connected to the PMU. Will pressing the PWR button not turn on the computer?

— Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G/issues/88#issuecomment-2497136362, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABENQ5QTVHSOFP4NNOMJ3RD2CLJPXAVCNFSM6AAAAABSGPQ34CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJXGEZTMMZWGI . You are receiving this because you commented.Message ID: @.***>

lewisxhe commented 16 hours ago

Using MinimalPowersCurrentExample , press the PWR button. Does it print anything?

sponsoredlinks commented 16 hours ago

I dont believe we can get it to power on to load the example? Will try tomorrow and report back - thank you for the help

On Mon, 25 Nov 2024 at 20:08, Lewis He @.***> wrote:

Using MinimalPowersCurrentExample https://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G/blob/master/examples/MinimalPowersCurrentExample/MinimalPowersCurrentExample.ino , press the PWR button. Does it print anything?

— Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G/issues/88#issuecomment-2497344808, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABENQ5QRECCVGLK7GC7Z5H32CLSJLAVCNFSM6AAAAABSGPQ34CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJXGM2DIOBQHA . You are receiving this because you commented.Message ID: @.***>

sponsoredlinks commented 42 minutes ago

Thanks Lewis it turned out you were right

The examples have an endless loop at the start that waits for serial input to be connected

So if you just turn it on on battery, basically it waits endlessly for a serial connection and doesn't provide any signs of life until USB is plugged in and serial starts (eg via the IDE) -> https://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G/blob/master/examples/MinimalPowersExample/MinimalPowersExample.ino#L30

I may have missed it in the documentation but if not already there it might be worth making this obvious (or flashing the led perhaps :)

thanks