With wvdial
wvdial.conf:
[Dialer apbw]call with: "wvdial apbw"
Modem = /dev/ttyACM0
Baud = 460800
Phone = #777
Username = apbw
Password = apbw
Stupid Mode = 0
Auto DNS = on
PPPD Options = crtcts lock defaultroute
With pppd directly
/etc/ppp/chat-apbw:
ABORT "NO CARRIER"/etc/ppp/chap-secret:
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
"" "ATZ"
OK "ATDT#777"
"CONNECT"
apbw * apbw/etc/ppp/pap/secret:
apbw * apbw/etc/ppp/peer/apbw:
/dev/ttyACM0 460800call with: "pppd call apbw"
crtscts
modem
user apbw
connect '/usr/sbin/chat -v -f /etc/ppp/chat-apbw'
login
defaultroute
noipdefault
lock