Hello,
My code problem. I was not setting the next event by pin so it did not wakeup on GPIO pin transition.
esp_sleep_enable_ext0_wakeup(GPIO_NUM_12, LOW);
Sorry.
JWS
Search found 12 matches
- Tue Jan 04, 2022 9:03 pm
- Forum: General Discussion
- Topic: lorawan.sleep() function problem on ESP32 board
- Replies: 1
- Views: 3237
- Tue Jan 04, 2022 5:31 pm
- Forum: General Discussion
- Topic: lorawan.sleep() function problem on ESP32 board
- Replies: 1
- Views: 3237
lorawan.sleep() function problem on ESP32 board
Hello, I am using a Heltec Radio ESP32 V2 board, with OLED display for POC. I am stuck. Looking for help. When is use the function lorawan.sleep I cannot wakeup when a RTC GPIO signal transitions after the timer fires? It works initially after reset but when my timer fires then goes to sleep it will...
- Mon Dec 13, 2021 4:11 pm
- Forum: General Discussion
- Topic: ESP Deep Sleep
- Replies: 0
- Views: 3110
ESP Deep Sleep
Hello,
I am working with the Heltec LoRaWan ESP32 board. I am trying to understand esp_deep_sleep(). Does this function turn off the Heltec radio? Can anyone explain what this function does?
Thanks.
JWS
I am working with the Heltec LoRaWan ESP32 board. I am trying to understand esp_deep_sleep(). Does this function turn off the Heltec radio? Can anyone explain what this function does?
Thanks.
JWS
- Tue Dec 07, 2021 7:16 pm
- Forum: General Discussion
- Topic: RTC GPIO Functions Not Working
- Replies: 8
- Views: 13579
Re: RTC GPIO Functions Not Working
Ok I found this function esp_deep_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_AUTO);
Will try it.
Will try it.
- Tue Dec 07, 2021 5:07 pm
- Forum: General Discussion
- Topic: RTC GPIO Functions Not Working
- Replies: 8
- Views: 13579
Re: RTC GPIO Functions Not Working
When I wake from esp_deep_sleep_start() using ext0, what do I need to do in my code? Do I need to do a pinMode again? Do I need to enable pullup's again? Initial setup I am using: pinMode(GPIO_NUM_12,INPUT_PULLUP); pinMode(GPIO_NUM_13,INPUT_PULLUP); I determine the wakeup source and go process eithe...
- Tue Dec 07, 2021 3:37 pm
- Forum: General Discussion
- Topic: RTC GPIO Functions Not Working
- Replies: 8
- Views: 13579
Re: RTC GPIO Functions Not Working
The Arduino functions seemed like the way to go. I have never gotten the inputs or my output test to work. I switched to pinMode(). I am able to generate a GPIO (pin 12) wakeup from deep sleep. Things go bad after this first wakeup, but I am working that issue. I am reading the document that was ref...
- Mon Dec 06, 2021 5:05 am
- Forum: General Discussion
- Topic: RTC GPIO Functions Not Working
- Replies: 8
- Views: 13579
Re: RTC GPIO Functions Not Working
I tried rtc_gpio_init().
I still do not get an output.
I also called the function to see if GPIO_NUM_12 was an RTC GPIO. It returned TRUE.
Stuck on this one.
I still do not get an output.
I also called the function to see if GPIO_NUM_12 was an RTC GPIO. It returned TRUE.
Stuck on this one.
- Thu Dec 02, 2021 3:14 pm
- Forum: General Discussion
- Topic: RTC GPIO Functions Not Working
- Replies: 8
- Views: 13579
Re: RTC GPIO Functions Not Working
I found the function in a esp32 document and the wording indicates it is for analog pin:
esp_err_trtc_gpio_init(gpio_num_tgpio_num)
Init a GPIO as RTC GPIO.
This function must be called when initializing a pad for an analog function.
So I did not think it applied for digital pin.
esp_err_trtc_gpio_init(gpio_num_tgpio_num)
Init a GPIO as RTC GPIO.
This function must be called when initializing a pad for an analog function.
So I did not think it applied for digital pin.
- Thu Dec 02, 2021 3:06 pm
- Forum: General Discussion
- Topic: RTC GPIO Functions Not Working
- Replies: 8
- Views: 13579
Re: RTC GPIO Functions Not Working
I am specifying the GPIO pin as a digital input, not an analog input.I saw this method in some example code on the forum.
I take it I should call rtc_gpio_init.
Will try this.
I take it I should call rtc_gpio_init.
Will try this.
- Thu Dec 02, 2021 12:13 am
- Forum: General Discussion
- Topic: RTC GPIO Functions Not Working
- Replies: 8
- Views: 13579
RTC GPIO Functions Not Working
[Codebox=c file=Untitled.c][/Codebox] Hardware being used is a Heltec Lora 32(V2) board under Arduino. Started using GPIO 36 & GPIO 39 as inputs from a Reed Switch. Was using RTC_GPIO functions. Could not get any inputs, high to low. Using external pullups. Switched to RTC_GPIO 12 & 13 as inputs, no...