Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jun 2011 11:20:26 +0530
From:      Manish Jain <invalid.pointer@gmail.com>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Can someone please help me set up my tata-photon (huawei) modem ?
Message-ID:  <4E0ABD22.50401@gmail.com>
In-Reply-To: <4E0A2AA7.8050507@gmail.com>
References:  <4E098E1B.2000700@gmail.com> <20110628184613.GA1074@tiny> <4E0A2AA7.8050507@gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

   Hello Matthias,
   I got it to work !  I symlinked /usr/local/bin/tclsh8.2 as tclsh, but
   that was probably not the only factor involved. In a streak of
   unintended brilliance, I had set the device in ppp.conf as /dev/cuaU0,
   whereas there is no such device - as /var/log/ppp.log complained.
   (Thanks for your suggestion for looking up the log). I changed
   /dev/cuaU0 to /dev/cuaU0.0, as a matter of courtesy. Now my FreeBSD
   box is connected to the internet and I don't have to boot into XP
   again (as long as I can hope).
   Thanks again
   Manish Jain
   On 29-Jun-11 00:55, Manish Jain wrote:

   Hello Matthias,
   Yes, I do have /dev/cuaU0.0 along with corresponding lock and init
   files, although I cannot give you the output you want right now since
   I am booted into XP with the FreeBSD 8.2 dvd image being downloaded.
   (This will hopefully finish in about 15 hours, as cygwin::ncftpget
   suggests).
   I also tried a few other things, most notably installing
   usb_modeswitch, and putting this into /etc/devd.conf :
   attach 100 {
   device-name "ugen[0-9]+";
   match "vendor" "0x12d1";
   match "product" "0x1446";
   action "/usr/local/bin/usb_modeswitch";
   };
   Running kldload for u3g and ucom indicates they are both already
   loaded. Running usb_modeswitch seems to have also generated some
   /dev/ttyU<n>.<n> files, along with corresponding lock and init files -
   just like the cua entries.
   The only thing that seems out of place with the current setup is that
   usb_modeswitch's wrapper (usb_modeswitch_dispatcher) needs
   /usr/local/bin/tclsh, and for some reason the FreeBSD installer
   installed it as /usr/local/bin/tclsh8.2
   I'll try fixing the above tomorrow and will try out anything
   you/someone else might have to suggest. BTW, I made a slight error in
   my original message. My system's release version is 8.1, not 8.0.
   Thank you &
   Regards
   Manish Jain
   [1]invalid.pointer@gmail.com
   On 29-Jun-11 00:16, Matthias Apitz wrote:

El día Tuesday, June 28, 2011 a las 01:47:31PM +0530, Manish Jain escribió:

   Hi all,
   My tata-photon (huawei) modem works painlessly on Win XP. Every
   setting is auto (including getting the nameserver). The auth protocol
   is CHAP. But when I boot into FreeBSD 8.0 (stable), and run 'ppp -auto
   pmdemand' followed by 'ping [1]www.google.com' (or yahoo or any other
   site, for that matter), I always get "Hostname lookup failure". BTW, I
   don't have an /etc/resolv.conf. I only configured ppp.conf (please see
   below for details). Can someone please help me set up the modem so
   that I can dial out and connect to the internet from my FreeBSD box ?
   Thanks in advance.
   Manish Jain
   This is my ppp.conf :

...

Hello Manish,

Before digging into the ppp details (there is a log about in
/var/log/ppp.log), do you have after attaching the Huawei modem a
device /dev/cuaU0 at all? What does the following command gives:

ls -l /dev/cua*
chat -vs < /dev/cuaU0.0 > /dev/cuaU0.0 '' AT OK 'ATI2' O
printf "\n"

HIH

        matthias

References

   1. mailto:invalid.pointer@gmail.com



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?4E0ABD22.50401>