Date: Sun, 30 Jun 2013 13:45:27 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: Manish Jain <bourne.identity@hotmail.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: <CAAdA2WMmr8LZZtjUVe%2BOBeMKcCTWA2PsxApF08C6xFxZ5HrRhg@mail.gmail.com> In-Reply-To: <DUB119-W27B014C0E3FF865BE6196F6700@phx.gbl> 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> <DUB119-W27B014C0E3FF865BE6196F6700@phx.gbl>
next in thread | previous in thread | raw e-mail | index | archive | help
In that case, try disabling the cdrom and see if you make headway. On 30 June 2013 13:29, Manish Jain <bourne.identity@hotmail.com> 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 <bourne.identity@hotmail.com> 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: <HUAWEI TECHNOLOGIES HUAWEI Mobile, > 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: <HUAWEI Mass Storage 2.31> 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: <HUAWEI SD Storage 2.31> 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 <bourne.identity@hotmail.com > <mailto:bourne.identity@**hotmail.com <bourne.identity@hotmail.com>>> > 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 <mailto:freebsd-questions@**freebsd.org<freebsd-questions@freebsd.org> > > > mailing list > http://lists.freebsd.org/__**mailman/listinfo/freebsd-__**questions<http://lists.freebsd.org/__mailman/listinfo/freebsd-__questions> > > <http://lists.freebsd.org/**mailman/listinfo/freebsd-**questions<http://lists.freebsd.org/mailman/listinfo/freebsd-questions> > > > To unsubscribe, send any mail to > "freebsd-questions-__**unsubscribe@freebsd.org<freebsd-questions-__unsubscribe@freebsd.org> > <mailto:freebsd-questions-**unsubscribe@freebsd.org<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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WMmr8LZZtjUVe%2BOBeMKcCTWA2PsxApF08C6xFxZ5HrRhg>