LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2011, 10:31 AM   #1
ravik453
LQ Newbie
 
Registered: Dec 2011
Distribution: red hat enterprise linux 6.0
Posts: 3

Rep: Reputation: Disabled
Question USB MODEM 3G Dongle.


Hi,

i'm facing problem installing 3G USB Dongle in Red Hat Enterprise Linux 6.0. Getting error as autorun program is missing. I'm using 3G USB Dongle manufactured by HUAWEI Co., MODEL(HUAWEI E1731).

I tried entering the command in terminal:

lsusb
dmeg

Still nothing works.

Need help with this
 
Old 12-08-2011, 12:42 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,928

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by ravik453 View Post
Hi,
i'm facing problem installing 3G USB Dongle in Red Hat Enterprise Linux 6.0. Getting error as autorun program is missing. I'm using 3G USB Dongle manufactured by HUAWEI Co., MODEL(HUAWEI E1731).

I tried entering the command in terminal:
lsusb
dmeg

Still nothing works. Need help with this
Both lsusb and dmesg commands will work fine. And getting Huawei devices to work via Linux has been covered on here MANY times, and there is much information available through Google:
http://www.draisberghof.de/usb_modeswitch/

You will need to install usb-modeswitch, wvdial, and wvdialconf. Follow the instructions on the page provided. Note that since you're using RHEL, you're paying for support (right??), and can call them for assistance. You are also paying to access the online repositories, which you will NEED in order to get this working. If you are NOT paying for RHEL, then DON'T USE IT, and use CentOS or Scientific linux instead, which are 99.X% identical to RHEL, but FREE.

Last edited by TB0ne; 12-09-2011 at 03:38 PM.
 
1 members found this post helpful.
Old 12-08-2011, 12:58 PM   #3
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
Autorun ?

Nopes - It has not been missing.

As I know these modems were/are still being marketed in India. E1731 / Airtel.

Do a dmesg

Check for usb device name which actually emulates as CD/DVD ROM .

Mount this device -

You will a find couple of folders there - Just run script and that should fix it.

Or of course you can also do what TB0ne suggested.

Last edited by asimba; 12-08-2011 at 12:59 PM. Reason: Grammatical error
 
0 members found this post helpful.
Old 12-09-2011, 10:02 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,928

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by asimba View Post
Autorun ?
Nopes - It has not been missing.
So...autorun.inf scripts now run on Linux? Thought they were just for Windows...hmm.
Quote:
As I know these modems were/are still being marketed in India. E1731 / Airtel.
Do a dmesg
Check for usb device name which actually emulates as CD/DVD ROM. Mount this device -

You will a find couple of folders there - Just run script and that should fix it. Or of course you can also do what TB0ne suggested.
How about telling the OP which script to run? And without installing usb-modeswitch, or configuring a wvdial profile, how would you get the modem to work at all?? The programs supplied on those devices are for Windows.
 
Old 12-09-2011, 10:14 AM   #5
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
Quote:
Originally Posted by TB0ne View Post
So...autorun.inf scripts now run on Linux? Thought they were just for Windows...hmm.

How about telling the OP which script to run? And without installing usb-modeswitch, or configuring a wvdial profile, how would you get the modem to work at all?? The programs supplied on those devices are for Windows.
I have been there, I have used one these sticks.

Program(s) is for both Operating systems - Windows and Linux.

I missed on script - install.sh - thats the script he needs to run. Which actually utilizes NDIS wrapper coupled with USB Modem just works ok.

Dont ask me how NDIS and USB modem are linked - you might want to check Huawei website for more details / authenticity
 
0 members found this post helpful.
Old 12-09-2011, 11:03 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,928

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by asimba View Post
I have been there, I have used one these sticks. Program(s) is for both Operating systems - Windows and Linux.
Sorry, but without usb-modeswitch, it won't work. And autorun.inf scripts are for Windows.
Quote:
I missed on script - install.sh - thats the script he needs to run. Which actually utilizes NDIS wrapper coupled with USB Modem just works ok. Dont ask me how NDIS and USB modem are linked - you might want to check Huawei website for more details / authenticity
No need to...usb-modeswitch and wvdial are all that's needed, and are in pretty much every Linux distro already. If you're providing an alternate solution, please provide the details on it, and how to make it work, etc.
 
Old 12-09-2011, 12:44 PM   #7
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
Quote:
Originally Posted by TB0ne View Post
Sorry, but without usb-modeswitch, it won't work. And autorun.inf scripts are for Windows.

No need to...usb-modeswitch and wvdial are all that's needed, and are in pretty much every Linux distro already. If you're providing an alternate solution, please provide the details on it, and how to make it work, etc.
I am not providing any alternate solution.
I reiterate - Ask Original Poster to post/upload files OR you can visit Huawei Website and search for given software/scripts.

Next - I have been there (India)- These USB sticks are ONLY provided by provider named - Airtel. They DO support linux and software bundled on disk.
Thats all. He can go your way or just install supported software and be done with that.

I might request you to help me do same (usb-modeswitch and wvdial) - I still have some time in India - I have same stick E1731(It has IMEI/ Serial Number inside) .

I will be only too happy if you walked me through with this. I was taking convenient path(installing accompanying software on fedora/Ubuntu) - I request you to walk me right path/installation (usb-modeswitch and wvdial) - I already have wvdial installed. As for rest please let me know - I will start a new thread - or we could use existing thread so OP and I both benefit from your knowledge

Last edited by asimba; 12-09-2011 at 12:49 PM. Reason: added more details
 
0 members found this post helpful.
Old 12-09-2011, 01:18 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,928

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by asimba View Post
I am not providing any alternate solution. I reiterate - Ask Original Poster to post/upload files OR you can visit Huawei Website and search for given software/scripts.
And again, I reiterate: Any software/scripts from Huawei are NOT needed. I don't need them, nor want them.
Quote:
Next - I have been there (India)- These USB sticks are ONLY provided by provider named - Airtel. They DO support linux and software bundled on disk. Thats all. He can go your way or just install supported software and be done with that.
Ok...so again, if you've done this, and know the procedure, then post it. The usb-modeswitch command is made for this, since the device typically shows up FIRST as a storage device with the Windows autorun on it. Once the driver is installed, the device switches to serial/modem (hence, the "mode-switch"), and you're then able to use it. Once you run usb-modeswitch, it toggles the device into modem-mode, letting you set it up with your choice of PPP dialers, like Gnome PPP, KPPP, or wvdial.
Quote:
I might request you to help me do same (usb-modeswitch and wvdial) - I still have some time in India - I have same stick E1731(It has IMEI/ Serial Number inside).

I will be only too happy if you walked me through with this. I was taking convenient path(installing accompanying software on fedora/Ubuntu) - I request you to walk me right path/installation (usb-modeswitch and wvdial) - I already have wvdial installed. As for rest please let me know - I will start a new thread - or we could use existing thread so OP and I both benefit from your knowledge
Odd that you need these steps, since you maintain the device works fine, and you've used it previously. If that's the case, why do you need further information on it?

It's been covered on this site MANY times, and Google covers it extensively; see the link I posted in my first reply, dig a little deeper for this:
http://www.draisberghof.de/usb_modes...b8ee35c4f0c98d

The steps are:
  • Install usb-modeswitch from your online repositories
  • Install wvdial and wvdialconf from your online repositories
  • Read the man page on usb-modeswitch, and run it if needed (http://manpages.ubuntu.com/manpages/...eswitch.1.html)
  • Run wvdialconf, set up your modem
  • Run wvdial..you are now connected.
 
0 members found this post helpful.
Old 12-09-2011, 01:46 PM   #9
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
what you suggested was very generic - anybody could have googled and pasted that. It was about walking through configuration. I wish you could have helped more - nonetheless I will post some stuff - But I am unsure where will it eventually lead us - probably knowledge ?

directory listing
Code:
dr-xr-xr-x 2 root root   4096 2011-12-09 13:43 airtel
-r-xr-xr-x 1 root root 481686 2011-12-09 13:43 airtel.ico
-r-xr-xr-x 1 root root 143360 2011-12-09 13:43 AutoRun.exe
-r-xr-xr-x 1 root root     46 2011-12-09 13:43 AUTORUN.INF
-r-xr-xr-x 1 root root     94 2011-12-09 13:43 autorun.sh
-r-xr-xr-x 1 root root 206336 2011-12-09 13:43 DataCard_Setup64.exe
-r-xr-xr-x 1 root root 143360 2011-12-09 13:43 DataCard_Setup.exe
-r-xr-xr-x 1 root root   4713 2011-12-09 13:43 install_linux
dr-xr-xr-x 2 root root   4096 2011-12-09 13:43 Linux
-r-xr-xr-x 1 root root   7168 2011-12-09 13:43 ResetDevice.exe
-r-xr-xr-x 1 root root   1257 2011-12-09 13:43 SysConfig.dat
directory listing for /Linux
Code:
dr-xr-xr-x 2 root root    4096 2011-12-09 13:49 .
dr-xr-xr-x 4 root root    4096 2011-12-09 13:48 ..
-r-xr-xr-x 1 root root  642100 2011-12-09 13:43 7zr
-r-xr-xr-x 1 root root 4134767 2011-12-09 13:43 data.bin
-r-xr-xr-x 1 root root   24384 2011-12-09 13:43 install
-r-xr-xr-x 1 root root   24384 2011-12-09 13:49 install.txt
-r-xr-xr-x 1 root root 6083904 2011-12-09 13:43 MobilePartner.bin
-r-xr-xr-x 1 root root     925 2011-12-09 13:43 readme.txt
-r-xr-xr-x 1 root root    1608 2011-12-09 13:43 SysConfig.dat

files have been renamed to .txt as uploader wont let me upload files with no extension.
Attached Files
File Type: txt install_linux.txt (4.6 KB, 39 views)
File Type: txt readme.txt (925 Bytes, 18 views)
File Type: txt install.txt (23.8 KB, 24 views)

Last edited by asimba; 12-09-2011 at 01:53 PM. Reason: added more details
 
0 members found this post helpful.
Old 12-09-2011, 02:18 PM   #10
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
Other generic stuff being there/installed

Modem should come up as following

crw-rw---- 1 root dialout 188, 0 2011-12-09 13:35 ttyUSB_utps_modem


Next of course you could pretty easily figure out / google on configuring a modem with WVdial.


Next comes wvdial.conf

Code:
 
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1
;Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”",”airtelgprs.com”
stupid mode = 1
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyUSB_utps_modem
ISDN = 0
Phone = *99#
Carrier Check = no
Password = airtel
Username = airtel
FlowControl=Hardware(CRTSCTS)
That should set entire thing up

Last edited by asimba; 12-09-2011 at 02:19 PM. Reason: code error
 
0 members found this post helpful.
Old 12-09-2011, 02:56 PM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,928

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by asimba View Post
what you suggested was very generic - anybody could have googled and pasted that. It was about walking through configuration. I wish you could have helped more - nonetheless I will post some stuff - But I am unsure where will it eventually lead us - probably knowledge ?
That's the entire point...it IS generic and easy. Again, it's been covered on here many times, and once you run usb-modeswitch, you run wvdialconf (which sets up the wvdial.conf from your other post). After that, you type in wvdial. That's it...there are no other steps. What, exactly, would you like folks to post, and how many times would you like it posted???

http://www.linuxquestions.org/questi...s5-4-a-792794/
http://www.linuxquestions.org/questi...-final-915968/
http://www.linuxquestions.org/questi...ck-5-a-917219/
http://ubuntuforums.org/showthread.php?p=9362616

Huawei modems are well documented/supported under Linux, with just those procedures.
 
Old 12-09-2011, 03:02 PM   #12
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
Quote:
Originally Posted by TB0ne View Post
That's the entire point...it IS generic and easy. Again, it's been covered on here many times, and once you run usb-modeswitch, you run wvdialconf (which sets up the wvdial.conf from your other post). After that, you type in wvdial. That's it...there are no other steps. What, exactly, would you like folks to post, and how many times would you like it posted???

http://www.linuxquestions.org/questi...s5-4-a-792794/
http://www.linuxquestions.org/questi...-final-915968/
http://www.linuxquestions.org/questi...ck-5-a-917219/
http://ubuntuforums.org/showthread.php?p=9362616

Huawei modems are well documented/supported under Linux, with just those procedures.
All that bugs me is why this "generic" came later then sooner - with all LQ threads at end.

Phew - Users being users - you cannot blame them - can you ?
 
0 members found this post helpful.
Old 12-09-2011, 03:38 PM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,928

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by asimba View Post
All that bugs me is why this "generic" came later then sooner - with all LQ threads at end.
Phew - Users being users - you cannot blame them - can you ?
Really???? I directed the OP to a site that had instructions. And (as YOU said), anyone could have Googled it. Yet, you're complaining that I didn't spoon-feed links to searches that anyone could have done?

Last edited by TB0ne; 12-09-2011 at 03:40 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
skype and a 3g modem dongle kristhor Linux - Hardware 2 06-11-2011 06:46 AM
[SOLVED] Connecting USB 3G dongle device as "modem" Isix Linux - Hardware 14 01-02-2011 06:49 AM
ZTE AC8710 usb dongle modem crazywizard Linux - Newbie 3 12-02-2009 06:36 PM
3G USB modem Dongle myutopia Linux - Networking 4 02-09-2009 11:00 PM
USB GPRS modem dongle for linux? wilho Linux - Wireless Networking 0 04-12-2005 02:23 AM


All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration