From owner-freebsd-questions@FreeBSD.ORG Sun Jun 30 10:29:45 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 5E47BD53 for ; Sun, 30 Jun 2013 10:29:45 +0000 (UTC) (envelope-from bourne.identity@hotmail.com) Received: from dub0-omc4-s9.dub0.hotmail.com (dub0-omc4-s9.dub0.hotmail.com [157.55.2.84]) by mx1.freebsd.org (Postfix) with ESMTP id 91DF21A30 for ; Sun, 30 Jun 2013 10:29:43 +0000 (UTC) Received: from DUB119-W2 ([157.55.2.72]) by dub0-omc4-s9.dub0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 30 Jun 2013 03:29:35 -0700 X-TMN: [Fj3n3fS1yYADkgk9EmnvebT4/x6DpjC8] X-Originating-Email: [bourne.identity@hotmail.com] Message-ID: From: Manish Jain To: Odhiambo Washington Subject: RE: Problems getting my Huawei 0x140b USB modem to speak to internet Date: Sun, 30 Jun 2013 11:29:35 +0100 Importance: Normal In-Reply-To: References: , , MIME-Version: 1.0 X-OriginalArrivalTime: 30 Jun 2013 10:29:35.0406 (UTC) FILETIME=[B76C84E0:01CE757C] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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:29:45 -0000 Thanks for your help. But before I attempt disabling the cdrom=2C I would l= ike to mention that I can already see the following devices (with correspon= ding .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=2C 30 Jun 2013 11:45:11 +0300 Subject: Re: Problems getting my Huawei 0x140b USB modem to speak to intern= et To: bourne.identity@hotmail.com Hi Manish=2C I seem to have missed the name - Huawei=2C sorry for that. Anyway=2C this should be easy to resolve - I suppose. With the virtual cd-rom (da0) presenting itself=2C FreeBSD will assume the = modem is simply a mass storage device and leave it at that. You need to dis= able the virtual cd-rom in order to use the modem. =0A= =0A= Use Hyperterminal or putty or minicom (does it still exist?) to disable it. Here are the AT commands to do that: 1. To disable=3B AT^U2DIAG=3D0 2. To re-enable: AT^U2DIAG=3D1 After disabling=2C 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 =0A= =0A= And here is a ppp.conf which you can use - just change the APN (safaricom) = to your provider's APN=2C change authname/authkey and also change the devic= e to what you'll have gotten from /dev/ =0A= =0A= Hope that helps! u3g: set device /dev/cuaU0.0 set server /var/run/3g-internet "" 0177 set speed 921600 set timeout 0 =0A= =0A= set authname saf set authkey data set dial "ABORT BUSY ABORT NO\\sTIMEOUT 2 \ \"\" \ AT OK-AT-OK \ AT+CFUN=3D1 OK-AT-OK \ AT+CMEE=3D2 OK-AT-OK \ AT+CSQ OK \ =0A= =0A= AT+CGDCONT=3D1=2C\\\"IP\\\"=2C\\\"safaricom\\\" OK \ ATD*99# CONNECT" set crtscts on disable vjcomp disable acfcomp disable deflate disable deflate24 disable pred1 =0A= =0A= 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 =0A= =0A= add default HISADDR # See ppp.link* On 30 June 2013 01:00=2C Manish Jain wrote: =0A= =0A= Hi=2C =0A= =0A= I thought the manufacturer name was mentioned in the original message : Hua= wei (0x12d1). Underneath is an extract from /var/log/messages : =0A= =0A= Jun 29 23:03:57 bourne kernel: u3g0: Found 3 ports. =0A= Jun 29 23:03:57 bourne kernel: umass0: on usbus1 =0A= Jun 29 23:03:57 bourne kernel: umass0: SCSI over Bulk-Only=3B quirks =3D 0= x0000 =0A= Jun 29 23:03:57 bourne kernel: umass0:0:0:-1: Attached to scbus0 =0A= Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. = CDB: 0 0 0 0 0 0 =0A= Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): CAM status: SCSI = Status Error =0A= Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): SCSI status: Chec= k Condition =0A= Jun 29 23:03:57 bourne kernel: (probe0:umass-sim0:0:0:0): SCSI sense: UNIT = ATTENTION asc:28=2C0 (Not ready to ready change=2C medium may have changed) =0A= Jun 29 23:03:57 bourne kernel: cd0 at umass-sim0 bus 0 scbus0 target 0 lun = 0 =0A= Jun 29 23:03:57 bourne kernel: cd0: Removable CD= -ROM SCSI-0 device =0A= Jun 29 23:03:57 bourne kernel: cd0: 1.000MB/s transfers =0A= Jun 29 23:03:57 bourne kernel: cd0: cd present [52352 x 2048 byte records] =0A= Jun 29 23:03:57 bourne kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun = 1 =0A= Jun 29 23:03:57 bourne kernel: da0: Removable Dire= ct Access SCSI-2 device =0A= Jun 29 23:03:57 bourne kernel: da0: 1.000MB/s transfers =0A= Jun 29 23:03:57 bourne kernel: da0: 7580MB (15523840 512 byte sectors: 255H= 63S/T 966C) =0A= =0A= =0A= Regards=2C =0A= =0A= Manish Jain =0A= +91-88064-38388 =0A= =0A= On 30-Jun-13 00:41=2C Odhiambo Washington wrote: =0A= =0A= What is the manufacturer/model of the modem? =0A= =0A= Is it detected by FreeBSD? Please show the /var/log/message entry for it. =0A= I have never heard of usb_modeswitch.conf in FreeBSD! =0A= =0A= =0A= =0A= On 29 June 2013 20:53=2C Manish Jain > wrote: =0A= =0A= Hello All=2C =0A= =0A= I have a a Huawei USB modem (product id 0x140b) which is connected =0A= to my PC. I downloaded and installed Draisberghof's usb_modeswitch. =0A= =0A= The following are the contents of my /etc/usb_modeswitch.conf : =0A= =0A= DisableSwitching=3D0 =0A= EnableLogging=3D1 =0A= DefaultVendor=3D0x12d1 =0A= DefaultProduct=3D0x140b =0A= TargetVendor=3D0x12d1 =0A= TargetProduct=3D0x1446 =0A= CheckSuccess=3D20 =0A= MessageEndpoint=3D0x0f =0A= MessageContent=3D"__555342431234567800000000000000__1106200000010000000= 00000000000__00" =0A= =0A= When I run usb_modeswitch -c /etc/usb_modeswitch.conf=2C I get the =0A= following message : =0A= =0A= Looking for target devices ... =0A= No devices in target mode or class found =0A= Looking for default devices ... =0A= found matching product ID =0A= adding device =0A= Found device in default mode=2C class or configuration (1) =0A= Accessing device 010 on bus 000 ... =0A= Getting the current device configuration ... =0A= OK=2C got current device configuration (1) =0A= Using interface number 0 =0A= Error: can't use storage command in MessageContent with interface 0=3B =0A= interface class is 255=2C should be 8. Aborting. =0A= =0A= =0A= So my FreeBSD box cannot speak to internet and I have boot MS-DOG =0A= for this holy purpose. Can someone please suggest a remedy ? =0A= =0A= Thanks in advance & =0A= -- =0A= Regards=2C =0A= =0A= Manish Jain =0A= +91-88064-38388 =0A= _________________________________________________ =0A= freebsd-questions@freebsd.org =0A= =0A= =0A= mailing list =0A= http://lists.freebsd.org/__mailman/listinfo/freebsd-__questions =0A= =0A= To unsubscribe=2C send any mail to =0A= "freebsd-questions-__unsubscribe@freebsd.org =0A= " =0A= =0A= =0A= =0A= =0A= -- =0A= Best regards=2C =0A= Odhiambo WASHINGTON=2C =0A= Nairobi=2CKE =0A= +254733744121/+254722743223 =0A= "I can't hear you -- I'm using the scrambler." =0A= =0A= --=20 Best regards=2C Odhiambo WASHINGTON=2C Nairobi=2CKE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler." =0A= =