From owner-freebsd-questions@FreeBSD.ORG Wed Mar 27 16:31:48 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 2C6DFD58 for ; Wed, 27 Mar 2013 16:31:48 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-la0-x231.google.com (mail-la0-x231.google.com [IPv6:2a00:1450:4010:c03::231]) by mx1.freebsd.org (Postfix) with ESMTP id 93801B5A for ; Wed, 27 Mar 2013 16:31:47 +0000 (UTC) Received: by mail-la0-f49.google.com with SMTP id fs13so16021463lab.36 for ; Wed, 27 Mar 2013 09:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=MO0cjvEp3aDW8OAxwjWyasHjCJjUuqr6nf0+Zi6/EZw=; b=t/cKjw7/Ki/du0nADuqdLqqqXM9GCe8eCOuPCpgVWcyX4A0iY/nHbSY/Tu0sBUEma4 yFhtQsY34swZUulb3QX45IFGGkZ61pgWRc0qWiS+z4UysjTDKUW2lmZG50ZFI16nMvx/ mv8SYMr5El6wxNLwzGKiX/dxe6IDOmwJnv35DzJ7oLSf6Tek059OmY8t3CuaVI1Ion9h Z56XOlAHjX+cIyKJfheU+G5klC3dO0kzd7Fjq6ceryOVNYDoppNeFeLFnzH/UbF78Pxg s7wWJOpU8L+knePT3QLkvgK32gz/yNIxquSDKBtS8nPSmi/NbZKqIWopP5dYnthi92Sk y5Fw== X-Received: by 10.112.155.67 with SMTP id vu3mr6096030lbb.109.1364401906441; Wed, 27 Mar 2013 09:31:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.101.169 with HTTP; Wed, 27 Mar 2013 09:31:06 -0700 (PDT) In-Reply-To: References: From: Odhiambo Washington Date: Wed, 27 Mar 2013 19:31:06 +0300 Message-ID: Subject: Re: Release 9.1 and 3G usb Modem To: Leonardo Santagostini Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Mar 2013 16:31:48 -0000 On 27 March 2013 16:29, Leonardo Santagostini wrote: > Hello all. > > I have a latitude e6400 with FreeBSD Release 9.1. And i can't get the USB > modem working. > > I tried with umodem, u3g but no luck :( > [snip] > ugen7.2: at usbus7 > ugen7.2: at usbus7 (disconnected) > ugen7.2: at usbus7 > umodem0: on usbus7 > umodem0: data interface 0, has no CM over data, has no break > umodem1: on usbus7 > umodem1: data interface 1, has no CM over data, has no break > umodem2: on usbus7 > umodem2: data interface 2, has no CM over data, has no break > umass0: on usbus7 > umass0: SCSI over Bulk-Only; quirks = 0x0000 > umass0:9:0:-1: Attached to scbus9 > cd1 at umass-sim0 bus 0 scbus9 target 0 lun 0 > cd1: Removable CD-ROM SCSI-2 device > cd1: 40.000MB/s transfers > cd1: Attempt to query device size failed: NOT READY, Medium not present > umass1: on usbus7 > umass1: SCSI over Bulk-Only; quirks = 0x0000 > umass1:10:1:-1: Attached to scbus10 > da0 at umass-sim1 bus 1 scbus10 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: Attempt to query device size failed: NOT READY, Medium not present > [snip] Huawei modem, as I can see. That should be easy. Connect to the modem through HyperTerminal or Putty on a different machine Issue the command: AT^U2DIAG=0 That should disable the virtual CD-ROM and FreeBSD will see the modem. Here are some commands you'll need to know about: Do you have a Windows PC near you? If you plug the device into it and the virtualCD pops up, then it means command was not successful. The fact that fake CD still shows means command did not succeed! AT^u2diag=0 (all off) AT^u2diag=1 (CD on, SD off) AT^u2diag=256 (CD off, SD is on) AT^u2diag=255 (all on - including SD Card) AT^u2diag=276 (Factory Reset) A+CLAC - Display all available commands. However it does not tell you how to use them And here is a working ppp.conf - but you need to change the *bolded* values to match your end of the environment:) u3g: set device */dev/cuaU0.0* set server /var/run/3g-internet "" 0177 set speed 921600 set timeout 0 set authname *saf* set authkey *data* set dial "ABORT BUSY ABORT NO\\sTIMEOUT 2 \ \"\" \ AT OK-AT-OK \ AT+CFUN=1 OK-AT-OK \ AT+CMEE=2 OK-AT-OK \ AT+CSQ OK \ AT+CGDCONT=1,\\\"IP\\\",\\\"*APN*\\\" 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* Lemme know if you get stuck. Also, always give details about modem - manufacturer, model... -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler."