Search found 9 matches
- Thu Apr 26, 2018 12:26 pm
- Forum: ESP-IDF
- Topic: LWIP Socket API: Accept the same client several times doesn't work
- Replies: 6
- Views: 11869
Re: LWIP Socket API: Accept the same client several times doesn't work
https://github.com/espressif/esp-idf/issues/1592 That's it! Using lwip_close() instead close() does not close the socket. Thank you so much! There is another function lwip_close_r(). This function also closed the socket correctly. I wonder what is the difference between close(), lwip_close_r() and ...
- Wed Apr 25, 2018 7:03 pm
- Forum: ESP-IDF
- Topic: LWIP Socket API: Accept the same client several times doesn't work
- Replies: 6
- Views: 11869
Re: LWIP Socket API: Accept the same client several times doesn't work
@kolban: Thank you for this advice. With errno i get the following error: 23 Too many open files in system It looks like there are too many sockets open. Using make menuconfig I increased the maximum number of open sockets from 4 to 5. Now it was possible to accept one client more before the error o...
- Wed Apr 25, 2018 3:24 pm
- Forum: ESP-IDF
- Topic: LWIP Socket API: Accept the same client several times doesn't work
- Replies: 6
- Views: 11869
LWIP Socket API: Accept the same client several times doesn't work
Hello, I have some problems with the LWIP Socket API for ESP32. With the function accept() I am waiting for a tcp client to connect to the ESP32 as tcp server. Then I can receive data from the client via recv(). This works as expected. Now I want to disconnect the client from the server and accept t...
- Sun Mar 25, 2018 8:29 pm
- Forum: ESP-IDF
- Topic: Problems with the SPI receive buffer when dma is enabled
- Replies: 0
- Views: 3509
Problems with the SPI receive buffer when dma is enabled
Hello, I tried to read and write an external memory chip via SPI. But I have some problems with the esp idf library. If I just write or read everything works without problems. But if I write and read the data is not read correctly into the receive buffer. In my program I first write 12 bytes and the...
- Sat Mar 17, 2018 11:14 pm
- Forum: ESP-IDF
- Topic: Activate nested interrupts
- Replies: 1
- Views: 4503
Activate nested interrupts
Hello,
i heard the esp32 supports nested interrupts. If so, how can it be activated?
i heard the esp32 supports nested interrupts. If so, how can it be activated?
- Thu Feb 22, 2018 10:11 pm
- Forum: ESP-IDF
- Topic: How to include static librarys into esp-idf with eclipse?
- Replies: 3
- Views: 8648
How to include static librarys into esp-idf with eclipse?
Hello, i have an external library as an .a file that i want to include into my eclipse project. I followed this guide to use esp-idf with eclipse: https://esp-idf.readthedocs.io/en/v2.0/eclipse-setup.html My project structure look like this: http://fs1.directupload.net/images/user/180222/temp/qw5a5w...
- Thu Feb 22, 2018 2:33 pm
- Forum: ESP-IDF
- Topic: Read and write over I2C: Meaning of the parameter "ticks_to_wait"
- Replies: 5
- Views: 8751
Re: Read and write over I2C: Meaning of the parameter "ticks_to_wait"
That's already solved my question. Thanks for your reply!
- Thu Feb 22, 2018 9:57 am
- Forum: ESP-IDF
- Topic: Read and write over I2C: Meaning of the parameter "ticks_to_wait"
- Replies: 5
- Views: 8751
Read and write over I2C: Meaning of the parameter "ticks_to_wait"
Hello, i use esp-idf to write and read data over the I2C bus. To send or read data I have to call the function below: esp_err_t i2c_master_cmd_begin(i2c_port_t i2c_num, i2c_cmd_handle_t cmd_handle, TickType_t ticks_to_wait) Can someone explain the meaning of the parameter "ticks_to_wait"? As far as ...
- Mon Jan 22, 2018 11:39 am
- Forum: General Discussion
- Topic: Context switch in FreeRTOS
- Replies: 1
- Views: 5403
Context switch in FreeRTOS
I am thinking about implementing my own preemptive scheduler for ESP32. I'm sure I can only program a context switch in assembler. Since I don't want to deal with assembler for ESP32, but I had the idea to reuse some functions from FreeRTOS. I looked at the libraries and found these two functions in...