Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[eppp]: Add wifi-connectivity example #481

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

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

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

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