WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: ttyUSB missing  (Read 5761 times)

Offline pacchiee

  • Newbie
  • *
  • Posts: 10
ttyUSB missing
« on: May 16, 2013, 08:23:50 AM »
Hello,

Am trying to connect my usb modem via wvdial. When running "wvdialconf" from command prompt it scans  S0 S1 S2 S3 and fails no modem detected.

On "lsusb", the modem is shown as:
Bus 005 Device 003: ID 12d1:1505 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard

Usually this modem will be recognised as ttyUSB0, which is missing (It works like this in puppy linux).

Can you please help to configure this modem?

Thank you!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11500
Re: ttyUSB missing
« Reply #1 on: May 16, 2013, 11:53:02 AM »
Hi pacchiee
Go to the search page and change the   By user:   field to   floppy   and search for    wvdial.

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: ttyUSB missing
« Reply #2 on: May 23, 2013, 03:34:23 PM »
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline pacchiee

  • Newbie
  • *
  • Posts: 10
Re: ttyUSB missing
« Reply #3 on: May 23, 2013, 05:43:09 PM »
Thanks floppy, for coming here to this thread.

I installed VLC Media Player and wow.. the modem is now detected and attached to ttyUSB0. Don't know what made the difference.

Am able to connect using wvdial; connects successfully and gives the IP Address, Remote IP, Primary DNS and Secondary DNS. But, there are two major problems now:

1. Though connected, am unable to browser through internet. Even, the Apps ends with a network error. Browser could find nothing on the internet too.
2. Every time I reboot the machine, the /etc/wvdial.conf file goes missing.

Please help me to overcome these two issues.

Thank you!

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ttyUSB missing
« Reply #4 on: May 23, 2013, 06:05:17 PM »
Add 'etc/wvdial.conf' to /opt/.filetool.lst before you do the backup.
Do you have a valid route set?

Offline pacchiee

  • Newbie
  • *
  • Posts: 10
Re: ttyUSB missing
« Reply #5 on: May 23, 2013, 06:28:34 PM »
Thanks, gerald_clark.

Add 'etc/wvdial.conf' to /opt/.filetool.lst before you do the backup.
It works, after following the above step the /etc/wvdial.conf file is saved on next boot.


Do you have a valid route set?
Sorry, I didn't get what you mean..

However, even after wvdial is connected, the system fails to communicate with the www.

Please help. Thank you!
« Last Edit: May 23, 2013, 06:30:07 PM by pacchiee »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: ttyUSB missing
« Reply #6 on: May 23, 2013, 07:53:38 PM »
What is the output of 'route -n' ?

I suspect you will need to
route add default gw xxx.xxx.xxx.xxx
where  xxx.xxx.xxx.xxx is your gateway address as defined by your ISP.

Offline pacchiee

  • Newbie
  • *
  • Posts: 10
Re: ttyUSB missing
« Reply #7 on: May 23, 2013, 11:03:40 PM »
Thanks again, gerald_clark.

I guess the problem lies with the /etc/resolv.conf. If I edit this file to use public dns and then connect wvdial, it works.

But, when I connect using wifi, /etc/resolv.conf is rewritten and nameserver will be set to 192.168.1.1 after which the wvdial connect doesn't work until the nameserver is changed to public dns.

Is there a way to make the wvdial use its own auto-generated nameservers (when wvdial connects, it shows an ip address, remote ip, pri dns and sec dns)?

Thank you!

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: ttyUSB missing
« Reply #8 on: May 23, 2013, 11:35:54 PM »
This is a bit confusing, are you alternatingly using wifi and cell connection?
Are you using udhcpc at all?
192.168.1.1 is a private range IP (LAN), not uncommon to be assigned to routers.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline pacchiee

  • Newbie
  • *
  • Posts: 10
Re: ttyUSB missing
« Reply #9 on: May 23, 2013, 11:48:47 PM »
Thanks, tinypoodle.

This is a bit confusing, are you alternatingly using wifi and cell connection?
Sorry for not explaining things better. Yes, when at home or office I use wifi to connect to internet and when am moving, I use the USB Modem.


Are you using udhcpc at all?
192.168.1.1 is a private range IP (LAN), not uncommon to be assigned to routers.
Am not sure whether udhcpc is used or not. My only ways to connect to the internet are wifi and wvdial.

I opted to backup /etc/resolv.conf, but when using wifi nameservers are set to 192.168.1.1 and the same thing is backed up. When I boot on the move and connect the USB Modem, it demands for a change of nameservers in the /etc/resolv.conf.

I need to use both wifi and wvdial, often alternatively. Is it not possible that the wvdial uses its own nameservers as it shows at the connect?

Thank you!

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: ttyUSB missing
« Reply #10 on: May 24, 2013, 12:25:12 AM »
I'd suggest you set public nameservers with udhcpc and see if that works with wvdial as well.

http://forum.tinycorelinux.net/index.php/topic,8019.0.html
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline pacchiee

  • Newbie
  • *
  • Posts: 10
Re: ttyUSB missing
« Reply #11 on: May 24, 2013, 01:09:19 AM »
Thanks again, tinypoodle.

I had been to the thread you pointed earlier also, but somehow couldn't end up with the solution. Now, I have added public nameservers with udhcpc and opted to backup /etc/resolv.conf as well. This works for wvdial also.

Thanks everybody for all the help extended in resolving this issue.

:o)