banner



How To Install Huawei Dongle In Ubuntu

There is a very like shooting fish in a barrel way to do this on linux. I unlocked a Huawei E160G Dongle that was sim locked to the iii network using the method given below.

first lodge of business, getting the unlock code for the 3G dongle.
For Huawei dongles, this is very easily obtained using this site : http://bb5.at

To exercise this, first get the IMEI code for your dongle and in a new browser window, enter the url as below :

http://bb5.at/huawei.php?imei=xxxxxxxxxxxxxxxxx

replace xxxxxxxxxxxxxxxxx with your bodily 15 digit IMEI code.
this will show a page giving the unlock code like the one below :

The unlock lawmaking is the 8 digit number in the line that says :

Entsperren / Unlock: 65031494

Tools y'all demand :
minicom – a concluding software that tin communicate with the serial ports. On windows, there is Hyper terminal. This is the Linux counterpart for that.

minicom is available in just almost every linux distro at that place is.
On Debian based systems (ubuntu,mint,mepis,etc.) this tin be installed with :

sudo apt-get install minicom

On Redhat based systems (CentOS, Fedora ):

sudo yum install minicom

On Suse :

sudo zypper install minicom

now, we need to know on what port the dongle is connected on. to practise this, open up a control terminal and login as root

sudo su

and run for Debian based systems :

tail -f /var/log/syslog

For Redhat/Suse based systems :

tail -f /var/log/messages

keep that terminal open and plugin the 3G dongle with the SIM removed from it.
There'll me a lot of lines every bit the kernel detects the attached device. Among them will exist lines similar to these :

kernel: [122067.688806] usb 1-iv: Product: HUAWEI Mobile
kernel: [122067.688821] usb i-4: Manufacturer: HUAWEI Engineering science
kernel: [122067.689178] usb 1-iv: configuration #1 chosen from one selection
kernel: [122067.708406] option 1-4:i.0: GSM modem (one-port) converter detected
kernel: [122067.708774] usb 1-four: GSM modem (1-port) converter at present attached to ttyUSB0
kernel: [122067.709341] selection 1-4:ane.1: GSM modem (one-port) converter detected
kernel: [122067.709721] usb 1-4: GSM modem (1-port) converter now fastened to ttyUSB1

Information technology identified the device as a modem and attached it to the ports ttyUSB0 and ttyUSB1
The full paths are :
/dev/ttyUSB0 and /dev/ttyUSB1

These are the details we demand.

nosotros can get back to the interactive control line by pressing CTRL + C
at present, we need to configure minicom so that it'll talk to the 3G dongle. in 99% of the cases, /dev/ttyUSB0 is the port we demand to unlock the dongle.

So as root, run :

minicom -s

This opens up minicom in the configuration mode.

Outset thing to do is to gear up the Serial Port so select Series Port Config from the listing of options and press Enter.

First thing is to alter the port to /dev/ttyUSB0. Then press A and change the /dev/tty0 to /dev/ttyUSB0

And press Enter.

Next, we need to change the Baud Charge per unit, paritiy and $.25 to 9600,N,8 (respectively). To practise this, press E.

From the list of options C has 9600, so press C
Printing Enter to confirm.

at present information technology should wait like this :

A – Serial Device : /dev/ttyUSB0
East – Bps/Par/$.25 : 9600 8N1

Printing Enter to consummate the Serial port Setup.
Now select Leave to exit the configuration menu.

Notation, this is Get out and NOT Exit from minicom option.

Now it'll initialize the modem:

And open up upward the terminal :

Now comes the actual command to unlock the dongle. The last yous're in at present is not a interactive beat similar the usual command prompt. You cannot make any mistakes in typing commands here.
the AT command to unlock the dongle has to be entered in capital messages so its a adept idea to press capslock.

the unlock command is :

AT^CARDLOCK="xxxxxxx"

supercede xxxxxxx with the unlock code for your dongle the "" are compulsory!


and press enter.

At present, depending on the dongle model, yous might go a reply like this :

^CARDLOCK 2,10,0

or simply (this is what I got for the E160G) :

OK

now simply close the command line interface and pull out the dongle.
Put your own sim in and plug it in. Information technology'll now piece of work with your sim.

Big thank you goes to Sandeepa for his blog mail (http://sadeepasepala.blogspot.com/2010/03/huawei-hsdpa-usb-unlock.html) for providing the AT control to unlock, the Baud rates, and an easy way to go the unlock codes. His blog postal service shows how to unlock 3G dongles in windows without using any tertiary part software.

Also credit is due to this weblog mail (http://linuxwave.blogspot.com/2009/06/hyper-terminal-for-linux.html) from linuxwave for giving a heads upward on minicom.

Source: https://girobiro.wordpress.com/2012/03/08/unlock-3g-usb-dongles-in-linux/

Posted by: riddersonch1955.blogspot.com

0 Response to "How To Install Huawei Dongle In Ubuntu"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel