Skip to content

Conversation

@david-cermak
Copy link
Collaborator

Warning this is very WIP

             SLAVE micro                                  HOST micro
    \|/  +------------------+                           +------------------+
     |   | PRC   TLS-server |                           | TLS-client       |
     |   |    custom channel|                           | wifi_remote API  |
     +---+ WiFi       PPPoS |======== UART / SPI =======| PPPoS client     |
         |          (server)|                           |                  |
         +------------------+                           +------------------+

Throughput @SPI

  • TCP ~ 11 Mbps both ways
  • UDP ~ 15 Mpbs

@david-cermak david-cermak force-pushed the feat/eppp_rpc_example branch from 6dcc060 to 81f3dfc Compare January 12, 2024 10:38
Comment on lines +165 to +185
esp_netif_driver_ifconfig_t driver_cfg = {
.handle = h,
.transmit = transmit,
};
const esp_netif_driver_ifconfig_t *ppp_driver_cfg = &driver_cfg;

esp_netif_inherent_config_t base_netif_cfg = ESP_NETIF_INHERENT_DEFAULT_PPP();
char if_key[] = "EPPP0"; // netif key needs to be unique
if_key[sizeof(if_key) - 2 /* 2 = two chars before the terminator */ ] += s_eppp_netif_count++;
base_netif_cfg.if_key = if_key;
if (role == EPPP_CLIENT) {
base_netif_cfg.if_desc = "pppos_client";
} else {
base_netif_cfg.if_desc = "pppos_server";
}
esp_netif_config_t netif_ppp_config = { .base = &base_netif_cfg,
.driver = ppp_driver_cfg,
.stack = ESP_NETIF_NETSTACK_DEFAULT_PPP
};

esp_netif_t *netif = esp_netif_new(&netif_ppp_config);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

init

@david-cermak
Copy link
Collaborator Author

closing in favor of #814

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants