Date: Wed, 07 May 2008 18:00:41 +0200 From: Marcin Cieslak <saper@system.pl> To: freebsd-stable@freebsd.org Subject: Re: mpd5.1 and HUAWEI 3g card (ubsa) Message-ID: <4821D229.1000300@system.pl> In-Reply-To: <481B4D08.7030507@moneybookers.com> References: <481B4D08.7030507@moneybookers.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4821D229.1000300>