码迷,mamicode.com
首页 > 系统相关 > 详细

How to use USB 3G dongle/stick Huawei E169/E620/E800 ( Chip used Qualcomm e1750) in Linux (China and world)

时间:2015-09-18 07:03:47      阅读:679      评论:0      收藏:0      [点我收藏+]

标签:

Using this 3G module in Linux is so great. I want it. So I made it.

The 3G dongle of Huawei E169/E620/E800 is made from chip Qualcomm e1750. Yes, yet an American company. Huawei understands business.

技术分享   + 技术分享

I am using KDE based on ubuntu 14.04 AMD64.

After you pluging the dongle into computer, you would see this:

技术分享

The Huawei Modem is recognized by Linux kernel and its modules.

Here are several ways of doing so.

 

1. Using system GUI -- networkmanager

Add a mobile boardband connection.

Choose Qualcomm E1750 if your system can detect it.

技术分享

Then

技术分享

技术分享

Go on

技术分享

Go on

技术分享

Go on

技术分享

Leave the username and password blank. If you are in China, then make sure the number is *99# 

APN: 3gnet

Click ok. 

Then go to connect it from your network manager. 

技术分享

 

2. Using KDE kppp (GUI)

You should install these packages before doing so.

sudo apt-get install ppp kppp wvdial -y

kppp has its GUI.

wvdial is the backend tool which kppp uses. Or you can use wvdial later in console only.

This would come out if it is sucessfully connected to the internet.

技术分享

Leave the Login ID and password empty.

 

In tab Accounts, "New" a profile. And make it look like this.

Click configure and create a profile for connection.

 

 

Make sure number to be *99# if you are in China.

And authentication to be Terminal-based.

技术分享

Then click ok to save it.

 

Then go to tab Modems. "New" a profile named "huawei3g".

And edit it.

Make sure it looks like this.

device: /dev/ttyUSB0  

(it depends on how many devices you have sometimes. Everytime you plug in the 3G dongle, there would be 3 devices came out. They would be /dev/ttyUSB0 ,/dev/ttyUSB1, /dev/ttyUSB2 . ( ttyUSB0 is used for controlling the 3G dongle. And it supports AT commands. Others are some other stuff about voice call and so on)

 

技术分享

Click OK to save it.

Then go back, and hit connect in kppp.

This is what you gonna see.

技术分享

 

 

3. Using wvdial in command lines

sudo apt-get install ppp wvdial -y

then go to configure the wvdial

Make the file look like this:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
; Phone = <Target Phone Number>
; Password = <Your Password>
; Username = <Your Login Name>
Phone = *99#
; Phone = *99***1# ; If you are in America or somewhere Password
= 3gnet Username = 3gnet

And connect to internet in console:

Now you would see successfully we are connected to internet.

技术分享

There is another interface called ppp0 here.

 

技术分享

Hit Ctrl + C in console to disconnect.

技术分享

4. Using Sakis3G GUI / commands scripts

Here are something from http://www.sakis3g.com/

First check that you have ppp installed 
sudo apt-get install ppp

Now download the Sakis3g package
sudo wget "http://www.sakis3g.com/downloads/sakis3g.tar.gz" -O sakis3g.tar.gz

Then unzip the file
sudo tar -xzvf sakis3g.tar.gz

Make the file executable
sudo chmod +x sakis3g

And finally launch it
sudo ./sakis3g --interactive

 

 

技术分享

more options:

 技术分享

 

then you are gonna see

技术分享

Then

技术分享

then

技术分享

But I see this: 

This really does not work. :(

技术分享

So I go to commands.

 

sudo ./sakis3g "--sudo" OTHER="USBMODEM" USBMODEM="12d1:1001" "FORCE_APN=internet.public" USBINTERFACE="3" APN_USER="user" APN_PASS="user" "connect" "info"

 

Remember this:

技术分享

12d1 is the vendor ID, 1001 is the product ID.

And then try these in console.

It failed again... If you see:

技术分享

Here are some knowledge from

Network Manager and Sakis3G don‘t really work well together. Sometimes you need to run Sakis3g twice or remove and plug the device back in to get it to work. This is because ModemManager can be quite forceful by locking device ports. Alternatively, you can switch the device using Sakis3G (at which point Network Manager should pick it up) and then connecting using Network Manager.

As for the pin - either remove the required pin from the sim card by putting it in a normal mobile phone or provide your pin for switching in /etc/sakis3g.conf using the SIM_PIN="" variable.

Reference: http://web.archive.org/web/20120908202215/http://wiki.sakis3g.org/wiki/index.php?title=Sakis3G_configuration#SIM_PIN

 

To be continued.

 Chip live debugging

If you want to check out what this module is shipped with. You could get into it‘s heart using CuteCom via Serial ports.

技术分享

 

Happy hacking!

How to use USB 3G dongle/stick Huawei E169/E620/E800 ( Chip used Qualcomm e1750) in Linux (China and world)

标签:

原文地址:http://www.cnblogs.com/spaceship9/p/4818129.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!