Sming icon indicating copy to clipboard operation
Sming copied to clipboard

PPP

Open israellot opened this issue 7 years ago • 3 comments

LWIP PPP implementation could be included. It would be a nice feature to plug a GPRS modem on serial and talk PPP to it.

israellot avatar Mar 02 '17 03:03 israellot

Can you share more details about that?

slaff avatar Mar 02 '17 08:03 slaff

I saw some implementations that can be used as a start. So far I can see we need the sio functions for the serial communication

sio_fd_t 	sio_open (u8_t devnum)
void 	sio_send (u8_t c, sio_fd_t fd)
u8_t 	sio_recv (sio_fd_t fd)
u32_t 	sio_read (sio_fd_t fd, u8_t *data, u32_t len)
u32_t 	sio_tryread (sio_fd_t fd, u8_t *data, u32_t len)
u32_t 	sio_write (sio_fd_t fd, u8_t *data, u32_t len)
void 	sio_read_abort (sio_fd_t fd)

which can be mapped easily to our existing HardwareSerial functions.

And probably we can use as a base something like that https://github.com/MarioViara/gprs. So the more I think about it the more I like the idea.

The only thing that we need now are volunteers to implement that :) Anyone willing to try it?

slaff avatar Mar 02 '17 12:03 slaff

https://github.com/espressif/ESP8266_RTOS_SDK/tree/master/third_party/lwip/netif/ppp Here's the ppp code on espressif RTOS sdk. It is not present on non-os version. I wonder if that's a starting point.

israellot avatar Mar 02 '17 14:03 israellot