← index #6541PR #4766
Related · medium · value 0.514
QUERY · ISSUE

ESP32: persistent PPP needed

openby emardopened 2020-10-11updated 2025-10-03
port-esp32

Currently PPP tries to connect during some time, around 10 seconds
and then it gives up. After the timeout, PPP's serial traffic which looks
like !}!}!} }4}"}&} } } } }%}&y is no longer active at serial line and other
end (pppd linux) can't establish connection after timeout.

In application I would need PPP to continuously be active
because if I restart PPP by deleting its instance and creating again
after ESP32 has connected to WiFi, then PPP will spoil WiFi routing
and I don't want this to happen.

Additionaly - is this bug? This won't manually restart PPP after timeout:

ppp.active(False)
ppp.active(True)

Does nothing, while I think it should reactivate PPP traffic to
attempt connection on serial line, the chars !}!}!} }4}"}&} } } } }%}&y
should appear again

CANDIDATE · PULL REQUEST

esp32/network_ppp: Add a timeout for closing PPP connection.

closedby dpgeorgeopened 2019-05-08updated 2019-05-17
port-esp32

A fix for issue #4708 .

A limitation with this: once the PPP is deactivated (ppp.active(0)) it cannot be used again. A new PPP instance must be created instead.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied