Is it possible to use PPP (point-to-point protocol) over UART, for example to connect a Raspberry Pi to a desktop computer by using UART to USB (FTDI) cable? I am trying to do something like this with my pinephone pro project:
- From desktop, connect to USB serial using
- I get a login console on the phone, so I login as root
- Now start a PPP direct session
At this point, it should start spitting out characters like
, however nothing shows up and after a while it gives up and exits. If I try this on my desktop PC, I see those characters. On the device, if I run tmux first, then run
, then the characters start appearing, but (I am guessing) since tmux interferes with the character stream, this doesn't work. I can't figure out why
does not use the console for starting the session? Any ideas? I tried various options in /etc/ttys like "3wire.115200 xterm", "std.115200 vt100" and all variations thereof (std doesn't work since there's no hardware flow control).
- From desktop, connect to USB serial using
Code:
sudo cu -s 115200 -l /dev/ttyU0
- Now start a PPP direct session
Code:
ppp -direct myprofile
At this point, it should start spitting out characters like
Code:
~}#!}!}!} }8}(}"}'}"}"}&} } } } }!}$}%}%}&n`u;~
Code:
ppp -direct
Code:
ppp