Search found 63 matches

by Palonso
Thu Nov 05, 2020 5:38 pm
Forum: ESP-IDF
Topic: Full range in ADC1
Replies: 0
Views: 109

Full range in ADC1

Hi, It's said that to increase the ADC voltage reading range you can change the attenuation value (of a channel) up to 11dB, but I found in the ESP32 serie datahseet the next note on the page 23: When atten=3 and the measurement result is above 3,000 (voltage at approx. 2,450 mV), the ADC accuracy w...
by Palonso
Wed Oct 14, 2020 10:29 pm
Forum: ESP-IDF
Topic: MQTT configure connection parameters not working
Replies: 2
Views: 217

Re: MQTT configure connection parameters not working

I found that the difference with one way and the other is the member I was setting.

In one I was setting the host and the other the uri wich may seem to be the same but are really different.

Thanks for the advice.
by Palonso
Wed Oct 14, 2020 10:27 pm
Forum: ESP-IDF
Topic: HTTPS OTA Failure
Replies: 0
Views: 179

HTTPS OTA Failure

Hi, I'm trying OTA to work on an ESP-WROVER-B module, at the beggining it worked, but for some reason it stopped working. This is the message I get: E (19188) TRANS_SSL: esp_tls_conn_read error, errno=No more processes W (19188) HTTP_CLIENT: esp_transport_read returned:-26880 and errno:11 And someti...
by Palonso
Mon Oct 12, 2020 9:41 pm
Forum: ESP-IDF
Topic: MQTT configure connection parameters not working
Replies: 2
Views: 217

MQTT configure connection parameters not working

Hi, I'm trying to connect to an MQTT server and I found the next problem. when setting the parameters one by one, like this: esp_mqtt_client_config_t mqtt_cfg; memset(&mqtt_cfg, 0, sizeof(esp_mqtt_client_config_t)); mqtt_cfg.host = (char *)hostname; mqtt_cfg.port = port; mqtt_cfg.client_id = (char *...
by Palonso
Fri Oct 02, 2020 7:48 pm
Forum: ESP-IDF
Topic: BLE GAP password pin and BLE API
Replies: 0
Views: 165

BLE GAP password pin and BLE API

Hi, I'm trying to run a BLE server on an ESP-WROVER-B module and I want it to have pin security to connect to it with BLE. Here is the code I'm running in order to set the password to the BLE: void app_main(void) { esp_err_t ret; // Initialize NVS: Needed to start BLE ret = nvs_flash_init(); if (ret...
by Palonso
Wed Sep 30, 2020 7:13 pm
Forum: ESP-IDF
Topic: A fatal error occurred while programming the esp-32
Replies: 1
Views: 508

Re: A fatal error occurred while programming the esp-32

Check the power supply. That happened to me and it was that the battery was discharged.

Hope that works.

Best regards,
P
by Palonso
Wed Sep 30, 2020 7:09 pm
Forum: ESP-IDF
Topic: log output as UDP stream
Replies: 4
Views: 5715

Re: log output as UDP stream

Hi, Thats a cool example on how to redirect the log of the ESP over UDP, but I'm not sure how to adapt that code to TCP (which I'm more intrested). The best I could do gets me: getsockopt failed TCP socket error -1 Freeing TCP Logging. sendto failed! Shutting-down TCP socket failed: -1! TCP socket c...
by Palonso
Wed Sep 16, 2020 9:07 pm
Forum: ESP-IDF
Topic: ULP WAKE function and Main CPU interruptions
Replies: 2
Views: 382

Re: ULP WAKE function and Main CPU interruptions

Thanks for noticing that mistake and sharing that example, it was a BIG help. Also I was able to change it to TaskNotification to make ti faster too.

Best regards,
P
by Palonso
Tue Sep 15, 2020 9:32 pm
Forum: ESP-IDF
Topic: ULP WAKE function and Main CPU interruptions
Replies: 2
Views: 382

ULP WAKE function and Main CPU interruptions

Hi, I'm looking forward to use the RTC_CNTL_ULP_CP_INT_ENA register bit in order to notify the main CPU (interruption) that "a reading" with the ULP was successfully made. As far as I understood is that the mentioned flag goes HIGH when the WAKE function is called in the ULP core, in the pulse count...
by Palonso
Mon Sep 14, 2020 9:55 pm
Forum: ESP-IDF
Topic: ULP Co-Processor, Main processor and RTC Memory
Replies: 2
Views: 276

Re: ULP Co-Processor, Main processor and RTC Memory

Hi Sprite, Thanks for the previous answer, On the other hand, I read that when accessing RTC memories and RTC registers, ULP coprocessor has lower priority than the main CPUs. This means that ULP coprocessor execution may be suspended while the main CPUs access same memory region as the ULP. in the ...

Go to advanced search