Xinyuan-LilyGO / LilyGo-T-SIM7080G

42 stars 22 forks source link

PWRKEY PIN #12

Closed wenjun1972 closed 1 year ago

wenjun1972 commented 1 year ago

Hi,

What is the PWRKEY pin ? 7080G pinout tells GPIO41 for PWR, is it correct one?

I expect to set the PSM mode and wake up the modem by pulling LOW from HIGH, but I read the status of that PIN is always LOW.

Thanks,

Jun

lewisxhe commented 1 year ago

PWRKEY is the power on function pin of PMU, which is not physically connected to ESP32

wenjun1972 commented 1 year ago

Can you point to me any example code to pull low this function pin to exit from PSM status ?

From: Lewis He @.> Date: Tuesday, May 2, 2023 at 8:11 AM To: Xinyuan-LilyGO/LilyGo-T-SIM7080G @.> Cc: Jun Wen @.>, Author @.> Subject: Re: [Xinyuan-LilyGO/LilyGo-T-SIM7080G] PWRKEY PIN (Issue #12)

PWRKEY is the power on function pin of PMU, which is not physically connected to ESP32

— Reply to this email directly, view it on GitHubhttps://github.com/Xinyuan-LilyGO/LilyGo-T-SIM7080G/issues/12#issuecomment-1531652198, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACJN5STRIKEEF7XUR7DRI63XEEP2BANCNFSM6AAAAAAXRI3W2A. You are receiving this because you authored the thread.Message ID: @.***>

lewisxhe commented 1 year ago

Sorry, I misunderstood, PWRKEY exists and it is connected to IO41, you wake up from PSM mode, you need to pull down PWRKEY, there is a level conversion circuit in the hardware, so you need to set IO41 to HIGH, this When PWRKEY will be LOW

lewisxhe commented 1 year ago

If you still have problems, please reopen

ibethcompany commented 1 year ago

Hello, I'm using the battery and when the battery runs out or I remove the battery from the board and return it, the program does not start, I have to press the physical PWR button on the board for it to work...

Is there any way to make it so that when the battery dies or I remove it and put it back in, the program will work normally again without having to press the PWR button on the board?

Thank you very much @lewisxhe

lewisxhe commented 1 year ago

If you need to connect the battery to automatically power on, it cannot be done on the current hardware

Another way is to modify the hardware. You need to connect the PMU_IRQ and GND in the picture below. At this time, the battery will be connected to the computer and it will automatically start up. However, the disadvantage is that the interrupt signal of the PMU cannot be used. image