mpd5.1 and HUAWEI 3g card (ubsa)

Marcin Cieslak saper at system.pl
Wed May 7 16:01:09 UTC 2008


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 273 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20080507/5db5fe7f/signature.pgp


More information about the freebsd-stable mailing list