-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How does modem wake up from light sleep mode. #832
Comments
|
@EdwardRyu Of course, you can use any unused GPIO with input capability as the wakeup GPIO. maybe you can refer to your module datasheet for more details. |
Hi, I have issued following commands in order to put modem to light sleep mode.
Right after issuing those at commands, I could see some drops of current consumptions by modem from 120 mA to 48 mA. In this sleep mode,
Questions are : Q1) I am not sure whether if modem entered in light sleep mode or not. Could you guide how to check if modem is in light sleep mode or not? Q2) After it enters this mode, I mean the state where the modem consumes around 48 mA, sometimes the current consumption is varying from 48 to 80 mA, sometimes it keep lower values around 50mA. Q3) What is the range of current consumption by modem in light sleep mode? Q4) In this mode, when I send AT command from MCU to modem, I could get response from modem as usual. Q5) Regarding GPIO wakeup configuration, regardless of any GPIO number. I (416114) UART_TASK: at_port_write_data - len 22, data - at+SLEEPWKCFG=2,28,0 I (416115) UART_TASK: at_port_write_data - len 9, data - I (569871) UART_TASK: at_port_write_data - len 22, data - at+SLEEPWKCFG=2,12,0 [2024-05-24 16:33:28.735] [0] [ATT][MODM] AT+CWMODE=1 [2024-05-24 16:33:34.032] [2] [ATT][MODM] AT+CWJAP=,,,,,3 [2024-05-24 16:33:34.110] [8] [ATR][16,0x200004fc] [2024-05-24 16:35:35.220] [0] [ATT][MODM] AT+SLEEP=2 --> after this, we can issue any AT command and modem responds back as normal. Thanks, |
@EdwardRyu May i know which firmware you use? and would you mind trying to compile your firmware based on master branch. In generally: Q1If the average current of your module is less than 5mA, it should have entered in light-sleep. During light-sleep, AT is not able to respond the AT commands normally. Q2I don't think your module have entered light-sleep mode. Q3We did not provide a guarantee for a range of average current values. But as a test, during the light-sleep, the average current should be less than 5mA. The data about auto light-sleep, you can refer to this doc, see the
Q4esp-at does not respond to any AT commands during light-sleep. I don't think your module have entered light-sleep mode. Q5You can use any unused GPIO with input capability as the wakeup GPIO.
~ |
@EdwardRyu We sincerely apologize that esp-idf has not yet optimized the power consumption for Ethernet usage. This means that when Ethernet is enabled, the module may not be able to enter light-sleep, resulting in relatively higher power consumption. If this feature is essential for your product, we kindly suggest submitting detailed requirements to esp-idf issue. |
Answers checklist.
General issue report
Hello,
Our product is using below version.
HW :
[ESP32-WROVER-E]
SW
IDF-v4.4.4
ADF-V2.5
AT-v2.4.0.0
I have a couple of questions about sleep mode as follows.
Thanks,
Edward
The text was updated successfully, but these errors were encountered: