From owner-freebsd-questions@FreeBSD.ORG Mon Jan 28 19:06:49 2008 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 73DC316A421 for ; Mon, 28 Jan 2008 19:06:49 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 49EED13C4EB for ; Mon, 28 Jan 2008 19:06:49 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (jn@ns1 [69.55.238.237]) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id m0SIlqqU088234; Mon, 28 Jan 2008 13:47:53 -0500 (EST) (envelope-from lists@jnielsen.net) Received: (from www@localhost) by ns1.jnielsen.net (8.12.9p2/8.12.9/Submit) id m0SIlqma088233; Mon, 28 Jan 2008 13:47:52 -0500 (EST) (envelope-from lists@jnielsen.net) X-Authentication-Warning: ns1.jnielsen.net: www set sender to lists@jnielsen.net using -f Received: from nc-2wac-zop10.wachovia.com (nc-2wac-zop10.wachovia.com [162.111.235.22]) by newwebmail.jnielsen.net (Horde MIME library) with HTTP; Mon, 28 Jan 2008 13:47:52 -0500 Message-ID: <20080128134752.mu1ly3ic00wokkcg@newwebmail.jnielsen.net> Date: Mon, 28 Jan 2008 13:47:52 -0500 From: John Nielsen To: David Schulz References: <7FC778E8-EA80-485A-8599-3BF5ACC096B8@tca-cable-connector.com> In-Reply-To: <7FC778E8-EA80-485A-8599-3BF5ACC096B8@tca-cable-connector.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.4) / FreeBSD-4.9 X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: questions@freebsd.org Subject: Re: Huawei 3g Modem 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: Mon, 28 Jan 2008 19:06:49 -0000 Quoting David Schulz : > i have a Huawei EC-325 Modem which is connected to my Computer > running FreeBSD 6.3 with a mini-USB Cable, and supposedly is > supported by the ubsa driver, as described here > "http://www.freebsd.org/cgi/man.cgi?query=ubsa&sektion=4&manpath=FreeBSD+6.3-RELEASE > ". > > I modified my /boot/loader.conf to yield the following: > ubsa_load="YES" > ucom_load="YES" > > After rebooting, kldstat shows the above modules loaded. > > When i re-insert my Huawei Modem, dmesg displays: > ucom0: Huawei Technologies Huawei Mobile, rev 1.01/0.00, addr 2 So the driver is attaching. That's good. > My ppp.conf looks like this: > default: > set log Phase Chat LCP IPCP CCP tun command > ident user-ppp VERSION (built COMPILATIONDATE) > > set device /dev/cuaU0 > set speed 230400 > set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ > \"\" AT OK-AT-OK AT&FE0V1X1&D2&C1S0=0 OK \\dATDT\\T TIMEOUT > 40 CONNECT" > set timeout 180 # 3 minute idle timer (the default) > enable dns # request DNS info (for resolv.conf) > > three: > set phone \#77 Are you sure it's not #777? > set authname card > set authkey card > disable ipv6cp > set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > add default HISADDR > > But when i run ppp -ddial three , ppp.log reports this output: > > Jan 28 15:32:57 testbed ppp[824]: Phase: Using interface: tun0 > Jan 28 15:32:57 testbed ppp[824]: Phase: deflink: Created in closed state > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: default: ident user- > ppp VERSION (built COMPILATIONDATE) > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: default: set device > / dev/cuaU0 > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: default: set speed 230400 > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: default: set dial > ABORT BUSY ABORT NO\sCARRIER TIMEOUT 5 "" AT OK-AT-OK > AT&FE0V1X1&D2&C1S0=0 OK \dATDT\T TIMEOUT 40 CONNECT > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: default: set timeout 180 > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: default: enable dns > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: three: set phone #77 > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: three: set authname card > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: three: set authkey ******** > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: three: disable ipv6cp > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: three: set ifaddr > 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 > Jan 28 15:32:57 testbed ppp[824]: tun0: Command: three: add default HISADDR > Jan 28 15:32:57 testbed ppp[825]: tun0: Phase: PPP Started (ddial mode). > Jan 28 15:32:57 testbed ppp[825]: tun0: Phase: bundle: Establish > Jan 28 15:32:57 testbed ppp[825]: tun0: Phase: deflink: closed -> opening > Jan 28 15:32:57 testbed ppp[825]: tun0: Phase: deflink: Connected! > Jan 28 15:32:57 testbed ppp[825]: tun0: Phase: deflink: opening -> dial > Jan 28 15:32:57 testbed ppp[825]: tun0: Chat: Phone: #77 > Jan 28 15:32:57 testbed ppp[825]: tun0: Chat: Send: AT^M > Jan 28 15:32:57 testbed ppp[825]: tun0: Chat: Expect(5): OK > Jan 28 15:32:57 testbed ppp[825]: tun0: Chat: Received: ^M > Jan 28 15:32:57 testbed ppp[825]: tun0: Chat: Received: OK^M > Jan 28 15:32:57 testbed ppp[825]: tun0: Chat: Send: AT&FE0V1X1&D2&C1S0=0^M > Jan 28 15:32:57 testbed ppp[825]: tun0: Chat: Expect(5): OK > Jan 28 15:32:57 testbed ppp[825]: tun0: Chat: Received: > AT&FE0V1X1&D2&C1S0=0^M^M > Jan 28 15:32:57 testbed ppp[825]: tun0: Chat: Received: OK^M This all looks great and indicates that communication with the modem is indeed happening. > Jan 28 15:32:57 testbed ppp[825]: tun0: Chat: Send: ATDT#77^M > Jan 28 15:32:59 testbed ppp[825]: tun0: Chat: Expect(40): CONNECT > Jan 28 15:33:12 testbed ppp[825]: tun0: Chat: Received: ^M > Jan 28 15:33:12 testbed ppp[825]: tun0: Chat: Received: NO CARRIER^M > Jan 28 15:33:12 testbed ppp[825]: tun0: Warning: Chat script failed > Jan 28 15:33:12 testbed ppp[825]: tun0: Phase: deflink: dial -> hangup > Jan 28 15:33:12 testbed ppp[825]: tun0: Warning: deflink: Unable to > set physical to speed 0 > Jan 28 15:33:12 testbed ppp[825]: tun0: Phase: deflink: Disconnected! > Jan 28 15:33:12 testbed ppp[825]: tun0: Warning: deflink: Unable to > set physical to speed 0 > Jan 28 15:33:14 testbed ppp[825]: tun0: Phase: deflink: Connect time: > 17 secs: 0 octets in, 0 octets out > Jan 28 15:33:14 testbed ppp[825]: tun0: Phase: deflink: 0 packets in, > 0 packets out > Jan 28 15:33:14 testbed ppp[825]: tun0: Phase: total 0 bytes/sec, > peak 0 bytes/sec on Mon Jan 28 15:32:57 2008 > Jan 28 15:33:14 testbed ppp[825]: tun0: Phase: deflink: hangup -> opening > Jan 28 15:33:14 testbed ppp[825]: tun0: Phase: deflink: Enter pause > (30) for redialing. Obviously things start to go south here, but it could just be a matter of tuning your ppp setup and verifying all your information. Running ppp in the foreground with a manual terminal session is a good place to start troubleshooting. > Additionally, after running ppp -ddial three, dmesg shows a lot of > lines like these: > ucom0: ubsa_request: STALLED > ucom0: ubsa_request: STALLED > .... I've seen these before and in my case (using a different 3g modem) they were harmless. > Can anyone help me to get this to work? > Thanks and best regards, Focus your efforts on the ppp documentation and look for working examples in the archives. This thread (started by me) is an example, and also mentions the STALLED messages: http://groups.google.com/group/mailing.freebsd.mobile/browse_thread/thread/8f47c04e4d3058ed/65791d94e7a405e4?lnk=st&q=john+nielsen+freebsd+ppp+v620#65791d94e7a405e4 I'm not a ppp guru by any means, so post back to the list the next time you get stuck (or if you get it working!) with what you changed/tried/learned.. JN