Date: Sun, 30 Jun 2013 11:29:35 +0100 From: Manish Jain <bourne.identity@hotmail.com> To: Odhiambo Washington <odhiambo@gmail.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: RE: Problems getting my Huawei 0x140b USB modem to speak to internet Message-ID: <DUB119-W27B014C0E3FF865BE6196F6700@phx.gbl> In-Reply-To: <CAAdA2WP0u8qq1nj9fq38Nkc%2B%2BqXZfPM4B%2BKOMmMjCPk_8UGRJA@mail.gmail.com> References: <BLU0-SMTP435AA0F73514D52825A751AF6770@phx.gbl>, <CAAdA2WPATAs1wm=F97y2z-pFBa4=QpGw6LWD4sBt1Oh_WcAgeA@mail.gmail.com> <BLU0-SMTP1686BA0A884007E3260E3B0F6770@phx.gbl>, <CAAdA2WP0u8qq1nj9fq38Nkc%2B%2BqXZfPM4B%2BKOMmMjCPk_8UGRJA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <bourne.identity@hotmail.com> 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: <HUAWEI TECHNOLOGIES HUAWEI Mobile= =2C class 0/0=2C rev 1.10/0.00=2C addr 2> 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: <HUAWEI Mass Storage 2.31> 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: <HUAWEI SD Storage 2.31> 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 <bourne.identity@hotmail.com =0A= <mailto:bourne.identity@hotmail.com>> 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 <mailto:freebsd-questions@freebsd.org> =0A= =0A= =0A= mailing list =0A= http://lists.freebsd.org/__mailman/listinfo/freebsd-__questions =0A= <http://lists.freebsd.org/mailman/listinfo/freebsd-questions> =0A= To unsubscribe=2C send any mail to =0A= "freebsd-questions-__unsubscribe@freebsd.org =0A= <mailto:freebsd-questions-unsubscribe@freebsd.org>" =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= =
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DUB119-W27B014C0E3FF865BE6196F6700>