AT command for light-sleep

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 11:56 pm

Last update:
I reinstalled esp-idf to latest version, cmake version 3.16.4, I use eclipse https://github.com/espressif/idf-eclipse-plugin, idf example projects work, but esp-at still thow these erros. After couple of days I'm still not able to build esp-at and add missing AT command for light-sleep mode :-(((



Building in: C:\Users\dell\eclipse-workspace\esp-at\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=C:\Users\dell\Desktop\esp-idf\tools\cmake\toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DIDF_TARGET=esp32 C:\Users\dell\eclipse-workspace\esp-at
CMake Error at CMakeLists.txt:57 (string):
string sub-command REPLACE requires at least four arguments.


CMake Error at CMakeLists.txt:62 (string):
string sub-command REPLACE requires at least four arguments.


CMake Error at CMakeLists.txt:67 (string):
string sub-command REPLACE requires at least four arguments.


fatal: You must specify a repository to clone.

usage: git clone [<options>] [--] <repo> [<dir>]

-v, --verbose be more verbose
-q, --quiet be more quiet
--progress force progress reporting
-n, --no-checkout don't create a checkout
--bare create a bare repository
--mirror create a mirror repository (implies bare)
-l, --local to clone from a local repository
--no-hardlinks don't use local hardlinks, always copy
-s, --shared setup as shared repository
--recurse-submodules[=<pathspec>]
initialize submodules in the clone
-j, --jobs <n> number of submodules cloned in parallel
--template <template-directory>
directory from which templates will be used
--reference <repo> reference repository
--reference-if-able <repo>
reference repository
--dissociate use --reference only while cloning
-o, --origin <name> use <name> instead of 'origin' to track upstream
-b, --branch <branch>
checkout <branch> instead of the remote's HEAD
-u, --upload-pack <path>
path to git-upload-pack on the remote
--depth <depth> create a shallow clone of that depth
--shallow-since <time>
create a shallow clone since a specific time
--shallow-exclude <revision>
deepen history of shallow clone, excluding rev
--single-branch clone only one branch, HEAD or --branch
--no-tags don't clone any tags, and make later fetches not to follow them
--shallow-submodules any cloned submodules will be shallow
--separate-git-dir <gitdir>
separate git dir from working tree
-c, --config <key=value>
set config inside the new repository
-4, --ipv4 use IPv4 addresses only
-6, --ipv6 use IPv6 addresses only
--filter <args> object filtering

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

"NOT" "bd8039bb8119636e6133a34b7b7dd3884a43d63f" "EQUAL"

Unknown arguments specified
-- Configuring incomplete, errors occurred!


See also "C:/Users/dell/eclipse-workspace/esp-at/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/dell/eclipse-workspace/esp-at/build/CMakeFiles/CMakeError.log".
cmake --build . -- -v
Error: could not find CMAKE_PROJECT_NAME in Cache
Build complete (1 errors, 0 warnings): C:\Users\dell\eclipse-workspace\esp-at\build

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

Re: AT command for light-sleep

Postby ESP_XCGuang » Mon Apr 13, 2020 2:11 am

You need to compile the latest master branch by yourself, and please refer to https://github.com/espressif/esp-at/blo ... cmd-SYSRAM and https://github.com/espressif/esp-at/blo ... #cmd-WKCFG

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

Re: AT command for light-sleep

Postby Honzik321 » Mon Apr 13, 2020 5:14 pm

OK I will try it, after build of the customized partitions BIN files will be successfully generated.

Or may I set Partition Table to "Single factory app, no OTA" in menuconfig,
or may I disable "AT Customized Partitions" in menuconfig ? I would like firstly to build the project without changes from my side. After that I can make some changes...

Thank you,
Honzik

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

Re: AT command for light-sleep

Postby Honzik321 » Tue Apr 14, 2020 6:57 pm

Hi,
I have finally built esp at on Linux.

I have some trouble to establish UART communication (GPIO16, GPIO17) after the light-sleep mode is activated by AT+SLEEP command. I set the wake-up source to GPIO2 before the light sleep is activated. I observe, the module is waking up after the GPIO2 is activated (power consumption is much higher then in light-sleep), but the UART communication doesn't start any more. It only returns some unidentifiable characters if I send some AT command. The only way is to restart the module.

Thank you,
Honzik

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

Re: AT command for light-sleep

Postby Honzik321 » Tue Apr 14, 2020 9:06 pm

Hello,
I have some trouble with AT+SLEEP command. The module goes to appropriate sleep mode, but UART communication (on GPIO 16, 17) stops to work correctly. Its obvious that modem sleep and light sleep modes AT+SLEEP=1, AT+SLEEP=2, AT+SLEEP=3 generate the same problem. I use GPIO2 (which is connected to RTC) to wake-up from light sleep.

I use single CPU core espressif ESP32-SOLO-1 module. Should I add some other settings to menuconfig ?

Thank you,
Honzik
Attachments
sleepproblem.jpg
sleepproblem.jpg (43.07 KiB) Viewed 9234 times

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

Re: AT command for light-sleep

Postby Honzik321 » Thu Apr 16, 2020 8:36 am

Hello, I tested UART hardware flow control AT+UART_CUR=115200,8,1,0,3, but it's not working. I have also used hardware flow control on esp8266 without problem. RTS, CTS is set on host processor in same settings as was on esp8266.

I have added flow control because I think, that the problem of bad UART communication after activating sleep mode could be
caused by no hardware flow control. After some tests I have to say, that AT+UART_CUR=115200,8,1,0,3 setting doesn't work.

Hardware configuration:
ESP32-SOLO-1 module
GPIO16 is RXD => TXD (on host MCU) - works!
GPIO17 is TXD => RXD (on host MCU) - works!
GPIO14 is RTS => CTS (on host MCU)
GPIO15 is CTS => RTS (on host MCU)

Thank you,
Honzik

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

Re: AT command for light-sleep

Postby Honzik321 » Fri Apr 17, 2020 8:09 am

Has anybody tried any sleep mode (from SLEEP=1 to SLEEP=3) or has anybody tried hardware (rts, cts) flowcontrol ? My ideas are exhausted. Please help, I can't continue in my IoT project without light-sleep and hardware flow control activated.

Thank you,
Honzik

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

Re: AT command for light-sleep

Postby Honzik321 » Tue Apr 21, 2020 4:31 pm

Hi,

can somebody help with hardware flow control and sleep modes for esp-at (see my previous posts) ?

https://github.com/espressif/esp-at


Thank you,
Honzik

Who is online

Users browsing this forum: Bing [Bot] and 110 guests