Search found 559 matches

by boarchuz
Wed Sep 23, 2020 5:36 am
Forum: ESP-IDF
Topic: How to get "esp_netif_t *esp_netif" ???
Replies: 6
Views: 8047

Re: How to get "esp_netif_t *esp_netif" ???

You'll need to dive into "example_connect" since all of your WiFi initialization is apparently hiding in there. See https://github.com/espressif/esp-idf/blob/8bc19ba893e5544d571a753d82b44a84799b94b1/examples/common_components/protocol_examples_common/connect.c#L165-L200 and https://github.com/espres...
by boarchuz
Wed Sep 23, 2020 2:05 am
Forum: ESP-IDF
Topic: Interfacing the Wroom32 with a 1.8v I2C Sensor
Replies: 10
Views: 8269

Re: Interfacing the Wroom32 with a 1.8v I2C Sensor

HDC2010 Why not supply it with 3.3v as well and save all this trouble? Why do you need the 1.8v rail at all? Is there something I'm missing? Is there not the corollary of the ESP32 being able to recognize a low voltage one ? There is, that's why Sprite is suggesting either a level shifter to bring ...
by boarchuz
Mon Sep 21, 2020 5:30 pm
Forum: IDEs for ESP-IDF
Topic: Vote on new vscode esp-idf extension setup UI
Replies: 2
Views: 3406

Re: Vote on new vscode esp-idf extension setup UI

Hi Brian, I've butchered your great mockups to present what would be, for me, a much more valuable concept (if you can look past the ugliness). It is based on a few assumptions: 1. People initially just want it to work with the least hair torn out as possible. Set up whatever is needed to get them b...
by boarchuz
Mon Sep 21, 2020 10:08 am
Forum: General Discussion
Topic: What would you like to see in The Next Chip?
Replies: 426
Views: 782257

Re: What would you like to see in The Next Chip?

The same capability as at least one new competing product to maintain WiFi connection with average current <50uA.
by boarchuz
Wed Sep 16, 2020 11:31 pm
Forum: General Discussion
Topic: Automatic Light Sleep
Replies: 2
Views: 3978

Re: Automatic Light Sleep

Setting those options via menuconfig ensures the functionality is included in the build, but you then need to enable it at runtime via esp_pm_configure() with esp_pm_config_esp32_t::light_sleep_enable = true. https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/power_mana...
by boarchuz
Tue Sep 15, 2020 9:47 pm
Forum: ESP-IDF
Topic: ULP WAKE function and Main CPU interruptions
Replies: 3
Views: 3267

Re: ULP WAKE function and Main CPU interruptions

You're using the wrong mask here:

Code: Select all

ESP_ERROR_CHECK( rtc_isr_register(&ulp_isr_handler, NULL, RTC_CNTL_ULP_CP_INT_ENA_M) );
You want RTC_CNTL_SAR_INT_ST_M
See:
https://gist.github.com/igrr/4b002047fc ... main-c-L31
by boarchuz
Mon Sep 14, 2020 8:53 am
Forum: ESP-IDF
Topic: ESP32 SoftAp static ip config
Replies: 7
Views: 9217

Re: ESP32 SoftAp static ip config

Also MY_IP_ADDR is a string representation of an IP so htonl is not doing what you expect:

Code: Select all

#define MY_IP_ADDR  "192.168.4.56"
dest_addr.sin_addr.s_addr = htonl(MY_IP_ADDR);
You can use inet_addr or inet_aton to convert that to an IP, or use IP4_ADDR/esp_netif_ip4_makeu32 macros.
by boarchuz
Sun Sep 13, 2020 9:28 am
Forum: ESP-IDF
Topic: esp_http_client - How to POST Chunked Data?
Replies: 3
Views: 6838

Re: esp_http_client - How to POST Chunked Data?

Use the stream functions of esp_http_client: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/esp_http_client.html#http-stream Needs this: esp_http_client_set_header(client, "Transfer-Encoding", "chunked"); eg. esp_http_client_write("5", 1); // length esp_http_clie...
by boarchuz
Thu Sep 10, 2020 4:42 am
Forum: IDEs for ESP-IDF
Topic: Official VSCode Extension for ESP-IDF Projects - jtag upload
Replies: 3
Views: 3693

Re: Official VSCode Extension for ESP-IDF Projects - jtag upload

You already got some very helpful answers here: https://github.com/espressif/vscode-esp-idf-extension/issues/161 (Actually it looks like this was just approved but you posted much earlier, so sorry for the attitude) Perhaps a VS Code task that builds and then executes the command provided by pwmb wo...
by boarchuz
Wed Sep 09, 2020 7:51 pm
Forum: ESP-IDF
Topic: I want to make an interrupt while deep sleep
Replies: 2
Views: 2553

Re: I want to make an interrupt while deep sleep

You can configure an RTCIO interrupt without enabling wakeup. Read the int on wake, and clear your counter if set.

Example here: https://gist.github.com/boarchuz/f9cfb4 ... 88c8d500f3