Date: Thu, 26 Jan 2012 20:00:13 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: Mike Tancsa <mike@sentex.net> Cc: questions <questions@freebsd.org> Subject: Re: FreeBSD 9 and 3G Modems Message-ID: <CAAdA2WOB0pQGvDfqxu9FjJpbCH69z1H%2BCctCteTz2G001oRW=w@mail.gmail.com> In-Reply-To: <4F217B5D.8010909@sentex.net> References: <CAAdA2WOgnyPT%2BtF_vB%2BLdWFarpXwOv%2BJWrsi2RVAFKpP9_f6aA@mail.gmail.com> <4F1EDE5E.4070608@sentex.net> <CAAdA2WP0r2ijBg%2Bxppr9HCZYz-HWpWt_QnH0rZvOHVTdDOucKQ@mail.gmail.com> <4F2025B0.70503@sentex.net> <CAAdA2WOnpG=WqtJDFD=bAAd7AYnQspTqS4gy1T%2BsFhreu9xeUA@mail.gmail.com> <4F217B5D.8010909@sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--0015174be73eaf57d504b7715238 Content-Type: text/plain; charset=UTF-8 On Thu, Jan 26, 2012 at 19:12, Mike Tancsa <mike@sentex.net> wrote: > On 1/26/2012 10:58 AM, Odhiambo Washington wrote: > > Hi, > > kldload u3g > > kldload umodem > > > > > > Done, although kldload u3g tells me that file already exists! Perhaps > > because I booted up with my Huawei dongle plugged in. > > kldstat | grep u3g shows me nothing though. > > Looks like its already defined in the kernel! > > > ugen6.2: <HUAWEI Mobile Huawei Technologies> at usbus6, cfg=0 md=HOST > > spd=HIGH (480Mbps) pwr=ON > > It sees it. > > > > > > > > > then > > > > sysctl -a dev.u3g > > > > > > [wash@pcbsd9] /home/wash# sysctl -a dev.u3g > > dev.u3g.0.%desc: Huawei Technologies HUAWEI Mobile, class 0/0, rev > > 2.00/0.00, addr 2 > > dev.u3g.0.%driver: u3g > > dev.u3g.0.%location: bus=1 hubaddr=1 port=6 devaddr=2 interface=0 > > dev.u3g.0.%pnpinfo: vendor=0x12d1 product=0x1001 devclass=0x00 > > devsubclass=0x00 sernum="" release=0x0000 mode=host intclass=0xff > > intsubclass=0xff > > intprotocol=0xff ttyname=U0 ttyports=3 > > dev.u3g.0.%parent: uhub > > More importantly, the driver sees it and has used cuaU0.* > > > and > > ls -l /dev/cuaU* > > > > > > [wash@pcbsd9] /home/wash# ls -l /dev/cuaU* > > crw-rw---- 1 uucp dialer 0, 117 Jan 26 18:23 /dev/cuaU0.0 > > crw-rw---- 1 uucp dialer 0, 118 Jan 26 18:23 /dev/cuaU0.0.init > > crw-rw---- 1 uucp dialer 0, 119 Jan 26 18:23 /dev/cuaU0.0.lock > > crw-rw---- 1 uucp dialer 0, 123 Jan 26 18:23 /dev/cuaU0.1 > > crw-rw---- 1 uucp dialer 0, 124 Jan 26 18:23 /dev/cuaU0.1.init > > crw-rw---- 1 uucp dialer 0, 125 Jan 26 18:23 /dev/cuaU0.1.lock > > crw-rw---- 1 uucp dialer 0, 129 Jan 26 18:23 /dev/cuaU0.2 > > crw-rw---- 1 uucp dialer 0, 130 Jan 26 18:23 /dev/cuaU0.2.init > > crw-rw---- 1 uucp dialer 0, 131 Jan 26 18:23 /dev/cuaU0.2.lock > > This is where you need to do a bit of experimenting. Some modems > register these "sub ports" and others do not. Some are for out of band > control and one will be the device you actually use in your ppp config. > The init string sort of depends on your carrier. But a basic one to try > in ppp.conf is below. For the set device line, you might need to change > it to /dev/cuaU0.1 or /dev/cuaU0.2 > > invoke with ppp -ddial u3g > > You might need the authname and auth key, you might not. For the context > you might need to change it from internet.com to something else. Again, > ask your carrier for that info. Try first without the CGDCONT line as > the default in the modem might do the trick. > > > u3g: > set device /dev/cuaU0.0 > set server /var/run/gprs-internet "" 0177 > set speed 921600 > set timeout 0 > set authname wapuser1 > set authkey wap > set dial "ABORT BUSY TIMEOUT 2 \ > \"\" \ > AT OK-AT-OK \ > AT+CFUN=1 OK-AT-OK \ > AT+CMEE=2 OK-AT-OK \ > AT+CSQ OK \ > AT+CGDCONT=1,\\\"IP\\\",\\\"internet.com\\\" OK \ > AT&v OK \ > ATD*99# CONNECT" > set crtscts on > disable vjcomp > disable acfcomp > disable deflate > disable deflate24 > disable pred1 > disable protocomp > disable mppe > disable ipv6cp > disable lqr > disable echo > #nat enable yes > enable dns > resolv writable > set dns 8.8.8.8 > set ifaddr 10.1.0.2/0 10.1.0.1/0 255.255.255.255 0.0.0.0 > add default HISADDR # See ppp.link* > > Hi Mike, I guess the internet.com in AT+CGDCONT=1,\\\"IP\\\",\\\"internet.com\\\" OK \ refer to the APN? I know I need to read ppp.conf again soon :) ppp.log: Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: default: set timeout 180 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: default: enable dns Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set device /dev/cuaU0.0 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set server /var/run/gprs-internet ******** 0177 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Warning: Local: bind: Address already in use Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Warning: set server: Failed 2 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set speed 921600 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set timeout 0 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set authname saf Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set authkey ******** Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set dial ABORT BUSY TIMEOUT 2 "" AT OK-AT-OK AT+CFUN=1 OK-AT-OK AT+CMEE=2 OK-AT-OK AT+CSQ OK AT+CGDCONT=1,\"IP\",\"safaricom\" OK AT&v OK ATD*99# CONNECT Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set crtscts on Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable vjcomp Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable acfcomp Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable deflate Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable deflate24 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable pred1 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable protocomp Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable mppe Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable ipv6cp Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable lqr Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: disable echo Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: enable dns Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: resolv writable Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set dns 8.8.8.8 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: set ifaddr 10.1.0.2/0 10.1.0.1/0 255.255.255.255 0.0.0.0 Jan 26 19:58:39 pcbsd9 ppp[7367]: tun0: Command: u3g: add default HISADDR Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Phase: PPP Started (ddial mode). Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Phase: bundle: Establish Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Phase: deflink: closed -> opening Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Phase: deflink: Connected! Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Phase: deflink: opening -> dial Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: AT^M^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: OK^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT+CFUN=1^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: AT+CFUN=1^M^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: OK^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT+CMEE=2^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: AT+CMEE=2^M^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: OK^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT+CSQ^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: AT+CSQ^M^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: +CSQ: 4,99^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: ^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: OK^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT+CGDCONT=1,"IP","safaricom"^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: AT+CGDCONT=1,"IP","safaricom"^M^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Received: OK^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Send: AT&v^M Jan 26 19:58:39 pcbsd9 ppp[7368]: tun0: Chat: Expect(2): OK Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Chat: Expect timeout Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Warning: Chat script failed Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: dial -> hangup Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Warning: deflink: Unable to set physical to speed 0 Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: Disconnected! Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Warning: deflink: Unable to set physical to speed 0 Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Warning: deflink: tcsetattr: Unable to restore device settings Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: Connect time: 2 secs: 0 octets in, 0 octets out Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: 0 packets in, 0 packets out Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: total 0 bytes/sec, peak 0 bytes/sec on Thu Jan 26 19:58:39 2012 Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: hangup -> opening Jan 26 19:58:41 pcbsd9 ppp[7368]: tun0: Phase: deflink: Enter pause (30) for redialing. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email. --0015174be73eaf57d504b7715238--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WOB0pQGvDfqxu9FjJpbCH69z1H%2BCctCteTz2G001oRW=w>