Re: Huawei 3g Modem

2008-01-28 Thread John Nielsen

Quoting David Schulz [EMAIL PROTECTED]:
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=ubsasektion=4manpath=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 ATFE0V1X1D2C1S0=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 5AT OK-AT-OK  
ATFE0V1X1D2C1S0=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:  ATFE0V1X1D2C1S0=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:  
ATFE0V1X1D2C1S0=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, 

Huawei 3g Modem

2008-01-27 Thread David Schulz

Hello,

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=ubsasektion=4manpath=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

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 ATFE0V1X1D2C1S0=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
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 5AT OK-AT-OK  
ATFE0V1X1D2C1S0=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:  
ATFE0V1X1D2C1S0=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:  
ATFE0V1X1D2C1S0=0^M^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: 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.


Additionally, after running ppp -ddial three, dmesg shows a lot of  
lines like these:

ucom0: ubsa_request: STALLED
ucom0: ubsa_request: STALLED


Can anyone help me to get this to work?
Thanks and best regards,
David

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]