Search found 52 matches

by ESP_cermak
Mon Oct 26, 2020 5:17 pm
Forum: ESP-IDF
Topic: esp_netif_receive eating all my ram (SLIP protocol) (IDFGH-4141)
Replies: 11
Views: 477

Re: esp_netif_receive eating all my ram (SLIP protocol) (IDFGH-4141)

Would be it acceptable to workaround this by increasing the MTU size here? https://github.com/espressif/esp-lwip/blob/2.1.2-esp/src/netif/slipif.c#L79 I might be wrong, but it looks like the extra bytes are simply dropped on netif level (here in slipif.c) before getting fragmented. Please note that ...
by ESP_cermak
Thu Oct 22, 2020 4:34 pm
Forum: ESP-IDF
Topic: esp_netif_receive eating all my ram (SLIP protocol) (IDFGH-4141)
Replies: 11
Views: 477

Re: esp_netif_receive eating all my ram (SLIP protocol) (IDFGH-4141)

Hi fpena_inusual,

One possible reason could be that the slip netif doesn't support packets longer than 256 bytes, as per limitation in lwIP (len parameter is uint8_t). There a fix ready for internal review: https://github.com/espressif/esp-idf/pull/5928, Could you please check if that helps?
by ESP_cermak
Mon Sep 21, 2020 3:30 pm
Forum: General Discussion
Topic: pppos_client bug/issue !! [IDFGH-3620]
Replies: 4
Views: 781

Re: pppos_client bug/issue !! [IDFGH-3620]

okay, understand now, thanks for explaining. There's indeed a race condition, as we first switch over to the command mode and then initialise the PPP network interface. This is true for releases v4.0 and earlier. There was a major refactoring of the PPP client and the esp-modem in v4.1 to use the es...
by ESP_cermak
Tue Sep 15, 2020 2:50 pm
Forum: ESP-IDF
Topic: Correct Way To Close a Websocket Socket
Replies: 4
Views: 376

Re: Correct Way To Close a Websocket Socket

Hi baldhead, I think you can use the below API of esp-http-server httpd_sess_trigger_close() to close the socket fd. Please note, that a new wss example was added to esp-idf including a very simple keep-alive mechanism. This hasn't been yet published to GitHub, but will soon appear on the master bra...
by ESP_cermak
Tue Sep 15, 2020 2:43 pm
Forum: ESP-IDF
Topic: Bridging ethernet and wifi
Replies: 3
Views: 306

Re: Bridging ethernet and wifi

Hi pascal21 Yes, that's correct. The IDF example "eth2ap" doesn't use network interfaces at all. It just connects the wifi driver to the ethernet driver, so the packets are directly passed from one to another without going through the TCP/IP stack (which has its benefits). Yes, it is possible to use...
by ESP_cermak
Mon Aug 24, 2020 3:04 pm
Forum: ESP-IDF
Topic: 4.3 server websocket - send_frame delayed when using async_send
Replies: 3
Views: 312

Re: 4.3 server websocket - send_frame delayed when using async_send

Hi Justin2020, Yes, this is the expected behaviour. The reason for that is that both `httpd_ws_send_frame()` and `httpd_queue_work()` are executed from the same thread, and in addition to that (since the example runs these functions directly from the httpd handlers) this is also the httpd main threa...
by ESP_cermak
Thu Jul 23, 2020 2:40 pm
Forum: ESP-IDF
Topic: ESP32 Websocket Server
Replies: 23
Views: 5034

Re: ESP32 Websocket Server

Hi Baldhead, For asynchronous send from the ws server, you can use `httpd_queue_work()` as shown in the example with ws_async_send(). This is triggered as a response to some request (for testing purpose only), but could be used any time for any connected client. It only needs the httpd handle, and t...
by ESP_cermak
Thu Jul 02, 2020 11:50 am
Forum: General Discussion
Topic: pppos_client bug/issue !! [IDFGH-3620]
Replies: 4
Views: 781

Re: pppos_client bug/issue !!

Hi tabulous,

This example just demonstrates interfacing modems that happen to be in command mode after startup, so it is okay to sync first using generic AT commands and then create and start the ppp network interface after that.
by ESP_cermak
Wed Apr 15, 2020 7:57 am
Forum: ESP-IDF
Topic: Selecting MQTT interface [IDF-1576]
Replies: 4
Views: 1546

Re: Selecting MQTT interface [IDF-1576]

Hi aderregibus lwIP uses the *default interface* for a socket to connect to, it is chosen based on user's API `netif_set_default()` provided the netif status is *up*. ESP abstraction to the interface routing (and to the TCP/IP stack in general) is a component called esp-netif, documented here: https...
by ESP_cermak
Mon Mar 23, 2020 12:46 pm
Forum: ESP-IDF 中文讨论版
Topic: mqtt ssl双向认证例程报-0x2700错误![IDFGH-2945]
Replies: 3
Views: 1869

Re: mqtt ssl双向认证例程报-0x2700错误![IDFGH-2945]

Hi suifan.

Please check this comment: https://github.com/espressif/esp-idf/is ... -458254140
AFAICT this is still true, the actual https://test.mosquitto.org/ssl/mosquitto.org.crt 's signature algorithm is sha1WithRSAEncryption

Go to advanced search