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
[-- Attachment #1 --]
Stefan Lambrev wrote:
> client1:
> create bundle template B1
>
> 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
don'want this
set ipcp disable req-pri-nbns req-sec-nbns < you probably
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 == "" set $ConnectTimeout 45
print "AT+CGDCONT=1,\"ip\",\"erainternet\"\r\n" << provider
specific
match "ERR" DialErrorInit
wait 5
print "AT+CGATT=1\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 freezes
> for few seconds and I see lot of those messages:
> May 2 20:04:10 laptop kernel: ubsa_cfg_request: device request failed,
> err=USBD_ERR_STALLED (ignored)
> but this should go to -usb probably :)
This may be related to the driver. I am using stock ubsa (with patches
for Option GTMAX) without problems.
One thing that may make things easier, can you change
"link enable pap" to "link enable pap chap" ?
--Marcin
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
iQCVAwUBSCHSLD2W2v2wY27ZAQPJlgQAl8xk9JDifXH50KkhSWBOcTqvZlWhbv+b
GXboxE5aFsNSdBWNvsPX9OIVGpW6ir0oQp39fMexnt2IzxEFzsGts8uDT914ioNh
wQI+Jgd3CxGiBdVhbxFTogLwsLV5SWnaf/WTXdVnOhqzzMjEDJrua7EzfCwEaBS8
zsSJaiW88WY=
=tWhG
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4821D229.1000300>
