Search found 20 matches
- Mon Nov 22, 2021 9:39 pm
- Forum: General Discussion
- Topic: Secure GATTS server, can I have the client device enter the passkey?
- Replies: 1
- Views: 3883
Re: Secure GATTS server, can I have the client device enter the passkey?
Nevermind, I see now. It's the ESP_IO_CAP_OUT IO capability option. This works!
- Mon Nov 22, 2021 9:26 pm
- Forum: General Discussion
- Topic: Secure GATTS server, can I have the client device enter the passkey?
- Replies: 1
- Views: 3883
Secure GATTS server, can I have the client device enter the passkey?
I have a secure gatts server. I'm having a hard time understanding exactly how the security model works. Specifically, I want my client device to send a passkey to the server to authenticate the connection. The idea is that the ESP32 has a screen attached to it, so that when pairing is attempted, th...
- Wed Aug 19, 2020 5:32 pm
- Forum: General Discussion
- Topic: Esp32 deep sleep issues: Won't wake up from ext1
- Replies: 1
- Views: 4632
Esp32 deep sleep issues: Won't wake up from ext1
I have the attached code, which is designed to wake up for ext1 all going low. For some reason, this does not wake up the esp32. I have confirmed the io really does go low. Any ideas what I could be doing wrong? Additionally, the ets printf calls do not work (no serial output) and it doesn't appear ...
- Sun Aug 16, 2020 1:12 am
- Forum: General Discussion
- Topic: ets_printf from wake handler not working
- Replies: 2
- Views: 3547
Re: ets_printf from wake handler not working
Sadly no luck Still no ets_printf output
- Sat Aug 15, 2020 5:11 pm
- Forum: General Discussion
- Topic: ets_printf from wake handler not working
- Replies: 2
- Views: 3547
ets_printf from wake handler not working
I have the following code (snipped up): static RTC_RODATA_ATTR const char wake_msg[] = "Low power up\r\n"; // Deep sleep wake stub void RTC_IRAM_ATTR esp_wake_deep_sleep(void) { // https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/deep-sleep-stub.html esp_default_wake_deep_sleep(); //...
- Thu May 02, 2019 7:48 pm
- Forum: General Discussion
- Topic: RTC GPIO hold enable from wake stub
- Replies: 8
- Views: 10661
Re: RTC GPIO hold enable from wake stub
Just an update: If I do a CLEAR_PERI_REG_MASK(RTC_IO_XTAL_32K_PAD_REG, RTC_IO_X32P_HOLD_M);, I can unhold this pin and control it correctly. But the routine in the stub_api does not work... Even if I relocate the rtc_gpio_desc into RTC ram. Is there something special about this array existing in RTC...
- Thu May 02, 2019 4:44 pm
- Forum: General Discussion
- Topic: RTC GPIO hold enable from wake stub
- Replies: 8
- Views: 10661
Re: RTC GPIO hold enable from wake stub
Thanks for the reply!
I think the main issue is that right now, I can't even disable rtc holding on the pin after the application code sets rtc hold on the pin before sleeping. If I don't hold the pin before going to deep sleep, then I can manipulate the io state in the wake stub.
I think the main issue is that right now, I can't even disable rtc holding on the pin after the application code sets rtc hold on the pin before sleeping. If I don't hold the pin before going to deep sleep, then I can manipulate the io state in the wake stub.
- Wed May 01, 2019 1:08 pm
- Forum: General Discussion
- Topic: RTC GPIO hold enable from wake stub
- Replies: 8
- Views: 10661
Re: RTC GPIO hold enable from wake stub
There is definitely a lot of mixing of functions in there, but the function I'm calling to disable RTC holding should be the correct function. Or at least, that's what I'm doing on the app side and it seems to work.
- Tue Apr 30, 2019 11:36 pm
- Forum: General Discussion
- Topic: RTC GPIO hold enable from wake stub
- Replies: 8
- Views: 10661
Re: RTC GPIO hold enable from wake stub
Ok, so looking into this more, the problem is definitely related to `rtc_gpio_desc`. I'm guessing this isn't loaded into RTC RAM in the IDF, but if I copy it from the IDF and use the signature RTC_RODATA_ATTR rtc_gpio_desc_t stub_rtc_gpio_desc[GPIO_PIN_COUNT] to declare it, then switch over the stub...
- Tue Apr 30, 2019 8:42 pm
- Forum: General Discussion
- Topic: RTC GPIO hold enable from wake stub
- Replies: 8
- Views: 10661
RTC GPIO hold enable from wake stub
Hi, I'm having an issue with my wake stub. My wakestub basically checks a few conditions on GPIO and ADC, and then puts the chip back to sleep if none of the conditions are met. Because of the RTC IRAM limitation of the wake stub, I basically took all of the IDF code relevant to me, and put it in a ...