AT command for light-sleep

Honzik321
Posts: 31
Joined: Mon Apr 06, 2020 11:17 pm
Location: Czech Republic

AT command for light-sleep

Postby Honzik321 » Mon Apr 06, 2020 11:27 pm

Hello,

I'm planning to change from ESP8266 to ESP32 using AT commands for communication and light-sleep mode. Unfortunately, I didn't find light sleep settings in AT instruction set. Do you have some SDK including it?

Thank you,
Jan

Helen L
Posts: 71
Joined: Thu Aug 16, 2018 9:07 am

Re: AT command for light-sleep

Postby Helen L » Tue Apr 07, 2020 2:07 am

How about the AT+SLEEP command of the latest master? https://github.com/espressif/esp-at/blo ... nds_Set.md

Honzik321
Posts: 31
Joined: Mon Apr 06, 2020 11:17 pm
Location: Czech Republic

Re: AT command for light-sleep

Postby Honzik321 » Tue Apr 07, 2020 10:47 am

Thank you,
the bin files must be generated ?

I also found ESP32-WROOM-32 AT Bin V2.0 here
https://www.espressif.com/en/products/s ... t/resource

is the AT commands for light sleep included there ?

Honzik321
Posts: 31
Joined: Mon Apr 06, 2020 11:17 pm
Location: Czech Republic

Re: AT command for light-sleep

Postby Honzik321 » Tue Apr 07, 2020 11:31 pm

Hello,
I have installed esp-idf and clone https://github.com/espressif/esp-at.git, but I got following error, when run idf.py menuconfig. How to solve this problem ?

CMake Error at CMakeLists.txt:78 (if):
if given arguments:

"NOT" "7934980f360fccb52ccfd496c067d675f987fcc8" "EQUAL"

Unknown arguments specified


-- Configuring incomplete, errors occurred!
cmake failed with exit code 1

ESP_XCGuang
Posts: 25
Joined: Fri Aug 31, 2018 7:34 am

Re: AT command for light-sleep

Postby ESP_XCGuang » Wed Apr 08, 2020 3:44 am

Did you change any files in project? Which commit of the project do you use?

Honzik321
Posts: 31
Joined: Mon Apr 06, 2020 11:17 pm
Location: Czech Republic

Re: AT command for light-sleep

Postby Honzik321 » Wed Apr 08, 2020 8:22 am

Hello I didn't change any file in the project. I use last version of esp-at downloaded by "git clone https://github.com/espressif/esp-at.git" command yesterday. I use esp idf version 4.0.

Maybe some incompatibility in make programs, Python etc. ? I followed the link below, the example project "hello_world" works with the same command - idf.py menuconfig. Do you have any advice ?

https://docs.espressif.com/projects/esp ... index.html
Last edited by Honzik321 on Wed Apr 08, 2020 12:52 pm, edited 1 time in total.

ESP_XCGuang
Posts: 25
Joined: Fri Aug 31, 2018 7:34 am

Re: AT command for light-sleep

Postby ESP_XCGuang » Wed Apr 08, 2020 12:40 pm

Which version of cmake do you use? Mine is

cmake --version
cmake version 3.16.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).


And can you run sed command in your PC?
Please provide all log, maybe the following command fail

execute_process(COMMAND sed -n /commit:/p ${ESP_AT_MODULE_CONFIG_DIR}/IDF_VERSION
OUTPUT_VARIABLE idf_commit
OUTPUT_STRIP_TRAILING_WHITESPACE)

Honzik321
Posts: 31
Joined: Mon Apr 06, 2020 11:17 pm
Location: Czech Republic

Re: AT command for light-sleep

Postby Honzik321 » Wed Apr 08, 2020 12:59 pm

cmake --version:

cmake version 3.13.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).

execute_process(COMMAND sed -n /commit:/p ${ESP_AT_MODULE_CONFIG_DIR}/IDF_VERSION:

'execute_process' is not recognized as an internal or external command,
operable program or batch file.

I can't run sed command on my windows 10 OS

Honzik321
Posts: 31
Joined: Mon Apr 06, 2020 11:17 pm
Location: Czech Republic

Re: AT command for light-sleep

Postby Honzik321 » Wed Apr 08, 2020 11:31 pm

I have installed idf version 3.3 instead of latest version 4.2, but make menuconfig throw this error:


dell@JAN-NB MINGW32 ~/esp/esp-at
$ make menuconfig
Makefile:29: There is no module_config/module_wroom-32,Using module_config/modul e_esp32_default
The following Python requirements are not satisfied:
click>=5.0
pyelftools>=0.22
The recommended way to install a packages is via "pacman". Please run "pacman -S s <package_name>" for searching the package database and if found then "pacman - S mingw-w64-i686-python2-<package_name>" for installing it.
NOTE: You may need to run "pacman -Syu" if your package database is older and ru n twice if the previous run updated "pacman" itself.
Please read https://github.com/msys2/msys2/wiki/Using-packages for further infor mation about using "pacman"
Alternatively, you can run "C:/msys32/mingw32/bin/python.exe -m pip install --us er -r C:/msys32/home/dell/esp/esp-idf/requirements.txt" for resolving the issue.
make: *** Žádné pravidlo jak vyrobit cíl „check_python_dependencies“ potřebný pr o „menuconfig“. Konec.

Honzik321
Posts: 31
Joined: Mon Apr 06, 2020 11:17 pm
Location: Czech Republic

Re: AT command for light-sleep

Postby Honzik321 » Thu Apr 09, 2020 4:41 pm

Hello,

I have tried the ESP32-WROOM-32 AT Bin V2.0 AT+SLEEP commands. The power consumption is always the same for AT+SLEEP=1 and AT+SLEEP=2. Its about 29mA average in station mode connected to AP. Moreover AT+WAKEUPGPIO doesn´t work anymore... so I suppose the AT+SLEEP=1 is not implemented :-(

Who is online

Users browsing this forum: Google [Bot] and 86 guests