Description
Is your feature request related to a problem?
Integration of UART_WAKEUP in esp_modem component
Describe the solution you'd like.
Dear ESP-IDF Development Team,
I hope this message finds you well. I'm reaching out to request a feature enhancement for the esp_modem component in the ESP-IDF repository.
Requirement:
I'm currently working on a project where I need to implement a functionality wherein upon receiving a new SMS on the SIM module, a specific message is sent to the UART in the form of +CMTI:"sm",0. This message serves as a trigger to wake up the ESP32 from light sleep mode. However, I've encountered an issue where the UART_WAKEUP feature is not integrated into the esp_modem component, hindering the smooth implementation of this functionality.
Observation:
I have attempted to integrate UART_WAKEUP In my project and set a threshold of 3. However, the behavior is inconsistent. Despite sending SMS continuously, the wakeup is triggered intermittently. I've tested this scenario using the UART0 and UART1 pins on the ESP32S3.
https://github.com/espressif/esp-idf/blob/v5.1.2/examples/system/light_sleep/main/uart_wakeup.c#L84
But the same works in the light sleep example. Please find the screenshot.
Note: With ESP32 It's not working with the same code.
UART Pins ESP32 UART 1, RX_IO_NUM:9, TX_IO_NUM:10
I have added these two extra lines for IOMUX. for esp32
https://github.com/espressif/esp-idf/blob/v5.1.2/examples/system/light_sleep/main/uart_wakeup.c#L124
#if CONFIG_IDF_TARGET_ESP32
PIN_FUNC_SELECT(PERIPHS_IO_MUX_SD_DATA2_U, FUNC_SD_DATA2_U1RXD); // GPIO9 should be configured as function_5
PIN_FUNC_SELECT(PERIPHS_IO_MUX_SD_DATA3_U, FUNC_SD_DATA3_U1TXD);
#endif
Describe alternatives you've considered.
No response
Additional context.
No response