UART.irq in micropython

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Duality
Posts: 16
Joined: Tue Jun 09, 2020 2:43 pm

UART.irq in micropython

Post by Duality » Thu Oct 29, 2020 10:57 am

Hi All,

In my journey towards running Modbus on esp32, there is one more hurdle and this is power consumption. The esp has to remain turned on in active mode to look for the master query. As my device is an IoT device, it cannot afford to provide mAs of current continuously. So, I am looking for a solution to reduce power, which is to keep esp32 stay active only when the query is received. For this, I need to turn on ESP from deep-sleep only when something is available on UART RX.
What could be the possible solution? I am working with micropython esp32 port.

Thanks in advance

Duality
Posts: 16
Joined: Tue Jun 09, 2020 2:43 pm

Re: UART.irq in micropython

Post by Duality » Thu Oct 29, 2020 11:09 am

One method could be configuring uart wakeup (for lightsleep), however I don't see any function in micropython to enable this.

Regards.

Post Reply