From owner-freebsd-questions@FreeBSD.ORG Sun Jun 30 10:46:09 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 40E40152 for ; Sun, 30 Jun 2013 10:46:09 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-la0-x22c.google.com (mail-la0-x22c.google.com [IPv6:2a00:1450:4010:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id A36FB1AD8 for ; Sun, 30 Jun 2013 10:46:08 +0000 (UTC) Received: by mail-la0-f44.google.com with SMTP id er20so3497802lab.3 for ; Sun, 30 Jun 2013 03:46:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=+zHp3sVA5ySmUI+DFc365JkSpQ4lV0nCRC3uqtHC3hk=; b=bKzNyfUeu6ngaqFoxzLFV10uM9RN5wChdp1s4fst94OHuHyLdodkvZot/AtpYTkfjO N0TBC7MAP6exM/p1HeZb5segtk0lVvyehEv2HaXqFxEqkZltE+BKt+PljefO5wHRDQQO 2GOVNVaaeNTfd1UEWsh/zjr1yxmYV08zcqy28R3+ErzHqBMdhruZMLiX1KQ5Wl6or4nF O+YLFNb6prRUVNE/I3h+ZjGHJxciOy6CtZn8HSDPEEOgX6dUegRz7gk/cvXSXybHjaix dhcDylJ7GbM6SIwtZx40ia7G8llOVXN9R4E0xwroE37ZEFcDdF6yUc8INvizIpQUmydA B8ow== X-Received: by 10.152.115.175 with SMTP id jp15mr9993099lab.12.1372589167433; Sun, 30 Jun 2013 03:46:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.29.4 with HTTP; Sun, 30 Jun 2013 03:45:27 -0700 (PDT) In-Reply-To: References: From: Odhiambo Washington Date: Sun, 30 Jun 2013 13:45:27 +0300 Message-ID: Subject: Re: Problems getting my Huawei 0x140b USB modem to speak to internet To: Manish Jain 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: Sun, 30 Jun 2013 10:46:09 -0000 In that case, try disabling the cdrom and see if you make headway. On 30 June 2013 13:29, Manish Jain wrote: > Thanks for your help. But before I attempt disabling the cdrom, I would > like to mention that I can already see the following devices (with > corresponding .init and .lock files) : > > cuaU0.0 > cuaU0.1 > cuaU0.2 > cuau0 > > I am almost certain that cuaU0.0 is the modem. I will try disabling the > the cdrom and then switch mode. > > Thanks again & > Regards > > Manish Jain > > ------------------------------ > From: odhiambo@gmail.com > Date: Sun, 30 Jun 2013 11:45:11 +0300 > Subject: Re: Problems getting my Huawei 0x140b USB modem to speak to > internet > To: bourne.identity@hotmail.com > > > Hi Manish, > > I seem to have missed the name - Huawei, sorry for that. > > Anyway, this should be easy to resolve - I suppose. > > With the virtual cd-rom (da0) presenting itself, FreeBSD will assume the > modem is simply a mass storage device and leave it at that. You need to > disable the virtual cd-rom in order to use the modem. > Use Hyperterminal or putty or minicom (does it still exist?) to disable it. > Here are the AT commands to do that: > > 1. To disable; AT^U2DIAG=0 > 2. To re-enable: AT^U2DIAG=1 > > After disabling, you should be able to see a device node for the modem - > /dev/cuaU0.0 or something. They may be two devices or three. One of them is > the modem > > And here is a ppp.conf which you can use - just change the APN (safaricom) > to your provider's APN, change authname/authkey and also change the device > to what you'll have gotten from /dev/ > > Hope that helps! > > > 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\\\",\\\"*safaricom*\\\" 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* > > > > > On 30 June 2013 01:00, Manish Jain wrote: > > Hi, > > I thought the manufacturer name was mentioned in the original message : > Huawei (0x12d1). Underneath is an extract from /var/log/messages : > > Jun 29 23:03:57 bourne kernel: u3g0: Found 3 ports. > Jun 29 23:03:57 bourne kernel: umass0: class 0/0, rev 1.10/0.00, addr 2> on usbus1 > Jun 29 23:03:57 bourne kernel: umass0: SCSI over Bulk-Only; quirks = > 0x0000 > Jun 29 23:03:57 bourne kernel: umass0:0:0:-1: Attached to scbus0 > Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. > CDB: 0 0 0 0 0 0 > Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): CAM status: SCSI > Status Error > Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): SCSI status: > Check Condition > Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): SCSI sense: UNIT > ATTENTION asc:28,0 (Not ready to ready change, medium may have changed) > Jun 29 23:03:57 bourne kernel: cd0 at umass-sim0 bus 0 scbus0 target 0 lun > 0 > Jun 29 23:03:57 bourne kernel: cd0: Removable > CD-ROM SCSI-0 device > Jun 29 23:03:57 bourne kernel: cd0: 1.000MB/s transfers > Jun 29 23:03:57 bourne kernel: cd0: cd present [52352 x 2048 byte records] > Jun 29 23:03:57 bourne kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun > 1 > Jun 29 23:03:57 bourne kernel: da0: Removable > Direct Access SCSI-2 device > Jun 29 23:03:57 bourne kernel: da0: 1.000MB/s transfers > Jun 29 23:03:57 bourne kernel: da0: 7580MB (15523840 512 byte sectors: > 255H 63S/T 966C) > > > Regards, > > Manish Jain > +91-88064-38388 > > > On 30-Jun-13 00:41, Odhiambo Washington wrote: > > What is the manufacturer/model of the modem? > > Is it detected by FreeBSD? Please show the /var/log/message entry for it. > I have never heard of usb_modeswitch.conf in FreeBSD! > > > > On 29 June 2013 20:53, Manish Jain >> > wrote: > > Hello All, > > I have a a Huawei USB modem (product id 0x140b) which is connected > to my PC. I downloaded and installed Draisberghof's usb_modeswitch. > > The following are the contents of my /etc/usb_modeswitch.conf : > > DisableSwitching=0 > EnableLogging=1 > DefaultVendor=0x12d1 > DefaultProduct=0x140b > TargetVendor=0x12d1 > TargetProduct=0x1446 > CheckSuccess=20 > MessageEndpoint=0x0f > MessageContent="__**555342431234567800000000000000**__** > 110620000001000000000000000000**__00" > > > When I run usb_modeswitch -c /etc/usb_modeswitch.conf, I get the > following message : > > Looking for target devices ... > No devices in target mode or class found > Looking for default devices ... > found matching product ID > adding device > Found device in default mode, class or configuration (1) > Accessing device 010 on bus 000 ... > Getting the current device configuration ... > OK, got current device configuration (1) > Using interface number 0 > Error: can't use storage command in MessageContent with interface 0; > interface class is 255, should be 8. Aborting. > > > So my FreeBSD box cannot speak to internet and I have boot MS-DOG > for this holy purpose. Can someone please suggest a remedy ? > > Thanks in advance & > -- > Regards, > > Manish Jain > +91-88064-38388 > ______________________________**___________________ > freebsd-questions@freebsd.org > > > mailing list > http://lists.freebsd.org/__**mailman/listinfo/freebsd-__**questions > > > > > To unsubscribe, send any mail to > "freebsd-questions-__**unsubscribe@freebsd.org > > >" > > > > > > -- > Best regards, > Odhiambo WASHINGTON, > Nairobi,KE > +254733744121/+254722743223 > "I can't hear you -- I'm using the scrambler." > > > > > -- > Best regards, > Odhiambo WASHINGTON, > Nairobi,KE > +254733744121/+254722743223 > "I can't hear you -- I'm using the scrambler." > -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler."