From owner-freebsd-questions@FreeBSD.ORG Thu Jan 26 17:00:55 2012 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A20A9106566B for ; Thu, 26 Jan 2012 17:00:55 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 18BE08FC17 for ; Thu, 26 Jan 2012 17:00:54 +0000 (UTC) Received: by eaaa14 with SMTP id a14so304257eaa.13 for ; Thu, 26 Jan 2012 09:00:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=/D6gwbLi9miegV+iSM0I1zhCnA8csHVioCT6FqhBPjs=; b=WK6/3j3Zclr5sPdn/d9VISTgvN8+ClwlZlK9r2ILzkow+wwT4n0b1aG5OnK+19iDXQ 7ED+vWuAylNyBrLtWWCWHrolyvWURxJ6keuPQbwHaHAJiBy2lt2XXZX9YDZimnD9vJeH i05+jYMgjU0S8ZJmW/knPCSomYFwkKszPpcnU= Received: by 10.213.22.10 with SMTP id l10mr536167ebb.126.1327597253252; Thu, 26 Jan 2012 09:00:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.34.5 with HTTP; Thu, 26 Jan 2012 09:00:13 -0800 (PST) In-Reply-To: <4F217B5D.8010909@sentex.net> References: <4F1EDE5E.4070608@sentex.net> <4F2025B0.70503@sentex.net> <4F217B5D.8010909@sentex.net> From: Odhiambo Washington Date: Thu, 26 Jan 2012 20:00:13 +0300 Message-ID: To: Mike Tancsa Content-Type: multipart/related; boundary=0015174be73eaf57d504b7715238 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions Subject: Re: FreeBSD 9 and 3G Modems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2012 17:00:55 -0000 --0015174be73eaf57d504b7715238 Content-Type: text/plain; charset=UTF-8 On Thu, Jan 26, 2012 at 19:12, Mike Tancsa wrote: > On 1/26/2012 10:58 AM, Odhiambo Washington wrote: > > Hi, > > kldload u3g > > kldload umodem > > > > > > Done, although kldload u3g tells me that file already exists! Perhaps > > because I booted up with my Huawei dongle plugged in. > > kldstat | grep u3g shows me nothing though. > > Looks like its already defined in the kernel! > > > ugen6.2: at usbus6, cfg=0 md=HOST > > spd=HIGH (480Mbps) pwr=ON > > It sees it. > > > > > > > > > then > > > > sysctl -a dev.u3g > > > > > > [wash@pcbsd9] /home/wash# sysctl -a dev.u3g > > dev.u3g.0.%desc: Huawei Technologies HUAWEI Mobile, class 0/0, rev > > 2.00/0.00, addr 2 > > dev.u3g.0.%driver: u3g > > dev.u3g.0.%location: bus=1 hubaddr=1 port=6 devaddr=2 interface=0 > > dev.u3g.0.%pnpinfo: vendor=0x12d1 product=0x1001 devclass=0x00 > > devsubclass=0x00 sernum="" release=0x0000 mode=host intclass=0xff > > intsubclass=0xff > > intprotocol=0xff ttyname=U0 ttyports=3 > > dev.u3g.0.%parent: uhub > > More importantly, the driver sees it and has used cuaU0.* > > > and > > ls -l /dev/cuaU* > > > > > > [wash@pcbsd9] /home/wash# ls -l /dev/cuaU* > > crw-rw---- 1 uucp dialer 0, 117 Jan 26 18:23 /dev/cuaU0.0 > > crw-rw---- 1 uucp dialer 0, 118 Jan 26 18:23 /dev/cuaU0.0.init > > crw-rw---- 1 uucp dialer 0, 119 Jan 26 18:23 /dev/cuaU0.0.lock > > crw-rw---- 1 uucp dialer 0, 123 Jan 26 18:23 /dev/cuaU0.1 > > crw-rw---- 1 uucp dialer 0, 124 Jan 26 18:23 /dev/cuaU0.1.init > > crw-rw---- 1 uucp dialer 0, 125 Jan 26 18:23 /dev/cuaU0.1.lock > > crw-rw---- 1 uucp dialer 0, 129 Jan 26 18:23 /dev/cuaU0.2 > > crw-rw---- 1 uucp dialer 0, 130 Jan 26 18:23 /dev/cuaU0.2.init > > crw-rw---- 1 uucp dialer 0, 131 Jan 26 18:23 /dev/cuaU0.2.lock > > This is where you need to do a bit of experimenting. Some modems > register these "sub ports" and others do not. Some are for out of band > control and one will be the device you actually use in your ppp config. > The init string sort of depends on your carrier. But a basic one to try > in ppp.conf is below. For the set device line, you might need to change > it to /dev/cuaU0.1 or /dev/cuaU0.2 > > invoke with ppp -ddial u3g > > You might need the authname and auth key, you might not. For the context > you might need to change it from internet.com to something else. Again, > ask your carrier for that info. Try first without the CGDCONT line as > the default in the modem might do the trick. > > > u3g: > set device /dev/cuaU0.0 > set server /var/run/gprs-internet "" 0177 > set speed 921600 > set timeout 0 > set authname wapuser1 > set authkey wap > set dial "ABORT BUSY TIMEOUT 2 \ > \"\" \ > AT OK-AT-OK \ > AT+CFUN=1 OK-AT-OK \ > AT+CMEE=2 OK-AT-OK \ > AT+CSQ OK \ > AT+CGDCONT=1,\\\"IP\\\",\\\"internet.com\\\" OK \ > AT&v OK \ > ATD*99# CONNECT" > set crtscts on > disable vjcomp > disable acfcomp > disable deflate > disable deflate24 > disable pred1 > disable protocomp > disable mppe > disable ipv6cp > disable lqr > disable echo > #nat enable yes > enable dns > resolv writable > set dns 8.8.8.8 > set ifaddr 10.1.0.2/0 10.1.0.1/0 255.255.255.255 0.0.0.0 > add default HISADDR # See ppp.link* > > Hi Mike, I guess the internet.com in AT+CGDCONT=1,\\\"IP\\\",\\\"internet.com\\\" OK \ refer to the APN? I know I need to read ppp.conf again soon :) ppp.log: Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: default: set timeout 180 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: default: enable dns Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set device /dev/cuaU0.0 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set server /var/run/gprs-internet ******** 0177 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Warning: Local: bind: Address already in use Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Warning: set server: Failed 2 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set speed 921600 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set timeout 0 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set authname saf Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set authkey ******** Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set dial ABORT BUSY TIMEOUT 2 "" AT OK-AT-OK AT+CFUN=1 OK-AT-OK AT+CMEE=2 OK-AT-OK AT+CSQ OK AT+CGDCONT=1,\"IP\",\"safaricom\" OK AT&v OK ATD*99# CONNECT Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set crtscts on Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable vjcomp Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable acfcomp Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable deflate Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable deflate24 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable pred1 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable protocomp Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable mppe Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable ipv6cp Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable lqr Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable echo Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: enable dns Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: resolv writable Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set dns 8.8.8.8 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set ifaddr 10.1.0.2/0 10.1.0.1/0 255.255.255.255 0.0.0.0 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: add default HISADDR Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Phase: PPP Started (ddial mode). Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Phase: bundle: Establish Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Phase: deflink: closed -> opening Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Phase: deflink: Connected! Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Phase: deflink: opening -> dial Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: AT^M^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: OK^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT+CFUN=1^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: AT+CFUN=1^M^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: OK^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT+CMEE=2^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: AT+CMEE=2^M^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: OK^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT+CSQ^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: AT+CSQ^M^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: +CSQ: 4,99^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: ^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: OK^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT+CGDCONT=1,"IP","safaricom"^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: AT+CGDCONT=1,"IP","safaricom"^M^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: OK^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT&v^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Chat: Expect timeout Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Warning: Chat script failed Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: dial -> hangup Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Warning: deflink: Unable to set physical to speed 0 Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: Disconnected! Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Warning: deflink: Unable to set physical to speed 0 Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Warning: deflink: tcsetattr: Unable to restore device settings Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: Connect time: 2 secs: 0 octets in, 0 octets out Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: 0 packets in, 0 packets out Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Thu Jan 26 19:58:39 2012 Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: hangup -> opening Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: Enter pause (30) for redialing. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email. --0015174be73eaf57d504b7715238--