jimmyw/esp-idf-ppp-server

0.0.1

uploaded 7 months ago
Connect two ESP32 together with serial uart, and set up a PPP ip network between them.

readme

# PPP SERVER example

Instructions

Check out this repo in two locations, one client and one server.

On both sides specify:

* EXAMPLE_MODEM_DEVICE_NULLMODEM
   Will directly connect ppp without any AT crap

* EXAMPLE_MODEM_PPP_BAUDRATE
   to your desired baudrate

*EXAMPLE_MODEM_PPP_FLOW
    0: none, 1: software, 2: hardware


* EXAMPLE_MODEM_UART_TX_PIN
   Default 16
* EXAMPLE_MODEM_UART_RX_PIN
   Default 17
* EXAMPLE_MODEM_UART_RTS_PIN
   Default 27
* EXAMPLE_MODEM_UART_CTS_PIN
   Default 23

* CONFIG_EXAMPLE_LCP_ECHO
   To detect if link goes down

On the server side:
* Apply esp-idf-ppp_server.patch
* Enable CONFIG_LWIP_PPP_SERVER_SUPPORT

Connect both chips togheter, remember to cross TX/TX and RTS/CTX

On boot, client will automatlicly connect to server

Run ping or iptraf to test the link.

Links

Supports all targets

Maintainer

  • Jimmy Wennlund <jimmy@wennlund.nu>

License: Apache-2.0

To add this component to your project, run:

idf.py add-dependency "jimmyw/esp-idf-ppp-server^0.0.1"

or download archive

Dependencies

  • ESP-IDF >=5.0.0
  • Examples:

    ppp-server-example

    To create a project from this example, run:

    idf.py create-project-from-example "jimmyw/esp-idf-ppp-server^0.0.1:ppp-server-example"

    or download archive

    Stats

    • Downloaded in total
      Downloaded in total 12 times
    • Downloaded this version
      This version: 12 times

    Badge

    jimmyw/esp-idf-ppp-server version: 0.0.1
    |