Post Reply

Connect ANY 3G dongle to ANY android tablet...

OP Bhaskar1109

2nd March 2013, 12:48 PM   |  #1  
OP Junior Member
Thanks Meter: 54
 
22 posts
Join Date:Joined: Jan 2013
I have found a way to connect any modem to the tablet even if the tablet does not recognizes it. your device must be ROOTED to do so. I am not a developer, i just found out somewhere and modified the instructions to make it easy. i am not responsible to any thing that happens to your device (however this method isn't risky at all).

Just follow the instructions and enjoy. First download the attachment...

. First you need to move the modem to "modem only" for this you will need a terminal, you can use Hyper Terminal on windows.
Google search for AT commands for your modem to make it modem only mode and how to do that.

All right .... transferred the modem to the modem-only mode ....

Then note the vid and pid of your modem. one way to do this is to connect the modem to computer then go to device manager, expand modems, right click your modem >properties>details.


2. Next we need ES File Explorer

Install it on your tablet ... Open, go to settings -> Root rights, and tick all checkboxes.

3. Then go to /system/bin/preinstall.sh on your tablet and add a line to the file using es file explorer echo "19d2 1176" > /sys/bus/usb-serial/drivers/option1/new_id (see my preinstall.sh in the archive).

here 19d2 is my modem (vodafone K3370-z) vid and 1176 the pid. replace the vid and pid with your own.

REEBOT YOUR TABLET

4.There is a folder peers in the archive you downloaded. open conf-chat in the folder with es file explorer and replace your apn here with the apn of your service provider .

When the tablet does not recognize the modem it will not generate ttyUSB files which are needed to communicate with the modem. In Step 3 you made the tablet to recognize the modem and it now generates the ttyUSB files. You can check that in Terminal emulator(download from play store) by typing "dmesg" command(without qoutes). scroll the output down, you will see the generated ttyUSB ports as given in attached screenshot Pic1. It also gives the number of ports genetated. If you see these lines you can Connect your modem to Internet. But wait a minute you have additional things to do in order to get connected.

Now you need to find which port is pppd port because we need it to insert in the file Conf-pppd in peers folder of the archive you downloaded. (open the conf-pppd using wordpad you would see ttyUSB1 on the top because pppd port of my modem is 1, those modems who has pppd port at 1 would be able to connect without any modifications, if the pppd port of your modem is not 1 you would have to edit it e.g if the pppd port of your modem is 2, the top line in conf-pppd would look like ttyUSB2 and so on)


To determine which is pppd port follow the below steps...(see the attached screenshots)

Open 2 windows in terminal emulator. (you can copy paste the commands in terminal emulator)

(1) In first window type busybox tr -s "\n" < /dev/ttyUSBx (Pic2)
where x is the first port generated by your modem.(this command opens the port)

(2) Now in window 2 type echo -e "ATi\r" > /dev/ttyUSBx (pic3)
Here x is the same you typed in window 1.
You would see OK in WINDOW 1(Not in window 2). IF YOU DONT SEE ANY OUTPUT IN WINDOW 1(pic4), YOU HAVE TO UNPLUG YOUR MODEM AND PLUG IT AGAIN AND THEN USE NEXT PORT. yOU HAVE TO DO THIS EVERY TIME YOU DONT SEE ANY OUTPUT. IF YOU DO SEE AN OUTPUT PROCEED TO NEXT STEP.(pic 5, 6, and 7)

(3) Again type echo -e "AT+CGDCONT=1,\"IP\",\"www\"\r" > /dev/ttyUSBx in window 2. (Pic8)
Here replace www with your apn
You will see the OK again in window 1.(pic9)

(4) Again type echo -e "ATDT*99#\r" > /dev/ttyUSBx in WINDOW 2(pic10)
You will See the output in window 1. if you see ERROR in window 1, then it is your AT port not PPPD port. Unplug your modem and try next port untill you get CONNECT message in window 1(pic11). If you get Connect Message the at any port then it is your pppd port. IF you get these messages at port 2, then replace 1 in ttyUSB with 2, ehich then reads ttyUSB2 at the top of conf-pppd file.

Now copy the folder Peers in /etc/ppp/ in your sd card.



Install the application GScript_Mod.apk lies just in the archive .... open it and add the two scripts in the folder gscript of your sdcard : inet-ON.sh (Which brings up connection) and inet-OFF.sh (which disables the connection)

5. REBOOT TABLET. insert the modem. Start the application Gscript and run inet-ON.sh(pic12)

If you do everything on the instructions, your modem will connect to the Internet, although you will not see the 3G connection on the tablet...(pic13)

Thanks for reading..
Attached Files
File Type: zip Guide.zip - [Click for QR Code] (32.1 KB, 32730 views)
File Type: zip Screenshots.zip - [Click for QR Code] (946.4 KB, 14733 views)
Last edited by Bhaskar1109; 5th March 2013 at 10:18 AM.
The Following 52 Users Say Thank You to Bhaskar1109 For This Useful Post: [ View ]
2nd March 2013, 01:48 PM   |  #2  
Ganesh A's Avatar
Recognized Contributor
Flag Chennai
Thanks Meter: 769
 
915 posts
Join Date:Joined: May 2012
More
Re: Connect ANY 3G dongle to ANY android tablet...
Great Work..


A person who never made a mistake never tried anything new.
- Albert Einstein
4th March 2013, 02:07 AM   |  #3  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Mar 2013
Re:Connect ANY 3G dongle to ANY android tablet...
Dear Bhaskar1109,

Kindly tell me how to use Hyper Terminal and make it a modem only mode. I have Micromax 310G modem with aircel connection and Micromax Funbook Infinity P275. I am unable to connect my modem as it says damaged sd card.

Thank You for your wonderful guide.
4th March 2013, 08:29 AM   |  #4  
OP Junior Member
Thanks Meter: 54
 
22 posts
Join Date:Joined: Jan 2013
Micromax 310G..
Quote:
Originally Posted by manb7

Dear Bhaskar1109,

Kindly tell me how to use Hyper Terminal and make it a modem only mode. I have Micromax 310G modem with aircel connection and Micromax Funbook Infinity P275. I am unable to connect my modem as it says damaged sd card.

Thank You for your wonderful guide.

Select COM port in HyperTerminal and try AT Commands.. i know AT commands to disable Emulated CDROM for few modems. Try it otherwise google commands for your modem

Huawei AT^U2DIAG=x command to control emulated CD-ROM and Micro-SD card
values of <x>:
0: disable CD-ROM and Micro-SD
1: enable CD-ROM only
255: enable CD-ROM and Micro-SD
256: enable Micro-SD only

ZTE AT+ZCDRUN=x command to control emulated CD-ROM and Micro-SD card
values of <x>:
8: disable autorun (modem appears when plugged in)
9: enable autorun (only CD-ROM appears when plugged in)
E: enable download mode (CD-ROM does not appear when plugged in)
F: disable download mode (CD-ROM appears when plugged in)

ZTE(ICERA chipsets) AT%USBMODEM?: to check the actual state

AT%USBMODEM=x command to control emulated CD-ROM and Micro-SD card
values of <x>
0: modem only mode
1: modem + CD-ROM + microSD
Last edited by Bhaskar1109; 4th March 2013 at 08:33 AM.
The Following 2 Users Say Thank You to Bhaskar1109 For This Useful Post: [ View ]
4th March 2013, 01:08 PM   |  #5  
gamerZ1's Avatar
Senior Member
Flag At the and of the World
Thanks Meter: 9
 
105 posts
Join Date:Joined: Mar 2013
More
Thumbs up
Great work.Usefull
5th March 2013, 10:14 AM   |  #6  
OP Junior Member
Thanks Meter: 54
 
22 posts
Join Date:Joined: Jan 2013
Instructions added...

oops, i forgot some vital instructions earlier which i have added in bold letters now. Please view those if you were not able to connect to internet earlier and give your experiences.
7th March 2013, 05:07 AM   |  #7  
Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: Mar 2013
great work, now i can connect any dongle to my tab. took some time though to make the dongle to modem only mode.

thanks.
18th April 2013, 04:56 PM   |  #8  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Apr 2013
Hi there,

I have checked the presence of ttyUSB into the /dev, but when I run the inet-ON I get.

Waiting ttyUSB1
Starting pppd
stderr: pppd: in file /etc/ppp/peers/conf-pppd unrecognized option TIMEOUT
Connecting....

Can anybody help me on this issue?
Thanks.
23rd April 2013, 10:00 AM   |  #9  
OP Junior Member
Thanks Meter: 54
 
22 posts
Join Date:Joined: Jan 2013
Quote:
Originally Posted by siraci

Hi there,

I have checked the presence of ttyUSB into the /dev, but when I run the inet-ON I get.

Waiting ttyUSB1
Starting pppd
stderr: pppd: in file /etc/ppp/peers/conf-pppd unrecognized option TIMEOUT
Connecting....

Can anybody help me on this issue?
Thanks.

which sim r u using? and what are the settings for the connection? these problems arise due to incorrect settings. check pm
23rd April 2013, 04:25 PM   |  #10  
Junior Member
Thanks Meter: 0
 
4 posts
Join Date:Joined: Apr 2013
Hi Bhaskar1109,

thanks for your reply. As you suggested, I have check all installation and I found the mistake, using the adb command I pushed the conf-pppd file but with the conf-chat's file contents .
So now "almost" it works fine. Almost because I have to give manually from adb shell or terninal:
echo "1ee8 0014" > /sys/bus/usb-serial/drivers/option1/new_id
in order to create the USBtty
and when the connection is on
setprop net.dns1 208.67.222.222
to set the dns server, because when I run the inet-ON.sh i get the error:
stderr: usage: setprop <key> <value>
This time I have checked the preinstall.sh and inet-ON.sh contents and permissions.

Any clues?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes