Search found 195 matches

by davdav
Thu Oct 15, 2020 10:12 am
Forum: ESP-IDF
Topic: Using "uart_read_bytes" after vTaskSuspendAll function
Replies: 5
Views: 221

Re: Using "uart_read_bytes" after vTaskSuspendAll function

Hm, that all looks good to me, I see no reason why that would lead to problems. Can you show me what the corruption you see looks like? Also, are you sure it's not a physical issue (e.g. signal corruption)? Hello @ESP_Sprite, The corruptions appears 1 or 2 byte of the 1024 bytes packet. The total f...
by davdav
Tue Oct 13, 2020 7:48 am
Forum: ESP-IDF
Topic: Using "uart_read_bytes" after vTaskSuspendAll function
Replies: 5
Views: 221

Re: Using "uart_read_bytes" after vTaskSuspendAll function

How do you initialize the UART driver? If you give it a buffer size that's large enough and read out the packets on an (on average) OK speed, you should not get underflows. Also, if the problem indeed is that your reading thread is starved (which imo is unlikely) you don't want to do a vTaskSuspend...
by davdav
Mon Oct 12, 2020 2:14 pm
Forum: ESP-IDF
Topic: Using "uart_read_bytes" after vTaskSuspendAll function
Replies: 5
Views: 221

Using "uart_read_bytes" after vTaskSuspendAll function

Hi everybody, I would like to suspend all of my tasks and let the one which called "vTaskSuspendAll" to read uart and doing some stuff. The problem arise from the fact that if you send quite big packets (1024 byte) via UART sometimes esp32 fails to read the data (sometimes it misses bytes, sometimes...
by davdav
Wed Sep 23, 2020 6:22 am
Forum: ESP-IDF
Topic: connecting internal GPIOs to create a pipe
Replies: 4
Views: 427

Re: connecting internal GPIOs to create a pipe

WiFive wrote:
Mon Sep 21, 2020 8:25 pm
Yes reconfigure mux
Thanks. The problem now is: how to do that? I will search some examples to reconfigure IO_MUX...

Do you think it is possible to reconfigure ONLY the TXD0 pin and let the RXD0 managed by uart driver? I this way I can still read the uart..

Thanks again
by davdav
Mon Sep 21, 2020 11:04 am
Forum: ESP-IDF
Topic: connecting internal GPIOs to create a pipe
Replies: 4
Views: 427

Re: connecting internal GPIOs to create a pipe

https://esp32.com/viewtopic.php?t=4253 Thanks @WiFive for suggestion. I have done the following test: gpio_matrix_in(GPIO_NUM_27, SIG_IN_FUNC228_IDX, false); //UART1 RX pin (GPIO_NUM_27) gpio_matrix_out(GPIO_NUM_1, SIG_IN_FUNC228_IDX, false, false); //UART0 TX pin (TXD0) gpio_matrix_out(GPIO_NUM_21...
by davdav
Fri Sep 18, 2020 12:37 pm
Forum: ESP-IDF
Topic: connecting internal GPIOs to create a pipe
Replies: 4
Views: 427

connecting internal GPIOs to create a pipe

Hi everybody, In our project based on ESP32-WROOM-32D we use two UART ports: -one is the "default" UART0 port (using standard TXD0 and RXD0 pins) used by customer -the other is connected to a LTE modem (gpio_27 as TX pin and gpio_25 as RX pin) In particular situation,it is necessary to talk directly...
by davdav
Fri Jun 19, 2020 12:42 pm
Forum: ESP-IDF
Topic: GPIO_NUM_17 immediatly wakeup from LIGHT SLEEP
Replies: 0
Views: 292

GPIO_NUM_17 immediatly wakeup from LIGHT SLEEP

Hi everybody, I'm struggling with light sleep feature. I setup 3 types of sources before going to sleep: -timer (based on a customer parameter) ret = esp_sleep_enable_timer_wakeup(timer_wakeup * 1000000); ESP_LOGW(TAG_SLEEP, "Enabling TIMER wakeup:%d", ret); -UART0 uart_set_wakeup_threshold(UART_NUM...
by davdav
Fri Jun 12, 2020 3:49 pm
Forum: ESP-IDF
Topic: gettimeofday "loses" seconds after esp_pm_configure is called
Replies: 0
Views: 341

gettimeofday "loses" seconds after esp_pm_configure is called

Hi everybody, I periodically use "gettimeofday" (once every second) to update a couple of variables which contain date and time of ESP32 to be used in our application. I noticed that if I call esp_pm_config_esp32_t pm_config = { .max_freq_mhz = 240, .min_freq_mhz = 80, .light_sleep_enable = false };...
by davdav
Mon May 25, 2020 9:19 pm
Forum: General Discussion
Topic: Sending large data over MQTT
Replies: 3
Views: 1193

Re: Sending large data over MQTT

@davdav were you able to figure out a solution? I am trying to send 1 file that is in the flash using mqtt. I do not have enough memory to allocate for the size of the file, nor can a create an array large enough either. the file at this time is 48kB, and I would like to be able to not worry about ...
by davdav
Wed May 13, 2020 3:17 pm
Forum: ESP-IDF
Topic: ESP-TLS: perform HTTPS POST request without certificate
Replies: 0
Views: 334

ESP-TLS: perform HTTPS POST request without certificate

Hi everybody, My scope is to perform HTTPS POST via ESP-TLS without certificate. ESP32 acts as a client and it has to post some data to server. However, the server address and URL is configured by the final customer, so it is not always the same. I would like to understand if it is possible to do th...

Go to advanced search