From owner-freebsd-stable@FreeBSD.ORG Wed May 7 16:01:09 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A9001065673 for ; Wed, 7 May 2008 16:01:09 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 0D2818FC12 for ; Wed, 7 May 2008 16:01:08 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jtm4n-0003zQ-U1 for freebsd-stable@freebsd.org; Wed, 07 May 2008 16:01:05 +0000 Received: from 92.50.96.215 ([92.50.96.215]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 May 2008 16:01:05 +0000 Received: from saper by 92.50.96.215 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 May 2008 16:01:05 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Marcin Cieslak Date: Wed, 07 May 2008 18:00:41 +0200 Lines: 106 Message-ID: <4821D229.1000300@system.pl> References: <481B4D08.7030507@moneybookers.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig5B28127641B3F429FCB3F5A4" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 92.50.96.215 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.13) Gecko/20080405 SeaMonkey/1.1.9 Mnenhy/0.7.5.0 In-Reply-To: <481B4D08.7030507@moneybookers.com> X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: mpd5.1 and HUAWEI 3g card (ubsa) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2008 16:01:09 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5B28127641B3F429FCB3F5A4 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable Stefan Lambrev wrote: > client1: > create bundle template B1 >=20 > create link static L1 modem > set modem device /dev/cuaU0 > set modem speed 115200 > set modem script DialPeer > set modem idle-script AnswerCall > set modem var $DialPrefix "DT" > set modem var $Telephone "*99***1#" > set link no pap chap eap > set link accept pap > set auth authname "MyLogin" > set auth password "MyPassword" > set link max-redial 1 > set link action bundle B1 > open Here's my config for another GPRS/UMTS provider: startup: default: eranet: log ipcp ipcp2 create bundle static B1 set iface route default set ipcp ranges 0.0.0.0/0 10.6.6.6/0 set ipcp disable req-pri-dns req-sec-dns < you probably=20 don'want this set ipcp disable req-pri-nbns req-sec-nbns < you probably=20 don'want this create link static L1 modem set modem device /dev/cuaU0 set modem speed 921600 set modem script GprsDial set modem watch -cd < ignore CD set link disable chap pap set link accept chap pap set link action bundle B1 set auth authname erainternet open My modem script: GprsDial: set $dialResult "FAIL" set $ConnectionSpeed "" if $ConnectTimeout =3D=3D "" set $ConnectTimeout 45 print "AT+CGDCONT=3D1,\"ip\",\"erainternet\"\r\n" << provider=20 specific match "ERR" DialErrorInit wait 5 print "AT+CGATT=3D1\r\n" match "ERR" DialErrorInit wait 5 print "ATDT*99#\r\n" match "NO CARRIER" DialAbortNoCar match "NO DIAL" DialAbortNoDial match "BUSY" DialAbortBusy regex "CONNECT *([0-9]*).*$" DialConnect match "ERR" DialErrorInit wait $ConnectTimeout log "No response from the modem after dialing." failure > Another issues is that after the first attempt to dial the modem freeze= s=20 > for few seconds and I see lot of those messages: > May 2 20:04:10 laptop kernel: ubsa_cfg_request: device request failed,= =20 > err=3DUSBD_ERR_STALLED (ignored) > but this should go to -usb probably :) This may be related to the driver. I am using stock ubsa (with patches=20 for Option GTMAX) without problems. One thing that may make things easier, can you change "link enable pap" to "link enable pap chap" ? --Marcin --------------enig5B28127641B3F429FCB3F5A4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQCVAwUBSCHSLD2W2v2wY27ZAQPJlgQAl8xk9JDifXH50KkhSWBOcTqvZlWhbv+b GXboxE5aFsNSdBWNvsPX9OIVGpW6ir0oQp39fMexnt2IzxEFzsGts8uDT914ioNh wQI+Jgd3CxGiBdVhbxFTogLwsLV5SWnaf/WTXdVnOhqzzMjEDJrua7EzfCwEaBS8 zsSJaiW88WY= =tWhG -----END PGP SIGNATURE----- --------------enig5B28127641B3F429FCB3F5A4--