public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Momesso Andrea <momesso.andrea@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Wireless broadband modems - Working?
Date: Mon, 16 Mar 2009 08:43:30 +0000	[thread overview]
Message-ID: <20090316084330.GA552@cubotto.ath.cx> (raw)
In-Reply-To: <20090314204810.6e5451f4@krikkit.digimed.co.uk>

[-- Attachment #1: Type: text/plain, Size: 1334 bytes --]

On Sat, Mar 14, 2009 at 08:48:10PM +0000, Neil Bothwick wrote:
> On Sat, 14 Mar 2009 05:01:38 -0700, Grant wrote:
> 
> > Any better way to manage the connection than 'wvdial' and ctrl+c ?
> 
> I've used Kppp with simlar settings.
> 

If you can do it with wvdial, it can also be done using gentoo net.* init
scirpts.

For example this is the wvdial.conf for my gprs phone:

[Dialer Defaults]
#Modem = /dev/ttyACM0
Modem = /dev/rfcomm0
Baud = 460800
Init1 = ATZ
Init2 = AT+CGDCONT=1,"ip","internet.wind","",0,0
ISDN = 0
Modem Type = Analog Modem
Carrier Check = no
Phone = *99***1#
Username = wind
Password = wind

And this is the equivalent part in my /etc/conf.d/net

config_ppp2=( "ppp" )
link_ppp2="/dev/rfcomm0"
username_ppp2='wind'
password_ppp2='wind'
pppd_ppp2=(
"noauth"
"defaultroute"
"usepeerdns"
)

phone_number_ppp2=( "*99***1#" )

chat_ppp2="
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' '\rAT'
TIMEOUT 12
OK ATZ
OK 'AT+cgdcont=1,\"IP\",\"internet.wind\"'
OK 'ATDT\T'
TIMEOUT '60'
CONNECT ''
TIMEOUT '5'
'~--' ''
"

So, instead of using wvdial I just run "/etc/init.d/net.ppp2 start" and
"/etc/init.d/net.ppp2 stop".

---

TopperH
http://topperh.blogspot.com

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

      reply	other threads:[~2009-03-16  7:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-08  0:37 [gentoo-user] Wireless broadband modems - Working? Grant
2009-03-08 10:15 ` Neil Bothwick
2009-03-08 15:56   ` Grant
2009-03-08 16:59     ` Neil Bothwick
2009-03-09 15:27       ` Grant
2009-03-09 16:44         ` Paul Hartman
2009-03-14 12:01       ` Grant
2009-03-14 20:48         ` Neil Bothwick
2009-03-16  8:43           ` Momesso Andrea [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090316084330.GA552@cubotto.ath.cx \
    --to=momesso.andrea@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox