On 9 December 2010 01:48, Thomas Bächler <[email protected]> wrote: > This is a chat file (would be generated on-the-fly by netcfg): > > ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO > DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED ABORT ERROR > '' ATX > OK 'ATZ' > TIMEOUT 5 > OK 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0' > OK AT+CGDCONT=1,"IP","internet" > OK ATH > OK ATE1 > OK 'ATM0L0DT *99***1#' CONNECT > > This is more complicated than it needs to be actually, some stuff might > be omitted. "internet" is the APN here, and *99***1# is the "phone > number", which is different in some cases (I think *99#). The rest never > has to be changed. > > Now, this can be launched using: > > /usr/sbin/pppd /dev/ttyUSB2 persist nodetach nobsdcomp nodeflate connect > "/usr/sbin/chat -s -S -v -f /path/to/chat/file/foo.chat" 460800 modem > crtscts defaultroute user " " password " " noaccomp nopcomp novj > novjccomp noccp noauth ipcp-accept-remote ipcp-accept-local noipdefault > usepeerdns
Thanks so much, I think I get it now. I'll be trying this out, and hopefully can organise a little bit of documentation for the beginners' guide.
